/* Kettlebird: a Woodstock roaster. Cream paper, roast ink, the billboard's lemon, real photographs of the drum, the farms and the cup. */
:root { --cream: #F6EFE4; --paper: #EDE2CF; --roast: #2A1A12; --lemon: #FFDD33; --huila: #B4452A; --yirga: #D9A441; --nyeri: #2F5D50;
  --serif: Fraunces, Georgia, serif; --sans: Geist, system-ui, sans-serif; --gut: clamp(20px, 5vw, 72px); --out: cubic-bezier(.16, 1, .3, 1); }
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--cream); color: var(--roast); font: 400 17px/1.55 var(--sans); overflow-x: clip; }
h1, h2, h3, p, dl, dd, ul, figure { margin: 0; padding: 0; }
h1, h2, h3 { font-family: var(--serif); font-optical-sizing: auto; font-weight: 500; letter-spacing: -.03em; line-height: .98; text-wrap: balance; }
h2 { font-size: clamp(38px, 5vw, 76px); }
p { text-wrap: pretty; }
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2.5px solid var(--roast); outline-offset: 3px; border-radius: 4px; }
.eyebrow { font: 600 13px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; }

.preview { margin: 0; padding: 8px var(--gut); background: var(--roast); color: rgb(246 239 228 / .85); font-size: 13px; text-align: center; }
.preview a { color: var(--lemon); font-weight: 500; }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 26px; border: 0; border-radius: 99px; background: var(--roast); color: var(--cream);
  font-size: 16px; font-weight: 600; text-decoration: none; transition: transform .35s var(--out), background .25s; }
.btn:hover { transform: translateY(-2px); background: #000; }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.btn--lemon { background: var(--lemon); color: var(--roast); } .btn--lemon:hover { background: #fff; }
.quiet { font-weight: 500; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 5px; }
.ghost { font-weight: 500; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 6px; color: var(--cream); }

/* ---- Nav ---- */
.nav { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: clamp(16px, 3vw, 40px); height: 68px; padding: 0 var(--gut); background: rgb(246 239 228 / .92);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: 0 1px 0 rgb(42 26 18 / .1); }
.nav__logo { font: 600 27px/1 var(--serif); letter-spacing: -.04em; text-decoration: none; }
.nav nav { display: flex; gap: clamp(16px, 2.4vw, 34px); margin-left: auto; font-size: 15px; font-weight: 500; }
.nav nav a { text-decoration: none; } .nav nav a:hover { text-decoration: underline; text-underline-offset: 5px; }
.nav__cart { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 8px 0 16px; border: 1.5px solid var(--roast); border-radius: 99px; background: transparent; font-size: 15px; font-weight: 600; }
.nav__cart i { display: grid; place-items: center; min-width: 26px; height: 26px; border-radius: 99px; background: var(--lemon); font-style: normal; font-size: 13px; }

/* ---- Hero: the drum, one big line, and this week's roast ticking ---- */
.hero { position: relative; display: grid; align-content: end; min-height: calc(100svh - 106px); padding: clamp(40px, 8vh, 96px) var(--gut) 0; color: var(--cream); background: #1a0f0a; overflow: clip; }
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, rgb(20 11 7 / .86), rgb(20 11 7 / .5) 48%, rgb(20 11 7 / .1) 80%), linear-gradient(180deg, rgb(20 11 7 / .15) 40%, rgb(20 11 7 / .72)); }
.hero__in { position: relative; z-index: 2; max-width: 1040px; padding-bottom: clamp(28px, 5vh, 56px); }
.hero__kicker { font: 600 13px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--lemon); }
.hero h1 { margin-top: 22px; font-size: clamp(60px, 9.6vw, 158px); line-height: .88; letter-spacing: -.05em; }
.hero h1 span { display: block; }
.hero h1 span:last-child { color: var(--lemon); font-style: italic; font-weight: 400; }
.hero__sub { max-width: 40ch; margin-top: 28px; font-size: clamp(18px, 1.5vw, 21px); color: rgb(246 239 228 / .9); }
.hero__acts { display: flex; align-items: center; gap: 28px; margin-top: 34px; flex-wrap: wrap; }
.hero__facts { position: relative; z-index: 2; display: flex; flex-wrap: wrap; gap: 10px clamp(20px, 4vw, 56px); margin: 0 calc(var(--gut) * -1); padding: 20px var(--gut); list-style: none; border-top: 1px solid rgb(246 239 228 / .22); background: rgb(20 11 7 / .38); font-size: 15px; color: rgb(246 239 228 / .85); }
.hero__facts b { margin-right: 6px; font: 600 22px/1 var(--serif); color: var(--cream); }
.stamp { position: absolute; z-index: 3; right: var(--gut); bottom: clamp(100px, 16vh, 170px); display: grid; justify-items: center; align-content: center; gap: 2px; width: clamp(210px, 22vw, 300px); aspect-ratio: 1; padding: 0 14%;
  border-radius: 50%; background: var(--lemon); color: var(--roast); text-align: center; rotate: -8deg; box-shadow: 0 30px 60px -20px rgb(0 0 0 / .7); }
