/* MUL × Dhaka — palette + type from Brand_Kit_MulDhaka/BRAND_KIT.md (matches the decks) */
:root {
  --crimson: #C32B3D;   /* primary accent */
  --blue:    #1F3D6D;   /* secondary */
  --saffron: #E08A2E;   /* warm accent */
  --cream:   #F7F1E6;   /* surface */
  --page:    #EBE3D5;   /* page background */
  --ink:     #21201E;   /* text / dark bg */
  --muted:   #6B6357;   /* muted text */
  --gold:    #F2C879;   /* on crimson/dark */
  --maxw: 1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: "Space Grotesk", "Inter", sans-serif;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
}

.mono, .eyebrow, .label {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.72rem;
}

a { color: var(--crimson); }

/* ---- Dhaka bands ---- */
.band {
  height: 22px;
  background: url("/assets/band_thin.png") repeat-x center / auto 22px;
}
.band--crown {
  height: 40px;
  background: url("/assets/band_crown.png") repeat-x center / auto 40px;
}

/* ---- Top bar / wordmark ---- */
.topbar {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 22px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.wordmark { display: flex; flex-direction: column; text-decoration: none; }
.wordmark .name {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 600;
  font-size: 1.7rem;
  letter-spacing: 0.28em;
  color: var(--ink);
  padding-left: 0.28em; /* optical: balance the tracking */
}
.wordmark .pron {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  color: var(--muted);
  text-transform: uppercase;
}
.nav a {
  font-family: "IBM Plex Mono", monospace;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  color: var(--ink);
  text-decoration: none;
  margin-left: 22px;
}
.nav a:hover { color: var(--crimson); }

/* ---- Layout ---- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
section { padding: 64px 0; }

/* ---- Hero ---- */
.hero {
  background: var(--cream);
  border-bottom: 3px solid var(--ink);
}
.hero .eyebrow { color: var(--crimson); display: block; margin-bottom: 20px; }
.hero h1 { font-size: clamp(2.2rem, 5.2vw, 3.9rem); max-width: 16ch; }
.hero .sub {
  font-size: 1.2rem;
  color: var(--muted);
  max-width: 46ch;
  margin: 22px 0 34px;
}
.mark-hills {
  width: 92px; height: auto; margin-bottom: 8px; opacity: 0.95;
}

/* ---- Email capture ---- */
.capture { display: flex; gap: 10px; flex-wrap: wrap; max-width: 520px; }
.capture input[type="email"] {
  flex: 1 1 260px;
  padding: 15px 16px;
  border: 2px solid var(--ink);
  border-radius: 2px;
  background: #fff;
  font-size: 1rem;
  font-family: "Inter", sans-serif;
}
.capture input[type="email"]:focus { outline: none; border-color: var(--crimson); }
.btn {
  padding: 15px 26px;
  border: 2px solid var(--crimson);
  background: var(--crimson);
  color: var(--gold);
  font-family: "IBM Plex Mono", monospace;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.82rem;
  border-radius: 2px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.btn:hover { background: var(--blue); border-color: var(--blue); color: #fff; }
.form-note { font-size: 0.85rem; color: var(--muted); margin-top: 12px; }
.form-msg { margin-top: 14px; font-weight: 600; min-height: 1.2em; }
.form-msg.ok { color: var(--blue); }
.form-msg.err { color: var(--crimson); }

/* ---- Moat cards ---- */
.moat { background: var(--page); }
.moat h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); max-width: 20ch; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 34px; }
.card {
  background: var(--cream);
  border: 2px solid var(--ink);
  border-radius: 3px;
  padding: 26px 22px;
}
.card .label { color: var(--crimson); display: block; margin-bottom: 10px; }
.card h3 { font-size: 1.15rem; }
.card p { color: var(--muted); font-size: 0.97rem; margin: 0; }

/* ---- About ---- */
.about-hero { background: var(--blue); color: var(--cream); }
.about-hero .eyebrow { color: var(--gold); }
.about-hero h1 { color: #fff; font-size: clamp(2rem, 4.6vw, 3.2rem); max-width: 18ch; }
.about-hero .sub { color: #E7DECB; max-width: 52ch; }
.prose { max-width: 66ch; }
.prose p { margin: 0 0 1.15em; }
.prose h2 { font-size: 1.5rem; margin-top: 1.6em; color: var(--crimson); }
.devanagari-note {
  font-family: "IBM Plex Mono", monospace;
  color: var(--muted);
  font-size: 0.85rem;
  border-left: 3px solid var(--saffron);
  padding-left: 14px;
  margin: 26px 0;
}
.lanes { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 24px; }
.lane { background: var(--cream); border: 2px solid var(--ink); border-radius: 3px; padding: 22px; }
.lane .label { color: var(--crimson); display: block; margin-bottom: 8px; }
.lane h3 { font-size: 1.1rem; margin-bottom: 6px; }
.lane p { color: var(--muted); font-size: 0.95rem; margin: 0; }

/* ---- Footer ---- */
footer { background: var(--ink); color: var(--cream); padding: 40px 0; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px; align-items: center; }
footer .fine { color: #9C948685; }
footer .mono { color: #B9AF9E; }
footer a { color: var(--gold); text-decoration: none; }

.disclaimer {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  color: #8A8272;
  text-transform: uppercase;
  margin-top: 8px;
}

/* ---- Story band (Section 1) ---- */
.story-band { background: var(--blue); color: var(--cream); }
.story-band .eyebrow { color: var(--gold); display: block; margin-bottom: 20px; }
.story-band h2 { color: #fff; font-size: clamp(1.7rem, 3.8vw, 2.7rem); max-width: 22ch; }
.story-band p { max-width: 56ch; margin: 1em 0; color: var(--cream); }
.story-source { color: var(--gold); font-style: italic; }
.story-mul {
  font-family: "IBM Plex Mono", monospace;
  color: var(--gold);
  text-transform: none;
  letter-spacing: 0;
  font-size: inherit;
  font-weight: 400;
}
.story-link {
  display: inline-block;
  margin-top: 16px;
  font-family: "IBM Plex Mono", monospace;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  color: var(--gold);
  text-decoration: none;
}
.story-link:hover { text-decoration: underline; }

/* ---- First lot (Section 2) ---- */
.firstlot { background: var(--cream); }
.firstlot .eyebrow { color: var(--crimson); display: block; margin-bottom: 20px; }
.firstlot h2 { font-size: clamp(1.7rem, 3.8vw, 2.7rem); }
.firstlot p { max-width: 54ch; color: var(--muted); margin: 1em 0 1.6em; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  font-family: "IBM Plex Mono", monospace;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.68rem;
  border: 2px solid var(--ink);
  border-radius: 2px;
  padding: 8px 14px;
  color: var(--ink);
}

/* ---- CTA band (Section 3) ---- */
.cta-band { background: var(--ink); color: var(--cream); text-align: center; }
.cta-band .wrap { display: flex; flex-direction: column; align-items: center; }
.cta-band h2 { color: #fff; font-size: clamp(1.7rem, 3.8vw, 2.7rem); }
.cta-band p { color: #B9AF9E; max-width: 50ch; margin: 1em 0 2em; }
.btn--gold {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--ink);
  text-decoration: none;
}
.btn--gold:hover { background: #e6b86a; border-color: #e6b86a; color: var(--ink); }

/* ---- Shop page ---- */
.shop-hero { background: var(--page); }
.shop-hero .eyebrow { display: block; color: var(--crimson); margin-bottom: 16px; }
.shop-hero h2 { font-size: clamp(1.7rem, 3.8vw, 2.7rem); margin-bottom: 48px; }

.product-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 36px;
  max-width: 400px;
  margin: 0 auto;
}
.bag-wrap {
  position: relative;
  display: inline-block;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
}
.bag-wrap:focus-visible { outline: 2px solid var(--crimson); outline-offset: 4px; }
.bag-svg { filter: grayscale(1) opacity(0.55); display: block; }
.sold-out-ribbon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-25deg);
  background: var(--crimson);
  color: var(--cream);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.9rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 11px 44px;
  white-space: nowrap;
  pointer-events: none;
}
.product-info { text-align: center; width: 100%; }
.product-name { font-size: 1.2rem; margin-bottom: 8px; }
.product-sub { color: var(--muted); font-size: 0.95rem; margin: 0 0 14px; }
.product-price {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 18px;
}
.sold-out-label {
  display: inline-block;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cream);
  background: var(--crimson);
  padding: 6px 14px;
  border-radius: 2px;
  margin-bottom: 16px;
}
.open-notify { width: 100%; margin-top: 4px; }

/* ---- Notify modal ---- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(33, 32, 30, 0.72);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 24px;
}
.modal-backdrop[hidden] { display: none; }
.modal-card {
  background: var(--cream);
  max-width: 520px;
  width: 100%;
  border-radius: 3px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 8px 40px rgba(0,0,0,0.35);
}
.modal-band { flex-shrink: 0; }
.modal-close {
  position: absolute;
  top: 28px;
  right: 18px;
  background: none;
  border: none;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  color: var(--muted);
  padding: 4px 8px;
  z-index: 1;
}
.modal-close:hover { color: var(--crimson); }
.modal-body { padding: 28px 36px 36px; }
.modal-body .eyebrow { display: block; color: var(--crimson); margin-bottom: 14px; }
.modal-body h2 { font-size: 1.5rem; margin-bottom: 12px; }
.modal-body > p { color: var(--muted); font-size: 0.95rem; margin: 0 0 26px; max-width: 46ch; }
.modal-form { display: flex; flex-direction: column; align-items: stretch; gap: 10px; }
.modal-form input[type="email"] {
  flex: none;
  height: 48px;
  padding: 0 16px;
  border: 2px solid var(--ink);
  border-radius: 2px;
  background: #fff;
  font-size: 1rem;
  font-family: "Inter", sans-serif;
  width: 100%;
  box-sizing: border-box;
}
.modal-form input[type="email"]:focus { outline: none; border-color: var(--crimson); }
.modal-fine { font-size: 0.8rem; color: var(--muted); margin: 14px 0 0; }
.modal-msg { min-height: 1.2em; margin-top: 10px; font-weight: 600; }
.modal-msg.ok { color: var(--blue); }
.modal-msg.err { color: var(--crimson); }

@media (max-width: 720px) {
  .cards, .lanes { grid-template-columns: 1fr; }
  .nav a:first-child { margin-left: 0; }
  section { padding: 48px 0; }
  .modal-body { padding: 22px 22px 30px; }
  .sold-out-ribbon { font-size: 0.75rem; padding: 9px 28px; }
}
/* ================================================================
   ABOUT PAGE — story sections, photography, brew guide, founders
   Uses only the existing brand vars. Append to styles.css.
   ================================================================ */

/* Crimson variant of the eyebrow, for use on light backgrounds */
.eyebrow--crimson { color: var(--crimson); }
.prose .eyebrow,
.loves .eyebrow,
.brew .eyebrow,
.founders .eyebrow,
.split-text .eyebrow { display: block; margin-bottom: 18px; }
.loves .eyebrow,
.brew .eyebrow,
.founders .eyebrow,
.split-band .eyebrow { color: var(--crimson); }

/* ---- Photography ---- */
.photo { margin: 0; }
.photo img {
  display: block;
  width: 100%;
  height: auto;
  border: 2px solid var(--ink);
  border-radius: 3px;
}
.photo figcaption {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-top: 10px;
  line-height: 1.5;
}

/* Full-bleed hero photograph under the about hero */
.photo--hero { position: relative; }
.photo--hero img {
  border-left: none;
  border-right: none;
  border-radius: 0;
  max-height: 460px;
  object-fit: cover;
}
.photo--hero figcaption {
  max-width: var(--maxw);
  margin: 12px auto 0;
  padding: 0 24px;
}

.photo--portrait img { aspect-ratio: 1 / 1; object-fit: cover; }

/* Woven dhaka photograph used as a divider band */
.band-photo {
  height: 64px;
  background-size: auto 64px;
  background-repeat: repeat-x;
  background-position: center;
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
}

/* ---- (c) Why we love coffee ---- */
.loves { background: var(--cream); border-top: 3px solid var(--ink); border-bottom: 3px solid var(--ink); }
.loves h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); max-width: 22ch; }
.loves-intro { max-width: 60ch; color: var(--muted); margin: 0 0 30px; }
.loves-outro { max-width: 58ch; color: var(--muted); margin: 26px 0 0; }
.loves .lane p { font-size: 0.97rem; }

/* ---- (e)/(f) Text + photo split sections ---- */
.split-band { background: var(--page); }
.split-band--cream { background: var(--cream); border-top: 3px solid var(--ink); border-bottom: 3px solid var(--ink); }
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px;
  align-items: center;
}
.split--reverse .split-text { order: 2; }
.split--reverse .split-media { order: 1; }
.split-text h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); max-width: 18ch; }
.split-text p { color: var(--muted); margin: 0 0 1.1em; max-width: 52ch; }
.split-kicker {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  color: var(--ink) !important;
  border-left: 3px solid var(--saffron);
  padding-left: 14px;
  margin-top: 22px !important;
}
.split-media { display: grid; gap: 20px; }

