/* ============================================================
   Duosse, an Alsatian recipe journal
   Variant: Tavola. Serif display Fraunces, sans Work Sans.
   Palette drawn from the Alsace wine route: oxblood timber red,
   parchment cream, pine green, brass gold.
   ============================================================ */

:root {
  --paper: #f6efe2;
  --paper-deep: #eee3cd;
  --card: #fdfaf2;
  --ink: #29211a;
  --ink-soft: #5d5245;
  --timber: #8c2f2a;
  --timber-deep: #6e211d;
  --pine: #3d4a38;
  --brass: #a8781f;
  --line: #d9cbae;
  --font-display: "Fraunces", "Georgia", serif;
  --font-body: "Work Sans", "Helvetica Neue", Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
}

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

a { color: var(--timber); }

.shell {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ---------- Reveal, CSS only ---------- */

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

.rise { animation: fadeInUp 0.7s ease both; }
.rise-1 { animation-delay: 0.05s; }
.rise-2 { animation-delay: 0.15s; }
.rise-3 { animation-delay: 0.25s; }
.rise-4 { animation-delay: 0.35s; }
.rise-5 { animation-delay: 0.45s; }
.rise-6 { animation-delay: 0.55s; }

@media (prefers-reduced-motion: reduce) {
  .rise, .rise-1, .rise-2, .rise-3, .rise-4, .rise-5, .rise-6 { animation: none; }
}

/* ---------- Top bar ---------- */

.topbar {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 60;
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 74px;
  position: relative;
}

.brand {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.7rem;
  letter-spacing: 0.01em;
  color: var(--ink);
  text-decoration: none;
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
}

.brand::before {
  content: "";
  width: 9px;
  height: 9px;
  background: var(--timber);
  transform: rotate(45deg);
  position: relative;
  top: -2px;
}

.nav-check { display: none; }

.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
}

.nav-burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 34px;
  list-style: none;
}

.nav-menu > li > a {
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--ink);
  text-decoration: none;
  padding: 26px 0;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.nav-menu > li > a:hover { color: var(--timber); }

/* Mega menu, pure CSS via :hover / :focus-within */

.has-mega { position: static; }

.has-mega .caret {
  width: 10px;
  height: 10px;
  transition: transform 0.25s ease;
}

.has-mega:hover .caret,
.has-mega:focus-within .caret { transform: rotate(180deg); }

.mega {
  position: absolute;
  left: 32px;
  right: 32px;
  top: 100%;
  background: var(--card);
  border: 1px solid var(--line);
  border-top: 3px solid var(--timber);
  box-shadow: 0 22px 44px rgba(41, 33, 26, 0.14);
  padding: 30px 34px 34px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
}

.has-mega:hover .mega,
.has-mega:focus-within .mega {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.mega-title {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--ink-soft);
  font-size: 1rem;
  margin-bottom: 18px;
}

.mega-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px 28px;
}

.mega-grid a {
  display: flex;
  gap: 14px;
  align-items: baseline;
  text-decoration: none;
  padding: 10px 12px;
  border-radius: 3px;
}

.mega-grid a:hover { background: var(--paper-deep); }

.mega-num {
  font-family: var(--font-display);
  font-size: 0.85rem;
  color: var(--brass);
  min-width: 22px;
}

.mega-grid strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--ink);
}

.mega-grid em {
  display: block;
  font-style: normal;
  font-size: 0.82rem;
  color: var(--ink-soft);
}

/* ---------- Hero, two asymmetric columns, thin decorative frame ---------- */

.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.85fr;
  gap: 72px;
  align-items: center;
  padding-top: 84px;
  padding-bottom: 90px;
}

.eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--timber);
  margin-bottom: 18px;
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(3.4rem, 7vw, 5.4rem);
  line-height: 1.02;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.hero-sub {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.25rem, 2.4vw, 1.6rem);
  color: var(--timber-deep);
  margin-top: 16px;
}

.hero-lede {
  color: var(--ink-soft);
  max-width: 46ch;
  margin-top: 22px;
}

.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 34px;
}

.btn {
  display: inline-block;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  padding: 14px 30px;
  border-radius: 2px;
  transition: background 0.2s ease, color 0.2s ease;
}

.btn-solid {
  background: var(--timber);
  color: #fdf8ee;
  border: 1px solid var(--timber);
}

.btn-solid:hover { background: var(--timber-deep); }

.btn-ghost {
  color: var(--ink);
  border: 1px solid var(--ink);
}