.stamp__ring { position: absolute; inset: 0; animation: turn 40s linear infinite; }
.stamp__ring text { font: 600 11.5px/1 var(--sans); letter-spacing: .2em; fill: var(--roast); }
.stamp small { font: 500 12.5px/1.2 var(--sans); }
.stamp b { font: 600 clamp(26px, 2.8vw, 38px)/1.02 var(--serif); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.stamp b + b { font-family: var(--sans); font-weight: 600; font-size: clamp(20px, 2vw, 27px); letter-spacing: 0; }
@keyframes turn { to { rotate: 1turn; } }
.js .hero__img { animation: settle 1.8s var(--out) both; }
.js .hero h1 span { animation: rise 1s var(--out) both; } .js .hero h1 span:nth-child(2) { animation-delay: .1s; }
.js .hero__kicker, .js .hero__sub, .js .hero__acts { animation: rise .9s var(--out) .22s both; }
.js .stamp { animation: pop .9s var(--out) .45s both; }
@keyframes rise { from { opacity: 0; translate: 0 .5em; } }
@keyframes settle { from { scale: 1.08; } }
@keyframes pop { from { scale: .6; opacity: 0; } }

/* ---- The shelf ---- */
.coffee { padding: clamp(80px, 12vh, 140px) var(--gut); }
.head { display: flex; align-items: end; justify-content: space-between; gap: 24px 48px; flex-wrap: wrap; margin-bottom: clamp(36px, 6vh, 64px); }
.head p { max-width: 38ch; font-size: 18px; }
.shelf { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 36px); }
.bean { display: flex; flex-direction: column; }
.bean__pic { position: relative; aspect-ratio: 4 / 4.6; border-radius: 26px 26px 0 0; overflow: hidden; background: var(--c); }
.bean__pic img { width: 100%; height: 100%; object-fit: cover; transition: scale 1s var(--out); }
.bean:hover .bean__pic img { scale: 1.05; }
.bean__pic::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgb(20 11 7 / .5)); }
.bean__tag { position: absolute; z-index: 2; left: 16px; bottom: 16px; padding: 7px 13px; border-radius: 99px; background: var(--cream); font: 600 13px/1 var(--sans); }
.bean__body { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; padding: 20px 4px 0; border-top: 4px solid var(--c); }
.bean h3 { font-size: 36px; }
.bean__from { align-self: center; font-size: 15px; font-weight: 500; }
.bean__notes { grid-column: 1 / -1; color: rgb(42 26 18 / .78); }
.bean__buy { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; margin-top: 14px; }
.bean__buy b { font: 500 26px/1 var(--serif); }
.add { min-height: 44px; padding: 0 18px; border: 1.5px solid var(--roast); border-radius: 99px; background: transparent; font-weight: 600; font-size: 15px; transition: background .25s, color .25s; }
.add:hover { background: rgb(42 26 18 / .06); }
.add[aria-pressed="true"] { background: var(--roast); color: var(--cream); }

/* ---- The roast: the drum, full width ---- */
.roast { position: relative; display: grid; align-items: end; min-height: min(92vh, 820px); padding: var(--gut); color: var(--cream); overflow: clip; background: #1a0f0a; }
.roast__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }
.roast::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgb(20 12 8 / .08) 25%, rgb(20 12 8 / .86)); }
.roast__in { position: relative; z-index: 2; max-width: 760px; }
.roast__in .eyebrow { color: var(--lemon); }
.roast__in h2 { margin-top: 16px; }
.roast__in > p:last-child { max-width: 48ch; margin-top: 20px; font-size: 19px; color: rgb(246 239 228 / .88); }

