@font-face {
  font-family: "Fraunces";
  src: url("/fonts/Fraunces/Fraunces-Black.ttf") format("truetype");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --cream: #fbf7f0;
  --paper: #ffffff;
  --ink: #1a1614;
  --cocoa: #6f5545;
  --ember: #d84a1e;
  --ember-deep: #bf3e17;
  --gold: #d9a84c;
  --line: rgba(26, 22, 20, 0.1);
  --display: "Fraunces", "Iowan Old Style", "Palatino", Georgia, serif;
  --body: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --wrap: 1120px;
  --gutter: clamp(20px, 5vw, 48px);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a {
  color: inherit;
}

p {
  margin: 0;
}

h1,
h2 {
  font-family: var(--display);
  font-weight: 900;
  line-height: 1.06;
  letter-spacing: -0.012em;
  margin: 0;
  text-wrap: balance;
}

h2 {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
}

h3 {
  font-weight: 700;
  font-size: 1.1rem;
  line-height: 1.2;
  letter-spacing: -0.012em;
  margin: 0;
  text-wrap: balance;
}

.wrap {
  width: min(var(--wrap), 100% - 2 * var(--gutter));
  margin-inline: auto;
}

.label {
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cocoa);
}

[hidden] {
  display: none !important;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.35rem;
  border: 0;
  border-radius: 999px;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  line-height: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.btn-primary {
  background: var(--ember);
  color: #fff;
}

.btn-primary:hover {
  background: var(--ember-deep);
  transform: translateY(-1px);
}

.btn-ghost {
  border: 1.5px solid var(--line);
  background: rgba(255, 255, 255, 0.5);
  color: var(--ink);
}

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

.btn-big {
  padding: 1.05rem 1.7rem;
  font-size: 1.05rem;
}

.badge {
  display: inline-flex;
  transition: transform 0.15s ease;
}

.badge img {
  height: 56px;
  width: auto;
}

.badge--big img {
  height: 72px;
}

.badge:hover {
  transform: translateY(-1px);
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--ember);
  outline-offset: 3px;
  border-radius: 6px;
}

.text-link {
  color: var(--ember);
  text-decoration: none;
  font-weight: 600;
}

.text-link:hover {
  text-decoration: underline;
}

/* Nav ---------------------------------------------------------------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 247, 240, 0.84);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 66px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  font-family: var(--display);
  font-weight: 900;
  font-size: 1.2rem;
  letter-spacing: -0.01em;
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  box-shadow: 0 3px 8px rgba(26, 22, 20, 0.16);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 1.9rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.95rem;
  font-weight: 500;
}

.nav-links a {
  text-decoration: none;
  color: var(--cocoa);
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--ink);
}

.nav .btn {
  padding: 0.6rem 1.1rem;
  font-size: 0.9rem;
}

/* Hero --------------------------------------------------------------- */

.hero {
  position: relative;
  padding-top: clamp(2.5rem, 6vw, 5rem);
  overflow: hidden;
  background: radial-gradient(60% 50% at 50% 0%, rgba(255, 246, 226, 0.9), rgba(255, 246, 226, 0) 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: clamp(1.5rem, 4vw, 4rem);
  position: relative;
  z-index: 2;
}

.hero--plain {
  padding-bottom: clamp(1rem, 3vw, 2rem);
}

.hero h1 {
  font-size: clamp(3rem, 6.6vw, 5.6rem);
  margin: 0.7rem 0 0.6rem;
}

.hero--plain h1 {
  font-size: clamp(2.4rem, 4.8vw, 4rem);
}

.hero--plain .tagline {
  max-width: none;
}

.hero--plain .lead {
  max-width: 38rem;
}

.tagline {
  font-size: clamp(1.35rem, 2.2vw, 1.8rem);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.2;
  color: var(--ink);
  max-width: 30rem;
}

.lead a,
.list3 p a {
  color: var(--ember);
}

.lead {
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  color: var(--cocoa);
  max-width: 32rem;
  margin-top: 1rem;
}

.cta-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.8rem;
}

.fineprint {
  margin-top: 0.8rem;
  font-size: 0.9rem;
  color: var(--cocoa);
}

.fineprint a {
  color: inherit;
}

.fineprint a:hover {
  color: var(--ember);
}

.lead + .lead {
  font-size: 1rem;
  margin-top: 0.8rem;
}

.hero-stage {
  position: relative;
  display: flex;
  justify-content: center;
  padding-top: 1rem;
  margin-bottom: -150px;
}

.hero-world {
  position: relative;
  z-index: 1;
}

.world {
  width: 100%;
  height: clamp(190px, 26vw, 360px);
  object-fit: cover;
  object-position: 0% 100%;
  display: block;
}

.world-fade {
  position: absolute;
  inset: 0 0 auto 0;
  height: 45%;
  background: linear-gradient(var(--cream), rgba(251, 247, 240, 0));
  pointer-events: none;
}

