/* komorebi coffee roasters — sample site by KAMAE */

@font-face { font-family: "KMR Display"; src: url(../fonts/cormorant.woff2) format("woff2"); font-weight: 300 700; font-display: swap; }
@font-face { font-family: "KMR Display"; src: url(../fonts/cormorant-italic.woff2) format("woff2"); font-weight: 300 700; font-style: italic; font-display: swap; }
@font-face { font-family: "KMR Mincho"; src: url(../fonts/noto-serif-jp.woff2) format("woff2"); font-weight: 200 900; font-display: swap; }
@font-face { font-family: "KMR Gothic"; src: url(../fonts/noto-sans-jp.woff2) format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "KMR Mono"; src: url(../fonts/geist-mono.woff2) format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --ink: #120e0b;
  --ink-2: #1c1612;
  --cream: #efe6d8;
  --cream-mute: #a89a88;
  --amber: #d49a5c;
  --paper: #ebe3d5;
  --paper-2: #e0d5c2;
  --paper-ink: #261d16;
  --paper-mute: #7a6a59;
  --leaf: #9bb07e;

  --bg: var(--ink);
  --fg: var(--cream);
  --mute: var(--cream-mute);
  --line: rgb(239 230 216 / .16);

  --f-disp: "KMR Display", "Cormorant Garamond", "Times New Roman", serif;
  --f-min: "KMR Mincho", "Yu Mincho", "YuMincho", "Hiragino Mincho ProN", serif;
  --f-got: "KMR Gothic", "Hiragino Sans", "Yu Gothic", "Noto Sans JP", sans-serif;
  --f-mono: "KMR Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --pad: clamp(20px, 4.2vw, 72px);
  --ease: cubic-bezier(.19, 1, .22, 1);
  --ease-io: cubic-bezier(.77, 0, .175, 1);
}

body[data-theme="paper"] {
  --bg: var(--paper);
  --fg: var(--paper-ink);
  --mute: var(--paper-mute);
  --line: rgb(38 29 22 / .16);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: clip; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--f-got);
  font-weight: 350;
  font-size: 15px;
  line-height: 1.95;
  letter-spacing: .04em;
  font-feature-settings: "palt" 1;
  -webkit-font-smoothing: antialiased;
  transition: background-color 1s var(--ease), color 1s var(--ease);
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
figure, p, h1, h2, h3, dl, dd, ol, ul { margin: 0; padding: 0; }
ul, ol { list-style: none; }
:focus-visible { outline: 1px solid var(--amber); outline-offset: 4px; }
::selection { background: var(--amber); color: var(--ink); }

.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 200; background: var(--cream); color: var(--ink); padding: 8px 14px; font-size: 13px; }
.skip:focus { top: 12px; }

.label {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--mute);
  display: flex;
  align-items: center;
  gap: .9em;
}
.label span { color: var(--amber); }
.label::after { content: ""; width: 48px; height: 1px; background: currentColor; opacity: .5; }

/* ---------- grain ---------- */
.grain {
  position: fixed; inset: -50%; z-index: 90; pointer-events: none;
  opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); } 40% { transform: translate(2%, -3%); }
  60% { transform: translate(-2%, -1%); } 80% { transform: translate(3%, 3%); } 100% { transform: translate(0, 0); }
}

/* ---------- loader ---------- */
.loader {
  position: fixed; inset: 0; z-index: 150;
  background: var(--ink);
  display: none; place-items: center;
  overflow: hidden;
}
.loader__inner { text-align: center; position: relative; z-index: 1; }
.loader__word {
  font-family: var(--f-disp); font-style: italic; font-weight: 300;
  font-size: clamp(64px, 11vw, 180px); line-height: 1; letter-spacing: -.01em;
  display: flex; overflow: hidden; padding: 0 .1em .12em;
}
.loader__word span { display: inline-block; transform: translateY(110%); }
.loader__sub {
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .3em; text-transform: uppercase;
  color: var(--cream-mute); margin-top: 18px; opacity: 0;
}
.loader__light {
  position: absolute; inset: -20%;
  background:
    radial-gradient(40% 30% at 30% 40%, rgb(212 154 92 / .35), transparent 70%),
    radial-gradient(30% 25% at 70% 60%, rgb(239 230 216 / .18), transparent 70%);
  filter: blur(20px);
  opacity: 0;
}
.js .loader { display: grid; }
.js .is-ready .loader, .is-ready .loader { display: none; }