/* ---- Find yours ---- */
.find { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; margin: clamp(80px, 12vh, 140px) var(--gut) 0; padding: clamp(40px, 6vw, 88px); border-radius: 36px; background: var(--roast); color: var(--cream); }
.find p { margin-top: 14px; font-size: 18px; color: rgb(246 239 228 / .8); }
.chips { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; margin-top: 28px; }
.chips button { min-height: 50px; padding: 0 22px; border: 1.5px solid rgb(246 239 228 / .4); border-radius: 99px; background: transparent; font-size: 17px; font-weight: 500; transition: background .25s, color .25s, border-color .25s; }
.chips button:hover { border-color: var(--cream); }
.chips button[aria-checked="true"] { background: var(--lemon); border-color: var(--lemon); color: var(--roast); }
.find__pick { display: grid; grid-template-columns: .9fr 1fr; gap: 28px; align-items: center; }
.find__pick img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 22px; }
.find__pick small { font-size: 14px; color: rgb(246 239 228 / .7); }
.find__pick h3 { margin: 6px 0 10px; font-size: clamp(36px, 3.6vw, 54px); }
.find__pick .add { margin-top: 20px; border-color: var(--cream); }
.find__pick .add[aria-pressed="true"] { background: var(--cream); color: var(--roast); }
.js .find__pick > * { animation: rise .6s var(--out) both; } .js .find__pick > :nth-child(2) { animation-delay: .06s; }

/* ---- How old is yours ---- */
.age { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; padding: clamp(80px, 12vh, 140px) var(--gut); }
.age__img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 30px; }
.age__in > p { max-width: 42ch; margin-top: 16px; font-size: 18px; }
.age__label { display: block; margin-top: 34px; font: 500 22px/1.2 var(--serif); }
.age__label output { font-weight: 600; font-variant-numeric: tabular-nums; }
.age input { width: 100%; margin: 18px 0 0; accent-color: var(--roast); height: 28px; }
.age__say { min-height: 3.2em; margin-top: 14px; padding: 16px 20px; border-radius: 18px; background: var(--paper); font-size: 18px; font-weight: 500; }
.age__none { margin-top: 18px; font-style: italic; font-family: var(--serif); font-size: 20px; }

/* ---- Brew ---- */
.brew { padding: 0 var(--gut) clamp(80px, 12vh, 140px); }
.brew__row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 36px); }
.brew figure img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 26px; transition: scale .9s var(--out); }
.brew figure { overflow: hidden; }
.brew figure:hover img { scale: 1.03; }
.brew figcaption { display: grid; gap: 6px; padding-top: 18px; }
.brew figcaption b { font: 500 32px/1 var(--serif); letter-spacing: -.02em; }
.brew figcaption span { max-width: 34ch; color: rgb(42 26 18 / .78); }

/* ---- Subscribe ---- */
.sub { display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; background: var(--lemon); }
.sub__img { width: 100%; height: 100%; min-height: 420px; object-fit: cover; }
.sub__in { display: grid; align-content: center; justify-items: start; padding: clamp(60px, 10vh, 120px) clamp(28px, 6vw, 96px); }
.sub__in > p { max-width: 36ch; margin-top: 16px; font-size: 19px; }
.sub__box { display: grid; justify-items: start; gap: 22px; margin-top: 34px; }
.seg { display: inline-flex; padding: 5px; border-radius: 99px; background: rgb(42 26 18 / .1); }
.seg button { min-height: 46px; padding: 0 22px; border: 0; border-radius: 99px; background: transparent; font-weight: 600; transition: background .25s, color .25s; }
.seg button[aria-checked="true"] { background: var(--roast); color: var(--lemon); }
.sub__price { font-size: 18px; } .sub__price b { font: 600 34px/1 var(--serif); }

