/* ==========================================================================
   Pensacola Fence — styles
   Order: fonts → tokens → base → components → header → sections → pages
          → consent → utilities → motion → print
   ========================================================================== */

/* ---------- Fonts (self-hosted, latin subset) ---------- */
@font-face {
  font-family: 'Sanchez';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/sanchez-400-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'Sanchez';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/sanchez-400-italic-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'Mako';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/mako-400-latin.woff2') format('woff2');
}

/* ---------- Tokens ---------- */
:root {
  /* Gulf sky and water */
  --gulf-900: #0f3550;
  --gulf-700: #134766;
  --gulf-500: #2a6f9c;
  --foam: #e7f1f6;
  /* Sand and paper */
  --sand-50: #fbf6ee;
  --sand-100: #f3e9d8;
  --sand-300: #dcc8a3;
  --paper: #fffdf8;
  --field: #f7f1e6;
  --plywood: #d9bf8f;
  /* Cedar */
  --cedar-800: #7f3d1d;
  --cedar-700: #8a4321;
  --cedar-600: #9c4f24;
  --cedar-300: #e3a571;
  /* Accents */
  --pine-700: #2e5a4c;
  --sun: #f2c14e;
  --sun-light: #f7d27a;
  --flag: #f05a28;
  --error: #a3261b;
  /* Text */
  --ink: #1c2a30;
  --ink-soft: #4a5960;
  --cream: #fbf4e6;

  --font-display: 'Sanchez', 'Rockwell', 'Roboto Slab', Georgia, serif;
  --font-body: 'Mako', 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;

  --step--1: clamp(0.84rem, 0.82rem + 0.1vw, 0.9rem);
  --step-0: clamp(1rem, 0.97rem + 0.15vw, 1.08rem);
  --step-1: clamp(1.2rem, 1.12rem + 0.35vw, 1.38rem);
  --step-2: clamp(1.45rem, 1.3rem + 0.7vw, 1.85rem);
  --step-3: clamp(1.9rem, 1.55rem + 1.6vw, 3rem);
  --step-4: clamp(2.2rem, 1.6rem + 2.8vw, 3.9rem);

  --space-s: clamp(0.75rem, 0.7rem + 0.3vw, 1rem);
  --space-m: clamp(1.25rem, 1.1rem + 0.7vw, 1.75rem);
  --space-l: clamp(2rem, 1.6rem + 1.8vw, 3.25rem);
  --space-xl: clamp(3.5rem, 2.6rem + 4vw, 6.5rem);
  --gutter: clamp(1rem, 0.5rem + 2.6vw, 2.5rem);

  --radius: 4px;
  --radius-l: 10px;
  --shadow: 0 1px 2px rgb(28 42 48 / 0.08), 0 8px 24px -12px rgb(28 42 48 / 0.35);
  --header-h: 5.25rem;
  --art-h: clamp(220px, 27vw, 390px);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}

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

body.nav-open { overflow: hidden; }

h1, h2, h3 {
  margin: 0 0 0.6em;
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.15;
  text-wrap: balance;
}
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); }

p, li, dd { text-wrap: pretty; }
p { margin: 0 0 1em; }

a { color: var(--cedar-700); text-underline-offset: 0.18em; }
a:hover { color: var(--cedar-800); text-decoration-thickness: 2px; }

:focus-visible {
  outline: 3px solid var(--gulf-500);
  outline-offset: 3px;
}
[tabindex="-1"]:focus { outline: none; }

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

.container {
  width: 100%;
  max-width: 76rem;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  top: -10rem;
  left: 1rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius);
}
.skip-link:focus { top: 1rem; }

/* ---------- Components ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0 1.4rem;
  border: 2px solid transparent;
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-size: var(--step-0);
  line-height: 1.1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, transform 0.2s;
}
.btn:active { transform: translateY(1px); }

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

.btn-ghost { border-color: var(--cream); color: #fff; }
.btn-ghost:hover { background: rgb(255 255 255 / 0.12); color: #fff; }

.btn-cedar { background: var(--cedar-600); color: #fff; }
.btn-cedar:hover { background: var(--cedar-800); color: #fff; }

/* Section labels: an italic slab line led by a small picket. */
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.75rem;
  color: var(--cedar-700);
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--step-0);
}
.section-tag::before {
  content: '';
  width: 0.55rem;
  height: 1.2rem;
  background: currentColor;
  clip-path: polygon(0 28%, 50% 0, 100% 28%, 100% 100%, 0 100%);
}
.section-tag-light { color: var(--sun); }

