:root {
  --cream: #efe5d3;
  --paper: #fbf4e6;
  --ink: #241d16;
  --muted: #716655;
  --sage: #596f4e;
  --mint: #c6d0b8;
  --coral: #9f2830;
  --citrus: #e1ad31;
  --coffee: #6d4528;
  --latte: #a06b3d;
  --moss: #465a3c;
  --line: rgba(60, 44, 29, 0.16);
  --shadow: 0 22px 70px rgba(43, 28, 17, 0.2);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

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

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  align-items: center;
  min-height: 92px;
  overflow: hidden;
  background: #b91d2b;
  border-bottom: 1px solid rgba(255, 222, 115, 0.36);
  box-shadow: 0 12px 34px rgba(55, 24, 13, 0.16);
}

.header-banner {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.header-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.site-nav {
  position: relative;
  z-index: 1;
  justify-self: end;
  display: flex;
  align-items: center;
  gap: clamp(10px, 2.4vw, 28px);
  margin-right: clamp(12px, 3vw, 34px);
  padding: 12px 16px;
  border: 1px solid rgba(255, 222, 99, 0.32);
  border-radius: 999px;
  background: rgba(101, 15, 19, 0.42);
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffde63;
  text-shadow: 0 1px 10px rgba(80, 0, 0, 0.28);
}

.site-nav a {
  position: relative;
  padding-block: 8px;
}

.cart-link {
  display: inline-flex;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 222, 99, 0.34);
  border-radius: 999px;
}

.cart-link svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
}

.site-nav a::after {
  position: absolute;
  left: 0;
  bottom: 2px;
  width: 100%;
  height: 2px;
  content: "";
  background: #ffde63;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.menu-toggle {
  position: relative;
  z-index: 1;
  display: none;
  justify-self: end;
  margin-right: 18px;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 222, 99, 0.74);
  border-radius: 999px;
  background: rgba(125, 20, 25, 0.52);
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  background: #ffde63;
}

.hero {
  position: relative;
  min-height: calc(100vh - 92px);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: clamp(30px, 5.8vw, 68px) clamp(20px, 5vw, 80px);
  background:
    linear-gradient(90deg, rgba(18, 12, 8, 0.16) 0%, rgba(18, 12, 8, 0.12) 42%, rgba(18, 12, 8, 0.62) 100%),
    linear-gradient(180deg, rgba(18, 12, 8, 0.12), rgba(18, 12, 8, 0.26)),
    url("assets/images/home-hero-v2.png") center / cover no-repeat;
}

.hero-copy {
  position: relative;
  z-index: 1;
  width: min(100%, 560px);
  margin-left: auto;
  color: var(--paper);
  text-shadow: 0 2px 22px rgba(0, 0, 0, 0.38);
}

.eyebrow {
  margin: 0 0 14px;
  color: #4b6653;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Fraunces", Georgia, serif;
  line-height: 0.98;
  letter-spacing: 0;
}

h1 {
  font-size: clamp(4.2rem, 12vw, 10.5rem);
}

.hero-logo-heading {
  width: min(100%, 460px);
}

.hero-logo-heading img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 14px 28px rgba(0, 0, 0, 0.32));
}

h2 {
  font-size: clamp(2.25rem, 6vw, 5rem);
}

h3 {
  font-size: clamp(1.75rem, 3.5vw, 3.4rem);
}

.hero-copy p:not(.eyebrow),
.campaign-line,
.about-copy p,
.product-description {
  color: var(--muted);
  font-size: clamp(1rem, 1.5vw, 1.2rem);
}

.hero-copy p:not(.eyebrow) {
  color: rgba(251, 244, 230, 0.88);
}

.campaign-line {
  max-width: 580px;
  margin: 18px 0 0;
  color: #f2c647;
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(1.5rem, 3vw, 3rem);
  font-weight: 700;
  line-height: 1.05;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--ink);
  border-radius: 999px;
  padding: 12px 22px;
  font-weight: 800;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button.primary {
  color: var(--paper);
  background: var(--ink);
}

.button.secondary {
  color: var(--ink);
  background: transparent;
}

