/* ==========================================================================
   TradesFront — main stylesheet
   Mobile-first: base styles target 390px; scale up with min-width queries.
   ========================================================================== */


/* --------------------------------------------------------------------------
   1. Design tokens — colour
   -------------------------------------------------------------------------- */

:root {
  --ink:          #1C2B38;  /* Primary text, headings, borders */
  --ink-soft:     #3C4C58;  /* Secondary/body-support text */
  --paper:        #ECE9E1;  /* Page background — warm stone, not cream */
  --paper-panel:  #F6F4EE;  /* Card/panel background */
  --paper-line:   #C9C4B6;  /* Hairline borders, dashed dividers */
  --accent:       #B4440A;  /* CTAs, key accents — safety orange (darkened for WCAG AA) */
  --accent-ink:   #FFF7EE;  /* Text on top of --accent */
  --tape:         #F0B429;  /* Small highlight marks only — used sparingly */
  --slate:        #5B6B76;  /* Muted labels, meta text */
  --white:        #FFFDF9;  /* Card interiors needing true light contrast */

  /* Sample-site mockup only: stand-ins for job photos in the fake gallery.
     Same in both themes (photos don't change with the theme).
     Remove once the mockup is replaced with a real screenshot. */
  --mock-sand:    #D8C9A3;
  --mock-sage:    #B7C4B1;
  --mock-clay:    #C2B7A8;
  --mock-steel:   #A9B7BE;

  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink:          #ECE9E1;
    --ink-soft:     #C7CBCE;
    --paper:        #14181C;
    --paper-panel:  #1C2126;
    --paper-line:   #333B41;
    --accent:       #FF7A3D;
    --accent-ink:   #14181C;
    --tape:         #8A600A;  /* Darker so --ink text on the highlight clears 4.5:1 */
    --slate:        #9AA6AC;
    --white:        #0F1216;

    color-scheme: dark;
  }
}


/* --------------------------------------------------------------------------
   2. Design tokens — type & layout
   -------------------------------------------------------------------------- */

:root {
  --font-display: 'Archivo', sans-serif;
  --font-body:    'Work Sans', sans-serif;

  --content-max:  1080px;
  --gutter:       24px;
  --section-gap:  64px;
  --radius:       4px;
  --radius-lg:    6px;

  /* Sticky header height, excluding the safe-area inset.
     Pinned via .nav min-height so anchor offsets stay exact. */
  --nav-h:        90px; /* fits the "Get in touch" button, shown at every width */
  --header-h:     calc(var(--nav-h) + 2px); /* + bottom border */
}


/* --------------------------------------------------------------------------
   3. Reset
   -------------------------------------------------------------------------- */

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

* {
  margin: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* Anchor targets land below the sticky header, not under it */
  scroll-padding-top: calc(var(--header-h) + env(safe-area-inset-top, 0px));
}

img,
picture,
svg,
video {
  display: block;
  max-width: 100%;
}

input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

:where(ul, ol)[role="list"] { /* :where() = zero specificity, so component classes can set padding */
  list-style: none;
  padding: 0;
}

p,
h1,
h2,
h3,
h4 {
  overflow-wrap: break-word;
}


/* --------------------------------------------------------------------------
   4. Base
   -------------------------------------------------------------------------- */

/* Safe-area padding so content clears notches / home indicators
   (paired with viewport-fit=cover in the viewport meta).
   The top inset lives on .site-header instead, so the sticky header
   clears the notch after scrolling too. */
:root {
  padding-bottom: env(safe-area-inset-bottom, 0px);
  padding-left: env(safe-area-inset-left, 0px);
  padding-right: env(safe-area-inset-right, 0px);
}

html {
  background-color: var(--paper);
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  background-color: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--ink);
}

a {
  color: inherit;
  text-underline-offset: 0.15em;
}

::selection {
  background-color: var(--tape);
  color: var(--ink);
}

/* Visible keyboard focus on every interactive element */
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}


/* --------------------------------------------------------------------------
   5. Utilities
   -------------------------------------------------------------------------- */

