@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-latin-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --charcoal-950: #140f0c;
  --charcoal-900: #1c1714;
  --charcoal-800: #2b231e;
  --charcoal-700: #3d332c;
  --charcoal-500: #6f625a;
  --charcoal-300: #c9bdb2;

  --cream-50: #fdfaf3;
  --cream-100: #f8f1e3;
  --cream-200: #efe3cc;

  --crust-700: #7a4316;
  --crust-600: #a0591f;
  --crust-500: #c47a33;
  --crust-200: #f1d7ae;

  --tomato-700: #9e2317;
  --tomato-600: #c2331f;
  --tomato-500: #e0492f;
  --tomato-100: #fbe0d8;

  --ember-500: #ea7a2c;

  --basil-700: #2f5a2d;
  --basil-100: #e1efdc;
  --amber-700: #8a5509;
  --amber-100: #fbeccc;
  --error-700: #a3201a;
  --error-100: #fde4e1;

  --font-head: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --radius: 12px;
  --radius-lg: 20px;
  --shadow-soft: 0 12px 32px -16px rgba(28, 23, 20, 0.35);
  --shadow-lift: 0 24px 48px -20px rgba(28, 23, 20, 0.45);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  font-weight: 400;
  color: var(--charcoal-900);
  background: var(--cream-100);
  -webkit-font-smoothing: antialiased;
}

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

h1,
h2,
h3 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.2;
  margin: 0;
  color: var(--charcoal-900);
}

p {
  margin: 0;
}

a {
  color: var(--tomato-700);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--tomato-600);
}

:focus-visible {
  outline: 3px solid var(--ember-500);
  outline-offset: 3px;
  border-radius: 4px;
}

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 96px 0;
}

.section-alt {
  background: var(--cream-50);
}

.section-dark {
  background: var(--charcoal-900);
  color: var(--cream-50);
}

.section-head {
  max-width: 640px;
  margin: 0 auto 56px;
  text-align: center;
}

.section-head h2 {
  font-size: clamp(32px, 4vw, 44px);
  margin-top: 16px;
}

.section-head p {
  margin-top: 16px;
  color: var(--charcoal-500);
  font-size: 18px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--tomato-700);
}

.section-dark .eyebrow {
  color: var(--crust-200);
}

.section-dark h2,
.section-dark h3 {
  color: var(--cream-50);
}

.section-dark .section-head p {
  color: var(--charcoal-300);
}

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

.icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 24px;
  border: 2px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease),
    transform 0.2s var(--ease), box-shadow 0.2s var(--ease), border-color 0.2s var(--ease);
}

.btn:active {
  transform: translateY(1px) scale(0.99);
}

.btn .icon {
  width: 18px;
  height: 18px;
  transition: transform 0.2s var(--ease);
}

.btn:hover .icon {
  transform: translateX(3px);
}

.btn-primary {
  background: var(--tomato-600);
  color: #ffffff;
  box-shadow: 0 10px 24px -12px rgba(194, 51, 31, 0.8);
}

.btn-primary:hover {
  background: var(--tomato-700);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 16px 28px -12px rgba(194, 51, 31, 0.9);
}

.btn-outline {
  background: transparent;
  color: var(--cream-50);
  border-color: rgba(253, 250, 243, 0.6);
}

.btn-outline:hover {
  background: var(--cream-50);
  color: var(--charcoal-900);
  border-color: var(--cream-50);
}

.btn-block {
  width: 100%;
}

.btn-small {
  min-height: 40px;
  padding: 8px 16px;
  font-size: 15px;
}

.tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--crust-200);
  color: var(--crust-700);
  font-size: 13px;
  font-weight: 600;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--charcoal-900);
  color: var(--cream-50);
  transition: box-shadow 0.3s var(--ease);
}

.site-header.is-scrolled {
  box-shadow: 0 8px 24px -12px rgba(0, 0, 0, 0.6);
}

.nav-bar {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--cream-50);
  text-decoration: none;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 19px;
  white-space: nowrap;
}

