:root {
  --amber: #d4a15a;
  --amber-hot: #e8b86a;
  --espresso: #140e0a;
  --espresso-2: #1e1510;
  --foam: #f2ebe0;
  --muted: #a89880;
  --line: color-mix(in srgb, var(--foam) 14%, transparent);
  --radius: 1.5rem;
  --font-display: "Fraunces", serif;
  --font-body: "IBM Plex Sans", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--espresso);
  color: var(--foam);
  line-height: 1.55;
  min-height: 100vh;
  overflow-x: hidden;
}

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

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

.hp {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  overflow: hidden;
}

/* Header */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.5rem;
  transition: background 0.3s, border-color 0.3s;
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
  background: color-mix(in srgb, var(--espresso) 88%, transparent);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}

.logo {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: 0.12em;
  font-size: 0.95rem;
}

.site-header nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.1rem;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  justify-content: center;
}

.header-cta {
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: var(--amber);
  color: var(--espresso);
  padding: 0.55rem 1rem;
  border-radius: 999px;
  font-weight: 600;
}

.burger {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 0.4rem;
}

.burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
}

@media (max-width: 920px) {
  .site-header nav {
    position: fixed;
    inset: 0;
    background: var(--espresso);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.75rem;
    font-size: 1rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
  }
  .site-header nav.is-open {
    opacity: 1;
    pointer-events: auto;
  }
  .header-cta {
    display: none;
  }
  .burger {
    display: flex;
    z-index: 60;
  }
}

/* Hero */
.hero {
  position: relative;
  min-height: 100svh;
  padding: 5.5rem 1.25rem 2rem;
  display: flex;
}

.hero__inner {
  position: relative;
  z-index: 1;
  flex: 1;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 1rem;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.eyebrow {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--amber);
  font-weight: 600;
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(4.5rem, 18vw, 11rem);
  line-height: 0.85;
  letter-spacing: -0.04em;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.05em;
}

.hero__word--accent {
  color: var(--amber);
}

.hero__shot {
  position: relative;
  margin: 0.5rem 0;
  border-radius: var(--radius);
  overflow: hidden;
  max-height: 48vh;
}

.hero__shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 240px;
  filter: saturate(0.85) contrast(1.05);
}

.hero__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.25rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--line);
}

.hero__bar > p {
  max-width: 36ch;
  font-size: 1.05rem;
  color: color-mix(in srgb, var(--foam) 82%, transparent);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  background: var(--amber);
  color: var(--espresso);
  padding: 0.9rem 1.4rem;
  border-radius: 999px;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
}

.btn:hover {
  background: var(--amber-hot);
}

.link {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--amber);
  padding-bottom: 0.15rem;
  color: var(--amber);
}

/* Sections shared */
.sec-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.75rem;
}

.sec-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 4.5vw, 3.2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.05;
}

.sec-head p {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Origins */
.origins {
  padding: 3.5rem 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

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

.origins__grid article {
  background: var(--espresso-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.origins__grid img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

.origins__grid div {
  padding: 1.25rem 1.2rem 1.5rem;
  display: grid;
  gap: 0.4rem;
}

.origins__grid span {
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber);
}

.origins__grid h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
}

.origins__grid p {
  font-size: 0.9rem;
  color: var(--muted);
}

@media (max-width: 860px) {
  .origins__grid {
    grid-template-columns: 1fr;
  }
}

/* Roast */
.roast {
  padding: 1.25rem;
}

.roast__panel {
  background: linear-gradient(160deg, #2a1c12 0%, var(--espresso-2) 55%, #0c0907 100%);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 0.25rem);
  padding: clamp(1.5rem, 4vw, 2.75rem);
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  gap: 2rem;
}

.roast__copy h2 {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 4vw, 2.8rem);
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.roast__copy p {
  max-width: 48ch;
  color: var(--muted);
}

.roast__steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.85rem;
}

.roast__steps li {
  border-top: 2px solid var(--amber);
  padding-top: 1rem;
}

.roast__steps span {
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  color: var(--amber);
  font-weight: 600;
}

.roast__steps h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin: 0.45rem 0;
  font-weight: 700;
}

.roast__steps p {
  font-size: 0.85rem;
  color: var(--muted);
}

.roast__media {
  border-radius: 1.1rem;
  overflow: hidden;
  max-height: 360px;
}

.roast__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 220px;
}

