/* Rishi Coffee — site styles */
:root {
  --paper: #FAF8F3;
  --ink: #141414;
  --muted: #3A3A3A;
  --line: #E6E0D4;
  --latte: #EFE7DA;
  --white: #FFFFFF;
  --accent: #1E4A34;
  --matcha: #2F6B3F;
  --matcha-bg: #E8F0E2;
  --serif: 'Fraunces', Georgia, serif;
  --sans: 'Outfit', system-ui, sans-serif;
  --radius: 24px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--ink); }
a:hover { color: var(--accent); }
h1, h2, h3 { font-family: var(--serif); font-weight: 700; letter-spacing: -0.03em; line-height: 1; margin: 0; }
p { margin: 0; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { max-width: 1280px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.section { padding-top: 96px; padding-bottom: 96px; }
.h-xl { font-size: clamp(52px, 7.5vw, 104px); line-height: 0.95; }
.h-lg { font-size: clamp(40px, 5vw, 64px); }
.h-md { font-size: clamp(34px, 4.5vw, 56px); }
.eyebrow { font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; font-size: 13px; color: var(--accent); margin-bottom: 14px; }
.muted { color: var(--muted); }
.rule { width: 120px; height: 2px; background: var(--ink); margin: 32px 0 20px; }
.split { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; }
.split > * { flex: 1 1 440px; min-width: 0; }
.grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 28px; border-radius: 999px;
  font: 600 17px var(--sans); text-decoration: none; cursor: pointer;
  border: 1.5px solid var(--ink); background: transparent; color: var(--ink);
}
.btn-lg { min-height: 56px; padding: 0 32px; font-size: 18px; }
.btn-dark { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn-dark:hover { color: var(--paper); background: #2a2a2a; }
.btn-accent { background: var(--accent); color: var(--paper); border-color: var(--accent); }
.btn-accent:hover { color: var(--paper); filter: brightness(1.15); }
.btn-light { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.btn:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

/* Announcement + header */
.announce { background: var(--accent); color: var(--paper); text-align: center; padding: 10px 16px; font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; }
.header { position: sticky; top: 0; z-index: 20; background: rgba(250, 248, 243, 0.94); backdrop-filter: blur(8px); border-bottom: 1px solid transparent; }
.header.scrolled { border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 16px; padding-bottom: 16px; }
.logo { display: inline-flex; align-items: flex-start; gap: 2px; text-decoration: none; color: var(--ink); }
.logo span { font-family: var(--serif); font-weight: 800; font-size: 24px; line-height: 0.95; text-align: center; }
.nav { display: flex; gap: 28px; font-weight: 500; }
.nav a { text-decoration: none; }
.nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.cart-btn { min-height: 44px; padding: 0 20px; font-size: 16px; }
.menu-btn { display: none; min-height: 44px; min-width: 44px; padding: 0; border: 1.5px solid var(--ink); border-radius: 999px; background: transparent; cursor: pointer; }
@media (max-width: 760px) {
  .menu-btn { display: inline-flex; align-items: center; justify-content: center; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; gap: 0; background: var(--paper); border-bottom: 1px solid var(--line); padding: 8px 24px 16px; }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; font-size: 20px; }
}

/* Hero */
.hero { padding-top: 24px; padding-bottom: 80px; }
.hero-media { position: relative; display: flex; justify-content: center; }
.hero-media img { width: 100%; max-width: 480px; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 28px; }
.badge { position: absolute; left: 0; bottom: 36px; width: 120px; height: 120px; }
.badge i { position: absolute; inset: 0; background: var(--accent); border-radius: 10px; }
.badge i:nth-child(2) { transform: rotate(30deg); }
.badge i:nth-child(3) { transform: rotate(60deg); }
.badge b { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--paper); font-weight: 600; font-size: 11px; letter-spacing: 0.12em; line-height: 1.2; }
.badge b span { font-size: 17px; font-weight: 800; letter-spacing: 0.06em; }
.lead { font-size: 22px; }

/* Ingredient strip */
.strip { background: var(--ink); color: var(--paper); }
.strip .wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 32px; padding-top: 56px; padding-bottom: 56px; }
.strip .name strong { display: block; font-weight: 800; font-size: 44px; line-height: 1; letter-spacing: -0.02em; }
.strip .name span { display: block; font-size: 32px; line-height: 1; }
.strip .item { border-top: 1px solid rgba(250, 248, 243, 0.35); padding-top: 14px; }
.strip h2 { font-size: 26px; letter-spacing: -0.01em; }
.strip p { margin-top: 6px; opacity: 0.8; }

/* Product cards */
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 40px; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.card.featured { border: 2px solid var(--accent); }
.card img.photo { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 16px; }
.card h3 { font-size: 26px; letter-spacing: -0.01em; margin-top: 4px; }
.card .row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.price { font-weight: 600; font-size: 20px; }
.price small { font-size: 15px; font-weight: 500; color: var(--accent); }
.pill { font-size: 12px; font-weight: 600; letter-spacing: 0.08em; padding: 6px 12px; border-radius: 999px; background: var(--accent); color: var(--paper); }
.pill.outline { background: transparent; color: var(--ink); border: 1.5px solid var(--ink); padding: 5px 12px; }
.pill.matcha { background: transparent; color: var(--matcha); border: 1.5px solid var(--matcha); padding: 5px 12px; }
.card .btn { margin-top: auto; }

/* Story teaser */
.tint { background: var(--latte); }
.photo-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.photo-pair img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 20px; }
.photo-pair img:nth-child(2) { margin-top: 48px; }
.body-lg { font-size: 19px; margin-top: 20px; }

