@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: "Manrope";
  src: url("../fonts/manrope-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

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

:root {
  --cream: #f6efe1;
  --parchment: #ede2cb;
  --paper: #fbf7ef;
  --charcoal: #2a2522;
  --charcoal-soft: #5a524b;
  --terracotta: #b4532f;
  --terracotta-dark: #963f22;
  --terracotta-text: #a3462a;
  --terracotta-tint: #f3dfd3;
  --olive: #5b6b32;
  --olive-deep: #3f4a24;
  --olive-tint: #e4e8d4;
  --crust: #8b5a2b;
  --crust-tint: #efe1cc;
  --success: #3e6b3a;
  --warning: #9a6412;
  --error: #9b2c1f;
  --line: rgba(42, 37, 34, 0.14);
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 10px 30px rgba(42, 37, 34, 0.08);
  --shadow-lift: 0 18px 40px rgba(42, 37, 34, 0.16);
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Manrope", "Helvetica Neue", Arial, sans-serif;
  --header-h: 72px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

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

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

a {
  color: var(--terracotta-text);
  text-underline-offset: 3px;
}

a:hover {
  color: var(--terracotta-dark);
}

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

h1 {
  font-size: clamp(2.25rem, 5vw, 3.75rem);
}

h2 {
  font-size: clamp(1.75rem, 3.4vw, 2.5rem);
}

h3 {
  font-size: 1.25rem;
}

p {
  margin: 0 0 16px;
}

ul,
ol {
  margin: 0;
  padding: 0;
}

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

.container {
  width: min(1180px, 100% - 48px);
  margin-inline: auto;
}

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

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--paper);
  color: var(--charcoal);
  border-radius: var(--radius-sm);
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 16px;
}

.eyebrow {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--terracotta-text);
  margin-bottom: 16px;
}

.eyebrow-light {
  color: #f1d7b8;
}

.lead {
  font-size: clamp(1.0625rem, 1.6vw, 1.25rem);
  line-height: 1.5;
  max-width: 620px;
  color: inherit;
  opacity: 0.94;
}

.muted {
  color: var(--charcoal-soft);
}

/* Header */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--header-h);
  color: #fffaf1;
  background: linear-gradient(to bottom, rgba(20, 16, 14, 0.55), rgba(20, 16, 14, 0));
  transition: background-color 0.3s ease, box-shadow 0.3s ease, color 0.3s ease;
}

.site-header.is-solid {
  color: var(--charcoal);
  background: rgba(246, 239, 225, 0.96);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 1px 0 var(--line);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
  flex-shrink: 0;
}

.brand:hover {
  color: inherit;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--terracotta);
  color: #fffaf1;
  transition: transform 0.4s ease;
}

.brand:hover .brand-mark {
  transform: rotate(45deg);
}

.brand-text {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.125rem;
  line-height: 1.1;
}

.brand-text em {
  display: block;
  font-style: italic;
  font-weight: 400;
  font-size: 0.9375rem;
  color: var(--terracotta-text);
}

.site-header:not(.is-solid) .brand-text em {
  color: #f6c9a8;
}

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

