/* apps/site/styles.css -- the public website (www.unhurriedyears.com). Its own look, related to the app by the teal only.
   The idea: the site is about time. The one bold element is the "horizon" in the hero, a ruler of years with two dates on it.
   Fonts are served from this site (no request to Google), and there is no JavaScript. */
@font-face { font-family: 'Jakarta'; src: url('/fonts/PlusJakartaSans_800ExtraBold.ttf') format('truetype'); font-weight: 800; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('/fonts/Inter_400Regular.ttf') format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('/fonts/Inter_600SemiBold.ttf') format('truetype'); font-weight: 600; font-display: swap; }

:root {
  --mist: #edf3f1;      /* the page: a cool sea-mist, not paper */
  --paper: #ffffff;     /* the quiet bands */
  --pine: #10231f;      /* ink: a deep green-black */
  --body: #33433f;      /* body copy */
  --soft: #5a6b67;      /* secondary text */
  --line: #cfdcd8;      /* hairlines and the ruler's ticks */
  --teal: #0f766e;      /* the brand: buttons, the retirement marker */
  --teal-ink: #0b5f59;  /* teal text */
  --dawn: #c77a12;      /* the debt-free marker: an early-morning amber */
  --dawn-soft: #fbeed8;
}
@media (prefers-color-scheme: dark) {
  :root {
    --mist: #0c1715; --paper: #11201d; --pine: #eef5f3; --body: #c9d6d2; --soft: #9fb1ac; --line: #26403b;
    --teal: #5eead4; --teal-ink: #7ff0de; --dawn: #f2b552; --dawn-soft: #2f2412;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--mist); color: var(--body); font: 400 1.0625rem/1.65 Inter, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; }
a { color: var(--teal-ink); text-underline-offset: 0.18em; }
a:focus-visible, .button:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; }
h1, h2, h3 { color: var(--pine); font-family: Jakarta, Inter, system-ui, sans-serif; font-weight: 800; letter-spacing: -0.025em; }
h1 { font-size: clamp(2.4rem, 7vw, 4.6rem); line-height: 1.02; margin: 0 0 24px; max-width: 13ch; }
h2 { font-size: clamp(1.5rem, 3.2vw, 2.1rem); line-height: 1.15; margin: 0 0 16px; max-width: 22ch; }
h3 { font-size: 1.1rem; line-height: 1.3; margin: 0 0 4px; letter-spacing: -0.01em; }
p { max-width: 62ch; }
h1 .stop { margin-left: -0.09em; } /* the display face sets its full stop loosely */

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; background: var(--paper); padding: 8px 12px; z-index: 10; }

/* header */
header.site .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 20px; padding-bottom: 20px; }
.brand { white-space: nowrap; display: flex; align-items: center; gap: 10px; color: var(--pine); text-decoration: none; font-family: Jakarta, Inter, sans-serif; font-weight: 800; font-size: 1.1rem; letter-spacing: -0.02em; }
.brand img { width: 34px; height: 34px; border-radius: 8px; }
nav.top { display: flex; align-items: center; gap: 20px; font-weight: 600; font-size: 0.95rem; }
nav.top a:not(.button) { text-decoration: none; }

.button { white-space: nowrap; display: inline-block; background: var(--teal); color: var(--mist); text-decoration: none; font-weight: 600; padding: 13px 22px; border-radius: 10px; }
.button.small { padding: 8px 14px; font-size: 0.92rem; }
@media (prefers-color-scheme: dark) { .button { color: #0c1715; } }

/* hero */
.hero { padding: 56px 0 24px; }
.hero .lead { font-size: 1.2rem; color: var(--body); margin: 0 0 28px; max-width: 46ch; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 14px 22px; align-items: center; }
.hero .actions a:not(.button) { font-weight: 600; }

/* the horizon: a ruler of years, one tick a year, a label every five, and two dates on it */
.horizon { margin: 56px 0 8px; padding-bottom: 8px; overflow: hidden; }
.horizon .ruler { position: relative; height: 112px; }
.horizon .ticks { position: absolute; left: 0; right: 0; bottom: 30px; height: 18px;
  background: repeating-linear-gradient(to right, var(--line) 0 2px, transparent 2px calc(100% / 40)); }
.horizon .ticks::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--line); }
.horizon .years { position: absolute; left: 0; right: 0; bottom: 0; height: 22px; font-size: 0.8rem; color: var(--soft); font-variant-numeric: tabular-nums; }
.horizon .years span { position: absolute; transform: translateX(-50%); }
.horizon .years span:first-child { transform: none; }
/* Positions live here, not in the HTML: the site's security policy (style-src 'self') blocks inline style attributes. 2026 is 0%, each year 2.5%. */
.horizon .years span:nth-child(1) { left: 0%; }
.horizon .years span:nth-child(2) { left: 10%; }
.horizon .years span:nth-child(3) { left: 22.5%; }
.horizon .years span:nth-child(4) { left: 35%; }
.horizon .years span:nth-child(5) { left: 47.5%; }
.horizon .years span:nth-child(6) { left: 60%; }
.horizon .years span:nth-child(7) { left: 72.5%; }
.horizon .years span:nth-child(8) { left: 85%; }
.horizon .years span:nth-child(9) { left: 97.5%; }
.horizon .path { position: absolute; left: 0; bottom: 30px; height: 4px; width: 75%; background: linear-gradient(to right, var(--dawn) 0 10%, var(--teal) 10% 100%); border-radius: 2px;
  transform-origin: left; animation: draw 1.6s cubic-bezier(.2,.7,.2,1) both; }
