/* ==========================================================================
   specialtycoffee.info — v12 "Roast"
   温かい紙（Crema）と深煎り（Espresso）の2テーマ。site.css の上に重ねる。
   ========================================================================== */

/* ---------- tokens ---------- */
html body.ui,
html body.ui main,
html body.ui .tone-light,
html body.ui .tone-paper,
html body.ui .site-header {
  --bg: #f4efe6;
  --bg-2: #fbf8f2;
  --bg-3: #ebe4d8;
  --surface: #fffdf9;
  --surface-2: #f7f2ea;
  --text: #19120c;
  --text-2: #4d4237;
  --muted: #8a7d70;
  --line: rgba(25, 18, 12, .10);
  --line-strong: rgba(25, 18, 12, .26);
  --accent: #e2552b;
  --accent-2: #c43f18;
  --accent-text: #b8401a;
  --accent-ink: #fff;
  --accent-soft: rgba(226, 85, 43, .11);
  --glow: rgba(226, 85, 43, .28);
  --ring: rgba(226, 85, 43, .35);
  --shadow-1: 0 1px 2px rgba(40, 24, 10, .06), 0 2px 8px rgba(40, 24, 10, .05);
  --shadow-2: 0 2px 4px rgba(40, 24, 10, .05), 0 18px 40px -18px rgba(60, 30, 10, .28);
  --shadow-3: 0 30px 80px -30px rgba(60, 30, 10, .45);
  --r-s: 10px;
  --r-m: 16px;
  --r-l: 24px;
  --disp: "Zen Kaku Gothic New", "Noto Sans JP", system-ui, sans-serif;
  --num: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --serif: var(--disp);
  --latin: var(--num);
  --mono: var(--num);
  --sans: "Noto Sans JP", "Hiragino Kaku Gothic ProN", system-ui, sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  color: var(--text);
}
html body.ui .tone-ink,
html[data-theme="dark"] body.ui,
html[data-theme="dark"] body.ui main,
html[data-theme="dark"] body.ui .tone-light,
html[data-theme="dark"] body.ui .tone-paper,
html[data-theme="dark"] body.ui .site-header {
  --bg: #100b08;
  --bg-2: #16100c;
  --bg-3: #1f1712;
  --surface: #1a130f;
  --surface-2: #231a14;
  --text: #f5ede2;
  --text-2: #cdbfae;
  --muted: #94877a;
  --line: rgba(245, 237, 226, .09);
  --line-strong: rgba(245, 237, 226, .24);
  --accent: #ff7a45;
  --accent-2: #ff996d;
  --accent-text: #ff9a6c;
  --accent-ink: #150d08;
  --accent-soft: rgba(255, 122, 69, .13);
  --glow: rgba(255, 122, 69, .3);
  --ring: rgba(255, 122, 69, .45);
  --shadow-1: 0 1px 2px rgba(0, 0, 0, .4);
  --shadow-2: 0 2px 6px rgba(0, 0, 0, .35), 0 20px 50px -20px rgba(0, 0, 0, .7);
  --shadow-3: 0 30px 90px -30px rgba(0, 0, 0, .85);
  color: var(--text);
}
html[data-theme="dark"] { color-scheme: dark; }
html:not([data-theme="dark"]) body.ui { color-scheme: light; }

html body.ui { background: var(--bg); font-family: var(--sans); letter-spacing: .02em; }
html body.ui main { background: var(--bg); font-family: var(--sans); color: var(--text); }
html body.ui .tone-light { background: var(--bg); }
html body.ui .tone-paper { background: var(--bg-2); }
html body.ui .tone-ink { background: var(--bg); }
html[data-theme="dark"] body.ui .tone-paper { background: var(--bg-2); }
body.ui ::selection { background: var(--accent); color: var(--accent-ink); }
body.ui :focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* subtle film grain over everything (static, no cost) */
body.ui::after {
  content: ""; position: fixed; inset: 0; z-index: 300; pointer-events: none; opacity: .035; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
html[data-theme="dark"] body.ui::after { mix-blend-mode: screen; opacity: .04; }

/* page transitions (cross-document View Transitions) */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out .22s var(--ease, ease) both; }
::view-transition-new(root) { animation: vt-in .38s var(--ease, ease) both; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-6px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(10px); } }
.site-header { view-transition-name: site-header; }

