/* usorium.com — the public site. Same keepsake palette as the app
   (src/styles.css): ivory paper, deep red, pine highlights, Fraunces. */

/* Fraunces, self-hosted (the app's @fontsource files): no third-party font
   request, same axes (opsz, wght, SOFT, WONK). SIL Open Font License. */
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(/fonts/fraunces-latin-full-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+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Fraunces';
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url(/fonts/fraunces-latin-full-italic.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+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #f3ecdb;
  --bg-deep: #eae0c9;
  --card: #fffbf0;
  --card-2: #f3ead6;
  --line: rgba(61, 52, 37, 0.16);
  --ink: #2b2620;
  --ink-dim: #6e6557;
  --ink-faint: rgba(43, 38, 32, 0.5);
  --red: #b02532;
  --red-deep: #8c1220;
  --gold: #7d6238;
  --pine: #14503c;
  --pine-hover: #1c5a44;
  --pine-ink: #f4efe2;
  --serif: 'Fraunces', Georgia, 'Iowan Old Style', 'Times New Roman', serif;
  --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --shadow: 0 1px 2px rgba(61, 52, 37, 0.12), 0 10px 24px rgba(96, 78, 46, 0.16);
  --shadow-deep: 0 24px 60px rgba(96, 78, 46, 0.28);
  --radius: 14px;
  --gutter: 20px;
  --max: 1120px;
}

* { box-sizing: border-box; }
html { background: var(--bg); scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--red); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--red-deep); }
::selection { background: rgba(176, 37, 50, 0.18); }

.serif, h1, h2, h3, .wordmark, .step-n, .scene h3, .faq summary {
  font-family: var(--serif);
  font-variation-settings: 'opsz' 40, 'SOFT' 60, 'WONK' 0;
  font-weight: 500;
  letter-spacing: -0.005em;
}
h1, h2 { font-style: italic; }
h1 { font-size: clamp(38px, 6.2vw, 68px); line-height: 1.02; margin: 0 0 20px; }
h2 { font-size: clamp(30px, 4.2vw, 46px); line-height: 1.08; margin: 0 0 18px; }
h3 { font-size: 22px; line-height: 1.2; margin: 0 0 8px; }
p { margin: 0 0 1em; }
.lede { font-size: clamp(18px, 2vw, 21px); color: var(--ink-dim); max-width: 34em; }
.kicker {
  font: 700 12px/1 var(--sans);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 14px;
}
.kicker .dot { color: var(--red); }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.muted { color: var(--ink-dim); }
.small { font-size: 14px; }

