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

:root {
  --black: #1F2021;
  --white: #FFFFFF;
  --off-white: #F0EBE4;
  --muted: #9A9187;
  --amber: #C4873A;
  --border: rgba(255,255,255,0.12);
}

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

body {
  background: var(--black);
  color: var(--white);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  line-height: 1.6;
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }

img { display: block; max-width: 100%; height: auto; }

/* ── Site wrapper for fade transition ── */
#site-wrapper {
  opacity: 0;
  transition: opacity 0.3s ease;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ── Header ── */
#site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--black);
  border-bottom: 1px solid var(--border);
  padding: 0 1.25rem;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

#site-header .logo a {
  display: flex;
  align-items: center;
  gap: 0.625rem;
}

#site-header .logo img {
  height: 20px;
  width: auto;
  filter: brightness(0) invert(1);
}

#site-header nav {
  display: flex;
  gap: 1.5rem;
}

#site-header nav a {
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.2s;
}

#site-header nav a:hover { color: var(--white); }

/* ── Main content ── */
main { flex: 1; }

/* ── Hero ── */
.hero {
  position: relative;
  width: 100%;
  aspect-ratio: 4/5;
  overflow: hidden;
  background: #111;
}

@media (min-width: 600px) {
  .hero { aspect-ratio: 16/9; }
}

.hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(31,32,33,0.92) 0%, rgba(31,32,33,0.2) 60%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2rem 1.5rem;
}

@media (min-width: 600px) {
  .hero-overlay { padding: 3rem; }
}

.hero-label {
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 0.625rem;
}

.hero-title {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(2rem, 8vw, 4rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.hero-subtitle {
  margin-top: 0.5rem;
  font-size: 0.9375rem;
  color: rgba(255,255,255,0.7);
  font-style: italic;
}

.hero-meta {
  margin-top: 1rem;
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.hero-meta span {
  font-size: 0.8125rem;
  color: var(--muted);
  letter-spacing: 0.03em;
}

.hero-meta strong { color: var(--white); font-weight: 500; }

/* ── Recipe index (home) ── */
.recipe-grid {
  padding: 3rem 1.25rem;
  max-width: 900px;
  margin: 0 auto;
}

.section-label {
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 1.5rem;
}

.recipe-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border: 1px solid var(--border);
  overflow: hidden;
  transition: border-color 0.2s;
}

.recipe-card:hover { border-color: rgba(255,255,255,0.3); }

@media (min-width: 600px) {
  .recipe-card { grid-template-columns: 1fr 1fr; }
}

.recipe-card-image {
  aspect-ratio: 4/3;
  overflow: hidden;
}

.recipe-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.recipe-card:hover .recipe-card-image img { transform: scale(1.03); }

.recipe-card-body {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.75rem;
}

.recipe-card-category {
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber);
}

.recipe-card-title {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1.625rem;
  font-weight: 400;
  line-height: 1.2;
}

.recipe-card-desc {
  font-size: 0.9375rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.65;
}

.recipe-card-meta {
  display: flex;
  gap: 1.25rem;
  margin-top: 0.5rem;
  flex-wrap: wrap;
}

.recipe-card-meta span {
  font-size: 0.8rem;
  color: var(--muted);
}

.recipe-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
  font-size: 0.8125rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--white);
  border-bottom: 1px solid var(--amber);
  padding-bottom: 1px;
  width: fit-content;
  transition: color 0.2s;
}

/* ── Recipe page ── */
.recipe-page {
  max-width: 720px;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 4rem;
}

.recipe-intro {
  margin-bottom: 2.5rem;
}

.recipe-intro p {
  font-size: 1.0625rem;
  line-height: 1.75;
  color: rgba(255,255,255,0.8);
}

.recipe-intro p + p { margin-top: 1rem; }

/* ── Ingredients ── */
.ingredients-section {
  margin-bottom: 3rem;
  padding: 1.75rem;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.03);
}

.ingredients-section h2 {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1.125rem;
  font-weight: 400;
  margin-bottom: 1.5rem;
  letter-spacing: 0.01em;
}

.ingredient-group { margin-bottom: 1.5rem; }
.ingredient-group:last-child { margin-bottom: 0; }

.ingredient-group h3 {
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 0.75rem;
}

.ingredient-group ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.ingredient-group li {
  font-size: 0.9375rem;
  color: rgba(255,255,255,0.8);
  padding-left: 1rem;
  position: relative;
  line-height: 1.5;
}

.ingredient-group li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--muted);
  font-size: 0.75rem;
}

/* ── Steps ── */
.steps-section h2 {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1.125rem;
  font-weight: 400;
  margin-bottom: 2rem;
  letter-spacing: 0.01em;
}

.step {
  margin-bottom: 3rem;
}

.step-header {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 1rem;
}

.step-number {
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber);
  white-space: nowrap;
}

.step h3 {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1.25;
}

.step p {
  font-size: 0.9375rem;
  line-height: 1.75;
  color: rgba(255,255,255,0.78);
}

.step-photo {
  margin-top: 1.5rem;
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: #111;
}

.step-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.step-photo-pair {
  margin-top: 1.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.step-photo-pair .step-photo {
  margin-top: 0;
  aspect-ratio: 3/4;
}

.step-divider {
  width: 40px;
  height: 1px;
  background: var(--border);
  margin: 0 0 3rem 0;
}

/* ── Final shot ── */
.final-shot {
  margin: 3rem 0;
  width: 100%;
  aspect-ratio: 3/4;
  overflow: hidden;
  background: #111;
}

@media (min-width: 600px) {
  .final-shot { aspect-ratio: 16/10; }
}

.final-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.final-note {
  margin-top: 1.5rem;
  font-style: italic;
  font-size: 0.9375rem;
  color: var(--muted);
  line-height: 1.65;
}

/* ── Footer ── */
#site-footer {
  border-top: 1px solid var(--border);
  padding: 1.5rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

#site-footer .logo img { height: 16px; filter: brightness(0) invert(1); opacity: 0.4; }

#site-footer p {
  font-size: 0.75rem;
  color: var(--muted);
}
