/* ==========================================================================
   Navern Health website styles
   One stylesheet for every page. Sections, in order:
     1. Design tokens (colors, type, spacing)   <- edit colors here
     2. Base elements
     3. Shared pieces: container, labels, status labels, buttons, header, footer
     4. Home page sections
     5. Team page
     6. Contact page
     7. Privacy and 404 pages
     8. Motion (scroll reveal, hero line drawing, reduced motion)
   ========================================================================== */


/* 1. Design tokens
   ========================================================================== */

:root {
  /* Brand colors, matched to the logo */
  --teal: #08A5B2;                        /* primary */
  --teal-hover: #0CC5D4;                  /* hover state for teal fills */
  --teal-wash: rgba(8, 165, 178, 0.08);   /* tinted backgrounds */
  --teal-ink: #067580;                    /* darker teal for small text and links (passes AA contrast) */
  --strand: #5E7585;                      /* grey-blue of the strands in the logo mark */

  /* Text */
  --heading: #1A1A1A;
  --body: #4F4F4F;
  --muted: #7A7A7A;                       /* large or decorative text only */
  --label: #696969;                       /* small labels (darker than --muted for contrast) */

  /* Surfaces */
  --bg: #FAFAF8;                          /* warm off-white page background */
  --bg-alt: #F4F3F0;                      /* alternate section background */
  --paper: #FFFFFF;                       /* form and record panels */
  --rule: rgba(26, 26, 26, 0.14);         /* hairline rules */

  /* Typography */
  --font-heading: "DM Serif Display", Georgia, serif;
  --font-body: "Instrument Sans", "Helvetica Neue", sans-serif;
  --font-mono: "IBM Plex Mono", "Courier New", monospace;

  /* Layout */
  --content-width: 1080px;
  --gutter: clamp(20px, 5vw, 40px);
  --section-space: clamp(72px, 10vw, 128px);
}


/* 2. Base elements
   ========================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scrollbar-gutter: stable;               /* same width with or without a scrollbar, so short pages don't shift */
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--body);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--heading);
  font-family: var(--font-heading);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(2.4rem, 5.6vw, 4.1rem);
}

h2 {
  font-size: clamp(1.9rem, 4vw, 2.75rem);
}

h3 {
  font-size: 1.45rem;
}

p {
  margin: 0 0 1em;
}

p:last-child {
  margin-bottom: 0;
}

a {
  color: var(--teal-ink);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--heading);
}

img,
svg {
  max-width: 100%;
}

/* Visible keyboard focus everywhere */
:focus-visible {
  outline: 2px solid var(--teal-ink);
  outline-offset: 3px;
}


/* 3. Shared pieces
   ========================================================================== */