.floater {
  position: absolute;
  z-index: 3;
  width: var(--size, 90px);
  filter: drop-shadow(0 10px 14px rgba(26, 22, 20, 0.18));
  pointer-events: none;
  will-change: transform;
}

.floater--martini {
  --size: clamp(68px, 7vw, 100px);
  top: 4%;
  left: 2%;
  rotate: -10deg;
}

.floater--pin {
  --size: clamp(58px, 6vw, 84px);
  top: 38%;
  right: 4%;
  rotate: 8deg;
}

.floater--bottles {
  --size: clamp(64px, 6.5vw, 92px);
  bottom: 24%;
  left: 0;
  rotate: 6deg;
}

.floater--sparkles {
  --size: clamp(44px, 4.5vw, 64px);
  top: 12%;
  right: 8%;
}

/* Phone -------------------------------------------------------------- */

.phone {
  --w: clamp(240px, 22vw, 300px);
  --tilt: -4deg;
  width: var(--w);
  margin: 0;
  position: relative;
  transform: rotate(var(--tilt));
  filter: drop-shadow(0 24px 32px rgba(26, 22, 20, 0.22));
}

.phone-body {
  background: #111014;
  border-radius: calc(var(--w) * 0.17);
  padding: calc(var(--w) * 0.035);
}

.phone-screen {
  position: relative;
  border-radius: calc(var(--w) * 0.14);
  overflow: hidden;
  background: #fff;
}

.phone-screen img {
  width: 100%;
}

.phone-screen img + img {
  position: absolute;
  inset: 0;
  opacity: 0;
  animation: screen-cycle 28s linear infinite;
}

.phone-screen img:nth-child(2) { animation-delay: 4s; }
.phone-screen img:nth-child(3) { animation-delay: 8s; }
.phone-screen img:nth-child(4) { animation-delay: 12s; }
.phone-screen img:nth-child(5) { animation-delay: 16s; }
.phone-screen img:nth-child(6) { animation-delay: 20s; }
.phone-screen img:nth-child(7) { animation-delay: 24s; }

@keyframes screen-cycle {
  0% { opacity: 0; }
  2.5% { opacity: 1; }
  14.28% { opacity: 1; }
  16.8% { opacity: 0; }
  100% { opacity: 0; }
}

.phone-island {
  position: absolute;
  top: calc(var(--w) * 0.028);
  left: 50%;
  transform: translateX(-50%);
  width: calc(var(--w) * 0.31);
  height: calc(var(--w) * 0.09);
  background: #000;
  border-radius: 999px;
  z-index: 2;
}

/* Sections ----------------------------------------------------------- */

.section {
  padding: clamp(3rem, 7vw, 6rem) 0;
}

.section--tight {
  padding: clamp(1.5rem, 3vw, 2.5rem) 0;
}

.section-head {
  max-width: 42rem;
  margin-bottom: clamp(1.4rem, 3vw, 2.2rem);
}

.section-head h2 {
  margin-top: 0.6rem;
}

.section-head p {
  margin-top: 0.8rem;
  color: var(--cocoa);
}

.trio {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.4rem, 3vw, 2.6rem);
}

.trio article {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 0.9rem;
  align-items: start;
}

.trio img {
  width: 44px;
  height: 44px;
}

.trio p {
  margin-top: 0.3rem;
  color: var(--cocoa);
  font-size: 0.96rem;
}

.row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
  padding: clamp(1.8rem, 3.5vw, 3rem) 0;
}

.row--flip .row-media {
  order: -1;
}

.row h2 {
  margin-top: 0.6rem;
}

.row > div > p {
  margin-top: 1rem;
  color: var(--cocoa);
  font-size: 1.02rem;
  max-width: 30rem;
}

.poster {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 20px;
  border: 1px solid var(--line);
}

.list3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.4rem, 3vw, 2.6rem);
  padding-top: 1.6rem;
  border-top: 1px solid var(--line);
}

.list3 p {
  margin-top: 0.4rem;
  color: var(--cocoa);
  font-size: 0.96rem;
}

.list3 a {
  color: var(--ember);
}

.after {
  margin-top: 1.6rem;
}

.ways {
  margin: 0;
  border-top: 1px solid var(--line);
}

.ways > div {
  display: grid;
  grid-template-columns: 13rem 1fr;
  gap: 1.5rem;
  padding: 1.4rem 0;
  border-bottom: 1px solid var(--line);
}

.ways dt {
  font-weight: 700;
  font-size: 1.1rem;
}

.ways dd {
  margin: 0;
  color: var(--cocoa);
  max-width: 40rem;
}

.ways dd a {
  color: var(--ember);
}

/* FAQ ---------------------------------------------------------------- */

.faq {
  max-width: 44rem;
}

.faq details {
  border-top: 1px solid var(--line);
  padding: 0.2rem 0;
}