.section-head { max-width: 46rem; margin-bottom: var(--space-l); }
.section-intro { color: var(--ink-soft); font-size: var(--step-1); line-height: 1.5; }

/* ---------- Header: logo, a fence line of pickets, the quote button ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--sand-50);
  border-bottom: 4px solid var(--pine-700);
}

.header-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  max-width: 82rem;
  height: var(--header-h);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 44px;
  color: var(--ink);
  text-decoration: none;
}
.brand:hover { color: var(--ink); }
.brand-mark { width: 3rem; height: 3rem; flex: none; }
.brand-name {
  display: flex;
  flex-direction: column;
  font-family: var(--font-display);
  font-size: 1.15rem;
  line-height: 1.05;
  white-space: nowrap;
}
.brand-name span + span { color: var(--cedar-700); }

.picket-nav { margin-left: auto; align-self: stretch; }

.pickets {
  position: relative;
  display: flex;
  align-items: flex-end;
  gap: 5px;
  height: 100%;
  margin: 0;
  padding: 0 0.5rem;
  list-style: none;
}
/* Two rails run behind the pickets and show through the gaps. */
.pickets::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.85rem;
  height: 6px;
  background: var(--cedar-800);
  box-shadow: 0 -1.9rem 0 var(--cedar-800);
}

.picket { position: relative; z-index: 1; }
.picket a {
  --bg: var(--picket-bg, var(--cedar-600));
  display: flex;
  align-items: flex-end;
  justify-content: center;
  width: 5.4rem;
  height: var(--picket-h, 4rem);
  padding-bottom: 0.7rem;
  /* The pointed top is drawn with gradients, so no clip-path cuts off the focus outline. */
  background:
    linear-gradient(to bottom right, transparent 50%, var(--bg) 50%) top left / 50% 0.8rem no-repeat,
    linear-gradient(to bottom left, transparent 50%, var(--bg) 50%) top right / 50% 0.8rem no-repeat,
    linear-gradient(var(--bg), var(--bg)) bottom / 100% calc(100% - 0.8rem + 1px) no-repeat;
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.98rem;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.25s ease;
}
.picket:nth-child(1) a { --picket-h: 3.9rem; }
.picket:nth-child(2) a { --picket-h: 4.5rem; --picket-bg: var(--cedar-700); }
.picket:nth-child(3) a { --picket-h: 3.6rem; }
.picket:nth-child(4) a { --picket-h: 4.3rem; --picket-bg: var(--cedar-800); }
.picket:nth-child(5) a { --picket-h: 3.8rem; --picket-bg: var(--cedar-700); }
.picket:nth-child(6) a { --picket-h: 4.6rem; }
.picket a:hover { color: #fff; transform: translateY(-0.3rem); }
.picket a[aria-current='true'] { --bg: var(--gulf-700); transform: translateY(-0.3rem); }

.header-cta { flex: none; }

.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.4rem;
  min-width: 44px;
  min-height: 44px;
  padding: 0 0.7rem;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: transparent;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 0.95rem;
  cursor: pointer;
}
.nav-toggle:hover { background: var(--sand-100); }
.nav-toggle-icon { width: 1.3rem; height: 1.3rem; }