.site-nav a {
  position: relative;
  padding: 8px 12px;
  color: inherit;
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: 999px;
  transition: background-color 0.2s ease;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 4px;
  height: 2px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.site-nav a:hover {
  color: inherit;
}

.site-nav a:hover::after {
  transform: scaleX(1);
}

.search {
  position: relative;
  display: flex;
  align-items: center;
  margin-left: 12px;
}

.search svg {
  position: absolute;
  left: 12px;
  pointer-events: none;
  color: var(--charcoal-soft);
}

.search input {
  width: 200px;
  height: 40px;
  padding: 0 14px 0 36px;
  font: inherit;
  font-size: 0.9375rem;
  color: var(--charcoal);
  background: rgba(255, 250, 241, 0.92);
  border: 1px solid transparent;
  border-radius: 999px;
  transition: width 0.3s ease, box-shadow 0.2s ease;
}

.search input:focus {
  outline: none;
  width: 240px;
  box-shadow: 0 0 0 3px rgba(91, 107, 50, 0.45);
}

.search input::placeholder {
  color: #6b625a;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: inherit;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Buttons */

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

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

.btn-primary {
  background: var(--terracotta);
  color: #fffaf1;
  box-shadow: 0 8px 20px rgba(180, 83, 47, 0.3);
}

.btn-primary:hover {
  background: var(--terracotta-dark);
  color: #fffaf1;
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(180, 83, 47, 0.35);
}

.btn-ghost {
  background: transparent;
  color: inherit;
  border-color: currentColor;
}

.btn-ghost:hover {
  background: rgba(255, 250, 241, 0.14);
  color: inherit;
}

.site-header.is-solid .btn-ghost:hover,
.legal-body .btn-ghost:hover {
  background: var(--terracotta-tint);
}

.btn-small {
  min-height: 40px;
  padding: 8px 18px;
  font-size: 0.9375rem;
}

.btn-block {
  width: 100%;
}

.legal-body .btn-ghost {
  color: var(--charcoal);
}

/* Hero */

.hero {
  position: relative;
  min-height: min(100vh, 880px);
  display: flex;
  align-items: center;
  color: #fffaf1;
  padding: calc(var(--header-h) + 48px) 0 72px;
  overflow: hidden;
  isolation: isolate;
}

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

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: heroZoom 18s ease-out both;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(100deg, rgba(28, 20, 16, 0.86) 0%, rgba(28, 20, 16, 0.55) 55%, rgba(28, 20, 16, 0.25) 100%),
    linear-gradient(to top, rgba(28, 20, 16, 0.5), transparent 40%);
}

.hero-content {
  max-width: 860px;
}

.hero .eyebrow {
  color: #f6c9a8;
}

.hero h1 {
  color: #fffaf1;
  margin-bottom: 24px;
  animation: riseIn 0.9s ease both;
}

.hero .lead {
  animation: riseIn 0.9s 0.12s ease both;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 32px 0 48px;
  animation: riseIn 0.9s 0.24s ease both;
}

.hero-actions .btn-ghost {
  color: #fffaf1;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 40px;
  list-style: none;
  animation: riseIn 0.9s 0.36s ease both;
}

.hero-stats li {
  display: flex;
  flex-direction: column;
  padding-left: 16px;
  border-left: 2px solid var(--terracotta);
}

.hero-stats strong {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.75rem;
  line-height: 1.1;
}

.hero-stats span {
  font-size: 0.9375rem;
  color: #e8dccb;
}

@keyframes heroZoom {
  from { transform: scale(1.08); }
  to { transform: scale(1); }
}

@keyframes riseIn {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

/* Sections */

.section {
  padding: 104px 0;
}

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

.section-head p:last-child {
  color: var(--charcoal-soft);
  margin-bottom: 0;
}

.section-parchment {
  background: var(--parchment);
}

.section-olive {
  background: var(--olive-deep);
  color: #f6efe1;
}

.section-olive h2,
.section-olive h3 {
  color: #fffaf1;
}

.section-olive p {
  color: #e6e2cf;
}

.section-olive-deep {
  background: var(--olive-deep);
  color: #f6efe1;
}

.section-olive-deep h2 {
  color: #fffaf1;
}

.section-olive-deep p {
  color: #e6e2cf;
}

/* Recipes */

.filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 40px;
}

.chip {
  min-height: 40px;
  padding: 8px 18px;
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--charcoal);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.chip:hover {
  border-color: var(--terracotta);
  color: var(--terracotta-dark);
}

.chip.is-active {
  background: var(--olive-deep);
  border-color: var(--olive-deep);
  color: #fffaf1;
}

.recipe-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 28px;
}

.recipe-card {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  animation: riseIn 0.6s ease both;
}

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

.recipe-media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--crust-tint);
}

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

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

.recipe-tag {
  position: absolute;
  top: 16px;
  left: 16px;
  padding: 6px 12px;
  font-size: 0.8125rem;
  font-weight: 600;
  background: var(--paper);
  color: var(--charcoal);
  border-radius: 999px;
}

.recipe-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 24px;
}

.recipe-body h3 {
  margin-bottom: 8px;
}

.recipe-body > p {
  color: var(--charcoal-soft);
  font-size: 0.9375rem;
}

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

.recipe-meta li {
  padding: 4px 10px;
  font-size: 0.8125rem;
  font-weight: 600;
  background: var(--olive-tint);
  color: var(--olive-deep);
  border-radius: 999px;
}

.difficulty-Easy {
  background: #dfeedb !important;
  color: var(--success) !important;
}

.difficulty-Medium {
  background: #f6e7c4 !important;
  color: #7a4f0c !important;
}

.difficulty-Advanced {
  background: var(--terracotta-tint) !important;
  color: var(--error) !important;
}

