/* Clear Skye Cleaning
   Brand is fixed: see DESIGN.md. Sky is the sea, grey blue is the land,
   brown is ink, butter is paper. */

/* Display face: Agrandir is the brand face. Until its web licence and files
   are in place, Archivo at 125% width stands in. To swap, add Agrandir's
   woff2 to /assets/fonts and put it first in the src list below. */
@font-face {
  font-family: "CS Display";
  src: url("../fonts/archivo-wdth.woff2") format("woff2-variations"),
       url("../fonts/archivo-wdth.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("../fonts/instrument-serif-latin-400-normal.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("../fonts/instrument-serif-latin-400-italic.woff2") format("woff2");
  font-weight: 400; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "Poppins";
  src: url("../fonts/poppins-latin-400-normal.woff2") format("woff2");
  font-weight: 400; font-display: swap;
}
@font-face {
  font-family: "Poppins";
  src: url("../fonts/poppins-latin-500-normal.woff2") format("woff2");
  font-weight: 500; font-display: swap;
}
@font-face {
  font-family: "Poppins";
  src: url("../fonts/poppins-latin-600-normal.woff2") format("woff2");
  font-weight: 600; font-display: swap;
}

:root {
  --brown: #432f2f;
  --butter: #ffefb8;
  --slate: #70889c;
  --mist: #9db1c2;
  --sky: #c4dae8;

  --ink: var(--brown);
  --paper: var(--butter);
  --rule: rgba(67, 47, 47, 0.28);

  --font-display: "CS Display", "Arial Narrow", sans-serif;
  --font-serif: "Instrument Serif", Georgia, serif;
  --font-body: "Poppins", system-ui, sans-serif;

  --step-0: 1.125rem;                                   /* 18px body */
  --step-1: clamp(1.25rem, 1.15rem + 0.4vw, 1.4rem);
  --step-2: clamp(1.6rem, 1.3rem + 1.2vw, 2.1rem);
  --step-3: clamp(2.1rem, 1.5rem + 2.4vw, 3.4rem);      /* h2, serif caps */
  --step-4: clamp(2.6rem, 1.5rem + 4vw, 4.6rem);        /* h1, display caps */

  --gutter: clamp(1rem, 4vw, 3rem);
  --max: 76rem;
  --section: clamp(4.5rem, 3rem + 6vw, 8.5rem);
  --radius: 6px;
  --shadow: 0 1.5rem 3rem -1.5rem rgba(67, 47, 47, 0.45);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 1.5rem; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--sky);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--brown); color: var(--butter); }
img, svg { display: block; max-width: 100%; }
h1, h2, h3, p, ul, ol, dl, figure { margin: 0; }
input, select, textarea, button { font: inherit; color: inherit; }
:where(input, textarea) { caret-color: var(--brown); }

a { color: inherit; text-decoration-thickness: 1.5px; text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 2.5px; }
:focus-visible { outline: 3px solid var(--brown); outline-offset: 3px; border-radius: 4px; }
.on-ink :focus-visible { outline-color: var(--butter); }

[hidden] { display: none !important; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 10;
  background: var(--brown); color: var(--butter); padding: 0.75rem 1.25rem; border-radius: var(--radius);
  font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 1rem; }

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

/* Type */
.display {
  font-family: var(--font-display);
  font-stretch: 125%;
  font-weight: 800;
  text-transform: uppercase;
  line-height: 0.98;
  letter-spacing: 0.005em;
  text-wrap: balance;
}
.serif-caps {
  font-family: var(--font-serif);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1.04;
  text-wrap: balance;
}
h2.serif-caps { font-size: var(--step-3); }
.signoff { font-family: var(--font-serif); font-style: italic; font-size: var(--step-2); line-height: 1; }
.lede { font-size: var(--step-1); line-height: 1.55; max-width: 34ch; }
.measure { max-width: 62ch; }

