/* ==========================================================================
   Heritage Solar, heritagesolar.energy
   Monochrome engraving on aged paper. See Heritage-Solar-Brand-Guidelines.pdf
   ========================================================================== */

/* Fonts are served from this site (no third-party requests).
   Libre Baskerville, Source Serif 4 and Poppins, SIL Open Font License 1.1. */
@font-face { font-family: "Libre Baskerville"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/libre-baskerville-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Libre Baskerville"; font-style: italic; font-weight: 400; font-display: swap; src: url("../fonts/libre-baskerville-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Source Serif 4"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/source-serif-4-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Source Serif 4"; font-style: italic; font-weight: 400; font-display: swap; src: url("../fonts/source-serif-4-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Source Serif 4"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/source-serif-4-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/poppins-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/poppins-latin-500-normal.woff2") format("woff2"); }

:root {
  --plate-ink: #1E1D19;
  --etching-ink: #2B2A26;
  --grey-wash: #57544B;
  --faded-line: #8F8A7C;
  --band: #DED8C8;
  --aged-paper: #F1EDE2;
  --brass: #C6973F;
  --brass-deep: #A87E2F;
  --night-slate: #232B33;
  --cream: #F1EDE2;

  --serif: "Libre Baskerville", Georgia, "Times New Roman", serif;
  /* display: Libre Baskerville. reading text: Source Serif 4.
     labels, navigation and buttons only: Poppins. */
  --text: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Poppins", "Segoe UI", -apple-system, sans-serif;

  --measure: 66ch;
  --gutter: clamp(1.25rem, 4vw, 3rem);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--aged-paper);
  /* laid-paper ruling, barely-there */
  background-image: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent 2.2rem,
    rgba(143, 138, 124, 0.13) 2.2rem,
    rgba(143, 138, 124, 0.13) calc(2.2rem + 1px)
  );
  color: var(--plate-ink);
  font-family: var(--text);
  font-weight: 400;
  font-size: 1.125rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

/* ---------- Type ---------- */

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  color: var(--plate-ink);
  text-transform: uppercase;
  letter-spacing: 0.17em;
  line-height: 1.35;
}

h1 { font-size: clamp(1.7rem, 4.2vw, 2.9rem); }
h2 { font-size: clamp(1.25rem, 2.6vw, 1.7rem); }
h3 { font-size: clamp(1rem, 1.8vw, 1.1rem); }

p { max-width: var(--measure); color: var(--plate-ink); }

.caption, .colophon {
  font-family: var(--serif);
  font-style: italic;
  text-transform: none;
  letter-spacing: 0.08em;
  color: var(--grey-wash);
}

a { color: var(--brass-deep); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--brass); }

/* ---------- Motif: hairline rule meeting at a sun-dot ---------- */

.sun-rule {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin: 1.4rem 0;
}
.sun-rule::before,
.sun-rule::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--faded-line);
}
.sun-rule .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--plate-ink);
  flex: none;
}
.sun-rule.narrow { max-width: 22rem; margin-inline: auto; }

/* ---------- Motif: double-rule border (old title page) ---------- */

.double-rule {
  border: 1px solid var(--faded-line);
  position: relative;
  padding: clamp(1.5rem, 4vw, 2.75rem);
}
.double-rule::before {
  content: "";
  position: absolute;
  inset: 5px;
  border: 0.5px solid var(--faded-line);
  pointer-events: none;
}

/* ---------- Layout ---------- */

.wrap {
  max-width: 72rem;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

section { padding-block: clamp(3rem, 7vw, 5.5rem); }

/* ---------- Header ---------- */

.site-header {
  border-bottom: 1px solid var(--faded-line);
  box-shadow: 0 3px 0 -2px var(--faded-line); /* second hairline of the double rule */
  background: var(--aged-paper);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 1rem;
  flex-wrap: wrap;
}
.site-header .lockup {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  text-decoration: none;
  color: var(--plate-ink);
}
.lockup-word {
  font-family: var(--serif);
  font-size: 1.12rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  white-space: nowrap;
}
.lockup-mark { width: 42px; height: 42px; flex: none; }
.nav-toggle { display: none; }

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(0.9rem, 1.7vw, 1.4rem);
  list-style: none;
}
.site-nav a {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--plate-ink);
}
.site-nav a:hover { color: var(--brass-deep); }
.site-nav a[aria-current="page"] {
  color: var(--plate-ink);
  border-bottom: 1px solid var(--plate-ink);
  padding-bottom: 2px;
}