/* Below 1100px the pickets fold into a panel and become horizontal boards. */
@media (max-width: 1099.98px) {
  .header-cta { margin-left: auto; }
  .nav-toggle { display: inline-flex; }
  .picket-nav {
    position: fixed;
    inset: var(--nav-top, var(--header-h)) 0 0 0;
    display: none;
    margin: 0;
    padding: 1.5rem var(--gutter) 3rem;
    overflow-y: auto;
    background: var(--sand-100);
  }
  .picket-nav.is-open { display: block; }
  .pickets {
    flex-direction: column;
    align-items: stretch;
    gap: 0.6rem;
    max-width: 30rem;
    height: auto;
    padding: 0.5rem 0;
  }
  .pickets::before {
    top: 0;
    bottom: 0;
    left: 2rem;
    right: auto;
    width: 8px;
    height: auto;
    box-shadow: 8rem 0 0 var(--cedar-800);
  }
  .picket a {
    justify-content: flex-start;
    align-items: center;
    width: var(--board-w, 90%);
    height: 3.25rem;
    padding: 0 0 0 1.25rem;
    font-size: 1.1rem;
    background:
      linear-gradient(to top right, var(--bg) 50%, transparent 50%) right top / 1rem 50% no-repeat,
      linear-gradient(to bottom right, var(--bg) 50%, transparent 50%) right bottom / 1rem 50% no-repeat,
      linear-gradient(var(--bg), var(--bg)) left / calc(100% - 1rem + 1px) 100% no-repeat;
  }
  .picket:nth-child(1) a { --board-w: 84%; }
  .picket:nth-child(2) a { --board-w: 94%; }
  .picket:nth-child(3) a { --board-w: 78%; }
  .picket:nth-child(4) a { --board-w: 90%; }
  .picket:nth-child(5) a { --board-w: 82%; }
  .picket:nth-child(6) a { --board-w: 96%; }
  .picket a:hover,
  .picket a[aria-current='true'] { transform: translateX(0.4rem); }
}

@media (max-width: 479.98px) {
  :root { --header-h: 4.5rem; }
  .brand-mark { width: 2.5rem; height: 2.5rem; }
  .brand-name { font-size: 1rem; }
  .header-bar { gap: 0.5rem; }
  .header-cta { padding: 0 0.85rem; font-size: 0.95rem; }
  .nav-toggle-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
}
@media (max-width: 359.98px) {
  .brand-name { display: none; }
}

/* ---------- Hero: the fence going in under a Gulf sky ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--gulf-900) 0, #174b70 calc(100% - var(--art-h)), #3a83b2 calc(100% - var(--art-h) * 0.45), #8cc0dc 100%);
  color: #fff;
}
.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: var(--space-l);
  position: relative;
  z-index: 1;
  padding-top: clamp(2.5rem, 1.5rem + 4vw, 4.5rem);
  padding-bottom: var(--space-m);
}
.hero-copy { max-width: 44rem; }
.hero-title { font-size: var(--step-4); color: #fff; }
.hero-lead {
  max-width: 38rem;
  color: #e2eef5;
  font-size: var(--step-1);
  line-height: 1.5;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: var(--space-m); }

/* Location device: an inked lumber grade stamp. */
.grade-stamp {
  display: flex;
  align-items: stretch;
  margin: 0.5rem 0 0;
  border: 3px solid #f4e3c3;
  border-radius: 12px;
  color: #f4e3c3;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transform: rotate(-4deg);
}
.stamp-mark {
  display: grid;
  place-items: center;
  padding: 0 0.9rem;
  border-right: 3px solid #f4e3c3;
  font-size: 2.4rem;
  letter-spacing: 0;
}
.stamp-lines {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.1rem;
  padding: 0.7rem 1rem;
  font-size: 0.78rem;
  line-height: 1.35;
  white-space: nowrap;
}
.stamp-lines span:first-child { font-size: 0.95rem; }

.hero-art { width: 100%; height: var(--art-h); margin-top: calc(var(--art-h) * -0.2); }
.hero-flag { transform-origin: 1094px 300px; animation: flutter 2.6s ease-in-out infinite; }

@keyframes flutter {
  0%, 100% { transform: skewY(0deg) scaleX(1); }
  50% { transform: skewY(-5deg) scaleX(0.94); }
}

@media (max-width: 899.98px) {
  .hero-inner { grid-template-columns: 1fr; }
  .grade-stamp { justify-self: start; transform: rotate(-2deg); }
}

/* ---------- Materials: a run of fence bays ---------- */
.fence-run { padding-block: var(--space-xl); }
.run { margin: 0; padding: 0; list-style: none; }

.run-bay {
  display: grid;
  grid-template-columns: 13rem minmax(0, 1fr) 19rem;
  gap: var(--space-l);
  align-items: start;
  padding-block: var(--space-l);
}
/* Rails between the bays, with a post cap at each end. */
.run-bay + .run-bay {
  background:
    linear-gradient(var(--sand-300), var(--sand-300)) top center / 100% 6px no-repeat;
}

