/* noticedmind.app — "Paper & Ember", the app's own journal palette and type
   (app/lib/ui/theme.dart). No third-party requests: fonts are the app's own
   OFL faces, subset to Latin. */

@font-face {
  font-family: "Fraunces";
  src: url("/fonts/Fraunces.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("/fonts/Fraunces-Italic.woff2") format("woff2");
  font-weight: 300 700;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("/fonts/SourceSans3.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #f3ebe1;
  --paper-hi: #faf5ee;
  --paper-deep: #eadfd1;
  --ink: #1c1612;
  --ink-soft: #6b5e54;
  --ember: #c4622d;
  --ember-text: #9a4a1f;
  --ember-deep: #6e3013;
  --line: #e3d5c6;
  --line-strong: #d4c2af;
  --night: #100e0c;
  --night-2: #1b1613;
  --night-ink: #f6e7d4;
  --night-soft: #c9a48a;
  --night-ember: #e08a52;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Source Sans 3", -apple-system, "Segoe UI", system-ui, sans-serif;
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1200px;
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .25 0 0 0 0 .15 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)'/%3E%3C/svg%3E");
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--paper) var(--grain);
  color: var(--ink);
  font: 400 18px/1.6 var(--sans);
  font-optical-sizing: auto;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--ember-text); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--ember); outline-offset: 3px; border-radius: 4px; }

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

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- type ---------- */
h1, h2, h3 { font-family: var(--serif); font-weight: 400; margin: 0; letter-spacing: -0.02em; }
h1 { font-size: clamp(52px, 9vw, 112px); line-height: 0.95; }
h2 { font-size: clamp(40px, 6.2vw, 78px); line-height: 0.98; }
h3 { font-size: 26px; line-height: 1.15; letter-spacing: -0.01em; }
h1 em, h2 em {
  display: block;
  font-style: italic;
  color: var(--ember-text);
  font-size: 1.14em;
  padding-left: 0.9em;
  letter-spacing: -0.025em;
}
.kicker {
  font: 600 13px/1 var(--serif);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ember-text);
  margin: 0 0 22px;
}
.dek {
  font: italic 400 clamp(20px, 2.2vw, 24px)/1.45 var(--serif);
  color: var(--ink-soft);
  max-width: 34ch;
  margin: 28px 0 0;
}
.body { color: var(--ink-soft); max-width: 46ch; }
.folio { font: italic 400 22px/1 var(--serif); color: var(--ink-soft); }