/* ---------- Hero ---------- */

.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.hero-plate img,
.hero-plate svg { width: min(340px, 100%); height: auto; margin-inline: auto; display: block; }

.hero .strapline {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.82rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--grey-wash);
  margin-bottom: 1.1rem;
}
.hero h1 { margin-bottom: 1.4rem; }
.hero .lede { font-size: 1.3rem; line-height: 1.5; margin-bottom: 1rem; }

.hero-cta { margin-top: 2rem; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.85rem 1.9rem;
  border: 1px solid var(--brass-deep);
  color: var(--plate-ink);
  background-color: var(--brass);
  transition: background 0.15s ease, color 0.15s ease;
}
.btn:hover, .btn:focus-visible {
  background-color: var(--plate-ink);
  border-color: var(--plate-ink);
  color: var(--cream);
}
.text-link {
  margin-left: 1.5rem;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1rem;
  color: var(--plate-ink);
  text-decoration-color: var(--faded-line);
}
.text-link:hover { color: var(--brass-deep); }

/* ---------- Band panels ---------- */

.band-panel {
  background-color: var(--band);
  /* faint graph-paper dots */
  background-image: radial-gradient(rgba(87, 84, 75, 0.16) 1px, transparent 1px);
  background-size: 22px 22px;
}

/* ---------- Sketchbook furniture ---------- */

.pillars h2, .steps h2 { text-align: center; }

.plate-note {
  text-align: center;
  font-size: 0.9rem;
  margin-top: 0.35rem;
  max-width: none;
}

.plate-caption {
  text-align: center;
  font-size: 0.85rem;
  margin-top: 0.9rem;
  max-width: 30ch;
  margin-inline: auto;
}

.sketch {
  height: 132px;
  width: auto;
  margin-bottom: 1rem;
}

.fig-letter {
  font-family: Georgia, serif;
  font-style: italic;
  font-size: 7px;
  fill: var(--grey-wash);
  stroke: none;
}

/* engraved measuring scale: minor and major ticks on a baseline */
.rule-scale {
  height: 13px;
  max-width: 26rem;
  margin: 1.4rem auto 0;
  border-bottom: 1px solid var(--faded-line);
  background-image:
    repeating-linear-gradient(90deg, var(--faded-line) 0 1px, transparent 1px 9px),
    repeating-linear-gradient(90deg, var(--etching-ink) 0 1px, transparent 1px 45px);
  background-size: 100% 6px, 100% 13px;
  background-position: left bottom, left bottom;
  background-repeat: repeat-x;
}

.nb { font-size: 0.88rem; margin-top: 1.4rem; }

/* ---------- Specimen plate (Georgian entomology) ---------- */

.specimens {
  padding-block: clamp(2rem, 5vw, 3.5rem);
  text-align: center;
}
.specimens .sun-rule.narrow { margin-bottom: 2.25rem; }
.specimens .row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-end;
  gap: clamp(1.5rem, 6vw, 5rem);
}
.specimen { margin: 0; }
.specimen svg { height: 108px; width: auto; margin-inline: auto; }
.specimen figcaption {
  font-size: 0.85rem;
  margin-top: 0.5rem;
  max-width: 17ch;
  margin-inline: auto;
}
.specimens .plate-note { margin-top: 2.25rem; }

/* ---------- Subpages: title plates, prose, FAQ, table, form, vignettes ---------- */

.page-title { text-align: center; padding-bottom: clamp(1.5rem, 3vw, 2.5rem); }
.page-title .wrap { position: relative; }
.page-title h1 { font-size: clamp(1.55rem, 3.2vw, 2.3rem); }
.page-title .lede {
  max-width: 46rem;
  margin: 1.5rem auto 0;
  text-align: center;
  font-size: 1.15rem;
}

.prose-block { max-width: 46rem; margin-inline: auto; }
.prose-block > h2 { text-align: center; }
.prose-block > p { margin-top: 1rem; }
.prose-block p + h3 { margin-top: 2.2rem; }
.prose-block h3 { margin-bottom: 0.5rem; }