.container {
  width: 100%;
  max-width: var(--content-max);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}


/* --------------------------------------------------------------------------
   6. Buttons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 16px;
  padding: 14px 26px;
  border-radius: 3px;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
}

.btn-primary {
  background-color: var(--accent);
  color: var(--accent-ink);
}

.btn-primary:hover {
  filter: brightness(1.08);
}

.btn-ghost {
  background-color: transparent;
  color: var(--ink);
  border-color: var(--ink);
}

.btn-ghost:hover {
  background-color: var(--ink);
  color: var(--paper);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.kicker {
  display: inline-block;
  font-weight: 700;
  font-size: 14px;
  color: var(--slate);
  margin-bottom: 14px;
}


/* --------------------------------------------------------------------------
   7. Header / navigation
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background-color: var(--paper);
  border-bottom: 2px solid var(--ink);
  padding-top: env(safe-area-inset-top, 0px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--content-max);
  min-height: var(--nav-h);
  margin: 0 auto;
  padding: 16px var(--gutter);
}

.logo {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 22px;
  letter-spacing: -0.02em;
  text-decoration: none;
  color: var(--ink);
}

.logo span {
  color: var(--accent);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-link {
  display: none;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
}

.nav-link:hover {
  color: var(--accent);
}

@media (min-width: 640px) {
  .nav-link {
    display: inline;
  }
}


/* --------------------------------------------------------------------------
   8. Hero
   -------------------------------------------------------------------------- */

.hero {
  padding: 64px 0 56px;
}

.hero-grid {
  display: grid;
  /* minmax(0, …) stops long ticket values widening the page on mobile */
  grid-template-columns: minmax(0, 1fr);
  gap: 40px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(34px, 5.6vw, 58px);
}

.hero h1 em {
  font-style: normal;
  background: linear-gradient(transparent 62%, var(--tape) 62%);
}

.hero-sub {
  margin-top: 18px;
  max-width: 46ch;
  font-size: 19px;
  color: var(--ink-soft);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin-top: 22px;
  font-size: 14px;
  font-weight: 600;
  color: var(--slate);
}

.hero-meta li {
  display: flex;
  align-items: center;
  gap: 7px;
}

.dot {
  flex: none;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--accent);
}

@media (min-width: 860px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: 48px;
  }
}

/* Job-ticket motif — the one deliberate box-shadow in the design */
.ticket {
  position: relative;
  background-color: var(--paper-panel);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  padding: 22px 22px 18px;
  transform: rotate(-1.4deg);
  box-shadow: 8px 8px 0 var(--paper-line);
}

/* Perforation line across the ticket, below the head */
.ticket::before {
  content: "";
  position: absolute;
  top: 96px;
  left: -2px;
  right: -2px;
  border-top: 2px dashed var(--paper-line);
}

.ticket-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 20px;
}

.ticket-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 15px;
}

.ticket-sub {
  margin-top: 2px;
  font-size: 12px;
  color: var(--slate);
}

.stamp {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 12px;
  color: var(--accent);
  border: 2px solid var(--accent);
  border-radius: 3px;
  padding: 4px 8px;
  transform: rotate(4deg);
}

.ticket-rows {
  display: flex;
  flex-direction: column;
  gap: 13px;
  margin-top: 26px;
}

.ticket-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 14px;
}

.ticket-row .label {
  flex: none;
  color: var(--slate);
}

.ticket-row .val {
  font-weight: 700;
  text-align: right;
}

.ticket-foot {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 2px solid var(--ink);
}

.ticket-foot .price {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 26px;
}

.ticket-foot .price small {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 13px;
  color: var(--slate);
}

.ticket-foot .status {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
}


/* --------------------------------------------------------------------------
   9. Section shell
   -------------------------------------------------------------------------- */

.section {
  padding: var(--section-gap) 0;
}

/* Tear-off perforation between major sections */
.rule-top {
  border-top: 2px dashed var(--paper-line);
}

.section-head {
  max-width: 60ch;
  margin-bottom: 40px;
}

.section-head h2 {
  font-size: clamp(26px, 3.6vw, 36px);
}