.btn-ghost:hover { background: var(--ink); color: var(--paper); }

.hero-frame {
  border: 1px solid var(--timber);
  padding: 14px;
  position: relative;
  background: var(--card);
}

.hero-frame::before {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1px solid var(--brass);
  pointer-events: none;
}

.hero-frame img {
  width: 100%;
  height: 480px;
  object-fit: cover;
}

.hero-caption {
  font-size: 0.82rem;
  color: var(--ink-soft);
  margin-top: 12px;
  text-align: right;
  font-style: italic;
}

/* ---------- Principles, single inline line ---------- */

.principles {
  background: var(--pine);
  padding: 26px 0;
}

.principles-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 18px 40px;
}

.principle {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #edf0e6;
  white-space: nowrap;
}

.principle svg {
  width: 26px;
  height: 26px;
  stroke: #cdb46a;
  flex-shrink: 0;
}

.principle strong {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
}

.p-note {
  font-size: 0.85rem;
  color: #c4ccb9;
}

.p-sep {
  width: 6px;
  height: 6px;
  background: #cdb46a;
  transform: rotate(45deg);
}

/* ---------- Recipes, tab interface ---------- */

.recipes { padding: 96px 0 110px; }

.section-head { max-width: 640px; margin-bottom: 48px; }

.section-head h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.1rem, 4vw, 3rem);
  line-height: 1.1;
  margin-bottom: 14px;
}

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

.tabbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: 54px;
}

.tab-btn {
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  padding: 18px 20px 15px;
  cursor: pointer;
  display: inline-flex;
  align-items: baseline;
  gap: 9px;
  transition: color 0.2s ease;
}

.tab-btn .t-num {
  font-family: var(--font-display);
  font-size: 0.8rem;
  color: var(--brass);
}

.tab-btn:hover { color: var(--ink); }

.tab-btn.active {
  color: var(--timber-deep);
  border-bottom-color: var(--timber);
  font-weight: 600;
}

.recipe-panel { display: none; }

.recipe-panel.active {
  display: block;
  animation: fadeInUp 0.5s ease both;
}

.panel-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.35fr;
  gap: 56px;
  align-items: start;
}

.panel-art {
  position: sticky;
  top: 104px;
}

.panel-art img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border: 1px solid var(--line);
  padding: 10px;
  background: var(--card);
}

.panel-art figcaption {
  font-size: 0.82rem;
  font-style: italic;
  color: var(--ink-soft);
  margin-top: 10px;
}

.panel-body h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 2rem;
  line-height: 1.15;
}

.panel-alt {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--brass);
  font-size: 1.05rem;
  margin-top: 4px;
}

.panel-desc {
  color: var(--ink-soft);
  margin-top: 14px;
  max-width: 56ch;
}

.meta {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 36px;
  margin: 26px 0 30px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.meta li { font-size: 0.98rem; font-weight: 600; }

.meta li span {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 2px;
}

.panel-cols {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 44px;
}

.panel-cols h4 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.2rem;
  margin-bottom: 14px;
  color: var(--timber-deep);
}

.ing ul { list-style: none; }

.ing li {
  font-size: 0.95rem;
  padding: 8px 0 8px 20px;
  border-bottom: 1px dotted var(--line);
  position: relative;
}

.ing li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 16px;
  width: 6px;
  height: 6px;
  background: var(--timber);
  transform: rotate(45deg);
}

.steps ol {
  list-style: none;
  counter-reset: step;
}

.steps li {
  counter-increment: step;
  font-size: 0.97rem;
  padding: 0 0 18px 46px;
  position: relative;
}

.steps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 1px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--timber);
}

.steps li::after {
  content: "";
  position: absolute;
  left: 13px;
  top: 30px;
  bottom: 6px;
  width: 1px;
  background: var(--line);
}

.steps li:last-child::after { display: none; }

/* ---------- About, quotation style ---------- */

.about {
  background: var(--paper-deep);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 110px 0;
}

.about-inner {
  max-width: 820px;
  text-align: center;
}

.about-quote {
  position: relative;
  font-family: var(--font-display);
  font-weight: 500;
  font-style: italic;
  font-size: clamp(1.45rem, 3vw, 2.05rem);
  line-height: 1.45;
  color: var(--ink);
  padding-top: 66px;
}

.about-quote::before {
  content: "\201C";
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-display);
  font-style: normal;
  font-size: 7rem;
  line-height: 1;
  color: var(--timber);
}

.about-caption {
  margin-top: 30px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--timber);
}