/* ---------- type ---------- */
body.ui :is(.h1, .h2, .display, .home-title, .word-ja, .board-title, .footer-lead, .equip-panel strong, .callout strong, .empty-title, .cal-title, .event-month-h, .kana-h, .overlay-nav strong) { font-family: var(--disp); font-weight: 900; letter-spacing: -.02em; }
body.ui .h1 { font-size: clamp(2.2rem, 5.4vw, 4.6rem); line-height: 1.12; }
body.ui .h2 { font-size: clamp(1.6rem, 3.2vw, 2.6rem); line-height: 1.2; }
body.ui .h3 { font-family: var(--disp); font-weight: 900; font-size: 1.25rem; letter-spacing: -.01em; }
body.ui :is(.card-title, .event-title, .article-list strong, .know-list strong, .term-list dt, .rc-name) { font-family: var(--disp); font-weight: 700; }
body.ui .lead { color: var(--text-2); }
body.ui main .eyebrow { display: inline-flex; align-items: center; gap: 10px; font-family: var(--num); font-weight: 600; font-size: .76rem; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-text); }
body.ui main .eyebrow::before { content: ""; width: 18px; height: 2px; border-radius: 2px; background: currentColor; }
.grad-text { background: linear-gradient(100deg, var(--text) 10%, var(--accent) 48%, #f2a541 62%, var(--text) 90%); background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shine 9s ease-in-out infinite; }
@keyframes shine { 0%, 100% { background-position: 100% 0; } 50% { background-position: 0 0; } }

/* ---------- buttons ---------- */
body.ui .btn { font-family: var(--disp); font-weight: 700; border-radius: 999px; padding: 14px 26px; background: var(--text); border-color: var(--text); color: var(--bg); box-shadow: var(--shadow-1); transition: transform .35s var(--spring), background .25s, color .25s, box-shadow .35s, border-color .25s; }
body.ui .btn:hover { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); transform: translateY(-2px); box-shadow: 0 12px 30px -10px var(--glow); }
body.ui .btn:active { transform: translateY(0) scale(.98); }
body.ui .btn.ghost { background: transparent; color: var(--text); border-color: var(--line-strong); box-shadow: none; }
body.ui .btn.ghost:hover { background: var(--surface); border-color: var(--text); color: var(--text); }
body.ui .btn-light { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
body.ui .btn.small { padding: 8px 16px; }
body.ui main .tone-light .btn, body.ui main .tone-paper .btn { --accent: #e2552b; --accent-ink: #fff; }
html[data-theme="dark"] body.ui main :is(.tone-light, .tone-paper) .btn { --accent: #ff7a45; --accent-ink: #150d08; }
body.ui .link-arrow { display: inline-flex; align-items: center; gap: 8px; border: 0; color: var(--text); font-weight: 700; font-family: var(--disp); text-decoration: none; padding: 8px 0; }
body.ui .link-arrow::after { content: "→"; display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--text); color: var(--bg); font-size: .85rem; transition: transform .35s var(--spring), background .25s; }
body.ui .link-arrow:hover::after { transform: translateX(4px); background: var(--accent); color: var(--accent-ink); }

/* ---------- header ---------- */
body.ui .site-header {
  position: sticky; top: 12px; margin: 12px auto 0; width: min(1360px, calc(100% - 24px)); height: 60px; padding: 0 10px 0 20px; gap: 18px;
  background: color-mix(in srgb, var(--surface) 72%, transparent); color: var(--text);
  border: 1px solid var(--line); border-radius: 999px; box-shadow: var(--shadow-2);
  backdrop-filter: saturate(1.6) blur(18px); -webkit-backdrop-filter: saturate(1.6) blur(18px);
  transition: transform .5s var(--ease), background .3s, box-shadow .3s;
}
body.ui.head-hide .site-header { transform: translateY(calc(-100% - 20px)); }
body.ui .brand-mark { color: var(--accent); filter: none; width: 24px; height: 24px; transition: transform .8s var(--spring); }
body.ui .brand:hover .brand-mark { transform: rotate(200deg); }
body.ui .brand-text { font-family: var(--num); font-weight: 800; font-size: 1.12rem; letter-spacing: -.02em; }
body.ui .brand-text i { font-style: normal; font-weight: 500; color: var(--accent-text); }
body.ui .gnav { gap: 2px; padding: 4px; border-radius: 999px; background: var(--surface-2); }
body.ui .gnav a { padding: 7px 14px; border-radius: 999px; font-size: .82rem; font-weight: 500; letter-spacing: .02em; color: var(--text-2); transition: background .25s, color .25s; }
body.ui .gnav a::after { display: none; }
body.ui .gnav a:hover { color: var(--text); background: var(--surface); }
body.ui .gnav a[aria-current] { color: var(--bg); background: var(--text); }
.head-tools { display: flex; align-items: center; gap: 6px; margin-left: 4px; }
.icon-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--text); cursor: pointer; transition: background .25s, transform .35s var(--spring), border-color .25s; }
.icon-btn:hover { border-color: var(--text); transform: rotate(-8deg) scale(1.06); }
.icon-btn svg { width: 18px; height: 18px; }
.search-btn { display: inline-flex; align-items: center; gap: 10px; height: 40px; padding: 0 8px 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); font: 500 .82rem var(--sans); cursor: pointer; transition: border-color .25s, color .25s; }
.search-btn:hover { border-color: var(--text); color: var(--text); }
.search-btn svg { width: 16px; height: 16px; }
.search-btn kbd { font: 600 .7rem var(--num); padding: 3px 7px; border-radius: 6px; background: var(--surface-2); border: 1px solid var(--line); color: var(--text-2); }
.theme-btn .moon { display: none; }
html[data-theme="dark"] .theme-btn .sun { display: none; }
html[data-theme="dark"] .theme-btn .moon { display: block; }
body.ui .menu-btn { height: 40px; padding: 0 14px; border-radius: 999px; background: var(--text); color: var(--bg); }
body.ui .menu-btn-label { font: 700 .78rem var(--num); letter-spacing: .04em; text-transform: none; }
body.ui .menu-btn-icon { width: 18px; }
body.ui.menu-open .site-header { background: transparent; box-shadow: none; border-color: transparent; color: #f5ede2; }
body.ui.menu-open .menu-btn { background: #f5ede2; color: #100b08; }
@media (max-width: 1240px) { body.ui .gnav { display: none; } body.ui .head-tools { margin-left: auto; } }
@media (max-width: 640px) {
  body.ui .site-header { top: 8px; margin-top: 8px; width: calc(100% - 16px); height: 54px; padding: 0 6px 0 14px; }
  .search-btn span, .search-btn kbd { display: none; }
  .search-btn { width: 40px; padding: 0; justify-content: center; }
  body.ui .menu-btn-label { display: none; }
  body.ui .menu-btn { width: 40px; padding: 0; justify-content: center; }
}
/* reading progress */
.read-progress { position: fixed; left: 0; top: 0; z-index: 400; height: 3px; width: 100%; transform-origin: 0 50%; transform: scaleX(var(--p, 0)); background: linear-gradient(90deg, #f2a541, var(--accent, #e2552b)); pointer-events: none; }

/* ---------- overlay menu ---------- */
body.ui .overlay { background: #100b08; }
body.ui .overlay::before { content: ""; position: absolute; inset: -20%; background: radial-gradient(40% 35% at 75% 20%, rgba(255, 122, 69, .28), transparent 70%), radial-gradient(35% 30% at 15% 85%, rgba(242, 165, 65, .16), transparent 70%); filter: blur(10px); animation: drift 18s ease-in-out infinite alternate; pointer-events: none; }
body.ui .overlay-inner { position: relative; }
body.ui .overlay-nav a { transition: color .25s, padding .45s var(--spring); }
body.ui .overlay-nav strong { font-size: clamp(2rem, 6vw, 4.4rem); line-height: 1.12; }
body.ui.menu-open .overlay-nav li { animation: rise .7s var(--spring) both; animation-delay: calc(var(--i, 0) * 45ms + 80ms); }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } }

/* ---------- command palette ---------- */
.cmdk { position: fixed; inset: 0; z-index: 500; display: grid; align-items: start; justify-items: center; padding: clamp(56px, 12vh, 140px) 16px 16px; background: rgba(16, 11, 8, .42); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); opacity: 0; visibility: hidden; transition: opacity .25s, visibility 0s .25s; }
.cmdk.open { opacity: 1; visibility: visible; transition: opacity .25s; }
.cmdk-box { width: min(680px, 100%); max-height: min(70vh, 640px); display: flex; flex-direction: column; overflow: hidden; border-radius: 22px; background: var(--surface); color: var(--text); border: 1px solid var(--line-strong); box-shadow: var(--shadow-3); transform: translateY(-12px) scale(.98); transition: transform .45s var(--spring); }
.cmdk.open .cmdk-box { transform: none; }
.cmdk-field { display: flex; align-items: center; gap: 12px; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.cmdk-field svg { width: 20px; height: 20px; color: var(--accent); flex: none; }
.cmdk-field input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--text); font: 700 1.2rem var(--disp); }
.cmdk-field input::placeholder { color: var(--muted); font-weight: 500; }
.cmdk-field kbd { font: 600 .68rem var(--num); padding: 3px 7px; border-radius: 6px; border: 1px solid var(--line); color: var(--muted); }
.cmdk-list { list-style: none; margin: 0; padding: 8px; overflow-y: auto; }
.cmdk-list:empty { display: none; }
.cmdk-item a { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 12px; text-decoration: none; color: var(--text); }
.cmdk-item[aria-selected="true"] a { background: var(--accent-soft); }
.cmdk-item[aria-selected="true"] .cmdk-go { opacity: 1; transform: none; }
.cmdk-kind { font: 600 .66rem var(--num); letter-spacing: .04em; padding: 3px 8px; border-radius: 999px; background: var(--surface-2); color: var(--text-2); border: 1px solid var(--line); white-space: nowrap; }
.cmdk-t { min-width: 0; display: flex; flex-direction: column; line-height: 1.4; }
.cmdk-t strong { font: 700 .98rem var(--disp); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cmdk-t span { font-size: .76rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cmdk-go { color: var(--accent); opacity: 0; transform: translateX(-4px); transition: opacity .2s, transform .3s var(--spring); }
.cmdk-empty, .cmdk-foot { margin: 0; padding: 14px 20px; font-size: .8rem; color: var(--muted); }
.cmdk-foot { display: flex; flex-wrap: wrap; gap: 6px 16px; border-top: 1px solid var(--line); background: var(--surface-2); }
.cmdk-foot a { color: var(--text-2); }
.cmdk-quick { display: flex; flex-wrap: wrap; gap: 8px; padding: 14px 20px 18px; }
.cmdk-quick a { padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface-2); font-size: .84rem; text-decoration: none; color: var(--text); transition: border-color .2s, background .2s; }
.cmdk-quick a:hover { border-color: var(--text); }
.cmdk-label { margin: 0; padding: 14px 20px 0; font: 600 .7rem var(--num); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.cmdk mark { background: transparent; color: var(--accent-text); }

/* ---------- home hero ---------- */
body.ui .home-hero { position: relative; overflow: hidden; isolation: isolate; padding: clamp(48px, 7vw, 110px) 0 clamp(64px, 8vw, 120px); border-bottom: 0; }
.aurora { position: absolute; inset: -10% -10% auto; height: 120%; z-index: -1; pointer-events: none; filter: blur(60px) saturate(1.2); opacity: .9; }
.aurora i { position: absolute; border-radius: 50%; mix-blend-mode: multiply; animation: drift 22s ease-in-out infinite alternate; }
.aurora i:nth-child(1) { width: 46vw; height: 46vw; left: 48%; top: -8%; background: radial-gradient(circle, rgba(242, 165, 65, .55), transparent 65%); }
.aurora i:nth-child(2) { width: 38vw; height: 38vw; left: 66%; top: 26%; background: radial-gradient(circle, rgba(226, 85, 43, .45), transparent 65%); animation-duration: 28s; animation-delay: -6s; }
.aurora i:nth-child(3) { width: 34vw; height: 34vw; left: -6%; top: 40%; background: radial-gradient(circle, rgba(140, 90, 50, .30), transparent 65%); animation-duration: 32s; animation-delay: -12s; }
html[data-theme="dark"] .aurora i { mix-blend-mode: screen; opacity: .55; }
@keyframes drift { 0% { transform: translate3d(0, 0, 0) scale(1); } 50% { transform: translate3d(-6%, 5%, 0) scale(1.12); } 100% { transform: translate3d(5%, -4%, 0) scale(.94); } }
body.ui .home-hero-grid { gap: clamp(32px, 5vw, 72px); }
.hero-badge { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 22px; padding: 6px 14px 6px 8px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-1); font-size: .8rem; color: var(--text-2); }
.hero-badge b { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; background: var(--text); color: var(--bg); font: 700 .7rem var(--num); letter-spacing: .04em; }
.hero-badge b::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #5bd38a; box-shadow: 0 0 0 0 rgba(91, 211, 138, .6); animation: ping 2s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 7px rgba(91, 211, 138, 0); } 100% { box-shadow: 0 0 0 0 rgba(91, 211, 138, 0); } }
body.ui .home-title { font-size: clamp(2.4rem, 5.4vw, 5.2rem); line-height: 1.04; letter-spacing: -.035em; margin-bottom: 26px; }
body.ui .home-title span { display: block; overflow: hidden; padding-bottom: .06em; white-space: normal; }
body.ui .home-title span > em { display: inline-block; font-style: normal; animation: title-in 1.1s var(--ease) both; }
body.ui .home-title span:nth-child(2) > em { animation-delay: .12s; }
@keyframes title-in { from { transform: translateY(105%); } }
body.ui .home-lead { font-size: clamp(1rem, 1.25vw, 1.12rem); color: var(--text-2); max-width: 34em; }
body.ui .home-hero .hero-search { position: relative; max-width: 600px; padding: 6px; gap: 6px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line-strong); box-shadow: var(--shadow-2); transition: box-shadow .3s, border-color .3s; }
body.ui .home-hero .hero-search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 5px var(--accent-soft), var(--shadow-2); }
body.ui .home-hero .hero-search input { border: 0; background: transparent; padding: 12px 18px; font: 500 1rem var(--sans); outline: none; }
body.ui .home-hero .hero-search input:focus { outline: none; }
body.ui .home-hero .hero-search .btn { padding: 12px 24px; }
body.ui .region-links { gap: 8px; margin-top: 22px; }
body.ui .region-links a { background: color-mix(in srgb, var(--surface) 75%, transparent); border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px; backdrop-filter: blur(6px); transition: transform .35s var(--spring), background .2s, color .2s, border-color .2s; }
body.ui .region-links a:hover { background: var(--text); color: var(--bg); border-color: var(--text); transform: translateY(-2px); }
body.ui .region-links a span { color: var(--accent-text); font: 700 .82rem var(--num); }
body.ui .region-links a:hover span { color: var(--accent-2); }
.stat-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; margin: 30px 0 0; max-width: 600px; border-radius: var(--r-m); overflow: hidden; background: var(--line); border: 1px solid var(--line); }
.stat-strip div { padding: 14px 16px; background: color-mix(in srgb, var(--surface) 85%, transparent); }
.stat-strip dt { font-size: .72rem; color: var(--muted); }
.stat-strip dd { margin: 0; font: 800 clamp(1.4rem, 2.4vw, 2rem)/1.1 var(--num); letter-spacing: -.02em; font-variant-numeric: tabular-nums; color: var(--text); }
@media (max-width: 520px) { .stat-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* map instrument */
body.ui .scope { border-radius: var(--r-l); border: 1px solid var(--line); background: var(--surface) radial-gradient(circle, color-mix(in srgb, var(--text) 14%, transparent) 1px, transparent 1.4px) 0 0 / 20px 20px; box-shadow: var(--shadow-3); transform: perspective(1400px) rotateY(-4deg) rotateX(2deg); transition: transform .9s var(--ease); }
body.ui .scope:hover { transform: none; }
body.ui .jp-map .land { fill: color-mix(in srgb, var(--text) 22%, transparent); }
body.ui .jp-map .ghost { fill: color-mix(in srgb, var(--text) 22%, transparent); }
body.ui .jp-map .dot { fill: var(--accent); }
body.ui .jp-map .hit.on .dot, body.ui .jp-map .hit:hover .dot { fill: var(--text); }
body.ui .jp-map .label { fill: var(--text-2); }
body.ui .map-back { background: var(--surface); color: var(--text); border-color: var(--line-strong); border-radius: 999px; padding: 6px 14px; }
body.ui .readout { background: #19120c; border-radius: 0 0 var(--r-l) var(--r-l); }
html[data-theme="dark"] body.ui .readout { background: #0b0806; }
body.ui .ro-num { color: #ff7a45; }
body.ui .ro-list a { border-radius: 999px; }
body.ui .city-chips, body.ui .map-credit { background: var(--surface); }
@media (max-width: 959px) { body.ui .scope { transform: none; } }

/* ticker */
.ticker { position: relative; overflow: hidden; padding: 18px 0; border-block: 1px solid var(--line); background: var(--surface); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.ticker-track { display: flex; gap: 40px; width: max-content; animation: marquee 60s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker a { display: inline-flex; align-items: center; gap: 40px; white-space: nowrap; font: 900 clamp(1.2rem, 2.4vw, 1.9rem) var(--disp); letter-spacing: -.02em; text-decoration: none; color: var(--text); transition: color .2s; }
.ticker a::after { content: "✺"; color: var(--accent); font-size: .7em; }
.ticker a:hover { color: var(--accent-text); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- section heads ---------- */
body.ui .pick-sec, body.ui .equip-sec, body.ui .know-sec, body.ui .board-sec { padding: clamp(72px, 9vw, 128px) 0; }
body.ui .pick-head { border-bottom: 0; padding-bottom: 0; margin-bottom: 28px; align-items: end; }
.sec-kicker { display: block; margin: 0 0 10px; font: 600 .76rem var(--num); letter-spacing: .08em; text-transform: uppercase; color: var(--accent-text); }

/* ---------- cards ---------- */
body.ui .grid { gap: 18px; }
body.ui .card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l); padding: 22px 24px 24px; color: var(--text); box-shadow: var(--shadow-1); transition: transform .5s var(--spring), box-shadow .45s var(--ease), border-color .3s; }
body.ui .card::before { display: block; content: ""; position: absolute; inset: 0; width: auto; height: auto; border: 0; border-radius: inherit; z-index: 0; pointer-events: none; opacity: 0; transition: opacity .4s; background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), var(--accent-soft), transparent 45%); }
body.ui .card::after { display: none; }
body.ui .card > * { position: relative; z-index: 1; }
body.ui a.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-2); border-color: var(--line-strong); }
body.ui a.card:hover::before { opacity: 1; }
body.ui a.card:hover .card-title { color: var(--accent-text); }
body.ui .card-kicker { font: 500 .76rem var(--sans); letter-spacing: .02em; text-transform: none; color: var(--muted); }
body.ui .card-title { font-size: 1.22rem; line-height: 1.4; }
body.ui .card-text { color: var(--text-2); font-size: .88rem; }
body.ui .card-art { position: relative; z-index: 1; height: auto; aspect-ratio: 16 / 10; margin: -14px -16px 14px; border-radius: calc(var(--r-l) - 8px); overflow: hidden; filter: none;
  background: repeating-radial-gradient(circle at var(--x, 50%) var(--y, 50%), transparent 0 var(--r, 10px), rgba(255, 122, 69, .7) calc(var(--r, 10px)) calc(var(--r, 10px) + 1px)), radial-gradient(120% 140% at var(--x, 50%) var(--y, 50%), rgba(242, 165, 65, .35), transparent 60%), #1c140f; }
body.ui .card-art img { transition: transform 1.1s var(--ease), filter .6s; }
body.ui a.card:hover .card-art img { transform: scale(1.06); }
body.ui .card-art b { font: 900 5.4rem/1 var(--disp); color: rgba(255, 255, 255, .14); right: 16px; bottom: -.12em; }
body.ui .card-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(16, 11, 8, .35)); pointer-events: none; }
body.ui .chip { background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px; color: var(--text-2); font-size: .72rem; padding: 3px 10px; }
body.ui a.chip:hover { border-color: var(--accent); color: var(--accent-text); background: var(--accent-soft); }

