/* Poort van Piershil — one stylesheet.
   A classic, quiet brochure built from the logo: tracked serif capitals,
   a short caramel rule, and the arch of the gate. No numbering, no arrows.
   Every repeated value is named here once. */

/* ------------------------------------------------------------------ */
/* Tokens                                                              */
/* ------------------------------------------------------------------ */
:root {
  color-scheme: light;

  /* Colour (brand: #595345 and #c59b73) */
  --paper: #f8f3ec;
  --tint: #efe7db;
  --ink: #595345;
  --ink-soft: #6e6757;
  --caramel: #c59b73;
  --caramel-deep: #96693f;
  --on-caramel: #2e2a22;
  --line: #d8cdbd;
  --line-strong: #a89f8c;
  --dark: #595345;
  --on-dark: #f8f3ec;
  --on-dark-soft: #ddd3c4;
  --color-primary: var(--ink);

  /* Map: the base map recoloured in the house palette (read by the map
     script, so the map follows any change made here). */
  --map-land: #f1eadf;
  --map-green: #e3e1cb;
  --map-water: #cbd5d1;
  --map-water-label: #7b8784;
  --map-building: #e4d9c9;
  --map-road: #fbf8f3;
  --map-road-casing: #ddd2c2;
  --map-rail: #c9bfae;
  --map-boundary: #a89f8c;
  --map-label: #6e6757;
  --map-label-halo: #f8f3ec;
  --map-area: #c59b73;
  --map-area-line: #96693f;

  /* Type: Fraunces throughout */
  --font: "Fraunces", Georgia, serif;
  --text-base: 1.0625rem;
  --text-lead: clamp(1.1875rem, 1.5vw, 1.375rem);
  --text-small: 0.9375rem;
  --text-caption: 0.8125rem;
  --text-label: 0.75rem;
  --text-h1: clamp(3.25rem, 7vw, 6.5rem);
  --text-h1-long: clamp(2.75rem, 4.4vw, 4.25rem); /* a title of two full lines */
  --text-h2: clamp(2.25rem, 4.2vw, 3.75rem);
  --text-h3: clamp(1.75rem, 2.6vw, 2.375rem);
  --text-quote: clamp(1.875rem, 3.2vw, 2.875rem);
  --text-figure: clamp(2.75rem, 4.5vw, 4rem);
  --tracking-label: 0.24em;
  --tracking-button: 0.16em;
  --weight-heading: 300;

  /* Layout: one gutter, one twelve-column grid.
     Coloured bands always run to the window edge; past --content-max the
     gutter grows so the content stays centred. */
  --content-max: 80rem;
  --gutter: max(1.375rem, 5%, calc((100% - var(--content-max)) / 2));
  --grid: repeat(12, minmax(0, 1fr));
  --col-gap: clamp(1.25rem, 3vw, 3rem);
  --measure: 46rem;

  /* Vertical rhythm */
  --section-space: clamp(5rem, 10vw, 9rem);
  --block-space: clamp(3rem, 6vw, 5.5rem);
  --stack: 1.5rem;
  --caption-gap: 0.875rem;
  --stagger: clamp(2rem, 7vw, 7rem);
  --head-offset: 2.6rem; /* label line plus its gap: text starts at the heading */
  --sticky-top: 2.5rem;
  --measure-text: 36rem; /* longest comfortable line of running text */
  /* Where grid column 8 begins, for blocks that sit outside a grid. */
  --col-8-start: calc((100% - 11 * var(--col-gap)) / 12 * 7 + 7 * var(--col-gap));
  --caption-space: 2.5rem; /* height of a caption line under a picture */
  /* The same gutter measured against the window, for pictures that run
     off the edge from inside a column (a % there would mean the column). */
  --gutter-vw: max(1.375rem, 5vw, calc((100vw - var(--content-max)) / 2));
  --bleed: calc(-1 * var(--gutter-vw));

  /* The horizontal logo in the header bar */
  --brand-height: 3.25rem; /* 52px; the bar is 6.5rem, so it does not grow */

  /* Shapes */
  --rule-width: 3.5rem;
  --rule-weight: 2px;
  --arch: 999px 999px 0 0;
  --frame: 1px solid var(--line);
  --field-height: 3rem;
}