/* ---- (g) Brew guide ---- */
.brew { background: var(--page); }
.brew h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); max-width: 20ch; }
.brew-intro { color: var(--muted); margin: 0 0 34px; }
.brew-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 44px;
  align-items: start;
}
.brew-steps {
  list-style: none;
  counter-reset: brew;
  margin: 0;
  padding: 0;
}
.brew-steps li {
  counter-increment: brew;
  position: relative;
  padding-left: 52px;
  margin-bottom: 26px;
}
.brew-steps li::before {
  content: counter(brew, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 2px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  color: var(--gold);
  background: var(--crimson);
  border-radius: 2px;
  padding: 5px 8px;
}
.brew-steps h3 { font-size: 1.05rem; margin: 0 0 6px; }
.brew-steps p { color: var(--muted); font-size: 0.97rem; margin: 0; }
.brew-steps strong { color: var(--ink); }

/* ---- (h) Founders ---- */
.founders { background: var(--cream); }
.founders h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); }
.founders-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 40px;
  align-items: start;
  margin-top: 34px;
}
.founders-bios { display: grid; gap: 20px; }
.founders .lane { background: var(--page); }
.bio-quirk {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.76rem;
  line-height: 1.6;
  color: var(--crimson) !important;
  margin-top: 12px !important;
  border-top: 1px dashed #C9BFAC;
  padding-top: 12px;
}
.founders-cta { margin-top: 38px; color: var(--muted); }

/* ---- Responsive ---- */
@media (max-width: 860px) {
  .split,
  .brew-grid,
  .founders-grid { grid-template-columns: 1fr; gap: 30px; }
  .split--reverse .split-text,
  .split--reverse .split-media { order: initial; }
  .photo--hero img { max-height: 300px; }
  .band-photo { height: 44px; background-size: auto 44px; }
  .founders-grid .photo--portrait { max-width: 380px; }
}
