/* Open fallbacks for the app's Apple fonts (Iowan Old Style, Snell Roundhand). Apple devices use the real ones
   and never fetch these. Literata and Allura: SIL Open Font License 1.1, files in /fonts/. */
@font-face { font-family: "Otsuka Serif"; src: url("/fonts/literata-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Otsuka Serif"; src: url("/fonts/literata-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Otsuka Serif"; src: url("/fonts/literata-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Otsuka Serif"; src: url("/fonts/literata-700-italic.woff2") format("woff2"); font-weight: 700; font-style: italic; font-display: swap; }
@font-face { font-family: "Otsuka Script"; src: url("/fonts/allura-400.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; }

/* otsuka.bedrocklabs.dev
   The app's paper, ink and clay (Theme/Theme.swift), set larger. Light only, like the app.
   No JavaScript: the rain switch on the home page is two radio buttons. */

:root {
  --paper: #FAF6F0;
  --paper-raised: #FFFFFF;
  --paper-sunken: #F2ECE2;
  --ink: #2A2520;
  --ink-dim: #4A433B;
  --ink-soft: #6B635A;
  --ink-faint: #A8A096;
  --ink-ghost: #D9D2C5;
  --hairline: rgba(42, 37, 32, 0.12);
  --accent: #C97E5C;
  --accent-deep: #A85F40;
  --accent-wash: #F7E8DF;
  --accent-ink: #9C5738;   /* accent-deep one step darker: AA for small text on paper and sunken paper */
  --sage: #8FA68A;
  --sage-deep: #5F7350;
  --sage-wash: #EAF0E5;
  --clay: #B8645A;
  --clay-wash: #F5E4E0;
  --blue: #7C93A6;
  --blue-deep: #566B7D;
  --blue-wash: #E6ECF0;
  --night: #221E1A;

  --display: "Iowan Old Style", "Otsuka Serif", Charter, "Bitstream Charter", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --script: "Snell Roundhand", "Otsuka Script", "Apple Chancery", "Segoe Script", "URW Chancery L", cursive;
  --body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --wide: 1200px;
  --col: 680px;
  --gutter: clamp(20px, 4vw, 40px);
  --section: clamp(96px, 12vw, 168px);
  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 1px 2px rgba(42, 37, 32, 0.05), 0 6px 20px rgba(42, 37, 32, 0.06);
  --shadow-lift: 0 2px 4px rgba(42, 37, 32, 0.05), 0 24px 60px -12px rgba(42, 37, 32, 0.22);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);

  color-scheme: light;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--accent-ink); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 2px solid var(--accent-deep); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3, h4 { font-weight: 600; margin: 0; }
p { margin: 0 0 14px; }
em { font-style: normal; font-weight: 600; color: var(--ink); }
img { max-width: 100%; }

.sr {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

.icon { width: 18px; height: 18px; flex: none; }
.icon-inline { width: 1em; height: 1em; vertical-align: -0.12em; }

/* The serif, large. Regular weight: Iowan carries a headline on its own. */
.display {
  font: 400 clamp(34px, 4.4vw, 56px)/1.06 var(--display);
  letter-spacing: -0.018em;
  text-wrap: balance;
}

/* ---------- top and foot ---------- */

.top {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  max-width: var(--wide); margin: 0 auto; padding: 20px var(--gutter);
}
.wordmark {
  font: 600 27px/1 var(--display); color: var(--ink); text-decoration: none; letter-spacing: -0.4px;
}
.top nav { display: flex; gap: 28px; align-items: center; }
.top nav a { color: var(--ink-soft); text-decoration: none; font-size: 15px; font-weight: 500; }
.top nav a:hover { color: var(--ink); }
.top nav .nav-store {
  color: var(--paper); background: var(--ink); padding: 7px 14px; border-radius: 999px;
}

.foot {
  max-width: var(--wide); margin: var(--section) auto 0; padding: 32px var(--gutter) 56px;
  border-top: 1px solid var(--hairline); color: var(--ink-soft); font-size: 14px;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 40px;
}
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.foot nav a { color: var(--ink-soft); text-decoration: none; }
.foot nav a:hover { color: var(--ink); }
.foot p { margin: 0; }
.foot-made { display: flex; flex-direction: column; gap: 2px; }

/* ---------- layout (inner pages) ---------- */

.col { max-width: var(--col); margin: 0 auto; padding: 0 var(--gutter); }
.block { margin-top: 72px; }
.block h2, .aside h2 { font: 400 30px/1.15 var(--display); margin-bottom: 14px; letter-spacing: -0.01em; }
.intro { font-size: 20px; line-height: 1.55; color: var(--ink-dim); }

/* ---------- store ---------- */

.store-row { margin: 28px 0 12px; }
.store {
  display: inline-flex; align-items: center; gap: 10px; padding: 14px 24px; border-radius: 999px;
  background: var(--ink); color: var(--paper); font-weight: 600; text-decoration: none; font-size: 16px;
  transition: background 0.2s var(--ease);
}
.store:hover { color: var(--paper); background: #000; }
/* Not a button until there is somewhere to go: a status, with the accent's dot. */
.store-soon {
  background: transparent; color: var(--ink-dim); padding: 0; font-weight: 500; font-size: 15px;
  letter-spacing: 0.01em;
}
.store-soon::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-wash);
}
.store-soon:hover { background: transparent; color: var(--ink-dim); }
.store-note { font-size: 14px; color: var(--ink-soft); max-width: 520px; }
.store-note a { color: var(--ink-soft); }
.store-note a:hover { color: var(--ink); }

/* ================================================================ home */

.home section { scroll-margin-top: 24px; }

/* ---------- hero: the day, and the switch that rains on it ---------- */

.hero {
  max-width: var(--wide); margin: 0 auto; padding: clamp(8px, 2vw, 24px) var(--gutter) 0;
  display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: clamp(32px, 5vw, 80px); align-items: center;
}
.hero-title {
  font: 400 clamp(46px, 6.6vw, 80px)/0.98 var(--display);
  letter-spacing: -0.028em; margin: 0 0 32px; text-wrap: balance;
}
.hero-lede {
  font: italic 400 clamp(21px, 2vw, 26px)/1.35 var(--display); color: var(--ink-dim);
  margin: 0 0 12px; max-width: 26em;
}
.hero-intro { font-size: 18px; color: var(--ink-soft); max-width: 30em; margin: 0; }

.weather { border: 0; padding: 0; margin: 0; min-width: 0; position: relative; }
.weather-input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }

.stage {
  position: relative; display: grid; place-items: center; padding: 40px 0 32px;
}
/* Four panes behind the phone: the idea of a window, not a window. One mask cuts both the wash and the rain. */
.stage {
  --panes: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100%25' height='100%25'%3E%3Crect width='49.2%25' height='49.2%25' rx='10'/%3E%3Crect x='50.8%25' width='49.2%25' height='49.2%25' rx='10'/%3E%3Crect y='50.8%25' width='49.2%25' height='49.2%25' rx='10'/%3E%3Crect x='50.8%25' y='50.8%25' width='49.2%25' height='49.2%25' rx='10'/%3E%3C/svg%3E");
  padding: 56px 0 48px;
}
.stage::before, .stage-rain {
  content: ""; position: absolute; inset: 0 -4% 0;
  -webkit-mask: var(--panes) center / 100% 100% no-repeat; mask: var(--panes) center / 100% 100% no-repeat;
}
.stage::before { background-color: var(--blue-wash); }
.stage-rain {
  overflow: hidden; opacity: 0; transition: opacity 0.9s var(--ease);
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='173' height='211'%3E%3Cg stroke='%237C93A6' stroke-opacity='.9' stroke-width='1.2' stroke-linecap='round'%3E%3Cpath d='M20 14l-3 14'/%3E%3Cpath d='M121 63l-3 14'/%3E%3Cpath d='M66 131l-3 14'/%3E%3Cpath d='M150 180l-3 14'/%3E%3C/g%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='241' height='157'%3E%3Cg stroke='%23566B7D' stroke-opacity='.45' stroke-width='1.2' stroke-linecap='round'%3E%3Cpath d='M38 40l-3 14'/%3E%3Cpath d='M190 98l-3 14'/%3E%3Cpath d='M110 6l-3 14'/%3E%3C/g%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='97' height='263'%3E%3Cg stroke='%237C93A6' stroke-opacity='.55' stroke-width='1.2' stroke-linecap='round'%3E%3Cpath d='M50 120l-3 14'/%3E%3Cpath d='M12 230l-3 14'/%3E%3C/g%3E%3C/svg%3E");
  animation: rain 8.8s linear infinite;
}
/* The drops are drawn 12deg off vertical (they lean left going down), so the layers fall along that line.
   Each shift is a whole number of tiles in both axes, which is what makes the loop seamless:
   173x211 x(2,8), 241x157 x(1,8), 97x263 x(5,8), all within a degree of the drawn angle. */
@keyframes rain {
  from { background-position: 0 0, 0 0, 0 0; }
  to { background-position: -346px 1688px, -241px 1256px, -485px 2104px; }
}

.phone {
  position: relative; z-index: 1;
  width: 292px; height: 602px; border-radius: 50px; padding: 10px;
  background: #1D1A17;
  box-shadow:
    inset 0 0 0 1px #4A433B,
    0 0 0 1px rgba(42, 37, 32, 0.4),
    0 2px 4px rgba(42, 37, 32, 0.08),
    0 40px 80px -24px rgba(42, 37, 32, 0.45);
}
.phone-screen {
  position: relative; height: 100%; border-radius: 40px; overflow: hidden;
  background: var(--paper); font-family: var(--body); color: var(--ink);
}
.phone-screen::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 56px; z-index: 2; pointer-events: none;
  background: linear-gradient(to bottom, rgba(250, 246, 240, 0), var(--paper) 78%);
}
.phone-screen::before {
  content: ""; position: absolute; left: 50%; bottom: 8px; width: 104px; height: 4px; margin-left: -52px;
  border-radius: 999px; background: var(--ink); z-index: 3;
}
.phone-status {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 14px 10px 8px; color: var(--ink);
}
.phone-time { justify-self: center; font: 600 14px/1 var(--body); letter-spacing: -0.2px; font-variant-numeric: tabular-nums; }
.phone-island { width: 86px; height: 25px; border-radius: 999px; background: #1D1A17; }
.phone-icons { justify-self: center; display: inline-flex; align-items: center; gap: 5px; }
.si { display: block; }

.p-cover {
  margin: 4px 10px 0; height: 92px; border-radius: 22px 22px 14px 14px; padding: 12px 16px;
  background: var(--tone);
  background-image: linear-gradient(to bottom, rgba(255, 255, 255, 0.08), rgba(0, 0, 0, 0.22));
  color: #fff; display: flex; flex-direction: column; justify-content: flex-end;
}
.p-cover { position: relative; overflow: hidden; }
.p-cover > p { position: relative; z-index: 1; }
.p-kicker { font: italic 700 11.5px/1.2 var(--display); margin: 0 0 2px; opacity: 0.92; }
.p-name { font: 600 17px/1.15 var(--display); margin: 0; }

.p-strip { display: flex; gap: 6px; padding: 12px 12px 0; overflow: hidden; }
.p-chip {
  flex: none; font: 600 10.5px/1 var(--body); padding: 7px 9px; border-radius: 999px;
  background: var(--paper-sunken); color: var(--ink-soft);
}
.p-chip-on { background: var(--accent); color: #fff; }

.p-dayhead {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 14px 16px 8px;
}
.p-today { font: 600 17px/1.2 var(--display); color: var(--accent-ink); }
.p-count { font-size: 10.5px; color: var(--ink-soft); }

.p-replan { display: grid; margin: 2px 12px 8px; }
.p-ask, .p-card { grid-area: 1 / 1; transition: opacity 0.5s var(--ease), transform 0.6s var(--ease); }
.p-ask {
  background: var(--paper-sunken); border-radius: 12px; padding: 10px 12px;
  font-size: 12px; font-weight: 600; color: var(--ink-dim); align-self: start;
}
.p-card {
  background: var(--blue-wash); border-radius: 14px; padding: 10px 12px 11px;
  opacity: 0; transform: translateY(-6px); pointer-events: none;
}
.p-card-title { font: 600 13px/1.2 var(--body); margin: 0 0 3px; color: var(--blue-deep); }
.p-card-body { font-size: 11px; line-height: 1.35; color: var(--ink-dim); margin: 0 0 8px; }
.p-card-actions { display: flex; gap: 8px; align-items: center; margin: 0; }
.p-btn {
  font: 600 11px/1 var(--body); padding: 7px 12px; border-radius: 999px; background: var(--accent); color: #fff;
}
.p-btn-quiet { font: 600 11px/1 var(--body); color: var(--accent-ink); padding: 7px 4px; }
.p-btn-line {
  font: 600 11px/1 var(--body); padding: 6px 11px; border-radius: 999px;
  border: 1px solid var(--ink-ghost); color: var(--ink-dim);
}

.p-rows { list-style: none; margin: 0; padding: 0 12px; display: grid; gap: 6px; }
.p-row {
  position: relative; display: grid; grid-template-columns: 32px 1fr auto; gap: 10px; align-items: center;
  background: var(--paper-raised); border-radius: 13px; padding: 9px 10px;
  box-shadow: 0 1px 2px rgba(42, 37, 32, 0.06);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.p-tile {
  width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center;
  background: var(--sage-wash); color: var(--sage-deep);
}
.p-tile .icon { width: 15px; height: 15px; }
.p-tile.tile-food { background: var(--clay-wash); color: var(--clay); }
.p-tile.tile-transit { background: var(--paper-sunken); color: var(--ink-soft); }
.p-row-body { min-width: 0; display: flex; flex-direction: column; transition: opacity 0.6s var(--ease); }
.p-row > .p-tile { transition: opacity 0.6s var(--ease); }
.p-row-kicker { font: italic 700 10px/1.2 var(--display); color: var(--accent-ink); margin-bottom: 1px; }
.p-row-title { font: 600 12.5px/1.25 var(--body); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.p-row-meta { font-size: 10.5px; line-height: 1.3; color: var(--ink-soft); margin: 1px 0 0; }
.p-tag {
  font: italic 700 12px/1 var(--display); color: var(--blue-deep);
  opacity: 0; transform: translateX(6px); transition: opacity 0.5s var(--ease) 0.15s, transform 0.5s var(--ease) 0.15s;
}

/* It's raining: what's outdoors goes faint and says it moves, the entry row becomes the card. */
#weather-wet:checked ~ .stage .stage-rain { opacity: 1; }
#weather-wet:checked ~ .stage .p-ask { opacity: 0; transform: translateY(6px); }
#weather-wet:checked ~ .stage .p-card { opacity: 1; transform: none; }
#weather-wet:checked ~ .stage .p-out { background: rgba(255, 255, 255, 0.55); box-shadow: none; }
#weather-wet:checked ~ .stage .p-out > .p-tile,
#weather-wet:checked ~ .stage .p-out > .p-row-body { opacity: 0.45; }
#weather-wet:checked ~ .stage .p-tag { opacity: 1; transform: none; }
/* The card is taller than the row it replaces: the rows below make room. */
#weather-dry:checked ~ .stage .p-replan { grid-template-rows: 38px; }
.p-replan { grid-template-rows: 92px; transition: grid-template-rows 0.6s var(--ease); }

.weather-switch {
  display: flex; width: max-content; margin: 18px auto 0; padding: 4px; gap: 2px;
  background: var(--paper-sunken); border-radius: 999px;
  box-shadow: inset 0 0 0 1px var(--hairline);
}
.weather-switch label {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 15px; font-weight: 600; color: var(--ink-soft); padding: 9px 18px; border-radius: 999px;
  cursor: pointer; transition: background 0.3s var(--ease), color 0.3s var(--ease), box-shadow 0.3s var(--ease);
  user-select: none;
}
.weather-switch label:hover { color: var(--ink); }
#weather-dry:checked ~ .weather-switch label[for="weather-dry"],
#weather-wet:checked ~ .weather-switch label[for="weather-wet"] {
  background: var(--paper-raised); color: var(--ink); box-shadow: 0 1px 3px rgba(42, 37, 32, 0.12);
}
#weather-wet:checked ~ .weather-switch label[for="weather-wet"] { color: var(--blue-deep); }
#weather-dry:focus-visible ~ .weather-switch label[for="weather-dry"],
#weather-wet:focus-visible ~ .weather-switch label[for="weather-wet"] {
  outline: 2px solid var(--accent-deep); outline-offset: 2px;
}

/* ---------- the two answers ---------- */

.answers {
  max-width: 960px; margin: 0 auto; padding: var(--section) var(--gutter) 0; text-align: center;
}
.answers h2 { max-width: 15em; margin: 0 auto; }
.answers-grid {
  display: grid; grid-template-columns: 1fr 1fr; margin-top: clamp(48px, 6vw, 80px);
  text-align: left; border-top: 1px solid var(--hairline);
}
.answer { padding: 36px clamp(24px, 4vw, 56px) 8px 0; }
.answer + .answer { padding-left: clamp(24px, 4vw, 56px); padding-right: 0; border-left: 1px solid var(--hairline); }
.answer-kicker { font: italic 700 15px/1 var(--display); color: var(--accent-ink); margin: 0 0 8px; }
.answer-title { font: 400 clamp(30px, 3vw, 38px)/1.1 var(--display); letter-spacing: -0.01em; margin: 0 0 14px; }
.answer p:last-child { font-size: 18px; color: var(--ink-dim); margin: 0; }
.answers-foot {
  font: italic 400 clamp(20px, 2vw, 24px)/1.4 var(--display); color: var(--ink-soft);
  margin: clamp(40px, 5vw, 64px) 0 0;
}

/* ---------- every trip starts with a plan ---------- */

.plan {
  max-width: var(--wide); margin: 0 auto; padding: var(--section) var(--gutter) 0;
  display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(40px, 6vw, 96px); align-items: start;
}
.plan-copy { position: sticky; top: 48px; }
.plan-copy h2 { margin-bottom: 24px; }
.plan-copy p { font-size: 18px; color: var(--ink-dim); max-width: 26em; }
.plan-link { margin-top: 20px; }
.plan-link a { font-weight: 600; text-decoration: none; font-size: 16px; }
.plan-link a:hover { text-decoration: underline; }

.sheet {
  margin: 0; background: var(--paper-raised); border-radius: 28px;
  padding: clamp(24px, 3.5vw, 44px) clamp(20px, 3.5vw, 48px) clamp(14px, 2vw, 24px);
  box-shadow: var(--shadow-lift);
}
.sheet-head {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  padding-bottom: 18px; margin-bottom: 4px;
}
.sheet-script { font: 700 clamp(26px, 2.6vw, 34px)/1.1 var(--script); color: var(--ink); }
.sheet-day { font: italic 700 16px/1 var(--display); color: var(--accent-ink); white-space: nowrap; }

/* ---------- a day, as a timetable (home and the plan pages) ---------- */

.rows { list-style: none; margin: 0; padding: 0; }
.row {
  display: grid; grid-template-columns: 74px 30px minmax(0, 1fr); gap: 0 16px; align-items: start;
  padding: 20px 0; border-top: 1px solid var(--hairline);
}
.row-time {
  font: 500 13px/1 var(--mono); color: var(--ink-soft); white-space: nowrap; padding-top: 7px;
  font-variant-numeric: tabular-nums;
}
.tile {
  width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center;
  background: var(--sage-wash); color: var(--sage-deep);
}
.tile .icon { width: 15px; height: 15px; }
.tile-food { background: var(--clay-wash); color: var(--clay); }
.tile-transit { background: var(--paper-sunken); color: var(--ink-soft); }
.row-body { min-width: 0; }
.row-title { font: 400 21px/1.25 var(--display); letter-spacing: -0.005em; color: var(--ink); margin: 0; }
.row-blurb { font-size: 16px; color: var(--ink-dim); margin: 4px 0 0; line-height: 1.45; }
.row-meta { font-size: 13.5px; color: var(--ink-soft); margin: 5px 0 0; }

/* ---------- on the day: the dark room ---------- */

.night {
  margin-top: var(--section); background: var(--night); color: var(--paper);
  padding: var(--section) var(--gutter);
}
.night-inner {
  max-width: 1040px; margin: 0 auto;
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(48px, 8vw, 120px); align-items: center;
}
.night-stage { position: relative; display: grid; place-items: center; }
.night .phone {
  background: #0F0D0B;
  box-shadow: inset 0 0 0 1px #3A342E, 0 0 0 1px rgba(255, 255, 255, 0.07), 0 30px 60px -20px rgba(0, 0, 0, 0.6);
}
.night h2 { margin-bottom: 24px; max-width: 11em; }
.night-copy p { font-size: 18px; color: rgba(250, 246, 240, 0.78); max-width: 27em; }

.p-rail { position: relative; padding-left: 26px; }
.p-rail::before {
  content: ""; position: absolute; left: 17px; top: 6px; bottom: 0; width: 0;
  border-left: 1.5px dotted var(--ink-ghost);
}
.p-rail > li::before {
  content: ""; position: absolute; left: -13px; top: 50%; width: 7px; height: 7px; margin-top: -3.5px;
  border-radius: 50%; background: var(--ink-ghost); box-shadow: 0 0 0 3px var(--paper);
}
.p-rail > .p-now::before {
  top: 22px; width: 9px; height: 9px; margin: -4.5px 0 0 -1px; background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-wash), 0 0 0 7px var(--paper);
}
.p-rail > .p-next::before { background: var(--paper); box-shadow: inset 0 0 0 1.5px var(--accent), 0 0 0 3px var(--paper); }
.p-rail > .p-closed::before { display: none; }
.p-closed {
  grid-template-columns: 1fr auto; background: none; box-shadow: none; padding: 4px 2px; opacity: 0.6;
}
.p-closed .p-row-title { text-decoration: line-through; font-weight: 500; }
.p-check {
  position: absolute; left: -17px; top: 50%; margin-top: -7.5px; width: 15px; height: 15px; border-radius: 50%;
  background: var(--sage); color: #fff; display: grid; place-items: center;
}
.p-check .icon { width: 9px; height: 9px; stroke-width: 3.5; }
.p-closed-time { font-size: 10.5px; color: var(--ink-soft); }
.p-now {
  position: relative; background: var(--paper-raised); border-radius: 16px; padding: 12px 12px 12px;
  box-shadow: 0 1px 2px rgba(42, 37, 32, 0.06), 0 8px 18px -6px rgba(42, 37, 32, 0.14);
}
.p-now-kicker { font: italic 700 11px/1 var(--display); color: var(--accent-ink); margin: 0 0 8px; }
.p-now-top { display: flex; gap: 10px; align-items: center; }
.p-tile-lg { width: 42px; height: 42px; border-radius: 11px; }
.p-tile-lg .icon { width: 19px; height: 19px; }
.p-now-title { font: 600 17px/1.15 var(--display); margin: 0; }
.p-now-blurb { font-size: 11.5px; line-height: 1.35; color: var(--ink-dim); margin: 8px 0 2px; }
.p-now .p-card-actions { margin-top: 10px; }
.p-now .p-btn { padding: 8px 16px; }
.p-rest { background: none; box-shadow: none; padding: 5px 2px; grid-template-columns: 28px 1fr; }
.p-rest .p-tile { width: 28px; height: 28px; border-radius: 8px; }
.p-rest .p-tile .icon { width: 13px; height: 13px; }

/* ---------- the story ---------- */

.story {
  max-width: 820px; margin: 0 auto; padding: var(--section) var(--gutter) 0; text-align: center;
}
.story h2 { max-width: 14em; margin: 0 auto 22px; }
.story p { font-size: 19px; color: var(--ink-dim); max-width: 30em; margin: 0 auto; }



/* ---------- covers (TripToneBlock's card) ---------- */

.cover {
  position: relative; overflow: hidden;
  background: var(--tone);
  background-image:
    radial-gradient(120% 90% at 85% 0%, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0) 60%),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.04), rgba(0, 0, 0, 0.24));
  color: #fff; border-radius: 40px 40px 22px 22px; padding: 22px 24px 20px;
  display: flex; flex-direction: column; justify-content: flex-end;
}
.cover > :not(.photo) { position: relative; z-index: 1; }
/* A cover's photo, under CoverScrim's four stops. The tone stays behind it until it loads. */
.photo { position: absolute; inset: 0; }
.photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.photo::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.32), rgba(0, 0, 0, 0.06) 32%,
    rgba(0, 0, 0, 0.30) 60%, rgba(0, 0, 0, 0.74));
}
/* PlaceThumbnail: the photo fills the tile's square, corners and all. */
.tile-photo { overflow: hidden; background: var(--paper-sunken); }
.tile-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.cover-card { height: 230px; }
.cover-page { height: 240px; margin-top: 8px; padding: 28px 30px 24px; }
.cover-script { font: 700 30px/1.08 var(--script); margin: 0 0 6px; }
h1.cover-script { font-size: clamp(36px, 4.4vw, 48px); }
.plan-intro { margin-top: 28px; }
.cover-region { font: 600 21px/1.2 var(--display); margin: 0 0 6px; }
.cover-dates { font-size: 13px; opacity: 0.9; margin: 0; letter-spacing: 0.2px; }

