/* Antwerpen Limited — Phase 2 site styles, built forward from Prototype A. */

:root {
  --paper: #f5f5e8;
  --ink: #1b1b16;
  --muted: #5c5a51;
  --faint: #8a877b;
  --rule: #d2d0c1;
  --font-serif: "Libre Baskerville", Georgia, "Times New Roman", serif;
  --font-sans: "Source Sans 3", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --measure: 38.75rem;
  --gutter: 1.35rem;
  --logo: min(13.75rem, 72vw);
  --logo-home: min(17.05rem, 78vw);
  --lede: clamp(1.18rem, 1.08rem + 0.55vw, 1.42rem);
  --body: clamp(1.05rem, 1rem + 0.28vw, 1.125rem);
  --heading: clamp(1.7rem, 1.42rem + 1vw, 2.15rem);
  --section-gap: clamp(2.4rem, 2rem + 2vw, 3.75rem);
}

@media (min-width: 768px) {
  :root {
    --gutter: 2.75rem;
    --logo: 15rem;
    --logo-home: 19rem;
  }
}

@media (min-width: 1200px) {
  :root {
    --gutter: 4.25rem;
    --logo: 16rem;
    --logo-home: 20.25rem;
  }
}

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

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

html,
body {
  margin: 0;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.5;
  font-synthesis: none;
}

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

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  text-decoration-color: color-mix(in srgb, currentColor 32%, transparent);
}

a:hover {
  text-decoration-color: currentColor;
}

a:focus-visible,
button:focus-visible,
.nav-toggle:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 0.75rem;
  top: -4rem;
  z-index: 20;
  padding: 0.5rem 0.75rem;
  background: var(--paper);
}

.skip:focus {
  top: 0.75rem;
}

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

.print-only {
  display: none;
}

/* Header / nav */

.site-header {
  position: relative;
  z-index: 8;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-end;
  padding: 0.85rem max(var(--gutter), env(safe-area-inset-right)) 0 max(var(--gutter), env(safe-area-inset-left));
}

.header-brand {
  display: none;
  align-items: flex-end;
  gap: 0.7rem;
  margin-right: auto;
  min-width: 0;
  max-width: calc(100% - 3.25rem);
  text-decoration: none;
}

.header-brand img {
  display: block;
  width: auto;
  height: 2.85rem;
  flex: 0 0 auto;
}

.header-wordmark {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.05rem;
  min-width: 0;
  padding-bottom: 0.02rem;
  font-family: var(--font-serif);
  line-height: 1;
  color: var(--ink);
}

.header-wordmark-antwerpen,
.header-wordmark-limited {
  display: block;
  white-space: nowrap;
}

.header-wordmark-antwerpen {
  font-size: 1.22rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.header-wordmark-limited {
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-indent: 0.04em;
  opacity: 0.92;
}

.header-brand:hover {
  text-decoration: none;
}

.header-brand:hover .header-wordmark-antwerpen,
.header-brand:hover .header-wordmark-limited {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.16em;
}

body:not(.home) .header-brand {
  display: flex;
}

@media (max-width: 360px) {
  .header-wordmark-antwerpen {
    font-size: 1.08rem;
  }

  .header-wordmark-limited {
    font-size: 0.64rem;
    letter-spacing: 0.18em;
  }
}

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

.nav-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  min-width: 44px;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  cursor: pointer;
}

.nav-checkbox:focus-visible + .nav-toggle {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.nav-toggle-bars {
  position: relative;
  display: block;
  width: 1.35rem;
  height: 0.7rem;
}

.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--ink);
}

.nav-toggle-bars::before {
  top: 0;
}

.nav-toggle-bars::after {
  bottom: 0;
  box-shadow: 0 -0.35rem 0 var(--ink);
}

.site-nav {
  display: none;
  position: absolute;
  top: 100%;
  right: max(var(--gutter), env(safe-area-inset-right));
  z-index: 20;
  flex-direction: column;
  align-items: stretch;
  width: max-content;
  min-width: 0;
  gap: 0;
  margin: 0;
  padding: 0.35rem 0.75rem;
  background: var(--paper);
  border: 1px solid var(--rule);
}

.nav-checkbox:checked ~ .site-nav {
  display: flex;
}

.site-nav a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0;
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-decoration: none;
}

.site-nav a:hover {
  text-decoration: underline;
}

.site-nav a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.28em;
  text-decoration-color: color-mix(in srgb, var(--ink) 42%, transparent);
}

