/* Dearly: washi by day with one indigo night, in the app's own colours, type and coin. */

@font-face {
  font-family: "Source Serif 4";
  font-style: normal;
  font-weight: 300 400;
  font-display: swap;
  src: url(/fonts/source-serif-4.woff2) format("woff2");
}

:root {
  --washi: #F4EFE6;
  --paper: #EBE4D7;
  --ink: #1C1A17;
  --muted: #5C554A;
  --line: #D9D0C1;
  --indigo: #233A6B;
  --night: #10141F;
  --pale: #E9E7E1;
  --pale-muted: #9DA3B3;
  --serif: ui-serif, "Source Serif 4", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, system-ui, "Segoe UI", sans-serif;
  --gutter: clamp(20px, 5vw, 64px);
  color-scheme: only light;
}

html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--washi); color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 1.55;
       -webkit-font-smoothing: antialiased; overflow-wrap: break-word; }
::selection { background: var(--indigo); color: var(--washi); }
.w { max-width: 1120px; margin: 0 auto; padding-inline: var(--gutter); }
h1, h2, .serif { font-family: var(--serif); font-weight: 300; font-optical-sizing: auto; letter-spacing: -0.02em; text-wrap: balance; }
.num { font-variant-numeric: tabular-nums lining-nums; }
a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:focus-visible { outline: 2px solid var(--indigo); outline-offset: 4px; border-radius: 6px; }
p { margin: 0; }
.lead { color: var(--muted); max-width: 44ch; text-wrap: pretty; }
h2 { font-size: clamp(34px, 4.4vw, 56px); line-height: 1.05; margin: 0 0 18px; }
.defs { position: absolute; width: 0; height: 0; }

