@font-face { font-family: "Bricolage Grotesque"; font-weight: 700; font-style: normal; font-display: swap; src: url("/fonts/BricolageGrotesque_700Bold.ttf") format("truetype"); }
@font-face { font-family: "Bricolage Grotesque"; font-weight: 600; font-style: normal; font-display: swap; src: url("/fonts/BricolageGrotesque_600SemiBold.ttf") format("truetype"); }
@font-face { font-family: "Figtree"; font-weight: 400; font-style: normal; font-display: swap; src: url("/fonts/Figtree_400Regular.ttf") format("truetype"); }
@font-face { font-family: "Figtree"; font-weight: 600; font-style: normal; font-display: swap; src: url("/fonts/Figtree_600SemiBold.ttf") format("truetype"); }
@font-face { font-family: "Figtree"; font-weight: 700; font-style: normal; font-display: swap; src: url("/fonts/Figtree_700Bold.ttf") format("truetype"); }

:root {
  color-scheme: light;
  --canvas: #FAF9F5;
  --surface: #FFFFFF;
  --sunken: #F2F0EA;
  --text: #16211C;
  --text-2: #4C5A54;
  --text-3: #64706A;
  --brand: #0B5C43;
  --brand-2: #0E7355;
  --brand-tint: #E6F4EE;
  --on-brand: #FFFFFF;
  --line: #E4E1D7;
  --line-strong: #8B8578;
  --warning: #8A5200;
  --display: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  --body: "Figtree", ui-sans-serif, system-ui, sans-serif;
  --gutter: 1.25rem;
  --r-sm: 0.75rem;
  --r-md: 1rem;
  --measure: 40rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--text);
  font: 400 1.0625rem/1.625rem var(--body); letter-spacing: 0.000em;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a { color: var(--brand); text-underline-offset: 0.18em; }
a:hover { color: var(--brand-2); }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 2px; }

.skip {
  position: absolute; left: var(--gutter); top: -4rem; background: var(--surface);
  padding: 0.75rem 1rem; border: 1px solid var(--line-strong); border-radius: var(--r-sm); z-index: 10;
}
.skip:focus { top: 0.75rem; }

header.site, main, footer.site {
  width: 100%; max-width: calc(var(--measure) + 2 * var(--gutter));
  margin-inline: auto; padding-inline: var(--gutter);
}
header.site { padding-block: 1.5rem 0.5rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.wordmark { font: 700 2rem/2.375rem var(--display); letter-spacing: -0.015em; font-size: 1.75rem; line-height: 1.15; color: var(--brand); text-decoration: none; letter-spacing: -0.02em; display: inline-block; }
/* The stroke is the app's, in the same proportions and the same colour as the
   lettering: 0.11 em thick, its centre 0.17 em under the baseline. The face's
   descent is 0.27 em, so it sits 0.27 - 0.17 - 0.055 = 0.045 em above the
   bottom of the inline box
   (packages/design-system/src/primitives/wordmarkMetrics.ts). */
.wordmark .core { position: relative; }
.wordmark .core::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0.045em;
  height: 0.11em; border-radius: 0.055em; background: var(--brand);
}
nav.site ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 1.25rem; flex-wrap: wrap; font: 600 0.8125rem/1rem var(--body); letter-spacing: 0.010em; font-size: 0.9375rem; }
nav.site a { color: var(--text-2); text-decoration: none; padding-block: 0.6rem; display: inline-block; }
nav.site a:hover, nav.site a[aria-current="page"] { color: var(--brand); text-decoration: underline; }

main { flex: 1; padding-block: 2rem 4rem; }
h1 { font: 700 2.5rem/2.75rem var(--display); letter-spacing: -0.020em; margin: 0 0 1rem; text-wrap: balance; }
h2 { font: 600 1.5rem/1.875rem var(--display); letter-spacing: -0.010em; margin: 2.75rem 0 0.75rem; }
h3 { font: 600 1.25rem/1.625rem var(--body); letter-spacing: -0.005em; margin: 1.75rem 0 0.5rem; }
p, ul, ol, dl, table { margin: 0 0 1rem; }
ul, ol { padding-left: 1.25rem; }
li { margin-bottom: 0.4rem; }
.lead { font: 400 1.0625rem/1.625rem var(--body); letter-spacing: 0.000em; font-size: 1.1875rem; color: var(--text-2); max-width: 36rem; }
.meta { font: 400 0.8125rem/1.125rem var(--body); letter-spacing: 0.005em; color: var(--text-3); }
.note { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 1rem 1.125rem; }
.note.draft { background: var(--sunken); border-color: var(--line-strong); }
.todo { background: var(--sunken); color: var(--text); padding: 0 0.25em; border-radius: 4px; outline: 1px dashed var(--line-strong); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 1.25rem; margin-bottom: 1rem; }
.card h3 { margin-top: 0; }
.hero { padding-block: 1.5rem 1rem; }
.hero .lead { margin-bottom: 1.5rem; }

table { width: 100%; border-collapse: collapse; font: 400 0.9375rem/1.375rem var(--body); letter-spacing: 0.000em; }
th, td { text-align: left; vertical-align: top; padding: 0.7rem 0.75rem 0.7rem 0; border-bottom: 1px solid var(--line); }
th { font: 600 0.8125rem/1rem var(--body); letter-spacing: 0.010em; color: var(--text-2); }
.scroll { overflow-x: auto; }

form { display: grid; gap: 1rem; max-width: 32rem; }
label { font: 600 0.8125rem/1rem var(--body); letter-spacing: 0.010em; display: block; margin-bottom: 0.35rem; }
input, select, textarea {
  width: 100%; font: inherit; color: var(--text); background: var(--surface);
  border: 1.5px solid var(--line-strong); border-radius: var(--r-sm); padding: 0.75rem 0.85rem; min-height: 3rem;
}
textarea { min-height: 8rem; }
button, .button {
  font: 600 1rem/1 var(--body); background: var(--brand); color: var(--on-brand);
  border: 0; border-radius: var(--r-md); padding: 0 1.25rem; min-height: 3rem; cursor: pointer; text-decoration: none;
  display: inline-flex; align-items: center; justify-content: center;
}
button:hover, .button:hover { background: var(--brand-2); color: var(--on-brand); }
.hp { position: absolute; left: -10000px; }
label.check { display: flex; gap: 0.6rem; align-items: flex-start; font: inherit; margin: 0; }
label.check input { width: 1.25rem; min-height: 0; margin-top: 0.2rem; flex: none; }

footer.site { padding-block: 2rem 3rem; border-top: 1px solid var(--line); font: 400 0.8125rem/1.125rem var(--body); letter-spacing: 0.005em; color: var(--text-2); }
footer.site ul { list-style: none; padding: 0; display: flex; gap: 1.25rem; flex-wrap: wrap; }
footer.site a { color: var(--text-2); }

@media (max-width: 22rem) { h1 { font-size: 1.75rem; line-height: 2.125rem; } }
@media print { header.site nav, footer.site, .skip { display: none; } body { background: var(--surface); } }
