:root {
  --bg: #f5ede1;
  --surface: #fbf6ee;
  --ink: #2a1c13;
  --muted: #6b5545;
  --accent: #a4471f;
  --rule: #e2d3bf;
  --shadow: rgb(60 30 10 / 0.35);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #17110d;
    --surface: #211912;
    --ink: #f2e7d8;
    --muted: #b9a58f;
    --accent: #e5875a;
    --rule: #3a2c21;
    --shadow: rgb(0 0 0 / 0.6);
  }
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  line-height: 1.6;
}

main {
  max-width: 960px;
  margin: 0 auto;
  padding: clamp(2.5rem, 7vw, 5rem) 1rem 5rem;
}

.masthead {
  text-align: center;
  margin-bottom: clamp(1.5rem, 4vw, 2.5rem);
}

h1 {
  margin: 0;
  font-size: clamp(2.75rem, 10vw, 6.5rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.frame {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.08), 0 16px 40px -16px var(--shadow);
}

.frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.recipe {
  margin-top: clamp(2.5rem, 7vw, 4rem);
}

h2 {
  margin: 0 0 1.5rem;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 400;
  line-height: 1.1;
  text-align: center;
}

.card {
  max-width: 640px;
  margin: 0 auto;
  padding: clamp(1.25rem, 4vw, 2rem);
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 12px;
}

h3 {
  margin: 0 0 1rem;
  color: var(--accent);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.ingredients {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ingredients li {
  display: flex;
  gap: 1rem;
  padding: 0.625rem 0;
  border-top: 1px solid var(--rule);
}

.ingredients li:first-child {
  padding-top: 0;
  border-top: 0;
}

.qty {
  flex: 0 0 5.5rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