/* Buttons */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  min-height: 3.25rem; padding: 0.8rem 1.6rem;
  background: var(--brown); color: var(--butter);
  border: 2px solid var(--brown); border-radius: var(--radius);
  font-weight: 600; font-size: var(--step-0); line-height: 1.2;
  text-decoration: none; cursor: pointer;
  transition: background-color 0.2s, color 0.2s, transform 0.2s var(--ease-out);
}
.button:hover { background: #2f2020; border-color: #2f2020; }
.button:active { transform: translateY(1px); }
.button svg { width: 1.15em; height: 1.15em; flex: none; transition: transform 0.25s var(--ease-out); }
.button:hover svg { transform: translateX(3px); }
.button[disabled] { opacity: 0.7; cursor: progress; }
.button--paper { background: var(--butter); color: var(--brown); border-color: var(--butter); }
.button--paper:hover { background: #fff6d6; border-color: #fff6d6; }

/* Header */
.site-header { padding-block: 1.25rem; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: 0.75rem; text-decoration: none; }
.brand-mark {
  width: 3rem; height: 3rem; flex: none; border-radius: 50%;
  background: var(--butter); display: grid; place-items: center;
  font-family: var(--font-serif); font-size: 1.3rem; letter-spacing: 0.04em; line-height: 1;
}
.brand-name { font-family: var(--font-display); font-stretch: 125%; font-weight: 800; text-transform: uppercase; font-size: 0.9rem; letter-spacing: 0.08em; line-height: 1.15; }
.site-nav { display: flex; align-items: center; gap: clamp(1rem, 2.5vw, 2.25rem); font-weight: 500; }
.site-nav a:not(.button) { text-decoration: none; padding-block: 0.75rem; }
.site-nav a:not(.button):hover { text-decoration: underline; }
.site-nav .button { min-height: 2.9rem; padding: 0.6rem 1.25rem; white-space: nowrap; }
@media (max-width: 52rem) {
  .site-nav a:not(.button) { display: none; }
  .brand-name { font-size: 0.8rem; max-width: 9.5rem; }
}

/* Hero: the map */
.hero { padding-bottom: clamp(3rem, 6vw, 5rem); overflow: hidden; }
.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  grid-template-areas: "copy map";
  column-gap: clamp(2rem, 4vw, 4rem);
  align-items: start;
}
.hero-copy { grid-area: copy; padding-top: clamp(2rem, 7vh, 5.5rem); display: grid; gap: 1.5rem; }
.hero-copy h1 { font-size: var(--step-4); max-width: 11ch; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin-top: 0.5rem; }
.hero-actions .text-link { font-weight: 600; padding-block: 0.75rem; }
.trust { list-style: none; padding: 0; display: grid; gap: 0.35rem; font-size: 1rem; line-height: 1.45; }
.trust li { display: flex; align-items: center; gap: 0.6rem; }
.trust svg { width: 1.15rem; height: 1.15rem; flex: none; }
.hero-aside { grid-area: map; align-self: end; justify-self: start; position: relative; z-index: 2; margin-bottom: 1.5rem; }
.elsewhere {
  background: var(--butter); border-radius: var(--radius); padding: 1.25rem 1.5rem;
  max-width: 26rem; display: grid; gap: 0.25rem; box-shadow: var(--shadow);
}
.elsewhere strong { font-weight: 600; font-size: var(--step-1); }
.elsewhere a { font-weight: 600; justify-self: start; padding-block: 0.5rem; }

.map {
  grid-area: map;
  position: relative;
  justify-self: center;
  width: min(100%, calc((100svh - 6rem) * 1000 / 1094), 50rem);
  aspect-ratio: 1000 / 1094;
  margin-top: -1rem;
}
.map svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.map .land { fill: var(--mist); stroke: var(--slate); stroke-width: 3; stroke-linejoin: round; }
.map .dot { fill: var(--brown); }
.map .ripple { fill: none; stroke: var(--brown); stroke-width: 2; opacity: 0; }
.map .svg-label { font-family: var(--font-serif); font-size: 58px; letter-spacing: 0.06em; fill: var(--brown); display: none; }
.map .home { fill: var(--brown); }

.villages { list-style: none; padding: 0; position: absolute; inset: 0; }
.villages li { position: absolute; left: var(--x); top: var(--y); }
.villages a {
  position: absolute; white-space: nowrap;
  display: inline-flex; align-items: center; gap: 0.6rem;
  min-height: 2.9rem; padding: 0.4rem 0.75rem;
  font-family: var(--font-serif); font-size: clamp(1.15rem, 0.9rem + 0.6vw, 1.45rem);
  letter-spacing: 0.08em; text-transform: uppercase; line-height: 1;
  text-decoration: none; border-radius: var(--radius);
  transition: background-color 0.2s, color 0.2s, box-shadow 0.2s;
}
.villages a:hover, .villages a[aria-current="true"] { background: var(--butter); box-shadow: var(--shadow); }
.villages a[aria-current="true"] { background: var(--brown); color: var(--butter); }
.villages .side-right a { left: 0.55rem; transform: translateY(-50%); }
.villages .side-left a { right: 0.55rem; transform: translateY(-50%); }
.villages .side-above a { left: 0; transform: translate(-50%, calc(-100% - 0.45rem)); }
.villages .side-below a { left: 0; transform: translate(-50%, 0.45rem); }
.villages .side-upright a { left: 0.45rem; transform: translateY(-100%); }
.villages .village-arrow { display: none; }

/* Portree: Michelle's home pin */
.villages .home a {
  left: 0.75rem; transform: translateY(-18%);
  background: var(--brown); color: var(--butter); padding: 0.4rem 1rem 0.4rem 0.4rem;
  box-shadow: var(--shadow);
}
.villages .home a:hover { background: #2f2020; }
.villages .home a[aria-current="true"] { outline: 3px solid var(--butter); outline-offset: 2px; }
.villages .home .photo {
  width: 3.4rem; height: 3.4rem; border-radius: 50%; flex: none; overflow: hidden;
  border: 3px solid var(--butter); background: var(--sky);
}
.villages .home .photo img { width: 100%; height: 100%; object-fit: cover; }
.home-note { display: block; font-family: var(--font-body); text-transform: none; letter-spacing: 0; font-size: 0.85rem; font-weight: 500; margin-top: 0.3rem; }

/* The opening moment: dots ripple out from Portree */
@media (prefers-reduced-motion: no-preference) {
  .js .map .dot { animation: dot-in 0.7s var(--ease-out) both; animation-delay: var(--d, 0ms); transform-box: fill-box; transform-origin: center; }
  .js .map .ripple { animation: ripple 2.2s var(--ease-out) 0.2s 1 both; transform-box: fill-box; transform-origin: center; }
  .js .villages li { animation: label-in 0.8s var(--ease-out) both; animation-delay: calc(var(--d, 0ms) + 120ms); }
}
@keyframes dot-in { from { transform: scale(0); } to { transform: scale(1); } }
@keyframes ripple { 0% { transform: scale(0.2); opacity: 0.7; } 100% { transform: scale(9); opacity: 0; } }
@keyframes label-in { from { opacity: 0; filter: blur(4px); } to { opacity: 1; filter: none; } }

@media (max-width: 60rem) {
  .hero .wrap { grid-template-columns: minmax(0, 1fr); grid-template-areas: "copy" "map" "aside"; }
  .hero-aside { grid-area: aside; justify-self: stretch; margin-bottom: 0; }
  .villages li.home { grid-column: 1 / -1; order: -1; }
  .hero-copy { padding-top: 1.5rem; }
  .hero-copy h1 { max-width: 12ch; }
  .map { width: min(100%, 34rem); margin-top: 2rem; }
  .map svg { position: relative; height: auto; }
  .map .svg-label { display: block; }
  .map .svg-label.no-small { display: none; }
  .villages a { white-space: normal; }
  .villages { position: static; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; margin-top: 1.5rem; }
  .villages li { position: static; animation: none !important; }
  .villages a, .villages .home a {
    position: static; transform: none !important; width: 100%; justify-content: space-between;
    min-height: 3.5rem; padding: 0.75rem 1rem;
    background: var(--butter); color: var(--brown); box-shadow: none;
    font-family: var(--font-body); text-transform: none; letter-spacing: 0; font-weight: 600; font-size: var(--step-0);
  }
  .villages .home a { background: var(--brown); color: var(--butter); }
  .villages .home .photo { display: none; }
  .home-note { display: inline; margin: 0 0 0 0.4rem; }
  .villages .village-arrow { display: block; width: 1.2rem; height: 1.2rem; flex: none; }
  .villages a[aria-current="true"] { background: var(--brown); color: var(--butter); }
  .map { aspect-ratio: auto; }
  .hero-aside { margin-top: 1.5rem; }
  .elsewhere { max-width: none; box-shadow: none; }
}

/* Sections */
.section { padding-block: var(--section); }
.section--paper { background: var(--butter); }
.section--land { background: var(--mist); }
.section--ink { background: var(--brown); color: var(--butter); }
.section-head { display: grid; gap: 1rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }

/* Services */
.services { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2.5rem, 6vw, 6rem); align-items: start; }
.services-intro { display: grid; gap: 1.25rem; position: sticky; top: 2rem; }
.service-list { list-style: none; padding: 0; border-top: 2px solid var(--brown); }
.service-list li {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.25rem 2rem;
  padding-block: 1.5rem; border-bottom: 1px solid var(--rule);
}
.service-list h3 { font-size: var(--step-1); font-weight: 600; line-height: 1.3; }
.service-list p { grid-column: 1; max-width: 46ch; }
.service-list .min { grid-column: 2; grid-row: 1 / span 2; align-self: start; text-align: right; font-weight: 500; font-variant-numeric: tabular-nums; white-space: nowrap; padding-top: 0.15rem; }
.service-list .min b { display: block; font-family: var(--font-display); font-stretch: 125%; font-weight: 800; font-size: var(--step-2); line-height: 1; }
.service-list .when { font-size: 1rem; font-style: italic; }

.addons { margin-top: clamp(3rem, 6vw, 4.5rem); }
.addons h3 { font-family: var(--font-serif); font-weight: 400; text-transform: uppercase; letter-spacing: 0.05em; font-size: var(--step-2); margin-bottom: 1rem; }
.price-list { display: grid; gap: 0; }
.price-list div { display: flex; align-items: baseline; gap: 0.75rem; padding-block: 0.7rem; }
.price-list dt { font-weight: 500; }
.price-list div::after { content: none; }
.price-list .leader { flex: 1; border-bottom: 2px dotted var(--brown); transform: translateY(-0.3em); min-width: 1.5rem; }
.price-list dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.price-list dd small { font-weight: 500; font-size: 1rem; }
.fine { font-size: 1rem; line-height: 1.6; max-width: 56ch; margin-top: 1rem; }

/* About */
.about { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(2.5rem, 6vw, 6rem); align-items: center; }
.portrait {
  aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; background: var(--sky);
  box-shadow: var(--shadow); transform: rotate(-1.5deg);
}
.portrait img { width: 100%; height: 100%; object-fit: cover; }
.photos { position: relative; padding: 0 12% 18% 0; }
.portrait--small {
  position: absolute; right: 0; bottom: 0; width: 46%; aspect-ratio: 1;
  transform: rotate(3deg); border: 6px solid var(--butter);
}
.about-copy { display: grid; gap: 1.1rem; }
.about-copy h2 { margin-bottom: 0.5rem; }
.about-copy p { max-width: 58ch; }
.about-copy .signoff { margin-top: 0.75rem; font-size: var(--step-3); }

/* How it works */
.steps { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(1.5rem, 3vw, 2.5rem); counter-reset: step; }
.steps li { display: grid; gap: 0.75rem; align-content: start; padding-top: 1.25rem; border-top: 2px solid var(--butter); }
.steps .n { font-family: var(--font-display); font-stretch: 125%; font-weight: 800; font-size: var(--step-3); line-height: 1; }
.steps h3 { font-size: var(--step-1); font-weight: 600; line-height: 1.3; }
.steps p { font-size: 1.0625rem; }
.steps-note { margin-top: clamp(2.5rem, 5vw, 3.5rem); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.25rem 2rem; }
.steps-note p { max-width: 52ch; }

/* Form */
.quote-layout { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(2.5rem, 6vw, 6rem); align-items: start; }
.quote-intro { display: grid; gap: 1.25rem; position: sticky; top: 2rem; }
.quote-intro .greeting { font-weight: 600; font-size: var(--step-1); min-height: 1.6em; }
.quote-intro .contact { font-size: 1rem; }
.form-panel { background: var(--butter); border-radius: var(--radius); padding: clamp(1.5rem, 4vw, 3rem); box-shadow: var(--shadow); }
.form-panel form { display: grid; gap: 2.5rem; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; display: grid; gap: 1.5rem; }
legend { float: left; width: 100%; padding: 0; margin-bottom: 1.25rem; font-family: var(--font-serif); text-transform: uppercase; letter-spacing: 0.05em; font-size: var(--step-2); line-height: 1.05; }
legend + * { clear: both; }
fieldset + fieldset { border-top: 1px solid var(--rule); padding-top: 2.5rem; }
.field { display: grid; gap: 0.5rem; align-content: start; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
.label { font-weight: 600; font-size: 1.0625rem; line-height: 1.35; }
.label .opt { font-weight: 400; }
.hint { font-size: 1rem; line-height: 1.45; margin-top: -0.25rem; }
.input, .select, .textarea {
  width: 100%; min-height: 3.25rem; padding: 0.75rem 1rem;
  background: #fffbea; border: 2px solid var(--brown); border-radius: var(--radius);
  font-size: var(--step-0); line-height: 1.4; color: var(--brown);
  transition: box-shadow 0.2s, background-color 0.6s;
}
.input::placeholder, .textarea::placeholder { color: #6b5555; opacity: 1; }
.textarea { min-height: 7rem; resize: vertical; }
.select {
  appearance: none; -webkit-appearance: none; padding-right: 3rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23432f2f' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 1rem center; background-size: 1.25rem;
}
.input:focus-visible, .select:focus-visible, .textarea:focus-visible { outline: none; box-shadow: 0 0 0 4px var(--sky), 0 0 0 6px var(--brown); }
.select.just-set { background-color: var(--sky); }
[aria-invalid="true"] { border-color: #8a1f1f; border-width: 3px; }
.error-msg { color: #7a1a1a; font-weight: 600; font-size: 1rem; display: none; align-items: center; gap: 0.4rem; }
.error-msg svg { width: 1.1rem; height: 1.1rem; flex: none; }
.has-error .error-msg { display: flex; }

.choices { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.choice span {
  display: inline-flex; align-items: center; gap: 0.5rem; min-height: 3.1rem; padding: 0.6rem 1.1rem;
  border: 2px solid var(--brown); border-radius: 999px; background: #fffbea; font-weight: 500; line-height: 1.25;
  transition: background-color 0.15s, color 0.15s;
}
.choice span::before {
  content: ""; width: 1.05rem; height: 1.05rem; border-radius: 50%; border: 2px solid currentColor; flex: none;
  transition: box-shadow 0.15s;
}
.choice input:hover + span { background: var(--sky); }
.choice input:checked + span { background: var(--brown); color: var(--butter); }
.choice input:checked + span::before { box-shadow: inset 0 0 0 3px var(--brown), inset 0 0 0 10px var(--butter); }
.choice input:focus-visible + span { outline: 3px solid var(--brown); outline-offset: 3px; }
.has-error .choices .choice span { border-color: #8a1f1f; }

.form-foot { display: grid; gap: 1rem; justify-items: start; border-top: 1px solid var(--rule); padding-top: 2rem; }
.form-foot .small { font-size: 1rem; line-height: 1.55; max-width: 52ch; }
.form-status { font-weight: 600; }
.form-status:empty { display: none; }
.form-status.is-error { color: #7a1a1a; background: #fde3d6; border-radius: var(--radius); padding: 1rem 1.25rem; }
.thanks { display: grid; gap: 1rem; padding-block: 1rem; }
.thanks h3 { font-family: var(--font-display); font-stretch: 125%; font-weight: 800; text-transform: uppercase; font-size: var(--step-2); line-height: 1.05; }
.thanks .signoff { font-size: var(--step-3); }
.thanks[hidden] { display: none; }

/* Footer */
.site-footer { background: var(--brown); color: var(--butter); padding-block: clamp(3rem, 6vw, 4.5rem) 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem; align-items: start; }
.footer-grid .brand-mark { background: var(--butter); color: var(--brown); }
.footer-grid p, .footer-grid li { font-size: 1rem; line-height: 1.7; }
.footer-grid ul { list-style: none; padding: 0; }
.footer-grid a { display: inline-block; padding-block: 0.35rem; }
.footer-title { font-family: var(--font-serif); text-transform: uppercase; letter-spacing: 0.06em; font-size: 1.35rem; margin-bottom: 0.5rem; }
.footer-base { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid rgba(255, 239, 184, 0.3); font-size: 0.95rem; display: flex; flex-wrap: wrap; gap: 0.5rem 2rem; justify-content: space-between; }

/* Legal pages */
.legal-head { padding-block: clamp(2rem, 5vw, 4rem) clamp(2rem, 4vw, 3rem); }
.legal-head h1 { font-size: clamp(2.2rem, 1.4rem + 3.4vw, 4rem); max-width: 16ch; }
.legal-head p { margin-top: 1rem; }
.legal-body { background: var(--butter); padding-block: clamp(2.5rem, 5vw, 4.5rem) var(--section); }
.legal-layout { display: grid; grid-template-columns: minmax(0, 15rem) minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.toc { position: sticky; top: 1.5rem; font-size: 0.95rem; line-height: 1.4; max-height: calc(100vh - 3rem); overflow: auto; }
.toc p { font-family: var(--font-serif); text-transform: uppercase; letter-spacing: 0.06em; font-size: 1.3rem; margin-bottom: 0.75rem; }
.toc ol { list-style: none; padding: 0; display: grid; gap: 0.1rem; }
.toc a { display: block; padding: 0.4rem 0; text-decoration: none; }
.toc a:hover { text-decoration: underline; }
.prose { max-width: 68ch; }
.prose > * + * { margin-top: 1rem; }
.prose h2 { font-family: var(--font-serif); font-weight: 400; text-transform: uppercase; letter-spacing: 0.04em; font-size: var(--step-2); line-height: 1.1; margin-top: 3rem; scroll-margin-top: 1.5rem; }
.prose h2:first-child { margin-top: 0; }
.prose ul { padding-left: 1.25rem; display: grid; gap: 0.4rem; }
.prose li::marker { color: var(--slate); }
.prose strong { font-weight: 600; }
.prose table { width: 100%; border-collapse: collapse; font-size: 1rem; line-height: 1.5; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 0.75rem 1rem 0.75rem 0; border-bottom: 1px solid var(--rule); }
.prose th { font-weight: 600; border-bottom: 2px solid var(--brown); }
.prose .lead { font-size: var(--step-1); line-height: 1.55; }
.not-found { min-height: 70vh; display: grid; align-content: center; gap: 1.5rem; padding-block: 4rem; }

/* Responsive */
@media (max-width: 60rem) {
  .services, .about, .quote-layout, .legal-layout { grid-template-columns: 1fr; }
  .services-intro, .quote-intro, .toc { position: static; }
  .toc { max-height: none; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
  .photos { max-width: 30rem; }
}
@media (max-width: 36rem) {
  .steps { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .service-list li { grid-template-columns: 1fr; }
  .service-list .min { grid-column: 1; grid-row: auto; text-align: left; display: flex; align-items: baseline; gap: 0.5rem; }
  .service-list .min b { display: inline; }
  .footer-grid { grid-template-columns: 1fr; }
  .prose table, .prose thead, .prose tbody, .prose tr, .prose th, .prose td { display: block; }
  .prose thead { display: none; }
  .prose td { border: 0; padding: 0; }
  .prose tr { padding-block: 0.75rem; border-bottom: 1px solid var(--rule); }
  .prose td:first-child { font-weight: 600; }
}

@media print {
  .site-header nav, .hero, .site-footer { display: none; }
  body, .legal-body { background: #fff; }
}
