/* FieldNoteReference site. The page is a printed sheet on a desk, so the type is a text serif, a forms sans and a mono.
   Colours come from brand/hudson/tokens.json (the shop brand). Faces: Source Serif 4, Public Sans, IBM Plex Mono.
   All font files live in fonts/. The site makes no font request to another host.
   Rules from the apple-design skill: size-specific tracking and leading, rem spacing, a translucent sticky header,
   press feedback, light and dark, and fallbacks for reduced motion, reduced transparency and more contrast. */

@font-face { font-family: "Source Serif 4"; font-weight: 400 700; font-style: normal; font-display: swap; src: url("fonts/SourceSerif4-Variable.woff2") format("woff2"); }
@font-face { font-family: "Public Sans"; font-weight: 400 700; font-style: normal; font-display: swap; src: url("fonts/PublicSans-Variable.woff2") format("woff2"); }
@font-face { font-family: "Public Sans"; font-weight: 400 700; font-style: italic; font-display: swap; src: url("fonts/PublicSans-VariableItalic.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 400; font-style: normal; font-display: swap; src: url("fonts/IBMPlexMono-Regular.woff2") format("woff2"); }

:root {
  --paper: #F5F6F4;
  --surface: #FFFFFF;
  --ink: #14181C;
  --muted: #5A6470;
  --rule: #D3D8DC;
  --tint: #E9EDEF;
  --accent: #0F5C63;
  --on-accent: #F5F6F4;
  --orange: #B45F00;
  --teal: var(--accent);
  --plum: #8A4B78;
  --glass: rgba(245, 246, 244, 0.72);
  --shadow: 0 1px 2px rgba(20, 24, 28, 0.06), 0 0.5rem 1.5rem rgba(20, 24, 28, 0.06);
  --f-serif: "Source Serif 4", "Iowan Old Style", "Palatino Linotype", Georgia, "Times New Roman", serif;
  --f-sans: "Public Sans", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --radius: 0.5rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --measure: 68rem;
  --space-section: clamp(3rem, 8vw, 6rem);
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #101418;
    --surface: #171C21;
    --ink: #E6EAEC;
    --muted: #9AA4AE;
    --rule: #2A3138;
    --tint: #1D2329;
    --accent: #6FB7BD;
    --on-accent: #0B1013;
    --orange: #E69F00;
    --plum: #CC79A7;
    --glass: rgba(16, 20, 24, 0.72);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 0.5rem 1.5rem rgba(0, 0, 0, 0.3);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.55 var(--f-sans);
  letter-spacing: 0;
  transition: background-color 300ms ease, color 300ms ease;
}
a { color: var(--accent); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
img { max-width: 100%; height: auto; }

.skip { position: absolute; left: -999px; top: 0; }
.skip:focus { left: var(--gutter); top: 0.5rem; z-index: 10; background: var(--surface); padding: 0.5rem 0.75rem; }

/* Header: a translucent layer. Content scrolls under it. A soft shadow replaces a hard divider. */
.masthead {
  position: sticky; top: 0; z-index: 5;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.25rem 1.5rem;
  padding: 0.25rem var(--gutter);
  background: var(--glass);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
  box-shadow: 0 1px 0 var(--rule), 0 0.5rem 1rem -0.75rem rgba(20, 24, 28, 0.18);
}
.wordmark {
  font: 600 1.2rem/1 var(--f-serif); letter-spacing: -0.01em; color: var(--ink); text-decoration: none;
  display: inline-flex; align-items: center; min-height: 2.75rem;
}
.wordmark span { color: var(--accent); }
.masthead nav { display: flex; flex-wrap: wrap; gap: 0 1rem; }
.masthead nav a {
  font-weight: 600; font-size: 0.9375rem; letter-spacing: 0.01em; color: var(--muted); text-decoration: none;
  display: inline-flex; align-items: center; min-height: 2.75rem; border-bottom: 2px solid transparent;
}
.masthead nav a:hover { color: var(--ink); }
.masthead nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--accent); }

main { max-width: var(--measure); margin: 0 auto; padding: 1.5rem var(--gutter) 3rem; }
main > section + section { margin-top: var(--space-section); }

/* Type: tracking tightens and leading closes as size grows. Body stays at zero. */
h1, h2 { font-family: var(--f-serif); color: var(--ink); font-optical-sizing: auto; font-weight: 600; margin: 0; }
h1 { font-size: clamp(2.5rem, 7vw, 4.25rem); line-height: 1.02; letter-spacing: -0.02em; max-width: 16ch; }
h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); line-height: 1.12; letter-spacing: -0.012em; margin-bottom: 0.75rem; }
h3 { font: 600 1.2rem/1.25 var(--f-sans); letter-spacing: -0.005em; margin: 0 0 0.35rem; }
.lede { font: 400 clamp(1.15rem, 1.8vw, 1.35rem)/1.45 var(--f-serif); max-width: 36rem; margin: 1rem 0 0; }
.lede p { margin: 0 0 0.75rem; }
.small { font-size: 0.875rem; line-height: 1.5; letter-spacing: 0.01em; color: var(--muted); }
.meta, .facts { font: 400 0.9rem/1.5 var(--f-mono); font-variant-numeric: tabular-nums; color: var(--muted); }
p { margin: 0 0 1rem; }

