/* Moules Chaudes — self-hosted Open Sans (latin 400/600/700). See fonts/open-sans/. */
@font-face {
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: local("Open Sans Regular"), local("OpenSans-Regular"),
       url("/assets/fonts/open-sans/open-sans-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: local("Open Sans SemiBold"), local("OpenSans-SemiBold"),
       url("/assets/fonts/open-sans/open-sans-latin-600-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: local("Open Sans Bold"), local("OpenSans-Bold"),
       url("/assets/fonts/open-sans/open-sans-latin-700-normal.woff2") format("woff2");
}

:root {
  --navy: #152836;
  --navy-deep: #0f1d28;
  --cream: #f6f0e4;
  --paper: #fbf7ef;
  --ink: #24302a;
  --muted: #5c685f;
  --copper: #9a5a32;
  --copper-dark: #7a4626;
  --rule: #c4b49a;
  --card: #fffdf8;
  --focus: #c47a3a;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--ink);
  font-family: "Open Sans", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
}

h1, h2, h3, .brand-name, .tagline, .kicker {
  font-family: Georgia, "Palatino Linotype", Palatino, "Times New Roman", serif;
  font-weight: 400;
  line-height: 1.25;
  color: var(--navy);
}

h1 { font-size: clamp(2rem, 5vw, 3rem); margin: 0 0 0.4em; }
h2 { font-size: 1.7rem; margin: 1.6em 0 0.5em; }
h3 { font-size: 1.25rem; margin: 0 0 0.35em; }

p { margin: 0 0 1em; }
a { color: var(--copper-dark); }
a:hover { color: var(--copper); }

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

.skip {
  position: absolute;
  left: -999px;
}
.skip:focus {
  left: 8px;
  top: 8px;
  z-index: 20;
  background: #fff;
  padding: 8px 12px;
  color: var(--navy);
}

a:focus-visible, button:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.site-header {
  background: var(--navy);
  color: var(--cream);
  padding: 14px 20px;
}
.header-inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--cream);
  text-decoration: none;
}
.brand:hover { color: var(--cream); }
.brand svg { flex-shrink: 0; }
.brand-name {
  display: block;
  font-size: 1.45rem;
  color: var(--cream);
  letter-spacing: 0.02em;
}
.brand-sub {
  display: block;
  font-size: 0.75rem;
  font-style: italic;
  font-weight: 400;
  color: var(--rule);
  font-family: Georgia, "Palatino Linotype", Palatino, "Times New Roman", serif;
}
.site-header nav { display: flex; flex-wrap: wrap; gap: 4px 8px; }
.site-header nav a {
  color: var(--cream);
  text-decoration: none;
  padding: 8px 10px;
  font-size: 0.95rem;
}
.site-header nav a:hover,
.site-header nav a[aria-current="page"] {
  text-decoration: underline;
  text-underline-offset: 4px;
}

main {
  flex: 1;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  padding: 32px 20px 56px;
}

.kicker {
  color: var(--copper);
  font-style: italic;
  letter-spacing: 0.04em;
  margin: 0 0 0.4em;
  font-size: 1.05rem;
}
.lead { font-size: 1.15rem; }
.muted { color: var(--muted); }

.rule {
  border: 0;
  border-top: 1px solid var(--rule);
  margin: 2em 0;
}

.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin: 1.2em 0 2em;
}
@media (min-width: 640px) {
  .grid { grid-template-columns: 1fr 1fr 1fr; }
}

.card {
  background: var(--card);
  border: 1px solid var(--rule);
  padding: 18px 16px 16px;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  min-height: 100%;
}
.card:hover { border-color: var(--copper); }
.card h3 { color: var(--navy); }
.card h3 a, .card:hover h3 { color: var(--copper-dark); }
.card .meta { color: var(--muted); font-size: 0.88rem; margin: 0 0 0.6em; }
.card p:last-child { margin-bottom: 0; }
.card .more {
  margin-top: auto;
  padding-top: 12px;
  font-size: 0.9rem;
  color: var(--copper-dark);
  font-weight: 600;
}

.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 12px;
  background: var(--card);
  border: 1px solid var(--rule);
  padding: 14px 16px;
  margin: 1.2em 0 1.6em;
}
.facts div { margin: 0; }
.facts .lbl {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}

.recipe-body h2 { border-bottom: 1px solid var(--rule); padding-bottom: 0.25em; }

.ingredients {
  list-style: none;
  padding: 0;
  margin: 0 0 1.2em;
  background: var(--card);
  border: 1px solid var(--rule);
  padding: 8px 20px;
}
.ingredients li {
  padding: 8px 0;
  border-bottom: 1px solid #efe6d6;
}
.ingredients li:last-child { border-bottom: 0; }

.method { counter-reset: step; padding: 0; margin: 0 0 1.2em; list-style: none; }
.method li {
  counter-increment: step;
  margin: 0 0 1em;
  padding-left: 2.4em;
  position: relative;
}
.method li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 1.7em;
  height: 1.7em;
  border: 1px solid var(--copper);
  color: var(--copper-dark);
  border-radius: 50%;
  font-size: 0.85rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.note {
  background: #f3ece0;
  border-left: 4px solid var(--copper);
  padding: 12px 16px;
  margin: 1.4em 0;
}
.note p:last-child { margin-bottom: 0; }

.site-footer {
  background: var(--navy-deep);
  color: var(--cream);
  padding: 24px 20px 28px;
  text-align: center;
  font-size: 0.92rem;
}
.site-footer p { margin: 0 0 0.5em; }
.site-footer p:last-child { margin: 0; }
.site-footer em { color: var(--rule); }

.hero-shell {
  width: 72px;
  height: 72px;
  display: block;
  margin: 0 auto 12px;
}

@media (max-width: 639px) {
  .header-inner {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "brand toggle"
      "nav nav";
    align-items: center;
    text-align: left;
  }
  .brand { grid-area: brand; width: auto; justify-content: flex-start; }
  .site-header nav { grid-area: nav; justify-content: center; width: 100%; }
  .lang-toggle { grid-area: toggle; margin: 0; }
  main { padding: 24px 16px 48px; }
}

@media print {
  .site-header, .site-footer, .skip { display: none; }
  body { background: #fff; color: #000; }
  a { color: #000; text-decoration: none; }
}

.lang-toggle {
  margin-left: auto;
  color: var(--cream);
  text-decoration: none;
  border: 1px solid var(--rule);
  padding: 5px 12px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.lang-toggle:hover {
  color: var(--cream);
  border-color: var(--cream);
  background: rgba(255, 255, 255, 0.08);
}
@media (max-width: 639px) {
  .lang-toggle { margin: 0; }
}
