@layer reset, base, components, sections, responsive;

@layer reset {
  *, *::before, *::after { box-sizing: border-box; }
  html { scroll-behavior: smooth; }
  body { margin: 0; }
  img, video { display: block; max-width: 100%; }
  button, a { font: inherit; }
  a { color: inherit; }
}

@layer base {
  :root {
    --green: #3f533e;
    --green-deep: #253524;
    --pink: #ecbccb;
    --pink-soft: #f7dce4;
    --cream: #f3eee4;
    --paper: #fffdf8;
    --ink: #1a1919;
    --muted: #645f58;
    --line: rgba(26, 25, 25, .18);
    --display: "Bricolage Grotesque", sans-serif;
    --body: "DM Sans", sans-serif;
    --shell: min(100% - 40px, 1240px);
    --header-h: 84px;
  }

  body {
    color: var(--ink);
    background: var(--paper);
    font-family: var(--body);
    font-size: 16px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
  }

  h1, h2, h3, p { margin-top: 0; }
  h1, h2, h3 { font-family: var(--display); text-wrap: balance; }
  h1, h2 { letter-spacing: -.055em; line-height: .9; }
  h2 { font-size: clamp(3.25rem, 8vw, 7.8rem); }
  h3 { font-size: clamp(1.6rem, 3vw, 2.5rem); line-height: 1; letter-spacing: -.04em; }
  section { scroll-margin-top: calc(var(--header-h) + 20px); }
  .section-shell { width: var(--shell); margin-inline: auto; }
  .eyebrow {
    margin-bottom: 22px;
    font-size: .74rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
  }
  .eyebrow--light { color: rgba(255,255,255,.78); }
  .skip-link {
    position: fixed; left: 16px; top: 10px; z-index: 200;
    padding: 10px 14px; background: var(--pink); color: var(--ink);
    transform: translateY(-150%);
  }
  .skip-link:focus { transform: translateY(0); }
  :focus-visible { outline: 3px solid var(--pink); outline-offset: 3px; }
}

@layer components {
  .button {
    min-height: 48px;
    display: inline-flex; align-items: center; justify-content: center; gap: 12px;
    padding: 12px 20px;
    border: 1px solid transparent;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 700;
    line-height: 1;
    transition: transform .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
  }
  .button:hover { transform: translateY(-2px); }
  .button--dark { background: var(--ink); color: white; }
  .button--dark:hover { background: var(--green-deep); }
  .button--pink { background: var(--pink); color: var(--ink); }
  .button--pink:hover { background: white; }
  .button--ghost { border-color: var(--line); }
  .button--ghost:hover, .button--outline:hover { background: var(--ink); color: white; border-color: var(--ink); }
  .button--outline { border-color: var(--ink); }
  .button--glass { color: white; border-color: rgba(255,255,255,.55); background: rgba(26,25,25,.18); backdrop-filter: blur(8px); }
  .button--glass:hover { background: white; color: var(--ink); }
  .button--large { min-height: 58px; padding-inline: 28px; }
  .text-link { display: inline-flex; gap: 12px; align-items: center; font-weight: 700; text-underline-offset: 5px; }

  .site-header {
    height: var(--header-h);
    padding: 10px max(20px, calc((100vw - 1240px) / 2));
    display: grid; grid-template-columns: 160px 1fr auto; align-items: center; gap: 24px;
    position: fixed; inset: 0 0 auto; z-index: 100;
    color: white;
    transition: background .25s ease, color .25s ease, box-shadow .25s ease;
  }
  .site-header.is-scrolled { color: var(--ink); background: rgba(255,253,248,.94); box-shadow: 0 1px 0 var(--line); backdrop-filter: blur(12px); }
  .brand { width: 112px; height: 64px; display: block; overflow: hidden; }
  .brand img { width: 100%; height: 100%; object-fit: cover; object-position: center 46%; }
  .desktop-nav { display: flex; justify-content: center; gap: clamp(18px, 3vw, 42px); }
  .desktop-nav a { font-weight: 600; text-decoration: none; position: relative; }
  .desktop-nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -4px; height: 2px; background: currentColor; transition: right .2s; }
  .desktop-nav a:hover::after { right: 0; }
  .header-actions { display: flex; align-items: center; gap: 8px; }
  .instagram-button {
    width: 48px; height: 48px; display: grid; place-items: center; flex: 0 0 auto;
    border: 1px solid currentColor; border-radius: 50%; text-decoration: none;
    transition: transform .2s ease, background .2s ease, color .2s ease;
  }
  .instagram-button:hover { transform: translateY(-2px); background: var(--pink); color: var(--ink); border-color: var(--pink); }
  .instagram-button svg, .hero-instagram svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; }
  .site-header:not(.is-scrolled) .button--dark { background: var(--pink); color: var(--ink); }
  .site-header:not(.is-scrolled) .button--ghost { border-color: rgba(255,255,255,.45); }
  .menu-toggle { display: none; width: 48px; height: 48px; border: 0; border-radius: 50%; background: var(--ink); padding: 0 13px; }
  .menu-toggle span { display: block; height: 2px; margin: 5px 0; background: white; transition: transform .2s; }
  .menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
  .mobile-menu { position: fixed; inset: var(--header-h) 0 auto; padding: 20px; background: var(--paper); color: var(--ink); border-top: 1px solid var(--line); }
  .mobile-menu a { min-height: 56px; display: flex; align-items: center; border-bottom: 1px solid var(--line); text-decoration: none; font-family: var(--display); font-size: 1.35rem; font-weight: 700; }
  .mobile-menu[hidden] { display: none; }
  .mobile-order { display: none; }
}