/* ------------------------------------------------------------------ */
/* Reset and base                                                      */
/* ------------------------------------------------------------------ */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-block-start: 1.5rem;
}
body {
  margin: 0;
  overflow-x: clip;
  background: var(--paper);
  color: var(--ink);
  font: 400 var(--text-base) / 1.7 var(--font);
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
}
h1,
h2,
h3,
p,
figure,
blockquote,
dl,
dd {
  margin: 0;
}
h1,
h2,
h3 {
  font-weight: var(--weight-heading);
  line-height: 1.1;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
h1 {
  font-size: var(--text-h1);
  line-height: 1.02;
}
h2 {
  font-size: var(--text-h2);
}
h3 {
  font-size: var(--text-h3);
  font-weight: 350;
}
em {
  font-style: italic;
}
p {
  text-wrap: pretty;
}
:is(h1, h2, h3, .quote) em {
  color: var(--caramel-deep);
}
img {
  display: block;
  max-inline-size: 100%;
  block-size: auto;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
select {
  font: inherit;
  color: inherit;
}
fieldset {
  min-inline-size: 0;
  margin: 0;
  padding: 0;
  border: 0;
}
[hidden] {
  display: none !important;
}
:is(a, button, input, select, [tabindex]):focus-visible {
  outline: 2px solid var(--caramel-deep);
  outline-offset: 4px;
}
::selection {
  background: var(--caramel);
  color: var(--on-caramel);
}
figcaption,
.note {
  margin-block-start: var(--caption-gap);
  font-size: var(--text-caption);
  font-style: italic;
  color: var(--ink-soft);
}

/* ------------------------------------------------------------------ */
/* Shared pieces                                                       */
/* ------------------------------------------------------------------ */
.label {
  font-size: var(--text-label);
  font-weight: 500;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--caramel-deep);
}
.label--light {
  color: var(--on-dark-soft);
}
.rule {
  display: block;
  inline-size: var(--rule-width);
  block-size: var(--rule-weight);
  border-radius: var(--rule-weight);
  background: var(--caramel);
}
.lead {
  font-size: var(--text-lead);
  line-height: 1.6;
}
.arch {
  border-radius: var(--arch);
}

/* A section opening: label, heading, rule. Ranged left, like a brochure. */
.head {
  & .label + :is(h1, h2) {
    margin-block-start: 1.25rem;
  }
  & .rule {
    margin-block: 1.75rem;
  }
}
:is(.lead, .split__body p, .place__head p, .interest__head > p) + p {
  margin-block-start: 1rem;
}

/* Heading and lead on the left, the running text on the right. The text
   starts level with the heading, not the label, so the two halves read as
   one spread; on a wide screen the heading travels along while the longer
   text scrolls past, so no empty field opens up beneath it. */
.split {
  display: grid;
  grid-template-columns: var(--grid);
  column-gap: var(--col-gap);
  align-items: start;
  & .head {
    grid-column: 1 / 7;
  }
  & .split__body {
    grid-column: 8 / 13;
    padding-block-start: var(--head-offset);
  }
}
@media (min-width: 62.51rem) {
  .split .head {
    position: sticky;
    inset-block-start: var(--sticky-top);
  }
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-block-size: 3.25rem;
  padding: 0.875rem 1.75rem;
  border: 1px solid var(--ink);
  border-radius: 0;
  background: var(--ink);
  color: var(--paper);
  font-size: var(--text-caption);
  font-weight: 500;
  letter-spacing: var(--tracking-button);
  text-transform: uppercase;
  cursor: pointer;
  transition:
    background-color 180ms,
    border-color 180ms,
    color 180ms;
}
.button--light {
  border-color: var(--caramel);
  background: var(--caramel);
  color: var(--on-caramel);
}
.button--wide {
  inline-size: 100%;
}
.link {
  font-style: italic;
  text-decoration: underline;
  text-decoration-color: var(--caramel);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.35em;
  transition:
    color 180ms,
    text-decoration-color 180ms;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem 2rem;
  margin-block-start: 2.5rem;
}

@media (hover: hover) and (pointer: fine) {
  .button:hover {
    border-color: var(--caramel-deep);
    background: var(--caramel-deep);
    color: var(--paper);
  }
  .button--light:hover {
    border-color: var(--paper);
    background: var(--paper);
    color: var(--ink);
  }
  .link:hover {
    color: var(--caramel-deep);
    text-decoration-color: currentColor;
  }
}

/* ------------------------------------------------------------------ */
/* Header                                                              */
/* ------------------------------------------------------------------ */
.site-header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1.5rem;
  min-block-size: 6.5rem;
  padding: 1rem var(--gutter);
  background: var(--dark);
  color: var(--on-dark);
  & .button {
    justify-self: end;
  }
  & :is(a, button):focus-visible {
    outline-color: var(--caramel);
  }
}
.site-header__brand {
  display: block;
  inline-size: fit-content;
}
.site-header__brand img {
  inline-size: auto;
  block-size: var(--brand-height);
}
.site-header__nav {
  display: flex;
  gap: 2.5rem;
  font-size: var(--text-label);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  & a {
    padding-block: 0.5rem;
    border-block-end: 1px solid transparent;
    transition: border-color 180ms;
  }
}
@media (hover: hover) and (pointer: fine) {
  .site-header__nav a:hover {
    border-block-end-color: var(--caramel);
  }
}