.container {
  width: 100%;
  max-width: calc(var(--content-width) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -60px;
  z-index: 10;
  padding: 8px 14px;
  background: var(--heading);
  color: var(--bg);
}

.skip-link:focus {
  top: 12px;
  color: var(--bg);
}

/* Small uppercase field-style label, borrowed from clinical paperwork */
.label {
  margin: 0;
  color: var(--label);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.09em;
  line-height: 1.5;
  text-transform: uppercase;
}

/* Numbered section marker: "01  The problem" */
.marker {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin: 0 0 28px;
  color: var(--label);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.marker__num {
  color: var(--teal-ink);
  font-variant-numeric: tabular-nums;
}

/* Status label: says whether something is live today or in development.
   Filled dot = live today. Hollow dot (add .status--dev) = in development. */
.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: var(--teal-ink);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.09em;
  line-height: 1.5;
  text-transform: uppercase;
  white-space: nowrap;
}

.status::before {
  content: "";
  flex: none;
  width: 7px;
  height: 7px;
  border: 1.5px solid var(--teal);
  border-radius: 50%;
  background: var(--teal);
}

.status--dev {
  color: var(--label);
}

.status--dev::before {
  border-color: var(--label);
  background: transparent;
}

/* Button: dark ink on teal (white on this teal would fail contrast) */
.button {
  display: inline-block;
  padding: 15px 28px;
  border: 0;
  border-radius: 2px;
  background: var(--teal);
  color: var(--heading);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.button:hover {
  background: var(--teal-hover);
  color: var(--heading);
  transform: translateY(-1px);
}

.button[disabled] {
  cursor: progress;
  opacity: 0.6;
  transform: none;
}

/* Header and navigation */
.site-header {
  border-bottom: 1px solid var(--rule);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 24px;
  padding-block: 18px;
}

.site-header__logo {
  display: block;
  line-height: 0;
}

.site-header__logo img {
  width: auto;
  height: 40px;
}

.site-nav__list {
  display: flex;
  gap: 4px 30px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav__list a {
  display: block;
  padding: 6px 0;
  border-bottom: 1px solid transparent;
  color: var(--heading);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.site-nav__list a:hover,
.site-nav__list a[aria-current="page"] {
  border-bottom-color: var(--teal);
}

.site-nav__toggle {
  display: none;
  padding: 8px 12px;
  border: 1px solid var(--rule);
  border-radius: 2px;
  background: none;
  color: var(--heading);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  cursor: pointer;
}

/* Mobile: main.js adds .is-collapsible, which turns the links into a
   menu behind the toggle. Without JavaScript the links simply stay visible. */
@media (max-width: 600px) {
  .site-nav.is-collapsible .site-nav__toggle {
    display: block;
  }

  .site-nav.is-collapsible .site-nav__list {
    display: none;
    flex-basis: 100%;
  }

  .site-nav.is-collapsible.is-open .site-nav__list {
    display: block;
    position: absolute;
    left: 0;
    right: 0;
    z-index: 5;
    margin-top: 18px;
    padding: 8px var(--gutter) 16px;
    border-bottom: 1px solid var(--rule);
    background: var(--bg);
  }

  .site-nav.is-collapsible.is-open .site-nav__list a {
    padding: 12px 0;
    border-bottom: 1px solid var(--rule);
  }
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--rule);
  font-size: 0.875rem;
}

.site-footer__inner {
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 20px 32px;
  padding-block: 40px 48px;
}

.site-footer__mark {
  line-height: 0;
}

.site-footer__mark img {
  width: 30px;
  height: 30px;
}

.site-footer__legal {
  flex: 1 1 260px;
}

.site-footer__legal p {
  margin: 0;
}

.site-footer__copyright {
  color: var(--heading);
  font-weight: 500;
}

.site-footer__links {
  display: flex;
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Page intro used on Team, Privacy and 404 */
.page-intro {
  padding-block: clamp(56px, 9vw, 104px) clamp(40px, 6vw, 64px);
}

.page-intro h1 {
  max-width: 16ch;
}

.page-intro__lead {
  max-width: 34em;
  margin-top: 26px;
  font-size: 1.2rem;
  line-height: 1.55;
}

/* Illustrative panels (activity record, specialist snapshot): shared frame */
.record {
  margin: 0;
  border: 1px solid var(--rule);
  background: var(--paper);
}

.record__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 16px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--rule);
}

.record__tag {
  padding: 3px 9px;
  background: var(--teal-wash);
  color: var(--teal-ink);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.record__meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 0;
  border-bottom: 1px solid var(--rule);
}

.record__meta div {
  padding: 12px 20px 14px;
}

.record__meta div + div {
  border-left: 1px solid var(--rule);
}

.record__meta dd {
  margin: 2px 0 0;
  color: var(--heading);
  font-size: 0.95rem;
  line-height: 1.4;
}


/* 4. Home page
   ========================================================================== */

/* Hero: left-aligned headline, stage strip and line drawing on the right */
.hero {
  overflow: hidden;                       /* keeps the drawing inside the hero, below the header */
}

.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr);
  align-items: end;
  gap: 48px;
  padding-block: clamp(64px, 11vw, 140px) clamp(64px, 9vw, 112px);
}

.hero__copy {
  position: relative;
  z-index: 1;
}

.hero__copy .label {
  margin-bottom: 26px;
}

