/* ==========================================================================
   Two Ol' Guys Handyman Services: site styles
   1. Fonts   2. Design tokens   3. Base   4. Layout   5. Header and nav
   6. Buttons   7. Page sections   8. Gallery and lightbox   9. Forms
   10. Footer   11. Preview-only markers   12. Reduced motion
   ========================================================================== */

/* 1. Fonts (self-hosted, SIL Open Font License; see fonts/OFL-*.txt) */
@font-face {
  font-family: "Bitter";
  src: url("../fonts/bitter-latin-var.woff2") format("woff2");
  font-weight: 600 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Source Sans 3";
  src: url("../fonts/source-sans-3-latin-var.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

/* 2. Design tokens. Change colors, type, and spacing here. */
:root {
  --spruce: #1f3d36;
  --spruce-deep: #17302a;
  --copper: #a9502a;        /* button fills and decoration */
  --copper-deep: #8c4122;   /* link and label text (AA on cream and linen) */
  --brass: #d8a844;         /* accents on dark backgrounds only */
  --brass-light: #e6bf6a;
  --cream: #faf6ef;
  --linen: #f0e8da;
  --paper: #fffdf8;
  --line: #d9ccb6;
  --ink: #26231f;
  --ink-muted: #5c554c;
  --field-border: #7a7266;
  --error: #a12a1f;
  --white: #fff;

  --font-display: "Bitter", Georgia, "Times New Roman", serif;
  --font-body: "Source Sans 3", "Segoe UI", system-ui, -apple-system, sans-serif;

  --step--1: 1rem;
  --step-0: 1.125rem;
  --step-1: 1.25rem;
  --step-2: clamp(1.375rem, 1.22rem + 0.6vw, 1.625rem);
  --step-3: clamp(1.75rem, 1.45rem + 1.4vw, 2.375rem);
  --step-4: clamp(2.125rem, 1.6rem + 2.6vw, 3.375rem);

  --space-xs: 0.75rem;
  --space-s: 1rem;
  --space-m: 1.5rem;
  --space-l: 2.5rem;
  --space-xl: clamp(3rem, 2rem + 5vw, 6rem);

  --wrap: 72rem;
  --gutter: clamp(1rem, 0.6rem + 2vw, 2rem);
  --radius: 6px;
  --radius-l: 10px;
  --focus: var(--spruce);
}

/* 3. Base */
*,
*::before,
*::after {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
}

img,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

h1,
h2,
h3 {
  margin: 0 0 var(--space-s);
  color: inherit;
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  text-wrap: balance;
}

h1 {
  font-size: var(--step-4);
  letter-spacing: -0.01em;
}

h2 {
  font-size: var(--step-3);
}

h3,
.h3 {
  font-family: var(--font-display);
  font-size: var(--step-2);
  font-weight: 600;
  line-height: 1.25;
}

p,
ul,
ol,
dl {
  margin: 0 0 var(--space-s);
}

p {
  max-width: 68ch;
}

a {
  color: var(--copper-deep);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  text-decoration-thickness: 2px;
}

/* Keep phone numbers on one line. */
a[href^="tel:"],
a[href^="sms:"] {
  white-space: nowrap;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.icon {
  width: 1.25em;
  height: 1.25em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

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

.skip-link {
  position: absolute;
  top: -10rem;
  left: var(--gutter);
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--paper);
  color: var(--ink);
  font-weight: 700;
  border-radius: var(--radius);
}

.skip-link:focus {
  top: 0.75rem;
}

/* 4. Layout */
.wrap {
  width: min(100% - 2 * var(--gutter), var(--wrap));
  margin-inline: auto;
}

.section {
  padding-block: var(--space-xl);
}

.section--linen {
  background: var(--linen);
}

.section__head {
  max-width: 46rem;
  margin-bottom: var(--space-l);
}

.section__head p {
  color: var(--ink-muted);
  font-size: var(--step-1);
}

.section__more {
  margin: var(--space-l) 0 0;
}

.eyebrow {
  margin-bottom: var(--space-xs);
  color: var(--copper-deep);
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.lead {
  color: var(--ink-muted);
  font-size: var(--step-1);
}

.on-dark {
  --focus: var(--brass);
  color: var(--cream);
}

.on-dark a:not(.btn) {
  color: var(--cream);
}

/* The one decorative motif: a tape-measure rule. */
.rule {
  height: 14px;
  background:
    linear-gradient(var(--copper), var(--copper)) top / 100% 1.5px no-repeat,
    repeating-linear-gradient(to right, var(--copper) 0 1.5px, transparent 1.5px 60px) top / 100% 12px no-repeat,
    repeating-linear-gradient(to right, var(--copper) 0 1.5px, transparent 1.5px 12px) top / 100% 6px no-repeat;
  opacity: 0.75;
}

/* 5. Header and nav */
.preview-banner {
  padding-block: 0.625rem;
  background: #fff3c4;
  color: #4d3a00;
  border-bottom: 1px solid #e0c56a;
  font-size: var(--step--1);
}

.preview-banner p {
  max-width: none;
  margin: 0;
}

.site-header {
  --focus: var(--brass);
  background: var(--spruce);
  color: var(--cream);
}

.site-header__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  min-height: 4.75rem;
  padding-block: 0.625rem;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  margin-right: auto;
  color: var(--cream);
  line-height: 1.05;
  text-decoration: none;
}

.wordmark__logo {
  width: 2.75rem;
  height: 2.75rem;
  flex: none;
  border-radius: 8px;
}

.wordmark__text {
  display: inline-flex;
  flex-direction: column;
}

.site-footer .wordmark__logo {
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 12px;
}

.wordmark__name {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 1.05rem + 0.9vw, 1.75rem);
  font-weight: 700;
}

.wordmark__apos {
  color: var(--brass);
}

.wordmark__sub {
  margin-top: 0.3rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.375rem;
  min-height: 2.75rem;
  padding: 0.5rem 0.625rem;
  background: transparent;
  color: var(--cream);
  border: 2px solid rgb(250 246 239 / 0.55);
  border-radius: var(--radius);
  font: inherit;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
}

.js .nav-toggle {
  display: inline-flex;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__open,
.nav-toggle[aria-expanded="false"] .nav-toggle__close {
  display: none;
}

.site-header .header-call {
  order: 2;
  gap: 0.375rem;
  min-height: 2.75rem;
  padding: 0.5rem 0.625rem;
  font-size: 1rem;
}

.header-call__full {
  display: none;
}

.site-nav {
  order: 3;
  flex-basis: 100%;
}

.js .site-header:not(.is-open) .site-nav {
  display: none;
}

.site-nav__list {
  margin: 0;
  padding: 0.25rem 0 0.75rem;
  list-style: none;
  border-top: 1px solid rgb(250 246 239 / 0.2);
}

.site-nav__link {
  display: block;
  padding: 0.75rem 0.25rem;
  color: var(--cream);
  border-bottom: 1px solid rgb(250 246 239 / 0.12);
  font-size: var(--step-1);
  font-weight: 600;
  text-decoration: none;
}

.site-nav__link[aria-current="page"] {
  color: var(--brass);
}

/* Small phones: icon-only buttons; the text stays available to screen readers. */
@media (max-width: 22.9375em) {
  .header-call__short {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
}

@media (max-width: 25.9375em) {
  .nav-toggle__label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
}

@media (min-width: 36em) {
  .site-header .wordmark__logo {
    width: 3.25rem;
    height: 3.25rem;
  }

  .wordmark__sub {
    font-size: 0.875rem;
    letter-spacing: 0.1em;
  }

  .site-header__bar {
    gap: 0.75rem;
  }

  .nav-toggle,
  .site-header .header-call {
    gap: 0.5rem;
    padding: 0.5rem 0.875rem;
    font-size: var(--step-0);
  }
}

@media (min-width: 60em) {
  .site-header__bar {
    flex-wrap: nowrap;
    gap: 2rem;
  }

  .js .nav-toggle {
    display: none;
  }

  .site-nav,
  .js .site-header:not(.is-open) .site-nav {
    display: block;
    order: 0;
    flex-basis: auto;
  }

  .site-nav__list {
    display: flex;
    gap: 1.75rem;
    padding: 0;
    border: 0;
  }

  .site-nav__item--home {
    display: none;
  }

  .site-nav__link {
    padding: 0.5rem 0;
    border: 0;
    font-size: var(--step-0);
    box-shadow: inset 0 -2px transparent;
  }

  .site-nav__link:hover {
    box-shadow: inset 0 -2px var(--brass);
  }

  .site-nav__link[aria-current="page"] {
    color: var(--cream);
    box-shadow: inset 0 -3px var(--brass);
  }

  .header-call__short {
    display: none;
  }

  .header-call__full {
    display: inline;
  }
}

/* 6. Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3rem;
  padding: 0.75rem 1.375rem;
  border: 2px solid transparent;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: var(--step-0);
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn--primary {
  background: var(--copper);
  color: var(--white);
}

.btn--primary:hover {
  background: var(--copper-deep);
  color: var(--white);
}

.btn--outline {
  background: transparent;
  color: var(--spruce);
  border-color: var(--spruce);
}

.btn--outline:hover {
  background: var(--spruce);
  color: var(--cream);
}

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

.btn--brass:hover {
  background: var(--brass-light);
  color: var(--ink);
}

.btn--outline-light {
  background: transparent;
  color: var(--cream);
  border-color: var(--cream);
}

.btn--outline-light:hover {
  background: var(--cream);
  color: var(--spruce);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* 7. Page sections */
.hero {
  padding-block: var(--space-l) var(--space-xl);
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-l);
  align-items: center;
}

.hero h1 {
  margin-bottom: var(--space-m);
}

.hero .btn-row {
  margin-block: var(--space-m);
}

.hero__img,
.hero .photo-ph {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: var(--radius-l);
}

@media (min-width: 56em) {
  .hero {
    padding-block: var(--space-xl);
  }

  .hero__img,
  .hero .photo-ph {
    aspect-ratio: 4 / 3;
  }

  .hero__grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: var(--space-xl);
  }
}

.fact-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin: 0;
  padding: 0;
  color: var(--ink-muted);
  font-size: var(--step--1);
  list-style: none;
}

.fact-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.fact-list .icon {
  color: var(--copper);
}

.page-hero {
  padding-block: var(--space-l);
  background: var(--linen);
  border-bottom: 1px solid var(--line);
}

.page-hero h1 {
  margin-bottom: 0.75rem;
  font-size: clamp(2rem, 1.6rem + 2vw, 3rem);
}

.page-hero .lead {
  margin-bottom: 0;
}

.card-grid,
.feature-grid,
.work-grid {
  display: grid;
  gap: var(--space-m);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
}

.card {
  padding: var(--space-m);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
}

.card > :last-child {
  margin-bottom: 0;
}

.card h3 {
  margin-bottom: 0.5rem;
}

.card p {
  color: var(--ink-muted);
}

.card__tick {
  display: block;
  width: 2.5rem;
  height: 3px;
  margin-bottom: var(--space-s);
  background: var(--copper);
}

.feature h3 {
  margin-bottom: 0.5rem;
}

.feature p {
  color: var(--ink-muted);
}

.work-grid figure {
  margin: 0;
}

.work-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-l);
}

