:root {
  --paper: #f3f1ec;
  --paper-2: #e6e2d8;
  --white: #fffcf7;
  --ink: #1a1d21;
  --ink-soft: #3c424a;
  --muted: #5c6370;
  --line: #d0cbc0;
  --pine: #1e3d36;
  --pine-2: #2f5a4e;
  --clay: #9c4228;
  --clay-2: #7d341f;
  --gold: #8d7040;
  --serif: "Source Serif 4", "Palatino Linotype", Palatino, serif;
  --sans: "Source Sans 3", "Segoe UI", sans-serif;
  --max: 1120px;
  --pad: 24px;
  --shadow: 0 1px 0 rgba(26, 29, 33, 0.04);
}

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

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
}

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

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

a:hover {
  color: var(--clay-2);
}

.skip {
  position: absolute;
  left: 12px;
  top: -48px;
  background: var(--ink);
  color: var(--white);
  padding: 8px 12px;
  z-index: 20;
}

.skip:focus {
  top: 12px;
}

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

.topbar {
  background: var(--pine);
  color: #f4f1ea;
  font-size: 0.875rem;
  letter-spacing: 0.02em;
}

.topbar .wrap {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 0;
}

.topbar a {
  color: #f4f1ea;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 252, 247, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  gap: 16px;
}

.brand {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.35rem;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.brand span {
  display: block;
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}

.nav-toggle {
  display: none;
  border: 1px solid var(--ink);
  background: transparent;
  min-height: 44px;
  padding: 0 14px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 18px;
}

.site-nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.98rem;
}

.site-nav a[aria-current="page"] {
  color: var(--ink);
  box-shadow: inset 0 -2px 0 var(--clay);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border: 2px solid var(--ink);
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.btn:hover {
  background: var(--ink);
  color: var(--white);
}

.btn-primary {
  background: var(--clay);
  border-color: var(--clay);
  color: #fffaf6;
}

.btn-primary:hover {
  background: var(--clay-2);
  border-color: var(--clay-2);
  color: white;
}

.site-nav .btn {
  min-height: 42px;
}

.hero {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: end;
  padding: 36px 0 28px;
}

.hero-copy {
  padding-bottom: 8px;
}

.kicker {
  margin: 0 0 12px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

h1 {
  margin: 0 0 16px;
  font-size: clamp(2.3rem, 4vw, 3.6rem);
}

h2 {
  margin: 0 0 12px;
  font-size: clamp(1.6rem, 2.4vw, 2.15rem);
}

h3 {
  margin: 0 0 8px;
  font-size: 1.25rem;
}

.lede {
  font-size: 1.15rem;
  color: var(--ink-soft);
  margin: 0 0 22px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
}

.text-link {
  font-weight: 700;
}

.frame {
  background: var(--paper-2);
  overflow: hidden;
}

.frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.frame-hero {
  aspect-ratio: 4 / 3;
  min-height: 280px;
}

.frame-card {
  aspect-ratio: 3 / 2;
}

.frame-wide {
  aspect-ratio: 16 / 8;
  margin: 8px 0 24px;
}

.frame-portrait {
  aspect-ratio: 4 / 5;
  max-width: 360px;
}

.section {
  padding: 56px 0;
  border-top: 1px solid var(--line);
}

.section-head {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 24px;
  margin-bottom: 28px;
}

.section-index {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 8px;
}

.grid-3,
.grid-2 {
  display: grid;
  gap: 22px;
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-2 {
  grid-template-columns: 1fr 1fr;
}

.card,
.panel {
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.card-body,
.panel {
  padding: 20px 20px 22px;
}

.card h3 a {
  color: var(--ink);
  text-decoration: none;
}

.card h3 a:hover {
  color: var(--clay-2);
}

.meta {
  color: var(--muted);
  font-size: 0.92rem;
  margin: 0 0 10px;
}

.card p:last-child,
.panel p:last-child {
  margin-bottom: 0;
}

.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 36px;
  align-items: center;
}

.facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line);
  background: var(--white);
  margin-top: 28px;
}

.facts div {
  padding: 16px 18px;
  border-right: 1px solid var(--line);
}

.facts div:last-child {
  border-right: 0;
}

.facts dt {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
}

.facts dd {
  margin: 6px 0 0;
  font-family: var(--serif);
  font-size: 1.25rem;
}

.nouns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 28px;
}