.hero__sub {
  max-width: 34em;
  margin: 30px 0 38px;
  font-size: 1.2rem;
  line-height: 1.55;
}

/* Three-stage strip: what is live today and what is in development */
.hero__stages {
  position: relative;
  z-index: 1;
  max-width: 216px;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--rule);
  list-style: none;
}

.hero__stages li {
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 2px 0;
  padding: 12px 0 13px;
  border-bottom: 1px solid var(--rule);
}

.hero__stages-num {
  grid-row: span 2;
  color: var(--teal-ink);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 500;
  line-height: 1.95;
}

.hero__stages-name {
  color: var(--heading);
  font-size: 0.98rem;
  font-weight: 500;
  line-height: 1.4;
}

/* Signature drawing: strands that merge into one path (see section 8).
   All lines share one stroke width and one gradient, teal on the left
   fading to grey on the right, so the strands become the arrow. */
.hero__art {
  position: absolute;
  right: -24px;
  bottom: 104px;
  z-index: 0;
  width: min(46%, 470px);
  height: auto;
  overflow: visible;                      /* strands run on past the hero's bottom edge */
  pointer-events: none;
}

.hero__art path {
  fill: none;
  stroke: url(#hero-fade);
  stroke-width: 2;
  stroke-linecap: round;
}

.hero__art .hero__art-head {
  fill: var(--teal);
  stroke: var(--teal);
  stroke-width: 1;
  stroke-linejoin: round;
}

@media (max-width: 820px) {
  .hero__inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 44px;
  }

  .hero__copy .label {
    max-width: 200px;                     /* keeps the label clear of the drawing */
  }

  .hero__stages {
    max-width: 420px;
  }

  /* Smaller drawing, set well below the header so it never touches it */
  .hero__art {
    top: 22px;
    right: -70px;
    bottom: auto;
    width: 190px;
  }

  /* The drawing is scaled down here, so the strokes are thickened to match */
  .hero__art path {
    stroke-width: 4.2;
  }

  .hero__art .hero__art-head {
    stroke-width: 1;
  }
}

/* Shared section spacing */
.section {
  padding-block: var(--section-space);
}

.section--alt {
  background: var(--bg-alt);
}

.section--wash {
  background: var(--teal-wash);
}

.section--ruled {
  border-top: 1px solid var(--rule);
}

/* 01 The problem: full-width band, reading column plus a secondary list */
.problem__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: 40px clamp(40px, 8vw, 104px);
  align-items: start;
}

.problem__lead {
  margin-bottom: 22px;
  color: var(--heading);
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 3.2vw, 2.2rem);
  line-height: 1.22;
}

.problem__text {
  max-width: 34em;
}

.problem__list {
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--rule);
  list-style: none;
  counter-reset: handwork;
}

.problem__list-title {
  margin-bottom: 12px;
}

.problem__list li {
  display: flex;
  gap: 16px;
  padding: 9px 0;
  border-bottom: 1px solid var(--rule);
  font-size: 0.92rem;
  counter-increment: handwork;
}

.problem__list li::before {
  content: counter(handwork, lower-alpha) ".";
  color: var(--label);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  line-height: 1.9;
}

@media (max-width: 760px) {
  .problem__grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* 02 How it works: a loop of three stages along one continuous path.
   Strands converge (SVG) into a single line (CSS) that runs through the
   stages, then a dashed rail on the left carries it back to the start.
   Solid line = live today. Dashed line = in development. */
.loop {
  --line-x: 34px;                         /* horizontal position of the line */
  --stage-indent: 40px;                   /* space between line and text */
}

.loop__title {
  max-width: 22ch;
  margin-bottom: 40px;
}

.loop__strands {
  display: block;
  width: 190px;
  height: 84px;
  margin-left: var(--line-x);
  overflow: visible;
}

.loop__strands path {
  fill: none;
  stroke: var(--strand);
  stroke-width: 1.25;
  opacity: 0.55;
}

.loop__strands .loop__strands-teal {
  stroke: var(--teal);
  stroke-width: 1.5;
  opacity: 1;
}

.loop__stages {
  position: relative;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* the return rail: from the last node back up to the first */
.loop__stages::before {
  content: "";
  position: absolute;
  top: 11px;
  bottom: 5px;
  left: calc(var(--line-x) - 22px);
  width: 22px;
  border: 1.5px dashed var(--strand);
  border-right: 0;
  border-radius: 12px 0 0 12px;
  opacity: 0.7;
}

.loop__stage {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 430px);
  gap: 28px clamp(32px, 6vw, 80px);
  align-items: start;
  margin-left: var(--line-x);
  padding: 0 0 72px var(--stage-indent);
}

/* the line */
.loop__stage::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 1.5px;
  background: var(--teal);
}