/* ---------- header ---------- */
.header {
  position: fixed; inset: 0 0 auto; z-index: 60;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 22px var(--pad);
  color: var(--fg);
  transition: transform .8s var(--ease), color 1s var(--ease);
}
.header::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--bg); opacity: 0; transition: opacity .6s var(--ease), background-color 1s var(--ease); box-shadow: 0 1px 0 var(--line); }
.header.is-solid::before { opacity: .94; }
/* phones: the hero copy runs to the top of the screen — once the page moves, a smoked veil sits
   behind the header over the photo, so no line of the copy ever crosses the logo or the menu sharply */
.header.is-veiled::before { opacity: 1; background: rgb(22 17 12 / .62); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: none; }
.header.is-hidden { transform: translateY(-110%); }
.header.on-hero { color: var(--cream); }
.header__logo { font-family: var(--f-disp); font-style: italic; font-size: 30px; line-height: 1; letter-spacing: -.01em; justify-self: start; }
.header__nav { display: flex; gap: clamp(18px, 2.6vw, 44px); font-family: var(--f-mono); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; }
.header__nav a { position: relative; padding: 6px 0; }
.header__nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .6s var(--ease); }
.header__nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.header__status { justify-self: end; display: flex; align-items: center; gap: 10px; font-size: 12px; letter-spacing: .08em; }
.header__status .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--cream-mute); box-shadow: 0 0 0 0 currentColor; }
.header__status.is-open .dot { background: #9fd18a; animation: pulse 2.4s infinite; color: rgb(159 209 138 / .5); }
.header__status.is-soon .dot { background: var(--amber); }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 currentColor; } 70% { box-shadow: 0 0 0 9px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.header__menu { display: none; justify-self: end; align-items: center; gap: 10px; font-family: var(--f-mono); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; }
.header__menu span { display: block; width: 22px; height: 1px; background: currentColor; transition: transform .5s var(--ease); }
.header__menu span + span { margin-top: -6px; }
.header__menu { flex-direction: column; align-items: flex-end; gap: 6px; }
.header__menu em { font-style: normal; display: none; }
.header__menu[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(20deg); }
.header__menu[aria-expanded="true"] span:nth-child(2) { transform: translateY(-3.5px) rotate(-20deg); }

.drawer {
  position: fixed; inset: 0; z-index: 55; background: var(--ink); color: var(--cream);
  padding: 110px var(--pad) 40px; display: flex; flex-direction: column; justify-content: space-between;
  clip-path: inset(0 0 100% 0); transition: clip-path .9s var(--ease-io);
}
.drawer.is-open { clip-path: inset(0 0 0 0); }
.drawer nav { display: flex; flex-direction: column; }
.drawer nav a { font-family: var(--f-disp); font-style: italic; font-weight: 300; font-size: clamp(48px, 14vw, 84px); line-height: 1.1; display: flex; align-items: baseline; gap: 16px; border-bottom: 1px solid rgb(239 230 216 / .12); }
.drawer nav small { font-family: var(--f-mono); font-style: normal; font-size: 11px; color: var(--amber); letter-spacing: .2em; }
.drawer__foot { font-size: 13px; color: var(--cream-mute); }

/* ---------- hero ---------- */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 620px; overflow: hidden; color: var(--cream); background: var(--ink); }
.hero__media { position: absolute; inset: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 55% 50%; transform-origin: 50% 60%; }
.hero__dapple { position: absolute; inset: 0; width: 100%; height: 100%; mix-blend-mode: soft-light; opacity: .85; pointer-events: none; }
.hero__shade { position: absolute; inset: 0; background:
  radial-gradient(40% 60% at 92% 38%, rgb(18 14 11 / .5), transparent 70%),
  radial-gradient(40% 40% at 8% 40%, rgb(18 14 11 / .45), transparent 70%),
  linear-gradient(180deg, rgb(18 14 11 / .55) 0%, rgb(18 14 11 / 0) 26%, rgb(18 14 11 / 0) 52%, rgb(18 14 11 / .78) 100%); }