.bay-art {
  padding: 1.25rem 1rem 0;
  border-radius: var(--radius-l);
  background: linear-gradient(180deg, #cfe5f1, var(--foam));
}
.type-art { width: 100%; height: auto; }

.bay-stamp {
  display: inline-block;
  margin-bottom: 0.5rem;
  padding: 0.05rem 0.7rem;
  border: 2px solid var(--cedar-700);
  border-radius: 999px;
  color: var(--cedar-700);
  font-family: var(--font-display);
  font-size: var(--step--1);
}
.bay-text h3 { font-size: var(--step-2); }
.bay-text p:last-child { margin-bottom: 0; }

.bay-spec { margin: 0; padding: 1rem 1.25rem; border-left: 4px solid var(--sand-300); }
.bay-spec div + div { margin-top: 0.75rem; }
.bay-spec dt {
  color: var(--ink-soft);
  font-size: var(--step--1);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.bay-spec dd { margin: 0; }
.bay-spec div:last-child dd { color: var(--cedar-700); font-family: var(--font-display); }

@media (max-width: 1023.98px) {
  .run-bay { grid-template-columns: 11rem minmax(0, 1fr); }
  .bay-spec { grid-column: 2; }
}
@media (max-width: 639.98px) {
  .run-bay { grid-template-columns: 1fr; gap: var(--space-m); }
  .bay-art { max-width: 18rem; }
  .bay-spec { grid-column: auto; }
}

/* ---------- Wind load ---------- */
.wind {
  padding-block: var(--space-xl);
  background:
    repeating-linear-gradient(115deg, rgb(255 255 255 / 0.035) 0 2px, transparent 2px 28px),
    var(--gulf-700);
  color: var(--cream);
}
.wind h2 { color: #fff; }
.wind-grid {
  display: grid;
  grid-template-columns: minmax(16rem, 22rem) minmax(0, 1fr);
  gap: var(--space-xl);
  align-items: start;
}
.post-section { width: 100%; height: auto; }
.post-section-label { font-family: var(--font-body); font-size: 15px; }

.post-schedule {
  width: 100%;
  margin: var(--space-m) 0;
  border-collapse: collapse;
  font-size: var(--step--1);
}
.post-schedule th,
.post-schedule td {
  padding: 0.7rem 0.75rem;
  border-bottom: 1px solid rgb(251 244 230 / 0.25);
  text-align: left;
  vertical-align: top;
}
.post-schedule thead th {
  color: var(--sun);
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--step-0);
  border-bottom-width: 2px;
}
.post-schedule tbody th { font-weight: 400; color: #fff; font-family: var(--font-display); }

.wind-note { padding-left: 1rem; border-left: 4px solid var(--sun); }
.wind-sub { margin-top: var(--space-m); color: #fff; }
.wind-list { margin: 0; padding-left: 1.2rem; }
.wind-list li + li { margin-top: 0.35rem; }
.wind-list li::marker { color: var(--sun); }

@media (max-width: 899.98px) {
  .wind-grid { grid-template-columns: 1fr; }
  .wind-art { max-width: 20rem; }
}

/* ---------- Steps: knots on a plumb line ---------- */
.steps { padding-block: var(--space-xl); }
.steps-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: var(--space-xl);
  align-items: start;
}
.steps-head { position: sticky; top: calc(var(--header-h) + 2rem); }

.plumb-line {
  position: relative;
  margin: 0;
  padding: 0 0 4.5rem;
  list-style: none;
}
/* The string, and the plumb bob hanging at the bottom. */
.plumb-line::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 2.2rem;
  left: 1.15rem;
  width: 2px;
  background: var(--flag);
}
.plumb-line::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0.4rem;
  width: 1.6rem;
  height: 2.4rem;
  background: linear-gradient(90deg, #b98a2e, #e7c46a 45%, #a67a22);
  clip-path: polygon(30% 0, 70% 0, 100% 35%, 50% 100%, 0 35%);
}

.knot { position: relative; padding: 0 0 var(--space-l) 3.75rem; }
.knot h3 { margin-bottom: 0.4rem; padding-top: 0.25rem; }
.knot-num {
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: 2.35rem;
  height: 2.35rem;
  border: 2px solid var(--flag);
  border-radius: 50%;
  background: var(--sand-50);
  color: var(--ink);
  font-size: 1rem;
}
.knot p { margin-bottom: 0.5rem; }
.knot-when {
  display: inline-block;
  padding: 0.1rem 0.6rem;
  border-radius: var(--radius);
  background: var(--foam);
  color: var(--gulf-700);
  font-size: var(--step--1);
}

@media (max-width: 899.98px) {
  .steps-grid { grid-template-columns: 1fr; gap: 0; }
  .steps-head { position: static; }
}

/* ---------- Permits: notices tacked to a plywood board ---------- */
.permits { padding-block: var(--space-xl); background: var(--sand-100); }
.notice-board {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr));
  gap: var(--space-m);
  margin: 0;
  padding: var(--space-l) var(--space-m);
  border: 10px solid var(--cedar-700);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 20% 30%, rgb(140 96 40 / 0.18) 0 2px, transparent 3px) 0 0 / 34px 26px,
    radial-gradient(circle at 70% 60%, rgb(255 255 255 / 0.2) 0 3px, transparent 4px) 0 0 / 46px 38px,
    var(--plywood);
  list-style: none;
}
.notice {
  position: relative;
  padding: 1.75rem 1.5rem 1.25rem;
  background: var(--paper);
  box-shadow: var(--shadow);
  transform: rotate(-0.7deg);
}
.notice:nth-child(even) { transform: rotate(0.6deg); }
.notice::before {
  content: '';
  position: absolute;
  top: 0.6rem;
  left: 50%;
  width: 0.8rem;
  height: 0.8rem;
  margin-left: -0.4rem;
  border-radius: 50%;
  background: var(--flag);
  box-shadow: 0 2px 0 rgb(0 0 0 / 0.25);
}
.notice h3 { font-size: var(--step-2); }
.notice p:last-child { margin-bottom: 0; }
.notice-who {
  display: inline-block;
  margin-bottom: 0.6rem;
  padding: 0.05rem 0.55rem;
  border: 2px solid var(--pine-700);
  color: var(--pine-700);
  font-family: var(--font-display);
  font-size: var(--step--1);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transform: rotate(-2deg);
}
.notice-license .notice-who,
.notice-line .notice-who { border-color: var(--cedar-700); color: var(--cedar-700); }

