:root {
  --bg: #fff9f5;
  --surface: rgba(255, 255, 255, 0.92);
  --surface-strong: #ffffff;
  --ink: #172334;
  --muted: #5f6d82;
  --line: rgba(23, 35, 52, 0.1);
  --accent: #d65f61;
  --accent-deep: #9d4042;
  --accent-soft: #fff0ec;
  --shadow: 0 28px 80px rgba(20, 32, 51, 0.12);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --font-body: "Aptos", "Segoe UI", "Helvetica Neue", sans-serif;
  --font-display: "Georgia", "Times New Roman", serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(214, 95, 97, 0.18), transparent 24%),
    radial-gradient(circle at top right, rgba(255, 220, 188, 0.42), transparent 26%),
    linear-gradient(180deg, #fffaf7 0%, #fff6f1 46%, #fffdfb 100%);
}

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

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

.page-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0 80px;
  position: relative;
  z-index: 1;
}

.page-decor {
  position: fixed;
  inset: auto;
  width: 260px;
  height: 260px;
  border-radius: 999px;
  pointer-events: none;
  filter: blur(18px);
  opacity: 0.55;
}

.page-decor-left {
  top: 86px;
  left: -110px;
  background: rgba(214, 95, 97, 0.22);
}

.page-decor-right {
  top: 320px;
  right: -120px;
  background: rgba(255, 204, 168, 0.32);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  background: rgba(255, 249, 245, 0.86);
  border-bottom: 1px solid rgba(23, 35, 52, 0.06);
}

.topbar-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 16px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand-mark {
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent-deep);
}

.topbar-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  color: var(--muted);
  font-size: 0.95rem;
}

.topbar-nav a:hover,
.inline-link:hover,
.breadcrumb-link:hover,
.sidebar-list a:hover {
  color: var(--accent-deep);
}

.hero-card,
.hub-hero,
.content-card {
  border: 1px solid rgba(23, 35, 52, 0.08);
  background: var(--surface);
  box-shadow: var(--shadow);
  border-radius: var(--radius-xl);
}

.hero-card {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 28px;
  padding: 28px;
}

.hub-hero {
  padding: 34px;
}

.hero-copy,
.hub-hero-copy {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.chip-row,
.hub-stat-row,
.metric-grid,
.tag-row,
.summary-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--ink);
  background: rgba(23, 35, 52, 0.05);
}

.chip-accent {
  background: var(--accent-soft);
  color: var(--accent-deep);
}

.breadcrumb-link,
.inline-link {
  color: var(--accent-deep);
  font-weight: 700;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-display);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

h1 {
  font-size: clamp(2.2rem, 4vw, 4.4rem);
}

h2 {
  font-size: clamp(1.65rem, 2.4vw, 2.5rem);
}

.lead,
.content-card p,
.sidebar-card p,
.alpha-links a,
.featured-card span,
.related-card span {
  color: var(--muted);
  line-height: 1.8;
}

.metric-card,
.summary-pill,
.featured-card,
.related-card {
  border: 1px solid var(--line);
  background: var(--surface-strong);
  border-radius: var(--radius-md);
}

.metric-card {
  min-width: 170px;
  padding: 16px 18px;
}

.metric-card span {
  display: block;
  color: var(--muted);
  font-size: 0.92rem;
  margin-bottom: 6px;
}

.metric-card strong,
.summary-pill strong,
.featured-card strong,
.related-card strong {
  display: block;
  color: var(--ink);
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(214, 95, 97, 0.08);
  color: var(--accent-deep);
  font-size: 0.9rem;
  font-weight: 700;
}

.hero-media,
.hero-placeholder {
  min-height: 360px;
  border-radius: calc(var(--radius-xl) - 8px);
  overflow: hidden;
}

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