/* ---- Visit ---- */
.visit { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; padding: clamp(80px, 12vh, 140px) var(--gut); }
.visit__img { width: 100%; aspect-ratio: 5 / 6; object-fit: cover; border-radius: 30px; }
.visit__in h2 { margin-top: 14px; }
.visit__where { max-width: 40ch; margin-top: 16px; font-size: 19px; }
.sign { display: inline-flex; align-items: center; gap: 10px; margin-top: 22px; padding: 10px 16px; border-radius: 99px; background: var(--paper); font-weight: 600; }
.sign i { width: 10px; height: 10px; border-radius: 50%; background: #9A8F80; }
.sign.is-open i { background: #2E9B57; box-shadow: 0 0 0 4px rgb(46 155 87 / .18); }
.visit dl { display: grid; grid-template-columns: auto 1fr; gap: 10px 32px; margin-top: 26px; font-size: 17px; }
.visit dt { font-weight: 600; } .visit dd { font-variant-numeric: tabular-nums; }
.visit__note { margin-top: 22px; font-size: 15px; color: rgb(42 26 18 / .7); }

.foot { display: grid; gap: 10px; padding: 56px var(--gut) 64px; background: var(--roast); color: var(--cream); }
.foot .nav__logo { font-size: 34px; }
.foot__note { color: rgb(246 239 228 / .66); font-size: 14.5px; }

/* ---- Scroll reveal ---- */
.js .rv { opacity: 0; translate: 0 28px; transition: opacity .9s var(--out), translate .9s var(--out); }
.js .rv.in { opacity: 1; translate: 0 0; }

/* ---- Cart and the preview note ---- */
dialog { color: var(--roast); }
dialog::backdrop { background: rgb(20 12 8 / .45); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.cart { position: fixed; inset: 0 0 0 auto; width: min(440px, 100vw); height: 100dvh; max-height: none; margin: 0; padding: 0; border: 0; background: var(--cream); display: none; flex-direction: column; }
.cart[open] { display: flex; animation: slide .5s var(--out); }
@keyframes slide { from { translate: 100% 0; } }
.cart header, .cart footer { padding: 24px 28px; }
.cart header { display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid rgb(42 26 18 / .12); }
.cart h2 { font-size: 34px; }
.x { padding: 8px 14px; border: 1.5px solid var(--roast); border-radius: 99px; background: transparent; font-weight: 600; }
.cart ul { flex: 1; overflow: auto; list-style: none; padding: 12px 28px; }
.cart li { display: grid; grid-template-columns: 64px 1fr auto; gap: 16px; align-items: center; padding: 14px 0; border-bottom: 1px solid rgb(42 26 18 / .1); }
.cart li img { width: 64px; height: 64px; object-fit: cover; border-radius: 14px; }
.cart li b { font: 500 22px/1.1 var(--serif); }
.cart li button { border: 0; background: none; text-decoration: underline; font-size: 14px; }
.cart__empty { padding: 0 28px; flex: 1; font-size: 18px; }
.cart footer { display: grid; gap: 8px; border-top: 1px solid rgb(42 26 18 / .12); }
.cart footer p:first-child { display: flex; justify-content: space-between; font-size: 18px; } .cart footer b { font: 600 26px/1 var(--serif); }
.cart__ship { font-size: 14.5px; color: rgb(42 26 18 / .7); }
.cart__ship.is-free { color: #1F7A44; font-weight: 600; }
.cart .btn { margin-top: 8px; }
.note { max-width: min(520px, calc(100vw - 32px)); padding: 36px; border: 0; border-radius: 28px; background: var(--cream); }
.note[open] { animation: pop .45s var(--out); }
.note h2 { font-size: 40px; } .note p { margin-top: 14px; font-size: 18px; }
.note__acts { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; margin-top: 26px; }

/* ---- Phones ---- */
@media (max-width: 860px) {
  .nav nav { display: none; }
  .nav__cart { margin-left: auto; }
  .hero { min-height: calc(100svh - 100px); padding-top: 230px; }
  .hero__img { object-position: 38% 50%; }
  .hero::before { background: linear-gradient(180deg, rgb(20 11 7 / .25), rgb(20 11 7 / .55) 40%, rgb(20 11 7 / .9)); }
  .hero h1 { font-size: clamp(54px, 15.5vw, 84px); }
  .stamp { right: 16px; top: 18px; bottom: auto; width: 168px; padding: 0 12%; }
  .stamp small { font-size: 10.5px; }
  .stamp b { font-size: 24px; } .stamp b + b { font-size: 18px; }
  .hero__facts { gap: 6px 22px; font-size: 14px; }
  .shelf { grid-template-columns: 1fr; gap: 40px; }
  .bean__pic { aspect-ratio: 4 / 3.4; }
  .roast { min-height: 0; padding-top: 220px; }
  .roast::before { background: linear-gradient(180deg, rgb(20 12 8 / .2), rgb(20 12 8 / .9) 60%); }
  .find, .age, .visit, .sub { grid-template-columns: 1fr; }
  .find { margin: 80px 12px 0; padding: 36px 24px; border-radius: 28px; }
  .find__pick { grid-template-columns: 120px 1fr; gap: 18px; }
  .age__img { aspect-ratio: 4 / 3; }
  .brew__row { grid-template-columns: 1fr; gap: 36px; }
  .brew figure img { aspect-ratio: 4 / 3.3; }
  .sub__img { min-height: 0; aspect-ratio: 4 / 3; }
  .visit__img { aspect-ratio: 4 / 3; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .rv { opacity: 1; translate: 0 0; }
}
