/* Direction: a planner page. Dot-grid paper, a three-pronged root drawn in ink, brand colours used only as index tabs.
   Layout: one column of sections, hero split text / root drawing, three tabbed cards, quiet footer. */

/* Self-hosted fonts (SIL OFL 1.1, licences in /fonts/). Variable files, latin + latin-ext subsets. */
@font-face {
  font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 600 700; font-display: swap;
  src: url("/fonts/bricolage-grotesque-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 600 700; font-display: swap;
  src: url("/fonts/bricolage-grotesque-latin.woff2") format("woff2");
  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: "Instrument Sans"; font-style: normal; font-weight: 400 600; font-display: swap;
  src: url("/fonts/instrument-sans-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Instrument Sans"; font-style: normal; font-weight: 400 600; font-display: swap;
  src: url("/fonts/instrument-sans-latin.woff2") format("woff2");
  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 {
  --paper: #EBEAE5;
  --card: #F8F7F4;
  --ink: #1F2A26;
  --ink-2: #56605A;
  --line: #D3D1C9;
  --dot: #C6C3BA;
  --money: #D9CBA3;    /* sand */
  --health: #A9BFA3;   /* sage */
  --outdoors: #D68A5C; /* rust */
  --tab-ink: #16211C;
  --display: "Bricolage Grotesque", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --body: "Instrument Sans", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --mono: var(--body); /* one heading font + one body font, per the shared brand system */
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #1C1F1C;
    --card: #252925;
    --ink: #EDEAE1;
    --ink-2: #AEB2A8;
    --line: #343A35;
    --dot: #2C312D;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #1C1F1C;
  --card: #252925;
  --ink: #EDEAE1;
  --ink-2: #AEB2A8;
  --line: #343A35;
  --dot: #2C312D;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background-color: var(--paper);
  background-image: radial-gradient(var(--dot) 1px, transparent 1.3px);
  background-size: 22px 22px;
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 3px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--paper); padding: 8px 14px; border-radius: 6px; z-index: 10; }
.skip:focus { left: 16px; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.mono { font-family: var(--mono); font-size: 0.78rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-2); }

/* Header */
header { padding: 22px 0; }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--display); font-weight: 700; font-size: 1.35rem; letter-spacing: -0.01em; }
.brand svg { width: 28px; height: 28px; }
nav { display: flex; gap: 22px; flex-wrap: wrap; }
nav a { font-size: 0.95rem; text-decoration: none; color: var(--ink-2); padding: 4px 0; border-bottom: 1px solid transparent; }
nav a:hover { color: var(--ink); border-bottom-color: var(--ink); }

/* Hero */
.hero { padding: 48px 0 72px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.hero h1 {
  font-family: var(--display); font-weight: 700; letter-spacing: -0.025em; line-height: 1.02;
  font-size: clamp(2.7rem, 6.4vw, 4.8rem); margin: 14px 0 22px; text-wrap: balance;
}
.hero p.lede { font-size: 1.2rem; color: var(--ink-2); max-width: 34em; margin: 0 0 28px; }
.status { display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); }
.status i { width: 9px; height: 9px; border-radius: 50%; background: var(--money); border: 1px solid var(--ink); display: block; }
.status span { font-size: 0.9rem; }
.rootfig { margin: 0; width: 100%; max-width: 470px; justify-self: center; }
.rootfig svg { width: 100%; height: auto; display: block; }
.rootfig .ink { stroke: var(--ink); fill: none; stroke-linecap: round; stroke-linejoin: round; }
.rootfig text { fill: var(--ink); font-family: var(--display); }
.rootfig .cap { fill: var(--ink-2); font-family: var(--mono); font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase; }
.rootfig .tip { stroke: var(--ink); stroke-width: 2.5; }
.rootfig .ground { stroke: var(--ink-2); stroke-width: 1.5; stroke-dasharray: 3 7; fill: none; stroke-linecap: round; }

