@keyframes fadein {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

:root {
  color-scheme: light;
  --paper: #FEFCF8;
  --ink: #2B2B2B;
  --muted: #666;
  --rule: #DDD6CC;
  --accent: #666;
}

* {
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
  font-size: 1rem;
  margin: 0;
  padding: 3rem 1.5rem;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: #9B9185;
  text-underline-offset: 0.12em;
}

a:hover {
  text-decoration-color: var(--ink);
}

img {
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
  -webkit-user-select: none;
}

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

h1 {
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.5;
  margin-bottom: 0.25rem;
}

h2 {
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.5;
  margin-bottom: 0.75rem;
}

h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
}

p,
li {
  margin-bottom: 0.75rem;
}

ol,
ul {
  padding-left: 1.2rem;
}

.container,
.guide-shell,
.recipe-shell {
  max-width: 650px;
  margin: 0 auto;
  animation: fadein 0.5s ease both;
}

.site-link {
  display: inline-block;
  margin-bottom: 1.5rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.deck {
  color: #4E4A45;
  font-size: 1rem;
  max-width: 620px;
}

.tagline {
  color: var(--muted);
  font-size: 0.92rem;
}

.recipe-hero {
  border-bottom: 1px solid var(--rule);
  padding-bottom: 1.5rem;
}

.recipe-header-image {
  display: block;
  height: auto;
  margin: 0 auto 1.25rem;
  max-width: min(100%, 420px);
}

.recipe-kicker {
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0;
  margin: 0 0 0.35rem;
  text-transform: uppercase;
}

.recipe-meta {
  color: var(--muted);
  font-size: 0.92rem;
  margin-bottom: 0;
}

.recipe-content {
  padding-top: 2rem;
}

.recipe-section {
  border-bottom: 1px solid var(--rule);
  margin-bottom: 1.65rem;
  padding-bottom: 1.65rem;
}

.recipe-section:last-child {
  border-bottom: 0;
}

.section-heading {
  margin-bottom: 1rem;
}

.recipe-note {
  color: var(--muted);
}

.recipe-list {
  display: grid;
  gap: 1rem;
  margin-top: 1.25rem;
}

.guide-list {
  margin-top: 1.25rem;
}

.guide-section {
  margin-bottom: 1.65rem;
}

.guide-section h2 {
  margin-bottom: 0.35rem;
}

.guide-items {
  list-style: none;
  padding-left: 0;
}

.guide-items li {
  margin-bottom: 0.45rem;
}

.recipe-card,
.empty-state {
  padding: 0.85rem 0;
}

.recipe-card h2,
.empty-state h2 {
  font-size: 1.25rem;
  margin-bottom: 0.35rem;
}

.footer-note {
  color: var(--muted);
  font-size: 0.92rem;
  margin-bottom: 0;
}

.ingredient-list {
  list-style: none;
  padding-left: 0;
}

.ingredient-list li {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: 4.25rem minmax(0, 1fr);
}

.ingredient-list strong {
  color: #B44C3F;
  font-weight: 700;
  text-align: right;
}

.method-list {
  padding-left: 0;
  list-style: none;
  counter-reset: method;
}

.method-list li {
  counter-increment: method;
  padding-left: 2rem;
  position: relative;
}

.method-list li::before {
  content: counter(method);
  color: #B8B1A8;
  font-weight: 500;
  left: 0;
  position: absolute;
}

@media (max-width: 720px) {
  body {
    padding: 2rem 1rem;
  }

}