.faq { max-width: 46rem; margin-inline: auto; }
.faq article { border-top: 1px solid var(--faded-line); padding: 1.5rem 0; }
.faq article:last-child { border-bottom: 1px solid var(--faded-line); }
.faq h3 { text-transform: none; letter-spacing: 0.04em; font-size: 1.05rem; }
.faq p { margin-top: 0.6rem; color: var(--grey-wash); font-size: 1.02rem; }

.match-table { margin-top: 2.5rem; }
.match-table table { width: 100%; border-collapse: collapse; }
.match-table caption {
  font-family: var(--serif);
  font-style: italic;
  color: var(--grey-wash);
  font-size: 0.85rem;
  padding-bottom: 1rem;
}
.match-table th {
  font-family: var(--serif);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.8rem;
  text-align: left;
  padding: 0.6rem 0.9rem;
  border-bottom: 1px solid var(--etching-ink);
}
.match-table td {
  padding: 0.75rem 0.9rem;
  font-size: 1rem;
  border-bottom: 1px solid var(--faded-line);
  vertical-align: top;
}
.match-table td:first-child { font-weight: 600; white-space: nowrap; }

.svc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: clamp(1.5rem, 4vw, 3rem); align-items: start; max-width: 56rem; margin: 3rem auto 0; }
.svc figure { margin: 0; text-align: center; }
.svc figure figcaption { font-size: 0.82rem; margin-top: 0.5rem; }
.svc h3 { margin-bottom: 0.6rem; }
.svc p + p { margin-top: 0.8rem; }
@media (max-width: 46rem) {
  .svc { grid-template-columns: 1fr; }
  .svc figure { max-width: 12rem; margin-inline: auto; }
}

.vignette { text-align: center; margin: 3rem auto 0; }
.vignette svg { height: clamp(110px, 14vw, 150px); width: auto; margin-inline: auto; }
.vignette figcaption { font-size: 0.85rem; margin-top: 0.7rem; }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: clamp(1.5rem, 4vw, 3rem); max-width: 56rem; margin: 3rem auto 0; text-align: center; }
.stats .stat .value {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  letter-spacing: 0.06em;
  display: block;
}
.stats .stat .label {
  font-family: var(--serif);
  font-style: italic;
  color: var(--grey-wash);
  font-size: 0.9rem;
  display: block;
  margin-top: 0.5rem;
}

.desk-form { max-width: 40rem; margin: 2.5rem auto 0; display: grid; gap: 1.4rem; }
.desk-form label {
  display: block;
  font-weight: 500;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 0.45rem;
}
.desk-form input,
.desk-form select,
.desk-form textarea {
  width: 100%;
  background: transparent;
  border: 1px solid var(--faded-line);
  padding: 0.75rem 0.9rem;
  font-family: var(--sans);
  font-size: 0.95rem;
  color: var(--plate-ink);
}
.desk-form textarea { resize: vertical; min-height: 8rem; }
.desk-form input:focus,
.desk-form select:focus,
.desk-form textarea:focus { outline: 2px solid var(--brass-deep); outline-offset: 1px; }
.desk-form .form-note { font-size: 0.85rem; }
.desk-form button.btn { justify-self: start; cursor: pointer; }
.desk-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.desk-form .form-status { font-family: var(--serif); font-style: italic; min-height: 1.7em; }
.desk-form button[disabled] { opacity: 0.6; cursor: default; }
.legal-page h2 { margin-top: 2.5rem; }
.legal-page p, .legal-page ul { margin-top: 0.9rem; }
.legal-page ul { padding-left: 1.2rem; max-width: var(--measure); }

/* ---------- Areas: breadcrumbs, the register of towns ---------- */

.crumbs {
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.85rem;
  color: var(--grey-wash);
  margin-bottom: 1.25rem;
}
.crumbs a { color: var(--grey-wash); text-decoration-color: var(--faded-line); }
.crumbs a:hover { color: var(--brass-deep); }
.crumbs span { color: var(--plate-ink); }

.areas-wrap h2 { text-align: center; }
.areas-wrap h2:not(:first-child) { margin-top: 3.5rem; }

.area-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: clamp(1.25rem, 3vw, 2rem);
  margin-top: 2.5rem;
}
.area-list li {
  background: var(--aged-paper);
  border: 1px solid var(--faded-line);
  padding: 1.5rem;
}
.area-list a { text-decoration: none; }
.area-list h3 {
  color: var(--plate-ink);
  margin-bottom: 0.6rem;
  transition: color 0.15s ease;
}
.area-list a:hover h3 { color: var(--brass-deep); }
.area-list p { font-size: 1rem; color: var(--grey-wash); }

