/* Lights Landing Coffee: the bean wall.
   The café's bean wall as a website: a fixed maple wall, every area a sharp
   white card laid on it a little lopsided, and each coffee a printed card in
   its own marbled colour that turns over to a white back. One look on
   purpose: wood, white and black, plus each coffee's colour. */

:root {
  --wood: #ead6b6;
  --monstera: #2f5a3d;      /* the announcement bar; white on it is 8:1 */
  --paper: #ffffff;
  --ink: #121212;
  --grey: #5c5c5c;          /* 6.6:1 on white */
  --line: #e2e2e2;
  --shadow: 0 1px 1px rgba(64, 42, 14, .10), 0 8px 22px rgba(64, 42, 14, .18);
  --shadow-lift: 0 2px 2px rgba(64, 42, 14, .10), 0 16px 32px rgba(64, 42, 14, .24);
  /* Chinese uses each device's own font (PingFang on Apple, Microsoft YaHei
     on Windows, Noto Sans CJK on Android): nothing to download, so pages
     load just as fast in mainland China, where Google Fonts is blocked. */
  --sans: 'Helvetica Neue', Helvetica, Arial, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Noto Sans CJK SC', 'Source Han Sans SC', sans-serif;
  --zh: 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Noto Sans CJK SC', 'Source Han Sans SC', sans-serif;
  --t: 200ms;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--wood);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--wood); }
/* The maple is a fixed layer: it stays still while the cards scroll over it. */
body::after { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; background: var(--wood) url(../uploads/American-Hard-Maple.webp) center / 900px repeat; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
img { display: block; max-width: 100%; }
.bw { filter: grayscale(1) contrast(1.05); }
[hidden] { display: none !important; }
/* Chinese readers see nothing until site.js has put the page into Chinese. */
.is-translating body { visibility: hidden; }

/* ---- white cards, laid down by hand ----------------------------------- */
/* site.js gives each card one small random lean (--tilt, --nx, --ny). */
.card { background: var(--paper); box-shadow: var(--shadow); border-radius: 0; }
.card, .bean { transform: translate(var(--nx, 0px), var(--ny, 0px)) rotate(var(--tilt, 0deg)); }
/* Drawn as one smoothed layer, so thin lines on a tilted card stay clean
   instead of stepping at the pixel grid. */
.card { will-change: transform; }

.wrap {
  max-width: 1232px; margin: 0 auto; display: grid; gap: 20px;
  padding-block: 20px 48px;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.wrap > *, .view > * { min-width: 0; }
.view { display: grid; gap: 20px; }

/* ---- chrome ------------------------------------------------------------ */
.announce { padding: 9px 16px; text-align: center; font-size: 12.5px; letter-spacing: .08em; margin: 0; background: var(--monstera); color: var(--paper); }
/* Logo, then the menu spread evenly across the middle, then search,
   language and the wishlist cart. */
.masthead { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; padding: 18px 28px; position: relative; z-index: 30; }
.nav { flex: 1 1 auto; display: flex; justify-content: space-evenly; gap: 6px 20px; font-size: 15px; }
.nav a, .nav__toggle { color: var(--grey); white-space: nowrap; font-size: inherit; }
.nav a:hover, .nav a[aria-current="page"], .nav__toggle:hover, .nav__toggle.is-current, .nav__group.is-open .nav__toggle { color: var(--ink); }
/* Menu items and the language switch share one underline: drawn left to
   right on hover or focus, and kept under the page you're on. */
.nav a, .nav__toggle, .lang { position: relative; text-decoration: none; }
.nav a::after, .nav__toggle::after, .lang::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: left center; transition: transform 300ms var(--ease);
}
.lang::after { left: 7px; right: 7px; bottom: 2px; }
.nav a:hover::after, .nav a:focus-visible::after, .nav a[aria-current="page"]::after,
.nav__toggle:hover::after, .nav__toggle:focus-visible::after, .nav__toggle.is-current::after,
.lang:hover::after, .lang:focus-visible::after { transform: scaleX(1); }

/* Learn opens a small white card holding Brew guide and Buying guide: on
   hover with a mouse, on a tap or click, and from the keyboard. */
.nav__group { position: relative; }
.nav__toggle { display: inline-flex; flex-direction: row-reverse; gap: 4px; align-items: baseline; }
.nav__toggle::before { content: "▾"; font-size: .7em; }
.nav__menu {
  position: absolute; top: 100%; left: 50%; z-index: 20; margin-top: 12px; min-width: 170px;
  display: grid; gap: 2px; padding: 10px 6px; background: var(--paper); box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translate(-50%, -6px);
  transition: opacity 200ms var(--ease), transform 200ms var(--ease), visibility 0s linear 200ms;
}
/* A bridge over the gap, so the pointer can travel from Learn to the card. */
.nav__menu::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; }
.nav__menu a { padding: 8px 14px; justify-self: stretch; text-align: center; }
.nav__menu a::after { left: 14px; right: 14px; bottom: 4px; }
.nav__group.is-open .nav__menu, .nav__group:not([data-ready]):focus-within .nav__menu {
  opacity: 1; visibility: visible; transform: translate(-50%, 0); transition-delay: 0s;
}
@media (hover: hover) {
  .nav__group:hover .nav__menu { opacity: 1; visibility: visible; transform: translate(-50%, 0); transition-delay: 0s; }
}
.masthead__end { display: flex; align-items: center; gap: 18px; }

