:root {
  color-scheme: light;
  --paper: #f7f1e4;
  --ink: #292e20;
  --soft-ink: #4d5140;
  --line: #c1b49b;
  --red: #963823;
  --serif: Baskerville, "Times New Roman", serif;
  --mono: "Courier New", monospace;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html { scroll-margin-top: 1rem; }

body {
  margin: 0;
  border-top: 5px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  font: 1.2rem/1.5 var(--serif);
}

a { color: inherit; text-underline-offset: .18em; }
a:hover { color: var(--red); }

button, select {
  color: inherit;
  background: transparent;
  font: inherit;
}

button, select { cursor: pointer; }

:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 5px;
}

.spread {
  width: min(70rem, calc(100% - 4rem));
  margin-inline: auto;
}

.masthead,
.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .6rem 1.5rem;
  flex-wrap: wrap;
}

.masthead {
  padding: .85rem 0 .7rem;
  border-bottom: 3px double var(--ink);
}

.wordmark {
  font-size: 1.65rem;
  font-weight: 700;
  letter-spacing: -.04em;
  text-decoration: none;
}

.masthead nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .75rem 1.5rem;
}

.masthead nav, .footer, figcaption, .rubric, .filter, .index-list span {
  font: 700 .8rem/1.4 var(--mono);
}

.masthead button {
  padding: 0;
  border: 0;
  text-decoration: underline;
  text-underline-offset: .18em;
}

.masthead button:hover { color: var(--red); }

.front {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(14rem, .63fr);
  column-gap: clamp(1.75rem, 6vw, 5.2rem);
  align-items: center;
  padding-block: clamp(2rem, 5vw, 4.25rem);
}

.rubric {
  margin: 0;
  color: var(--red);
  letter-spacing: .11em;
  text-transform: uppercase;
}

h1, h2, h3, p, figure, ul, ol { margin: 0; }

h1 {
  margin: .18em 0 .23em;
  font-size: clamp(3.9rem, 8.15vw, 7.1rem);
  font-weight: 700;
  line-height: .84;
  letter-spacing: -.062em;
}

.lede {
  max-width: 30ch;
  font-size: clamp(1.25rem, 2vw, 1.65rem);
  line-height: 1.3;
  color: var(--soft-ink);
}

.start {
  display: inline-block;
  margin-top: 1.6rem;
  padding: .55rem .75rem;
  background: var(--ink);
  color: var(--paper);
  font: 700 .87rem/1.5 var(--mono);
  text-decoration: none;
}

.start span { margin-inline-start: .6rem; }
.start:hover { background: var(--red); color: var(--paper); }

.plate {
  align-self: start;
  padding: .5rem;
  border: 1px solid var(--line);
  background: #fcf8ef;
}

.plate img {
  display: block;
  width: 100%;
  height: clamp(20rem, 33vw, 27rem);
  object-fit: cover;
  object-position: center 68%;
  border: 1px solid var(--line);
}

figcaption {
  padding: .5rem .2rem .05rem;
  color: var(--soft-ink);
  font-weight: 400;
}

figcaption a { text-decoration-thickness: 1px; }

.index {
  border-block: 1px solid var(--ink);
  padding: 1.25rem 0 1.4rem;
  scroll-margin-top: 1rem;
}

.index-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: .85rem 1.5rem;
  flex-wrap: wrap;
  margin-bottom: .85rem;
}

h2 {
  font-size: clamp(2.15rem, 4vw, 3.5rem);
  line-height: 1;
  letter-spacing: -.04em;
}

.filter {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .35rem .7rem;
}

.filter select {
  min-block-size: 2.4rem;
  padding: .25rem .35rem;
  border: 1px solid var(--line);
}

.index-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 2rem;
  padding: 0;
  list-style: none;
}

.index-list li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: .65rem;
  border-top: 1px solid var(--line);
  padding: .42rem 0;
}

.index-list span {
  color: var(--soft-ink);
  white-space: nowrap;
}

.index-list a {
  min-inline-size: 0;
  color: var(--red);
  text-decoration-thickness: 1px;
}

.recipe {
  border-bottom: 1px solid var(--line);
  padding: clamp(1.65rem, 4vw, 3.45rem) 0;
  scroll-margin-top: .9rem;
}

.recipe-header > h2 { margin: .2em 0 .22em; }
.recipe-header > p:last-child { color: var(--soft-ink); }

.recipe-columns {
  display: grid;
  grid-template-columns: minmax(12rem, .63fr) minmax(0, 1fr);
  gap: 1.35rem clamp(1.65rem, 5vw, 4rem);
  margin-top: 1.3rem;
}

.recipe-columns section {
  border-top: 1px solid var(--line);
  padding-top: .65rem;
}

.recipe h3 {
  color: var(--red);
  font: 700 .8rem/1.5 var(--mono);
  letter-spacing: .095em;
  text-transform: uppercase;
}

.recipe ul, .recipe ol { margin-top: .4rem; }
.recipe ul { padding: 0; list-style: none; }
.recipe ol { padding-inline-start: 1.25rem; }
.recipe ol li { max-width: 58ch; padding-inline-start: .3rem; }
.recipe li + li { margin-top: .25rem; }
.recipe ol li + li { margin-top: .55rem; }
.recipe ol li::marker { color: var(--red); font-weight: 700; }

.footer {
  padding-block: 1rem 1.65rem;
  color: var(--soft-ink);
}

.visually-hidden, .skip-link:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
}

.skip-link:focus {
  position: absolute;
  z-index: 1;
  top: 1rem;
  left: 1rem;
  padding: .5rem;
  background: var(--paper);
}

@media (max-width: 44rem) {
  .spread { width: calc(100% - 2.25rem); }
  .front, .recipe-columns, .index-list { grid-template-columns: minmax(0, 1fr); }

  .front {
    row-gap: 1.4rem;
    padding-block: 1.85rem;
  }

  h1 { font-size: clamp(3.4rem, 11.2vw, 5rem); }
  .plate img { height: clamp(12rem, 54vw, 23rem); }
}

@media (max-width: 23rem) {
  h1 { font-size: 3.1rem; }
  .masthead nav { gap: .6rem 1.1rem; }
}

@media print {
  body { border: 0; background: white; font-size: 11pt; }
  .spread { width: 100%; }
  .masthead, .front, .index, .footer, .skip-link { display: none; }
  .recipe { break-inside: avoid; padding: 1rem 0; }
  .recipe h2 { font-size: 22pt; }
  .recipe-columns { grid-template-columns: minmax(11rem, .63fr) minmax(0, 1fr); gap: 1rem; }
}