/* the node on the line */
.loop__stage::after {
  content: "";
  position: absolute;
  top: 5px;
  left: -5px;
  width: 11.5px;
  height: 11.5px;
  border: 1.5px solid var(--teal);
  border-radius: 50%;
  background: var(--teal);
}

/* in-development stretches of the line are dashed, with hollow nodes */
.loop__stage--dev::before,
.loop__stage--leads-to-dev::before {
  background: repeating-linear-gradient(to bottom, var(--teal) 0 5px, transparent 5px 10px);
}

.loop__stage--dev::after {
  background: var(--bg);
}

/* last row: where the path turns back toward stage 1 */
.loop__stage--return {
  display: block;
  padding-bottom: 26px;
}

.loop__stage--return::after {
  top: auto;
  bottom: 0;
  width: 9.5px;
  height: 9.5px;
  left: -4px;
  border-color: var(--strand);
}

.loop__text .status {
  margin-bottom: 8px;
}

.loop__text h3 {
  margin-bottom: 10px;
}

.loop__text p {
  max-width: 30em;
}

.loop__return-text {
  max-width: 34em;
  color: var(--label);
  font-size: 0.92rem;
  line-height: 1.5;
}

/* Activity record: timestamped log */
.record__log {
  margin: 0;
  padding: 6px 20px;
  list-style: none;
}

.record__log li {
  display: grid;
  grid-template-columns: 104px 1fr;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px solid var(--rule);
  font-size: 0.9rem;
  line-height: 1.45;
}

.record__log li:last-child {
  border-bottom: 0;
}

.record__time {
  color: var(--label);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-variant-numeric: tabular-nums;
  line-height: 1.75;
  white-space: nowrap;
}

.record__entry {
  color: var(--heading);
}

.record__status {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin: 0;
  padding: 13px 20px;
  border-top: 1px solid var(--rule);
  background: var(--bg);
}

.record__status strong {
  color: var(--teal-ink);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

/* Specialist snapshot: three anonymized groups compared on the same fields */
.snapshot__group {
  padding: 14px 20px 12px;
  border-bottom: 1px solid var(--rule);
}

.snapshot__group:last-child {
  border-bottom: 0;
}

.snapshot__name {
  margin-bottom: 6px;
  color: var(--teal-ink);
}

.snapshot__fields {
  margin: 0;
}

.snapshot__fields div {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 12px;
  padding: 4px 0;
  font-size: 0.88rem;
  line-height: 1.45;
}

.snapshot__fields dd {
  margin: 0;
  color: var(--heading);
}

@media (max-width: 880px) {
  .loop {
    --line-x: 22px;
    --stage-indent: 26px;
  }

  .loop__stages::before {
    left: calc(var(--line-x) - 16px);
    width: 16px;
  }

  .loop__stage {
    grid-template-columns: minmax(0, 1fr);
    padding-bottom: 56px;
  }

  .loop__stage .record {
    max-width: 480px;
  }
}

@media (max-width: 480px) {
  .record__log li {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .record__head,
  .record__status,
  .record__meta div,
  .snapshot__group {
    padding-inline: 14px;
  }

  .record__log {
    padding-inline: 14px;
  }
}

/* 03 What practices get: two ruled columns, today and as Navern learns */
.gets__title {
  max-width: 18ch;
  margin-bottom: 48px;
}

.gets__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 56px clamp(40px, 7vw, 96px);
  align-items: start;
}

.gets__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--heading);
}