.hero .button.primary {
  color: var(--ink);
  border-color: #f2c647;
  background: #f2c647;
}

.hero .button.secondary {
  color: var(--paper);
  border-color: rgba(251, 244, 230, 0.72);
  background: rgba(36, 29, 22, 0.18);
}

.restock-button {
  align-self: flex-start;
  margin-top: 28px;
  color: var(--ink);
  background: var(--paper);
  cursor: pointer;
}

.spritz-card .restock-button {
  border-color: rgba(255, 245, 223, 0.64);
  color: #fff5df;
  background: rgba(36, 29, 22, 0.42);
}

.page-section {
  padding: clamp(64px, 9vw, 118px) clamp(20px, 5vw, 80px);
}

.section-heading {
  max-width: 780px;
  margin-bottom: clamp(28px, 5vw, 54px);
}

.product-list {
  display: grid;
  gap: 22px;
}

.product-card {
  display: grid;
  grid-template-columns: minmax(260px, 0.86fr) minmax(0, 1.14fr);
  align-items: stretch;
  min-height: 440px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff9ec;
  box-shadow: 0 16px 44px rgba(31, 39, 34, 0.08);
}

.spritz-card {
  background: #bd1f2d;
  color: #fff5df;
}

.spritz-card .product-type,
.spritz-card .hover-note,
.spritz-card .product-description {
  color: #f2c647;
}

.latte-card {
  background: #f8edda;
}

.product-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.product-copy {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100%;
  padding: clamp(28px, 5vw, 68px);
}

.product-type {
  margin: 0 0 12px;
  color: var(--coffee);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
}

.product-description {
  max-width: 620px;
  margin: 24px 0 0;
  color: var(--muted);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 220ms ease, transform 220ms ease;
}

.product-card:hover .product-description,
.product-card:focus-within .product-description {
  opacity: 1;
  transform: translateY(0);
}

.hover-note {
  position: absolute;
  right: clamp(18px, 4vw, 44px);
  bottom: clamp(18px, 4vw, 34px);
  color: var(--sage);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.about-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.86fr) minmax(0, 1.14fr);
  align-items: center;
  gap: clamp(28px, 6vw, 78px);
  background: #2c251e;
  color: var(--paper);
}