.nearby {
  text-align: center;
  font-size: 0.88rem;
  max-width: 44rem;
  margin: 2rem auto 0;
}

/* ---------- The plumb line (listed page, top right) ---------- */

.plumb {
  display: none;
  position: absolute;
  top: -1rem;
  right: clamp(0.5rem, 3vw, 2.5rem);
  width: clamp(64px, 6vw, 84px);
}
@media (min-width: 60rem) { .plumb { display: block; } }
/* As with the compass needle: the cord's pivot is carried in its own
   rotate() attribute, so no CSS transform-origin belongs here. */

/* ---------- The office circumferentor (steps section, top right) ---------- */

.steps .wrap { position: relative; }
.bearing {
  display: none;
  position: absolute;
  top: 0;
  right: var(--gutter);
  width: clamp(96px, 9vw, 124px);
}
@media (min-width: 60rem) and (pointer: fine) {
  .bearing { display: block; }
  /* keep the centred heading clear of the instrument on both sides */
  .steps h2 { padding-inline: 9.5rem; }
}
/* The needle's pivot travels in its own rotate() attribute: adding a CSS
   transform-origin here would apply that offset a second time. */

/* ---------- Pillars ---------- */

.pillars .grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 26rem), 1fr));
  gap: clamp(1.25rem, 3vw, 2rem);
  margin-top: 2.5rem;
}
.pillar {
  background: var(--aged-paper);
  padding: 1.75rem 1.75rem 1.9rem;
  border: 1px solid var(--faded-line);
  display: grid;
  grid-template-columns: 9.5rem minmax(0, 1fr);
  column-gap: 1.75rem;
  align-content: start;
}
.pillar .sketch { grid-row: 1 / span 3; align-self: center; height: auto; width: 100%; margin: 0; }
.pillar > :not(.sketch) { grid-column: 2; }
@media (max-width: 30rem) {
  .pillar { grid-template-columns: 1fr; }
  .pillar .sketch { grid-row: auto; width: 9rem; margin-bottom: 1rem; }
  .pillar > :not(.sketch) { grid-column: 1; }
}
.pillar h3 { margin-bottom: 0.4rem; }
.pillar .num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: none;
  color: var(--grey-wash);
  display: block;
  margin-bottom: 0.5rem;
}
.pillar p { font-size: 1rem; color: var(--grey-wash); }

/* ---------- How it works ---------- */

.steps ol {
  list-style: none;
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem);
  margin-top: 2.5rem;
}
.steps li { counter-increment: step; }
.steps .roman {
  font-family: var(--serif);
  font-size: 1.5rem;
  letter-spacing: 0.15em;
  color: var(--plate-ink);
  display: block;
}
.steps h3 { margin: 0.6rem 0 0.5rem; }
.steps li p { font-size: 1rem; color: var(--grey-wash); }
.steps .step-rule {
  width: 3rem;
  height: 1px;
  background: var(--faded-line);
  margin-top: 0.6rem;
}

/* ---------- Closing CTA ---------- */

.closing-cta { text-align: center; }
.closing-cta .double-rule {
  max-width: 46rem;
  margin-inline: auto;
}
.closing-cta h2 { margin-bottom: 1rem; }
.closing-cta p { margin-inline: auto; margin-bottom: 1.6rem; }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--night-slate);
  color: var(--cream);
  padding-block: clamp(2.5rem, 6vw, 4rem);
  text-align: center;
}
.site-footer .wordmark {
  font-family: var(--serif);
  font-size: clamp(1.1rem, 2.4vw, 1.5rem);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--cream);
}
.site-footer .sun-rule { max-width: 20rem; margin: 1.1rem auto; }
.site-footer .sun-rule::before,
.site-footer .sun-rule::after { background: rgba(241, 237, 226, 0.4); }
.site-footer .sun-rule .dot { background: var(--cream); }
.site-footer .colophon { color: rgba(241, 237, 226, 0.75); font-size: 0.85rem; }
.site-footer nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  margin: 1.75rem 0 1.25rem;
}
.site-footer nav a {
  font-family: var(--sans);
  color: var(--cream);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
}
.site-footer nav a:hover { color: var(--brass); }
.site-footer .contact a { color: var(--brass); }
.site-footer .fine {
  font-size: 0.78rem;
  color: rgba(241, 237, 226, 0.55);
  margin-top: 1.25rem;
}
.site-footer p { margin-inline: auto; }
.site-footer .legal { margin-top: 0.6rem; }
.site-footer .legal a { color: inherit; }
.site-footer .legal a:hover { color: var(--brass); }

