:root {
  --bg: #f7f1e8;
  --bg-soft: #fbf7f1;
  --surface: rgba(255, 252, 247, 0.9);
  --surface-strong: #fffaf3;
  --ink: #1f1c18;
  --muted: #625649;
  --line: rgba(49, 34, 19, 0.12);
  --accent: #a33026;
  --accent-dark: #7f221b;
  --olive: #475338;
  --olive-soft: #748264;
  --gold: #c99a54;
  --shadow: 0 24px 60px rgba(61, 39, 12, 0.12);
  --radius-lg: 30px;
  --radius-md: 20px;
  --radius-sm: 14px;
  --container: min(1180px, calc(100vw - 2rem));
  --transition: 260ms ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Manrope", "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(201, 154, 84, 0.14), transparent 22%),
    radial-gradient(circle at top right, rgba(163, 48, 38, 0.08), transparent 20%),
    linear-gradient(180deg, #f8f2e8 0%, #f3ecdf 48%, #efe7da 100%);
  line-height: 1.65;
}

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

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

button,
input,
textarea,
select {
  font: inherit;
}

main {
  overflow: hidden;
}

.container {
  width: var(--container);
  margin: 0 auto;
}

.section {
  padding: 5.5rem 0;
}

.section-tight {
  padding: 4rem 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--olive);
  font-weight: 800;
}

.eyebrow::before {
  content: "";
  width: 2rem;
  height: 1px;
  background: var(--gold);
}

h1,
h2,
h3,
h4 {
  margin: 0 0 1rem;
  font-family: "Cormorant Garamond", Georgia, serif;
  line-height: 1.02;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(3rem, 7vw, 5.5rem);
}

h2 {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
}

h3 {
  font-size: clamp(1.55rem, 3vw, 2rem);
}

p {
  margin: 0 0 1.1rem;
  color: var(--muted);
}

ul,
ol {
  padding-left: 1.2rem;
  color: var(--muted);
}

.lead {
  font-size: 1.1rem;
  max-width: 52rem;
}

.topbar {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(90deg, rgba(35, 33, 28, 0.96), rgba(53, 45, 35, 0.9));
  color: rgba(255, 247, 235, 0.82);
  font-size: 0.84rem;
}

.topbar-inner,
.site-header-inner,
.footer-grid {
  width: var(--container);
  margin: 0 auto;
}

.topbar-inner {
  padding: 0.8rem 0;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 241, 232, 0.84);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(80, 47, 18, 0.08);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.brand img {
  width: 54px;
  height: 54px;
}

.brand-mark {
  display: grid;
  gap: 0.2rem;
}

.brand-mark strong {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.7rem;
  line-height: 0.85;
}

.brand-mark span {
  color: var(--muted);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nav-toggle {
  display: none;
  border: 0;
  background: transparent;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  color: var(--ink);
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 99px;
  position: relative;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle span::before {
  top: -6px;
}

.nav-toggle span::after {
  top: 6px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.4rem;
}

.site-nav a {
  font-size: 0.96rem;
  font-weight: 700;
  color: #3a3128;
  position: relative;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.35rem;
  width: 100%;
  height: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
  background: linear-gradient(90deg, var(--accent), var(--gold));
}

.site-nav a:hover::after,
.site-nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.btn,
.button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  border-radius: 999px;
  padding: 0.95rem 1.4rem;
  font-weight: 800;
  transition:
    transform var(--transition),
    box-shadow var(--transition),
    background var(--transition),
    color var(--transition);
  cursor: pointer;
}

.btn:hover,
.button-link:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), #cb5a31);
  color: #fff7f0;
  border: 0;
  box-shadow: 0 16px 32px rgba(163, 48, 38, 0.22);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.6);
  color: var(--ink);
  border: 1px solid rgba(68, 45, 21, 0.1);
}

.hero {
  padding: 3.5rem 0 5.5rem;
  position: relative;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 3rem 0 auto;
  margin: auto;
  width: min(1100px, 92vw);
  height: 520px;
  background:
    radial-gradient(circle at 10% 25%, rgba(201, 154, 84, 0.18), transparent 28%),
    radial-gradient(circle at 88% 18%, rgba(163, 48, 38, 0.16), transparent 22%),
    linear-gradient(180deg, rgba(255, 251, 244, 0.72), rgba(255, 248, 239, 0.28));
  border-radius: 42px;
  z-index: -1;
}