.founder-gallery {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.founder-track {
  display: flex;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.founder-track::-webkit-scrollbar {
  display: none;
}

.founder-photo {
  flex: 0 0 100%;
  width: 100%;
  height: min(72vw, 760px);
  object-fit: cover;
  object-position: center;
  border-radius: 8px;
  scroll-snap-align: start;
}

.gallery-button {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(251, 244, 230, 0.54);
  border-radius: 999px;
  background: rgba(36, 29, 22, 0.58);
  color: var(--paper);
  cursor: pointer;
  font-size: 2rem;
  line-height: 1;
  transform: translateY(-50%);
}

.gallery-prev {
  left: 16px;
}

.gallery-next {
  right: 16px;
}

.about-copy {
  max-width: 760px;
}

.about-copy p {
  margin: 24px 0 0;
  color: #d8cbb9;
}

.about-copy .eyebrow {
  color: #dca444;
}

.editorial-strip {
  display: grid;
  grid-template-columns: 1fr 1fr 0.82fr;
  gap: 0;
  background: var(--ink);
}

.editorial-strip img {
  width: 100%;
  height: clamp(360px, 48vw, 720px);
  object-fit: cover;
}

.editorial-strip img:nth-child(3) {
  object-position: center;
}

.education-section {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(320px, 1.28fr);
  align-items: start;
  gap: clamp(28px, 5vw, 74px);
  background:
    linear-gradient(130deg, rgba(89, 111, 78, 0.18), transparent 38%),
    #efe5d3;
}

.education-copy {
  position: sticky;
  top: 122px;
}

.education-copy p:not(.eyebrow) {
  max-width: 520px;
  color: var(--muted);
  font-size: clamp(1rem, 1.5vw, 1.18rem);
}

.education-poster {
  display: block;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.education-poster img {
  width: 100%;
  height: auto;
}

.cart-section {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(320px, 1.2fr);
  align-items: center;
  gap: clamp(28px, 5vw, 74px);
  background:
    linear-gradient(120deg, rgba(70, 90, 60, 0.18), transparent 40%),
    #e8ddc9;
}

.cart-copy p:not(.eyebrow) {
  max-width: 560px;
  color: var(--muted);
  font-size: clamp(1rem, 1.5vw, 1.18rem);
}

.restock-form {
  display: grid;
  gap: 16px;
  padding: clamp(24px, 4vw, 42px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 250, 241, 0.9);
  box-shadow: 0 16px 44px rgba(31, 39, 34, 0.08);
}

.restock-form label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.restock-form input,
.restock-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px 16px;
  color: var(--ink);
  background: #fffdf8;
  font: inherit;
  letter-spacing: 0;
  text-transform: none;
}

.restock-form textarea {
  resize: none;
}

.character-note {
  margin: -4px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.restock-dialog {
  width: min(92vw, 560px);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0;
  color: var(--ink);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.restock-dialog::backdrop {
  background: rgba(36, 29, 22, 0.62);
  backdrop-filter: blur(6px);
}

.dialog-close-form {
  position: absolute;
  top: 12px;
  right: 12px;
}

.dialog-close-form button {
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fffdf8;
  color: var(--ink);
  cursor: pointer;
  font-size: 1.5rem;
  line-height: 1;
}

.dialog-copy {
  padding: clamp(26px, 4vw, 42px) clamp(24px, 4vw, 42px) 0;
}

.dialog-copy h2 {
  font-size: clamp(2.2rem, 5vw, 4rem);
}

.dialog-copy p:last-child {
  color: var(--muted);
}

.restock-dialog .restock-form {
  border: 0;
  border-radius: 0 0 8px 8px;
  box-shadow: none;
}

.contact-section {
  background:
    linear-gradient(90deg, rgba(109, 69, 40, 0.12), transparent 38%),
    linear-gradient(270deg, rgba(89, 111, 78, 0.2), transparent 42%),
    var(--paper);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.contact-panel {
  min-height: 220px;
  padding: clamp(28px, 4vw, 48px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.76);
}

.contact-label {
  margin: 0 0 18px;
  color: var(--muted);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.email-link {
  display: inline-block;
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(1.55rem, 3vw, 3.2rem);
  font-weight: 700;
  overflow-wrap: anywhere;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.social-links a {
  display: inline-flex;
  width: 58px;
  height: 58px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-weight: 900;
  font-size: 1.18rem;
  transition: transform 180ms ease, background 180ms ease;
}

.social-links a:hover,
.social-links a:focus-visible {
  background: var(--coral);
  transform: translateY(-3px);
}

.site-footer {
  padding: 28px clamp(20px, 5vw, 80px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  background: var(--paper);
}

.site-footer p {
  margin: 0;
}

@media (max-width: 820px) {
  .menu-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    right: 16px;
    left: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px;
    border: 1px solid rgba(255, 222, 99, 0.5);
    border-radius: 8px;
    background: #b91d2b;
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 14px 10px;
  }

  .cart-link {
    width: 100%;
    justify-content: flex-start;
    border-radius: 8px;
    padding-left: 10px;
  }

  .hero,
  .about-section,
  .contact-grid,
  .editorial-strip,
  .education-section,
  .cart-section {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    justify-content: flex-start;
    padding-top: clamp(110px, 24vw, 190px);
    background-position: 38% center;
  }

  .product-card {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .product-card img {
    height: 360px;
  }

  .product-description {
    opacity: 1;
    transform: none;
  }

  .founder-photo {
    height: min(120vw, 720px);
  }

  .education-copy {
    position: static;
  }

  .hover-note {
    position: static;
    margin-top: 22px;
  }
}

@media (max-width: 520px) {
  .hero {
    min-height: calc(100vh - 92px);
    background-position: 34% center;
  }

  .hero-logo-heading {
    width: min(100%, 330px);
  }

  .product-card img {
    height: 280px;
  }

  .button {
    width: 100%;
  }
}