.brand:hover {
  color: var(--crust-200);
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--tomato-600);
  color: #ffffff;
  transition: transform 0.3s var(--ease);
}

.brand:hover .brand-mark {
  transform: rotate(-8deg) scale(1.05);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.site-nav a {
  color: var(--cream-100);
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  padding: 10px 14px;
  border-radius: 999px;
  position: relative;
  transition: color 0.2s var(--ease), background-color 0.2s var(--ease);
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--crust-200);
  background: rgba(253, 250, 243, 0.08);
}

.search {
  position: relative;
  display: flex;
  align-items: center;
  width: 240px;
  flex-shrink: 0;
}

.search .icon {
  position: absolute;
  left: 14px;
  width: 18px;
  height: 18px;
  color: var(--charcoal-500);
  pointer-events: none;
}

.search input {
  width: 100%;
  min-height: 42px;
  padding: 10px 16px 10px 42px;
  border: 1px solid rgba(253, 250, 243, 0.2);
  border-radius: 999px;
  background: rgba(253, 250, 243, 0.08);
  color: var(--cream-50);
  font: inherit;
  font-size: 15px;
  transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease), width 0.3s var(--ease);
}

.search input::placeholder {
  color: var(--charcoal-300);
}

.search input:focus {
  outline: none;
  border-color: var(--ember-500);
  background: rgba(253, 250, 243, 0.14);
}

.search input:focus-visible {
  outline: 3px solid var(--ember-500);
  outline-offset: 2px;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-left: auto;
  border: 1px solid rgba(253, 250, 243, 0.2);
  border-radius: 12px;
  background: transparent;
  color: var(--cream-50);
  cursor: pointer;
}

.nav-toggle .icon-close {
  display: none;
}

.nav-toggle[aria-expanded="true"] .icon-open {
  display: none;
}

.nav-toggle[aria-expanded="true"] .icon-close {
  display: block;
}

/* Hero */

.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: min(88vh, 760px);
  padding: 120px 0 96px;
  color: var(--cream-50);
  background: var(--charcoal-900);
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: hero-zoom 18s ease-out forwards;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    100deg,
    rgba(20, 15, 12, 0.94) 0%,
    rgba(20, 15, 12, 0.8) 45%,
    rgba(20, 15, 12, 0.35) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 680px;
}

.hero .eyebrow {
  color: var(--crust-200);
}

.hero h1 {
  color: var(--cream-50);
  font-size: clamp(40px, 6vw, 68px);
  margin-top: 16px;
  letter-spacing: -0.01em;
}

.hero-sub {
  margin-top: 24px;
  font-size: 19px;
  line-height: 1.5;
  color: #efe4d2;
  max-width: 600px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 40px;
}

.hero-actions .btn-outline {
  border-color: rgba(253, 250, 243, 0.45);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 48px;
  padding: 0;
  list-style: none;
  color: var(--crust-200);
  font-size: 14px;
  font-weight: 600;
}

.hero-meta li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

@keyframes hero-zoom {
  from {
    transform: scale(1.08);
  }
  to {
    transform: scale(1);
  }
}

/* Recipes */

.recipe-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.recipe-card {
  display: flex;
  flex-direction: column;
  background: var(--cream-50);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: box-shadow 0.3s var(--ease), transform 0.3s var(--ease);
}

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

.card-media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--charcoal-700);
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.recipe-card:hover .card-media img {
  transform: scale(1.06);
}

.card-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
  padding: 24px;
}

.card-body h3 {
  font-size: 22px;
}

.card-body p {
  color: var(--charcoal-500);
  font-size: 15px;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
  font-size: 14px;
  font-weight: 600;
  color: var(--charcoal-700);
}

.card-meta li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.card-meta .icon {
  width: 16px;
  height: 16px;
  color: var(--crust-600);
}

.card-body .btn {
  margin-top: auto;
}

.empty-state {
  margin-top: 32px;
  text-align: center;
  color: var(--charcoal-500);
}

.empty-state[hidden] {
  display: none;
}

/* Dough guide */

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  counter-reset: step;
}