/* bento: first pick card spans two columns on wide screens */
@media (min-width: 1000px) {
  .pick-sec .grid-3 > .card:first-child { grid-column: span 2; grid-row: span 2; }
  .pick-sec .grid-3 > .card:first-child .card-art { aspect-ratio: auto; flex: 1; min-height: 340px; }
  .pick-sec .grid-3 > .card:first-child .card-title { font-size: clamp(1.6rem, 2.4vw, 2.2rem); font-weight: 900; }
  .pick-sec .grid-3 > .card:first-child .card-text { font-size: .98rem; }
}

/* ---------- word of the day ---------- */
body.ui .word-sec { background: #100b08; color: #f5ede2; }
body.ui .word-sec::after { background: radial-gradient(circle, rgba(255, 122, 69, .22), transparent 62%); }
body.ui .word-ja { font-size: clamp(3.2rem, 11vw, 9.6rem); letter-spacing: -.04em; background: linear-gradient(180deg, #f5ede2 30%, rgba(245, 237, 226, .35)); -webkit-background-clip: text; background-clip: text; color: transparent; }
body.ui .word:hover .word-ja { background-image: linear-gradient(100deg, #f5ede2, #ff7a45 55%, #f2a541); }
body.ui .pill { border-radius: 999px; }

/* ---------- equipment panels ---------- */
body.ui .equip-panel { border-radius: var(--r-l); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-1); transition: transform .6s var(--spring), box-shadow .5s, border-color .3s; }
body.ui .equip-panel:hover { transform: translateY(-6px); box-shadow: var(--shadow-3); border-color: var(--line-strong); }
body.ui .equip-panel.is-dark { background: radial-gradient(120% 90% at 100% 0%, rgba(255, 122, 69, .28), transparent 55%), #19120c; color: #f5ede2; border-color: #19120c; }
body.ui .equip-panel strong { font-size: clamp(2.2rem, 4.4vw, 3.8rem); line-height: 1.08; }
body.ui .equip-art { transition: transform 1.2s var(--ease); }
body.ui .equip-panel:hover .equip-art { transform: rotate(-6deg) scale(1.08); }

/* ---------- knowledge / boards ---------- */
body.ui .know-list { border-top: 1px solid var(--line-strong); }
body.ui .know-list a { border-radius: var(--r-s); padding: 20px 16px; transition: background .25s, padding .45s var(--spring); }
body.ui .know-list a:hover { background: var(--surface); padding-left: 26px; }
body.ui .board-rows a { border-radius: var(--r-s); padding: 16px 12px; }
body.ui .board-rows a:hover { background: var(--surface); }

/* ---------- inner pages ---------- */
body.ui .crumbs { gap: 6px; padding-top: clamp(28px, 4vw, 44px); font: 500 .78rem var(--sans); letter-spacing: .02em; text-transform: none; }
body.ui .crumbs a { color: var(--muted); }
body.ui .crumbs a:hover { color: var(--accent-text); }
body.ui .page-head { border-bottom: 0; margin-bottom: clamp(28px, 4vw, 48px); padding-bottom: clamp(28px, 4vw, 48px); }
body.ui .page-head::before { display: block; content: ""; position: absolute; left: auto; right: -10%; top: -60%; width: 60vw; aspect-ratio: 1; z-index: -1; background: radial-gradient(circle, rgba(242, 165, 65, .22), transparent 60%); filter: blur(20px); }
body.ui .page-head::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: linear-gradient(90deg, var(--line-strong), transparent); }
body.ui .page-head[data-num]::after { content: attr(data-num); height: auto; left: auto; background: none; font: 900 clamp(7rem, 16vw, 14rem)/.8 var(--num); color: transparent; -webkit-text-stroke: 1.5px color-mix(in srgb, var(--accent) 30%, transparent); bottom: 10px; }
body.ui .tabs { gap: 6px; padding: 4px 0 8px; }
body.ui .tabs a { background: var(--surface); border: 1px solid var(--line); border-radius: 999px; transition: background .2s, color .2s, border-color .2s, transform .35s var(--spring); }
body.ui .tabs a:hover { border-color: var(--text); transform: translateY(-1px); }
body.ui .tabs a[aria-current] { background: var(--text); color: var(--bg); border-color: var(--text); }
body.ui main .filters { gap: 10px 14px; padding: 14px; border-radius: var(--r-m); background: var(--surface); border: 1px solid var(--line); }
body.ui main .filters select, body.ui main .form input, body.ui main .form select, body.ui main .form textarea, body.ui main .hero-search input { background: var(--surface); color: var(--text); border: 1px solid var(--line-strong); border-radius: 12px; }
body.ui main .hero-search { gap: 8px; }
body.ui main .hero-search .btn { border-radius: 999px; }
body.ui .result-count { font: 600 .78rem var(--num); letter-spacing: .04em; }
body.ui .prose { font-size: 1.04rem; }
body.ui .prose h2 { border-top: 0; padding-top: 0; }
body.ui .prose h2::before { content: ""; display: block; width: 40px; height: 3px; margin-bottom: 18px; border-radius: 3px; background: var(--accent); }
body.ui .note, body.ui .prose .note { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m); padding: 16px 20px 16px 24px; }
body.ui .note::before { border-radius: 3px 0 0 3px; box-shadow: none; }
body.ui main .callout { border-radius: var(--r-l); background: radial-gradient(120% 140% at 100% 0%, var(--accent-soft), transparent 60%), var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-1); }
body.ui main .disclosure { border-radius: 12px; background: var(--surface); }
body.ui table.info { border-top: 0; border-collapse: separate; border-spacing: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m); overflow: hidden; }
body.ui table.info th, body.ui table.info td { padding: 14px 18px; border-bottom: 1px solid var(--line); }
body.ui table.info tr:last-child :is(th, td) { border-bottom: 0; }
body.ui table.info th { font: 600 .78rem var(--sans); color: var(--muted); background: var(--surface-2); }
body.ui .sources { border-top: 1px solid var(--line); }
body.ui .sources-h { font: 600 .76rem var(--num); color: var(--accent-text); }
body.ui .term-list > div { border-bottom-color: var(--line); }
body.ui .kana-index a { border-radius: 10px; background: var(--surface); }
body.ui .kana-h { -webkit-text-stroke: 1.5px var(--accent); }
body.ui .article-list a { border-radius: var(--r-s); padding-inline: 10px; transition: background .25s; }
body.ui .article-list a:hover { background: var(--surface); }
body.ui .article-list a::before { font: 700 .76rem var(--num); }
body.ui .empty { border-radius: var(--r-l); background: var(--surface); border-style: dashed; }
body.ui .event, body.ui .recipe-card, body.ui .perks li, body.ui .emp-job, body.ui .jobs-cta { border-radius: var(--r-m); background: var(--surface); }
body.ui .recipe-card { box-shadow: var(--shadow-1); transition: transform .5s var(--spring), box-shadow .4s, border-color .3s; }
body.ui .recipe-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); }
body.ui .recipe-stats { border-radius: var(--r-m); }
body.ui .recipe-stats div { background: var(--surface); }
body.ui .rc-type { background: var(--surface-2); }
html[data-theme="dark"] body.ui .rc-type.rc-aeropress { background: #1d2a40; color: #a9c3ee; }
html[data-theme="dark"] body.ui .rc-type.rc-hybrid { background: #33281a; color: #e5c995; }
html[data-theme="dark"] body.ui .rc-type.rc-pour_over { background: #3a2116; color: #ffb894; }
body.ui .recipe-steps li::before { background: var(--accent); color: #fff; }
body.ui .year-jump a, body.ui .city-chips a { border-radius: 999px; }
body.ui .cal-cell.is-today { background: var(--accent-soft); }
body.ui .equip-img { border-radius: var(--r-m); background: #fff; }
body.ui .equip-hero a, body.ui .equip-hero-box { border-radius: var(--r-l); background: #fff; }
body.ui main .ref { background: var(--surface); border-color: var(--line); border-radius: 12px; }
html[data-theme="dark"] body.ui main .alert { background: #3a1a12; border-color: #7a3322; color: #ffc2b0; }

/* ---------- cafe detail ---------- */
.cafe-cover { position: relative; margin: 0 0 32px; border-radius: var(--r-l); overflow: hidden; box-shadow: var(--shadow-3); isolation: isolate; }
.cafe-cover img { display: block; width: 100%; height: clamp(260px, 46vw, 520px); object-fit: cover; transform: scale(1.04); animation: cover-in 1.6s var(--ease) both; }
@keyframes cover-in { from { transform: scale(1.14); filter: saturate(.6); } }
.cafe-cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(16, 11, 8, .55)); }
.cafe-cover figcaption { position: absolute; right: 14px; bottom: 10px; z-index: 1; font-size: .72rem; color: rgba(255, 255, 255, .85); }
.cafe-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 32px; }
.cafe-actions .btn { padding: 11px 20px; font-size: .86rem; }
.cafe-actions .btn svg { width: 16px; height: 16px; }
.fav-btn[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.fav-btn[aria-pressed="true"] .heart { fill: currentColor; }

/* ---------- footer ---------- */
body.ui .site-footer { position: relative; background: #100b08; color: #f5ede2; border-top: 0; border-radius: 40px 40px 0 0; margin-top: -40px; overflow: hidden; isolation: isolate;
  --text: #f5ede2; --text-2: #cdbfae; --muted: #94877a; --line: rgba(245, 237, 226, .1); --line-strong: rgba(245, 237, 226, .26); --accent: #ff7a45; }
body.ui .site-footer::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(50% 60% at 85% 0%, rgba(255, 122, 69, .22), transparent 70%), radial-gradient(40% 50% at 0% 100%, rgba(242, 165, 65, .12), transparent 70%); }
body.ui .footer-lead { color: #f5ede2; }
body.ui .site-footer .btn { background: #ff7a45; border-color: #ff7a45; color: #150d08; }
body.ui .site-footer .btn:hover { background: #f5ede2; border-color: #f5ede2; }
body.ui .footer-mark { font-family: var(--num); font-weight: 900; letter-spacing: -.05em; -webkit-text-stroke: 1px rgba(245, 237, 226, .16); background: linear-gradient(180deg, rgba(245, 237, 226, .08), transparent); -webkit-background-clip: text; background-clip: text; }
body.ui .footer-mark i { font-style: normal; -webkit-text-stroke-color: rgba(255, 122, 69, .6); }
body.ui main > :last-child { padding-bottom: calc(clamp(80px, 10vw, 140px) + 40px); }

/* ---------- mobile dock ---------- */
.dock { display: none; }
@media (max-width: 760px) {
  .dock { position: fixed; left: 50%; bottom: max(12px, env(safe-area-inset-bottom)); z-index: 120; display: flex; gap: 2px; padding: 6px; transform: translateX(-50%); border-radius: 999px; background: color-mix(in srgb, var(--surface, #fffdf9) 80%, transparent); border: 1px solid var(--line, rgba(0,0,0,.1)); box-shadow: var(--shadow-3); backdrop-filter: blur(18px) saturate(1.6); -webkit-backdrop-filter: blur(18px) saturate(1.6); transition: transform .5s var(--ease); }
  body.ui.head-hide .dock { transform: translateX(-50%) translateY(140%); }
  .dock a, .dock button { display: grid; justify-items: center; gap: 2px; min-width: 62px; padding: 7px 10px 6px; border: 0; border-radius: 999px; background: none; color: var(--text-2, #4d4237); font: 600 .62rem var(--sans); text-decoration: none; cursor: pointer; }
  .dock svg { width: 20px; height: 20px; }
  .dock [aria-current] { background: var(--text, #19120c); color: var(--bg, #f4efe6); }
  body.ui .site-footer { padding-bottom: 96px; }
}

/* ---------- reveal ---------- */
.js body.ui .reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1.1s var(--ease); }
.js body.ui .reveal.is-in { opacity: 1; transform: none; }
.js body.ui .grid > .card { animation: card-in .8s var(--ease) both; animation-delay: calc(var(--i, 0) * 60ms); }
@keyframes card-in { from { opacity: 0; transform: translateY(22px); } }

@media (prefers-reduced-motion: reduce) {
  .aurora i, .ticker-track, .grad-text { animation: none !important; }
  body.ui .scope { transform: none; }
}
.cmdk[hidden], .cmdk [hidden] { display: none !important; }
body.ui .owner-cta { text-align: center; padding: clamp(28px, 4vw, 44px); border-radius: var(--r-l); background: radial-gradient(120% 140% at 0% 0%, var(--accent-soft), transparent 60%), var(--surface); border: 1px solid var(--line); }
body.ui .cafe-actions .btn.ghost { background: var(--surface); }
html:has(body.ui) { background: #f4efe6; }
html[data-theme="dark"]:has(body.ui) { background: #100b08; }
body.ui .narrow .page-head .h1 { font-size: clamp(2rem, 4.4vw, 3.4rem); line-height: 1.18; }
.cmdk-field input:focus-visible { outline: none; }
.cmdk-field input::-webkit-search-cancel-button { display: none; }