.hero__title { position: absolute; left: calc(var(--pad) - .06em); bottom: -.13em; margin: 0; font-weight: 300; }
.hero__word {
  display: block; font-family: var(--f-disp); font-style: italic; font-weight: 300;
  font-size: clamp(110px, 21.5vw, 420px); line-height: .9; letter-spacing: -.025em; white-space: nowrap;
}
.hero__word .char { display: inline-block; will-change: transform; }
.hero__jp {
  position: absolute; right: calc(var(--pad) + 2vw); top: 20vh;
  writing-mode: vertical-rl; font-family: var(--f-min); font-weight: 300;
  font-size: clamp(26px, 2.6vw, 44px); letter-spacing: .32em; line-height: 1.9;
  text-shadow: 0 2px 24px rgb(18 14 11 / .55), 0 0 2px rgb(18 14 11 / .3);
}
.hero__meta { position: absolute; left: var(--pad); top: 34vh; font-family: var(--f-mono); font-size: 11px; letter-spacing: .22em; text-transform: uppercase; line-height: 2.1; text-shadow: 0 1px 12px rgb(18 14 11 / .6); }
.hero__meta p:first-child::before { content: ""; display: inline-block; width: 28px; height: 1px; background: currentColor; vertical-align: middle; margin-right: 14px; }
.hero__badge { position: absolute; right: var(--pad); bottom: clamp(28px, 5vh, 56px); width: 118px; height: 118px; display: grid; place-items: center; }
.hero__badge svg { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 22s linear infinite; }
.hero__badge text { font-family: var(--f-mono); font-size: 9.6px; letter-spacing: .22em; text-transform: uppercase; fill: currentColor; }
.hero__badge span { font-size: 18px; transition: transform .6s var(--ease); }
.hero__badge:hover span { transform: translateY(6px); }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- intro ---------- */
.intro { padding: clamp(120px, 20vw, 280px) var(--pad) clamp(100px, 16vw, 220px); max-width: 1500px; margin: 0 auto; }
.intro .label { margin-bottom: 48px; }
.intro__text {
  font-family: var(--f-min); font-weight: 300;
  font-size: clamp(24px, 3.3vw, 54px); line-height: 1.85; letter-spacing: .06em;
  max-width: 21em;
}
.intro__text .w { opacity: .14; transition: none; }
.intro__pic { display: inline-block; width: 2.1em; height: 1.05em; border-radius: 999px; overflow: hidden; vertical-align: -.12em; margin: 0 .18em; }
.js .intro__pic { transform: scale(.4); opacity: 0; }
.intro__pic--wide { width: 2.8em; }
.intro__pic img { width: 100%; height: 100%; object-fit: cover; }
.intro__en { margin-top: 48px; font-family: var(--f-disp); font-style: italic; font-size: clamp(18px, 1.6vw, 24px); color: var(--mute); letter-spacing: .01em; max-width: 30em; }

