/* Hidden Festa — Public Web v3.2
   Page 1 (Story) and Page 2 (Quick) share one fixed panel.
   Only the stage contents change; the box never moves or resizes. */

@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("fonts/manrope-latin-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191,
    U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("fonts/manrope-latin-ext-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --ink: #101317;
  --ink-soft: #33383e;
  --paper: #fbfaf7;
  --muted: #7a7d81;
  --line: #e4e0d8;
  --gold: #9a7a3f;
  --charcoal: #11191b;

  --panel-light: #fbfaf7;
  --panel-dark: #14171a;

  --radius-panel: 22px;
  --radius-card: 12px;
  --radius-pill: 999px;

  --shadow-panel: 0 30px 80px rgba(8, 10, 14, 0.4);
  --shadow-card: 0 1px 6px rgba(16, 19, 23, 0.09);

  --font: "Manrope", "Avenir Next", "Helvetica Neue", Arial, sans-serif;

  --panel-max: 1180px;
  --rail-w: 128px;
  --rail-gap: 26px;
  --stage-h: 462px;
  --panel-h: 734px;

  --swap: 0.42s cubic-bezier(0.4, 0, 0.2, 1);
}

* { box-sizing: border-box; }

html { background: var(--charcoal); }

body {
  margin: 0;
  min-height: 100%;
  background: transparent;
  color: var(--ink);
  font-family: var(--font);
  font-synthesis-weight: none;
  -webkit-font-smoothing: antialiased;
}

button, input { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ---------------------------------------------------------- page shell -- */

.page {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  background-color: var(--charcoal);
  background-image: var(--bg-image, none);
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.panel {
  width: 100%;
  max-width: var(--panel-max);
  background: var(--panel-light);
  color: var(--ink);
  border-radius: var(--radius-panel);
  box-shadow: var(--shadow-panel);
  padding: 16px 40px 56px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: background-color var(--swap), color var(--swap);
}

.panel.fixed { height: var(--panel-h); }

.panel.dark { background: var(--panel-dark); color: var(--paper); }

/* ------------------------------------------------------------- header -- */

.header { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; }

.brand img { display: block; width: 88px; height: auto; transition: filter var(--swap); }
.panel.dark .brand img { filter: invert(1) brightness(2); }

.nav { display: flex; gap: 30px; padding-top: 6px; }

.nav button {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-soft);
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
  transition: color var(--swap), border-color 0.15s;
}

.panel.dark .nav button { color: rgba(251, 250, 247, 0.84); }
.nav button:hover { color: var(--ink); }
.panel.dark .nav button:hover { color: #fff; }
.nav button[aria-current="page"] { border-bottom-color: var(--gold); color: var(--ink); }
.panel.dark .nav button[aria-current="page"] { color: #fff; }

/* --------------------------------------------------------------- hero -- */

.hero { text-align: center; margin-top: -22px; }

.hero h1 {
  margin: 0;
  font-size: clamp(23px, 2.3vw, 31px);
  font-weight: 700;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.hero p { margin: 7px 0 0; font-size: 15.5px; font-weight: 400; color: var(--muted); }
.panel.dark .hero p { color: rgba(251, 250, 247, 0.66); }

/* -------------------------------------------------------- home layout -- */

.home-body {
  display: grid;
  grid-template-columns: var(--rail-w) 1fr;
  gap: var(--rail-gap);
  align-items: stretch;
}

/* week rail — exactly six, aligned to the stage, no scrolling */

.weeks {
  height: var(--stage-h);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  user-select: none;
}

.week {
  position: relative;
  display: block;
  text-align: right;
  padding: 0 24px 0 0;
  color: var(--muted);
  transition: color 0.18s;
}

.panel.dark .week { color: rgba(251, 250, 247, 0.5); }
.week:hover { color: var(--ink); }
.panel.dark .week:hover { color: #fff; }

.week small {
  display: block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.15em;
  opacity: 0.9;
  line-height: 1.5;
}

.week strong {
  display: block;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.005em;
  line-height: 1.25;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* dot on the rail, plus a short stub below it */
.week .dot {
  position: absolute;
  right: 2px;
  top: 50%;
  width: 9px;
  height: 9px;
  margin-top: -4.5px;
  border-radius: 50%;
  border: 1.4px solid currentColor;
  opacity: 0.5;
  transition: background 0.18s, opacity 0.18s;
}

.week .stub {
  position: absolute;
  right: 6px;
  top: calc(50% + 9px);
  width: 1px;
  height: 22px;
  background: currentColor;
  opacity: 0.22;
}

.week.current strong { font-weight: 700; }

.week.active { color: var(--ink); }
.panel.dark .week.active { color: #fff; }
.week.active strong { font-weight: 800; }
.week.active .dot { background: currentColor; opacity: 1; }

.week.unpublished { opacity: 0.55; }

/* stage — fixed height so the panel never changes size between pages */

.stage { height: var(--stage-h); }

.stage-inner { height: 100%; animation: stageIn var(--swap); }

@keyframes stageIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: none; }
}

/* --------------------------------------------------- page 1 · story ---- */

.story-grid {
  height: 100%;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.card {
  display: grid;
  grid-template-rows: 1fr auto;
  border-radius: var(--radius-card);
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow-card);
  text-align: left;
  transition: transform 0.22s cubic-bezier(0.2, 0.8, 0.3, 1),
              box-shadow 0.22s, background-color var(--swap);
}

.panel.dark .card { background: #1d2125; }
.card:hover { transform: translateY(-4px); box-shadow: 0 14px 32px rgba(10, 12, 16, 0.28); }

.shot { position: relative; overflow: hidden; background: #cfcac2; }
.panel.dark .shot { background: #262b30; }

.shot img, .shot video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 38%;
  display: block;
}

.cap {
  padding: 12px 15px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  height: 90px;              /* fixed, so all four images end on the same line */
  overflow: hidden;
}

.cap strong {
  font-size: 15.5px;
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: -0.012em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cap small {
  font-size: 12.5px;
  font-weight: 400;
  color: var(--muted);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.panel.dark .cap small { color: rgba(251, 250, 247, 0.55); }

.play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.92);
  background: rgba(20, 22, 26, 0.2);
  display: grid;
  place-items: center;
  color: #fff;
  transition: background 0.2s, transform 0.2s;
}

.card:hover .play { background: rgba(20, 22, 26, 0.42); transform: translate(-50%, -50%) scale(1.07); }

/* --------------------------------------------------- page 2 · quick ---- */

.quick-grid {
  height: 100%;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(4, 1fr);
  gap: 14px;
}

.qcard {
  position: relative;
  display: grid;
  grid-template-columns: 52% 48%;
  border-radius: var(--radius-card);
  overflow: hidden;
  background: #1d2125;
  text-align: left;
  transition: transform 0.2s, background-color 0.2s;
}

.qcard:hover {
  transform: scale(1.07);
  background: #2a3037;
  z-index: 2;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45);
}

.qcard .cap {
  padding: 9px 11px;
  height: auto;
  gap: 3px;
  justify-content: center;
}

.qcard .cap strong {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  -webkit-line-clamp: 3;
  overflow-wrap: anywhere;
  hyphens: auto;
}

.qcard .cap small { font-size: 11px; line-height: 1.25; overflow-wrap: anywhere; }

/* artwork-pending plate */

.plate {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(150deg, #cfcac2, #a49e94);
  color: rgba(255, 255, 255, 0.95);
}

.panel.dark .plate { background: linear-gradient(150deg, #333a41, #1e2329); color: rgba(255, 255, 255, 0.42); }

.plate span {
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-align: center;
  line-height: 1.6;
  padding: 0 8px;
}

/* -------------------------------------------------------- empty week -- */

.empty-week {
  height: 100%;
  display: grid;
  place-content: center;
  text-align: center;
  gap: 10px;
}

.empty-week h2 { margin: 0; font-size: 19px; font-weight: 700; }
.empty-week p { margin: 0; font-size: 14px; color: var(--muted); max-width: 42ch; }
.panel.dark .empty-week p { color: rgba(251, 250, 247, 0.55); }

/* ------------------------------------------------------------ footer -- */

.home-footer { display: flex; flex-direction: column; align-items: center; gap: 11px; margin-top: 2px; }

.dots { display: flex; gap: 13px; align-items: center; }

.dots button {
  width: 9px;
  height: 9px;
  flex: none;
  border-radius: 50%;
  border: 1.4px solid currentColor;
  color: var(--ink);
  opacity: 0.38;
  transition: opacity 0.2s, background 0.2s;
}

.panel.dark .dots button { color: var(--paper); }
.dots button:hover { opacity: 0.65; }
.dots button.active { background: currentColor; opacity: 1; }

.about-link {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.005em;
  color: var(--ink-soft);
  transition: color var(--swap);
}

.panel.dark .about-link { color: rgba(251, 250, 247, 0.86); }
.about-link:hover { color: var(--ink); }
.panel.dark .about-link:hover { color: #fff; }

.foot-links { display: flex; align-items: baseline; justify-content: center; gap: 9px; }

.foot-sep, .legal-link {
  font-size: 12.5px;
  color: var(--muted);
  transition: color var(--swap);
}

.legal-link { text-decoration: none; }
.legal-link:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }
.panel.dark .foot-sep, .panel.dark .legal-link { color: rgba(251, 250, 247, 0.5); }
.panel.dark .legal-link:hover { color: #fff; }

/* --------------------------------------------------------------- back -- */

.back {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 15px;
  color: var(--ink-soft);
  align-self: flex-start;
  margin-top: -4px;
}

.back:hover { color: var(--ink); }

/* ------------------------------------------------------------ detail -- */

.detail-body {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
  overflow-y: auto;
  scrollbar-width: thin;
}

.detail-grid { display: grid; grid-template-columns: 330px minmax(0, 560px); gap: 44px; align-items: start; }

.detail-media { margin: 0; width: 330px; }

.detail-media .frame {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius-card);
  overflow: hidden;
  background: #cfcac2;
  box-shadow: var(--shadow-card);
}

.detail-media video, .detail-media img { width: 100%; height: 100%; object-fit: cover; object-position: center bottom; display: block; }

.badges { position: absolute; z-index: 2; top: 12px; left: 12px; display: flex; gap: 7px; }

.badge {
  font-size: 11px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: var(--radius-pill);
  background: rgba(17, 19, 23, 0.82);
  color: #fff;
}

.badge.light { background: rgba(255, 255, 255, 0.92); color: var(--ink); }

.mute {
  position: absolute;
  z-index: 2;
  right: 12px;
  bottom: 12px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(17, 19, 23, 0.55);
  color: #fff;
  display: grid;
  place-items: center;
}

.detail-media figcaption { margin-top: 10px; font-size: 12px; color: var(--muted); line-height: 1.55; text-align: center; }

/* how current the details are — we publish about six weeks ahead */
.verified {
  display: flex; align-items: flex-start; gap: 7px;
  margin: 12px 0 0; font-size: 12.5px; line-height: 1.55; color: var(--muted);
}
.verified .ico { flex: none; margin-top: 1px; }

.localname { margin: 0 0 6px; font-size: 13px; color: var(--muted); }

.detail-info h1 {
  margin: 0;
  font-size: clamp(28px, 2.9vw, 38px);
  font-weight: 800;
  letter-spacing: -0.028em;
  line-height: 1.06;
  text-wrap: balance;
}

.detail-info .where { margin: 10px 0 0; font-size: 15px; font-weight: 600; }
.detail-info .lede { margin: 13px 0 0; font-size: 15px; line-height: 1.62; color: var(--ink-soft); }

.facts { margin: 22px 0 0; border: 1px solid var(--line); border-radius: var(--radius-card); overflow: hidden; }
.facts > * { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 14px 16px; text-decoration: none; }
.facts > * + * { border-top: 1px solid var(--line); }
.facts dt, .facts .dt { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 700; margin: 0; }
.facts dd, .facts .dd { margin: 0; font-size: 14px; color: var(--ink-soft); text-align: right; }
.fact-link:hover { background: #f4f1ea; }
.fact-link:hover .dd { color: var(--ink); text-decoration: underline; }

.detail-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: 48px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.16s, border-color 0.16s;
}

.btn.primary { background: var(--ink); color: var(--paper); }
.btn.primary:hover { background: #000; }
.btn.ghost { border: 1px solid var(--line); background: #fff; color: var(--ink); }
.btn.ghost:hover { border-color: #cac4b9; }
.btn.save.is-saved { border-color: var(--ink); }
.btn.save.is-saved .ico svg { fill: #c1272d; stroke: #c1272d; }

.btn-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.talked { border-top: 1px solid var(--line); padding-top: 16px; }
.talked h2 { margin: 0 0 12px; font-size: 16px; font-weight: 700; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }

.chip {
  font-size: 12.5px;
  color: var(--ink-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  padding: 7px 13px;
  background: #fff;
}

/* ---------------------------------------------------------- my festa -- */

.my-head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding-right: 15px;          /* lines the + up with the − inside the cards */
}

.my-head h1 { margin: 0; font-size: 30px; font-weight: 800; letter-spacing: -0.025em; }

.my-head .count {
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.my-head .spacer { flex: 1; }

.icon-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  background: #fff;
  color: var(--ink-soft);
  flex: none;
  transition: border-color 0.16s, color 0.16s;
}

.icon-btn:hover { border-color: var(--ink); color: var(--ink); }

.keep-hint { margin: -6px 0 0; font-size: 13px; color: var(--muted); }

.keep-hint .link {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.keep-hint .link:hover { color: var(--ink); }

.saved-list {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow-y: auto;
  scrollbar-width: thin;
  padding-right: 2px;
}

.saved-row {
  display: grid;
  grid-template-columns: 240px 1fr auto;
  gap: 22px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 12px;
  background: #fff;
  flex: none;
}

.saved-row .shot { width: 240px; height: 131px; border-radius: 8px; }
.saved-row .saved-info { min-width: 0; }
.saved-row h2 { margin: 0 0 7px; font-size: 19px; font-weight: 700; letter-spacing: -0.015em; }

.saved-where { margin: 0 0 5px; font-size: 14px; color: var(--ink-soft); }

.meta-line {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13.5px;
  color: var(--ink-soft);
  margin: 0;
}

.dday { color: var(--gold); font-weight: 700; font-variant-numeric: tabular-nums; margin-left: 6px; }
.ended { color: var(--muted); font-weight: 600; margin-left: 6px; }

.row-links { display: flex; gap: 18px; margin-top: 10px; }
.row-links a, .row-links button { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-soft); text-decoration: none; }
.row-links a:hover, .row-links button:hover { color: var(--ink); text-decoration: underline; }

.my-empty { flex: 1; display: grid; place-content: center; justify-items: center; gap: 14px; text-align: center; }
.my-empty h2 { margin: 0; font-size: 19px; font-weight: 600; }
.my-empty p { margin: 0; font-size: 14px; color: var(--muted); max-width: 42ch; }

.btn.wide { width: 100%; margin-top: 22px; }

.btn.solid-sm { height: 44px; padding: 0 26px; background: var(--ink); color: var(--paper); letter-spacing: 0.06em; font-size: 13px; }

/* -------------------------------------------------------------- about -- */

/* Back sits in the same band as the title, so the title keeps the optical
 * centre of the panel instead of being pushed down a row. */
.about-head { position: relative; text-align: center; padding-top: 4px; }
.about-head .back { position: absolute; left: 0; top: 12px; }
.about-head h1 { margin: 0; font-size: clamp(32px, 4vw, 50px); font-weight: 800; letter-spacing: -0.032em; }
.about-head p { margin: 6px 0 0; font-size: 16px; color: var(--muted); }

.guides { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.guide { text-align: center; }
/* The portraits are cut-outs on the panel itself — no card, no plate. */
.guide .portrait { height: 262px; display: grid; place-items: end center; }
.guide .portrait img {
  height: 100%; width: auto; max-width: 100%; object-fit: contain; display: block;
  /* fade the cut-out into the panel so the gold rule reads as a base line,
     not a cut through the figure */
  -webkit-mask-image: linear-gradient(to bottom, #000 82%, transparent 99%);
  mask-image: linear-gradient(to bottom, #000 82%, transparent 99%);
}
.guide .rule { position: relative; height: 1px; background: linear-gradient(to right, transparent, var(--gold), transparent); opacity: 0.75; margin: 14px 0 12px; }
.guide .rule::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 7px; height: 7px;
  transform: translate(-50%, -50%) rotate(45deg); background: var(--gold);
}
.guide h2 { margin: 0 0 8px; font-size: 21px; font-weight: 700; letter-spacing: 0.06em; }
.guide p { margin: 0 auto; max-width: 250px; font-size: 13.5px; line-height: 1.6; color: var(--ink-soft); }

.steps { display: flex; align-items: center; justify-content: center; gap: 26px; padding-top: 6px; flex-wrap: wrap; }
.step { display: flex; align-items: center; gap: 12px; }
.step .ring { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--gold); color: var(--gold); display: grid; place-items: center; flex: none; }
.step h3 { margin: 0 0 2px; font-size: 15px; font-weight: 700; letter-spacing: 0.06em; }
.step p { margin: 0; font-size: 12.5px; color: var(--muted); }
.step-arrow { color: var(--muted); }

/* ------------------------------------------------------------ dialog -- */

.scrim {
  position: fixed;
  inset: 0;
  background: rgba(17, 19, 23, 0.5);
  display: grid;
  place-items: center;
  padding: 24px;
  z-index: 50;
  animation: fade 0.18s ease;
}

@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

.dialog {
  position: relative;
  width: 100%;
  background: var(--paper);
  color: var(--ink);
  border-radius: 16px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.4);
  padding: 34px 38px 30px;
  max-height: calc(100dvh - 48px);
  overflow-y: auto;
  animation: pop 0.2s cubic-bezier(0.2, 0.8, 0.3, 1);
}

@keyframes pop { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.dialog.narrow { max-width: 470px; text-align: center; }
.dialog.wide { max-width: 740px; }

.dialog-close { position: absolute; top: 16px; right: 18px; color: var(--muted); line-height: 0; }
.dialog-close:hover { color: var(--ink); }

.dialog h2 { margin: 0; font-size: 29px; font-weight: 800; letter-spacing: -0.025em; }
.dialog .sub { margin: 10px 0 0; font-size: 14.5px; color: var(--ink-soft); line-height: 1.6; }

.form { display: flex; flex-direction: column; gap: 12px; margin-top: 22px; text-align: left; }
.form .field { font-size: 12.5px; font-weight: 600; color: var(--ink-soft); }

.form .check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-soft);
  line-height: 1.45;
  cursor: pointer;
  margin-top: 2px;
}

.form .check input {
  width: 17px;
  height: 17px;
  margin: 1px 0 0;
  flex: none;
  accent-color: var(--ink);
  cursor: pointer;
}
.form input { width: 100%; height: 48px; padding: 0 14px; margin-top: 6px; border: 1px solid var(--line); border-radius: 9px; background: #fff; }
.form input::placeholder { color: #aaa49b; }

.btn.google { border: 1px solid var(--line); background: #fff; height: 50px; }
.btn.google .g { font-weight: 800; font-size: 17px; background: conic-gradient(from -45deg, #ea4335, #fbbc05, #34a853, #4285f4, #ea4335); -webkit-background-clip: text; background-clip: text; color: transparent; }

.or { display: flex; align-items: center; gap: 14px; font-size: 12.5px; color: var(--muted); margin: 4px 0; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* consent is the one thing on this form that has to be read */
.form .check { padding: 11px 12px; background: #f4f1ea; border-radius: 8px; }
.form .check a { color: var(--ink); text-underline-offset: 2px; text-decoration-thickness: 1px; }
.form .check a:hover { color: var(--gold); }
.form .check .req {
  font-size: 10.5px; font-weight: 700; letter-spacing: 0.06em;
  color: var(--gold); white-space: nowrap;
}

.fineprint { margin: 16px 0 0; font-size: 12px; color: var(--muted); line-height: 1.65; }
.fineprint a { color: var(--ink-soft); text-underline-offset: 2px; }
.form-error { margin: 10px 0 0; font-size: 13px; color: #a3282f; }

.notice { margin-top: 18px; padding: 11px 13px; border: 1px dashed var(--line); border-radius: 9px; font-size: 12px; color: var(--muted); line-height: 1.6; text-align: left; }

.success-mark { width: 54px; height: 54px; border-radius: 50%; border: 1.5px solid var(--ink); display: grid; place-items: center; margin: 0 auto 18px; }

.quick-dialog-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 28px; align-items: start; }
.quick-dialog-grid figure { margin: 0; }
.quick-dialog-grid .frame { position: relative; border-radius: 10px; overflow: hidden; aspect-ratio: 9 / 14; background: #ded9d1; }
.quick-dialog-grid img { width: 100%; height: 100%; object-fit: cover; display: block; }
.quick-dialog-grid figcaption { margin-top: 9px; font-size: 12px; color: var(--muted); }
.quick-dialog-grid h2 { font-size: 26px; }
.quick-dialog-grid .where { margin: 8px 0 0; font-size: 14px; color: var(--ink-soft); font-weight: 600; }
.quick-dialog-grid .lede { margin: 12px 0 0; font-size: 14.5px; line-height: 1.6; color: var(--ink-soft); }
.quick-dialog-grid .when { margin: 14px 0 18px; display: flex; align-items: center; gap: 8px; font-size: 13.5px; }

/* --------------------------------------------------- place and share -- */

.dialog.place, .dialog.share { text-align: left; }
.dialog.place h2, .dialog.share h2 { font-size: 26px; }
.dialog.place .sub, .dialog.share .sub { margin-top: 6px; }

.place-facts {
  margin-top: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  overflow: hidden;
}

.place-facts > div { padding: 15px 16px; }
.place-facts > div + div { border-top: 1px solid var(--line); }

.place-facts h3 {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.place-facts p { margin: 0; font-size: 13.5px; line-height: 1.6; color: var(--ink-soft); }

.share-row { display: grid; grid-template-columns: 1fr auto; gap: 10px; margin-top: 22px; }

.share-row input {
  height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  font-size: 13.5px;
  color: var(--ink-soft);
  min-width: 0;
}

.btn.copy { height: 48px; padding: 0 18px; }

.share-dests {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.share-dests a {
  flex: 1;
  min-width: 88px;
  text-align: center;
  padding: 11px 8px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-soft);
  text-decoration: none;
  transition: border-color 0.16s, color 0.16s;
}

.share-dests a:hover { border-color: var(--ink); color: var(--ink); }

/* -------------------------------------------------------------- toast -- */

.toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  background: var(--ink);
  color: var(--paper);
  font-size: 13.5px;
  padding: 11px 18px;
  border-radius: var(--radius-pill);
  z-index: 90;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* --------------------------------------------------------- boot error -- */

.boot-error { max-width: 620px; margin: 0 auto; background: var(--paper); border-radius: 14px; padding: 32px 34px; }
.boot-error h1 { margin: 0 0 12px; font-size: 22px; }
.boot-error p { margin: 0 0 10px; font-size: 14px; line-height: 1.7; color: var(--ink-soft); }
.boot-error code { display: block; margin: 12px 0; padding: 12px 14px; background: #f0ede7; border-radius: 8px; font-size: 13px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; white-space: pre-wrap; }

/* --------------------------------------------------------- responsive -- */

@media (max-width: 1080px) {
  :root { --stage-h: auto; --panel-h: auto; }
  .story-grid { grid-template-columns: repeat(2, 1fr); }
  .story-grid .card { aspect-ratio: 3 / 4.4; }
  .quick-grid { grid-template-columns: repeat(3, 1fr); grid-template-rows: none; }
  .qcard { min-height: 96px; }
  .weeks { height: auto; gap: 18px; }
  .detail-grid { grid-template-columns: 1fr; gap: 26px; }
  .detail-media, .detail-media .frame { height: auto; }
  .detail-media { max-width: 340px; }
}

@media (max-width: 820px) {
  .page { padding: 0; }
  .panel, .panel.fixed { border-radius: 0; height: auto; min-height: 100dvh; padding: 22px 20px 26px; }
  .detail-body { overflow: visible; }
  .detail-media, .detail-media .frame { height: auto; }
  .detail-media .frame { aspect-ratio: 3 / 4; }
  .home-body { grid-template-columns: 1fr; gap: 16px; }
  .stage { height: auto; }

  .weeks {
    flex-direction: row;
    justify-content: flex-start;
    gap: 0;
    overflow-x: auto;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--line);
  }

  .panel.dark .weeks { border-bottom-color: rgba(255, 255, 255, 0.12); }
  .week { text-align: left; padding: 0 20px 0 0; flex: none; }
  .week .dot, .week .stub { display: none; }

  .guides { grid-template-columns: 1fr; gap: 22px; }
  .saved-row { grid-template-columns: 1fr; }
  .saved-row .shot { width: 100%; height: 150px; }
  .quick-dialog-grid { grid-template-columns: 1fr; gap: 18px; }
  .dialog { padding: 28px 22px 24px; }
  .btn-row { grid-template-columns: 1fr; }
  .steps { flex-direction: column; align-items: flex-start; gap: 16px; }
  .step-arrow { display: none; }
}

@media (max-width: 560px) {
  .story-grid { grid-template-columns: 1fr; }
  .story-grid .card { aspect-ratio: 3 / 3.4; }
  .quick-grid { grid-template-columns: 1fr; }
  .nav { gap: 18px; }
}