.nouns article h3 {
  font-family: var(--sans);
  font-size: 1rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
}

.steps li {
  position: relative;
  padding: 0 0 22px 64px;
}

.steps li::before {
  content: counter(step);
  counter-increment: step;
  position: absolute;
  left: 0;
  top: 0;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid var(--ink);
  font-family: var(--serif);
  background: var(--white);
}

.steps {
  counter-reset: step;
}

.quote {
  margin: 0;
  padding: 8px 0 8px 18px;
  border-left: 3px solid var(--clay);
}

.quote p {
  margin: 0 0 10px;
  font-family: var(--serif);
  font-size: 1.2rem;
  line-height: 1.45;
}

.quote footer {
  color: var(--muted);
  font-size: 0.95rem;
}

.band {
  background: var(--pine);
  color: #f6f3ec;
  padding: 42px 0;
}

.band h2,
.band a {
  color: #f6f3ec;
}

.band .btn-primary {
  background: var(--clay);
  border-color: var(--clay);
  color: white;
}

.prose {
  max-width: 74ch;
}

.prose h2 {
  margin-top: 1.6em;
}

.page-intro {
  padding: 42px 0 10px;
  max-width: 78ch;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  font-size: 0.98rem;
}

th,
td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

th {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  background: #f7f5f0;
}

.person {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 28px;
  align-items: start;
}

.shelf {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: shelf;
}

.shelf li {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.shelf li::before {
  counter-increment: shelf;
  content: counter(shelf, decimal-leading-zero);
  font-family: var(--serif);
  font-size: 1.4rem;
  color: var(--pine);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 18px;
}

.form-grid .full {
  grid-column: 1 / -1;
}

label {
  display: block;
  font-weight: 700;
  font-size: 0.92rem;
  margin-bottom: 6px;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #b7b2a6;
  background: white;
  color: var(--ink);
  font: inherit;
  padding: 12px 12px;
  border-radius: 0;
}

textarea {
  min-height: 140px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus,
button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--clay);
  outline-offset: 2px;
}

.field-error {
  min-height: 1.2em;
  margin: 4px 0 0;
  color: var(--clay-2);
  font-size: 0.92rem;
}

.form-error,
.island-error {
  background: #f8e8e2;
  border: 1px solid var(--clay);
  padding: 12px 14px;
  color: var(--clay-2);
}

.form-success {
  background: #e5efe9;
  border: 1px solid var(--pine);
  padding: 18px;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 28px;
  align-items: start;
  padding-bottom: 64px;
}

.address-block {
  font-size: 0.98rem;
  line-height: 1.5;
  word-break: break-word;
}

.site-footer {
  background: #171a1e;
  color: #e6e2d8;
  padding: 42px 0 28px;
  font-size: 0.95rem;
}

.site-footer a {
  color: #f4f1ea;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1.4fr 0.8fr;
  gap: 28px;
}

.site-footer h2 {
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #c4a15a;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links li {
  margin: 6px 0;
}

.legal-line {
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid #34383e;
  color: #b7b2a6;
  font-size: 0.88rem;
}

body.has-cookie-banner {
  padding-bottom: 140px;
}

.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 30;
  background: var(--white);
  border: 1px solid var(--ink);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  padding: 16px 18px;
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
}

.cookie-banner p {
  margin: 0;
  max-width: 70ch;
}

.cookie-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.cookie-actions .btn {
  min-width: 110px;
}

.check-list {
  margin: 0;
  padding-left: 1.1rem;
}

.check-list li + li {
  margin-top: 6px;
}

.story {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 22px 24px;
}

@media (max-width: 900px) {
  .hero,
  .split,
  .person,
  .contact-layout,
  .section-head,
  .footer-grid,
  .grid-3,
  .grid-2,
  .facts,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .facts div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
  }

  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    padding: 12px 20px 18px;
    gap: 10px;
  }

  .site-nav.is-open {
    display: flex;
  }

  .cookie-banner {
    flex-direction: column;
    align-items: stretch;
  }

  .header-row {
    position: relative;
  }
}

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