.step-card {
  position: relative;
  padding: 32px 28px;
  background: var(--charcoal-800);
  border: 1px solid rgba(253, 250, 243, 0.08);
  border-radius: var(--radius-lg);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease);
}

.step-card:hover {
  transform: translateY(-4px);
  border-color: rgba(234, 122, 44, 0.6);
}

.step-number {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 20px;
  border-radius: 14px;
  background: var(--ember-500);
  color: var(--charcoal-950);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 22px;
}

.step-card h3 {
  color: var(--cream-50);
  font-size: 22px;
  margin-bottom: 12px;
}

.step-card p {
  color: var(--charcoal-300);
  font-size: 15px;
}

.heat-guide {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
  align-items: center;
  margin-top: 80px;
}

.heat-guide h3 {
  font-size: clamp(28px, 3vw, 36px);
  margin: 16px 0 16px;
  color: var(--cream-50);
}

.heat-guide p {
  color: var(--charcoal-300);
}

.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  background: var(--cream-50);
  box-shadow: var(--shadow-soft);
}

.heat-table {
  width: 100%;
  border-collapse: collapse;
  color: var(--charcoal-900);
  font-size: 15px;
}

.heat-table th,
.heat-table td {
  padding: 16px 20px;
  text-align: left;
  border-bottom: 1px solid var(--cream-200);
}

.heat-table th {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 16px;
  background: var(--cream-200);
}

.heat-table tbody tr:last-child td {
  border-bottom: 0;
}

.heat-table tbody tr {
  transition: background-color 0.2s var(--ease);
}

.heat-table tbody tr:hover {
  background: var(--cream-100);
}

/* Styles */

.styles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.style-card {
  padding: 36px 32px;
  background: var(--cream-100);
  border-radius: var(--radius-lg);
  border-top: 6px solid var(--tomato-600);
  box-shadow: var(--shadow-soft);
  transition: transform 0.3s var(--ease);
}

.style-card:nth-child(2) {
  border-top-color: var(--ember-500);
}

.style-card:nth-child(3) {
  border-top-color: var(--crust-600);
}

.style-card:hover {
  transform: translateY(-4px);
}

.style-card h3 {
  font-size: 26px;
  margin: 16px 0 12px;
}

.style-card p {
  color: var(--charcoal-500);
}

.style-card ul {
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.style-card li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 8px 0;
  font-size: 15px;
  color: var(--charcoal-700);
  border-top: 1px solid var(--cream-200);
}

.style-card li .icon {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  color: var(--basil-700);
}

/* Heritage */

.heritage-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.heritage-media {
  position: relative;
}

.heritage-media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lift);
}

.heritage-media::before {
  content: "";
  position: absolute;
  inset: -16px -16px 16px 16px;
  border: 2px solid var(--crust-500);
  border-radius: var(--radius-lg);
  z-index: -1;
}

.heritage-copy h2 {
  font-size: clamp(32px, 4vw, 44px);
  margin: 16px 0 24px;
}

.heritage-copy > p {
  color: var(--charcoal-500);
  font-size: 18px;
  margin-bottom: 16px;
}

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

.pillars li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 20px;
  background: var(--cream-50);
  border-radius: var(--radius);
  box-shadow: 0 1px 0 rgba(28, 23, 20, 0.06);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.pillars li:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-soft);
}

.pillar-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 12px;
  background: var(--tomato-100);
  color: var(--tomato-700);
}

.pillars h3 {
  font-size: 18px;
  margin-bottom: 4px;
}

.pillars p {
  font-size: 15px;
  color: var(--charcoal-500);
}

/* Contact */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.company-card,
.newsletter-card {
  padding: 40px;
  border-radius: var(--radius-lg);
}

.company-card {
  background: var(--charcoal-900);
  color: var(--cream-50);
  box-shadow: var(--shadow-lift);
}

.company-card h2,
.newsletter-card h2 {
  font-size: 32px;
  margin: 16px 0 8px;
}

.company-card h2 {
  color: var(--cream-50);
}