/* ---------- Service area: two staked lots ---------- */
.area { padding-block: var(--space-xl); }
.plats {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: var(--space-l);
}
.plat {
  position: relative;
  padding: var(--space-m) var(--space-m) var(--space-s);
  border: 2px dashed var(--ink-soft);
}
/* Survey pins at two corners of each lot. */
.plat::before,
.plat::after {
  content: '';
  position: absolute;
  width: 14px;
  height: 14px;
  border: 3px solid var(--sand-50);
  border-radius: 50%;
  background: var(--flag);
}
.plat::before { top: -8px; left: -8px; }
.plat::after { right: -8px; bottom: -8px; }
.plat-name { color: var(--cedar-700); font-size: var(--step-2); }
.plat-towns {
  columns: 3 9rem;
  column-gap: 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.plat-towns li { padding: 0.3rem 0; border-bottom: 1px solid var(--sand-300); break-inside: avoid; }
.area-hours { max-width: 46rem; margin-top: var(--space-l); color: var(--ink-soft); }
.area-hours strong { color: var(--ink); font-weight: 400; font-family: var(--font-display); }

@media (max-width: 799.98px) {
  .plats { grid-template-columns: 1fr; }
}

/* ---------- FAQ: answers measured off a tape ---------- */
.faq { padding-block: var(--space-xl); background: var(--paper); }
.tape {
  position: relative;
  margin: 0;
  padding: 0 0 0 5.5rem;
  list-style: none;
}
.tape::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 3.6rem;
  border-radius: 3px;
  background:
    repeating-linear-gradient(180deg, transparent 0 11px, rgb(28 42 48 / 0.55) 11px 12px) right / 0.8rem 100% no-repeat,
    repeating-linear-gradient(180deg, transparent 0 59px, rgb(28 42 48 / 0.7) 59px 60px) right / 1.4rem 100% no-repeat,
    var(--sun);
}
.tape-mark { position: relative; padding-bottom: var(--space-l); max-width: 48rem; }
.tape-mark:last-child { padding-bottom: var(--space-m); }
.tape-q { font-size: var(--step-2); }
.tape-inch {
  position: absolute;
  left: -5.5rem;
  top: 0;
  width: 2.4rem;
  padding: 0.15rem 0;
  background: var(--sun);
  color: var(--ink);
  font-size: 1rem;
  text-align: center;
}
.tape-mark p { margin-bottom: 0; color: var(--ink-soft); }