/* ---------- Responsive ---------- */

@media (max-width: 46rem) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-plate img,
  .hero-plate svg { width: min(240px, 100%); }
  .text-link { display: block; margin: 1.1rem 0 0; }

  /* the menu folds away behind a button once the script is running;
     without script the links simply wrap */
  .js .nav-toggle {
    display: inline-block;
    font-family: var(--sans);
    font-weight: 500;
    font-size: 0.82rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    background: transparent;
    color: var(--plate-ink);
    border: 1px solid var(--faded-line);
    padding: 0.5rem 0.9rem;
    cursor: pointer;
  }
  .js .site-nav { display: none; width: 100%; }
  .js .nav-open .site-nav { display: block; }
  .js .site-nav ul { flex-direction: column; gap: 0; border-top: 1px solid var(--faded-line); }
  .js .site-nav li { border-bottom: 1px solid var(--faded-line); }
  .js .site-nav a { display: block; padding: 0.85rem 0; }
  .js .site-nav a[aria-current="page"] { border-bottom: 0; color: var(--brass-deep); }
  .lockup-word { font-size: 0.98rem; letter-spacing: 0.2em; }
  .lockup-mark { width: 34px; height: 34px; }
}

/* ==========================================================================
   Refinement, November 2026: book layout, slate band, specimen sheet,
   assurances, photographic plates.
   ========================================================================== */

strong, b { font-weight: 600; }

/* ---------- Assurances: four plain statements under the hero ---------- */

.assurances { padding-block: 0; }
.assurances ul {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  border-top: 1px solid var(--faded-line);
}
.assurances li {
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  color: var(--grey-wash);
  padding: 1.1rem 1.25rem 1.3rem 0;
}
.assurances li + li { padding-left: 1.25rem; border-left: 1px solid var(--faded-line); }
@media (max-width: 58rem) {
  .assurances li, .assurances li + li { padding: 0.7rem 0; border-left: 0; border-bottom: 1px solid var(--faded-line); }
}

/* ---------- Slate band: the one dark passage on a page ---------- */

.slate {
  --plate-ink: #F1EDE2;
  --etching-ink: #F1EDE2;
  --grey-wash: rgba(241, 237, 226, 0.76);
  --faded-line: rgba(241, 237, 226, 0.34);
  background: var(--night-slate);
  color: var(--cream);
}
.slate .bearing svg { filter: invert(0.9); }
.slate .roman { color: var(--brass); }

/* ---------- What a desk-check tells you ---------- */

.receive .wrap {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}
.receive h2 { margin-bottom: 1.2rem; }
.plain-list { list-style: none; margin: 1.4rem 0 2rem; max-width: var(--measure); }
.plain-list li { padding: 0.7rem 0; border-top: 1px solid var(--faded-line); }
.plain-list li:last-child { border-bottom: 1px solid var(--faded-line); }

.specimen-sheet {
  margin: 0;
  background: #F7F4EC;
  box-shadow: 0 1px 0 rgba(43, 42, 38, 0.08), 0 18px 40px -24px rgba(43, 42, 38, 0.45);
  transform: rotate(0.6deg);
}
.specimen-sheet .sheet-kicker { font-size: 0.85rem; max-width: none; }
.specimen-sheet .sheet-title {
  font-family: var(--serif);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 1.35rem;
  margin-top: 1.1rem;
}
.specimen-sheet .sheet-address {
  font-family: var(--serif);
  font-style: italic;
  color: var(--grey-wash);
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--etching-ink);
}
.specimen-sheet dl > div {
  display: grid;
  grid-template-columns: 9.5rem minmax(0, 1fr);
  gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--faded-line);
}
.specimen-sheet dl > div:last-child { border-bottom: 0; padding-bottom: 0; }
.specimen-sheet dt {
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--grey-wash);
}
.specimen-sheet dd { font-size: 1rem; line-height: 1.5; }
@media (max-width: 54rem) {
  .receive .wrap { grid-template-columns: 1fr; }
  .specimen-sheet { transform: none; }
  .specimen-sheet dl > div { grid-template-columns: 1fr; gap: 0.15rem; }
}