.services-photos {
  margin-top: var(--space-xl);
}

.work-grid figcaption,
.gallery-item figcaption {
  margin-top: 0.5rem;
  color: var(--ink-muted);
  font-size: var(--step--1);
}

.steps {
  display: grid;
  gap: var(--space-m);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps > li {
  counter-increment: step;
}

.steps > li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  margin-bottom: var(--space-s);
  background: var(--spruce);
  color: var(--cream);
  border-radius: 50%;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
}

.steps h3 {
  margin-bottom: 0.5rem;
}

.steps p {
  color: var(--ink-muted);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-l);
}

@media (min-width: 52em) {
  .split {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: start;
  }
}

.town-list {
  columns: 2;
  column-gap: var(--space-m);
  margin: 0;
  padding: 0;
  list-style: none;
}

.town-list li,
.tick-list li {
  position: relative;
  margin-bottom: 0.375rem;
  padding-left: 1.375rem;
  break-inside: avoid;
}

.town-list li::before,
.tick-list li::before {
  content: "";
  position: absolute;
  top: 0.8em;
  left: 0;
  width: 0.75rem;
  height: 2px;
  background: var(--copper);
}

.town-list__more {
  margin: var(--space-xs) 0 0;
  color: var(--ink-muted);
}

.tick-list {
  padding: 0;
  list-style: none;
}