/* ---------- masthead ---------- */
.masthead {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: saturate(1.2) blur(10px);
  -webkit-backdrop-filter: saturate(1.2) blur(10px);
}
.masthead .wrap { padding-top: 14px; padding-bottom: 10px; }
.rule-double { border-top: 4px solid var(--ink); position: relative; height: 6px; }
.rule-double::after { content: ""; position: absolute; left: 0; right: 0; top: 2px; border-top: 1.5px solid var(--ink); }
.masthead nav { display: flex; align-items: center; gap: 20px; padding: 10px 0 8px; border-bottom: 1.5px solid var(--ink); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.brand img { width: 30px; height: 30px; border-radius: 8px; }
.brand span { font: 600 15px/1 var(--serif); letter-spacing: 0.24em; text-transform: uppercase; }
.issue { font: italic 400 15px/1 var(--serif); color: var(--ink-soft); display: none; }
.nav-links { display: none; list-style: none; margin: 0 0 0 auto; padding: 0; gap: 26px; }
.nav-links a { color: var(--ink); text-decoration: none; font: 600 13px/1 var(--serif); letter-spacing: 0.18em; text-transform: uppercase; }
.nav-links a:hover { color: var(--ember-text); }
.nav-cta { margin-left: auto; }
@media (min-width: 900px) {
  .issue { display: inline; }
  .nav-links { display: flex; }
  .nav-cta { margin-left: 8px; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px; border-radius: 999px;
  font: 600 16px/1 var(--sans); text-decoration: none;
  background: var(--ink); color: var(--paper);
  transition: transform .2s ease, background .2s ease;
}
.btn:hover { transform: translateY(-1px); background: #2a221c; }
.btn small { font-weight: 400; opacity: .7; font-size: 13px; }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn-ghost:hover { background: var(--paper-hi); }
.btn-sm { padding: 10px 16px; font-size: 14px; }
.btn svg { width: 18px; height: 18px; flex: none; }
.stores { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.on-night .btn { background: var(--night-ink); color: var(--night); }
.on-night .btn-ghost { background: transparent; color: var(--night-ink); box-shadow: inset 0 0 0 1.5px var(--night-ink); }

/* ---------- phone ---------- */
.phone {
  position: relative;
  width: min(300px, 72vw);
  aspect-ratio: 1320 / 2868;
  padding: 9px;
  border-radius: 50px;
  background: linear-gradient(145deg, #3a322c, #15110e 45%, #2b241f);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, .12),
    inset 0 0 0 4px #0c0a08,
    0 60px 80px -30px rgba(52, 14, 10, .45),
    0 10px 18px -6px rgba(40, 20, 10, .30);
}
.phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 42px; background: var(--paper); }
.phone-lg { width: min(340px, 76vw); }
.on-night .phone { box-shadow: inset 0 0 0 1px rgba(255,255,255,.14), inset 0 0 0 4px #0c0a08, 0 60px 90px -30px rgba(224,138,82,.28), 0 10px 18px -6px rgba(0,0,0,.6); }

figure { margin: 0; }
figcaption {
  font: italic 400 16px/1.35 var(--serif); color: var(--ink-soft);
  display: flex; gap: 12px; align-items: baseline; margin-top: 22px;
}
figcaption b { font: 600 11px/1 var(--serif); letter-spacing: .22em; text-transform: uppercase; color: var(--ink); font-style: normal; white-space: nowrap; }
figcaption b::after { content: ""; display: inline-block; width: 36px; border-top: 1px solid currentColor; vertical-align: middle; margin-left: 10px; }
.on-night figcaption { color: var(--night-soft); }
.on-night figcaption b { color: var(--night-ink); }

/* ---------- plate (the cover block behind a phone) ---------- */
.plate {
  position: absolute; z-index: 0;
  background:
    radial-gradient(70% 60% at 18% 8%, rgba(255, 220, 200, .16), transparent 60%),
    linear-gradient(180deg, #9a4a1f 0%, #8a3f19 55%, #6e3013 100%);
}
.plate::after { content: ""; position: absolute; inset: 0; background: var(--grain); opacity: .5; mix-blend-mode: multiply; }

/* ---------- hero ---------- */
.hero { position: relative; padding: 56px 0 0; overflow: clip; }
.hero-grid { display: grid; gap: 48px; align-items: end; }
.hero-figure { position: relative; display: flex; justify-content: center; padding-bottom: 56px; }
.hero-figure .plate { left: 8%; right: -40vw; top: 34%; bottom: 0; }
.hero-figure .phone { z-index: 1; }
.hero-figure figcaption { position: absolute; z-index: 1; left: calc(8% + 18px); bottom: 14px; color: var(--paper-hi); }
.hero-figure figcaption b { color: var(--paper-hi); }
.facts { display: flex; flex-wrap: wrap; gap: 8px 22px; list-style: none; padding: 0; margin: 26px 0 0; font: italic 400 17px/1.3 var(--serif); color: var(--ink-soft); }
.facts li::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--ember); margin-right: 9px; vertical-align: 2px; box-shadow: 0 0 0 4px rgba(196, 98, 45, .14); }
@media (min-width: 900px) {
  .hero { padding-top: 84px; }
  .hero-grid { grid-template-columns: 1.15fr 0.85fr; }
  .hero-copy { padding-bottom: 120px; }
  .hero-figure .plate { left: 18%; }
  .hero-figure figcaption { left: calc(18% + 22px); }
}

/* ---------- sections ---------- */
section { position: relative; }
.section { padding: clamp(80px, 11vw, 140px) 0; overflow: clip; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; border-top: 1.5px solid var(--ink); padding-top: 12px; margin-bottom: clamp(36px, 6vw, 64px); }
.section-head span { font: 600 12px/1 var(--serif); letter-spacing: .24em; text-transform: uppercase; }
.section-head .folio { font-size: 18px; }
.on-night .section-head { border-color: var(--night-ink); color: var(--night-ink); }
.on-night .section-head .folio { color: var(--night-soft); }

.night { background: var(--night) radial-gradient(60% 50% at 70% 60%, rgba(196, 98, 45, .22), transparent 70%); color: var(--night-ink); }
.night::before { content: ""; position: absolute; inset: 0; background: var(--grain); opacity: .35; mix-blend-mode: screen; pointer-events: none; }
.night h2 em { color: var(--night-ember); }
.night .dek, .night .body { color: var(--night-soft); }
.deep { background: var(--paper-deep) var(--grain); }

/* how it works */
.steps { display: grid; gap: 40px; counter-reset: step; list-style: none; padding: 0; margin: 0; }
.steps li { border-top: 1px solid var(--line-strong); padding-top: 22px; }
.steps .num { font: italic 400 64px/0.9 var(--serif); color: var(--ember-text); display: block; margin-bottom: 18px; }
.steps p { color: var(--ink-soft); margin: 12px 0 0; max-width: 34ch; }
@media (min-width: 800px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 48px; } }

/* feature rows */
.feature { display: grid; gap: 56px; align-items: center; }
.feature-figure { position: relative; display: flex; justify-content: center; }
.feature ul.points { list-style: none; padding: 0; margin: 30px 0 0; display: grid; gap: 14px; max-width: 44ch; }
.feature ul.points li { padding-left: 26px; position: relative; color: var(--ink-soft); }
.feature ul.points li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 12px; border-top: 1.5px solid var(--ember); }
.night .feature ul.points li { color: var(--night-soft); }
.night .feature ul.points li strong { color: var(--night-ink); font-weight: 600; }
.feature ul.points li strong { color: var(--ink); font-weight: 600; }
@media (min-width: 900px) {
  .feature { grid-template-columns: 1fr 1fr; gap: 80px; }
  .feature.flip .feature-copy { order: 2; }
}
.pair { display: flex; gap: 22px; justify-content: center; align-items: flex-end; }
.pair .phone { width: min(260px, 44vw); }
.pair .phone:first-child { transform: translateY(-36px); }
.glow { position: absolute; width: 560px; height: 560px; left: 50%; top: 50%; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(circle, rgba(232,128,63,.42), rgba(196,98,45,.16) 40%, transparent 70%); pointer-events: none; }
.side-plate { left: -20%; right: 38%; top: 40%; bottom: -60px; }
.side-plate.right { left: 38%; right: -20%; }

/* stages */
.stages { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; counter-reset: s; }
.stages li { display: grid; grid-template-columns: 64px 1fr; gap: 6px 16px; align-items: baseline; padding: 16px 0; border-top: 1px solid var(--line-strong); }
.stages li:last-child { border-bottom: 1px solid var(--line-strong); }
.stages .n { font: italic 400 40px/1 var(--serif); color: var(--ember-text); }
.stages h3 { font-size: 21px; }
.stages p { grid-column: 2; margin: 0; color: var(--ink-soft); font-size: 16px; }
.stages .milestone { grid-column: 1 / -1; font: 600 11px/1 var(--serif); letter-spacing: .22em; text-transform: uppercase; color: var(--ember-text); padding-top: 6px; }
@media (min-width: 900px) { .stages { grid-template-columns: 1fr 1fr; column-gap: 48px; } .stages li:nth-last-child(2) { border-bottom: 1px solid var(--line-strong); } }

/* privacy colophon */
.contents { list-style: none; padding: 0; margin: 0; }
.contents li { display: grid; grid-template-columns: 72px 1fr; align-items: baseline; gap: 16px; padding: 22px 0; border-top: 1px solid rgba(246, 231, 212, .28); }
.contents li:last-child { border-bottom: 1px solid rgba(246, 231, 212, .28); }
.contents .n { font: italic 400 48px/1 var(--serif); color: var(--night-ember); }
.contents h3 { font-size: clamp(26px, 3vw, 34px); color: var(--night-ink); }
.contents p { grid-column: 2; margin: 6px 0 0; color: var(--night-soft); font-size: 17px; }
.mark { width: 140px; height: 140px; border-radius: 50%; border: 3px solid var(--night-ink); display: grid; place-items: center; position: relative; }
.mark::before { content: ""; width: 30px; height: 30px; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #f6c08f, #e0793b 55%, #a84a1e); box-shadow: 0 0 40px 14px rgba(224, 121, 59, .4); }

/* at a glance + faq */
.glance { display: grid; grid-template-columns: max-content 1fr; gap: 10px 28px; margin: 0; }
.glance dt { font: 600 12px/1.6 var(--serif); letter-spacing: .2em; text-transform: uppercase; color: var(--ink); }
.glance dd { margin: 0; color: var(--ink-soft); }
.faq { border-top: 1.5px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--line-strong); padding: 6px 0; }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 18px; padding: 16px 0; font: 400 clamp(20px, 2.4vw, 24px)/1.25 var(--serif); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 300 28px/1 var(--serif); color: var(--ember-text); transition: transform .25s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 18px; color: var(--ink-soft); max-width: 70ch; }

/* closing CTA */
.closing { text-align: center; }
.closing h2 em { padding-left: 0; }
.closing .stores { justify-content: center; }
.closing .dek { margin-left: auto; margin-right: auto; max-width: 40ch; }

/* footer */
.site-footer { padding: 48px 0 64px; }
.site-footer .rule-double { margin-bottom: 26px; }
.footer-grid { display: grid; gap: 28px; }
.footer-grid nav { display: flex; flex-wrap: wrap; gap: 10px 24px; }
.footer-grid nav a { color: var(--ink); text-decoration: none; font: 600 12px/1.6 var(--serif); letter-spacing: .2em; text-transform: uppercase; }
.footer-grid nav a:hover { color: var(--ember-text); }
.fine { font-size: 14px; color: var(--ink-soft); max-width: 72ch; margin: 0 0 8px; }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 1fr auto; align-items: start; } }