.about-body {
  margin: 26px auto 0;
  max-width: 62ch;
  color: var(--ink-soft);
  font-size: 1rem;
}

/* ---------- Footer ---------- */

.footer {
  background: #241d16;
  color: #d8cfc0;
  padding: 72px 0 34px;
}

.footer a { color: #e6ddca; text-decoration: none; }

.footer a:hover { color: #fff; text-decoration: underline; }

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.8fr 1.1fr;
  gap: 48px;
}

.footer-brand .brand-foot {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.6rem;
  color: #f3ecdd;
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
}

.footer-brand .brand-foot::before {
  content: "";
  width: 8px;
  height: 8px;
  background: #b0453f;
  transform: rotate(45deg);
  position: relative;
  top: -2px;
}

.footer-brand p {
  margin-top: 14px;
  font-size: 0.92rem;
  color: #b3a894;
  max-width: 34ch;
}

.footer h4 {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #cdb46a;
  margin-bottom: 16px;
}

.footer ul { list-style: none; }

.footer ul li { margin-bottom: 9px; font-size: 0.95rem; }

.footer-company p {
  font-size: 0.88rem;
  line-height: 1.7;
  color: #b3a894;
}

.footer-bottom {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid #3a3128;
  font-size: 0.82rem;
  color: #8f8570;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

/* ---------- Legal pages ---------- */

.legal-wrap {
  max-width: 780px;
  margin: 0 auto;
  padding: 72px 32px 96px;
}

.legal-wrap h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.2rem, 5vw, 3rem);
  line-height: 1.1;
  margin-bottom: 10px;
}

.legal-updated {
  font-size: 0.88rem;
  color: var(--ink-soft);
  font-style: italic;
  margin-bottom: 40px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.legal-wrap h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.45rem;
  color: var(--timber-deep);
  margin: 42px 0 12px;
}

.legal-wrap p { margin-bottom: 14px; color: var(--ink); font-size: 1rem; }

.legal-wrap ul { margin: 0 0 16px 22px; }

.legal-wrap li { margin-bottom: 8px; font-size: 1rem; }

.company-contact-box {
  margin-top: 52px;
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 4px solid var(--timber);
  padding: 28px 32px;
}

.company-contact-box h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.2rem;
  margin-bottom: 12px;
}

.company-contact-box p { margin-bottom: 6px; font-size: 0.95rem; }

/* ---------- Breakpoints: 1080 / 780 / 460 ---------- */

@media (max-width: 1080px) {
  .hero {
    gap: 44px;
    padding-top: 60px;
    padding-bottom: 66px;
  }
  .hero-frame img { height: 400px; }
  .panel-grid { grid-template-columns: 1fr 1.5fr; gap: 38px; }
  .panel-cols { grid-template-columns: 1fr; gap: 30px; }
  .mega-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 780px) {
  .shell { padding: 0 22px; }

  .nav-burger { display: flex; }

  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--card);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    display: none;
    box-shadow: 0 18px 34px rgba(41, 33, 26, 0.12);
  }

  .nav-check:checked ~ .nav-menu { display: flex; }

  .nav-menu > li > a {
    padding: 16px 22px;
    width: 100%;
  }

  .nav-menu > li {
    border-bottom: 1px solid var(--line);
  }

  .has-mega .mega { display: none; }
  .has-mega .caret { display: none; }

  .hero { grid-template-columns: 1fr; }
  .hero-frame img { height: 320px; }
  .hero-caption { text-align: left; }

  .principles-row { justify-content: flex-start; }
  .p-sep { display: none; }
  .principle { white-space: normal; }

  .recipes { padding: 64px 0 76px; }

  .tabbar {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .tab-btn { white-space: nowrap; }

  .panel-grid { grid-template-columns: 1fr; gap: 30px; }
  .panel-art { position: static; }
  .panel-art img { height: 300px; }

  .about { padding: 72px 0; }

  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
}

@media (max-width: 460px) {
  body { font-size: 17px; }

  .hero h1 { font-size: 3rem; }
  .hero-frame { padding: 10px; }
  .hero-frame img { height: 240px; }

  .btn { width: 100%; text-align: center; }

  .meta { gap: 12px 22px; }

  .panel-body h3 { font-size: 1.6rem; }

  .steps li { padding-left: 38px; }

  .about-quote { font-size: 1.3rem; }

  .company-contact-box { padding: 22px 20px; }

  .legal-wrap { padding: 48px 22px 64px; }
}