.hero-placeholder {
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 10px;
  color: white;
  background:
    linear-gradient(180deg, rgba(23, 35, 52, 0.1), rgba(23, 35, 52, 0.85)),
    radial-gradient(circle at top left, rgba(255, 221, 204, 0.7), transparent 32%),
    linear-gradient(135deg, var(--accent) 0%, #ef8f70 100%);
}

.hero-placeholder span,
.related-id,
.featured-card-id,
.alpha-id,
.alpha-count {
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.content-layout {
  display: grid;
  grid-template-columns: minmax(0, 280px) minmax(0, 1fr);
  gap: 24px;
  margin-top: 28px;
}

.sticky-column {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.sidebar-card {
  padding: 24px;
}

.sidebar-highlight {
  background:
    linear-gradient(180deg, rgba(214, 95, 97, 0.08), rgba(255, 255, 255, 0.96)),
    var(--surface-strong);
}

.eyebrow {
  margin: 0 0 10px;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-weight: 800;
  color: var(--accent-deep);
}

.sidebar-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 16px;
}

.sidebar-list li {
  display: grid;
  gap: 4px;
}

.sidebar-list span {
  color: var(--muted);
  font-size: 0.92rem;
}

.main-column {
  display: grid;
  gap: 22px;
}

.content-card {
  padding: 28px;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 18px;
  margin-bottom: 20px;
}

.detail-list,
.step-list {
  margin: 0;
  padding: 0;
}

.ingredient-list {
  list-style: none;
  display: grid;
  gap: 12px;
}

.ingredient-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(214, 95, 97, 0.05);
}

.ingredient-list li::before {
  content: "";
  width: 10px;
  height: 10px;
  flex: 0 0 auto;
  margin-top: 8px;
  border-radius: 999px;
  background: var(--accent);
}

.step-list {
  list-style: none;
  display: grid;
  gap: 18px;
}

.step-list li {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 16px;
  align-items: flex-start;
  padding: 18px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: var(--surface-strong);
}

.step-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 18px;
  font-weight: 800;
  color: white;
  background: linear-gradient(135deg, var(--accent) 0%, #ef8f70 100%);
}

.step-list p,
.note-card p,
.empty-state {
  margin: 0;
}

.video-shell {
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: #0b1220;
  aspect-ratio: 16 / 9;
}

.video-shell iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.related-grid,
.featured-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.related-card,
.featured-card {
  display: grid;
  gap: 8px;
  padding: 18px;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.related-card:hover,
.featured-card:hover,
.alpha-links a:hover {
  transform: translateY(-3px);
  border-color: rgba(214, 95, 97, 0.24);
  box-shadow: 0 18px 34px rgba(20, 32, 51, 0.08);
}

.summary-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
}

.summary-pill em {
  font-style: normal;
  color: var(--muted);
}

.alpha-section + .alpha-section {
  margin-top: 28px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.alpha-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.alpha-links a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--surface-strong);
}

.alpha-id {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 36px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent-deep);
}

.empty-state {
  color: var(--muted);
  padding: 18px;
  border-radius: 18px;
  background: rgba(23, 35, 52, 0.04);
}

@media (max-width: 980px) {
  .hero-card,
  .content-layout,
  .related-grid,
  .featured-grid,
  .alpha-links {
    grid-template-columns: 1fr;
  }

  .hero-media,
  .hero-placeholder {
    min-height: 280px;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 720px) {
  .page-shell {
    width: min(100% - 20px, 1180px);
    padding-top: 24px;
  }

  .topbar-inner {
    width: min(100% - 20px, 1180px);
    padding: 14px 0;
    align-items: flex-start;
    flex-direction: column;
  }

  .hero-card,
  .hub-hero,
  .content-card {
    padding: 20px;
    border-radius: 24px;
  }

  .metric-card {
    width: 100%;
  }

  .step-list li {
    grid-template-columns: 1fr;
  }

  .step-index {
    width: 44px;
    height: 44px;
    border-radius: 14px;
  }
}