/* ---------- Book layout: heading in the margin, text beside it ---------- */

@media (min-width: 60rem) {
  .prose-block:not(.legal-page) {
    max-width: 62rem;
    display: grid;
    grid-template-columns: 16rem minmax(0, 1fr);
    column-gap: clamp(2.5rem, 5vw, 4.5rem);
  }
  .prose-block:not(.legal-page) > h2 {
    grid-column: 1;
    grid-row: 1 / span 40;
    align-self: start;
    text-align: left;
    font-size: 1.2rem;
    line-height: 1.5;
    padding-top: 1rem;
    border-top: 1px solid var(--etching-ink);
  }
  .prose-block:not(.legal-page) > .sun-rule { display: none; }
  .prose-block:not(.legal-page) > :not(h2):not(.sun-rule) { grid-column: 2; }
  .prose-block:not(.legal-page) > p:first-of-type { margin-top: 0.7rem; }

  /* the opening paragraph of a page takes an initial */
  main > section:nth-of-type(2) .prose-block:not(.legal-page) > p:first-of-type::first-letter {
    font-family: var(--serif);
    float: left;
    font-size: 3.5em;
    line-height: 0.82;
    padding: 0.06em 0.1em 0 0;
  }
  .svc { grid-template-columns: 16rem minmax(0, 1fr); max-width: 62rem; column-gap: clamp(2.5rem, 5vw, 4.5rem); }
}
.svc .sketch { height: auto; width: min(100%, 13rem); margin-inline: auto; }
.faq { max-width: 46rem; }
.legal-page > h2 { text-align: left; font-size: 1.15rem; }

.county-list {
  list-style: none;
  columns: 3 10rem;
  column-gap: 2rem;
  margin-top: 1.4rem;
  max-width: var(--measure);
}
.county-list li { padding: 0.45rem 0; border-bottom: 1px solid var(--faded-line); break-inside: avoid; }
.areas-wrap > .plate-note { margin: 0 0 2.5rem; }

/* ---------- Projects ---------- */

.project {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
  max-width: 64rem;
  margin-inline: auto;
  padding-block: clamp(2rem, 4vw, 3rem);
  border-top: 1px solid var(--faded-line);
}
.project:first-of-type { border-top: 0; padding-top: 0; }
.project .plate-no { font-size: 0.95rem; }
.project h2 { margin: 0.4rem 0 0.2rem; }
.project .place { font-family: var(--serif); font-style: italic; color: var(--grey-wash); }
.project .credit {
  margin-top: 1.2rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--etching-ink);
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.98rem;
  max-width: 22rem;
}
.project .photo-plate { margin-top: 1.5rem; }
.project-body > p + p { margin-top: 1rem; }
.project dl { margin-top: 1.5rem; }
.project dl > div {
  display: grid;
  grid-template-columns: 8rem minmax(0, 1fr);
  gap: 1rem;
  padding: 0.6rem 0;
  border-top: 1px solid var(--faded-line);
}
.project dl > div:last-child { border-bottom: 1px solid var(--faded-line); }
.project dt { font-family: var(--serif); font-style: italic; color: var(--grey-wash); font-size: 0.95rem; }
.project dd { font-size: 1rem; }
@media (max-width: 46rem) { .project { grid-template-columns: 1fr; gap: 1rem; } }

/* tighter joins between plates */
.steps + .receive, .receive + .closing-cta { margin-top: 0; }
.vignette { margin-top: 2rem; }

/* ---------- Photographic plates ----------
   For licensed or commissioned photographs only. Markup:
     <figure class="photo-plate">
       <img src="assets/photos/name.jpg" alt="..." width="1200" height="800">
       <figcaption class="caption">Plate V. What the photograph shows.</figcaption>
     </figure>
   The image is toned to the paper so it sits with the engravings. */

.photo-plate { margin: 0; }
.photo-plate img {
  width: 100%;
  border: 1px solid var(--faded-line);
  outline: 1px solid var(--faded-line);
  outline-offset: 5px;
  filter: grayscale(1) sepia(0.28) contrast(1.05) brightness(1.02);
}
.photo-plate figcaption { font-size: 0.9rem; margin-top: 1.1rem; text-align: center; }