/* Lineup */
.flavor { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.flavor.soon { border: 1.5px dashed var(--ink); }
.flavor.matcha { background: var(--matcha-bg); border: 1.5px dashed var(--matcha); }
.flavor h3 { font-size: 28px; letter-spacing: -0.01em; }
.flavor .label-img { width: 100%; max-width: 300px; align-self: center; aspect-ratio: 2 / 3; object-fit: contain; }
.flavor a.more { align-self: flex-start; font-weight: 600; }
.flavor.matcha a.more { color: var(--matcha); }
.mock-label { width: 100%; max-width: 300px; align-self: center; aspect-ratio: 2 / 3; background: var(--white); border-radius: 14px; padding: 22px 18px; display: flex; gap: 8px; }
.mock-label .left { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.mock-label .brand { font-family: var(--serif); font-weight: 800; font-size: 28px; line-height: 0.95; }
.mock-label .art { flex: 1 1 auto; margin: 14px 0; border-radius: 12px; background: var(--matcha); display: flex; align-items: center; justify-content: center; }
.mock-label .meta { font-size: 10px; font-weight: 500; border-bottom: 1px solid var(--ink); padding-bottom: 6px; }
.mock-label .ing { font-size: 11px; line-height: 1.5; margin-top: 6px; }
.mock-label .foot { font-size: 11px; font-weight: 600; border-top: 1px solid var(--ink); padding-top: 6px; margin-top: 8px; }
.mock-label .vert { writing-mode: vertical-rl; transform: rotate(180deg); display: flex; }
.mock-label .vert strong { font-weight: 800; font-size: 42px; line-height: 0.9; color: var(--matcha); }
.mock-label .vert span { font-size: 32px; line-height: 0.9; }

/* Nutrition */
.dark { background: var(--ink); color: var(--paper); }
.nutrition { max-width: 440px; margin: 0 auto; background: var(--white); border-radius: var(--radius); padding: 24px; color: var(--ink); }
.nutrition img { width: 100%; aspect-ratio: 2 / 3; object-fit: contain; }
.nutrition figcaption { text-align: center; font-weight: 600; margin-top: 12px; }
.fineprint { font-size: 14px; opacity: 0.75; margin-top: 24px; }

/* Reviews */
.reviews { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.review { margin: 0; background: var(--paper); border-radius: 20px; padding: 32px; display: flex; flex-direction: column; gap: 18px; }
.review blockquote { margin: 0; font-family: var(--serif); font-size: 22px; line-height: 1.3; }
.review figcaption { font-weight: 600; }

/* Instagram grid */
.ig-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; }
.ig-grid img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 16px; }
.ig-handle { font-weight: 600; font-size: 20px; color: var(--accent); }

/* Find us */
.find-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 40px; }
.find-card h2, .wholesale h2 { font-size: 40px; letter-spacing: -0.02em; }
.locations { list-style: none; margin: 22px 0 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.locations li { display: flex; flex-direction: column; }
.locations strong { font-weight: 600; }
.locations a { font-size: 15px; }
.wholesale { position: relative; overflow: hidden; border-radius: var(--radius); min-height: 320px; background: var(--accent); color: var(--paper); display: flex; flex-direction: column; justify-content: flex-end; }
.wholesale img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.28; }
.wholesale div { position: relative; padding: 40px; display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }

/* Drops */
.drops { background: var(--accent); color: var(--paper); }
.drop-form { display: flex; flex-direction: column; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-weight: 600; font-size: 15px; }
.field input { min-height: 52px; padding: 0 18px; border: 0; border-radius: 14px; font: 400 16px var(--sans); color: var(--ink); }
.drop-form .btn { margin-top: 6px; }
.drop-form .consent { font-size: 13px; opacity: 0.85; }
.form-status { font-weight: 600; min-height: 1.5em; }

/* Footer */
.footer { background: var(--ink); color: var(--paper); }
.footer a { color: var(--paper); }
.footer-inner { display: flex; flex-wrap: wrap; gap: 48px; justify-content: space-between; padding-top: 72px; padding-bottom: 40px; }
.footer-brand { font-family: var(--serif); font-weight: 800; font-size: 44px; line-height: 0.95; }
.footer-nav { display: flex; gap: 56px; flex-wrap: wrap; }
.footer-nav div { display: flex; flex-direction: column; gap: 10px; }
.copyright { font-size: 14px; opacity: 0.7; padding-bottom: 32px; }

/* Story page */
.portrait { position: relative; max-width: 520px; }
.portrait img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 30%; border-radius: 28px; }
.sticker { position: absolute; right: -8px; bottom: 28px; background: var(--paper); border: 1.5px solid var(--ink); border-radius: 999px; padding: 10px 18px; font-weight: 600; font-size: 15px; transform: rotate(-4deg); }
.quote-band { background: var(--accent); color: var(--paper); text-align: center; }
.quote-band p.q { font-family: var(--serif); font-style: italic; font-weight: 500; font-size: clamp(30px, 4vw, 48px); line-height: 1.2; max-width: 900px; margin: 0 auto; }
.quote-band p.by { margin-top: 28px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; font-size: 13px; opacity: 0.8; }
.subhead { font-family: var(--serif); font-weight: 600; font-size: clamp(24px, 3vw, 34px); line-height: 1.15; margin-top: 20px; }
.values { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 32px; }
.values div { border-top: 2px solid var(--ink); padding-top: 18px; }
.values h3 { font-size: 28px; letter-spacing: -0.01em; }
.values p { margin-top: 10px; color: var(--muted); }
.center { text-align: center; }
.center .btn-row { justify-content: center; }

/* Cart drawer */
.overlay { position: fixed; inset: 0; background: rgba(20, 20, 20, 0.45); opacity: 0; pointer-events: none; transition: opacity 0.25s; z-index: 40; }
.overlay.open { opacity: 1; pointer-events: auto; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(420px, 100%); background: var(--paper); z-index: 50; display: flex; flex-direction: column; transform: translateX(100%); transition: transform 0.3s ease; box-shadow: -8px 0 32px rgba(0, 0, 0, 0.12); }
.drawer.open { transform: translateX(0); }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { font-size: 30px; }
.icon-btn { min-width: 44px; min-height: 44px; border: 0; background: transparent; cursor: pointer; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; }
.icon-btn:hover { background: var(--latte); }
.drawer-body { flex: 1 1 auto; overflow-y: auto; padding: 8px 24px; }
.cart-empty { padding: 48px 0; text-align: center; color: var(--muted); }
.cart-empty .btn { margin-top: 20px; }
.line { display: grid; grid-template-columns: 72px 1fr auto; gap: 14px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); }
.line img { width: 72px; height: 90px; object-fit: cover; border-radius: 12px; }
.line h3 { font-size: 20px; letter-spacing: -0.01em; }
.line .unit { font-size: 14px; color: var(--muted); }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--ink); border-radius: 999px; margin-top: 8px; }
.qty button { min-width: 40px; min-height: 40px; border: 0; background: transparent; font: 600 18px var(--sans); cursor: pointer; border-radius: 999px; }
.qty span { min-width: 24px; text-align: center; font-weight: 600; }
.line .total { font-weight: 600; align-self: start; }
.line .remove { display: block; margin-top: 6px; font-size: 13px; color: var(--muted); background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; }
.drawer-foot { padding: 20px 24px calc(28px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 12px; }
.subtotal { display: flex; justify-content: space-between; font-size: 20px; font-weight: 600; }
.drawer-foot .note { font-size: 13px; color: var(--muted); }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 140%); background: var(--ink); color: var(--paper); padding: 14px 22px; border-radius: 999px; font-weight: 600; z-index: 60; transition: transform 0.3s ease, opacity 0.3s; opacity: 0; visibility: hidden; max-width: calc(100% - 32px); text-align: center; }
.toast.show { transform: translate(-50%, 0); opacity: 1; visibility: visible; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .drawer, .overlay, .toast { transition: none; }
}