.company-card .lede {
  color: var(--charcoal-300);
  margin-bottom: 32px;
}

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

.info-list li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.info-list .icon-wrap {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 12px;
  background: rgba(234, 122, 44, 0.16);
  color: var(--crust-200);
}

.info-list strong {
  display: block;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--crust-200);
  margin-bottom: 4px;
  font-weight: 600;
}

.info-list span,
.info-list a {
  color: var(--cream-50);
  font-size: 16px;
  line-height: 1.5;
}

.info-list a {
  text-decoration: none;
  border-bottom: 1px solid rgba(253, 250, 243, 0.3);
}

.info-list a:hover {
  color: var(--crust-200);
  border-color: var(--crust-200);
}

.newsletter-card {
  background: var(--cream-50);
  box-shadow: var(--shadow-soft);
}

.newsletter-card > p {
  color: var(--charcoal-500);
  margin-bottom: 28px;
}

.form-field {
  display: grid;
  gap: 8px;
  margin-bottom: 20px;
}

.form-field label {
  font-weight: 600;
  font-size: 15px;
}

.form-field input {
  min-height: 52px;
  padding: 12px 16px;
  border: 1.5px solid var(--cream-200);
  border-radius: var(--radius);
  background: #ffffff;
  color: var(--charcoal-900);
  font: inherit;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.form-field input:focus {
  outline: none;
  border-color: var(--ember-500);
  box-shadow: 0 0 0 4px rgba(234, 122, 44, 0.2);
}

.form-field input:invalid:not(:placeholder-shown) {
  border-color: var(--error-700);
}

.checkbox {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 24px;
  font-size: 14px;
  color: var(--charcoal-700);
}

.checkbox input {
  width: 20px;
  height: 20px;
  margin: 2px 0 0;
  accent-color: var(--tomato-600);
  flex-shrink: 0;
}

.form-status {
  margin-top: 16px;
  min-height: 24px;
  font-size: 15px;
  font-weight: 600;
}

.form-status.is-success {
  color: var(--basil-700);
}

.form-status.is-error {
  color: var(--error-700);
}

/* Footer */

.site-footer {
  background: var(--charcoal-950);
  color: var(--charcoal-300);
  padding: 56px 0 32px;
  font-size: 15px;
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(253, 250, 243, 0.1);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--cream-50);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 18px;
}

.footer-brand .brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 9px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links a {
  color: var(--charcoal-300);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}

.footer-links a:hover {
  color: var(--crust-200);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  padding-top: 24px;
  font-size: 14px;
}

.footer-bottom p {
  max-width: 720px;
}

/* Recipe dialog */

.recipe-dialog {
  width: min(720px, calc(100% - 32px));
  max-height: min(88vh, 900px);
  padding: 0;
  border: 0;
  border-radius: var(--radius-lg);
  background: var(--cream-50);
  color: var(--charcoal-900);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.6);
  overflow: hidden;
}

.recipe-dialog::backdrop {
  background: rgba(20, 15, 12, 0.72);
  backdrop-filter: blur(3px);
}

.recipe-dialog[open] {
  animation: dialog-in 0.35s var(--ease);
}

.recipe-dialog[open]::backdrop {
  animation: backdrop-in 0.3s ease;
}

.dialog-scroll {
  max-height: min(88vh, 900px);
  overflow-y: auto;
}

.dialog-image {
  width: 100%;
  aspect-ratio: 16 / 8;
  object-fit: cover;
}

.dialog-close {
  position: absolute;
  top: 16px;
  right: 16px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: var(--cream-50);
  color: var(--charcoal-900);
  cursor: pointer;
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s var(--ease), background-color 0.2s var(--ease);
}

.dialog-close:hover {
  transform: rotate(90deg);
  background: var(--tomato-100);
}

.dialog-head {
  position: relative;
}

.dialog-body {
  padding: 32px 36px 40px;
}

.dialog-body h2 {
  font-size: 34px;
  margin: 12px 0 16px;
}

.dialog-body h3 {
  font-size: 22px;
  margin: 32px 0 12px;
}