@layer sections {
  .hero {
    min-height: 780px; height: 100svh;
    position: relative; overflow: hidden;
    color: white; background: var(--green-deep);
  }
  .hero-video, .hero-shade { position: absolute; inset: 0; width: 100%; height: 100%; }
  .hero-video { object-fit: cover; object-position: 50% 46%; }
  .hero-shade { background: linear-gradient(90deg, rgba(17,20,16,.76) 0%, rgba(17,20,16,.28) 54%, rgba(17,20,16,.1) 100%), linear-gradient(0deg, rgba(17,20,16,.52), transparent 45%); }
  .hero-copy {
    width: var(--shell); height: 100%; margin-inline: auto; position: relative;
    display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
    padding-top: var(--header-h); padding-bottom: 110px;
  }
  .hero h1 { max-width: 880px; margin-bottom: 30px; font-size: clamp(5rem, 13vw, 12rem); }
  .hero-lead { max-width: 560px; margin-bottom: 34px; font-size: clamp(1.08rem, 2vw, 1.45rem); line-height: 1.35; }
  .hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
  .hero-instagram {
    width: min(100%, 360px); min-height: 66px; margin-top: 18px; padding: 10px 14px;
    display: grid; grid-template-columns: 34px 1fr auto; gap: 12px; align-items: center;
    color: white; border: 1px solid rgba(255,255,255,.38); border-radius: 14px;
    background: rgba(26,25,25,.25); backdrop-filter: blur(8px); text-decoration: none;
    transition: background .2s ease, transform .2s ease;
  }
  .hero-instagram:hover { background: rgba(236,188,203,.95); color: var(--ink); transform: translateY(-2px); }
  .hero-instagram span:nth-child(2) { display: grid; }
  .hero-instagram strong { font-family: var(--display); }
  .hero-instagram small { opacity: .78; }
  .hero-details {
    width: var(--shell); margin-inline: auto; position: absolute; left: 50%; bottom: 32px; transform: translateX(-50%);
    display: flex; gap: 32px; font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  }
  .hero-details span + span::before { content: "•"; margin-right: 32px; color: var(--pink); }
  .video-control {
    position: absolute; right: max(20px, calc((100vw - 1240px) / 2)); bottom: 24px;
    width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255,255,255,.55);
    color: white; background: rgba(0,0,0,.2); cursor: pointer;
  }

  .promise { padding-block: clamp(90px, 12vw, 170px) 54px; }
  .promise-grid { display: grid; grid-template-columns: 1.18fr .82fr; gap: clamp(50px, 9vw, 140px); align-items: end; }
  .promise h2 { margin-bottom: 0; }
  .promise h2 em { color: var(--green); font-weight: 500; }
  .promise-copy { padding-bottom: 10px; }
  .promise-copy p { max-width: 560px; font-size: clamp(1.1rem, 2vw, 1.45rem); line-height: 1.45; }
  .promise-copy p + p { color: var(--muted); }
  .manifesto { margin-top: clamp(70px, 10vw, 130px); border-block: 1px solid var(--line); display: grid; grid-template-columns: repeat(3,1fr); }
  .manifesto span { padding: 22px 10px; font-family: var(--display); font-weight: 700; text-transform: uppercase; letter-spacing: .03em; }
  .manifesto span + span { border-left: 1px solid var(--line); text-align: center; }

  .favorites { padding-block: 110px 150px; background: var(--pink); }
  .section-heading { display: flex; justify-content: space-between; align-items: end; gap: 32px; margin-bottom: 55px; }
  .section-heading h2 { margin-bottom: 0; }
  .food-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 28px; }
  .food-card { min-width: 0; }
  .food-card--dessert { grid-column: 1 / -1; display: grid; grid-template-columns: .8fr 1.2fr; align-items: center; margin-top: 45px; }
  .food-photo { position: relative; min-height: 410px; overflow: hidden; }
  .food-card--feature .food-photo { min-height: 680px; }
  .food-card--dessert .food-photo { min-height: 460px; }
  .food-photo--green { background: var(--green); }
  .food-photo--pink { background: var(--pink-soft); }
  .food-photo--cream { background: var(--cream); }
  .food-photo img { width: 100%; height: 100%; position: absolute; inset: 0; object-fit: cover; transition: transform .7s cubic-bezier(.2,.7,.2,1); }
  .food-card:hover .food-photo img { transform: scale(1.035); }
  .food-index { position: absolute; top: 16px; right: 18px; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; background: var(--paper); font-weight: 800; }
  .food-content { padding-top: 22px; display: grid; grid-template-columns: 1fr; gap: 12px; }
  .food-card--feature .food-content { grid-template-columns: 1fr 1fr auto; gap: 24px; align-items: start; }
  .food-card--dessert .food-content { padding: 40px clamp(28px, 7vw, 100px); }
  .food-content h3, .food-content p { margin-bottom: 0; }
  .food-content > p { color: #504143; }
  .food-kicker { margin-bottom: 8px !important; font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
  .food-content strong { font-family: var(--display); font-size: 1.35rem; }

  .story { min-height: 850px; display: grid; grid-template-columns: 1fr 1fr; background: var(--green); color: white; }
  .story-image { min-height: 780px; overflow: hidden; }
  .story-image img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
  .story-copy { padding: clamp(70px, 9vw, 140px) clamp(30px, 8vw, 120px); display: flex; flex-direction: column; align-items: flex-start; justify-content: center; }
  .story-copy h2 { margin-bottom: 45px; font-size: clamp(3.6rem, 7vw, 7rem); }
  .story-copy > p:not(.eyebrow) { max-width: 580px; font-size: 1.15rem; color: rgba(255,255,255,.82); }
  .story-copy .button { margin-top: 22px; }

  .reviews { padding-block: clamp(90px, 11vw, 150px); background: var(--green-deep); color: white; }
  .reviews-grid { display: grid; grid-template-columns: .7fr 1.3fr; gap: clamp(55px, 10vw, 150px); align-items: start; }
  .review-score { position: sticky; top: calc(var(--header-h) + 30px); }
  .stars { color: var(--pink); font-size: 1.45rem; letter-spacing: .14em; }
  .score { display: flex; align-items: baseline; gap: 10px; margin: 12px 0 8px; }
  .score strong { font: 800 clamp(5rem, 10vw, 9rem)/.8 var(--display); letter-spacing: -.07em; }
  .score span { font: 600 1.35rem var(--display); color: rgba(255,255,255,.65); }
  .review-score > p:not(.eyebrow):not(.score) { margin-bottom: 28px; color: rgba(255,255,255,.72); }
  .review-voices h2 { margin-bottom: 50px; font-size: clamp(3.7rem, 7vw, 7rem); }
  .quotes { border-top: 1px solid rgba(255,255,255,.25); }
  .quotes blockquote { margin: 0; padding: 25px 0 28px; border-bottom: 1px solid rgba(255,255,255,.25); }
  .quotes blockquote p { margin-bottom: 12px; font: 600 clamp(1.35rem, 2.5vw, 2rem)/1.25 var(--display); }
  .quotes footer { color: rgba(255,255,255,.62); font-size: .85rem; }
  .review-voices > small { display: block; margin-top: 20px; color: rgba(255,255,255,.52); }

  .locations { padding-block: clamp(90px, 12vw, 160px); }
  .locations-heading { margin-bottom: 58px; }
  .locations-heading h2 { margin-bottom: 0; }
  .location-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
  .location-card { min-height: 500px; padding: clamp(26px, 5vw, 60px); position: relative; display: flex; flex-direction: column; align-items: flex-start; background: var(--cream); }
  .location-card--pink { background: var(--pink); }
  .location-number { position: absolute; top: 24px; right: 28px; font: 800 1rem var(--display); }
  .location-card h3 { margin: 70px 0 25px; font-size: clamp(2.6rem, 5vw, 5rem); }
  .location-card address { margin-bottom: 30px; font-style: normal; font-size: 1.16rem; }
  .location-purpose { margin: auto 0 3px; color: var(--muted); font-size: .78rem; font-weight: 700; letter-spacing: .11em; text-transform: uppercase; }
  .location-phone { font: 700 clamp(1.55rem, 3vw, 2.6rem) var(--display); text-decoration-thickness: 2px; text-underline-offset: 5px; }
  .location-actions { margin-top: 28px; display: flex; align-items: center; flex-wrap: wrap; gap: 22px; }
  .map-shell { min-height: 600px; margin-top: 24px; display: grid; grid-template-columns: .72fr 1.28fr; overflow: hidden; background: var(--ink); color: white; }
  .map-copy { padding: clamp(35px, 6vw, 80px); display: flex; flex-direction: column; justify-content: center; }
  .map-copy h3 { margin-bottom: 28px; font-size: clamp(2.6rem, 4.5vw, 4.9rem); }
  .map-copy > p:last-child { max-width: 350px; color: rgba(255,255,255,.68); }
  .frau-map { min-height: 600px; z-index: 1; background: #e6e0d4; }
  .frau-marker { width: 44px; height: 44px; display: grid; place-items: center; border: 3px solid white; border-radius: 50% 50% 50% 8px; transform: rotate(-45deg); background: var(--green); color: white; box-shadow: 0 5px 18px rgba(0,0,0,.28); }
  .frau-marker--pink { background: var(--pink); color: var(--ink); }
  .frau-marker span { transform: rotate(45deg); font: 800 1rem var(--display); }
  .leaflet-popup-content-wrapper { border-radius: 12px; box-shadow: 0 12px 36px rgba(0,0,0,.2); }
  .leaflet-popup-content { font-family: var(--body); line-height: 1.45; }
  .leaflet-popup-content strong { font-family: var(--display); font-size: 1rem; }
  .leaflet-control-attribution { font-size: 10px; }
  .hours { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: start; }
  .hours .eyebrow { margin-bottom: 12px; }
  .hours p { margin-bottom: 0; }
  .hours-note { color: var(--muted); }

  .final-cta { min-height: 680px; padding: 100px 20px; position: relative; overflow: hidden; display: grid; place-items: center; align-content: center; text-align: center; background: var(--pink); }
  .final-cta h2 { margin-bottom: 45px; font-size: clamp(4.5rem, 11vw, 10.5rem); }
  .final-mark { position: absolute; inset: -140px auto auto -20px; font: 800 42rem/.8 var(--display); color: rgba(255,255,255,.2); transform: rotate(-10deg); pointer-events: none; }
  .final-cta > *:not(.final-mark) { position: relative; }

  .site-footer { padding: 45px max(20px, calc((100vw - 1240px) / 2)); display: grid; grid-template-columns: 180px 1fr auto; gap: 32px; align-items: end; background: var(--ink); color: white; }
  .footer-brand { width: 150px; height: 90px; overflow: hidden; }
  .footer-brand img { width: 100%; height: 100%; object-fit: cover; }
  .footer-links { display: flex; gap: 24px; flex-wrap: wrap; }
  .footer-links a { text-underline-offset: 5px; }
  .site-footer p { margin: 0; color: rgba(255,255,255,.6); font-size: .85rem; }
}

@layer responsive {
  @media (max-width: 900px) {
    :root { --header-h: 72px; --shell: min(100% - 32px, 720px); }
    .site-header { grid-template-columns: 120px 1fr; padding-inline: 16px; }
    .brand { width: 100px; height: 54px; }
    .desktop-nav, .header-call, .header-actions > .button--dark { display: none; }
    .header-actions { justify-self: end; }
    .menu-toggle { display: block; }
    .promise-grid, .story { grid-template-columns: 1fr; }
    .promise-copy { max-width: 620px; }
    .food-card--feature .food-content { grid-template-columns: 1fr; }
    .story-image { min-height: 720px; max-height: 95svh; }
    .story-copy { min-height: 690px; }
    .reviews-grid, .map-shell { grid-template-columns: 1fr; }
    .review-score { position: static; }
    .map-copy { min-height: 340px; }
    .frau-map { min-height: 520px; }
    .site-footer { grid-template-columns: 150px 1fr; }
    .site-footer > p { grid-column: 1 / -1; }
  }

  @media (max-width: 640px) {
    :root { --shell: calc(100% - 28px); }
    body { padding-bottom: 68px; }
    h2 { font-size: clamp(3.2rem, 17vw, 5.2rem); }
    .hero { min-height: 700px; }
    .hero-shade { background: linear-gradient(0deg, rgba(17,20,16,.75) 0%, rgba(17,20,16,.1) 90%); }
    .hero-video { object-position: 56% center; }
    .hero-copy { justify-content: flex-end; padding-bottom: 120px; }
    .hero h1 { font-size: clamp(4.65rem, 24vw, 7.3rem); margin-bottom: 22px; }
    .hero-lead { font-size: 1.05rem; }
    .hero-actions .button--glass { display: none; }
    .hero-details { gap: 10px; bottom: 28px; font-size: .62rem; letter-spacing: .07em; }
    .hero-details span + span::before { margin-right: 10px; }
    .video-control { right: 14px; top: 86px; bottom: auto; }
    .promise { padding-top: 80px; }
    .promise-grid { gap: 38px; }
    .manifesto { grid-template-columns: 1fr; margin-top: 65px; }
    .manifesto span, .manifesto span + span { text-align: left; border-left: 0; border-top: 1px solid var(--line); }
    .manifesto span:first-child { border-top: 0; }
    .favorites { padding-block: 80px 95px; }
    .section-heading { align-items: flex-start; flex-direction: column; margin-bottom: 36px; }
    .food-grid { grid-template-columns: 1fr; gap: 58px; }
    .food-card--dessert { grid-column: auto; display: block; margin-top: 0; }
    .food-photo, .food-card--feature .food-photo, .food-card--dessert .food-photo { min-height: 430px; }
    .food-card--dessert .food-content { padding: 22px 0 0; }
    .story { min-height: auto; }
    .story-image { min-height: 620px; }
    .story-copy { min-height: 650px; padding: 75px 20px; }
    .story-copy h2 { font-size: clamp(3.5rem, 17vw, 5.3rem); }
    .review-voices h2 { font-size: clamp(3.4rem, 16vw, 5rem); }
    .location-cards, .hours { grid-template-columns: 1fr; }
    .location-card { min-height: 470px; }
    .map-shell { margin-inline: -14px; }
    .map-copy { min-height: 300px; }
    .frau-map { min-height: 430px; }
    .hours { margin-top: 28px; gap: 20px; }
    .final-cta { min-height: 620px; }
    .final-mark { font-size: 30rem; }
    .site-footer { grid-template-columns: 1fr; padding: 40px 20px 50px; }
    .footer-links { flex-direction: column; gap: 4px; }
    .footer-links a, .text-link { min-height: 44px; display: flex; align-items: center; }
    .site-footer > p { grid-column: auto; }
    .mobile-order { display: block; position: fixed; z-index: 120; inset: auto 10px 10px; }
    .mobile-order a { min-height: 54px; display: flex; justify-content: center; align-items: center; gap: 10px; border-radius: 999px; background: var(--pink); color: var(--ink); text-decoration: none; font-weight: 800; box-shadow: 0 10px 30px rgba(26,25,25,.25); }
  }

  @media (max-width: 370px) {
    :root { --shell: calc(100% - 22px); }
    .hero h1 { font-size: 4.25rem; }
    .hero-details span:nth-child(2) { display: none; }
    .hero-details span:last-child::before { content: "•"; }
    .location-card { padding-inline: 22px; }
  }

  @media (min-width: 1700px) {
    :root { --shell: min(100% - 80px, 1480px); }
    .hero h1 { font-size: 13rem; }
    .food-card--feature .food-photo { min-height: 820px; }
  }

  @media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
    .hero-video { display: none; }
    .hero { background: var(--green-deep) url('/assets/hero-poster.jpg') center 44% / cover no-repeat; }
    .video-control { display: none; }
  }
}