/* ---------- document pages (privacy, support) ---------- */
.doc { max-width: 720px; margin: 0 auto; padding: 72px var(--gutter) 40px; }
.doc h1 { font-size: clamp(44px, 7vw, 72px); }
.doc h2 { font-size: 28px; margin: 44px 0 10px; letter-spacing: -0.01em; }
.doc p, .doc li { color: var(--ink-soft); }
.doc ul { padding-left: 1.2em; }
.doc li { margin-bottom: 6px; }
.doc li::marker { color: var(--ember); }
.doc strong { color: var(--ink); }
.card { background: var(--paper-hi); border: 1px solid var(--line); border-radius: 18px; padding: 22px 24px; margin: 28px 0; }
.card p:last-child { margin-bottom: 0; }

/* gentle arrival on load; nothing moves for reduced motion */
@media (prefers-reduced-motion: no-preference) {
  .rise { animation: rise .9s cubic-bezier(.2, .7, .2, 1) both; }
  .rise-2 { animation-delay: .12s; }
  .rise-3 { animation-delay: .24s; }
  @keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
}
.doc .lede { font: italic 400 clamp(20px, 2.4vw, 24px)/1.45 var(--serif); color: var(--ink-soft); margin: 22px 0 28px; }
.doc .muted { font-size: 15px; color: var(--ink-soft); }