.hero-grid,
.grid-2,
.grid-3,
.grid-4,
.content-grid,
.story-grid,
.forum-grid,
.recipe-layout,
.article-layout,
.contact-grid {
  display: grid;
  gap: 1.5rem;
}

.hero-grid {
  grid-template-columns: 1.15fr 0.95fr;
  align-items: center;
  gap: 2rem;
}

.hero-copy p {
  max-width: 40rem;
}

.hero-actions,
.cluster {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(255, 255, 255, 0.72);
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  color: var(--olive);
  font-weight: 700;
  margin-bottom: 1rem;
  box-shadow: 0 10px 26px rgba(91, 70, 49, 0.08);
}

.floating-panel,
.card,
.callout,
.panel {
  background: var(--surface);
  border: 1px solid rgba(73, 48, 23, 0.08);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.floating-panel {
  padding: 1.1rem;
}

.hero-media {
  position: relative;
}

.hero-media img,
.card-media img,
.feature-media img,
.page-hero-media img,
.article-cover img,
.thread-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: calc(var(--radius-lg) - 6px);
}

.hero-media .floating-panel {
  position: absolute;
  right: -1rem;
  bottom: -1rem;
  width: min(260px, 72%);
}

.metric-grid,
.grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.grid-3,
.forum-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-2,
.content-grid,
.story-grid,
.recipe-layout,
.article-layout,
.contact-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card,
.panel {
  overflow: hidden;
}

.card-body,
.panel-body {
  padding: 1.5rem;
}

.card:hover,
.panel:hover {
  transform: translateY(-4px);
  transition: transform var(--transition), box-shadow var(--transition);
  box-shadow: 0 28px 70px rgba(61, 39, 12, 0.15);
}

.tag-row,
.meta-row,
.inline-list {
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
}

.tag,
.meta-pill,
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: rgba(71, 83, 56, 0.1);
  color: var(--olive);
  font-size: 0.85rem;
  font-weight: 800;
}

.meta-pill {
  background: rgba(163, 48, 38, 0.08);
  color: var(--accent-dark);
}

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

.section-head p {
  max-width: 42rem;
}

.feature-card {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  overflow: hidden;
}

.feature-card .card-body {
  padding: 2rem;
}

.split-banner {
  background:
    linear-gradient(135deg, rgba(71, 83, 56, 0.96), rgba(49, 59, 42, 0.94)),
    url("../images/guides-flour-dusting.jpg") center/cover;
  color: #fdf8f0;
  border-radius: var(--radius-lg);
  padding: 2.4rem;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1.2rem;
  align-items: center;
  box-shadow: var(--shadow);
}

.split-banner p,
.split-banner li {
  color: rgba(255, 248, 240, 0.86);
}

.quote {
  padding: 1.4rem;
  border-left: 3px solid var(--gold);
  background: rgba(255, 255, 255, 0.5);
  border-radius: var(--radius-sm);
}

.newsletter {
  background:
    linear-gradient(135deg, rgba(163, 48, 38, 0.94), rgba(109, 39, 26, 0.95)),
    url("../images/article-white-pizza.jpg") center/cover;
  color: #fff7f1;
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.newsletter p {
  color: rgba(255, 244, 239, 0.84);
}

.newsletter-form,
.contact-form {
  display: grid;
  gap: 0.9rem;
}

.newsletter-row {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.input,
textarea,
select {
  width: 100%;
  border-radius: 16px;
  border: 1px solid rgba(81, 55, 26, 0.15);
  padding: 0.95rem 1rem;
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
}

textarea {
  min-height: 160px;
  resize: vertical;
}

.page-hero {
  padding: 2.5rem 0 3.5rem;
}

.page-hero-shell {
  display: grid;
  grid-template-columns: 1fr 0.95fr;
  gap: 1.5rem;
  align-items: stretch;
}

.page-hero-copy {
  padding: 2.4rem;
}

.page-hero-media {
  min-height: 380px;
}

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

.info-tile {
  padding: 1.2rem;
  background: rgba(255, 255, 255, 0.62);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(89, 58, 29, 0.08);
}

.recipe-layout {
  align-items: start;
}

.sticky-col {
  position: sticky;
  top: 7.6rem;
}

.checklist li,
.thread-post li {
  margin-bottom: 0.55rem;
}

.step-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1rem;
}

.step-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.9rem;
  align-items: start;
}