.faq details:last-child {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 0.9rem 2.2rem 0.9rem 0;
  font-weight: 600;
  position: relative;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  position: absolute;
  right: 0.2rem;
  top: 0.75rem;
  font-size: 1.3rem;
  color: var(--cocoa);
}

.faq details[open] summary::after {
  content: "\2212";
}

.faq p {
  color: var(--cocoa);
  padding: 0 0 1rem;
  max-width: 40rem;
}

/* Fermento ----------------------------------------------------------- */

.promo {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: clamp(1.2rem, 3vw, 2.5rem);
  align-items: center;
  padding: clamp(1.4rem, 3vw, 2.2rem);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--paper);
}

.promo-icon {
  width: clamp(88px, 10vw, 120px);
  height: auto;
  border-radius: 22%;
  box-shadow: 0 10px 24px rgba(26, 22, 20, 0.16);
}

.promo h2 {
  margin-top: 0.4rem;
}

.promo p {
  margin-top: 0.7rem;
  color: var(--cocoa);
  max-width: 34rem;
}

.promo-more {
  display: inline-block;
  margin-top: 0.7rem;
}

.promo > .btn {
  align-self: center;
  justify-self: start;
  white-space: nowrap;
}

/* Guides ------------------------------------------------------------- */

.guide-body {
  max-width: 40rem;
}

.guide-body h2 {
  font-size: clamp(1.4rem, 2.4vw, 1.8rem);
  margin-top: 2rem;
}

.guide-body p {
  margin-top: 0.8rem;
  color: var(--cocoa);
}

.guide-body ul {
  margin: 0.8rem 0 0;
  padding-left: 1.2rem;
  color: var(--cocoa);
}

.guide-body li {
  margin-top: 0.35rem;
}

.guide-body a {
  color: var(--ember);
}

.guide-body h3 {
  font-size: 1.1rem;
  margin-top: 1.4rem;
}

.legal h2 {
  margin-top: 2.6rem;
  scroll-margin-top: 5rem;
}

.legal h2:first-child {
  margin-top: 0;
}

.legal-updated {
  font-size: 0.9rem;
}

.related {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1rem;
}

.related a {
  display: inline-flex;
  padding: 0.5rem 0.95rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.55);
}

.related a:hover {
  border-color: var(--ink);
}

/* Photos, prose ------------------------------------------------------ */

.prose a {
  color: var(--ember);
}

.photos {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.photos img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 18px;
  border: 1px solid var(--line);
}

.prose {
  max-width: 40rem;
}

.prose h2 {
  font-size: 1.5rem;
  margin-top: 2rem;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose p {
  margin-top: 0.6rem;
  color: var(--cocoa);
}

/* Closing CTA -------------------------------------------------------- */

.cta {
  padding: clamp(1rem, 3vw, 2rem) 0 clamp(2.5rem, 5vw, 4rem);
}

.cta-band {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: clamp(1.5rem, 4vw, 4rem);
  padding: clamp(1.8rem, 4vw, 3rem) 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.cta h2 {
  font-size: clamp(1.8rem, 3.6vw, 3rem);
}

.cta-band p {
  margin-top: 0.6rem;
  color: var(--cocoa);
  font-size: 1.05rem;
  max-width: 34rem;
}

.quiet {
  margin-top: 1.4rem;
  font-size: 0.9rem;
  color: var(--cocoa);
}

.quiet a {
  color: inherit;
}

.quiet a:hover {
  color: var(--ember);
}

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

.footer {
  border-top: 1px solid var(--line);
  padding: clamp(2rem, 4vw, 3rem) 0 2.4rem;
  font-size: 0.9rem;
  color: var(--cocoa);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 2rem;
}

.footer-brand p {
  margin-top: 0.8rem;
  max-width: 20rem;
}

.footer-legal {
  font-size: 0.8rem;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.footer-col .label {
  margin-bottom: 0.3rem;
}

.footer a {
  text-decoration: none;
}

.footer a:hover {
  color: var(--ember);
}

.footer-fermento {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.footer-fermento img {
  width: 20px;
  height: 20px;
  border-radius: 5px;
}

/* Responsive --------------------------------------------------------- */

@media (max-width: 900px) {
  .hero-grid,
  .row,
  .trio,
  .list3,
  .promo {
    grid-template-columns: 1fr;
  }

  .hero-stage {
    margin-bottom: -90px;
    padding-top: 2.5rem;
  }

  .phone {
    --w: clamp(220px, 52vw, 280px);
  }

  .row--flip .row-media,
  .row-media {
    order: 1;
  }

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

  .ways > div {
    grid-template-columns: 1fr;
    gap: 0.4rem;
  }

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

  .nav-links {
    display: none;
  }
}

@media (max-width: 560px) {
  body {
    font-size: 16px;
  }

  .hero h1 {
    font-size: clamp(2.6rem, 12vw, 3.4rem);
  }

  .badge--big img {
    height: 60px;
  }

  .cta-band {
    grid-template-columns: 1fr;
  }

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .phone-screen img + img {
    animation: none;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
