/* Read Receipts' public site. It follows Grapevine's chrome (white ground, Instrument Serif headings,
   Instrument Sans text, flat ink buttons, one product colour) with oxblood in place of grape.
   Always light: a site selling a book reads as paper. */

:root {
  color-scheme: light;
  --paper: #ffffff;
  --ink: #121212;
  --muted: #565656;
  --rule: #e4e2de;
  --tile: #f4f1ec;
  --oxblood: #6b1f24;
  --mark-bg: #f3e6a6;
  --f-head: "Instrument Serif", Georgia, serif;
  --f-body: "Instrument Sans", system-ui, sans-serif;
  --site-max: 1200px;
  --gutter: clamp(16px, 4vw, 48px);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body.site {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 18px/1.6 var(--f-body);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main { flex: 1; }
[hidden] { display: none !important; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--oxblood); outline-offset: 3px; }

.skip-link {
  position: absolute; left: -9999px; top: 8px; z-index: 50;
  background: var(--ink); color: var(--paper); padding: 8px 14px; border-radius: 2px;
}
.skip-link:focus { left: 8px; }

h1, h2, h3 { font-family: var(--f-head); font-weight: 400; letter-spacing: -0.01em; margin: 0; }
h1 { font-size: clamp(44px, 6.2vw, 76px); line-height: 1.02; }
h2 { font-size: clamp(34px, 4vw, 48px); line-height: 1.08; }
h3 { font-size: 27px; line-height: 1.15; }

/* ── Header ── */

.site-head {
  position: sticky; top: 0; z-index: 30;
  background: color-mix(in srgb, var(--paper) 94%, transparent);
  -webkit-backdrop-filter: saturate(1.2) blur(10px);
  backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid var(--rule);
}
.site-head-inner {
  display: flex; align-items: center; gap: 32px;
  max-width: var(--site-max); margin: 0 auto; padding: 10px var(--gutter);
}
.site-brand {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
  text-decoration: none; font: 400 29px/1 var(--f-head); letter-spacing: -0.01em;
}
.site-brand .mark { color: var(--oxblood); transform: translateY(-1px); }
.site-nav { display: flex; gap: 28px; font: 500 16px/1 var(--f-body); }
.site-nav a {
  display: inline-flex; align-items: center; min-height: 44px; text-decoration: none;
}
.site-nav a:hover {
  text-decoration: underline; text-decoration-color: var(--oxblood);
  text-decoration-thickness: 1px; text-underline-offset: 0.35em;
}
.site-head-end { margin-left: auto; }

.site-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 0 20px; border: 0; border-radius: 2px;
  background: var(--ink); color: var(--paper);
  font: 600 16px/1.1 var(--f-body); letter-spacing: 0.005em;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color 160ms ease;
}
.site-btn:hover { background: #2c2c2c; }
.site-btn-large { min-height: 52px; padding: 0 26px; font-size: 17px; }
.site-btn-quiet { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.site-btn-quiet:hover { background: var(--ink); color: var(--paper); }

@media (max-width: 720px) {
  .site-nav { display: none; }
  .site-head-inner { gap: 12px; }
}

/* ── Hero: the copy, then a real spread ── */

.hero {
  max-width: var(--site-max); margin: 0 auto;
  padding: clamp(48px, 8vw, 104px) var(--gutter) clamp(56px, 8vw, 96px);
  display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: clamp(32px, 5vw, 72px); align-items: center;
}
.lede { font-size: 21px; line-height: 1.55; margin: 28px 0 36px; max-width: 30em; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

.spread { margin: 0; }
.spread .pages {
  display: grid; grid-template-columns: 1fr 1fr;
  background: var(--tile); padding: clamp(18px, 3vw, 36px); border-radius: 4px;
}
.spread .pages img {
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08), 0 8px 24px rgba(0, 0, 0, 0.06);
}
/* The gutter: each page darkens a touch toward the spine, as a bound book does. */
.spread .pages img:first-child {
  -webkit-mask-image: linear-gradient(to left, rgba(0,0,0,0.9), #000 6%);
  mask-image: linear-gradient(to left, rgba(0,0,0,0.9), #000 6%);
}
.spread .pages img:last-child {
  -webkit-mask-image: linear-gradient(to right, rgba(0,0,0,0.9), #000 6%);
  mask-image: linear-gradient(to right, rgba(0,0,0,0.9), #000 6%);
}
.spread figcaption { color: var(--muted); font-size: 15px; margin-top: 14px; max-width: 46em; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
}

/* ── Bands and features ── */

.band {
  border-top: 1px solid var(--rule);
  max-width: var(--site-max); margin: 0 auto;
  padding: clamp(56px, 8vw, 96px) var(--gutter);
}
.steps {
  list-style: none; margin: 40px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px;
}
.steps li { border-top: 2px solid var(--ink); padding-top: 18px; }
.steps p { margin: 10px 0 0; color: var(--muted); }
@media (max-width: 960px) { .steps { grid-template-columns: 1fr 1fr; } }

.band-lede { margin: 14px 0 0; font-size: 19px; color: var(--muted); max-width: 36em; }
.shots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 32px; margin-top: 40px; }
.shots figure { margin: 0; }
.shots img {
  display: block; width: 100%; height: auto; border-radius: 10px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08), 0 18px 40px -18px rgba(0, 0, 0, 0.35);
}
.shots figcaption { margin-top: 14px; color: var(--muted); font-size: 15px; max-width: 34em; }
@media (max-width: 760px) { .shots { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

.feature {
  border-top: 1px solid var(--rule);
  max-width: var(--site-max); margin: 0 auto;
  padding: clamp(56px, 8vw, 96px) var(--gutter);
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(32px, 6vw, 88px); align-items: center;
}
.feature-copy p { margin: 20px 0 0; font-size: 19px; max-width: 30em; }
.feature-flip .feature-copy { order: 2; }
.single {
  margin: 0; justify-self: center; width: 100%; max-width: 440px;
  background: var(--tile); padding: clamp(18px, 3vw, 36px); border-radius: 4px;
}
.single img { background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08), 0 8px 24px rgba(0, 0, 0, 0.06); }
@media (max-width: 900px) {
  .feature { grid-template-columns: 1fr; }
  .feature-flip .feature-copy { order: 0; }
}

/* The search panel, drawn the way the Mac app's results look. */
.search-mock {
  background: #fff; border: 1px solid var(--rule); border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
  padding: 14px; max-width: 520px; width: 100%; justify-self: center;
  font-size: 15px;
}
.search-field {
  display: flex; align-items: center; gap: 8px;
  background: #f1f0ee; border-radius: 8px; padding: 8px 12px; color: var(--ink);
}
.search-field svg { color: var(--muted); }
.result { padding: 14px 6px; border-bottom: 1px solid var(--rule); }
.result:last-child { border-bottom: 0; }
.result .meta { display: flex; gap: 10px; font-size: 13px; color: var(--muted); }
.result .meta span:first-child { color: var(--ink); font-weight: 500; }
.result .page { margin-left: auto; font-variant-numeric: tabular-nums; }
.result .pinned { color: var(--oxblood); font-weight: 500; }
.result p { margin: 4px 0 0; font-size: 16px; }
mark { background: var(--mark-bg); color: inherit; border-radius: 2px; padding: 0 1px; }

.privacy p { font-size: 21px; line-height: 1.55; max-width: 36em; margin: 20px 0 0; }

.closing {
  border-top: 1px solid var(--rule);
  max-width: var(--site-max); margin: 0 auto;
  padding: clamp(56px, 8vw, 104px) var(--gutter);
}
.closing p { font-size: 19px; color: var(--muted); max-width: 32em; margin: 16px 0 0; }

/* ── Footer ── */

.site-foot { border-top: 1px solid var(--rule); }
.site-foot-inner {
  max-width: var(--site-max); margin: 0 auto; padding: 22px var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  font-size: 15px; color: var(--muted);
}
.foot-brand { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; color: var(--ink); font: 400 21px/1 var(--f-head); }
.foot-brand svg { color: var(--oxblood); }
.foot-herald { text-decoration: none; font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 13px; }
.foot-herald:hover { color: var(--ink); text-decoration: underline; }

.foot-links { display: flex; flex-wrap: wrap; gap: 4px 20px; margin-right: auto; margin-left: 24px; }
.foot-links a { text-decoration: none; }
.foot-links a:hover { color: var(--ink); text-decoration: underline; }
@media (max-width: 640px) {
  .site-foot-inner { flex-wrap: wrap; }
  .foot-links { order: 3; margin: 0; width: 100%; }
}

/* ── Forms: the email list and the gift card ── */

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
/* The honeypot: off-screen for people, still in the form for bots. */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.field-input {
  min-height: 52px; padding: 0 14px; width: 100%;
  border: 1.5px solid var(--ink); border-radius: 2px; background: var(--paper); color: var(--ink);
  font: 400 18px/1.2 var(--f-body);
}
textarea.field-input { min-height: 96px; padding: 12px 14px; line-height: 1.5; resize: vertical; }
.field-input:focus-visible { outline: 2px solid var(--oxblood); outline-offset: 2px; }

.signup { display: flex; gap: 10px; max-width: 34em; margin-top: 28px; }
.signup .field-input { flex: 1; min-width: 0; }
@media (max-width: 520px) { .signup { flex-direction: column; } }
.form-status { font-size: 17px; margin: 14px 0 0; min-height: 1.6em; }
.form-status.is-error { color: var(--oxblood); }
.closing .fine, .fine { font-size: 15px; color: var(--muted); margin-top: 12px; }

.deadline { margin: 40px 0 0; font-size: 17px; color: var(--muted); max-width: 46em; }
.deadline strong { color: var(--ink); font-weight: 500; }

/* ── Inner pages: legal text, gift cards, small status pages ── */

.page {
  max-width: var(--site-max); margin: 0 auto;
  padding: clamp(40px, 7vw, 88px) var(--gutter) clamp(56px, 8vw, 104px);
}
.page-narrow { max-width: calc(44em + 2 * var(--gutter)); }
.page .lede { margin: 20px 0 0; }
.page .updated { color: var(--muted); font-size: 15px; margin: 14px 0 0; }

.legal h2 { font-size: 31px; margin: 44px 0 0; }
.legal p, .legal li { font-size: 17px; line-height: 1.65; }
.legal p { margin: 12px 0 0; }
.legal ul { margin: 12px 0 0; padding-left: 1.2em; }
.legal li + li { margin-top: 6px; }
.legal .placeholder { background: var(--mark-bg); padding: 0 3px; border-radius: 2px; }

.gift-grid {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(32px, 6vw, 88px); align-items: start; margin-top: clamp(40px, 5vw, 64px);
}
@media (max-width: 900px) { .gift-grid { grid-template-columns: 1fr; } }
.gift-grid h2 { font-size: 31px; }
.gift-steps { margin: 16px 0 0; padding-left: 1.2em; }
.gift-steps li { margin-top: 8px; }
.dates { width: 100%; border-collapse: collapse; margin-top: 16px; font-size: 17px; }
.dates th, .dates td { text-align: left; padding: 10px 0; border-bottom: 1px solid var(--rule); font-weight: 400; }
.dates td { text-align: right; font-weight: 500; font-variant-numeric: tabular-nums; }

.gift-form { display: grid; gap: 18px; margin-top: 16px; }
.gift-form fieldset { border: 0; margin: 0; padding: 0; display: grid; gap: 10px; }
.gift-form legend, .gift-form .label { font-weight: 500; font-size: 16px; margin-bottom: 6px; padding: 0; }
.gift-form .hint { font-weight: 400; color: var(--muted); }
.choice {
  display: flex; gap: 12px; align-items: baseline; cursor: pointer;
  border: 1.5px solid var(--rule); border-radius: 2px; padding: 14px 16px;
}
.choice:has(input:checked) { border-color: var(--ink); }
.choice input { accent-color: var(--oxblood); }
.choice .price { margin-left: auto; font-variant-numeric: tabular-nums; font-weight: 500; }
.choice small { display: block; color: var(--muted); font-size: 15px; }
.gift-form .two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 520px) { .gift-form .two { grid-template-columns: 1fr; } }
.gift-form button[disabled] { opacity: 0.45; cursor: not-allowed; }
.callout { background: var(--tile); border-radius: 4px; padding: 14px 18px; font-size: 17px; margin: 0 0 8px; }

/* The card itself: the top half of a letter page when printed, cut along its edge. */
.gift-card {
  width: 100%; max-width: 7.5in; aspect-ratio: 7.5 / 4.75;
  border: 1px solid var(--rule); border-radius: 4px; background: var(--paper);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06), 0 12px 32px rgba(0, 0, 0, 0.07);
  padding: clamp(18px, 4vw, 0.45in); margin: 28px 0;
  display: grid; grid-template-rows: auto 1fr auto; gap: 12px;
}
.gift-card .card-brand { display: flex; align-items: center; gap: 8px; font: 400 22px/1 var(--f-head); }
.gift-card .card-brand svg { color: var(--oxblood); }
.gift-card .card-value { margin-left: auto; font: 500 13px/1 var(--f-body); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.gift-card .card-to { font: 400 clamp(30px, 5vw, 44px)/1.05 var(--f-head); margin: 0; }
.gift-card .card-message { font: italic 400 clamp(18px, 2.4vw, 22px)/1.35 var(--f-head); margin: 10px 0 0; white-space: pre-line; }
.gift-card .card-from { margin: 10px 0 0; font-size: 16px; }
.gift-card .card-foot { display: grid; grid-template-columns: auto 1fr; gap: 6px 20px; align-items: end; border-top: 1px solid var(--rule); padding-top: 12px; }
.gift-card .card-code { font: 600 clamp(16px, 2.4vw, 21px)/1.2 ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: 0.04em; color: var(--oxblood); }
.gift-card .card-how { font-size: 13px; line-height: 1.45; color: var(--muted); margin: 0; }

@media print {
  @page { size: letter; margin: 0.5in; }
  body.site { display: block; font-size: 12pt; }
  .site-head, .site-foot, .skip-link, .no-print { display: none !important; }
  .page { padding: 0; }
  .gift-card { box-shadow: none; border: 1px dashed #999; border-radius: 0; margin: 0; width: 7.5in; height: 4.75in; padding: 0.4in; break-inside: avoid; }
  .gift-card .card-to { font-size: 34pt; }
  .gift-card .card-message { font-size: 15pt; }
  .gift-card .card-code { font-size: 15pt; }
  .gift-card .card-how { font-size: 9pt; color: #333; }
}
.gift-grid .gap { margin-top: 48px; }
.page .actions { margin-top: 28px; }

/* ── Wrapped (/wrapped/): story cards in a row, the lists, the rewards ── */

.wrapped-intro { padding-bottom: clamp(40px, 6vw, 72px); }
.wrapped-intro .lede { max-width: 32em; }
.wrapped-note { font-size: 17px; color: var(--muted); max-width: 40em; margin: 18px 0 32px; }

/* A row of 9:16 cards. On a phone it scrolls sideways on its own; the page never does. */
.story-row {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr);
  gap: clamp(14px, 2vw, 24px); margin-top: 32px; align-items: start;
}
.story-card { margin: 0; }
.story-card img, .story-card video {
  width: 100%; height: auto; aspect-ratio: 9 / 16; object-fit: cover;
  border-radius: 2px; background: var(--tile);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08), 0 8px 24px rgba(0, 0, 0, 0.06);
}
.story-card-square img { aspect-ratio: 1 / 1; }
@media (max-width: 760px) {
  .story-row {
    grid-auto-columns: 62%;
    overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory;
    margin-left: calc(-1 * var(--gutter)); margin-right: calc(-1 * var(--gutter));
    padding: 4px var(--gutter) 20px; scroll-padding: 0 var(--gutter);
  }
  .story-card { scroll-snap-align: start; }
}

.wrapped-lists { display: grid; grid-template-columns: 1fr 1fr; gap: 32px 48px; margin-top: 48px; }
@media (max-width: 760px) { .wrapped-lists { grid-template-columns: 1fr; } }
.wrapped-list { margin: 12px 0 0; padding-left: 1.2em; }
.wrapped-list li + li { margin-top: 6px; }
.wrapped-formats-title { margin-top: 40px; }

.steps-three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 960px) { .steps-three { grid-template-columns: 1fr; } }
.wrapped-soon { margin-top: 24px; max-width: 46em; }
.wrapped-disclose { margin: 40px 0 0; font-size: 17px; max-width: 46em; }
.wrapped-discord p { margin: 0; font-size: 19px; }
.wrapped-discord { padding-top: 40px; padding-bottom: 40px; }

/* The rules page: "No purchase necessary" set in capitals, as rules print it. */
.legal .caps { text-transform: uppercase; letter-spacing: 0.03em; font-weight: 600; }
.legal .draft-note { margin-top: 20px; }
.legal ol { margin: 12px 0 0; padding-left: 1.4em; }
.legal ol li + li { margin-top: 6px; }

/* The maker (wrapped/make/) has its own sheet, make.css. */
  display: grid; gap: 4px; padding: 28px; border: 1.5px dashed var(--rule); border-radius: 4px;
  background: var(--tile); cursor: pointer;
}
  width: 100%; text-align: left; font: inherit; background: var(--paper); color: var(--ink);
  border: 1px solid var(--rule); border-radius: 4px; padding: 14px 18px; cursor: pointer;
  display: flex; justify-content: space-between; gap: 16px;
}
  display: block; width: min(100%, 380px); height: auto; margin: 0 auto; border-radius: 2px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08), 0 8px 24px rgba(0, 0, 0, 0.06);
}
  display: inline-flex; align-items: center; gap: 6px; font-size: 14px; padding: 4px 10px 4px 4px;
  border: 1px solid var(--rule); border-radius: 2px; cursor: pointer;
}
  display: block; width: 100%; font: inherit; padding: 8px 10px; border: 1px solid var(--rule); border-radius: 2px; margin-top: 4px;
}

/* A friend's code, from readreceipts.lol/r/<code>. */
.friend-banner { max-width: var(--site-max); margin: 0 auto; padding: 12px var(--gutter); background: var(--tile); font-size: 16px; }

