/* calibryness.com: the tyreenet.com palette, dark with blue by default */
:root {
  --bg: #0f1420; --panel: #161d2c; --text: #e6eaf2; --muted: #9ba6ba; --border: #263149;
  --accent: #4d8dff; --accent-soft: #1b2b4a; --shadow: 0 10px 30px rgba(0,0,0,.5);
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #f3f6fb; --panel: #ffffff; --text: #18202e; --muted: #5a6577; --border: #d5dcea;
  --accent: #1d5fd6; --accent-soft: #dde8fb; --shadow: 0 10px 30px rgba(0,0,0,.08);
  color-scheme: light;
}
* { box-sizing: border-box; }
/* the page fills the window and never scrolls; only the photos/stories frame does */
html, body { margin: 0; height: 100%; }
body { background: var(--bg); color: var(--text); font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  height: 100dvh; display: flex; flex-direction: column; overflow: hidden; }
a { color: var(--accent); }
.top { flex: none; display: flex; align-items: center; justify-content: space-between;
  padding: 12px clamp(16px, 4vw, 48px); border-bottom: 1px solid var(--border); background: var(--panel); }
.brand { font-weight: 800; font-size: 1.1rem; color: var(--text); text-decoration: none; }
.share-link { margin-left: auto; margin-right: 14px; font-weight: 700; text-decoration: none; color: var(--accent);
  border: 1px solid var(--accent); border-radius: 8px; padding: 4px 12px; }
.share-link:hover { background: var(--accent); color: #fff; }
#theme { background: none; border: 1px solid var(--border); color: var(--text); border-radius: 8px; padding: 4px 9px; cursor: pointer; font-size: 1rem; }
main { flex: 1; min-height: 0; display: flex; flex-direction: column; width: min(1100px, 100%); margin: 0 auto;
  padding: 0 clamp(12px, 4vw, 32px); }
.hero { flex: none; text-align: center; padding: clamp(16px, 4vh, 48px) 0 clamp(12px, 2.5vh, 28px); }
.eyebrow { text-transform: uppercase; letter-spacing: .18em; font-size: .78rem; color: var(--muted); margin: 0 0 4px; }
h1 { font-size: clamp(2rem, 6vw, 3.4rem); line-height: 1.08; margin: 0 0 4px; letter-spacing: -.02em; }
.accent { color: var(--accent); }
.lead { font-size: clamp(1.05rem, 2.4vw, 1.3rem); font-weight: 600; margin: 0 0 6px; }
.intro { color: var(--muted); max-width: 52ch; margin: 0 auto; }
.review-note { flex: none; margin: 0 0 8px; font-size: .88rem; color: var(--muted); text-align: center; }
.tabs { flex: none; display: flex; gap: 6px; }
.tabs button { font: inherit; font-weight: 700; padding: 10px 24px; cursor: pointer; color: var(--muted);
  background: transparent; border: 1px solid transparent; border-bottom: 0; border-radius: 12px 12px 0 0; }
.tabs button:hover { color: var(--text); }
.tabs button[aria-selected="true"] { color: var(--accent); background: var(--panel); border-color: var(--border);
  position: relative; top: 1px; }
.frame { flex: 1; min-height: 0; background: var(--panel); border: 1px solid var(--border);
  border-radius: 0 14px 14px 14px; box-shadow: var(--shadow); margin-bottom: 12px; display: flex; }
.frame > section { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: clamp(12px, 2.5vw, 22px); }
.frame > section:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.empty { color: var(--muted); border: 1px dashed var(--border); border-radius: 14px; padding: 26px; text-align: center; margin: 0; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }
.gallery button { padding: 0; border: 0; background: var(--bg); border-radius: 10px; overflow: hidden; cursor: zoom-in; aspect-ratio: 1; }
.gallery img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .25s; }
.gallery button:hover img { transform: scale(1.04); }
.stories { display: grid; gap: 16px; }
.story { background: var(--bg); border: 1px solid var(--border); border-left: 4px solid var(--accent); border-radius: 12px; padding: 18px 22px; }
.story p { margin: 0 0 10px; white-space: pre-line; }
.story .who { color: var(--muted); font-weight: 600; margin: 0; }
footer { flex: none; text-align: center; color: var(--muted); font-size: .85rem; padding: 8px 16px 12px; }
dialog { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
dialog::backdrop { background: rgba(5, 8, 14, .92); }
dialog[open] { display: flex; align-items: center; justify-content: center; }
dialog figure { margin: 0; max-width: 88vw; text-align: center; }
dialog img { max-width: 88vw; max-height: 82vh; border-radius: 8px; }
dialog figcaption { color: #e6eaf2; margin-top: 10px; }
dialog button { position: absolute; background: rgba(255,255,255,.1); color: #fff; border: 0; border-radius: 50%;
  width: 48px; height: 48px; font-size: 2rem; line-height: 1; cursor: pointer; }
#v-close { top: 16px; right: 16px; }
#v-prev { left: 12px; top: 50%; transform: translateY(-50%); }
#v-next { right: 12px; top: 50%; transform: translateY(-50%); }
@media (max-width: 520px) { .gallery { grid-template-columns: repeat(3, 1fr); gap: 6px; } .intro { display: none; } .tabs button { flex: 1; } }
@media (max-height: 560px) { .intro, .eyebrow, .review-note { display: none; } }