/* ---------- story ---------- */
.story { display: grid; grid-template-columns: repeat(12, 1fr); gap: 0 clamp(16px, 2vw, 32px); padding: 0 var(--pad) clamp(120px, 14vw, 220px); align-items: center; }
.story__media { grid-column: 1 / span 6; position: relative; padding-bottom: 14%; }
.story__main { width: 78%; aspect-ratio: 3 / 4; overflow: hidden; }
.story__sub { position: absolute; right: 0; bottom: 0; width: 44%; aspect-ratio: 3 / 4; overflow: hidden; box-shadow: 0 0 0 10px var(--bg); transition: box-shadow 1s var(--ease); }
.story__main img, .story__sub img { width: 100%; height: 100%; object-fit: cover; }
.story__body { grid-column: 8 / span 5; }
.story__title { font-family: var(--f-min); font-weight: 300; font-size: clamp(30px, 3.4vw, 56px); line-height: 1.55; letter-spacing: .08em; margin: 36px 0 40px; }
.story__text p + p { margin-top: 1.2em; }
.story__text { color: var(--mute); max-width: 30em; }
.story__facts { display: flex; gap: clamp(24px, 4vw, 64px); margin: 48px 0; padding: 28px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.story__facts dt { font-family: var(--f-mono); font-size: 10px; letter-spacing: .22em; text-transform: uppercase; color: var(--mute); }
.story__facts dd { font-family: var(--f-disp); font-size: clamp(30px, 3vw, 46px); line-height: 1.2; font-weight: 300; }
.story__facts dd:not(:only-child) { font-family: var(--f-min); }
.story__sign { font-family: var(--f-min); font-size: 15px; letter-spacing: .2em; display: flex; flex-direction: column; gap: 4px; }
.story__sign em { font-family: var(--f-disp); font-size: 17px; letter-spacing: .02em; color: var(--mute); }

/* ---------- marquee ---------- */
.marquee { overflow: hidden; padding: 20px 0 clamp(80px, 10vw, 160px); white-space: nowrap; }
.marquee__track { display: inline-flex; align-items: center; will-change: transform; }
.marquee span { font-family: var(--f-disp); font-style: italic; font-weight: 300; font-size: clamp(64px, 10.5vw, 190px); line-height: 1.1; padding: 0 .28em; letter-spacing: -.01em; }
.marquee i { font-style: normal; color: var(--amber); font-size: clamp(24px, 3vw, 52px); }

/* ---------- menu ---------- */
.menu { position: relative; padding: clamp(110px, 12vw, 190px) var(--pad) clamp(110px, 12vw, 190px); }
.menu__head { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 24px 40px; margin-bottom: clamp(48px, 6vw, 90px); }
.menu__head .label { grid-column: 1 / -1; }
.menu__title { display: flex; align-items: flex-start; gap: .25em; font-weight: 300; margin: 0; }
.menu__en { font-family: var(--f-disp); font-style: italic; font-size: clamp(96px, 15vw, 260px); line-height: .8; letter-spacing: -.03em; }
.menu__jp { writing-mode: vertical-rl; font-family: var(--f-min); font-size: clamp(16px, 1.5vw, 22px); letter-spacing: .5em; margin-top: .6em; color: var(--mute); }
.tabs { position: relative; display: flex; gap: clamp(20px, 3vw, 44px); padding-bottom: 12px; }
.tabs button { font-family: var(--f-disp); font-style: italic; font-size: clamp(22px, 2vw, 30px); color: var(--mute); transition: color .5s var(--ease); }
.tabs button[aria-selected="true"] { color: var(--fg); }
.tabs__bar { position: absolute; bottom: 0; left: 0; height: 1px; width: 40px; background: var(--fg); transition: transform .7s var(--ease), width .7s var(--ease); }

.menu__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(40px, 7vw, 140px); align-items: start; }
.menu__list { border-top: 1px solid var(--line); }
.menu__list li {
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 24px;
  padding: clamp(22px, 2.2vw, 34px) 0; border-bottom: 1px solid var(--line);
  transition: padding .7s var(--ease), color .5s;
}
.menu__list li:hover { padding-left: 18px; }
.m-thumb { display: none; }
.m-name { display: grid; grid-template-columns: auto 1fr; align-items: baseline; gap: 2px 18px; }
.m-name strong { font-family: var(--f-min); font-weight: 400; font-size: clamp(18px, 1.7vw, 26px); letter-spacing: .08em; }
.m-name em { font-family: var(--f-disp); font-size: clamp(16px, 1.3vw, 20px); color: var(--mute); }
.m-name small { grid-column: 1 / -1; font-size: 13px; color: var(--mute); letter-spacing: .06em; }
.m-price { font-family: var(--f-disp); font-size: clamp(24px, 2vw, 32px); font-weight: 400; font-variant-numeric: lining-nums tabular-nums; }
.menu__list[hidden] { display: none; }
.menu__note { margin-top: 24px; font-size: 12px; color: var(--mute); }