.section-head p {
  margin-top: 12px;
  font-size: 17px;
  color: var(--ink-soft);
}


/* --------------------------------------------------------------------------
   10. Process
   -------------------------------------------------------------------------- */

.steps {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
}

@media (min-width: 760px) {
  .steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.step {
  position: relative;
  background-color: var(--paper-panel);
  border: 1.5px solid var(--paper-line);
  border-radius: var(--radius);
  padding: 26px 22px;
}

.step-num {
  margin-bottom: 14px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 40px;
  line-height: 1;
  color: var(--accent);
}

.step h3 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 18px;
}

.step p {
  margin-top: 8px;
  font-size: 15px;
  color: var(--ink-soft);
}


/* --------------------------------------------------------------------------
   11. What's included
   -------------------------------------------------------------------------- */

/* 1px gaps over a --paper-line background draw the hairlines between cells */
.included-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1px;
  background-color: var(--paper-line);
  border: 1.5px solid var(--paper-line);
  border-radius: var(--radius);
  overflow: hidden;
}

@media (min-width: 640px) {
  .included-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.included-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background-color: var(--paper-panel);
  padding: 20px 22px;
}

.included-item svg {
  flex: none;
  margin-top: 3px;
}

/* Small item titles: body font, not the display headline style */
.included-item h3 {
  margin-bottom: 4px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 16px;
  line-height: 1.55;
  letter-spacing: normal;
}

.included-item p {
  font-size: 14.5px;
  color: var(--ink-soft);
}

.note-panel {
  margin-top: 22px;
  padding: 16px 18px;
  background-color: var(--paper-panel);
  border-left: 3px solid var(--tape);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 14.5px;
  color: var(--ink-soft);
}

.note-panel strong {
  color: var(--ink);
}

.note-panel a {
  font-weight: 600;
  color: var(--ink);
}

.note-panel a:hover {
  color: var(--accent);
}


/* --------------------------------------------------------------------------
   12. Sample site
   -------------------------------------------------------------------------- */

.sample-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 36px;
  align-items: center;
}

@media (min-width: 860px) {
  .sample-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.sample-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
}

.sample-copy h2 {
  font-size: clamp(26px, 3.6vw, 36px);
}

.sample-copy p:not(.kicker) {
  font-size: 17px;
  color: var(--ink-soft);
}

/* Browser-frame mockup — placeholder until a real screenshot exists */
.browser-frame {
  overflow: hidden;
  background-color: var(--white);
  border: 2px solid var(--ink);
  border-radius: var(--radius-lg);
}

.browser-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background-color: var(--paper-panel);
  border-bottom: 1.5px solid var(--paper-line);
}

.browser-bar .dots {
  display: flex;
  gap: 6px;
}

.browser-bar .dots span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background-color: var(--paper-line);
}

.browser-bar .url {
  flex: 1;
  margin-left: 8px;
  padding: 4px 10px;
  background-color: var(--paper);
  border-radius: 3px;
  font-size: 12.5px;
  color: var(--slate);
}

.mock-site {
  padding: 26px 26px 32px;
}

.mock-hero {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 30px 24px;
  background-color: var(--ink);
  color: var(--white);
  border-radius: var(--radius);
}

.mock-hero .m-brand {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 15px;
  color: var(--accent);
}

.mock-hero .m-h {
  max-width: 20ch;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(20px, 3vw, 26px);
}

/* Muted text on the --ink panel; --paper-line reads as muted in both themes */
.mock-hero .m-p {
  max-width: 34ch;
  font-size: 13.5px;
  color: var(--paper-line);
}

.mock-hero .m-btn {
  align-self: flex-start;
  margin-top: 6px;
  padding: 9px 16px;
  background-color: var(--accent);
  color: var(--accent-ink);
  border-radius: 3px;
  font-weight: 700;
  font-size: 13px;
}

.mock-gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 18px;
}

.mock-gallery div {
  aspect-ratio: 1;
  border: 1.5px solid var(--paper-line);
  border-radius: 3px;
}