.recipe-body .btn {
  margin-top: auto;
  width: 100%;
  min-height: 46px;
  color: var(--terracotta-text);
  border-color: var(--terracotta);
  background: transparent;
  cursor: pointer;
}

.recipe-body .btn:hover {
  background: var(--terracotta);
  color: #fffaf1;
}

.empty-state {
  text-align: center;
  color: var(--charcoal-soft);
  padding: 48px 0 0;
}

/* Split layout */

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

.split-media {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lift);
}

.split-media img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  transition: transform 0.8s ease;
}

.split-media:hover img {
  transform: scale(1.03);
}

.steps {
  list-style: none;
  counter-reset: none;
  margin-top: 32px;
  display: grid;
  gap: 24px;
}

.steps li {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 16px;
  align-items: start;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(246, 239, 225, 0.2);
}

.steps li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.steps h3 {
  color: #fffaf1;
  font-size: 1.125rem;
  margin-bottom: 4px;
}

.steps p {
  margin: 0;
  color: #e6e2cf;
}

.step-num {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--terracotta);
  color: #fffaf1;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.125rem;
}

/* Styles */

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

.style-card {
  padding: 32px 28px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.style-card:hover {
  transform: translateY(-4px);
  border-color: var(--olive);
}

.style-icon {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 20px;
  border-radius: 50%;
  background: var(--crust-tint);
  color: var(--crust);
  font-family: var(--font-display);
  font-weight: 600;
}

.style-card p {
  color: var(--charcoal-soft);
  margin: 0;
  font-size: 0.9375rem;
}

/* Heritage */

.principles {
  list-style: none;
  display: grid;
  gap: 16px;
  margin-top: 24px;
}

.principles li {
  position: relative;
  padding-left: 32px;
}

.principles li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--olive);
  box-shadow: 0 0 0 4px var(--olive-tint);
}

.principles strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.125rem;
}

/* About + info card */

.about {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 64px;
  align-items: start;
}

.info-card {
  padding: 36px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.info-card h3 {
  font-size: 1.375rem;
  padding-bottom: 16px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.info-card dl {
  margin: 0;
  display: grid;
  gap: 16px;
}

.info-card dt {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--charcoal-soft);
}

.info-card dd {
  margin: 4px 0 0;
  font-size: 1rem;
}

.info-card dd a {
  color: var(--charcoal);
  text-decoration: none;
  border-bottom: 1px solid var(--terracotta);
}

.info-card dd a:hover {
  color: var(--terracotta-dark);
}

/* Contact */

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

.contact-direct {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin-top: 24px;
}

.contact-direct a {
  color: #fffaf1;
  font-weight: 600;
}

.contact-form {
  display: grid;
  gap: 20px;
  padding: 36px;
  background: var(--cream);
  color: var(--charcoal);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lift);
}

.field {
  display: grid;
  gap: 8px;
}

.field label,
.consent {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--charcoal);
}

.field input,
.field textarea {
  width: 100%;
  padding: 12px 16px;
  font: inherit;
  font-size: 1rem;
  color: var(--charcoal);
  background: var(--paper);
  border: 1px solid #b9ae9b;
  border-radius: var(--radius-sm);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field textarea {
  resize: vertical;
  min-height: 112px;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--olive);
  box-shadow: 0 0 0 3px rgba(91, 107, 50, 0.25);
}

.field input[aria-invalid="true"] {
  border-color: var(--error);
}

.consent {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-weight: 400;
}

.consent input {
  margin: 4px 0 0;
  width: 18px;
  height: 18px;
  accent-color: var(--olive);
  flex-shrink: 0;
}

.consent a {
  color: var(--terracotta-text);
}

.field-error {
  margin: 0;
  font-size: 0.875rem;
  color: var(--error);
}

.form-status {
  margin: 0;
  min-height: 24px;
  font-weight: 600;
  text-align: center;
  color: var(--success);
}

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

/* Footer */

.site-footer {
  background: var(--charcoal);
  color: #d9cfbd;
  padding: 56px 0 32px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 24px 48px;
  align-items: center;
}

.footer-brand p {
  margin: 12px 0 0;
  color: #bdb2a0;
  font-size: 0.9375rem;
}

.site-footer .brand-text {
  color: #fffaf1;
}

.site-footer .brand-text em {
  color: #f0b890;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: flex-end;
}

.footer-nav a {
  color: #efe6d6;
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.footer-nav a:hover {
  color: #fffaf1;
  border-color: #f0b890;
}

.copyright {
  grid-column: 1 / -1;
  margin: 24px 0 0;
  padding-top: 24px;
  border-top: 1px solid rgba(217, 207, 189, 0.18);
  font-size: 0.875rem;
  color: #bdb2a0;
}

/* Modal */

.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 24px;
}