/* Search is a magnifying glass. Hovered or focused, it slides left and an
   underline opens on its right to type into. */
/* Its room is kept even while closed, so opening it never moves the menu. */
.find { --open: 11em; display: flex; align-items: center; justify-content: flex-end; width: calc(var(--open) + 34px); }
.find__icon { display: grid; place-items: center; width: 28px; height: 28px; cursor: pointer; }
.find__icon svg { width: 20px; height: 20px; }
.find__input {
  width: 0; min-width: 0; padding: 4px 0; margin-left: 0;
  border: 0; border-bottom: 1px solid transparent; border-radius: 0; background: transparent; font-size: 14px;
  transition: width 520ms var(--ease), margin-left 520ms var(--ease), border-color 520ms var(--ease);
}
.find__input::placeholder { color: var(--grey); }
.find__input::-webkit-search-cancel-button { display: none; }
.find:hover .find__input, .find:focus-within .find__input, .find__input:not(:placeholder-shown) {
  width: var(--open); margin-left: 6px; border-bottom-color: var(--ink);
}
.find__input:focus { outline: none; border-bottom-width: 2px; margin-bottom: -1px; }
.find:focus-within .find__icon { outline: none; }

/* The language switch: 中 or EN, plain type, no box. */
.lang { min-width: 28px; height: 28px; font-size: 15px; line-height: 1; }

/* The wishlist is a cart, with its count in a small black square. */
.cart { position: relative; display: grid; place-items: center; width: 30px; height: 30px; text-decoration: none; }
.cart svg { width: 24px; height: 24px; }
.cart__count {
  position: absolute; top: -3px; right: -7px; min-width: 16px; height: 16px; padding: 0 4px;
  background: var(--ink); color: var(--paper); font-size: 10.5px; line-height: 16px; text-align: center;
  font-variant-numeric: tabular-nums;
}
.footer { display: flex; flex-wrap: wrap; gap: 10px 26px; padding: 22px 28px; font-size: 13px; color: var(--grey); }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--ink); }
.footer__copy { margin-left: auto; }

/* The logomark is painted as a mask, so it takes the ink colour. */
.brand { display: flex; align-items: center; }
.brand__mark {
  display: block; width: 42px; height: 42px; background-color: var(--ink);
  -webkit-mask: url(../uploads/logo.svg) center / contain no-repeat;
          mask: url(../uploads/logo.svg) center / contain no-repeat;
}

/* The fan: site.js splits the mark into slices that open on hover. Divisions
   follow the SVG's black/white edges, with the thin inner spine assigned to
   the preceding panel. The inner canvas keeps the SVG's aspect ratio. */