.mock-gallery div:nth-child(1) { background-color: var(--mock-sand); }
.mock-gallery div:nth-child(2) { background-color: var(--mock-sage); }
.mock-gallery div:nth-child(3) { background-color: var(--mock-clay); }
.mock-gallery div:nth-child(4) { background-color: var(--mock-steel); }

.mock-strip {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
  font-size: 12px;
  font-weight: 600;
  color: var(--slate);
}


/* --------------------------------------------------------------------------
   13. Who it's for
   -------------------------------------------------------------------------- */

.trade-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.trade-pills li {
  padding: 9px 16px;
  background-color: var(--paper-panel);
  border: 1.5px solid var(--paper-line);
  border-radius: 20px;
  font-size: 14.5px;
  font-weight: 600;
}


/* --------------------------------------------------------------------------
   14. Pricing
   -------------------------------------------------------------------------- */

.price-card {
  display: grid;
  gap: 28px;
  padding: 36px 32px;
  background-color: var(--paper-panel);
  border: 2px solid var(--ink);
  border-radius: var(--radius-lg);
}

@media (min-width: 760px) {
  .price-card {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 40px;
    align-items: center;
  }
}

.price-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-top: 14px;
  font-size: 15px;
}

.price-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

/* Check icon: same 20px line-icon convention as .included-item svg */
.price-list svg {
  flex: none;
  margin-top: 2px; /* centres the 20px icon on the first 15px/1.55 line */
  color: var(--accent);
}

.price-figure {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 46px;
  line-height: 1.55;
}

.price-figure span {
  display: block;
  margin-top: 4px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  color: var(--slate);
}

.price-terms {
  margin-top: 14px;
  font-size: 16px;
}

.price-note {
  margin-top: 12px;
  font-size: 14.5px;
  color: var(--ink-soft);
}

.price-note a {
  font-weight: 600;
  color: var(--ink);
}

.price-note a:hover {
  color: var(--accent);
}

.price-summary .cta-row {
  margin-top: 18px;
}

/* Visually secondary: smaller, muted, set apart by a hairline */
.price-optional {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1.5px solid var(--paper-line);
  font-size: 14px;
  color: var(--slate);
}

.offer-strip {
  margin-top: 20px;
  padding: 14px 18px;
  background-color: var(--paper);
  border: 1.5px dashed var(--paper-line);
  border-radius: var(--radius);
  font-size: 14.5px;
  color: var(--ink-soft);
}


/* --------------------------------------------------------------------------
   15. What's next
   -------------------------------------------------------------------------- */

.next-list {
  display: flex;
  flex-direction: column;
  margin-top: 24px;
}

.next-item {
  display: flex;
  gap: 18px;
  padding: 18px 0;
  border-top: 1.5px solid var(--paper-line);
}

.next-item:last-child {
  border-bottom: 1.5px solid var(--paper-line);
}

.next-item .tag {
  flex: none;
  height: fit-content;
  margin-top: 3px;
  padding: 3px 8px;
  border: 1.5px solid var(--accent);
  border-radius: 3px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 12px;
  color: var(--accent);
}

/* Small row titles: body font, not the display headline style */
.next-item h3 {
  margin-bottom: 4px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 15.5px;
  line-height: 1.55;
  letter-spacing: normal;
}

.next-item p {
  font-size: 14px;
  color: var(--slate);
}


/* --------------------------------------------------------------------------
   16. Closing CTA
   -------------------------------------------------------------------------- */

/* Inverted panel: --ink ground, --paper text (flips with the theme) */
.closing {
  padding: 48px 36px;
  background-color: var(--ink);
  color: var(--paper);
  border-radius: var(--radius-lg);
}

.closing h2 {
  max-width: 20ch;
  font-size: clamp(26px, 4vw, 38px);
  color: var(--paper);
}

/* Muted support line; --paper-line reads as muted on --ink in both themes */
.closing p {
  max-width: 46ch;
  margin-top: 12px;
  font-size: 16px;
  color: var(--paper-line);
}

.closing .cta-row {
  margin-top: 26px;
}