@media (max-width: 479.98px) {
  .tape { padding-left: 3.75rem; }
  .tape::before { width: 2.6rem; }
  .tape-inch { left: -3.75rem; width: 1.9rem; font-size: 0.85rem; }
}

/* ---------- Quote: the cut-list sheet ---------- */
.quote { padding-block: var(--space-xl); background: var(--sand-100); }
.quote-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: var(--space-xl);
  align-items: start;
}
.direct { margin: var(--space-m) 0; }
.direct div {
  display: grid;
  grid-template-columns: 6rem 1fr;
  gap: 1rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--sand-300);
}
.direct dt { color: var(--ink-soft); }
.direct dd { margin: 0; font-family: var(--font-display); }
.direct a { display: inline-flex; align-items: center; min-height: 44px; }
.who { margin-top: var(--space-l); padding: var(--space-m); border-left: 6px solid var(--cedar-600); background: var(--sand-50); }
.who h3 { margin-bottom: 0.4rem; }
.who p { margin: 0; }

.cut-list {
  position: relative;
  padding: var(--space-l) var(--space-l) var(--space-m) calc(var(--space-l) + 1.5rem);
  border: 1px solid var(--sand-300);
  background:
    linear-gradient(90deg, transparent 2.1rem, var(--flag) 2.1rem, var(--flag) calc(2.1rem + 2px), transparent calc(2.1rem + 2px)),
    var(--paper);
  box-shadow: var(--shadow);
}
.cut-list-title {
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 4px double var(--ink);
  font-family: var(--font-display);
  font-size: var(--step-1);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.form-note { color: var(--ink-soft); font-size: var(--step--1); }

.cut-rows {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 1.5rem;
  row-gap: 1.1rem;
}
.field { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 0.3rem; }
.field-half { grid-column: auto; }
.field label { font-family: var(--font-display); }
.req { color: var(--error); }
.label-aside { display: block; color: var(--ink-soft); font-family: var(--font-body); font-size: var(--step--1); }

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 2.9rem;
  padding: 0.55rem 0.75rem;
  border: 0;
  border-bottom: 2px solid var(--ink-soft);
  border-radius: var(--radius) var(--radius) 0 0;
  background: var(--field);
  color: var(--ink);
  font: inherit;
}
.field textarea { resize: vertical; }
.field input:hover,
.field select:hover,
.field textarea:hover { border-bottom-color: var(--ink); }
.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible { border-bottom-color: var(--gulf-500); outline-offset: 1px; }
.field [aria-invalid='true'] { border-bottom-color: var(--error); }
.field-hint { margin: 0; color: var(--ink-soft); font-size: var(--step--1); }
.field-error { margin: 0; color: var(--error); font-size: var(--step--1); }
.field-error:empty { display: none; }

.field-check { flex-direction: row; align-items: center; gap: 0.75rem; min-height: 44px; }
.field-check input {
  width: 1.4rem;
  min-height: 1.4rem;
  height: 1.4rem;
  flex: none;
  padding: 0;
  accent-color: var(--cedar-600);
}
.field-check label { font-family: var(--font-body); }

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