.brand__mark--fan {
  position: relative;
  background: none !important;
  -webkit-mask: none;
          mask: none;
  color: var(--ink);
}
.brand__fan {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  aspect-ratio: 508.99 / 491.25;
  transform: translateY(-50%);
}
.brand__moving, .brand__reveal { position: absolute; inset: 0; }
/* Folded artwork stays behind the fixed half-circle; each inner reveal
   separately clips it behind the preceding panel. Artwork never stretches. */
.brand__moving { clip-path: inset(0 0 0 27.332561%); }
.brand__slice {
  position: absolute;
  inset: 0;
  background: currentColor;
  -webkit-mask: url(../uploads/logo.svg) center / contain no-repeat;
          mask: url(../uploads/logo.svg) center / contain no-repeat;
  transform-origin: 0 0;
}
.brand__slice--base { clip-path: inset(0 72.66742% 0 0); }
.brand__slice--1 { clip-path: polygon(27.332561% -20.323664%, 67.493775% -20.323664%, 33.835370% 75.437904%, 393.117743% 75.437904%, 393.117743% 122.169975%, 27.332561% 122.169975%); }
.brand__slice--2 { clip-path: polygon(67.493775% -20.323664%, 111.310263% -20.323664%, 53.362183% 51.302108%, 393.117743% 51.302108%, 393.117743% 75.437904%, 33.835370% 75.437904%); }
.brand__slice--3 { clip-path: polygon(111.310263% -20.323664%, 173.565314% -20.323664%, 70.974545% 40.807381%, 393.117743% 40.807381%, 393.117743% 51.302108%, 53.362183% 51.302108%); }
.brand__slice--4 { clip-path: polygon(173.565314% -20.323664%, 393.117743% -20.323664%, 393.117743% 40.807381%, 70.974545% 40.807381%); }

/* ---- type -------------------------------------------------------------- */
.eyebrow { margin: 0; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--grey); }
h1, h2, h3 { margin: 0; font-weight: 400; letter-spacing: -.01em; text-wrap: balance; }
.h-display { font-size: clamp(34px, 5vw, 56px); font-weight: 300; line-height: 1.1; }
.h-page { font-size: clamp(28px, 3.8vw, 42px); font-weight: 300; line-height: 1.12; }
.h-section { font-size: clamp(20px, 2.2vw, 24px); }
.lede { margin: 0; font-size: 17px; line-height: 1.7; color: var(--grey); max-width: 46ch; }
.prose { color: var(--grey); max-width: 62ch; font-size: 15px; line-height: 1.75; }
.prose p { margin: 0 0 12px; }
.prose p:last-child { margin-bottom: 0; }
.link { font-size: 14.5px; text-underline-offset: 3px; }
/* Buttons and chips swap colour on hover with a sweep from left to right:
   black ones fill white, white ones fill black. --from is the resting
   colour, --to the colour that sweeps in. */
.btn, .chip {
  --from: var(--ink); --to: var(--paper); --text: var(--paper); --text-to: var(--ink);
  color: var(--text);
  background-color: var(--from);
  background-image: linear-gradient(var(--to), var(--to));
  background-repeat: no-repeat;
  background-position: left center;
  background-size: 0% 100%;
  box-shadow: inset 0 0 0 1px var(--ink);
  transition: background-size 320ms var(--ease), color 320ms var(--ease);
}
.btn:hover, .btn:focus-visible, .chip:hover, .chip:focus-visible { background-size: 100% 100%; color: var(--text-to); }
.btn--ghost, .btn[aria-pressed="true"] { --from: var(--paper); --to: var(--ink); --text: var(--ink); --text-to: var(--paper); }
.btn { display: inline-block; text-align: center; padding: 13px 22px; font-size: 15px; text-decoration: none; }
.btn:disabled { opacity: .45; cursor: default; }
.btn:disabled:hover { background-size: 0% 100%; color: var(--text); }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }
.specs { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 10px 20px; font-size: 15px; }
.specs dt { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--grey); padding-top: 3px; }
.specs dd { margin: 0; min-width: 0; }
.small { font-size: 13px; color: var(--grey); margin: 0; }
.status { font-size: 14px; margin: 0; min-height: 1.4em; }
.status:empty { min-height: 0; }