/* The phone: an iPhone, not a black slab */
.iphone { --pw: 290px; width: min(var(--pw), 78vw); aspect-ratio: 9 / 19.2; box-sizing: border-box; padding: 9px; border-radius: 46px;
          background: linear-gradient(145deg, #3A3936, #1E1D1B 45%, #2C2B28); position: relative; flex: none;
          box-shadow: 0 1px 0 1px rgba(255,255,255,.06) inset, 0 28px 60px -18px rgba(28,26,23,.35), 0 10px 20px -10px rgba(28,26,23,.25); }
.iphone.hero-phone { --pw: 300px; }
.iphone::before, .iphone::after { content: ""; position: absolute; left: -2px; width: 3px; border-radius: 2px; background: #2A2926; }
.iphone::before { top: 19%; height: 7%; }
.iphone::after { top: 28%; height: 11%; }
.screen { height: 100%; border-radius: 38px; overflow: hidden; background: var(--washi); color: var(--ink); position: relative; }
.night .screen { background: var(--night); color: var(--pale); }
.sbar { height: 7.2%; display: flex; align-items: center; justify-content: space-between; padding: 0 9% 0 12%;
        font-size: clamp(10px, 1.05vw, 13px); font-weight: 600; }
.sbar svg { height: 0.95em; width: 4.3em; fill: currentColor; }
.island { position: absolute; top: 2.2%; left: 50%; transform: translateX(-50%); width: 31%; height: 3.6%; background: #000; border-radius: 999px; }
.screen img { display: block; width: 100%; height: auto; }

/* Header and footer */
.top { display: flex; justify-content: space-between; align-items: center; padding-block: 26px; }
.mark { display: flex; align-items: center; gap: 10px; font-family: var(--serif); font-size: 22px; letter-spacing: -0.01em; text-decoration: none; }
.mark svg { width: 30px; height: 30px; color: var(--indigo); }
.top nav { display: flex; gap: 22px; font-size: 15px; color: var(--muted); }
.top nav a { text-decoration: none; padding: 6px 0; }
.top nav a[aria-current="page"] { color: var(--ink); }
footer { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; padding-block: 22px 32px; border-top: 1px solid var(--line);
         font-size: 14px; color: var(--muted); }
footer nav { display: flex; gap: 20px; }

/* Hero */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(32px, 6vw, 88px); align-items: center;
        padding-block: clamp(32px, 6vw, 72px) clamp(56px, 8vw, 104px); }
h1 { font-size: clamp(42px, 6.4vw, 84px); line-height: 1.03; margin: 0 0 24px; }
.cta { display: inline-flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: 2px 10px; border: 1.5px solid var(--indigo);
       color: var(--indigo); border-radius: 999px; padding: 13px 22px; font-size: 16px; font-weight: 600; margin-top: 26px; }
.cta span, .cta small { white-space: nowrap; }
.cta small { font-weight: 400; color: var(--muted); font-size: 14px; }
.fine { font-size: 14px; color: var(--muted); margin-top: 14px; }

/* Feature rows */
.row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(32px, 7vw, 112px); align-items: center; padding-block: clamp(56px, 8vw, 104px); }
.row.flip { grid-template-columns: auto minmax(0, 1fr); }
.row.flip > .iphone { order: -1; }
.noticed { list-style: none; margin: 30px 0 0; padding: 0; }
.noticed li { font-family: var(--serif); font-weight: 300; font-size: clamp(22px, 2.4vw, 30px); line-height: 1.32; letter-spacing: -0.012em;
              padding: 18px 0; border-top: 1px solid var(--line); max-width: 30ch; text-wrap: pretty; }
.of { font-family: var(--serif); font-weight: 300; font-size: clamp(56px, 7.4vw, 96px); line-height: 1; letter-spacing: -0.03em; margin: 8px 0 18px; }
.of span { color: var(--muted); }

/* Your October, told back: the one night band */
.night { background: var(--night); color: var(--pale); }
.night .lead { color: var(--pale-muted); }
.pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin: 36px 0 0; max-width: 460px; }
.pair figure { margin: 0; }
.pair img { width: 100%; height: auto; aspect-ratio: 9 / 11; object-fit: cover; object-position: 50% 62%; border-radius: 14px;
            border: 1px solid #262D40; display: block; }
.pair figcaption { font-size: 14px; color: var(--pale-muted); margin-top: 10px; }

/* Kept: the privacy promise */
.kept { background: var(--paper); padding-block: clamp(64px, 9vw, 120px); }
.promise { font-size: clamp(32px, 4.2vw, 52px); line-height: 1.08; max-width: 20ch; margin: 0 0 32px; }
.plain { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; max-width: 920px; }
.plain p { color: var(--muted); font-size: 16px; text-wrap: pretty; }
.plain b { color: var(--indigo); font-weight: 600; }

/* Close */
.close { padding-block: clamp(72px, 10vw, 144px) clamp(48px, 6vw, 72px); display: grid; grid-template-columns: auto minmax(0, 1fr);
         gap: clamp(24px, 4vw, 48px); align-items: center; }
.close > svg { width: clamp(88px, 11vw, 140px); height: auto; aspect-ratio: 1; color: var(--indigo); }
.close .big { font-family: var(--serif); font-weight: 300; font-size: clamp(46px, 7vw, 92px); line-height: 1; letter-spacing: -0.03em; }

/* Privacy, Support and Not found: pages to read, at a reading measure */
.doc { max-width: 680px; padding-block: clamp(24px, 4vw, 48px) clamp(64px, 8vw, 104px); }
.doc h1 { font-size: clamp(44px, 6vw, 68px); margin: 0 0 14px; }
.doc .updated { color: var(--muted); font-size: 15px; margin-bottom: 36px; }
.doc h2 { font-size: clamp(26px, 3vw, 32px); line-height: 1.15; margin: 52px 0 12px; }
.doc p, .doc li { max-width: 64ch; text-wrap: pretty; }
.doc p + p { margin-top: 14px; }
.doc ul, .doc ol { margin: 12px 0 0; padding-left: 1.25em; }
.doc li { margin: 8px 0; }
.doc li::marker { color: var(--muted); }
.doc a { color: var(--indigo); }
.doc b { font-weight: 600; }
.doc .lead { margin-bottom: 18px; }
.short { background: var(--paper); border-radius: 18px; padding: 22px 26px; }
.short p { font-family: var(--serif); font-weight: 300; font-size: clamp(20px, 2.2vw, 24px); line-height: 1.35; letter-spacing: -0.01em; }
.short p + p { margin-top: 10px; }
.faq h2 { font-family: var(--sans); font-weight: 600; font-size: 19px; letter-spacing: 0; margin: 40px 0 8px; }
.write { display: inline-flex; align-items: center; border: 1.5px solid var(--indigo); color: var(--indigo); border-radius: 999px;
         padding: 13px 22px; font-size: 16px; font-weight: 600; text-decoration: none; margin-top: 8px; }

@media (max-width: 760px) {
  .hero, .row, .row.flip, .close { grid-template-columns: minmax(0, 1fr); }
  .row.flip > .iphone { order: 0; }
  .iphone { justify-self: center; }
  .plain { grid-template-columns: minmax(0, 1fr); gap: 16px; }
}