/* ------------------------------------------------------------------ */
/* Sections                                                            */
/* ------------------------------------------------------------------ */
.section {
  padding: var(--section-space) var(--gutter);
}
.section--tinted {
  background: var(--tint);
}

/* Hero, like a brochure cover: the title in its own column on the left,
   the picture beside it running off the right edge of the window. */
.hero {
  display: grid;
  grid-template-columns: var(--grid);
  column-gap: var(--col-gap);
  padding: var(--block-space) 0 0 var(--gutter);
}
.hero__image {
  grid-column: 6 / -1;
  grid-row: 1;
  margin-inline-start: var(--col-gap);
  & > img {
    inline-size: 100%;
    block-size: clamp(30rem, 54vw, 46rem);
    object-fit: cover;
    object-position: 65% center;
  }
  & figcaption {
    padding-inline-end: var(--gutter-vw);
    text-align: end;
  }
}
.hero__card {
  grid-column: 1 / 6;
  grid-row: 1;
  align-self: end;
  margin-block-end: var(--caption-space);
  & .label + h1 {
    margin-block-start: 1.25rem;
  }
  & h1 {
    font-size: var(--text-h1-long);
  }
  & .rule {
    margin-block: 1.75rem;
  }
  & .actions {
    justify-content: start;
  }
}

/* Key figures: a spec line, each figure on its own hairline. */
.facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  column-gap: var(--col-gap);
  margin-block-start: var(--block-space);
  & > div {
    display: flex;
    flex-direction: column;
    padding-block-start: 1.25rem;
    border-block-start: var(--frame);
  }
  & > div:first-child {
    border-block-start-color: var(--caramel);
  }
  & dd {
    order: -1;
    font-size: var(--text-figure);
    font-weight: var(--weight-heading);
    line-height: 1;
  }
  & dt {
    margin-block-start: 0.625rem;
    font-size: var(--text-small);
    font-style: italic;
    color: var(--ink-soft);
  }
}

/* The story: a tall arch on the left with the text centred against it,
   then a wide picture set in from the left that runs off the right edge.
   The arch keeps to its own row, so a longer text never leaves a hole. */
.story {
  display: grid;
  grid-template-columns: var(--grid);
  grid-template-rows: auto auto;
  column-gap: var(--col-gap);
  margin-block-start: var(--section-space);
  & .story__arch {
    grid-column: 1 / 6;
    grid-row: 1;
  }
  & .story__arch img {
    inline-size: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    object-position: 30% center;
  }
  & .story__text {
    grid-column: 7 / 13;
    grid-row: 1;
    align-self: center;
    max-inline-size: var(--measure-text);
  }
  & .story__wide {
    grid-column: 4 / -1;
    grid-row: 2;
    margin-inline-end: var(--bleed);
    margin-block-start: var(--block-space);
  }
  & .story__wide img {
    inline-size: 100%;
    aspect-ratio: 21 / 9;
    object-fit: cover;
    object-position: center 60%;
  }
}
.quote {
  font-size: var(--text-quote);
  font-weight: var(--weight-heading);
  line-height: 1.3;
  text-wrap: balance;
}
/* A closing line under a section, set like a pull quote and ranged with
   the text column above it. */