.beans { position: sticky; top: 110px; background: var(--paper-2); padding: clamp(28px, 3vw, 44px); border-radius: 2px; }
.beans__label { font-family: var(--f-mono); font-size: 10px; letter-spacing: .24em; text-transform: uppercase; color: var(--paper-mute); }
.beans__title { font-family: var(--f-min); font-weight: 400; font-size: 24px; letter-spacing: .12em; margin: 8px 0 24px; }
.beans__list li { display: grid; grid-template-columns: 1fr auto; gap: 6px 16px; padding: 18px 0; border-top: 1px solid var(--line); }
.beans__list strong { display: block; font-family: var(--f-disp); font-size: 21px; font-weight: 500; letter-spacing: .01em; line-height: 1.3; }
.beans__list small { font-size: 12px; color: var(--paper-mute); }
.beans__list em { grid-column: 1 / -1; font-style: normal; font-family: var(--f-mono); font-size: 11px; letter-spacing: .08em; }
.roast { display: flex; gap: 4px; align-self: center; }
.roast i { width: 8px; height: 8px; border-radius: 50%; border: 1px solid var(--paper-ink); }
.roast[data-r="1"] i:nth-child(-n+1), .roast[data-r="2"] i:nth-child(-n+2), .roast[data-r="3"] i:nth-child(-n+3),
.roast[data-r="4"] i:nth-child(-n+4), .roast[data-r="5"] i:nth-child(-n+5) { background: var(--paper-ink); }
.beans__foot { margin-top: 16px; font-size: 12px; color: var(--paper-mute); }

/* floating preview image (menu + journal) */
.float {
  position: fixed; left: 0; top: 0; z-index: 40; width: clamp(200px, 17vw, 280px); aspect-ratio: 4 / 5;
  pointer-events: none; overflow: hidden; border-radius: 3px; opacity: 0; transform: translate3d(-50%, -50%, 0) scale(.6);
  box-shadow: 0 30px 60px -20px rgb(18 14 11 / .45);
}
.float img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- roastery ---------- */
.roastery { padding-bottom: clamp(60px, 8vw, 120px); }
.roastery__hero { position: relative; height: 110vh; min-height: 640px; overflow: hidden; color: var(--cream); }
.roastery__img { position: absolute; inset: -12% 0; }
.roastery__img img { width: 100%; height: 100%; object-fit: cover; }
.roastery__hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgb(18 14 11 / .82) 0%, rgb(18 14 11 / .25) 55%, rgb(18 14 11 / .1) 100%), linear-gradient(0deg, var(--ink) 0%, transparent 30%); }
.roastery__copy { position: absolute; left: var(--pad); bottom: clamp(80px, 14vh, 160px); z-index: 1; max-width: 900px; }
.roastery__title { font-family: var(--f-disp); font-weight: 300; font-size: clamp(52px, 7.4vw, 128px); line-height: .98; letter-spacing: -.02em; margin: 28px 0 32px; }
.roastery__title em { color: var(--amber); }
.roastery__jp { max-width: 28em; color: rgb(239 230 216 / .8); }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); padding: clamp(60px, 8vw, 120px) var(--pad); gap: 24px; }
.stats div { border-top: 1px solid var(--line); padding-top: 22px; }
.stats dt { font-size: 13px; color: var(--mute); letter-spacing: .12em; }
.stats dd { font-family: var(--f-disp); font-weight: 300; font-size: clamp(64px, 8.5vw, 150px); line-height: 1; letter-spacing: -.03em; font-variant-numeric: lining-nums tabular-nums; }
.stats dd small { font-family: var(--f-min); font-size: .22em; letter-spacing: .1em; margin-left: .2em; color: var(--mute); }