.service-list {
  display: grid;
  gap: var(--space-m);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr));
}

.service-block h2 {
  font-size: var(--step-2);
  margin-bottom: 0.5rem;
}

.cta-band {
  background: var(--spruce);
}

.cta-band__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-m);
}

.cta-band h2 {
  margin-bottom: 0.5rem;
}

.cta-band p {
  margin-bottom: 0;
}

@media (min-width: 52em) {
  .cta-band__inner {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: var(--space-l);
  }
}

.photo-ph {
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 0.25rem;
  aspect-ratio: 4 / 3;
  padding: var(--space-m);
  background: var(--linen);
  color: var(--ink-muted);
  border: 2px dashed var(--copper);
  border-radius: var(--radius-l);
  text-align: center;
}

.section--linen .photo-ph {
  background: var(--paper);
}

.photo-ph .icon {
  width: 2.5rem;
  height: 2.5rem;
  margin-bottom: 0.25rem;
  color: var(--copper);
  stroke-width: 1.5;
}

.photo-ph p {
  margin: 0;
}

.photo-ph__label {
  color: var(--ink);
  font-weight: 700;
}

.photo-ph--portrait {
  aspect-ratio: 4 / 5;
}

.about-photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius-l);
}

.facts {
  display: grid;
  gap: var(--space-s);
  margin: 0;
}