.quote--closing {
  margin-block-start: var(--block-space);
  margin-inline-start: var(--col-8-start);
  padding-block-start: 2rem;
  border-block-start: var(--frame);
  font-size: var(--text-h3);
}
/* Two paper sections in a row share one gap instead of doubling it. */
.section:not(.section--tinted) + .section:not(.section--tinted) {
  padding-block-start: 0;
}
/* The village, under the map. */
.village {
  margin-block-start: var(--section-space);
}

/* Homes: three rows, each composed differently.
   One: a large picture with the text low beside it.
   Two: text high on the left, the picture running off the right edge.
   Three: an arched picture, text centred against it. */
.home {
  display: grid;
  grid-template-columns: var(--grid);
  column-gap: var(--col-gap);
  margin-block-start: var(--block-space);
  & + .home {
    margin-block-start: calc(var(--block-space) * 1.5);
  }
  & .home__image {
    grid-column: 1 / 8;
    grid-row: 1;
  }
  & .home__image img {
    inline-size: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
  }
  & .home__text {
    grid-column: 9 / 13;
    grid-row: 1;
    align-self: end;
  }
  & h3 {
    margin-block: 1rem 1.25rem;
  }
  & .plans {
    margin-block-end: 0;
  }
  & .plans + .link {
    display: inline-block;
    margin-block-start: 1.5rem;
  }
}
.home--reverse {
  & .home__image {
    grid-column: 6 / -1;
    margin-inline-end: var(--bleed);
  }
  & .home__text {
    grid-column: 1 / 5;
    align-self: start;
    padding-block-start: var(--stagger);
  }
}
.home--arch {
  & .home__image {
    grid-column: 2 / 6;
  }
  & .home__image img {
    aspect-ratio: 4 / 5;
  }
  & .home__text {
    grid-column: 7 / 12;
    align-self: center;
  }
}
.plans {
  display: grid;
  gap: 1.25rem;
  margin-block: 2rem;
  padding: 1.5rem 1.5rem 1.25rem;
  border: var(--frame);
  background: var(--paper);
  & img {
    inline-size: 100%;
    block-size: 10rem;
    object-fit: contain;
    filter: grayscale(1);
    mix-blend-mode: multiply;
  }
  & figcaption {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
    margin-block-start: 0.75rem;
    padding-block-start: 0.5rem;
    border-block-start: 1px solid var(--line);
    font-size: var(--text-caption);
    color: var(--ink-soft);
  }
}
.plans--rows img {
  block-size: auto;
}
.note {
  margin-block-start: var(--block-space);
}

/* Location, mirrored: the site plan small on the left, the heading on the
   right, and the map underneath across the full width. */
.place {
  display: grid;
  grid-template-columns: var(--grid);
  column-gap: var(--col-gap);
  align-items: end;
  & .site-plan {
    grid-column: 1 / 6;
    grid-row: 1;
  }
  & .place__head {
    grid-column: 7 / 13;
    grid-row: 1;
    max-inline-size: var(--measure-text);
  }
  & .map {
    grid-column: 1 / -1;
    grid-row: 2;
    min-inline-size: 0;
    margin-block-start: var(--block-space);
  }
}
.map__frame {
  block-size: clamp(22rem, 38vw, 32rem);
  border: var(--frame);
}
.site-plan {
  border: var(--frame);
}
.map__frame {
  position: relative;
  overflow: hidden;
  background: var(--map-land);
}
.map__canvas {
  position: absolute;
  inset: 0;
}
.map__canvas canvas:focus-visible {
  outline: 2px solid var(--caramel-deep);
  outline-offset: -2px;
}
.map__status {
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  inline-size: min(85%, 22rem);
  padding: 1rem 1.5rem;
  background: var(--paper);
  font-size: var(--text-small);
  text-align: center;
}
.map__retry,
.map__reset {
  position: absolute;
  min-block-size: 2.75rem;
  padding: 0.5rem 1rem;
  border: var(--frame);
  background: var(--paper);
  font-size: var(--text-caption);
  cursor: pointer;
}
.map__retry {
  inset: auto auto 2.5rem 50%;
  transform: translateX(-50%);
}
.map__reset {
  inset: 1rem auto auto 1rem;
}
.map__pin {
  inline-size: 1.5rem;
  block-size: 2rem;
  color: var(--map-area-line);
  filter: drop-shadow(0 2px 3px #0003);
  pointer-events: none;
}
.map .maplibregl-ctrl-group {
  border: var(--frame);
  border-radius: 0;
  background: var(--paper);
  box-shadow: none;
}
.map .maplibregl-ctrl-group button {
  inline-size: 2.75rem;
  block-size: 2.75rem;
}
.map .maplibregl-ctrl-group button + button {
  border-block-start: var(--frame);
}
.map .maplibregl-ctrl-attrib {
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  color: var(--ink-soft);
  font-size: 0.6875rem;
  & a {
    color: inherit;
  }
}
.map__footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  margin-block-start: var(--caption-gap);
  font-size: var(--text-caption);
  font-style: italic;
  color: var(--ink-soft);
}
.site-plan {
  display: flex;
  flex-direction: column;
  min-inline-size: 0;
  margin: 0;
  background: var(--paper);
  & img {
    inline-size: 100%;
    aspect-ratio: 1.1;
    object-fit: contain;
    padding: 1.5rem;
    mix-blend-mode: multiply;
  }
  & figcaption {
    margin: 0;
    padding: 0 1.5rem 1.25rem;
    text-align: center;
  }
}