.gets__col--dev .gets__head {
  border-bottom-style: dashed;
}

.gets__head h3 {
  font-size: 1.7rem;
}

.gets__list {
  margin: 0;
}

.gets__row {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 4px 0;
  padding: 22px 0;
  border-bottom: 1px solid var(--rule);
}

/* Row marker, matching the status labels: filled dot = live today,
   hollow dot = in development */
.gets__row::before {
  content: "";
  grid-row: span 2;
  width: 8px;
  height: 8px;
  margin-top: 11px;
  border: 1.5px solid var(--teal);
  border-radius: 50%;
  background: var(--teal);
}

.gets__col--dev .gets__row::before {
  border-color: var(--label);
  background: transparent;
}

.gets__row dt {
  color: var(--heading);
  font-family: var(--font-heading);
  font-size: 1.35rem;
  line-height: 1.25;
}

.gets__row dd {
  margin: 0;
  max-width: 30em;
  font-size: 1rem;
}

@media (max-width: 760px) {
  .gets__grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* 04 Where we're headed: tinted band, heading beside a narrow column */
.direction__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: 24px clamp(40px, 8vw, 104px);
}

.direction__text {
  max-width: 34em;
  font-size: 1.15rem;
  line-height: 1.6;
}

.direction__text p:first-child {
  color: var(--heading);
}

@media (max-width: 760px) {
  .direction__grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Closing call to action (also used on the Team page) */
.closing__inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 32px 48px;
}

.closing__text {
  max-width: 30em;
}

.closing__text h2 {
  margin-bottom: 16px;
}


/* 5. Team page
   ========================================================================== */

.team {
  padding-bottom: var(--section-space);
}

.team__list {
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--heading);
  list-style: none;
}

.team__person {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 12px 32px;
  align-items: baseline;
  padding: clamp(36px, 5vw, 56px) 0;
  border-bottom: 1px solid var(--rule);
}

.team__num {
  color: var(--teal-ink);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.team__name {
  margin-bottom: 8px;
  font-size: clamp(1.7rem, 3.4vw, 2.3rem);
}

.team__bio {
  max-width: 30em;
  font-size: 1.1rem;
  line-height: 1.6;
}

@media (max-width: 760px) {
  .team__person {
    grid-template-columns: 40px minmax(0, 1fr);
  }

  .team__bio {
    grid-column: 2;
  }
}


/* 6. Contact page
   ========================================================================== */

.contact {
  padding-block: clamp(56px, 9vw, 104px) var(--section-space);
}

.contact__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr);
  gap: 48px clamp(40px, 7vw, 88px);
  align-items: start;
}

.contact__intro h1 {
  margin-bottom: 26px;
}

.contact__human {
  max-width: 24em;
  color: var(--heading);
  font-size: 1.2rem;
  line-height: 1.5;
}

.contact__aside {
  max-width: 26em;
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid var(--rule);
  font-size: 0.95rem;
}

/* The form, laid out like a referral slip */
.slip {
  border: 1px solid var(--rule);
  background: var(--paper);
}

.slip__head {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 4px 16px;
  padding: 14px clamp(18px, 4vw, 28px);
  border-bottom: 1px solid var(--rule);
}

.slip__body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px 28px;
  padding: 28px clamp(18px, 4vw, 28px) 30px;
}