.horizon .mark { position: absolute; bottom: 26px; transform: translateX(-6px); display: flex; flex-direction: column-reverse; align-items: flex-start; gap: 6px; }
.horizon .mark i { display: block; width: 12px; height: 12px; border-radius: 50%; background: var(--paper); border: 3px solid currentColor; }
.horizon .mark b { font-family: Jakarta, Inter, sans-serif; font-weight: 800; font-size: 1.05rem; color: var(--pine); white-space: nowrap; letter-spacing: -0.01em; }
.horizon .mark small { display: block; font-size: 0.8rem; color: var(--soft); font-weight: 400; font-family: Inter, sans-serif; letter-spacing: 0; }
.horizon .mark.debt { color: var(--dawn); left: 7.5%; animation: appear 0.5s 0.5s both; }
.horizon .mark.retire { color: var(--teal); left: 75%; animation: appear 0.5s 1.4s both; }
.horizon .caption { font-size: 0.85rem; color: var(--soft); margin: 10px 0 0; }
@keyframes draw { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes appear { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .horizon .path, .horizon .mark.debt, .horizon .mark.retire { animation: none; } }

/* sections */
section.block { padding: 72px 0; }
section.paper { background: var(--paper); }
.two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 48px; align-items: start; }
.features { list-style: none; margin: 0; padding: 0; display: grid; gap: 26px; }
.features li { display: grid; grid-template-columns: 14px 1fr; gap: 14px; }
.features li::before { content: ''; width: 10px; height: 10px; margin-top: 7px; border-radius: 50%; background: var(--teal); }
.features.later li::before { background: transparent; border: 2px solid var(--line); }
.features p { margin: 0; }
.group + .group { margin-top: 44px; }
.group h3.label { font-family: Inter, sans-serif; font-weight: 600; font-size: 0.95rem; color: var(--soft); margin: 0 0 18px; letter-spacing: 0; }
.promises { margin: 0; padding: 0; list-style: none; display: grid; gap: 14px; }
.promises li { padding-left: 20px; border-left: 3px solid var(--teal); }
.bilingual { font-family: Jakarta, Inter, sans-serif; font-weight: 800; color: var(--pine); font-size: clamp(1.4rem, 3vw, 2rem); letter-spacing: -0.02em; line-height: 1.25; max-width: 30ch; margin: 0 0 12px; }

/* legal pages */
article.legal { max-width: 720px; padding: 40px 0 72px; }
article.legal h1 { font-size: clamp(2rem, 5vw, 2.8rem); max-width: none; }
article.legal h2 { font-size: 1.3rem; margin-top: 40px; max-width: none; }
article.legal .updated { color: var(--soft); }
article.legal li { margin: 6px 0; }

/* footer */
footer.site { border-top: 1px solid var(--line); padding: 32px 0 48px; font-size: 0.92rem; color: var(--soft); }
footer.site .wrap { display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; }
footer.site nav { display: flex; flex-wrap: wrap; gap: 12px 22px; }

@media (max-width: 400px) {
  .brand span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } /* still read out, not shown */
}
@media (max-width: 760px) {
  .two { grid-template-columns: 1fr; gap: 24px; }
  section.block { padding: 52px 0; }
}
@media (max-width: 560px) {
  nav.top .wide { display: none; }
  nav.top { gap: 14px; }
  nav.top .button { padding: 7px 12px; font-size: 0.88rem; }
  .brand { font-size: 1rem; }
  .brand img { width: 30px; height: 30px; }
  .horizon .years span.first { display: none; }
  .hero { padding-top: 32px; }
  .horizon .years span.five:not(.ten) { display: none; }
  .horizon .mark b { font-size: 0.95rem; }
}