/* ==========================================================================
   Animation: the page draws itself, as if sketched.
   Everything below is gated on .js (progressive enhancement) and on
   prefers-reduced-motion: no-preference. Opacity/transform/stroke only.
   ========================================================================== */

@media (prefers-reduced-motion: no-preference) {

  /* -- The engraver at work: linework draws in, detail fades in after -- */
  .js .ink {
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
    transition: stroke-dashoffset 0.9s cubic-bezier(0.4, 0, 0.2, 1);
  }
  .js .in-view .ink { stroke-dashoffset: 0; }
  .js .ink-fade { opacity: 0; transition: opacity 0.8s ease; }
  .js .in-view .ink-fade { opacity: 1; }

  /* -- Scroll reveals: pages settling into place -- */
  .js :where(.pillar, .steps li, .specimen, .double-rule, .pillars h2, .steps h2, .plate-note, .reveal) {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.7s ease, transform 0.7s ease;
  }
  .js .in-view { opacity: 1; transform: none; }

  /* -- Sun-rule: the dot appears, the hairlines grow out of it -- */
  .js .sun-rule::before,
  .js .sun-rule::after {
    transform: scaleX(0);
    transition: transform 1s ease 0.2s;
  }
  .js .sun-rule::before { transform-origin: right center; }
  .js .sun-rule::after { transform-origin: left center; }
  .js .sun-rule .dot {
    transform: scale(0);
    transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
  }
  .js .sun-rule.in-view::before,
  .js .sun-rule.in-view::after { transform: scaleX(1); }
  .js .sun-rule.in-view .dot { transform: scale(1); }

  /* -- Measuring scale ruled in from the left --
     The clip lives on the inner element and the observer watches the
     unclipped wrapper: a fully clipped element never intersects, so it
     could never reveal itself. */
  .js .rule-scale {
    clip-path: inset(0 100% 0 0);
    transition: clip-path 1.2s cubic-bezier(0.4, 0, 0.2, 1) 0.2s;
  }
  .js .rule-scale-wrap.in-view .rule-scale { clip-path: inset(0 0 0 0); }

  /* -- Hero entrance: letterpress settle -- */
  @keyframes rise {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: none; }
  }
  @keyframes settle-caps {
    from { opacity: 0; letter-spacing: 0.26em; transform: translateY(10px); }
    to { opacity: 1; letter-spacing: 0.17em; transform: none; }
  }
  .js .hero .strapline { animation: rise 0.7s ease both 0.05s; }
  .js .hero h1 { animation: settle-caps 1.1s ease both 0.18s; }
  .js .hero .hero-copy p:not(.strapline) { animation: rise 0.7s ease both 0.45s; }
  .js .hero .lede { animation-delay: 0.35s; }
  .js .hero .hero-cta { animation: rise 0.7s ease both 0.6s; }
  .js .hero-plate { animation: rise 0.9s ease both 0.3s; }

  /* -- Ink micro-interactions -- */
  .site-nav a {
    background-image: linear-gradient(currentColor, currentColor);
    background-repeat: no-repeat;
    background-size: 0% 1px;
    background-position: 0 100%;
    padding-bottom: 2px;
    transition: background-size 0.3s ease, color 0.15s ease;
  }
  .site-nav a:hover { background-size: 100% 1px; }

  .btn {
    background-image: linear-gradient(var(--plate-ink), var(--plate-ink));
    background-repeat: no-repeat;
    background-size: 0% 100%;
    background-position: left center;
    transition: background-size 0.35s ease, border-color 0.35s ease, color 0.25s ease;
  }
  .btn:hover, .btn:focus-visible {
    background-color: var(--brass); /* the ink arrives via the sweep */
    background-size: 100% 100%;
  }

  /* -- The specimens are not quite pinned -- */
  .specimen svg { transition: transform 0.5s ease; }
  .specimen:hover svg { transform: translateY(-4px) rotate(-1.2deg); }
  .antenna { transform-box: fill-box; }
  .antenna-l { transform-origin: 100% 100%; }
  .antenna-r { transform-origin: 0% 100%; }
  @keyframes quiver {
    0%, 100% { transform: rotate(0deg); }
    30% { transform: rotate(3deg); }
    65% { transform: rotate(-2.5deg); }
  }
  .specimen:hover .antenna { animation: quiver 1.1s ease-in-out infinite; }
}

/* ---------- Accessibility ---------- */

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}
