:root {
  --bg: #f6f1ea;
  --surface: #ffffff;
  --ink: #1a1a1a;
  --muted: #5e5a55;
  --accent: #b23a2e;
  --secondary: #d9c7b0;
  --serif: "Playfair Display", "Times New Roman", serif;
  --sans: "Karla", "Helvetica Neue", Arial, sans-serif;
  --pad: clamp(20px, 4vw, 56px);
  --rule: 1px solid var(--ink);
}

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

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

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

img, svg { display: block; max-width: 100%; }
h1, h2, h3, p, figure, dl, dd, ul, ol { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

.skip {
  position: absolute; left: var(--pad); top: -4rem;
  background: var(--ink); color: var(--bg); padding: .6rem 1rem; z-index: 10;
}
.skip:focus { top: .5rem; }

.wrap { max-width: 1500px; margin: 0 auto; padding-inline: var(--pad); }

/* ---------- issue strip ---------- */
.strip {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline;
  gap: .25rem 1.5rem;
  padding-block: .9rem;
  border-bottom: var(--rule);
  font-size: .875rem; letter-spacing: .03em;
}
.strip ul { display: flex; flex-wrap: wrap; gap: .25rem 1.5rem; }
.strip .labels li:first-child { color: var(--accent); font-weight: 700; }
.strip nav a {
  text-decoration: none; padding-block: .35rem; display: inline-block;
  border-bottom: 1px solid transparent;
}
.strip nav a:hover { border-bottom-color: var(--accent); color: var(--accent); }

/* ---------- cover ---------- */
.masthead {
  font-family: var(--serif);
  line-height: .86;
  letter-spacing: -.025em;
  padding-block: clamp(1rem, 2.5vw, 2rem) clamp(.9rem, 2vw, 1.6rem);
  border-bottom: 4px solid var(--ink);
}
.masthead span { display: block; }
.masthead .place { font-weight: 900; font-size: 25vw; }
.masthead .trade { font-weight: 400; font-style: italic; font-size: 22vw; color: var(--accent); padding-bottom: .08em; }

.cover {
  display: grid; gap: 2rem;
  padding-block: 2rem clamp(3rem, 7vw, 6rem);
}
.cover h1 {
  font-family: var(--serif); font-weight: 400; font-style: italic;
  font-size: clamp(2.5rem, 11vw, 5.25rem);
  line-height: 1.02; letter-spacing: -.015em;
  text-wrap: balance;
}
.standfirst {
  margin-top: 1.25rem; max-width: 34ch;
  font-size: 1.1875rem; line-height: 1.5;
}
.btn {
  display: inline-flex; align-items: center; gap: .65rem;
  margin-top: 1.75rem;
  background: var(--ink); color: var(--bg);
  padding: 1rem 1.5rem;
  font-weight: 700; font-size: 1rem; letter-spacing: .02em;
  text-decoration: none;
  transition: background-color .2s;
}
.btn:hover { background: var(--accent); }
.btn svg { width: 1.15em; height: 1.15em; flex: none; }

.plate { background: var(--secondary); border: var(--rule); padding: 10px; }
.plate svg { width: 100%; height: auto; background: var(--bg); }
figure figcaption {
  margin-top: .6rem; font-size: .875rem; line-height: 1.45; color: var(--muted);
}
figure figcaption b { color: var(--ink); font-weight: 700; }

.contents { border-top: var(--rule); }
.contents p { padding-block: .7rem; font-size: .875rem; letter-spacing: .03em; color: var(--muted); }
.contents a {
  display: grid; grid-template-columns: 3.2rem 1fr; align-items: baseline;
  padding-block: .9rem; border-top: 1px solid var(--secondary);
  text-decoration: none;
}
.contents a:hover .t { color: var(--accent); }
.contents .n { font-family: var(--serif); font-style: italic; font-size: 1.5rem; color: var(--accent); }
.contents .t { font-family: var(--serif); font-weight: 700; font-size: 1.5rem; line-height: 1.15; }
.contents .d { grid-column: 2; font-size: .9375rem; color: var(--muted); }

/* ---------- pull quote band ---------- */
.band { background: var(--secondary); }
.band blockquote {
  margin: 0; padding-block: clamp(3.5rem, 9vw, 8rem);
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(2rem, 6.2vw, 5rem); line-height: 1.08; letter-spacing: -.02em;
  max-width: 17ch; text-wrap: balance;
}
.band blockquote::before {
  content: ""; display: block; width: 3.5rem; height: 4px; background: var(--accent);
  margin-bottom: 1.5rem;
}

/* ---------- numbered sections ---------- */
.feature { padding-block: clamp(3.5rem, 8vw, 7rem); display: grid; gap: 2rem; }
.feature + .feature { border-top: var(--rule); }
.feature header { display: flex; align-items: baseline; gap: 1rem; }
.feature .no {
  font-family: var(--serif); font-style: italic; font-size: clamp(3rem, 8vw, 5.5rem);
  line-height: .9; color: var(--accent);
}
.feature h2 {
  font-family: var(--serif); font-weight: 900;
  font-size: clamp(2rem, 5vw, 3.25rem); line-height: 1; letter-spacing: -.02em;
}
.lede {
  font-family: var(--serif); font-size: clamp(1.75rem, 4.4vw, 3.25rem);
  line-height: 1.12; letter-spacing: -.015em; max-width: 18ch; text-wrap: balance;
}
.copy { margin-top: 1.5rem; max-width: 56ch; }
.copy + .copy { margin-top: 1rem; }

.plates {
  margin-top: clamp(2.5rem, 6vw, 4.5rem);
  display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem 1rem;
}
.plates figure:first-child { grid-column: 1 / -1; }

.notes { margin-top: clamp(2.5rem, 6vw, 4.5rem); display: grid; gap: 0; }
.notes li { border-top: var(--rule); padding-block: 1.25rem 1.75rem; }
.notes h3 { font-family: var(--serif); font-weight: 700; font-style: italic; font-size: 1.5rem; line-height: 1.2; }
.notes p { margin-top: .5rem; max-width: 40ch; color: var(--muted); }

.visit-card { margin-top: 2.5rem; background: var(--surface); border: var(--rule); }
.visit-card div { padding: 1.1rem 1.25rem; border-top: 1px solid var(--secondary); }
.visit-card div:first-child { border-top: 0; }
.visit-card dt { font-size: .875rem; letter-spacing: .03em; color: var(--muted); }
.visit-card dd { font-family: var(--serif); font-size: 1.375rem; line-height: 1.25; overflow-wrap: anywhere; }
.visit-card dd a { text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: .18em; }
.visit-card dd a:hover { color: var(--accent); }
.visit-card small { display: block; font-family: var(--sans); font-size: .875rem; color: var(--muted); margin-top: .2rem; }

/* ---------- footer ---------- */
.foot { background: var(--ink); color: var(--bg); }
.foot .wrap { padding-block: clamp(2.5rem, 6vw, 4.5rem); display: grid; gap: 2rem; }
.foot .logo { font-family: var(--serif); font-size: clamp(2.25rem, 9vw, 4.5rem); line-height: 1; letter-spacing: -.02em; }
.foot .logo b { font-weight: 900; }
.foot .logo i { font-weight: 400; color: var(--secondary); }
.foot ul { display: grid; gap: .5rem; font-size: 1rem; }
.foot a { text-underline-offset: .2em; }
.foot a:hover { color: var(--secondary); }
.foot :focus-visible { outline-color: var(--secondary); }
.foot .small { font-size: .875rem; color: var(--secondary); }

/* ---------- wider screens ---------- */
@media (min-width: 760px) {
  body { font-size: 1.125rem; }
  .masthead span { display: inline; }
  .masthead .place, .masthead .trade { font-size: min(11.4vw, 176px); }
  .masthead { white-space: nowrap; }

  .cover { grid-template-columns: repeat(12, 1fr); column-gap: clamp(1.25rem, 2.5vw, 2.5rem); align-items: start; }
  .cover .lead { grid-column: 1 / span 7; }
  .cover .plate-fig { grid-column: 8 / span 5; grid-row: 1 / span 2; }
  .cover .contents { grid-column: 1 / span 6; align-self: end; }

  .feature { grid-template-columns: repeat(12, 1fr); column-gap: clamp(1.25rem, 2.5vw, 2.5rem); }
  .feature header { grid-column: 1 / span 4; flex-direction: column; gap: .5rem; position: sticky; top: 2rem; align-self: start; }
  .feature .body { grid-column: 5 / -1; }

  .plates { grid-template-columns: 5fr 4fr 3fr; align-items: start; gap: clamp(1.25rem, 2.5vw, 2.5rem); }
  .plates figure:first-child { grid-column: auto; }
  .plates figure:nth-child(2) { margin-top: 5rem; }
  .plates figure:nth-child(3) { margin-top: 1.5rem; }

  .notes { grid-template-columns: repeat(3, 1fr); column-gap: clamp(1.25rem, 2.5vw, 2.5rem); }

  .visit-card { display: grid; grid-template-columns: 1fr 1.4fr; max-width: 52rem; }
  .visit-card div:nth-child(2) { border-top: 0; border-left: 1px solid var(--secondary); }
  .visit-card div:nth-child(3) { grid-column: 1 / -1; }

  .foot .wrap { grid-template-columns: 1.3fr 1fr; align-items: end; }
}

@media (min-width: 1100px) {
  .cover .lead { grid-column: 1 / span 6; padding-top: 1rem; }
  .cover .plate-fig { grid-column: 7 / span 4; grid-row: 1; }
  .cover .contents { grid-column: 11 / span 2; align-self: start; }
  .cover .contents a { grid-template-columns: 1fr; }
  .cover .contents .d { grid-column: 1; }
  .band blockquote { margin-left: calc(100% / 12 * 4); }
}

/* ---------- one page-load moment: the cover is "printed" ---------- */
@media (prefers-reduced-motion: no-preference) {
  .masthead span { animation: rise .9s cubic-bezier(.2, .7, .2, 1) backwards; }
  .masthead .trade { animation-delay: .12s; }
  .masthead { animation: ruleIn 1s .3s ease-out backwards; }
  @keyframes rise { from { opacity: 0; transform: translateY(.18em); } }
  @keyframes ruleIn { from { border-bottom-color: transparent; } }
  .masthead span { display: inline-block; }
}
@media (prefers-reduced-motion: no-preference) and (max-width: 759px) {
  .masthead span { display: block; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