/* ---------- header ---------- */
.top {
  position: sticky; top: 0; z-index: 20;
  background: rgba(243, 236, 219, 0.88);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.wordmark { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-size: 24px; font-style: italic; }
.wordmark img { width: 26px; height: 26px; }
.nav { display: flex; align-items: center; gap: 22px; }
.nav a { color: var(--ink-dim); text-decoration: none; font-size: 15px; }
.nav a:hover { color: var(--ink); }
@media (max-width: 640px) { .nav .hide-sm { display: none; } }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px; border-radius: 999px; border: 1px solid transparent;
  font: 600 16px/1 var(--sans); text-decoration: none; cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-red { background: linear-gradient(180deg, #c52b3a, #9a1626); color: #fff8ef; box-shadow: 0 4px 10px rgba(122, 15, 27, 0.25); }
.btn-red:hover { color: #fff8ef; box-shadow: 0 6px 16px rgba(122, 15, 27, 0.32); }
.btn-ghost { background: var(--card); color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { color: var(--ink); background: #fff; }
.btn-sm { padding: 9px 16px; font-size: 14px; }

/* ---------- hero ---------- */
.hero { padding: clamp(40px, 7vw, 96px) 0 clamp(24px, 4vw, 56px); overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 40px; align-items: center; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 26px 0 10px; }
.hero-note { color: var(--ink-faint); font-size: 14px; margin: 0; }
.hero-art { position: relative; height: clamp(420px, 56vw, 640px); }
.hero-art .phone { position: absolute; }
.hero-art .p1 { left: 50%; top: 0; transform: translateX(-62%) rotate(-3deg); width: clamp(220px, 28vw, 300px); z-index: 2; }
.hero-art .p2 { left: 50%; top: 9%; transform: translateX(8%) rotate(5deg) scale(0.88); width: clamp(200px, 25vw, 270px); z-index: 1; opacity: 0.96; }
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 28px; }
  .hero-art { height: auto; display: flex; justify-content: center; gap: 14px; padding: 10px 0 0; }
  .hero-art .phone { position: static; transform: none; }
  .hero-art .p1 { width: 46%; max-width: 260px; }
  .hero-art .p2 { width: 40%; max-width: 230px; margin-top: 36px; }
}

/* ---------- phone frame ---------- */
.phone {
  background: #2b2620; border-radius: 40px; padding: 10px;
  box-shadow: var(--shadow-deep);
  aspect-ratio: 393 / 660;
}
.phone .screen {
  position: relative; width: 100%; height: 100%; border-radius: 31px; overflow: hidden; background: var(--bg);
  /* a status-bar's worth of paper above the page, so the island covers nothing */
  padding-top: 11%;
}
.phone .screen::before {
  content: ''; position: absolute; left: 50%; top: 9px; width: 30%; height: 20px;
  transform: translateX(-50%); border-radius: 999px; background: #2b2620; z-index: 2;
}
.phone .screen img { width: 100%; height: 100%; object-fit: cover; object-position: top; }

/* ---------- sections ---------- */
section { padding: clamp(48px, 7vw, 96px) 0; }
section + section { border-top: 1px solid var(--line); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
@media (max-width: 860px) { .two { grid-template-columns: 1fr; gap: 20px; } }
.prose p { max-width: 36em; }
.prose p + p { margin-top: 0; }

/* the ticket: a nod to the app's "admit two" card */
.ticket {
  display: grid; grid-template-columns: 56px 1fr; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
}
.ticket .stub {
  background: linear-gradient(180deg, #c52b3a, #9a1626); color: #fff8ef;
  writing-mode: vertical-rl; transform: rotate(180deg);
  display: flex; align-items: center; justify-content: center;
  font: 700 12px/1 var(--sans); letter-spacing: 0.18em; text-transform: uppercase; padding: 14px 0;
}
.ticket .body { padding: 22px 24px; }
.ticket .big { font-family: var(--serif); font-size: 56px; line-height: 1; color: var(--red); font-variation-settings: 'opsz' 60, 'SOFT' 60; }
.ticket .big small { font: 500 18px/1 var(--sans); color: var(--ink); margin-left: 6px; }
.ticket .label { font-family: var(--serif); font-style: italic; color: var(--gold); font-size: 18px; }

/* steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 28px; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }
.step { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 22px 20px; box-shadow: var(--shadow); }
.step-n { font-size: 40px; line-height: 1; color: var(--red); font-style: italic; margin-bottom: 10px; }
.step h3 { font-size: 21px; }
.step p { color: var(--ink-dim); margin: 0; }

/* scenes */
.scenes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px 22px; margin-top: 30px; }
@media (max-width: 960px) { .scenes { grid-template-columns: repeat(2, 1fr); } }
.scene .phone { width: 78%; margin: 0 auto 16px; border-radius: 30px; padding: 7px; }
.scene .phone .screen { border-radius: 24px; }
.scene .phone .screen::before { height: 14px; top: 7px; }
.scene h3 { font-size: 21px; font-style: italic; margin-bottom: 6px; }
.scene p { color: var(--ink-dim); margin: 0; font-size: 16px; }
.scene .when { font: 700 11px/1 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); margin-bottom: 8px; }
@media (max-width: 560px) {
  .scenes { grid-template-columns: 1fr; gap: 34px; }
  .scene { display: grid; grid-template-columns: 42% 1fr; gap: 16px; align-items: center; }
  .scene .phone { width: 100%; margin: 0; }
}

/* private */
.seal {
  width: 64px; height: 64px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #d03443, #9a1626 60%, #7a0f1b);
  box-shadow: 0 4px 10px rgba(122, 15, 27, 0.35); display: grid; place-items: center; margin-bottom: 18px;
}
.seal img { width: 28px; height: 28px; filter: brightness(0) invert(1); opacity: 0.95; }
.promise { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 26px; }
@media (max-width: 860px) { .promise { grid-template-columns: 1fr; } }
.promise div { background: var(--card-2); border-radius: var(--radius); padding: 18px 20px; }
.promise strong { display: block; font-family: var(--serif); font-size: 20px; font-weight: 500; margin-bottom: 6px; }
.promise p { margin: 0; color: var(--ink-dim); font-size: 16px; }

/* browser callout */
.callout { background: var(--card); border: 1px dashed rgba(61, 52, 37, 0.35); border-radius: var(--radius); padding: 22px 24px; display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: center; justify-content: space-between; }
.callout p { margin: 0; max-width: 42em; }

/* faq */
.faq { max-width: 760px; }
.faq details { border-top: 1px solid var(--line); padding: 4px 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 16px 36px 16px 0; font-size: 20px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 4px; top: 12px; font: 300 28px/1 var(--sans); color: var(--red); transition: transform 0.2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--ink-dim); margin: 0 0 18px; max-width: 40em; }

/* closing */
.closing { text-align: center; }
.closing .lede { margin: 0 auto 26px; }
.closing .hero-cta { justify-content: center; }

/* footer */
footer { border-top: 1px solid var(--line); padding: 36px 0 48px; color: var(--ink-dim); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; justify-content: space-between; }
footer nav { display: flex; flex-wrap: wrap; gap: 18px; }
footer a { color: var(--ink-dim); text-decoration: none; }
footer a:hover { color: var(--ink); }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn { transition: none; } }