/* Buttons: square-ish corners, feedback on press at once. */
.btn, button {
  display: inline-flex; align-items: center; min-height: 2.75rem;
  font: 600 1rem/1 var(--f-sans); letter-spacing: 0.005em;
  padding: 0.75rem 1.2rem; border-radius: var(--radius); border: 1.5px solid var(--accent);
  background: var(--accent); color: var(--on-accent); text-decoration: none; cursor: pointer;
  transition: transform 100ms ease-out, box-shadow 200ms ease;
}
.btn.ghost { background: transparent; color: var(--accent); }
.btn.light { background: var(--on-accent); color: var(--accent); border-color: var(--on-accent); }
.btn:hover, button:hover { box-shadow: var(--shadow); }
.btn:active, button:active { transform: scale(0.98); }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 1.5rem 0 1rem; }

/* Hero: text first, the real pages second. */
.hero { display: grid; gap: 2rem; padding-top: clamp(0.5rem, 3vw, 2rem); }
.hero .facts { margin: 0; }
.pages { margin: 0; }
.pages .stack { position: relative; }
.pages img {
  display: block; width: 88%; height: auto; background: #fff;
  border: 1px solid var(--rule); border-radius: 2px; box-shadow: var(--shadow);
}
.pages .front { position: relative; z-index: 1; margin-top: 7%; }
.pages .back { position: absolute; top: 0; right: 0; z-index: 0; }
.pages figcaption { margin-top: 0.75rem; }
@media (max-width: 55.99rem) {
  .pages .stack { max-height: 60vh; overflow: hidden; }
  .pages .back { display: none; }
  .pages .front { margin-top: 0; width: min(100%, 26rem); }
}
@media (min-width: 56rem) {
  .hero { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 3rem; align-items: start; }
}

/* Contents list: one row per line, a 3px mark in the line accent. */
.contents { list-style: none; margin: 1.5rem 0 0; padding: 0; border-top: 1px solid var(--rule); }
.contents li {
  display: grid; gap: 0.5rem 2rem; padding: 1.5rem 0 1.5rem 1.25rem;
  border-left: 3px solid var(--mark, var(--accent)); border-bottom: 1px solid var(--rule);
  transition: background-color 150ms ease;
}
.contents li:hover { background: var(--tint); }
.contents .l-multiunit { --mark: var(--orange); }
.contents .l-clinical { --mark: var(--teal); }
.contents .l-coaching { --mark: var(--plum); }
.contents h3 { font-size: 1.35rem; margin: 0; }
.contents h3 a { color: var(--ink); text-decoration: none; display: inline-block; padding: 0.25rem 0; }
.contents h3 a:hover { color: var(--accent); text-decoration: underline; }
.contents .who { font-weight: 600; margin: 0 0 0.25rem; }
.contents .what { margin: 0; color: var(--muted); }
.contents .meta { margin: 0 0 0.35rem; }
.contents .go { font-weight: 600; font-size: 0.9375rem; display: inline-block; padding: 0.5rem 0; }
@media (min-width: 48rem) {
  .contents li { grid-template-columns: 14rem minmax(0, 1fr) 12rem; align-items: start; padding-right: 1rem; }
}

/* Why: four short paragraphs. */
.why .grid { display: grid; gap: 1.75rem 3rem; margin-top: 1.5rem; }
.why .grid p { margin: 0; color: var(--muted); }
.why .close { font: 400 clamp(1.15rem, 1.8vw, 1.35rem)/1.45 var(--f-serif); margin: 2.5rem 0 0; max-width: 36rem; color: var(--ink); }
@media (min-width: 48rem) { .why .grid { grid-template-columns: 1fr 1fr; } }