.hgallery { position: relative; height: 100vh; overflow: hidden; }
.hgallery__track { display: flex; align-items: center; gap: clamp(28px, 4vw, 72px); height: 100%; padding: 0 var(--pad); width: max-content; will-change: transform; }
.hgallery__intro { width: clamp(240px, 24vw, 380px); flex: none; display: flex; flex-direction: column; gap: 24px; }
.hgallery__intro strong { font-family: var(--f-min); font-weight: 300; font-size: clamp(28px, 3vw, 48px); line-height: 1.6; letter-spacing: .08em; }
.hgallery__intro small { font-family: var(--f-mono); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--mute); }
.hg { flex: none; display: flex; flex-direction: column; gap: 16px; }
.hg:nth-child(odd) { align-self: flex-start; margin-top: 12vh; }
.hg:nth-child(even) { align-self: flex-end; margin-bottom: 10vh; }
.hg__img { overflow: hidden; height: 100%; }
.hg__img img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.18); will-change: transform; }
.hg--tall .hg__img { height: 56vh; aspect-ratio: 3 / 4; }
.hg--sq .hg__img { height: 40vh; aspect-ratio: 1; }
.hg--wide .hg__img { height: 46vh; aspect-ratio: 4 / 3; }
.hg figcaption { font-size: 13px; color: var(--mute); display: flex; gap: 14px; align-items: baseline; }
.hg figcaption b { font-family: var(--f-mono); font-weight: 500; font-size: 11px; color: var(--amber); letter-spacing: .12em; }
.hgallery__progress { position: absolute; left: var(--pad); right: var(--pad); bottom: 36px; height: 1px; background: var(--line); }
.hgallery__progress span { position: absolute; inset: 0; background: var(--fg); transform-origin: left; transform: scaleX(0); }

/* ---------- journal ---------- */
.journal { padding: clamp(110px, 12vw, 190px) var(--pad); }
.journal__head { display: flex; flex-direction: column; gap: 24px; margin-bottom: clamp(40px, 5vw, 80px); }
.journal__title { font-family: var(--f-disp); font-style: italic; font-weight: 300; font-size: clamp(80px, 11vw, 190px); line-height: .85; letter-spacing: -.03em; }
.journal__list { border-top: 1px solid var(--line); }
.journal__list a { display: grid; grid-template-columns: 140px 130px 1fr auto; align-items: center; gap: 24px; padding: clamp(26px, 2.8vw, 42px) 0; border-bottom: 1px solid var(--line); transition: padding .7s var(--ease); }
.journal__list a:hover { padding-left: 18px; padding-right: 8px; }
.journal__list time { font-family: var(--f-mono); font-size: 12px; letter-spacing: .1em; color: var(--mute); }
.j-tag { justify-self: start; font-family: var(--f-mono); font-size: 10px; letter-spacing: .18em; text-transform: uppercase; border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; }
.journal__list strong { font-family: var(--f-min); font-weight: 400; font-size: clamp(18px, 1.8vw, 26px); letter-spacing: .08em; }
.j-arrow { font-size: 22px; transition: transform .6s var(--ease); }
.journal__list a:hover .j-arrow { transform: translateX(8px); }

/* ---------- visit ---------- */
.visit { position: relative; }
.visit__img { position: relative; height: 88vh; min-height: 520px; overflow: hidden; }
.visit__img img { position: absolute; inset: -10% 0; width: 100%; height: 120%; object-fit: cover; }
.visit__img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, var(--ink) 100%); }
.visit__inner { position: relative; margin-top: -34vh; padding: 0 var(--pad) clamp(100px, 12vw, 180px); z-index: 1; }
.visit__title { font-family: var(--f-min); font-weight: 300; font-size: clamp(34px, 5vw, 84px); line-height: 1.5; letter-spacing: .08em; margin: 28px 0 clamp(60px, 7vw, 110px); }
.visit__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 140px); }
.visit__info div { display: grid; grid-template-columns: 110px 1fr; padding: 22px 0; border-top: 1px solid var(--line); }
.visit__info dt, .visit__hours caption { font-family: var(--f-mono); font-size: 10px; letter-spacing: .24em; text-transform: uppercase; color: var(--mute); text-align: left; padding-top: .5em; }
.visit__info small { display: block; font-size: 11px; color: var(--mute); }
.visit__hours table { width: 100%; border-collapse: collapse; }
.visit__hours caption { padding-bottom: 14px; }
.visit__hours th, .visit__hours td { text-align: left; font-weight: 400; padding: 18px 0; border-top: 1px solid var(--line); }
.visit__hours td { font-family: var(--f-disp); font-size: 24px; text-align: right; font-variant-numeric: lining-nums; }
.visit__hours tr.is-today th::after { content: "Today"; margin-left: 12px; font-family: var(--f-mono); font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: var(--ink); background: var(--amber); padding: 2px 8px; border-radius: 999px; vertical-align: 2px; }
.visit__lo { font-size: 12px; color: var(--mute); margin-top: 12px; }
.visit__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }

.btn {
  position: relative; display: inline-flex; align-items: center; gap: 16px; overflow: hidden;
  padding: 16px 28px; border-radius: 999px; background: var(--cream); color: var(--ink);
  font-size: 14px; letter-spacing: .12em; isolation: isolate;
}
.btn::before { content: ""; position: absolute; inset: 0; background: var(--amber); transform: translateY(101%); border-radius: inherit; transition: transform .6s var(--ease); z-index: -1; }
.btn:hover::before { transform: translateY(0); }
.btn span { transition: transform .6s var(--ease); }
.btn:hover span { transform: translate(3px, -3px); }
.btn--ghost { background: transparent; color: var(--fg); box-shadow: inset 0 0 0 1px var(--line); }
.btn--ghost:hover { color: var(--ink); }

/* ---------- footer ---------- */
.footer { padding: 0 var(--pad) 36px; overflow: hidden; }
.footer__word { font-family: var(--f-disp); font-style: italic; font-weight: 300; font-size: 25.5vw; line-height: .8; letter-spacing: -.035em; margin: 0 -.02em clamp(24px, 3vw, 48px); white-space: nowrap; }
.footer__row { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; padding-top: 24px; border-top: 1px solid var(--line); font-family: var(--f-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; }
.footer__row nav { display: flex; gap: 28px; }
.footer__note { margin-top: 18px; font-size: 11px; color: var(--mute); }

.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 120; transform: translate(-50%, 20px); opacity: 0;
  background: var(--cream); color: var(--ink); padding: 12px 22px; border-radius: 999px; font-size: 13px;
  transition: opacity .5s var(--ease), transform .5s var(--ease); pointer-events: none; max-width: calc(100vw - 40px);
}
.toast.is-show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- split text helpers ---------- */
.line-mask { overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .header__nav { display: none; }
  .header { grid-template-columns: 1fr auto auto; gap: 20px; }
  .header__menu { display: flex; }
  .header__status { font-size: 11px; }
}
/* reduced motion on a large screen (no pin): the day as a column of whole photographs, one to each side */
@media (min-width: 901px) and (prefers-reduced-motion: reduce) {
  .hgallery { height: auto; overflow: visible; padding: 60px 0 80px; }
  .hgallery__track { width: auto; height: auto; flex-direction: column; align-items: stretch; gap: 90px; }
  .hgallery__intro small { display: none; }
  .hg:nth-child(odd), .hg:nth-child(even) { margin: 0; align-self: flex-start; }
  .hg:nth-child(odd) { align-self: flex-end; }
  .hgallery__progress { display: none; }
}