.modal[hidden] {
  display: none;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(28, 22, 18, 0.66);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  animation: fadeIn 0.25s ease both;
}

.modal-panel {
  position: relative;
  width: min(760px, 100%);
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  background: var(--paper);
  border-radius: var(--radius);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
  animation: modalIn 0.35s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

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

.modal-close:hover {
  background: var(--terracotta-tint);
  transform: rotate(90deg);
}

.modal-body {
  padding: 0 40px 40px;
}

.modal-hero {
  margin: 0 -40px 28px;
  aspect-ratio: 16 / 8;
  overflow: hidden;
  border-radius: var(--radius) var(--radius) 0 0;
}

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

.modal-body h2 {
  font-size: 2rem;
  margin-bottom: 12px;
}

.modal-body .recipe-meta {
  margin-bottom: 32px;
}

.modal-columns {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 40px;
}

.modal-columns h3 {
  font-size: 1.125rem;
  padding-bottom: 12px;
  margin-bottom: 16px;
  border-bottom: 2px solid var(--terracotta);
}

.ingredients {
  list-style: none;
  display: grid;
  gap: 10px;
}

.ingredients li {
  padding-left: 22px;
  position: relative;
}

.ingredients li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--olive);
}

.method {
  list-style: none;
  counter-reset: method;
  display: grid;
  gap: 16px;
}

.method li {
  counter-increment: method;
  position: relative;
  padding-left: 40px;
}

.method li::before {
  content: counter(method);
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--crust-tint);
  color: var(--crust);
  font-weight: 600;
  font-size: 0.875rem;
}

.modal-note {
  margin-top: 28px;
  padding: 16px 20px;
  background: var(--olive-tint);
  border-radius: var(--radius-sm);
  color: var(--olive-deep);
  font-size: 0.9375rem;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

/* Legal pages */

.legal-body {
  background: var(--cream);
}

.legal {
  padding: calc(var(--header-h) + 64px) 0 96px;
  min-height: 80vh;
}

.legal-inner {
  max-width: 760px;
}

.legal h1 {
  margin-bottom: 8px;
}

.legal-updated {
  color: var(--charcoal-soft);
  font-size: 0.9375rem;
  margin-bottom: 40px;
}

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

.legal p {
  color: var(--charcoal);
}

.legal-body .site-footer {
  margin-top: 0;
}

/* Responsive */

@media (max-width: 1080px) {
  .search input {
    width: 160px;
  }

  .search input:focus {
    width: 200px;
  }

  .site-nav a {
    padding: 8px 9px;
    font-size: 0.875rem;
  }

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

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

  .site-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 24px 24px;
    margin: 0;
    background: var(--cream);
    color: var(--charcoal);
    box-shadow: 0 16px 30px rgba(42, 37, 34, 0.12);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
  }

  .site-nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .site-nav a {
    padding: 16px 0;
    font-size: 1.0625rem;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
  }

  .site-nav a::after {
    display: none;
  }

  .search {
    margin: 16px 0 0;
  }

  .search input,
  .search input:focus {
    width: 100%;
    height: 48px;
    background: var(--paper);
    border: 1px solid #b9ae9b;
  }

  .split,
  .about,
  .contact {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .split-reverse .split-body {
    order: 0;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }

  .footer-nav {
    justify-content: flex-start;
  }

  .section {
    padding: 80px 0;
  }
}

@media (max-width: 640px) {
  :root {
    --header-h: 64px;
  }

  .container {
    width: min(100% - 32px, 1180px);
  }

  .brand-text {
    font-size: 1rem;
  }

  .brand-mark {
    width: 36px;
    height: 36px;
  }

  .hero {
    min-height: auto;
    padding-bottom: 56px;
  }

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

  .hero-stats {
    gap: 16px 28px;
  }

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

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

  .contact-form,
  .info-card {
    padding: 24px;
  }

  .modal-body {
    padding: 0 24px 28px;
  }

  .modal-hero {
    margin: 0 -24px 24px;
  }

  .modal-columns {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .modal-close {
    top: 12px;
    right: 12px;
  }

  .steps li {
    grid-template-columns: 44px 1fr;
  }

  .step-num {
    width: 44px;
    height: 44px;
    font-size: 1rem;
  }
}

@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;
  }
}