/* ---- shared blocks ----------------------------------------------------- */
.pad { padding: 30px; }
.stack { display: grid; gap: 12px; align-content: start; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.split > * { min-width: 0; }
.split__text { padding: 34px; display: grid; gap: 18px; align-content: center; }
.split > img { width: 100%; height: 100%; min-height: 260px; object-fit: cover; }
/* A picture that needs more room, like the About page's sea at sunrise. */
.split--tall > img { min-height: 440px; }
.head-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 10px 20px; padding: 18px 26px; }
.two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; }
.three { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
/* Cards side by side share one height; a .push link or button group sits
   at the foot of its card, so the rows line up. */
.fill { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.fill > * { max-width: 100%; }
.fill > .push { margin-top: auto; }
.fill > img { align-self: stretch; }
.fill > .pad { align-self: stretch; }
/* The brew methods on the home page: large, one above another. */
.methods { display: grid; gap: 10px; align-self: stretch; }
.methods .btn { padding: 16px 22px; font-size: 16px; display: flex; justify-content: space-between; align-items: center; text-align: left; }
/* Each method's arrow slides on as the button fills. */
.methods .btn::after { content: "→"; transition: transform 320ms var(--ease); }
.methods .btn:hover::after, .methods .btn:focus-visible::after { transform: translateX(6px); }

/* Without JavaScript the coffee cards can't be drawn; plain links stand in. */
.fallback { margin: 0; padding: 22px 26px; list-style: none; display: grid; gap: 8px; }
.fallback a { text-underline-offset: 3px; }
.beans > .fallback { grid-column: 1 / -1; }
/* The wishlist fills the row until the reservation form is switched on. */
.two:has(> [hidden]) { grid-template-columns: minmax(0, 1fr); }

/* ---- the bean card ----------------------------------------------------- */
/* Printed like the café's wall cards: a thin white border round the coffee's
   marbled colour, black type, 「tag」 top right, logo bottom right. Sizes are
   in container units so the card scales like a print. site.js turns it:
   on hover with a mouse, under the finger on a touch screen. */
.beans { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 26px 22px; padding: 4px; }
.bean {
  position: relative; aspect-ratio: 5 / 7; perspective: 1000px; container-type: inline-size;
  cursor: pointer; transition: transform var(--t) var(--ease);
  /* Sideways swipes turn the card; up and down still scroll the page. */
  touch-action: pan-y; -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent;
}
.bean__inner { position: absolute; inset: 0; transform-style: preserve-3d; }
.bean__face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; background: var(--paper); box-shadow: var(--shadow); overflow: hidden; }
.bean__back { transform: rotateY(180deg); }
/* Only the side facing up takes clicks. */
.bean.is-flipped .bean__front, .bean:not(.is-flipped) .bean__back { pointer-events: none; }
/* Turned edge-on, a face falls into shadow. */
.bean__face::after { content: ""; position: absolute; inset: 0; z-index: 3; background: var(--ink); opacity: calc(var(--edge, 0) * .3); pointer-events: none; }
.bean.is-held .bean__face { box-shadow: var(--shadow-lift); }
@media (hover: hover) {
  .bean:hover { transform: translate(var(--nx, 0px), calc(var(--ny, 0px) - 4px)) rotate(0deg); }
  .bean:hover .bean__face { box-shadow: var(--shadow-lift); }
}

.bean__art { position: absolute; inset: 3cqw; background: var(--art) center / cover; }
.bean__front .bean__body { position: absolute; inset: 3cqw; padding: 6cqw 7cqw 6cqw; display: flex; flex-direction: column; }
.bean__tips { align-self: flex-end; max-width: 72%; text-align: right; line-height: 1.1; margin: 0 0 7cqw; }
.bean__tips small { display: block; font-size: max(8px, 3.6cqw); font-style: italic; }
.bean__tips b { font: 700 max(9px, 4.6cqw) / 1.2 var(--sans); }
.bean__zh { font: 700 7.4cqw / 1.24 var(--zh); margin: 0; }
/* On an English card the English names are the title. */
.bean__en { font: 700 7.6cqw / 1.2 var(--sans); margin: 0; letter-spacing: -.01em; }
.bean__price { font-size: max(9.5px, 4.3cqw); margin: 2.5cqw 0 0; font-variant-numeric: tabular-nums; }
.bean__taste { flex: 0 1 auto; min-height: 0; margin: auto 0 0; padding: 4cqw 10cqw 0 0; overflow: hidden; font-size: max(8px, 3.5cqw); line-height: 1.4; }
.bean__taste > b { display: block; font-weight: 600; margin-bottom: 1cqw; }
.bean__taste p { margin: 0; }
.bean__taste-full p + p { margin-top: .5cqw; }
.bean__taste-full span { font-weight: 600; }
.bean__taste-short { display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; }
.bean__mark { position: absolute; right: 6cqw; bottom: 5cqw; width: 7cqw; height: 7cqw; background: var(--ink); -webkit-mask: url(../uploads/logo.svg) center / contain no-repeat; mask: url(../uploads/logo.svg) center / contain no-repeat; }
.bean__hit { position: absolute; inset: 0; z-index: 2; }
.bean__hit:focus-visible { outline-offset: -6px; }
/* A short row of cards (home, "you may also like") spreads across the wall. */
.beans--row { grid-template-columns: repeat(auto-fit, minmax(200px, 250px)); justify-content: space-evenly; }

.bean__back .bean__body { position: absolute; inset: 0; padding: 7cqw 7cqw 6cqw; display: flex; flex-direction: column; gap: 3cqw; overflow-y: auto; }
.bean__back .eyebrow { font-size: max(9.5px, 4cqw); }
.bean__back-title { font: 700 max(12.5px, 6cqw) / 1.25 var(--sans); margin: 0; }
.bean__back .specs { font-size: max(11px, 4.8cqw); line-height: 1.35; gap: 1.4cqw 4cqw; padding-top: 3cqw; border-top: 1px solid var(--line); }
.bean__back .specs dt { font-size: max(9px, 3.6cqw); }
/* Phone-sized cards keep the essentials on the back: region, process, price. */
@container (max-width: 215px) {
  .bean__back .specs .opt { display: none; }
  .bean__back .bean__body { padding: 6cqw; }
}
.bean__actions { margin-top: auto; display: grid; gap: 2.4cqw; }
.bean__actions .btn { padding: 2.8cqw 3cqw; font-size: max(11.5px, 4.8cqw); }
.bean__status { font-size: max(10px, 4cqw); color: var(--grey); margin: 0; text-align: center; }
.bean__status:empty { display: none; }

/* ---- shelf ------------------------------------------------------------- */
.shelf-head { display: grid; gap: 10px; }
.shelf-head__title { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 18px; }
.bar { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 24px; padding: 12px 20px; }
.bar__group { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.bar__label { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--grey); margin-right: 6px; }
.chip { padding: 6px 12px; font-size: 13.5px; text-decoration: none; --from: transparent; --to: var(--ink); --text: var(--ink); --text-to: var(--paper); box-shadow: none; }
.chip[aria-pressed="true"], .chip[aria-current="page"] { --from: var(--ink); --to: var(--paper); --text: var(--paper); --text-to: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
/* Search and sort are a thin underline, not a box; focus thickens the line. */
.search, .sort select { border: 0; border-bottom: 1px solid var(--ink); border-radius: 0; background-color: transparent; font-size: 14px; }
.search { flex: 1 1 180px; max-width: 260px; padding: 6px 2px; }
.search::placeholder { color: var(--grey); }
.search:focus, .sort select:focus { outline: none; border-bottom-width: 2px; margin-bottom: -1px; }
.bar__end { margin-left: auto; display: flex; align-items: center; gap: 14px; font-size: 13.5px; }
.count { color: var(--grey); white-space: nowrap; }
.sort select {
  appearance: none; -webkit-appearance: none; padding: 5px 20px 5px 2px; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position: calc(100% - 9px) 55%, calc(100% - 5px) 55%; background-size: 4px 4px; background-repeat: no-repeat;
}

/* ---- coffee page ------------------------------------------------------- */
.product { display: grid; grid-template-columns: minmax(240px, 1fr) minmax(0, 1.1fr) minmax(220px, .9fr); }
.product > * { padding: 30px; min-width: 0; }
.product > * + * { border-left: 1px solid var(--line); }
.buy { display: grid; gap: 12px; align-content: start; }
.buy__name { font: 700 26px / 1.3 var(--sans); margin: 0; }
.buy__sub { font-size: 17px; margin: 0; color: var(--grey); }
.buy__price { font-size: 22px; margin: 6px 0 0; font-variant-numeric: tabular-nums; }
.buy .btn { justify-self: start; }
.info .eyebrow { margin-bottom: 18px; }
.info .prose { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.product__print { display: grid; place-items: center; }
.product__print .bean { width: min(100%, 260px); }

/* In the cup: aroma, palate, finish */
.cup { margin: 0; }
.cup > div { display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.cup > div:first-child { border-top: 1px solid var(--line); }
.cup dt { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--grey); padding-top: 3px; }
.cup dd { margin: 0; font-size: 15.5px; line-height: 1.65; }
.on-label { display: grid; gap: 4px; }
.on-label p { margin: 0; font-size: 13.5px; line-height: 1.6; color: var(--grey); }

/* About the estate, beside its awards and how it is roasted */
.farm { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 20px 48px; }
.farm__aside { display: grid; gap: 30px; align-content: start; }
.facts { margin: 0; padding: 0; list-style: none; font-size: 14px; line-height: 1.55; }
.facts > li, .facts > div { padding: 8px 0; border-bottom: 1px solid var(--line); }
.facts > div { display: grid; grid-template-columns: 70px minmax(0, 1fr); gap: 12px; }
.facts dt { color: var(--grey); }
.facts dd { margin: 0; }
.farm__aside .eyebrow { padding-bottom: 8px; border-bottom: 1px solid var(--ink); }

.recipes { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.recipe { padding-right: 28px; }
.recipe + .recipe { padding: 0 0 0 28px; border-left: 1px solid var(--line); }
.recipe h3 { font-size: 18px; margin-bottom: 4px; }
.recipe .specs { font-size: 14px; gap: 8px 18px; margin-top: 14px; }
.recipe ol { margin: 14px 0 0; padding-left: 20px; color: var(--grey); font-size: 14px; line-height: 1.7; }
.recipe li + li { margin-top: 4px; }

/* ---- brew guide -------------------------------------------------------- */
.guide img { width: 100%; height: clamp(200px, 30vw, 340px); object-fit: cover; }
.guide__head { padding: 28px 30px 6px; display: grid; gap: 14px; }
.tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.guide__body { display: grid; grid-template-columns: 240px minmax(0, 1fr); border-top: 1px solid var(--line); margin-top: 22px; }
.guide__glance { padding: 26px 30px; border-right: 1px solid var(--line); display: grid; gap: 18px; align-content: start; }
.guide__glance .specs { font-size: 14px; gap: 9px 16px; }
.guide__steps { padding: 10px 30px 26px; }
.step { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.step:last-child { border-bottom: 0; }
.step__n { font-size: 13px; color: var(--grey); padding-top: 3px; font-variant-numeric: tabular-nums; }
.step h3 { font-size: 16.5px; }
.step p { margin: 4px 0 0; color: var(--grey); font-size: 14.5px; line-height: 1.65; }
.buying .step p { max-width: 66ch; }
.privacy { display: grid; gap: 30px; }
.privacy__part { display: grid; gap: 10px; }
.privacy ul { margin: 0 0 12px; padding-left: 20px; }
.privacy li + li { margin-top: 6px; }

/* ---- café --------------------------------------------------------------- */
.hours { display: grid; gap: 4px; font-size: 15px; }
.menu { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 44px; }
.menu h3 { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--grey); padding-bottom: 8px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.menu__row { display: flex; justify-content: space-between; padding: 9px 0; font-size: 15px; font-variant-numeric: tabular-nums; }
.prints { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; align-items: start; }
.photo-print { margin: 0; padding: 10px 10px 14px; }
.photo-print img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.photo-print figcaption { font-size: 12.5px; color: var(--grey); margin-top: 10px; }

/* ---- wishlist ---------------------------------------------------------- */
.wish-list { margin: 0; padding: 0; list-style: none; }
.wish-row { display: grid; grid-template-columns: 54px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.wish-row:last-child { border-bottom: 0; }
.wish-row__swatch { width: 54px; aspect-ratio: 5 / 7; border: 3px solid var(--paper); box-shadow: var(--shadow); background: var(--art) center / cover; }
.wish-row__name { font: 700 15px / 1.35 var(--sans); text-decoration: none; }
.wish-row__name:hover { text-decoration: underline; text-underline-offset: 3px; }
.wish-row__meta { font-size: 13px; color: var(--grey); }
.wish-row button { text-decoration: underline; text-underline-offset: 3px; font-size: 14px; }
.reserve { display: grid; gap: 12px; }
.reserve label { font-size: 14px; }
.reserve__steps { margin: 0; padding-left: 20px; color: var(--grey); font-size: 15px; line-height: 1.7; }
.reserve__steps li + li { margin-top: 4px; }
.reserve__controls { display: flex; flex-wrap: wrap; gap: 10px; }
.reserve input[type="email"] { flex: 1 1 240px; min-width: 0; border: 1px solid var(--ink); border-radius: 0; padding: 12px 14px; background: var(--paper); }
.reserve__trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ---- smaller screens ---------------------------------------------------- */
@media (max-width: 1040px) {
  .product { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .product .product__print { grid-column: 1 / -1; grid-row: 1; border-left: 0; border-bottom: 1px solid var(--line); }
  .product .buy { border-left: 0; }
}
@media (max-width: 820px) {
  /* The menu takes its own row under the logo and icons, spread edge to edge. */
  .masthead { padding: 14px 18px; gap: 12px 16px; justify-content: space-between; }
  .nav { order: 3; flex-basis: 100%; justify-content: space-between; }
  .masthead__end { gap: 14px; }
  .find { --open: min(11em, 34vw); }
  .split, .two, .recipes, .menu, .guide__body, .farm { grid-template-columns: minmax(0, 1fr); }
  .split > img { min-height: 220px; max-height: 300px; }
  .split--tall > img { max-height: none; height: auto; aspect-ratio: 782 / 752; }
  .recipe, .recipe + .recipe { padding: 0; border-left: 0; }
  .recipe + .recipe { margin-top: 26px; }
  .guide__glance { border-right: 0; border-bottom: 1px solid var(--line); }
  .three, .prints { grid-template-columns: minmax(0, 1fr); }
  .bar__end { margin-left: 0; width: 100%; justify-content: space-between; }
  .search { max-width: none; }
  .footer__copy { margin-left: 0; width: 100%; }
}
@media (max-width: 620px) {
  .wrap, .view { gap: 14px; }
  .beans { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 12px; }
  .pad, .split__text { padding: 22px 18px; }
  .head-row { padding: 16px 18px; }
  .product { grid-template-columns: minmax(0, 1fr); }
  .product > *, .product > * + * { padding: 22px 18px; border-left: 0; }
  .product .info { border-top: 1px solid var(--line); }
  .cup > div { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .guide__head { padding: 22px 18px 4px; }
  .guide__glance, .guide__steps { padding-left: 18px; padding-right: 18px; }
}
/* Instructions for the device in hand. */
@media (hover: none) { .on-hover { display: none; } }
@media (hover: hover) { .on-touch { display: none; } }
@media (prefers-reduced-motion: reduce) {
  .bean, .chip, .btn, .find__input, .nav a::after, .nav__toggle::after, .lang::after, .methods .btn::after, .nav__menu { transition: none !important; }
  .bean:hover { transform: translate(var(--nx, 0px), var(--ny, 0px)) rotate(var(--tilt, 0deg)); }
}
