:root {
  --bg: #fdf9f1;
  --bg-soft: #fffefb;
  --ink: #202127;
  --ink-muted: #525765;
  --accent: #ff6a3d;
  --accent-deep: #de4f28;
  --mint: #c7e7d4;
  --line: #e8dfd1;
  --shadow: 0 18px 40px rgba(69, 37, 19, 0.12);
}

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

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Outfit", "Avenir Next", "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% -10%, #ffe8cc 0%, transparent 30%),
    radial-gradient(circle at 85% 15%, #dff4e7 0%, transparent 28%),
    linear-gradient(180deg, #fefcf7 0%, #fcf7ee 100%);
  min-height: 100vh;
}

.backdrop {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(32, 33, 39, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(32, 33, 39, 0.035) 1px, transparent 1px);
  background-size: 38px 38px;
  mask-image: radial-gradient(circle at center, black 34%, transparent 100%);
  z-index: -1;
}

.shell {
  width: min(1120px, calc(100% - 2.5rem));
  margin: 0 auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.4rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--ink);
  text-decoration: none;
}

.brand-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 0.7rem;
  font-weight: 700;
  background: linear-gradient(140deg, #222935 0%, #4a5060 100%);
  color: #fff;
  letter-spacing: 0.04em;
}

.brand-text {
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.3rem;
}

.top-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.top-nav a {
  color: var(--ink);
  text-decoration: none;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  border: 1px solid transparent;
}

.top-nav a:hover {
  border-color: var(--line);
  background: var(--bg-soft);
}

.hero {
  padding: 4rem 0 2.8rem;
}

.kicker {
  text-transform: uppercase;
  letter-spacing: 0.13em;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--ink-muted);
  margin: 0 0 0.55rem;
}

h1,
h2,
h3 {
  font-family: "Fraunces", Georgia, serif;
  line-height: 1.08;
  margin-top: 0;
}

h1 {
  font-size: clamp(2.2rem, 5vw, 4.4rem);
  margin-bottom: 1rem;
  max-width: 11ch;
}

h2 {
  font-size: clamp(1.5rem, 3.2vw, 2.3rem);
  margin-bottom: 0.8rem;
}

h3 {
  font-size: clamp(1.2rem, 2.4vw, 1.55rem);
}

p,
li {
  line-height: 1.72;
  color: var(--ink);
}

.hero p {
  max-width: 60ch;
  color: var(--ink-muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.4rem;
}

.button {
  text-decoration: none;
  padding: 0.73rem 1.15rem;
  border-radius: 0.9rem;
  border: 1px solid var(--line);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.button.primary {
  border-color: var(--accent);
  background: linear-gradient(145deg, var(--accent) 0%, var(--accent-deep) 100%);
  color: #fff;
}

.button.ghost {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.65);
}

.featured {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 1.2rem;
  background: linear-gradient(130deg, #fff6ec 0%, #f3faef 100%);
  border: 1px solid var(--line);
  border-radius: 1.2rem;
  padding: 1.35rem;
  margin-bottom: 2.2rem;
}

.featured a,
.card a {
  text-decoration: none;
  color: var(--ink);
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 1rem;
}

.section-head a {
  color: var(--ink);
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.card {
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(2px);
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 1rem 1.05rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.card h2,
.card h3 {
  margin-bottom: 0.35rem;
}

.card p {
  margin: 0.3rem 0;
}

.card-date {
  font-size: 0.84rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.recipe-meta,
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.recipe-meta span,
.chips span {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  background: var(--bg-soft);
  border-radius: 999px;
  padding: 0.28rem 0.64rem;
  font-size: 0.85rem;
  color: var(--ink-muted);
}

.recipe-page {
  padding: 1.2rem 0 2.5rem;
}

.recipe-header h1 {
  max-width: 16ch;
}

.lead {
  max-width: 62ch;
  color: var(--ink-muted);
}

.recipe-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 1rem;
  margin-top: 1.2rem;
}

.recipe-aside {
  position: sticky;
  top: 1rem;
  align-self: start;
}

.panel {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 0.95rem 1rem;
  margin-bottom: 0.8rem;
}

.panel h2 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.prose {
  font-size: 1.03rem;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 1.2rem 1.25rem;
}

.prose h2,
.prose h3 {
  margin-top: 1.5rem;
}

.prose pre {
  background: #1b2028;
  color: #ecf0f7;
  padding: 1rem;
  overflow: auto;
  border-radius: 0.9rem;
}

.prose code {
  font-family: "SF Mono", "Menlo", "Consolas", monospace;
  font-size: 0.95em;
}

.page-top {
  margin: 2rem 0 1rem;
}

.muted {
  color: var(--ink-muted);
}

.site-footer {
  padding: 2.8rem 0 3.3rem;
}

.site-footer p {
  margin: 0.2rem 0;
}

.reveal {
  animation: rise 0.55s ease both;
}

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

@media (max-width: 980px) {
  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .recipe-layout {
    grid-template-columns: 1fr;
  }

  .recipe-aside {
    position: static;
  }

  .featured {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 660px) {
  .shell {
    width: min(1120px, calc(100% - 1.25rem));
  }

  .site-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .top-nav {
    width: 100%;
  }

  .cards {
    grid-template-columns: 1fr;
  }
}