.cut-submit { margin-top: var(--space-m); }
.form-status { margin: 1rem 0 0; }
.form-status:empty { display: none; }
.form-status.is-success { padding: 0.75rem 1rem; border-left: 4px solid var(--pine-700); background: #e8f0ec; }
.form-status.is-error { padding: 0.75rem 1rem; border-left: 4px solid var(--error); background: #f8e7e4; }
.form-fine { margin: 1rem 0 0; color: var(--ink-soft); font-size: var(--step--1); }

@media (max-width: 899.98px) {
  .quote-grid { grid-template-columns: 1fr; }
}
@media (max-width: 519.98px) {
  .cut-list { padding: var(--space-m) var(--space-s) var(--space-m) 2.6rem; background-position: -0.9rem 0, 0 0; }
  .cut-rows { grid-template-columns: 1fr; }
  .field-half { grid-column: 1 / -1; }
}

/* ---------- Footer: the ground line ---------- */
.site-footer { margin-top: 0; color: var(--cream); }
.footer-grass { display: block; width: 100%; height: 40px; margin-bottom: -1px; }
.footer-rail { padding: var(--space-l) 0 var(--space-m); background: var(--pine-700); }
.footer-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-m) var(--space-l);
}
.footer-id { max-width: 26rem; }
.footer-id p { margin-bottom: 0.4rem; }
.footer-name { font-family: var(--font-display); font-size: var(--step-1); color: #fff; }

.footer-posts {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
}
/* Little fence posts stand between the links. */
.footer-posts li + li::before {
  content: '';
  display: inline-block;
  width: 5px;
  height: 0.95rem;
  margin: 0 0.8rem;
  background: var(--cedar-300);
  clip-path: polygon(0 25%, 50% 0, 100% 25%, 100% 100%, 0 100%);
  vertical-align: -0.1rem;
}
.footer-posts a,
.footer-cookie {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--cream);
  font: inherit;
  text-decoration: underline;
  text-decoration-color: rgb(251 244 230 / 0.45);
  text-underline-offset: 0.2em;
  cursor: pointer;
}
.footer-posts a:hover,
.footer-cookie:hover { color: #fff; text-decoration-color: currentColor; }
.footer-legal { width: 100%; padding-top: var(--space-s); border-top: 1px solid rgb(251 244 230 / 0.2); }
.footer-small { padding-top: var(--space-s); font-size: var(--step--1); }
.footer-small p { margin: 0; max-width: 60rem; }

body.consent-open .footer-rail { padding-bottom: 16rem; }

/* ---------- Legal pages ---------- */
.legal-hero {
  padding: var(--space-l) 0 0;
  background: var(--gulf-700);
  color: var(--cream);
}
.legal-hero h1 { color: #fff; font-size: var(--step-4); margin-bottom: 0.3rem; }
.legal-hero .legal-updated { color: var(--sun); font-family: var(--font-display); font-style: italic; }
.legal-hero p { max-width: 44rem; }
.legal-fence { display: block; width: 100%; height: 56px; margin-top: var(--space-m); }

.legal-body { padding: var(--space-l) 0 var(--space-xl); }
.prose { max-width: 48rem; }
.prose h2 { margin-top: 2.2em; font-size: var(--step-2); padding-top: 0.6rem; border-top: 3px solid var(--sand-300); }
.prose h3 { margin-top: 1.6em; }
.prose ul { padding-left: 1.25rem; }
.prose li + li { margin-top: 0.35rem; }
.prose address { font-style: normal; margin-bottom: 1em; }
.callout { padding: 1rem 1.25rem; border-left: 6px solid var(--cedar-600); background: var(--sand-100); }

.legal-toc {
  margin: 0 0 var(--space-l);
  padding: 1rem 1.25rem;
  border: 2px dashed var(--sand-300);
}
.legal-toc p { margin-bottom: 0.4rem; font-family: var(--font-display); }
.legal-toc ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.legal-toc a { display: inline-flex; align-items: center; min-height: 44px; }

.table-wrap { margin: 1.25rem 0; }
.data-table { width: 100%; border-collapse: collapse; font-size: var(--step--1); }
.data-table th,
.data-table td { padding: 0.6rem 0.7rem; border-bottom: 1px solid var(--sand-300); text-align: left; vertical-align: top; }
.data-table thead th { border-bottom: 2px solid var(--ink); font-family: var(--font-display); font-weight: 400; }

/* Narrow screens: every table row becomes a stack of label/value pairs. */
@media (max-width: 719.98px) {
  .post-schedule thead,
  .data-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }
  .post-schedule,
  .post-schedule tbody,
  .post-schedule tr,
  .data-table,
  .data-table tbody,
  .data-table tr { display: block; }
  .post-schedule tr,
  .data-table tr { padding: 0.6rem 0; border-bottom: 2px solid rgb(127 127 127 / 0.35); }
  .post-schedule th,
  .post-schedule td,
  .data-table td {
    display: grid;
    grid-template-columns: 7.5rem minmax(0, 1fr);
    gap: 0.75rem;
    padding: 0.3rem 0;
    border: 0;
  }
  .post-schedule th::before,
  .post-schedule td::before,
  .data-table td::before {
    content: attr(data-label);
    font-family: var(--font-body);
    font-size: var(--step--1);
    opacity: 0.85;
  }
}

/* ---------- 404 ---------- */
.missing { padding: var(--space-xl) 0; text-align: center; }
.missing-art { width: min(100%, 34rem); height: auto; margin: 0 auto var(--space-l); }
.missing h1 { font-size: var(--step-4); }
.missing p { max-width: 34rem; margin-inline: auto; }
.missing-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; margin-top: var(--space-m); }