/* Interest: the invitation on the left, the form on paper to the right,
   raised so it starts above the heading line. */
.interest {
  display: grid;
  grid-template-columns: var(--grid);
  column-gap: var(--col-gap);
  align-items: start;
  & .interest__head {
    grid-column: 1 / 7;
    max-inline-size: var(--measure-text);
  }
  & .interest-form {
    grid-column: 8 / 13;
    margin-block-start: var(--head-offset);
  }
}
@media (min-width: 62.51rem) {
  .interest .interest-form {
    position: sticky;
    inset-block-start: var(--sticky-top);
  }
}
.interest-form {
  padding: clamp(1.75rem, 4vw, 3rem);
  border: var(--frame);
  background: var(--paper);
  & legend {
    inline-size: 100%;
    margin-block-end: 1.75rem;
    font-size: var(--text-label);
    font-weight: 500;
    letter-spacing: var(--tracking-label);
    text-transform: uppercase;
    color: var(--caramel-deep);
  }
}
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
.field {
  margin-block-end: 1.5rem;
  & label {
    display: block;
    font-size: var(--text-small);
  }
  & label span {
    color: var(--ink-soft);
    font-style: italic;
  }
  & :is(input, select) {
    display: block;
    inline-size: 100%;
    min-block-size: var(--field-height);
    padding: 0.5rem 0;
    border: 0;
    border-block-end: 1px solid var(--line-strong);
    border-radius: 0;
    background: transparent;
  }
  & :is(input, select):focus-visible {
    outline: 0;
    border-block-end: 2px solid var(--caramel-deep);
  }
}
.field--checkbox {
  display: flex;
  align-items: start;
  gap: 0.75rem;
  margin-block: 2rem;
  & input {
    flex: none;
    inline-size: 1.125rem;
    min-block-size: 0;
    block-size: 1.125rem;
    margin: 0.3rem 0 0;
    accent-color: var(--ink);
  }
}
.form-note {
  margin-block-start: 1rem;
  font-size: var(--text-caption);
  font-style: italic;
  text-align: center;
  color: var(--ink-soft);
}

/* How the sale works: a quiet aside under the invitation, set off by a
   hairline, the heading in italic like a brochure margin note. */
.sale-note {
  margin-block-start: calc(var(--stack) * 1.5);
  padding-block-start: var(--stack);
  border-block-start: var(--frame);
  font-size: var(--text-small);
  & h3 {
    margin-block-end: 0.75rem;
    font-size: 1.25rem;
    font-style: italic;
    font-weight: 400;
    color: var(--caramel-deep);
  }
  & p + p {
    margin-block-start: 0.75rem;
  }
}