.field {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.field--wide {
  grid-column: 1 / -1;
}

.field label {
  margin-bottom: 4px;
  color: var(--label);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.field__num {
  margin-right: 8px;
  color: var(--teal-ink);
  font-variant-numeric: tabular-nums;
}

.field__optional {
  margin-left: 6px;
  letter-spacing: 0.04em;
  text-transform: none;
}

/* Inputs are a single ruled line, like a paper form */
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 9px 2px;
  border: 0;
  border-bottom: 1px solid var(--muted);
  border-radius: 0;
  background: transparent;
  color: var(--heading);
  font: inherit;
  font-size: 1rem;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.field input,
.field select {
  height: 44px;
}

/* the "Select one" placeholder reads as empty until a choice is made */
.field select:has(option[value=""]:checked) {
  color: var(--label);
}

.field textarea {
  min-height: 132px;
  resize: vertical;
  line-height: 1.5;
}

.field input:hover,
.field select:hover,
.field textarea:hover {
  border-bottom-color: var(--heading);
}

.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
  outline: 2px solid var(--teal-ink);
  outline-offset: 2px;
  border-bottom-color: var(--teal);
  background: var(--teal-wash);
}

/* Honeypot field for spam bots. Hidden from people, see main.js */
.slip__trap {
  position: absolute;
  left: -9999px;
}

/* Tear-off strip with the submit button */
.slip__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px 24px;
  padding: 20px clamp(18px, 4vw, 28px);
  border-top: 1px dashed var(--muted);
}

.slip__notice {
  flex: 1 1 220px;
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.45;
}

/* Inline success and error messages */
.slip__status {
  margin: 0 clamp(18px, 4vw, 28px) 24px;
  padding: 14px 16px;
  border-left: 3px solid var(--teal);
  background: var(--teal-wash);
  color: var(--heading);
}

.slip__status[hidden] {
  display: none;
}

.slip__status--error {
  border-left-color: #B3261E;
  background: rgba(179, 38, 30, 0.07);
}

.slip__sent {
  padding: 44px clamp(18px, 4vw, 28px) 48px;
}

.slip__sent h2 {
  margin: 10px 0 14px;
  font-size: 2rem;
}

@media (max-width: 820px) {
  .contact__grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 520px) {
  .slip__body {
    grid-template-columns: minmax(0, 1fr);
  }
}


/* 7. Privacy and 404 pages
   ========================================================================== */

.prose {
  max-width: 40em;
  padding-bottom: var(--section-space);
}

.prose h2 {
  margin: 44px 0 12px;
  padding-top: 22px;
  border-top: 1px solid var(--rule);
  font-size: 1.5rem;
}

.prose ul {
  margin: 0 0 1em;
  padding-left: 1.2em;
}

.prose li {
  margin-bottom: 0.35em;
}

.not-found {
  padding-block: clamp(72px, 14vw, 168px);
}

.not-found h1 {
  max-width: 14ch;
  margin: 22px 0 24px;
}

.not-found p {
  max-width: 30em;
  margin-bottom: 32px;
}


/* 8. Motion
   ========================================================================== */

/* Scroll reveal: main.js adds .reveal-pending to sections below the fold,
   then removes it when they scroll into view. */
[data-reveal] {
  transition: opacity 0.7s ease, transform 0.7s ease;
}

[data-reveal].reveal-pending {
  opacity: 0;
  transform: translateY(18px);
}

/* Hero drawing: every path has pathLength="1", so a dash of 1 covers the
   whole line. The strands draw up from the bottom and meet, then the single
   path continues from that point up to the arrowhead. */
.hero__art path {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: draw-line 1.5s cubic-bezier(0.45, 0, 0.2, 1) forwards;
  animation-delay: calc(var(--order, 0) * 0.12s + 0.2s);
}

.hero__art .hero__art-main {
  animation-duration: 1.2s;
  animation-timing-function: cubic-bezier(0.3, 0, 0.2, 1);
  animation-delay: 1.75s;
}

/* The arrowhead appears as the main curve finishes drawing */
.hero__art .hero__art-head {
  stroke-dasharray: none;
  animation: arrowhead-in 0.35s ease-out 2.8s both;
}

@keyframes draw-line {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes arrowhead-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  [data-reveal],
  .button,
  a {
    transition: none;
  }

  [data-reveal].reveal-pending {
    opacity: 1;
    transform: none;
  }

  .hero__art path,
  .hero__art .hero__art-head {
    stroke-dashoffset: 0;
    animation: none;
  }
}