.step-num {
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #c05236);
  color: #fff6ef;
  display: grid;
  place-items: center;
  font-weight: 800;
}

.filter-bar {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 1.6rem;
}

.filter-btn {
  border: 1px solid rgba(68, 45, 21, 0.12);
  background: rgba(255, 255, 255, 0.66);
  color: var(--ink);
  padding: 0.75rem 1rem;
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
}

.filter-btn.is-active {
  background: var(--olive);
  color: #fbf6ef;
  border-color: var(--olive);
}

.recipe-card,
.forum-card,
.article-card {
  height: 100%;
}

.mini-author {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.mini-author img {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  object-fit: cover;
}

.thread-post {
  padding: 1.5rem;
}

.thread-post + .thread-post {
  margin-top: 1rem;
}

.thread-post header,
.forum-stats,
.legal-meta {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 0.85rem;
}

.avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
}

.media-inline {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.details-list {
  display: grid;
  gap: 1rem;
}

.details-list div {
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}

.details-list div:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.footer {
  background: #201b17;
  color: #f8f1e7;
  margin-top: 4rem;
}

.footer-grid {
  padding: 3.5rem 0 1.2rem;
  display: grid;
  grid-template-columns: 1.3fr 0.7fr 0.7fr 1fr;
  gap: 1.4rem;
}

.footer h3,
.footer h4 {
  color: #fff7ed;
}

.footer p,
.footer a,
.footer li,
.footer button {
  color: rgba(248, 241, 231, 0.76);
}

.footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.65rem;
}

.footer-bottom {
  width: var(--container);
  margin: 0 auto;
  padding: 1rem 0 1.6rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.text-link,
.footer button {
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
}

.cookie-banner,
.cookie-modal {
  position: fixed;
  z-index: 90;
}

.cookie-banner {
  right: 1rem;
  bottom: 1rem;
  width: min(460px, calc(100vw - 2rem));
  padding: 1.3rem;
}

.cookie-banner[hidden],
.cookie-modal[hidden] {
  display: none;
}

.cookie-modal {
  inset: 0;
  background: rgba(18, 12, 8, 0.56);
  display: grid;
  place-items: center;
  padding: 1rem;
}

.cookie-dialog {
  width: min(760px, 100%);
  max-height: calc(100vh - 2rem);
  overflow: auto;
  padding: 1.6rem;
}

.cookie-option {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}

.switch {
  width: 52px;
  height: 30px;
  border-radius: 999px;
  background: rgba(88, 68, 47, 0.18);
  position: relative;
}

.switch::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.12);
  transition: transform var(--transition);
}

input:checked + .switch {
  background: var(--olive);
}

input:checked + .switch::after {
  transform: translateX(22px);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 700ms ease, transform 700ms ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 960px) {
  .hero-grid,
  .page-hero-shell,
  .grid-2,
  .grid-3,
  .grid-4,
  .content-grid,
  .story-grid,
  .recipe-layout,
  .article-layout,
  .contact-grid,
  .feature-card,
  .split-banner,
  .footer-grid,
  .info-grid {
    grid-template-columns: 1fr;
  }

  .site-nav {
    position: absolute;
    inset: calc(100% + 1px) 1rem auto;
    background: rgba(253, 247, 239, 0.98);
    border: 1px solid rgba(80, 47, 18, 0.08);
    box-shadow: var(--shadow);
    border-radius: 24px;
    padding: 1rem;
    display: none;
    flex-direction: column;
    align-items: flex-start;
  }

  .site-header.is-open .site-nav {
    display: flex;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .header-actions .btn-secondary {
    display: none;
  }

  .hero-media .floating-panel {
    position: static;
    margin-top: 1rem;
    width: 100%;
  }

  .sticky-col {
    position: static;
  }
}

@media (max-width: 640px) {
  .section,
  .hero,
  .page-hero {
    padding-top: 2.5rem;
    padding-bottom: 3.5rem;
  }

  .site-header-inner,
  .topbar-inner {
    width: min(100vw - 1.2rem, var(--container));
  }

  .brand-mark strong {
    font-size: 1.4rem;
  }

  .hero::before {
    height: 440px;
  }

  .newsletter,
  .split-banner,
  .page-hero-copy {
    padding: 1.5rem;
  }
}
