:root {
  --bg: #F4F0E8; --card: #E8E1D3; --highlight: #FAF8F3; --ink: #1C1B19; --on-ink: #F4F0E8;
  --muted: #6E685F; --border: #D6CEC0; --fjord: #547A6B; --on-fjord: #F4F0E8; --oxblood: #C44F51; --cream: #F4F0E8;
  --serif: "New York", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #161513; --card: #24221E; --highlight: #2D2A25; --ink: #F1EDE6; --on-ink: #1C1B19;
          --muted: #A59E92; --border: #38342D; --fjord: #547A6B; --on-fjord: #F4F0E8; --oxblood: #C44F51; --cream: #F4F0E8; }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.7 var(--sans); }
main { max-width: 680px; margin: 0 auto; padding: 48px 20px 64px; }
nav { display: flex; gap: 20px; align-items: baseline; margin-bottom: 56px; }
nav .brand { font: 600 24px var(--serif); color: var(--ink); text-decoration: none; margin-right: auto; }
nav a { color: var(--ink); text-decoration: none; }
nav a:hover, nav a[aria-current] { color: var(--ink); }
h1 { font: 600 clamp(48px, 12vw, 88px)/1 var(--serif); margin: 0 0 12px; letter-spacing: -0.02em; }
h2 { font: 600 26px/1.25 var(--serif); margin: 40px 0 8px; }
h3 { font: 600 19px/1.3 var(--serif); margin: 28px 0 4px; }
.phon { font: italic 19px var(--serif); color: var(--muted); }
.definition { font: 24px/1.45 var(--serif); margin: 8px 0 40px; }
.card { background: var(--card); border: 1px solid var(--border); border-radius: 24px; padding: 24px; margin: 24px 0; }
/* The reality check: Fjordgrün, the colour of the cross. Same in light and dark. */
.days { background: var(--fjord); color: var(--on-fjord); border: none; margin: 48px 0; padding: 28px; }
.days .big { font: 600 56px/1 var(--serif); font-variant-numeric: tabular-nums; margin-bottom: 8px; }
.days div:last-child { font-weight: 500; }
.button { display: inline-block; background: var(--ink); color: var(--on-ink); padding: 12px 24px; border-radius: 999px;
          font-weight: 500; text-decoration: none; }
.muted { color: var(--muted); }
/* Links are ink with a quiet underline, like the rest of the type. Green is kept for growth and goals. */
a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--border); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--ink); }
footer a { color: var(--muted); }
ul { padding-left: 1.2em; }
footer { margin-top: 64px; padding-top: 20px; border-top: 1px solid var(--border); color: var(--muted); font-size: 14px; }

/* A band of slim vertical ribs along the top, like a wall clad in wooden slats: pattern, not picture. */
.ribs {
  height: 56px;
  background:
    linear-gradient(to bottom, transparent 55%, var(--bg)),
    repeating-linear-gradient(90deg, var(--card) 0 10px, var(--border) 10px 11px, var(--card) 11px 12px);
  border-bottom: 1px solid var(--border);
}
.ribs.tall { height: 140px; }
.ribs + main { padding-top: 32px; }

/* The wordmark: the dot over the i is a small, sharp cross. No, don't buy it. */
.mark { white-space: nowrap; }
.mark .i { position: relative; display: inline-block; }
.mark .x { position: absolute; left: 50%; top: -0.06em; transform: translateX(-50%); font-size: 0.42em; line-height: 1; color: var(--fjord); font-family: var(--sans); font-weight: 600; }
nav .brand .x { top: -0.12em; font-size: 0.55em; }

/* What the app does: flat cards, a joint around each. */
.features { display: grid; gap: 16px; margin: 56px 0; }
@media (min-width: 640px) { .features { grid-template-columns: repeat(3, 1fr); } }
.features .card { margin: 0; }
.features h3 { margin: 0 0 6px; }
.features p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.6; }

/* Progress as slim vertical bars rising to a goal line, like slats. No numbers. */
.growth { display: block; width: 100%; height: auto; margin: 56px 0 8px; }
.growth .bar { fill: var(--ink); }
.growth .goal { stroke: var(--fjord); stroke-width: 2; stroke-dasharray: 6 6; }
.growth .label { fill: var(--muted); font: 13px var(--sans); }

/* The offline AI: matt black, like the steel, so it reads as the core promise. */
.offline { background: var(--ink); color: var(--on-ink); border: none; padding: 32px; margin: 56px 0; }
.offline h2 { margin-top: 4px; }
.offline p, .offline li { color: var(--on-ink); opacity: 0.9; }
.offline ul { margin: 16px 0 0; padding-left: 1.1em; }
.offline li { margin: 8px 0; }
.offline strong { opacity: 1; }
.eyebrow { font: 600 13px var(--sans); letter-spacing: 0.08em; text-transform: uppercase; color: var(--fjord); }

/* iCloud: plain facts in three columns, separated by joints. */
.vault { margin: 56px 0; }
.vault .facts { display: grid; gap: 0; margin-top: 20px; border-top: 1px solid var(--border); }
@media (min-width: 640px) { .vault .facts { grid-template-columns: repeat(3, 1fr); } .vault .facts div + div { border-left: 1px solid var(--border); } }
.vault .facts div { padding: 16px 16px 16px 0; }
@media (min-width: 640px) { .vault .facts div + div { padding-left: 16px; } }
.vault strong { display: block; font: 600 17px var(--serif); margin-bottom: 4px; }
.vault span { color: var(--muted); font-size: 15px; line-height: 1.6; }