.postcards {
  list-style: none; padding: 0; margin: 40px 0 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px;
}
.postcard a {
  display: block; text-decoration: none; border-radius: 40px 40px 22px 22px;
  transition: transform 0.45s var(--ease);
}
.postcard .cover { box-shadow: var(--shadow); transition: box-shadow 0.45s var(--ease); }
.postcard-0 a { transform: rotate(-1.4deg); }
.postcard-1 a { transform: rotate(1deg) translateY(10px); }
.postcard-2 a { transform: rotate(-0.6deg); }
.postcard-3 a { transform: rotate(1.3deg) translateY(8px); }
.postcard a:hover, .postcard a:focus-visible { transform: rotate(0) translateY(-6px); }
.postcard a:hover .cover, .postcard a:focus-visible .cover { box-shadow: var(--shadow-lift); }

/* ---------- price ---------- */

.price {
  max-width: 760px; margin: 0 auto; padding: var(--section) var(--gutter) 0; text-align: center;
}
.price-figures {
  display: grid; grid-template-columns: 1fr 1fr; margin: 44px 0 36px;
  border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline);
}
.figure { margin: 0; padding: 30px 12px 26px; display: flex; flex-direction: column; gap: 8px; }
.figure + .figure { border-left: 1px solid var(--hairline); }
.figure-n { font: 400 clamp(44px, 5vw, 64px)/1 var(--display); letter-spacing: -0.02em; font-variant-numeric: lining-nums; }
.figure-l { font-size: 15px; color: var(--ink-soft); }
.price > p { font-size: 17px; color: var(--ink-dim); max-width: 34em; margin-left: auto; margin-right: auto; }
.price-not { color: var(--ink-soft); }