/* --accent outline is too faint against --ink; use --paper here */
.closing :focus-visible {
  outline-color: var(--paper);
}


/* --------------------------------------------------------------------------
   17. Contact page (contact.html)
   -------------------------------------------------------------------------- */

.contact-options {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  margin-top: 40px;
}

@media (min-width: 760px) {
  .contact-options {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
  }
}

/* Each option is one big tap target */
.contact-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  height: 100%;
  padding: 26px 22px;
  background-color: var(--paper-panel);
  border: 2px solid var(--ink);
  border-radius: var(--radius-lg);
  text-decoration: none;
}

.contact-card:hover {
  border-color: var(--accent);
}

.contact-card svg {
  margin-bottom: 8px;
  color: var(--accent);
}

.contact-card-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 22px;
  line-height: 1.2;
}

.contact-card-value {
  font-weight: 700;
  font-size: 17px;
  overflow-wrap: anywhere;
}

.contact-card:hover .contact-card-value {
  color: var(--accent);
}

.contact-card-hint {
  font-size: 14px;
  color: var(--slate);
}


/* --------------------------------------------------------------------------
   17b. Get started page (get-started.html)
   -------------------------------------------------------------------------- */

.next-steps {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 16px;
}

.next-steps li {
  display: flex;
  align-items: baseline;
  gap: 14px;
}

.next-steps-num {
  flex: none;
  min-width: 1em;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 22px;
  line-height: 1;
  color: var(--accent);
}

.form-panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 16px;
  padding: 24px 22px;
  background-color: var(--paper-panel);
  border: 1.5px solid var(--paper-line);
  border-radius: var(--radius-lg);
}

.form-panel .btn {
  align-self: flex-start;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field label {
  font-size: 14px;
  font-weight: 600;
}

/* 16px text stops iOS zooming in on focus; --slate border keeps 3:1+ against the field */
.field input {
  width: 100%;
  padding: 12px 14px;
  background-color: var(--white);
  border: 1.5px solid var(--slate);
  border-radius: var(--radius);
  font-size: 16px;
  color: var(--ink);
}

.field input:focus {
  border-color: var(--ink);
}

.pay-row {
  align-items: center;
  margin-top: 16px;
}

/* Locked until the details form is submitted (no href, so it can't be clicked or focused) */
.btn[aria-disabled="true"] {
  background-color: var(--paper-line);
  color: var(--slate);
  cursor: not-allowed;
}

.btn[aria-disabled="true"]:hover {
  filter: none;
}

.terms-link {
  font-size: 14px;
  font-weight: 600;
}

.terms-link:hover {
  color: var(--accent);
}


/* --------------------------------------------------------------------------
   18. Footer
   -------------------------------------------------------------------------- */

/* Bottom safe-area inset is already on :root, so no extra calc() here */
.site-footer {
  padding: 32px 0 40px;
  border-top: 2px solid var(--ink);
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
  font-size: 14px;
  color: var(--slate);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-grid a {
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
}

.footer-grid a:hover {
  color: var(--accent);
}


/* --------------------------------------------------------------------------
   19. Secondary pages (terms.html, thanks.html)
   -------------------------------------------------------------------------- */

/* Keep the footer at the bottom on short pages */
.subpage {
  display: flex;
  flex-direction: column;
}

.subpage main {
  flex: 1;
}

.page {
  padding: var(--section-gap) 0;
}

.page-body {
  max-width: 65ch;
}

.page-body h1 {
  font-size: clamp(30px, 4.4vw, 44px);
}

.page-body h2 {
  margin-top: 36px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 19px;
  line-height: 1.4;
  letter-spacing: normal;
}

.page-body p {
  margin-top: 12px;
  color: var(--ink-soft);
}

.page-body .page-lead {
  margin-top: 18px;
  font-size: 19px;
}

.page-meta {
  font-size: 14px;
  color: var(--slate);
}

.page-body .cta-row {
  margin-top: 36px;
}


/* --------------------------------------------------------------------------
   20. Motion
   -------------------------------------------------------------------------- */

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
