:root {
  --fog: #e6eceb;
  --paper: #f4f7f6;
  --deep: #17323f;
  --deep-soft: #3d5562;
  --kelp: #4a5a2e;
  --urchin: #5e2f63;
  --sand: #b9a07e;
  --line: #c7d2d0;
  --measure: 38rem;
  --display: "Gloock", Georgia, serif;
  --body: "Literata", Georgia, serif;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--fog);
  color: var(--deep);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.7;
}

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

a { color: var(--urchin); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--urchin); outline-offset: 3px; border-radius: 2px; }

.wrap { width: min(72rem, 100% - 2rem); margin-inline: auto; }

/* Header */
.site-header { padding: 1.25rem 0; }
.site-header .wrap { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.brand { font-family: var(--display); font-size: 1.5rem; color: var(--deep); text-decoration: none; }
.site-nav { display: flex; gap: 1.5rem; }
.site-nav a { color: var(--deep-soft); text-decoration: none; font-size: 0.95rem; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--urchin); text-decoration: underline; }

/* Hero: title set large against a museum-style labelled photo */
.hero { display: grid; grid-template-columns: 1fr; gap: 2rem; padding: 2rem 0 4rem; align-items: end; }
@media (min-width: 52rem) { .hero { grid-template-columns: 5fr 7fr; gap: 3rem; } }

.hero h1 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(3.5rem, 11vw, 8.5rem);
  line-height: 0.9;
  letter-spacing: -0.02em;
  margin: 0 0 1.5rem;
  color: var(--deep);
}
.hero .lede { font-size: 1.2rem; line-height: 1.6; max-width: 26rem; margin: 0; color: var(--deep-soft); }

figure { margin: 0; }
.plate img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--line); }
.plate figcaption {
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  border-top: 2px solid var(--deep);
  padding-top: 0.5rem; margin-top: 0.75rem;
  font-size: 0.85rem; color: var(--deep-soft);
}
.plate figcaption strong { color: var(--deep); font-weight: 600; }

/* Long-form sections */
.notes { border-top: 1px solid var(--line); }
.note {
  display: grid; grid-template-columns: 1fr; gap: 1.5rem 3rem;
  padding: 3.5rem 0; border-bottom: 1px solid var(--line);
}
@media (min-width: 52rem) { .note { grid-template-columns: 4fr 7fr; } }
.note h2 { font-family: var(--display); font-weight: 400; font-size: clamp(1.9rem, 4vw, 2.6rem); line-height: 1.1; margin: 0; }
.note .body { max-width: var(--measure); }
.note .body p:first-child { margin-top: 0; }
.note .plate { margin-top: 1.5rem; }

/* The one bold element: urchin-purple fact band */
.fact {
  background: var(--urchin); color: var(--paper);
  padding: 4rem 0; margin: 0;
}
.fact p {
  font-family: var(--display);
  font-size: clamp(1.8rem, 4.5vw, 3.2rem);
  line-height: 1.15; margin: 0; max-width: 46rem;
}
.fact cite { display: block; margin-top: 1.25rem; font-family: var(--body); font-style: normal; font-size: 0.95rem; opacity: 0.85; }

/* Viewing guide */
.guide { padding: 4rem 0; }
.guide h2 { font-family: var(--display); font-weight: 400; font-size: clamp(1.9rem, 4vw, 2.6rem); margin: 0 0 1rem; }
.guide ul { max-width: var(--measure); padding-left: 1.2rem; }
.guide li { margin-bottom: 0.6rem; }
.guide li::marker { color: var(--kelp); }

/* Gallery */
.page-head { padding: 2.5rem 0 1.5rem; }
.page-head h1 { font-family: var(--display); font-weight: 400; font-size: clamp(2.6rem, 7vw, 4.5rem); line-height: 1; margin: 0 0 1rem; }
.page-head p { max-width: var(--measure); color: var(--deep-soft); margin: 0; }

.gallery { columns: 1; column-gap: 1.5rem; padding: 1.5rem 0 4rem; }
@media (min-width: 40rem) { .gallery { columns: 2; } }
@media (min-width: 64rem) { .gallery { columns: 3; } }
.gallery figure { break-inside: avoid; margin-bottom: 1.75rem; }
.gallery img { width: 100%; height: auto; background: var(--line); }
.gallery figcaption { font-size: 0.8rem; color: var(--deep-soft); margin-top: 0.4rem; line-height: 1.45; }

.prose { max-width: var(--measure); padding-bottom: 4rem; }
.prose h2 { font-family: var(--display); font-weight: 400; font-size: 1.8rem; margin: 2.5rem 0 0.5rem; }

/* Footer */
.site-footer { background: var(--deep); color: var(--fog); padding: 2.5rem 0; font-size: 0.9rem; }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.site-footer a { color: var(--fog); }

@media (prefers-reduced-motion: no-preference) {
  .hero h1 { animation: rise 900ms cubic-bezier(.2,.7,.2,1) both; }
  @keyframes rise { from { opacity: 0; transform: translateY(0.25em); } to { opacity: 1; transform: none; } }
}