/* ---------- closing: the paywall's cover ---------- */

.closing {
  position: relative; max-width: var(--wide); margin: var(--section) auto 0; padding: 0 var(--gutter);
}
.closing-photo { position: relative; border-radius: 56px 56px 28px 28px; overflow: hidden; }
.closing img {
  display: block; width: 100%; height: clamp(440px, 46vw, 600px); object-fit: cover; object-position: center 30%;
  filter: saturate(0.88) sepia(0.12) contrast(1.02);
}
.closing-photo::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to bottom, rgba(34, 30, 26, 0.04) 18%, rgba(34, 30, 26, 0.5) 52%, rgba(34, 30, 26, 0.8) 100%);
}
.closing-text {
  position: absolute; left: 0; right: 0; bottom: clamp(32px, 5vw, 60px); z-index: 1;
  text-align: center; color: #fff; padding: 0 var(--gutter);
}
.closing-script { font: 700 clamp(30px, 3.4vw, 44px)/1 var(--script); margin: 0 0 4px; }
.closing-name { font: 600 clamp(64px, 9vw, 120px)/0.95 var(--display); letter-spacing: -0.03em; margin: 0; }
.closing .store-row { margin: 26px 0 0; }
.closing .store-soon { color: #fff; }
.closing .store-soon::before { background: #fff; box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.25); }
.closing .store:not(.store-soon) { background: var(--paper); color: var(--ink); }

/* ================================================================ inner pages */

.crumbs { font-size: 14px; color: var(--ink-soft); margin: 12px 0 18px; }
.crumbs a { color: var(--ink-soft); text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.plan-title {
  font: 400 clamp(38px, 5vw, 56px)/1.05 var(--display); margin: 36px 0 18px; letter-spacing: -0.02em;
  text-wrap: balance;
}
main.col > .day { margin-top: 56px; }
.day-name { font: 400 28px/1.2 var(--display); color: var(--ink); letter-spacing: -0.01em; }
.day-where { color: var(--ink-soft); font-size: 14px; margin: 4px 0 14px; }

.aside {
  margin-top: 64px; background: var(--paper-sunken); border-radius: 28px; padding: 30px 30px 14px;
}
.aside h2 { font-size: 26px; }
.aside .store-row { margin-top: 20px; }
.plain { list-style: none; padding: 0; margin: 0 0 14px; }
.plain li { padding: 4px 0; }
.plan-list { margin-top: 40px; }
.plan-list li { padding: 14px 0; color: var(--ink-soft); border-top: 1px solid var(--hairline); }
.plan-list li a { font: 400 20px/1.3 var(--display); text-decoration: none; }
.plan-list li a:hover { text-decoration: underline; }
main.col > .postcards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.col .postcards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
/* Three cards (the other plans) sit in one row, a little shorter. */
.col .postcards:has(> :nth-child(3):last-child) { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.col .postcards:has(> :nth-child(3):last-child) .cover-card { height: 190px; padding: 18px; }
.col .postcards:has(> :nth-child(3):last-child) .cover-script { font-size: 24px; }
.col .postcards:has(> :nth-child(3):last-child) .cover-region { font-size: 17px; }

/* ---------- questions ---------- */

.qa { padding: 28px 0; border-bottom: 1px solid var(--hairline); }
.qa h2 { font: 400 24px/1.25 var(--display); margin-bottom: 10px; letter-spacing: -0.005em; }
.qa p { margin: 0; color: var(--ink-dim); }

/* ---------- guides ---------- */

.list li { padding: 12px 0; border-bottom: 1px solid var(--hairline); }
.list li:last-child { border-bottom: 0; }
.li-title { font: 400 19px/1.3 var(--display); }
.li-day { font-size: 14px; color: var(--ink-soft); margin-left: 6px; }
.li-day a { color: var(--ink-soft); }
.li-blurb { font-size: 15px; color: var(--ink-soft); }
.more { margin-top: 40px; }

/* ---------- comparisons ---------- */

.table-wrap { overflow-x: auto; margin: 32px 0 0; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.compare { width: 100%; border-collapse: collapse; font-size: 15px; background: var(--paper-raised); }
.compare th, .compare td { text-align: left; vertical-align: top; padding: 14px 16px; border-bottom: 1px solid var(--paper-sunken); }
.compare thead td { background: var(--paper-sunken); }
.compare thead th { font: 400 19px/1.2 var(--display); color: var(--ink); background: var(--paper-sunken); }
.compare tbody th { font-weight: 600; color: var(--ink-dim); width: 28%; }
.compare tbody tr:last-child th, .compare tbody tr:last-child td { border-bottom: 0; }
.bullets { padding-left: 20px; margin: 0; }
.bullets li { padding: 4px 0; }
.sources { margin-top: 56px; font-size: 14px; color: var(--ink-soft); }
.sources h2 { font: 400 20px/1.3 var(--display); margin-bottom: 8px; color: var(--ink-dim); }
.sources li { padding: 2px 0; word-break: break-word; }
.byline { font-size: 14px; color: var(--ink-soft); margin-top: -4px; }

/* ================================================================ smaller screens */

@media (max-width: 980px) {
  .hero { grid-template-columns: minmax(0, 1fr); }
  .hero-copy { max-width: 640px; }
  .plan { grid-template-columns: minmax(0, 1fr); }
  .plan-copy { position: static; }
  .night-inner { grid-template-columns: minmax(0, 1fr); justify-items: center; }
  .night-copy { max-width: 560px; order: -1; }
  .postcards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
  body { font-size: 16px; }
  .top { padding-top: 16px; padding-bottom: 16px; }
  .top nav { gap: 16px; }
  .top nav a { font-size: 14px; }
  .wordmark { font-size: 24px; }
  .hero-title { margin-bottom: 22px; }
  .hero-intro, .plan-copy p, .night-copy p, .answer p:last-child,   .stage { padding: 36px 0 28px; }
  .stage { padding: 36px 0 28px; }
  .stage::before, .stage-rain { inset: 0 -3px 0; }
  .answers { text-align: left; }
  .answers h2 { margin: 0; }
  .answers-grid { grid-template-columns: minmax(0, 1fr); }
  .answer, .answer + .answer { padding: 28px 0 24px; border-left: 0; }
  .answer + .answer { border-top: 1px solid var(--hairline); }
  .story { text-align: left; }
  .story h2, .story p { margin-left: 0; }
  .sheet { border-radius: 22px; margin: 0 calc(var(--gutter) * -0.5); }
  .row { grid-template-columns: 64px minmax(0, 1fr); gap: 0 12px; padding: 16px 0; }
  .row .tile { display: none; }
  .row-time { font-size: 12px; padding-top: 6px; }
  .row-title { font-size: 19px; }
  .row-blurb { font-size: 15px; }
  /* The postcards become a row you flick through. */
  .col .postcards, main.col > .postcards {
    display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 16px;
    margin-left: calc(var(--gutter) * -1); margin-right: calc(var(--gutter) * -1);
    padding: 12px var(--gutter) 24px; scroll-padding: 0 var(--gutter); scrollbar-width: none;
  }
  .postcards::-webkit-scrollbar { display: none; }
  .postcard { flex: 0 0 74%; scroll-snap-align: start; }
  .cover-card { height: 200px; }
  .price { text-align: left; }
  .price-figures { margin-top: 32px; }
  .figure { padding-left: 0; }
  .figure + .figure { padding-left: 20px; }
  .closing { padding: 0 12px; }
  .closing-photo { border-radius: 40px 40px 22px 22px; }
  .closing img { height: 460px; }
  .intro { font-size: 18px; }
  .block h2, .aside h2 { font-size: 25px; }
  .aside { padding: 24px 22px 10px; border-radius: 22px; }
  .day-name { font-size: 25px; }
  .qa h2 { font-size: 21px; }
  .compare { font-size: 14px; }
  .compare th, .compare td { padding: 10px 10px; }
  .foot { flex-direction: column; }
}

@media (max-width: 360px) {
  .phone { transform: scale(0.92); margin: -24px 0; }
}

/* Forced colours drop backgrounds and shadows: the chosen weather and the phone's edge need a line of their own. */
@media (forced-colors: active) {
  .weather-switch { border: 1px solid CanvasText; }
  #weather-dry:checked ~ .weather-switch label[for="weather-dry"],
  #weather-wet:checked ~ .weather-switch label[for="weather-wet"] {
    forced-color-adjust: none; background: Highlight; color: HighlightText;
  }
  .phone { border: 2px solid CanvasText; }
  .p-btn, .p-btn-line { border: 1px solid CanvasText; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .stage-rain { animation: none; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}

/* /go/open/: the bridge page for in-app browsers (TikTok, Instagram). Full screen, one instruction. */
.go-body { margin: 0; min-height: 100vh; background: var(--paper); }
.go {
  min-height: 100vh; box-sizing: border-box; display: flex; flex-direction: column; align-items: center;
  justify-content: center; text-align: center; gap: 18px; padding: 96px 28px 56px;
}
.go h1 { font: 600 clamp(30px, 8vw, 42px)/1.12 var(--display); letter-spacing: -0.5px; max-width: 14ch; }
.go-steps { margin: 0; font-size: 18px; line-height: 1.5; color: var(--ink-dim); max-width: 26ch; }
.go-steps b { color: var(--ink); font-weight: 600; }
.go-dots { letter-spacing: 1px; }
.go-arrow { position: absolute; top: 14px; right: 18px; width: 96px; height: 112px; color: var(--accent-deep); }
.go .store-row { margin-top: 10px; }