.dialog-body > p {
  color: var(--charcoal-500);
  font-size: 16px;
}

.meta-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.meta-list li {
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--cream-200);
  font-size: 14px;
  font-weight: 600;
  color: var(--charcoal-700);
}

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

.ingredient-list li {
  position: relative;
  padding: 10px 0 10px 28px;
  border-bottom: 1px dashed var(--cream-200);
  font-size: 15px;
}

.ingredient-list li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 19px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--tomato-600);
}

.step-list {
  margin: 0;
  padding: 0 0 0 24px;
  display: grid;
  gap: 14px;
  font-size: 15px;
}

.step-list li::marker {
  color: var(--tomato-700);
  font-weight: 600;
}

.tip {
  margin-top: 28px;
  padding: 16px 20px;
  border-left: 4px solid var(--ember-500);
  background: var(--amber-100);
  border-radius: var(--radius);
  color: var(--charcoal-900);
  font-size: 15px;
}

.tip strong {
  color: var(--amber-700);
}

@keyframes dialog-in {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes backdrop-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Legal pages */

.legal {
  padding: 72px 0 96px;
}

.legal-inner {
  max-width: 800px;
  margin: 0 auto;
  background: var(--cream-50);
  border-radius: var(--radius-lg);
  padding: 56px 56px 64px;
  box-shadow: var(--shadow-soft);
}

.legal h1 {
  font-size: clamp(36px, 5vw, 48px);
  margin: 12px 0 8px;
}

.legal .updated {
  color: var(--charcoal-500);
  font-size: 14px;
  margin-bottom: 40px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--cream-200);
}

.legal h2 {
  font-size: 24px;
  margin: 40px 0 12px;
}

.legal p,
.legal li {
  color: var(--charcoal-700);
  font-size: 16px;
}

.legal p + p,
.legal p + ul {
  margin-top: 12px;
}

.legal ul {
  padding-left: 22px;
  display: grid;
  gap: 8px;
}

.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  font-weight: 600;
  text-decoration: none;
  color: var(--tomato-700);
}

.legal-back .icon {
  transform: rotate(180deg);
  width: 18px;
  height: 18px;
}

/* Reveal on scroll */

.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

.js .recipe-card.reveal.is-visible {
  transition: opacity 0.8s var(--ease), transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.js .recipe-card.reveal.is-visible:hover {
  transform: translateY(-6px);
}

.js .reveal[data-delay="1"] {
  transition-delay: 0.1s;
}

.js .reveal[data-delay="2"] {
  transition-delay: 0.2s;
}

.js .reveal[data-delay="3"] {
  transition-delay: 0.3s;
}

/* Responsive */

@media (max-width: 1100px) {
  .recipe-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .search {
    width: 200px;
  }
}

@media (max-width: 960px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav-bar {
    flex-wrap: wrap;
    padding: 12px 0;
    gap: 12px;
  }

  .site-nav {
    display: none;
    order: 4;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    width: 100%;
    margin: 0;
    padding: 8px 0 16px;
    border-top: 1px solid rgba(253, 250, 243, 0.12);
  }

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

  .site-nav a {
    padding: 14px 16px;
    border-radius: 12px;
  }

  .search {
    order: 3;
    width: 100%;
  }

  .heat-guide,
  .heritage-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .steps-grid,
  .styles-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .heritage-media {
    max-width: 560px;
  }
}

@media (max-width: 640px) {
  .container {
    padding: 0 20px;
  }

  .section {
    padding: 72px 0;
  }

  .section-head {
    margin-bottom: 40px;
  }

  .hero {
    min-height: auto;
    padding: 96px 0 72px;
  }

  .hero-sub {
    font-size: 17px;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .recipe-grid,
  .steps-grid,
  .styles-grid {
    grid-template-columns: 1fr;
  }

  .company-card,
  .newsletter-card {
    padding: 28px;
  }

  .legal-inner {
    padding: 36px 24px 44px;
  }

  .dialog-body {
    padding: 24px 22px 32px;
  }

  .dialog-body h2 {
    font-size: 28px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}
