/* Antwerpen Limited — shared prototype styles.
   The only intentional page-to-page variable is --font-serif. */

:root {
  --paper: #f5f5e8;
  --ink: #1b1b16;
  --muted: #5c5a51;
  --faint: #8a877b;
  --rule: #d2d0c1;
  --font-serif: 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);
  --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;
  }
}

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

*,
*::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,
.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;
}

/* Header / nav */

.site-header {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  padding: 0.85rem var(--gutter) 0;
}

.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;
  flex-direction: column;
  align-items: flex-end;
  width: 100%;
  gap: 0;
  padding: 0.25rem 0 0.5rem;
}

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

.site-nav a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 0.1rem;
  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;
}

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

  .nav-toggle {
    display: none;
  }

  .site-nav,
  .nav-checkbox:checked ~ .site-nav {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 2.15rem;
    padding: 0.85rem 0 0.15rem;
  }

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

/* Prototype content */

.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 img {
  width: var(--logo);
  height: auto;
}

.lede {
  margin: 0;
  font-family: var(--font-serif);
  font-size: var(--lede);
  font-weight: 400;
  line-height: 1.45;
  letter-spacing: -0.012em;
}

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

.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 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: var(--body);
  font-weight: 400;
  line-height: 1.7;
}

.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);
}

.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;
}

.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);
}

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

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

.contact a {
  text-decoration: none;
}

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

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

.site-footer p {
  margin: 1rem 0 0;
}

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

.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 */

.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(--faint);
}

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

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