.facts dt {
  color: var(--ink-muted);
  font-size: var(--step--1);
  font-weight: 700;
}

.facts dd {
  margin: 0;
}

.about-grid,
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-l);
}

@media (min-width: 56em) {
  .about-grid {
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
    align-items: start;
  }

  .contact-grid {
    grid-template-columns: minmax(0, 22rem) minmax(0, 1fr);
    align-items: start;
  }
}

.prose h2 {
  margin-top: var(--space-l);
  font-size: var(--step-2);
}

.prose h2:first-child {
  margin-top: 0;
}

.aside-stack {
  display: grid;
  gap: var(--space-m);
}

.contact-phone {
  margin-bottom: 0.25rem;
  font-family: var(--font-display);
  font-size: var(--step-3);
  font-weight: 700;
  line-height: 1.1;
}

.contact-phone a {
  color: var(--ink);
  text-decoration: none;
}

.contact-phone--alt {
  margin-top: var(--space-s);
  font-size: var(--step-2);
}

.about-figure {
  margin: 0;
}

.about-figure figcaption {
  margin-top: 0.5rem;
  color: var(--ink-muted);
  font-size: var(--step--1);
}

.contact-photos {
  margin-top: var(--space-s);
  padding: var(--space-xs) var(--space-s);
  background: var(--linen);
  border-radius: var(--radius);
  font-size: var(--step--1);
}

.contact-card .btn-row {
  margin-block: var(--space-s) var(--space-m);
}

.link-list {
  display: grid;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.link-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.notice {
  margin-bottom: var(--space-m);
  padding: var(--space-s) var(--space-m);
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 4px solid var(--copper);
}

.notice p {
  margin: 0;
}

.notice--warn {
  background: #fbe9e6;
  border-color: #e3b4ab;
  border-left-color: var(--error);
}

.center-page {
  max-width: 40rem;
  padding-block: var(--space-xl);
}

/* 8. Gallery and lightbox */
.filters {
  display: none;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: var(--space-s);
}

.js .filters {
  display: flex;
}

.filter-btn {
  min-height: 2.75rem;
  padding: 0.5rem 1.125rem;
  background: transparent;
  color: var(--spruce);
  border: 2px solid var(--spruce);
  border-radius: 999px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.filter-btn:hover {
  background: var(--linen);
}

.filter-btn[aria-pressed="true"] {
  background: var(--spruce);
  color: var(--cream);
}

.gallery-status {
  margin-bottom: var(--space-m);
  color: var(--ink-muted);
  font-size: var(--step--1);
}

.gallery-grid {
  display: grid;
  gap: var(--space-l) var(--space-m);
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr));
  grid-auto-flow: row dense; /* let single photos fill gaps beside wide before/after pairs */
  margin: 0;
  padding: 0;
  list-style: none;
}

.gallery-item figure {
  margin: 0;
}

.gallery-link {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--linen);
  border-radius: var(--radius-l);
}

.gallery-link img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery-link:hover img {
  transform: scale(1.02);
}

.pair {
  display: grid;
  gap: var(--space-s);
  grid-template-columns: 1fr;
}

.pair__label {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.2rem 0.625rem;
  background: var(--spruce);
  color: var(--cream);
  border-radius: 4px;
  font-size: var(--step--1);
  font-weight: 700;
}