@media (max-width: 800px) {
  .roast__steps {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {
  .roast__steps {
    grid-template-columns: 1fr;
  }
}

/* Beans */
.beans {
  padding: 3.5rem 0 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.beans .sec-head {
  padding: 0 1.5rem;
}

.beans__track {
  display: flex;
  gap: 1rem;
  padding: 0 1.5rem 1rem;
}

.bean {
  flex: 0 0 min(72vw, 280px);
  background: var(--espresso-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.bean img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.bean div {
  padding: 1.1rem 1.15rem 1.35rem;
  display: grid;
  gap: 0.25rem;
}

.bean h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
}

.bean p {
  font-size: 0.8rem;
  color: var(--muted);
}

.bean em {
  font-style: normal;
  color: var(--amber);
  font-weight: 600;
  font-size: 0.9rem;
  margin-top: 0.35rem;
}

/* Brew */
.brew {
  padding: 3rem 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

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

.brew__grid article {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem 1.2rem;
  background: color-mix(in srgb, var(--foam) 3%, transparent);
}

.brew__grid span {
  font-size: 0.65rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--amber);
}

.brew__grid h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin: 0.5rem 0 1rem;
  font-weight: 700;
}

.brew__grid ul {
  list-style: none;
  display: grid;
  gap: 0.4rem;
  font-size: 0.88rem;
  color: var(--muted);
}

.brew__grid li::before {
  content: "· ";
  color: var(--amber);
}

@media (max-width: 900px) {
  .brew__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 520px) {
  .brew__grid {
    grid-template-columns: 1fr;
  }
}

/* Stats */
.stats-band {
  margin: 1rem 1.5rem 2rem;
  max-width: 1170px;
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--espresso-2);
}

.stats-band > div {
  padding: 1.5rem 1.15rem;
  border-right: 1px solid var(--line);
}

.stats-band > div:last-child {
  border-right: 0;
}

.stats-band strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 700;
  color: var(--amber);
  margin-bottom: 0.35rem;
}

.stats-band span:last-child {
  font-size: 0.75rem;
  color: var(--muted);
  display: block;
}

@media (max-width: 700px) {
  .stats-band {
    grid-template-columns: 1fr 1fr;
  }
  .stats-band > div:nth-child(2) {
    border-right: 0;
  }
  .stats-band > div:nth-child(1),
  .stats-band > div:nth-child(2) {
    border-bottom: 1px solid var(--line);
  }
}

/* Cafes */
.cafes {
  padding: 3rem 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

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

.cafes__grid article {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--espresso-2);
}

.cafes__grid img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
}

.cafes__grid div {
  padding: 1.1rem 1.15rem 1.3rem;
}

.cafes__grid h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
}

.cafes__grid p {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 0.25rem;
}

@media (max-width: 800px) {
  .cafes__grid {
    grid-template-columns: 1fr;
  }
}

/* Voices */
.voices {
  padding: 2rem 0 3rem;
  max-width: 1200px;
  margin: 0 auto;
}

.voices .sec-head {
  padding: 0 1.5rem;
}

.voices__track {
  display: flex;
  gap: 1rem;
  padding: 0 1.5rem;
}

.voices__track blockquote {
  flex: 0 0 min(80vw, 360px);
  background: color-mix(in srgb, var(--amber) 8%, var(--espresso-2));
  border: 1px solid color-mix(in srgb, var(--amber) 28%, transparent);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
}

.voices__track p {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 500;
  line-height: 1.35;
  margin-bottom: 1.25rem;
}