/* ------------------------------------------------------------------ */
/* Footer: centred, the full logo with the gate.                       */
/* ------------------------------------------------------------------ */
.site-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: var(--block-space) var(--gutter) 2rem;
  background: var(--dark);
  color: var(--on-dark);
  text-align: center;
  & :is(a, button):focus-visible {
    outline-color: var(--caramel);
  }
  & .rule {
    margin-block: 2.5rem 2rem;
  }
}
.site-footer__brand img {
  inline-size: auto;
  block-size: 9rem;
}
.site-footer__tagline {
  margin-block-start: 1.75rem;
  font-size: 1.375rem;
  font-style: italic;
  color: var(--on-dark-soft);
}
.site-footer__logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1.5rem 3rem;
  margin-block-start: 1.5rem;
  & img {
    object-fit: contain;
    filter: grayscale(1) invert(1);
    mix-blend-mode: screen;
  }
  & a {
    display: block;
  }
}
.site-footer__dejong {
  inline-size: 11rem;
}
.site-footer__abc {
  inline-size: 6.75rem;
}
.site-footer__meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  inline-size: 100%;
  margin-block-start: var(--block-space);
  padding-block-start: 1.5rem;
  border-block-start: 1px solid color-mix(in srgb, var(--on-dark) 22%, transparent);
  font-size: var(--text-caption);
  color: var(--on-dark-soft);
  & a {
    color: var(--on-dark);
    font-style: italic;
  }
}
@media (hover: hover) and (pointer: fine) {
  .site-footer__meta a:hover {
    text-decoration: underline;
    text-underline-offset: 0.3em;
  }
}

/* ------------------------------------------------------------------ */
/* Thank-you page                                                      */
/* ------------------------------------------------------------------ */
.thanks {
  display: grid;
  grid-template-columns: var(--grid);
  column-gap: var(--col-gap);
  align-items: center;
  padding: var(--block-space) var(--gutter) var(--section-space);
  & .thanks__text {
    grid-column: 1 / 7;
  }
  & .label + h1 {
    margin-block-start: 1.25rem;
  }
  & h1 {
    font-size: clamp(3rem, 5.6vw, 5.25rem);
  }
  & .rule {
    margin-block: 1.75rem;
  }
  & .lead + p {
    margin-block-start: 1rem;
  }
  & .actions {
    justify-content: start;
  }
  & .thanks__image {
    grid-column: 8 / 13;
    text-align: center;
  }
  & .thanks__image img {
    inline-size: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    object-position: 45% center;
  }
}

/* ------------------------------------------------------------------ */
/* Accessibility helpers                                               */
/* ------------------------------------------------------------------ */
.visually-hidden {
  position: absolute !important;
  inline-size: 1px !important;
  block-size: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
.skip-link,
.map__skip {
  position: absolute;
  inset: 0.75rem auto auto 0.75rem;
  z-index: 20;
  padding: 0.75rem 1rem;
  background: var(--paper);
  color: var(--ink);
  transform: translateY(-200%);
}
.map__skip {
  z-index: 5;
}
.skip-link:focus,
.map__skip:focus {
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition: none !important;
  }
}

/* ------------------------------------------------------------------ */
/* Tablet                                                              */
/* ------------------------------------------------------------------ */
@media (max-width: 62.5rem) {
  .site-header__nav {
    gap: 1.5rem;
  }
  .hero__card {
    grid-column: 1 / 7;
  }
  .hero__image {
    grid-column: 7 / -1;
    margin-inline-start: 0;
  }
  .split .split__body {
    grid-column: 7 / 13;
  }
  .home .home__image {
    grid-column: 1 / 7;
  }
  .home .home__text {
    grid-column: 7 / 13;
  }
  .home--reverse .home__image {
    grid-column: 6 / -1;
  }
  .home--reverse .home__text {
    grid-column: 1 / 6;
  }
  .home--arch .home__image {
    grid-column: 1 / 6;
  }
  .place .site-plan {
    grid-column: 1 / 6;
  }
  .place .place__head {
    grid-column: 7 / 13;
  }
}