@media (min-width: 768px) {
  .site-header {
    align-items: center;
    justify-content: center;
  }

  body:not(.home) .site-header {
    justify-content: space-between;
  }

  .header-brand {
    max-width: none;
    gap: 0.7rem;
  }

  .header-brand img {
    height: 3.15rem;
  }

  .header-wordmark-antwerpen {
    font-size: 1.38rem;
  }

  .header-wordmark-limited {
    font-size: 0.78rem;
  }

  .nav-toggle {
    display: none;
  }

  .site-nav,
  .nav-checkbox:checked ~ .site-nav {
    display: flex;
    position: static;
    top: auto;
    right: auto;
    z-index: auto;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    width: auto;
    min-width: 0;
    gap: 2.15rem;
    padding: 0.85rem 0 0.15rem;
    background: none;
    border: 0;
  }

  body:not(.home) .site-nav,
  body:not(.home) .nav-checkbox:checked ~ .site-nav {
    padding: 0.35rem 0;
  }

  .site-nav a {
    min-height: auto;
    padding: 0.35rem 0;
    font-size: 0.78rem;
    font-weight: 300;
    letter-spacing: 0.08em;
  }
}

/* Page content — Prototype A measure and type */

.page {
  width: min(var(--measure), calc(100% - (var(--gutter) * 2)));
  margin: 0 auto;
  padding: 1.75rem 0 3.5rem;
}

.brand {
  margin: 0 0 2.1rem;
  display: flex;
  justify-content: center;
}

.brand a {
  display: block;
  text-decoration: none;
}

.brand img {
  width: var(--logo);
  height: auto;
}

.brand-home {
  margin-bottom: 2.35rem;
}

.brand-home img {
  width: var(--logo-home);
}

.lede {
  margin: 0 auto;
  max-width: var(--measure);
  text-align: justify;
  text-align-last: left;
  hyphens: auto;
  font-family: var(--font-serif);
  font-size: var(--lede);
  font-weight: 400;
  line-height: 1.45;
  letter-spacing: -0.012em;
}

.page-title {
  margin: 0 0 1.6rem;
  font-family: var(--font-serif);
  font-size: var(--heading);
  font-weight: 400;
  line-height: 1.18;
  letter-spacing: -0.018em;
}

.section {
  margin-top: var(--section-gap);
}

.section:first-child {
  margin-top: 0;
}

.section h2 {
  margin: 0 0 0.9rem;
  font-family: var(--font-serif);
  font-size: var(--heading);
  font-weight: 400;
  line-height: 1.18;
  letter-spacing: -0.018em;
}

.section p,
.prose p {
  margin: 0;
  font-family: var(--font-serif);
  font-size: var(--body);
  font-weight: 400;
  line-height: 1.7;
}

/*
  Optical size for Libre Baskerville, carried from Prototype A:
  scale lede/body 0.965 and headings 0.95; raise line-height so
  absolute leading stays with the unscaled specimen.
*/
body.site .lede {
  font-size: calc(var(--lede) * 0.965);
  line-height: 1.5;
}

body.site .page-title,
body.site .section h2 {
  font-size: calc(var(--heading) * 0.95);
  line-height: 1.24;
}

body.site .section p,
body.site .prose p,
body.site .approach {
  font-size: calc(var(--body) * 0.965);
  line-height: 1.76;
}