@media (min-width: 30em) {
  .pair {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 40em) {
  .gallery-item--pair {
    grid-column: span 2;
  }
}

.lightbox {
  --focus: var(--brass);
  width: min(100% - 1.5rem, 70rem);
  max-width: none;
  max-height: calc(100vh - 1.5rem);
  max-height: calc(100dvh - 1.5rem);
  padding: 0;
  background: var(--ink);
  color: var(--cream);
  border: 0;
  border-radius: var(--radius-l);
}

.lightbox::backdrop {
  background: rgb(20 18 16 / 0.85);
}

.lightbox__top,
.lightbox__nav {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.625rem;
}

.lightbox__top {
  justify-content: space-between;
  padding-left: 1rem;
}

.lightbox__nav {
  justify-content: center;
}

.lightbox__counter {
  margin: 0;
  font-size: var(--step--1);
}

.lightbox__figure {
  display: grid;
  justify-items: center;
  margin: 0;
  padding-inline: 1rem;
}

.lightbox__img {
  width: auto;
  max-height: calc(100vh - 12rem);
  max-height: calc(100dvh - 12rem);
  object-fit: contain;
  border-radius: 4px;
}

.lightbox__caption {
  max-width: 60ch;
  margin-top: 0.75rem;
  text-align: center;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  min-width: 2.75rem;
  min-height: 2.75rem;
  padding: 0.5rem 0.875rem;
  background: transparent;
  color: var(--cream);
  border: 2px solid rgb(250 246 239 / 0.5);
  border-radius: var(--radius);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.icon-btn:hover {
  border-color: var(--cream);
}

/* 9. Forms */
.form-card {
  padding: clamp(1.25rem, 0.9rem + 2vw, 2.25rem);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
}

.form {
  display: grid;
  gap: var(--space-m);
}

.field {
  display: grid;
  gap: 0.375rem;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.field > label,
.field > legend {
  padding: 0;
  font-weight: 700;
}

.field__note {
  color: var(--ink-muted);
  font-weight: 400;
}

.field__hint {
  margin: 0;
  color: var(--ink-muted);
  font-size: var(--step--1);
}

.field-row {
  display: grid;
  gap: var(--space-s);
}

@media (min-width: 36em) {
  .field-row {
    grid-template-columns: 1fr 1fr;
  }
}

.field-row .field > label {
  font-weight: 600;
}

input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
  width: 100%;
  min-height: 3rem;
  padding: 0.625rem 0.75rem;
  background: var(--white);
  color: var(--ink);
  border: 2px solid var(--field-border);
  border-radius: var(--radius);
  font: inherit;
}

select {
  padding-right: 2.5rem;
  background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2326231f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 0.75rem center / 1.25rem;
  appearance: none;
}

textarea {
  min-height: 9rem;
  resize: vertical;
}

input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  border-color: var(--spruce);
  outline-offset: 1px;
}

[aria-invalid="true"] {
  border-color: var(--error) !important;
}

.field__error {
  margin: 0;
  color: var(--error);
  font-size: var(--step--1);
  font-weight: 700;
}

.choice-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.5rem;
}

.choice {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  cursor: pointer;
}

.choice input {
  width: 1.25rem;
  height: 1.25rem;
  margin: 0;
  accent-color: var(--spruce);
}

.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status:empty {
  display: none;
}

.form-status {
  padding: var(--space-s);
  border-radius: var(--radius);
  font-weight: 600;
}

.form-status[data-type="error"] {
  background: #fbe9e6;
  color: #7d1f16;
  border: 1px solid #e3b4ab;
}

.form-status:focus {
  outline-offset: 2px;
}

.form__privacy {
  margin: 0;
  color: var(--ink-muted);
  font-size: var(--step--1);
}

/* 10. Footer */
.site-footer {
  --focus: var(--brass);
  padding-block: var(--space-l) var(--space-m);
  background: var(--spruce-deep);
  color: var(--cream);
}

.site-footer a {
  color: var(--cream);
}

.site-footer h2 {
  margin-bottom: 0.75rem;
  color: var(--brass);
  font-family: var(--font-body);
  font-size: var(--step--1);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-grid {
  display: grid;
  gap: var(--space-l);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr));
}

.footer-brand p {
  margin-top: var(--space-s);
}

.footer-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.375rem;
}

.footer-list a {
  display: inline-block;
  padding-block: 0.25rem;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  margin-top: var(--space-l);
  padding-top: var(--space-m);
  border-top: 1px solid rgb(250 246 239 / 0.2);
  font-size: var(--step--1);
}

.footer-bottom p {
  margin: 0;
}

/* 11. Preview-only markers. Search for class="todo" before launch; none should remain. */
.todo {
  padding: 0 0.2em;
  background: #fff3c4;
  color: #4d3a00;
  outline: 1px dashed #b58a00;
  outline-offset: 1px;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.todo-block {
  padding: 0.75rem 1rem;
  background: #fff3c4;
  color: #4d3a00;
  outline: 1px dashed #b58a00;
  border-radius: var(--radius);
}

.todo-block p,
.todo-block h3 {
  color: #4d3a00;
}

.todo-note {
  max-width: none;
  margin-bottom: var(--space-m);
  padding: 0.5rem 0.875rem;
  background: #fff3c4;
  color: #4d3a00;
  border: 1px dashed #b58a00;
  border-radius: var(--radius);
  font-size: var(--step--1);
}

.todo-tag {
  display: inline-block;
  margin-top: var(--space-xs);
  padding: 0.1rem 0.5rem;
  background: #fff3c4;
  color: #4d3a00;
  border: 1px dashed #b58a00;
  border-radius: 4px;
  font-size: 0.9375rem;
  font-weight: 700;
}

/* 12. Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