/* ------------------------------------------------------------------ */
/* Phone: one column, same rhythm.                                     */
/* ------------------------------------------------------------------ */
@media (max-width: 43.75rem) {
  :root {
    --gutter: 1.375rem;
    --gutter-vw: 1.375rem;
    --brand-height: 2.5rem; /* 40px */
  }
  .site-header {
    grid-template-columns: 1fr auto;
    gap: 1rem;
  }
  .site-header__nav {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: space-between;
    gap: 0.5rem;
    letter-spacing: 0.14em;
  }
  .site-header .button {
    min-block-size: 2.75rem;
    padding: 0.625rem 1rem;
    white-space: nowrap;
  }
  /* "Interesse" on a phone, so the logo keeps its full width beside it */
  .site-header .button__long {
    display: none;
  }
  .hero,
  .split,
  .story,
  .home,
  .place,
  .interest,
  .thanks {
    grid-template-columns: minmax(0, 1fr);
    row-gap: var(--block-space);
    & > * {
      grid-column: 1 / -1 !important;
      grid-row: auto !important;
    }
  }
  .split {
    row-gap: 0;
  }
  .home {
    row-gap: 2rem;
  }
  .hero {
    padding-inline-end: var(--gutter);
    row-gap: 2rem;
  }
  .hero__card {
    margin: 0;
    padding: 0;
  }
  .hero__image {
    margin-inline: var(--bleed);
    & > img {
      block-size: auto;
      aspect-ratio: 4 / 3;
    }
    & figcaption {
      padding-inline: var(--gutter-vw);
      text-align: start;
    }
  }
  .split .split__body,
  .home--reverse .home__text {
    padding-block: 0;
  }
  .interest .interest-form {
    margin-block-start: 0;
  }
  .split .head .lead {
    margin-block-end: 1rem;
  }
  .quote--closing {
    margin-inline-start: 0;
  }
  .facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 2rem;
  }
  .story .story__wide,
  .place .map {
    margin-block-start: 0;
  }
  .story .story__arch img,
  .home--arch .home__image img,
  .thanks .thanks__image img {
    aspect-ratio: 1;
  }
  .map__frame {
    block-size: 22rem;
  }
  .field-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .site-footer__brand img {
    block-size: 7rem;
  }
  .site-footer__meta {
    flex-direction: column;
    align-items: center;
  }
}

/* ------------------------------------------------------------------ */
/* Lightbox: a drawing large on the page (assets/js/lightbox.js)       */
/* ------------------------------------------------------------------ */
.is-zoomable {
  cursor: zoom-in;
}
.has-lightbox {
  overflow: hidden;
}
.lightbox {
  inline-size: 100vw;
  max-inline-size: none;
  block-size: 100dvh;
  max-block-size: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: #fff;
  color: var(--ink);
  &[open] {
    display: grid;
    grid-template-rows: auto 1fr auto;
  }
  &::backdrop {
    background: rgb(0 0 0 / 0.6);
  }
}
.lightbox__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding: 0.75rem clamp(1rem, 3vw, 2rem);
  border-block-end: 1px solid var(--line);
}
.lightbox__caption {
  margin: 0;
  font-size: 0.8125rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.lightbox__actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-inline-start: auto;
}
.lightbox__count {
  min-inline-size: 3.5rem;
  font-size: 0.875rem;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.lightbox__button {
  display: grid;
  place-items: center;
  inline-size: 2.75rem;
  block-size: 2.75rem;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 0;
  background: #fff;
  color: inherit;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  transition: border-color 180ms, background-color 180ms;
  &:focus-visible {
    outline: 2px solid var(--ink);
    outline-offset: 2px;
  }
}
.lightbox__close {
  margin-inline-start: 0.5rem;
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}
@media (hover: hover) and (pointer: fine) {
  .lightbox__button:hover {
    border-color: var(--ink);
  }
}
.lightbox__stage {
  display: grid;
  place-items: center;
  min-block-size: 0;
  padding: clamp(0.75rem, 3vw, 2.5rem);
  overflow: hidden;
  &.is-full {
    place-items: start;
    overflow: auto;
    & .lightbox__image {
      inline-size: auto;
      max-inline-size: none;
      max-block-size: none;
      cursor: zoom-out;
    }
  }
}
.lightbox__image {
  max-inline-size: 100%;
  max-block-size: 100%;
  object-fit: contain;
  cursor: zoom-in;
}
.lightbox__hint {
  margin: 0;
  padding: 0.5rem 1rem 0.75rem;
  font-size: 0.8125rem;
  text-align: center;
  color: var(--ink-soft);
}
@media (pointer: coarse) {
  .lightbox__hint {
    display: none;
  }
}