.label {
  margin: 0 0 0.85rem;
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.caption,
figcaption {
  margin: 0.7rem 0 0;
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 400;
  line-height: 1.45;
  color: var(--muted);
}

.media {
  margin: 1.35rem 0 0;
}

.media img {
  width: 100%;
  height: auto;
}

.media-portrait {
  max-width: 19rem;
}

/* Neutral placeholders — geometry only, no stock or generated imagery */

.placeholder {
  position: relative;
  display: block;
  width: 100%;
  background:
    linear-gradient(#c4c2b2, #c4c2b2) center / 100% 1px no-repeat,
    #e7e6d4;
  border: 1px solid #c4c2b2;
}

.placeholder-landscape {
  aspect-ratio: 16 / 9;
}

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

.placeholder-map {
  aspect-ratio: 16 / 9;
}

@media (min-width: 768px) {
  .placeholder-map {
    aspect-ratio: 2.35 / 1;
  }
}

/*
  Reserved historic-map field. Later a client-supplied USGS / North
  Country map can be applied as a background-image (full-bleed or
  scroll-reveal). If that effect is unavailable, this static field
  remains the fallback. Do not source or fabricate a map.
*/
.map-stage {
  width: 100vw;
  margin: var(--section-gap) 0 0 calc(50% - 50vw);
}

.map-stage .placeholder {
  border-left: 0;
  border-right: 0;
}

.map-caption {
  width: min(var(--measure), calc(100% - (var(--gutter) * 2)));
  margin: 0.7rem auto 0;
}

.approach {
  margin: 0;
  padding: 0;
  list-style: none;
  font-family: var(--font-serif);
}

.approach li {
  margin: 0;
  padding: 0.85rem 0;
  border-top: 1px solid var(--rule);
}

.approach li:last-child {
  border-bottom: 1px solid var(--rule);
}

/* Contact letterhead */

.letterhead {
  margin: 0;
  font-style: normal;
}

.letterhead p {
  margin: 0 0 0.15rem;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.55;
  color: var(--ink);
}

.letterhead .org {
  margin-bottom: 0.85rem;
  font-family: var(--font-serif);
  font-size: calc(var(--body) * 1.05);
}

.letterhead a {
  text-decoration: none;
}

.letterhead a:hover {
  text-decoration: underline;
}

.print-trigger {
  display: inline-block;
  margin-top: 2.25rem;
  padding: 0.5rem 0.15rem;
  border: 0;
  border-bottom: 1px solid var(--rule);
  background: none;
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  cursor: pointer;
}

.print-trigger:hover {
  border-bottom-color: var(--ink);
}

/* Footer */

.site-footer {
  width: min(var(--measure), calc(100% - (var(--gutter) * 2)));
  margin: 0 auto;
  padding: 0 0 max(3rem, env(safe-area-inset-bottom));
  border-top: 1px solid var(--rule);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.55rem;
  margin: 1rem 0 0;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.footer-nav a {
  text-decoration: none;
}

.footer-nav a:hover,
.footer-nav a[aria-current="page"] {
  color: var(--ink);
  text-decoration: none;
}

.footer-identity {
  margin: 0.85rem 0 0;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.footer-identity p {
  margin: 0.2rem 0 0;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Archived prototype pages */

.captions .caption {
  margin: 0;
  padding: 0.85rem 0 0.95rem;
  border-top: 1px solid var(--rule);
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 400;
  line-height: 1.45;
  color: var(--muted);
}

.captions .caption + .caption {
  margin-top: 0;
}

.section.contact address {
  margin: 0;
  font-style: normal;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 400;
  line-height: 1.55;
  color: var(--ink);
}

.section.contact address p {
  margin: 0 0 0.85rem;
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
}

.section.contact address p:last-child {
  margin-bottom: 0;
}

.section.contact a {
  text-decoration: none;
}

.section.contact a:hover {
  text-decoration: underline;
}

.proto-meta,
.proto-switch {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.site-footer .proto-meta,
.site-footer .proto-switch {
  margin: 1rem 0 0;
}

.proto-switch {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 0.85rem;
}

.proto-switch a[aria-current="page"] {
  color: var(--ink);
  text-decoration: none;
}

/* Index chooser (archived) */

.chooser {
  width: min(34rem, calc(100% - (var(--gutter) * 2)));
  margin: 0 auto;
  padding: 2.25rem 0 4rem;
}

.chooser .brand {
  margin-bottom: 1.6rem;
}

.chooser .brand img {
  width: min(11.5rem, 62vw);
}

.chooser-kicker {
  margin: 0 0 0.35rem;
  text-align: center;
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.chooser h1 {
  margin: 0 0 0.75rem;
  text-align: center;
  font-family: var(--font-sans);
  font-size: clamp(1.35rem, 1.2rem + 0.7vw, 1.65rem);
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1.25;
}

.chooser-note {
  margin: 0 auto 2rem;
  max-width: 26rem;
  text-align: center;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--muted);
}

.choices {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--rule);
}

.choices a {
  display: flex;
  align-items: baseline;
  gap: 1.15rem;
  min-height: 56px;
  padding: 0.95rem 0.1rem;
  border-bottom: 1px solid var(--rule);
  text-decoration: none;
}

.choices a:hover .choice-name {
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.choice-key {
  flex: 0 0 1.4rem;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.choice-name {
  font-size: 1.15rem;
  letter-spacing: 0.01em;
}

.chooser-foot {
  margin-top: 2rem;
  text-align: center;
  font-size: 0.8rem;
  color: var(--muted);
}