/* Sample box and teams. */
.sample { max-width: 44rem; background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); box-shadow: var(--shadow); padding: clamp(1.25rem, 4vw, 2.25rem); }
.sample p:last-child { margin-bottom: 0; }
.teams { max-width: 44rem; }
.tiers { margin: 1.5rem 0 1rem; padding: 0; border-top: 1px solid var(--rule); }
.tiers div { display: flex; align-items: baseline; gap: 1.5rem; padding: 0.75rem 0; border-bottom: 1px solid var(--rule); }
.tiers dt { font: 400 1.35rem/1 var(--f-mono); font-variant-numeric: tabular-nums; color: var(--accent); min-width: 6rem; }
.tiers dd { margin: 0; font-weight: 600; }

.owner { max-width: 38rem; }
.owner p, .prose p { font: 400 1.15rem/1.6 var(--f-serif); }

/* The Etsy band: the one centered block. Text stays left-aligned inside. */
.etsy { background: var(--accent); color: var(--on-accent); border-radius: var(--radius); padding: clamp(1.5rem, 5vw, 3rem); max-width: 44rem; margin-left: auto; margin-right: auto; }
.etsy h2 { color: var(--on-accent); margin-bottom: 1.25rem; }

/* Line pages. */
.sheet { border-left: 3px solid var(--mark, var(--accent)); padding: 0.25rem 0 0.25rem clamp(1rem, 3vw, 1.75rem); margin: 1rem 0 2.5rem; }
.sheet.l-multiunit { --mark: var(--orange); }
.sheet.l-clinical { --mark: var(--teal); }
.sheet.l-coaching { --mark: var(--plum); }
.sheet .for { font-weight: 600; margin: 0.5rem 0 0.75rem; }
.group { margin: 0 0 2.5rem; }
.prods { list-style: none; margin: 0; padding: 0; background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.prods li + li { border-top: 1px solid var(--rule); }
.prod {
  display: flex; align-items: baseline; justify-content: space-between; gap: 1rem;
  padding: 0.95rem 1.25rem; min-height: 2.75rem; color: var(--ink); text-decoration: none; transition: background-color 150ms ease;
}
.prod:hover { background: var(--tint); }
.prod:active { background: var(--rule); }
.prod .t { line-height: 1.4; }
.prod .p { font: 400 0.9375rem/1 var(--f-mono); font-variant-numeric: tabular-nums; color: var(--accent); white-space: nowrap; }
.prod .p .pp { color: var(--muted); margin-right: 1rem; }

.fine { max-width: 44rem; }
.fine p { color: var(--muted); }
.fine h2 { margin-top: 1.75rem; }
.fine .btn { margin-top: 0.5rem; }
.prose { max-width: 38rem; }
.prose .sign { font: 600 1.25rem/1 var(--f-serif); color: var(--ink); }

/* Licence page tiers and the sample page. */
.tierbox { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); margin: 0 0 2.5rem; }
.tier { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.5rem; display: flex; flex-direction: column; gap: 0.4rem; }
.tier .price { font: 400 2.25rem/1 var(--f-mono); font-variant-numeric: tabular-nums; color: var(--accent); }
.tier .h { font-weight: 600; font-size: 1.2rem; }
.tier .d { color: var(--muted); font-size: 0.975rem; }
.samplepair { display: flex; flex-wrap: wrap; gap: 1.5rem; align-items: flex-start; margin: 0 0 1.5rem; }
.samplepair img { width: min(14rem, 44%); flex: 1 1 8rem; background: #fff; border: 1px solid var(--rule); border-radius: 2px; box-shadow: var(--shadow); }

/* Sign-up form. The field shows a problem only after the person has typed. */
.signup label { display: block; font-weight: 600; margin-bottom: 0.4rem; }
.signup .row { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.signup input {
  flex: 1 1 16rem; min-width: 0; font: 400 1rem/1.2 var(--f-sans); color: var(--ink);
  padding: 0.8rem 1rem; min-height: 2.75rem; border-radius: var(--radius); border: 1.5px solid var(--muted); background: var(--surface);
}
.signup input:focus-visible { border-color: var(--accent); outline-offset: 2px; }
.signup input:user-invalid { border-color: var(--orange); border-width: 2px; }

.foot { max-width: var(--measure); margin: 0 auto; padding: 2rem var(--gutter) 3rem; border-top: 1px solid var(--rule); }
.foot p { margin: 0 0 0.5rem; }
.foot .small a { margin-left: 1rem; display: inline-block; padding: 0.5rem 0; }

@media (max-width: 40rem) {
  .masthead nav { flex-wrap: nowrap; overflow-x: auto; width: 100%; gap: 0 1.25rem; scrollbar-width: none; }
  .masthead nav::-webkit-scrollbar { display: none; }
  .masthead nav a { white-space: nowrap; }
  .prod { flex-direction: column; gap: 0.35rem; }
}

/* A printed page is white. In dark mode the page images keep their paper and lose a little brightness. */
@media (prefers-color-scheme: dark) {
  .pages img, .samplepair img { filter: brightness(0.92); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .btn:active, button:active { transform: none; }
}
@media (prefers-reduced-transparency: reduce) {
  .masthead { background: var(--paper); -webkit-backdrop-filter: none; backdrop-filter: none; }
}
@media (prefers-contrast: more) {
  :root { --muted: var(--ink); --glass: var(--paper); --rule: var(--ink); }
  .sample, .tier, .prods, .pages img { box-shadow: none; border: 1.5px solid var(--ink); }
  .etsy { border: 2px solid var(--on-accent); }
}

/* Home additions: the quiz link under the hero actions, the second row link, the custom guides section. */
.hero .quizlink { margin: 0.25rem 0 0.75rem; font-size: 0.9375rem; }
.contents .go.faq { display: block; margin-top: 0.35rem; font-weight: 400; }
.custom { margin-top: var(--space-section); max-width: 40rem; }
.custom p { color: var(--muted); }

/* Line and FAQ pages */
.sheet .quizlink { margin: 0.5rem 0 0; font-size: 0.9375rem; }
.sheet .quizlink a, .sheet .back a { display: inline-block; padding: 0.5rem 0; }
.sheet.faq h1 { font-size: clamp(2rem, 5vw, 3rem); line-height: 1.08; max-width: 24ch; }

.start { margin: 0 0 3rem; max-width: 44rem; }
.start ul { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.start li { padding: 0.9rem 0; border-bottom: 1px solid var(--rule); }

.group .glede { color: var(--muted); max-width: 40rem; margin: 0 0 1.25rem; }
.guides { border-top: 1px solid var(--rule); }
.guide { display: grid; gap: 0.5rem 2.5rem; padding: 1.5rem 0; border-bottom: 1px solid var(--rule); scroll-margin-top: 4.5rem; }
.guide .main > * { margin-top: 0; }
.guide h3 { font-size: 1.25rem; margin-bottom: 0.25rem; }
.guide .prod {
  display: inline-block; padding: 0.4rem 0; min-height: 2.75rem; color: var(--ink);
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.18em; text-decoration-color: var(--muted);
  background: none; transition: none;
}
.guide .prod:hover { background: none; text-decoration-thickness: 2px; text-decoration-color: var(--accent); }
.guide .prod:active { background: none; }
.guide .prod .go { color: var(--mark, var(--accent)); }
.guide:target .prod { text-decoration-thickness: 3px; text-decoration-color: var(--mark, var(--accent)); }
.group.l-multiunit { --mark: var(--orange); }
.group.l-clinical { --mark: var(--teal); }
.group.l-coaching { --mark: var(--plum); }
.guide .meta { margin: 0 0 0.6rem; }
.guide .job { margin: 0 0 0.5rem; max-width: 36rem; }
.guide .who { margin: 0; color: var(--muted); font-size: 0.9375rem; max-width: 36rem; }
.guide details { align-self: start; }
.guide summary {
  display: flex; align-items: center; min-height: 2.75rem; cursor: pointer; font-weight: 600;
  color: var(--accent);
}
.guide summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.guide details ul { margin: 0 0 0.5rem; padding-left: 1.2rem; }
.guide details li { margin: 0 0 0.4rem; max-width: 34rem; }
@media (min-width: 56rem) {
  .guide { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); padding: 1.75rem 0; }
  .guide summary { min-height: 2.25rem; }
}

.faq-link { margin-top: 2rem; max-width: 44rem; }
.faq-link a { display: inline-block; padding: 0.5rem 0; }
.faq-link + .fine { margin-top: 1.5rem; }
.fine a { display: inline-block; padding: 0.4rem 0; }

.qa { margin: 0; padding: 1.75rem 0; max-width: 44rem; border-top: 1px solid var(--rule); }
.qa h2 { font-size: clamp(1.3rem, 2.4vw, 1.6rem); line-height: 1.2; }
.qa p { font: 400 1.125rem/1.6 var(--f-serif); max-width: 38rem; }
.qa .more { font: 400 0.9375rem/1.5 var(--f-sans); color: var(--muted); margin-bottom: 0; }
.qa .more a { display: inline-block; padding: 0.5rem 0; }
.faq-sample { margin-top: 2.5rem; padding-top: 2rem; max-width: 44rem; border-top: 1px solid var(--rule); }
.faq-sample + .fine { margin-top: 2rem; }
@media (prefers-contrast: more) {
  .guide .prod { text-decoration-color: var(--ink); }
}
