:root {
  --paper: #f7f3ea;
  --ink: #2a211e;
  --wine: #702b38;
  --deep-wine: #522331;
  --line: #bfb3a6;
  --serif: "Baskervville", "Baskerville", "Times New Roman", serif;
  --sans: "DM Sans", "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(1.2rem, 5.25vw, 6rem);
  font-family: var(--sans);
  font-size: 100%;
  color: var(--ink);
  background: var(--paper);
  -webkit-text-size-adjust: 100%;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; }
a:focus-visible, summary:focus-visible { outline: 3px solid #ba653c; outline-offset: 4px; }
.wrap { width: min(calc(100% - var(--gutter) * 2), 94rem); margin-inline: auto; }
.skip { position: absolute; left: 1rem; top: -6rem; z-index: 15; background: var(--ink); color: white; padding: 1rem; }
.skip:focus { top: 1rem; }
.masthead {
  display: flex;
  align-items: center;
  gap: clamp(.8rem, 2vw, 2rem);
  min-height: 5.5rem;
  border-bottom: 3px double var(--line);
}
.masthead-mark, .footer-brand { font-family: var(--serif); color: var(--wine); }
.masthead-mark {
  font-size: 2.45rem;
  text-decoration: none;
  letter-spacing: -.12em;
  line-height: 1;
  padding: .4rem .28rem .55rem 0;
}
.masthead-mark i { font-size: .76em; }
.journal-name {
  border-left: 1px solid var(--line);
  padding: .25rem 0 .25rem clamp(.8rem, 2vw, 1.7rem);
  font: italic 1.15rem/1.2 var(--serif);
}
.masthead-actions { display: flex; align-items: center; gap: clamp(1rem, 3vw, 3rem); margin-left: auto; }
.masthead-link, .footer a { text-decoration-thickness: 1px; text-underline-offset: .23em; font-size: .9rem; }
.masthead-link { padding: .9rem 0; text-decoration: none; }
.masthead-link:hover { text-decoration: underline; }
.cover {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  align-items: stretch;
  column-gap: clamp(1.4rem, 4.7vw, 5.2rem);
  padding-block: clamp(1.6rem, 3.8vw, 4.3rem);
}
.cover-copy { align-self: center; padding-block: clamp(.3rem, 2.1vw, 3rem); }
.kicker {
  margin: 0;
  font: 600 .77rem/1.45 var(--sans);
  letter-spacing: .135em;
  text-transform: uppercase;
}
.with-rule { display: flex; align-items: center; gap: .8rem; }
.with-rule::before { content: ""; width: 1.8rem; height: 1px; background: currentColor; }
.cover .kicker { color: var(--wine); }
h1, h2, h3, p { margin: 0; }
h1 {
  margin: clamp(1.2rem, 2.2vw, 2.4rem) 0 clamp(1.15rem, 2vw, 2.2rem);
  font: 400 clamp(4.25rem, 8.3vw, 9.45rem)/.99 var(--serif);
  letter-spacing: -.065em;
}
h1 span { display: block; white-space: nowrap; }
h1 i { font-size: .86em; font-weight: 400; color: var(--wine); }
.dek { max-width: 28rem; text-wrap: balance; font: 400 clamp(1.12rem, 1.55vw, 1.5rem)/1.32 var(--serif); }
.credit { margin-top: 1.15rem; font-size: .95rem; line-height: 1.55; color: #584a43; }
.credit strong { font-weight: 600; color: var(--ink); white-space: nowrap; }
.primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  margin-top: clamp(1.25rem, 2.2vw, 2.4rem);
  padding: .8rem 1.45rem;
  background: var(--wine);
  color: #fff9ed;
  font-size: .94rem;
  line-height: 1.25;
  font-weight: 600;
  text-decoration: none;
}
.primary:hover { background: #4c1b27; }
.cover-photo { position: relative; min-height: clamp(23rem, 34vw, 35.5rem); background: #b78779; }
.cover-photo img { position: absolute; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.notes { background: var(--deep-wine); color: #fff5e8; scroll-margin-top: .5rem; }
.notes-inner { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(2rem, 7vw, 7rem); padding-block: clamp(2.5rem, 5.6vw, 5.6rem); }
#notes-title { scroll-margin-top: 1.2rem; }
#notes-title:focus-visible { outline: 2px solid #f3ceaa; outline-offset: 5px; }
.notes .kicker { color: #edd0bc; }
.notes h2 { font: 400 clamp(3rem, 5.3vw, 6rem)/.98 var(--serif); letter-spacing: -.055em; margin: 1.1rem 0 .8rem; }
.notes-intro > p:last-child { font-size: 1.03rem; line-height: 1.55; max-width: 23rem; color: #f0dcd3; }
.pairings { border-top: 1px solid #a5797b; align-self: start; }
.pairing { border-bottom: 1px solid #a5797b; }
.pairing summary {
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  min-height: 4.5rem;
  padding: 1.05rem .1rem;
  list-style: none;
  font: 400 clamp(1.45rem, 2.25vw, 2.35rem)/1.1 var(--serif);
}
.pairing summary::-webkit-details-marker { display: none; }
.pairing summary:hover > span:first-child { text-decoration: underline; text-underline-offset: .19em; text-decoration-thickness: 1px; }
.toggle-icon { position: relative; flex: 0 0 1.9rem; width: 1.9rem; height: 1.9rem; border: 1px solid #a5797b; border-radius: 50%; }
.toggle-icon::before, .toggle-icon::after { content: ""; position: absolute; background: currentColor; inset: calc(50% - .5px) 27% auto; height: 1px; }
.toggle-icon::after { transform: rotate(90deg); }
.pairing[open] .toggle-icon::after { transform: none; }
.pairing-detail { padding: 0 2.8rem 1.4rem .1rem; }
.pairing-detail h3 { font: italic 1.4rem/1.2 var(--serif); color: #f3ceaa; margin-bottom: .45rem; }
.pairing-detail p { line-height: 1.55; max-width: 35rem; }
.footer { display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 6.4rem; }
.footer-brand { font-size: 1.8rem; letter-spacing: -.06em; }
.footer a { display: inline-flex; align-items: center; min-height: 2.75rem; }
@media (max-width: 48rem) {
  :root { --gutter: clamp(1.2rem, 5.2vw, 2.3rem); }
  .masthead { min-height: 4.6rem; }
  .cover { grid-template-columns: 1fr; gap: 1.8rem; }
  .cover-copy { padding: 0; }
  .cover-photo { min-height: 0; aspect-ratio: 1.5; }
  .notes-inner { gap: 1.7rem; }
}
@media (max-width: 40rem) {
  .masthead { gap: .8rem; min-height: 4.2rem; }
  .masthead-mark { font-size: 2.05rem; }
  .masthead-link { display: none; }
  .journal-name { padding-left: .8rem; font-size: 1rem; }
  .cover { gap: 1.65rem; padding-block: 1.95rem 1.6rem; }
  h1 { font-size: clamp(4.6rem, 15.7vw, 6.7rem); margin-block: 1.1rem 1.25rem; }
  .dek { max-width: 25rem; font-size: 1.18rem; }
  .credit { margin-top: .8rem; }
  .primary { margin-top: 1.1rem; }
  .notes-inner { grid-template-columns: 1fr; gap: 1.5rem; }
  .pairing summary { min-height: 4rem; }
  .footer { min-height: 5rem; }
}
@media (max-width: 22rem) {
  .journal-name { font-size: .92rem; padding-left: .55rem; }
  .masthead { gap: .55rem; }
}