.voices__track cite {
  font-style: normal;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--muted);
}

/* Subscribe */
.subscribe {
  padding: 1.25rem 1.25rem 2.5rem;
}

.subscribe__panel {
  max-width: 1100px;
  margin: 0 auto;
  background: var(--foam);
  color: var(--espresso);
  border-radius: calc(var(--radius) + 0.25rem);
  padding: clamp(1.75rem, 4vw, 3rem);
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 2.5rem;
}

.subscribe__panel h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.6rem);
  font-weight: 700;
  line-height: 1.1;
}

.subscribe__panel > div > p {
  margin: 0.75rem 0 1.25rem;
  color: color-mix(in srgb, var(--espresso) 65%, transparent);
  max-width: 40ch;
}

.subscribe__panel ul {
  list-style: none;
  display: grid;
  gap: 0.45rem;
  font-size: 0.9rem;
}

.subscribe__panel li::before {
  content: "→ ";
  color: #a06b2a;
}

form {
  display: grid;
  gap: 0.7rem;
}

form label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--espresso) 55%, transparent);
  font-weight: 500;
}

form input,
form textarea,
form select {
  font: inherit;
  border: 1px solid color-mix(in srgb, var(--espresso) 18%, transparent);
  background: #fff;
  border-radius: 0.75rem;
  padding: 0.9rem 1rem;
  color: var(--espresso);
  letter-spacing: 0;
  text-transform: none;
  width: 100%;
}

form select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--espresso) 50%),
    linear-gradient(135deg, var(--espresso) 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 12px) 50%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

form input:focus,
form textarea:focus,
form select:focus {
  outline: 2px solid var(--amber);
  outline-offset: 1px;
}

form button {
  font: inherit;
  background: var(--espresso);
  color: var(--foam);
  border: 0;
  border-radius: 999px;
  padding: 1rem 1.5rem;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  cursor: pointer;
  justify-self: start;
}

form button:hover {
  background: #2a1c12;
}

.ok {
  color: #7a5420;
  font-weight: 600;
  font-size: 0.9rem;
}

.form-err {
  color: #b00020;
  font-size: 0.85rem;
}

@media (max-width: 800px) {
  .subscribe__panel {
    grid-template-columns: 1fr;
  }
}

.pc-credit {
  color: var(--foam);
  max-width: 1200px;
  margin: 0 auto;
}

/* Signature: amber heat on brew cards */
.brew__grid article {
  background:
    radial-gradient(120% 80% at 100% 0%, color-mix(in srgb, var(--amber) 14%, transparent), transparent 55%),
    color-mix(in srgb, var(--foam) 3%, transparent);
}
.origins__grid span {
  border-bottom: 1px solid color-mix(in srgb, var(--amber) 40%, transparent);
  padding-bottom: 0.25rem;
  display: inline-block;
}

.marquee {
  color: var(--foam);
  border-color: var(--line);
}

.quiz-section, .stage-section { padding: clamp(3rem, 8vw, 5.5rem) var(--pad, 1.25rem); max-width: 920px; margin: 0 auto; }

.bean__add {
  margin-top: 0.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 0.9rem;
  border: 1px solid currentColor;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 0.85rem;
  cursor: pointer;
  position: relative;
  z-index: 3;
  pointer-events: auto;
  transition: background 0.2s, color 0.2s;
}
.bean__add:hover,
.bean__add.is-added {
  background: var(--accent, #d4a15a);
  color: #1a120a;
  border-color: transparent;
}
.site-header .bag {
  margin-left: 0.75rem;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  display: inline-flex;
  gap: 0.35rem;
  align-items: center;
  position: relative;
  z-index: 5;
  pointer-events: auto;
}
.site-header .bag span {
  min-width: 1.2rem;
  height: 1.2rem;
  border-radius: 999px;
  background: var(--accent, #d4a15a);
  color: #1a120a;
  display: inline-grid;
  place-items: center;
  font-size: 0.7rem;
  font-weight: 700;
}
