﻿:root {
  color-scheme: light;
  --paper: #f8f3e8;
  --ink: #29332b;
  --green: #233e31;
  --muted: #525d50;
  --line: #cfcdb9;
  --serif: "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
  font: 1rem/1.6 system-ui, sans-serif;
  color: var(--ink);
  background: #e8e2d4;
}
* { box-sizing: border-box; }
body { margin: 0; }
.sheet {
  max-width: 1060px;
  margin: 2rem auto;
  padding: clamp(1.2rem, 5.5vw, 4.25rem);
  background: var(--paper);
  box-shadow: 0 12px 48px #37271916;
}
.masthead, footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .75rem;
}
.masthead { border-bottom: 1px solid var(--green); padding-bottom: .9rem; }
.brand, .edition, dt {
  margin: 0;
  font-size: .875rem;
  font-weight: 650;
  color: var(--green);
}
.brand, .edition { letter-spacing: .14em; }
.brand, button { display: flex; align-items: center; gap: .55rem; }
svg {
  width: 1.35rem;
  height: 1.35rem;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.45;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.hero {
  display: grid;
  grid-template-columns: 1.12fr 1fr;
  gap: clamp(1.3rem, 4vw, 3rem);
  align-items: center;
  margin: 2rem 0;
}
h1, h2 { font-family: var(--serif); color: var(--green); font-weight: 500; margin: 0; }
h1 { font-size: clamp(2.8rem, 6vw, 5.2rem); line-height: .99; letter-spacing: -.055em; }
h1 em { display: block; font-size: .78em; font-style: normal; line-height: 1.05; margin-top: .16em; }
p { margin: .55rem 0 0; }
.intro > p { margin-top: 1.3rem; max-width: 43ch; color: var(--muted); }
.photo {
  margin: 0;
  aspect-ratio: 1.08;
  overflow: hidden;
  border-radius: 45% 45% 1rem 1rem / 42% 42% 1rem 1rem;
  background: #e5d8c3;
}
.photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.facts { display: flex; flex-wrap: wrap; gap: .75rem 1.3rem; margin: 1.35rem 0 0; }
.facts > div { display: grid; grid-template-columns: auto 1fr; column-gap: .55rem; }
.facts svg { color: var(--green); grid-row: span 2; align-self: center; }
.facts dd { grid-column: 2; }
dd { margin: 0; font-size: .875rem; }
.recipe, .notes { display: grid; grid-template-columns: .86fr 1.14fr; gap: 1rem; }
.recipe section, .notes section { padding: clamp(1rem, 3vw, 1.65rem); border: 1px solid var(--line); border-radius: .75rem; }
.ingredients { background: #eeeee1; }
h2 { font-size: clamp(1.45rem, 3.5vw, 2rem); line-height: 1.15; letter-spacing: -.025em; }
ul, ol { margin: .95rem 0 0; padding: 0; }
ul { list-style: none; }
ul li { padding: .48rem 0; border-bottom: 1px solid var(--line); }
ul li:last-child { border: 0; }
ol { padding-left: 1.55rem; }
ol li { padding-left: .35rem; margin-bottom: .55rem; }
ol li:last-child { margin-bottom: 0; }
ol li::marker, strong { color: var(--green); font-weight: 650; }
.insight { display: flex; gap: .85rem; padding: clamp(1rem, 4vw, 2rem); margin: 1rem 0; background: var(--green); color: var(--paper); border-radius: .75rem; }
.insight h2 { color: inherit; }
.insight svg { margin-top: .2rem; }
.notes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.notes h2 { font-size: 1.55rem; }
a { color: inherit; text-underline-offset: .2em; }
footer { margin-top: 1.5rem; padding-top: .85rem; border-top: 1px solid var(--green); }
button { padding: .35rem .6rem; font: inherit; font-size: .875rem; color: var(--green); background: transparent; border: 1px solid var(--line); border-radius: .4rem; cursor: pointer; }
button[hidden] { display: none; }
button:hover { background: #eeeee1; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
@media (max-width: 700px) {
  .sheet { margin: 0 auto; }
  .hero, .recipe, .notes { grid-template-columns: 1fr; }
  .desktop-break { display: none; }
  .photo { width: 100%; max-width: 420px; justify-self: center; }
}
@media print {
  @page { size: A4; margin: 12mm; }
  :root { font-size: 10pt; background: white; }
  .sheet { max-width: none; margin: 0; padding: 0; box-shadow: none; background: white; }
  .hero { grid-template-columns: 1.1fr 1fr; margin: 1rem 0; }
  h1 { font-size: 35pt; }
  .photo { max-width: 220px; justify-self: end; }
  .recipe { grid-template-columns: .86fr 1.14fr; }
  .notes { grid-template-columns: 1fr 1fr; }
  .recipe section, .notes section, .insight { padding: .7rem; break-inside: avoid; }
  .insight { color: var(--green); background: white; border: 1px solid var(--green); }
  button { display: none; }
}