@media (max-width: 900px) {
  .story__media, .story__body { grid-column: 1 / -1; }
  .story__media { margin-bottom: 64px; }
  .menu__grid { grid-template-columns: 1fr; }
  .beans { position: relative; top: 0; }
  .visit__grid { grid-template-columns: 1fr; }
  .journal__list a { grid-template-columns: 1fr auto; gap: 8px 16px; }
  .journal__list time { grid-column: 1; }
  .j-tag { grid-column: 2; grid-row: 1; justify-self: end; }
  .journal__list strong { grid-column: 1; }
  .j-arrow { grid-column: 2; grid-row: 2; }
  /* the day, on a phone: a column of whole photographs (no sideways row: a photo would be cut at the screen's
     edge) — wide ones full width, the portraits and the square narrower, one to each side */
  .hgallery { height: auto; overflow: visible; padding: 40px 0 60px; }
  .hgallery__track { width: auto; height: auto; flex-direction: column; align-items: stretch; gap: 56px; }
  .hgallery__intro { width: auto; }
  .hgallery__intro small { display: none; }
  .hg:nth-child(odd), .hg:nth-child(even) { width: 100%; margin: 0; align-self: auto; }
  .hg.hg--tall { width: 76%; }
  .hg.hg--sq { width: 64%; }
  .hg:nth-child(odd) { margin-left: auto; }
  .hg .hg__img, .hg--tall .hg__img, .hg--sq .hg__img, .hg--wide .hg__img { width: 100%; height: auto; }
  .hgallery__progress { display: none; }
  .hg__img img { transform: none; }
}
@media (max-width: 640px) {
  body { font-size: 14px; }
  .header__status span:last-child { display: none; }
  .header__status { gap: 0; }
  .hero__jp { top: 16vh; right: var(--pad); }
  .hero__meta { top: auto; bottom: 30vw; }
  .hero__badge { width: 92px; height: 92px; bottom: 44vw; }
  .hero__word { font-size: 25vw; }
  .m-thumb { display: block; width: 64px; height: 64px; border-radius: 2px; overflow: hidden; }
  .m-thumb img { width: 100%; height: 100%; object-fit: cover; }
  .menu__list li { grid-template-columns: 64px 1fr auto; gap: 16px; }
  .menu__list li:hover { padding-left: 0; }
  .m-name { grid-template-columns: 1fr; }
  .menu__head { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
  .stats dd { font-size: 88px; }
  .visit__inner { margin-top: -22vh; }
  .visit__info div { grid-template-columns: 90px 1fr; }
  .footer__row nav { display: none; }
  .float { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .grain { animation: none; }
  .loader { display: none; }
  .intro__text .w { opacity: 1; }
  .intro__pic { transform: none; opacity: 1; }
}

/* ---------- cursor: sunlight through leaves (cursor.js) ---------- */
.has-sun, .has-sun a, .has-sun button, .has-sun label, .has-sun summary, .has-sun [role=tab] { cursor: none; }
.sun { position: fixed; left: 0; top: 0; z-index: 9000; pointer-events: none; opacity: 0; mix-blend-mode: screen; transition: opacity .5s; }
.sun.is-live { opacity: 1; }
.sun.is-native { opacity: 0; }
.sun__spot { position: absolute; left: -15px; top: -15px; width: 30px; height: 30px; border-radius: 50%; background: radial-gradient(circle, rgb(255 224 172 / .6) 0 36%, rgb(240 182 112 / .26) 56%, rgb(212 154 92 / 0) 72%); transition: width .6s var(--ease), height .6s var(--ease), left .6s var(--ease), top .6s var(--ease); }
.sun__spot:nth-child(2) { left: -11px; top: -11px; width: 22px; height: 22px; }
.sun__spot:nth-child(3) { left: -9px; top: -9px; width: 18px; height: 18px; }
.sun__pt { position: absolute; left: -2.5px; top: -2.5px; width: 5px; height: 5px; border-radius: 50%; background: #ffe6bd; box-shadow: 0 0 5px 1px rgb(255 214 150 / .9); transition: transform .3s; }
.sun.is-hover .sun__spot { left: -30px; top: -30px; width: 60px; height: 60px; }
.sun.is-hover .sun__spot:nth-child(2) { left: -22px; top: -22px; width: 44px; height: 44px; }
.sun.is-hover .sun__spot:nth-child(3) { left: -17px; top: -17px; width: 34px; height: 34px; }
.sun.is-down .sun__spot { filter: brightness(1.5); }
body[data-theme="paper"] .sun { mix-blend-mode: multiply; }
body[data-theme="paper"] .sun__spot { background: radial-gradient(circle, rgb(212 154 92 / .34) 0 36%, rgb(212 154 92 / .14) 56%, rgb(212 154 92 / 0) 72%); }
body[data-theme="paper"] .sun__pt { background: var(--amber); box-shadow: none; }