/* ---------- Consent banner and dialog ---------- */
.consent {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  left: 1rem;
  z-index: 60;
  max-width: 36rem;
  max-height: calc(100vh - 2rem);
  overflow-y: auto;
  padding: 1.5rem 1.5rem 1.25rem;
  border-top: 8px solid var(--cedar-600);
  background: var(--paper);
  box-shadow: 0 20px 50px -20px rgb(15 53 80 / 0.6);
}
.consent-title { font-size: var(--step-2); margin-bottom: 0.5rem; }
.consent-text { font-size: var(--step--1); }
.consent-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; }
.consent-btn {
  min-height: 2.9rem;
  padding: 0 1.2rem;
  border: 2px solid var(--gulf-700);
  border-radius: var(--radius);
  background: var(--gulf-700);
  color: #fff;
  font-family: var(--font-display);
  font-size: 1rem;
  cursor: pointer;
}
.consent-btn:hover { background: var(--gulf-900); border-color: var(--gulf-900); }
.consent-btn-save { background: var(--cedar-600); border-color: var(--cedar-600); }
.consent-btn-save:hover { background: var(--cedar-800); border-color: var(--cedar-800); }
.consent-link {
  min-height: 2.9rem;
  padding: 0 0.5rem;
  border: 0;
  background: none;
  color: var(--cedar-700);
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
}
.consent-link:hover { color: var(--cedar-800); }

.consent-dialog {
  width: min(100% - 2rem, 36rem);
  max-height: calc(100vh - 2rem);
  padding: 0;
  border: 0;
  border-top: 8px solid var(--cedar-600);
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 20px 60px -20px rgb(15 53 80 / 0.7);
}
.consent-dialog::backdrop { background: rgb(15 53 80 / 0.55); }
.consent-dialog-inner { padding: 1.5rem; }
.consent-categories { margin: 1rem 0; padding: 0; list-style: none; }
.consent-category { padding: 0.9rem 0; border-top: 1px solid var(--sand-300); }
.consent-category p { margin: 0.4rem 0 0; font-size: var(--step--1); color: var(--ink-soft); }
.consent-category-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.consent-category-head h3 { margin: 0; font-size: var(--step-1); }
.consent-always { color: var(--pine-700); font-size: var(--step--1); }

.consent-switch { position: relative; display: inline-flex; min-width: 44px; min-height: 44px; align-items: center; cursor: pointer; }
.consent-switch input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.consent-switch-track {
  position: relative;
  width: 3rem;
  height: 1.6rem;
  border-radius: 999px;
  background: var(--ink-soft);
  transition: background-color 0.2s;
}
.consent-switch-track::after {
  content: '';
  position: absolute;
  top: 0.2rem;
  left: 0.2rem;
  width: 1.2rem;
  height: 1.2rem;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.2s;
}
.consent-switch input:checked + .consent-switch-track { background: var(--pine-700); }
.consent-switch input:checked + .consent-switch-track::after { transform: translateX(1.4rem); }
.consent-switch input:focus-visible + .consent-switch-track { outline: 3px solid var(--gulf-500); outline-offset: 3px; }

/* ---------- Utilities ---------- */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ---------- Motion ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.js .reveal.is-in { opacity: 1; transform: none; }
.js .notice.reveal.is-in { transform: rotate(-0.7deg); }
.js .notice.reveal.is-in:nth-child(even) { transform: rotate(0.6deg); }

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  .js .reveal { opacity: 1 !important; transform: none !important; }
  .js .notice.reveal { transform: rotate(-0.7deg) !important; }
}

/* ---------- Print ---------- */
@media print {
  .site-header,
  .site-footer,
  .hero-art,
  .consent,
  .skip-link { display: none; }
  body { background: #fff; }
  .hero { background: none; color: var(--ink); }
  .hero-title { color: var(--ink); }
}