@media (prefers-reduced-motion: no-preference) {
  .rootfig .grow { stroke-dasharray: 1; stroke-dashoffset: 1; animation: grow 1.6s cubic-bezier(.5,.1,.2,1) 0.15s forwards; }
  .rootfig .grow.late { animation-delay: 0.7s; }
  @keyframes grow { to { stroke-dashoffset: 0; } }
}

/* Sections */
section { padding: 64px 0; }
.sec-head { max-width: 40em; margin-bottom: 40px; }
h2 { font-family: var(--display); font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; font-size: clamp(1.7rem, 3.4vw, 2.4rem); margin: 10px 0 12px; text-wrap: balance; }
.sec-head p { margin: 0; color: var(--ink-2); }

/* Brand cards: planner pages with an index tab */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px 28px; padding-top: 16px; }
.card { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: 4px 10px 10px 10px; padding: 34px 26px 24px; display: flex; flex-direction: column; gap: 14px; }
.tab { position: absolute; top: -16px; left: 22px; padding: 4px 16px 3px; border-radius: 8px 8px 0 0; background: var(--tabc); color: var(--tab-ink); font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 500; border: 1px solid var(--ink); border-bottom: 0; }
.card.money { --tabc: var(--money); }
.card.health { --tabc: var(--health); }
.card.outdoors { --tabc: var(--outdoors); }
.card h3 { font-family: var(--display); font-weight: 700; font-size: 1.9rem; letter-spacing: -0.02em; line-height: 1.05; margin: 0; }
.card p { margin: 0; color: var(--ink-2); }
.card .soon { margin-top: auto; padding-top: 16px; border-top: 1px dashed var(--line); display: flex; align-items: center; gap: 10px; }
.card .soon i { width: 8px; height: 8px; border-radius: 50%; background: var(--tabc); border: 1px solid var(--ink); display: block; }

/* Footer */
footer { padding: 56px 0 48px; border-top: 1px solid var(--line); margin-top: 48px; background: var(--paper); }
.foot { display: flex; flex-wrap: wrap; gap: 28px 56px; justify-content: space-between; align-items: flex-start; }
.foot p { margin: 4px 0 0; color: var(--ink-2); font-size: 0.95rem; }
.foot a.mail { font-size: 1rem; font-weight: 500; }
.foot .small { font-size: 0.85rem; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .cards { grid-template-columns: 1fr; gap: 44px; }
}
@media (max-width: 520px) {
  .wrap { padding: 0 18px; }
  .hero { padding: 28px 0 48px; }
  section { padding: 48px 0; }
}

/* Footer note and About page */
.foot-note { margin: 36px 0 0; padding-top: 22px; border-top: 1px solid var(--line); max-width: 62em; font-size: 0.88rem; color: var(--ink-2); }
nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--ink); }
.page-head { padding: 40px 0 36px; }
.page-head h1 { font-family: var(--display); font-weight: 700; letter-spacing: -0.025em; line-height: 1.04; font-size: clamp(2.4rem, 5.4vw, 3.8rem); margin: 12px 0 0; text-wrap: balance; }
.about-sec { padding: 56px 0; border-top: 1px solid var(--line); }
.split { display: grid; grid-template-columns: 1fr 2fr; gap: 20px 56px; align-items: start; }
.split h2 { margin: 0; }
.prose p { margin: 0 0 1em; max-width: 38em; }
.prose p:last-child { margin-bottom: 0; }
.item { padding: 0 0 24px; margin: 0 0 24px; border-bottom: 1px solid var(--line); }
.item:last-child { padding: 0; margin: 0; border-bottom: 0; }
.item h3 { font-family: var(--display); font-weight: 700; font-size: 1.25rem; letter-spacing: -0.01em; margin: 0 0 6px; }
.item p { margin: 0; color: var(--ink-2); max-width: 38em; }
.bigmail { font-family: var(--display); font-weight: 700; font-size: clamp(1.4rem, 3vw, 2rem); letter-spacing: -0.01em; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }
