@font-face {
  font-family: "Bebas Neue";
  src: url("./fonts/BebasNeue-Regular.otf") format("opentype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: Denista;
  src: local("Denista"), local("Denista Regular");
  font-display: swap;
}

:root {
  color-scheme: light;
  --page: #eeeeea;
  --panel: #f5f4f1;
  --surface: #fff;
  --ink: #161614;
  --muted: #62635d;
  --line: #d9d9d3;
  --wine: #9e0000;
  --wine-hover: #820000;
  --wine-pressed: #680000;
  --body: Helvetica, "Helvetica Neue", Arial, sans-serif;
  --display: "Bebas Neue", "Arial Narrow", Helvetica, Arial, sans-serif;
  --signature: Denista, Helvetica, "Helvetica Neue", Arial, sans-serif;
  --width: 484px;
  --gutter: clamp(14px, 3vw, 20px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--page); font: 400 1rem/1.48 var(--body); }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1; text-transform: uppercase; }
h2 { font-size: clamp(1.95rem, 5vw, 2.5rem); }
h3 { font-size: clamp(1.55rem, 4.5vw, 1.95rem); }
em { color: var(--wine); font-style: normal; }
svg { display: block; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.symbols { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.wrap { width: min(calc(100% - var(--gutter) * 2), var(--width)); margin-inline: auto; }
.section { padding-block: 23px; scroll-margin-top: 14px; }
.section-heading { margin-bottom: 13px; }
.eyebrow { margin-bottom: 6px; color: var(--muted); font-size: .72rem; font-weight: 700; line-height: 1.35; letter-spacing: .09em; text-transform: uppercase; }
:focus-visible { outline: 2px solid var(--wine); outline-offset: 3px; }
.skip { position: fixed; top: 8px; left: 8px; z-index: 5; padding: 10px 14px; color: var(--surface); background: var(--wine); transform: translateY(-150%); }
.skip:focus { transform: none; }

.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 61px; }
.brand { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font: 400 1.04rem/.98 var(--display); letter-spacing: .02em; text-decoration: none; text-transform: uppercase; }
.brand-mark { display: grid; width: 31px; height: 31px; flex: none; place-items: center; color: var(--surface); background: var(--wine); border-radius: 50%; }
.brand-mark svg { width: 20px; height: 20px; }
.action { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; min-width: 44px; min-height: 46px; padding: .65rem .9rem; border: 1px solid transparent; border-radius: 14px; font-size: .9rem; font-weight: 700; line-height: 1.25; text-align: center; text-decoration: none; }
.action-primary { background: var(--wine); color: var(--surface); }
.action-primary:hover { background: var(--wine-hover); }
.action-primary:active { background: var(--wine-pressed); }
.action-outline { min-height: 44px; color: var(--wine); border-color: var(--wine); }
.action-outline:hover { background: var(--surface); }
.action-text { padding-inline: 4px; color: var(--wine); text-decoration: underline; text-underline-offset: .2em; }

.hero { padding: 6px 0 7px; }
.hero-cover { position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, .79fr) minmax(0, 1.21fr); align-items: center; background: linear-gradient(116deg, #dcdcd7, #f5f4f1 72%); border: 1px solid var(--line); border-radius: 20px; }
.cover-photo { width: 100%; aspect-ratio: 4 / 5; align-self: end; }
.cover-photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center bottom; }
.cover-copy { position: relative; min-width: 0; padding: 16px clamp(9px, 3vw, 22px); }
.cover-copy .eyebrow { margin-bottom: 7px; }
.hero h1 { font-size: clamp(1.35rem, 6.1vw, 2.5rem); letter-spacing: .005em; line-height: 1; overflow-wrap: anywhere; }
.hero h1 em { display: block; margin-top: 2px; text-wrap: balance; }
.cover-signature { margin-top: 8px; font: italic 400 clamp(.75rem, 2.5vw, 1rem)/1.25 var(--signature); }
.hero-lead { margin: 13px 3px 0; color: var(--muted); }
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 13px; margin: 11px 0 14px; }

.hero-price { display: flex; flex-wrap: wrap; gap: 2px 12px; align-items: baseline; padding: 12px 14px; background: var(--surface); border-radius: 14px; color: var(--muted); font-size: .9rem; }
.hero-price strong { color: var(--wine); font-size: 1.125rem; }
.main-nav { display: flex; align-items: center; gap: 6px 15px; flex-wrap: wrap; padding-inline: 3px; }
.header-nav { display: none; }
.main-nav a, .footer-inner a { display: inline-flex; align-items: center; min-height: 44px; font-size: .82rem; font-weight: 700; text-decoration: none; }
.main-nav a:hover, .footer-inner a:hover { color: var(--wine); text-decoration: underline; }

details summary { display: flex; align-items: center; justify-content: space-between; gap: 9px; min-height: 46px; padding-block: 8px; cursor: pointer; font-size: .9rem; font-weight: 700; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::marker { content: ""; }
.situation-grid, .steps, .case-card, .faq, .join-card { background: var(--surface); border-radius: 18px; }
.situation-grid, .steps { padding: 4px 14px; }
.situation { padding: 14px 0; }
.steps li { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 4px 8px; padding: 12px 0; }
.situation + .situation, .steps li + li { border-top: 1px dashed var(--line); }
.situation p, .steps p { color: var(--muted); font-size: .94rem; }
.situation p { margin-top: 6px; }
.steps p { grid-column: 2; }
.situation h3, .steps h3 { font: 700 1rem/1.3 var(--body); text-transform: none; }
.step-number { color: var(--wine); font: 400 1.13rem/1 var(--display); }
.steps { margin: 0; list-style: none; }
.case-grid { display: grid; gap: 12px; }
.case-card { display: grid; align-content: start; gap: 16px; min-width: 0; padding: 16px; }
.case-header > p:not(.eyebrow) { margin-top: 7px; color: var(--muted); }
.case-metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 0; }
.case-metrics > div { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 5px; padding: 12px 10px; border-radius: 12px; background: var(--panel); }
.case-metrics dt { color: var(--muted); font-size: .8rem; line-height: 1.35; }
.case-metrics dd { margin: 0; color: var(--wine); font: 400 clamp(2.05rem, 4vw, 3.5rem)/1 var(--display); }
.case-detail h4 { margin: 0 0 4px; font-size: .9rem; }
.case-detail p, .case-header > p:not(.eyebrow) { font-size: .94rem; }
.case-detail + .case-detail { padding-top: 12px; border-top: 1px solid var(--line); }
.case-review { margin: 0; padding: 10px 12px; border-inline-start: 2px solid var(--wine); background: var(--panel); }
.case-review blockquote { margin: 0; font-size: .94rem; font-weight: 700; }
.case-review figcaption { margin-top: 5px; color: var(--muted); font-size: .78rem; }

.faq { padding: 2px 14px; }
.faq details + details { border-top: 1px dashed var(--line); }
.faq summary:hover { color: var(--wine); }
.faq details[open] summary svg { transform: rotate(45deg); }
.faq summary svg { color: var(--wine); }
.faq details p { color: var(--muted); padding-bottom: 10px; }
.join-grid > div:first-child { margin-bottom: 13px; }
.join-grid > div:first-child > p:not(.eyebrow) { margin-top: 8px; color: var(--muted); }
.join-card { padding: 15px; }
.join-label { margin-bottom: 7px; color: var(--muted); font-size: .78rem; font-weight: 700; }
.join-price { margin-bottom: 14px; color: var(--wine); font: 400 2.55rem/1 var(--display); }
.join-card .action { width: 100%; }

.footer-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 0 13px; padding: 7px 0 14px; border-top: 1px solid var(--line); color: var(--muted); font-size: .8rem; }
.footer-inner span:first-child { color: var(--ink); font-weight: 700; }

@media (min-width: 700px) {
  :root {
    --width: 96rem;
    --gutter: clamp(28px, 5vw, 88px);
    --section-gap: clamp(16px, 2.2vw, 32px);
    --card-padding: clamp(18px, 2vw, 30px);
  }

  .section { padding-block: clamp(38px, 5.2vw, 84px); }
  .section-heading { margin-bottom: 20px; }
  .eyebrow { margin-bottom: 9px; }
  h2 { font-size: clamp(2.65rem, 4.4vw, 4.75rem); }
  h3 { font-size: clamp(1.65rem, 2.8vw, 2.45rem); }
  .hero h1 { font-size: clamp(2.5rem, 5.5vw, 3.1rem); }

  .situation-grid, .steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 0; }
  .situation, .steps li { padding: var(--card-padding); }
  .steps li { grid-template-columns: minmax(0, 1fr); align-content: start; gap: 9px; }
  .steps p { grid-column: auto; }
  .situation + .situation, .steps li + li { border-top: 0; border-left: 1px dashed var(--line); }
  .step-number { font-size: 1.65rem; }
  .cases, .join { background: var(--panel); }
  .case-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--section-gap); }
  .case-card { gap: 20px; padding: var(--card-padding); }
  .case-metrics { gap: 12px; }
  .case-metrics > div { padding: 14px; }
  .footer-inner { min-height: 76px; padding-block: 10px; }
  .footer-inner a { margin-inline-start: auto; }
}

@media (min-width: 900px) {
  :root { --header-height: 76px; }

  .site-header, .hero { background-color: var(--panel); }
  .header-inner { display: grid; grid-template-columns: 1fr auto 1fr; min-height: var(--header-height); }
  .brand, .header-action { justify-self: start; }
  .header-action { justify-self: end; }
  .header-nav { display: flex; gap: 12px clamp(20px, 3.2vw, 52px); }

  .hero { padding: 0; background-image: radial-gradient(ellipse at 76% 80%, #ddddd6 0%, transparent 49%); }
  .hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    grid-template-rows: 1fr repeat(4, auto) 1fr;
    grid-template-areas:
      ".       photo"
      "copy    photo"
      "lead    photo"
      "actions photo"
      "price   photo"
      ".       photo";
    min-height: min(860px, max(540px, calc(100svh - var(--header-height))));
  }
  .hero-cover { display: contents; }
  .cover-copy { grid-area: copy; padding: 24px 0 0; }
  .cover-copy .eyebrow { color: var(--wine); margin-bottom: 18px; }
  .hero h1 { font-size: clamp(3.1rem, 5.8vw, 6.4rem); }
  .cover-signature { display: inline-block; margin: 14px 12px 0 0; font-size: clamp(1rem, 1.4vw, 1.3rem); }
  .cover-photo { grid-area: photo; position: relative; align-self: stretch; aspect-ratio: auto; overflow: clip; }
  .cover-photo img { position: absolute; inset: auto auto 0 50%; width: 148%; height: min(100%, 680px); object-fit: contain; transform: translateX(-50%); }
  .hero-lead { grid-area: lead; max-width: 52ch; margin: 22px 0 0; padding-inline-start: 15px; border-inline-start: 2px solid var(--wine); font-size: clamp(1rem, 1.35vw, 1.25rem); }
  .actions { grid-area: actions; gap: 6px 20px; margin: 22px 0; }
  .hero .action-primary { min-height: 50px; padding-inline: 18px; }
  .hero-price { grid-area: price; align-self: start; justify-self: start; padding: 12px 0 24px; border-radius: 0; border-top: 1px solid var(--line); background: transparent; }
  .hero-price strong { font-size: 1.3rem; }

  .question-grid, .join-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; gap: var(--section-gap); }
  .join-grid h2 { max-width: 18ch; }
  .faq { padding-inline: var(--card-padding); }
  .faq summary { min-height: 58px; }
  .join-card { padding: var(--card-padding); }
  .join-price { font-size: clamp(2.7rem, 4.2vw, 4rem); }
}

@media (max-width: 380px) {
  .header-inner { gap: 5px; }
  .header-action { padding-inline: 10px; font-size: .8rem; }
  .cover-copy { padding-block: 10px; }
  .cover-copy .eyebrow { font-size: .62rem; }
  .actions { display: grid; grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
