/* Sİ Coffee Lounge · candidate 1 · "Şehrin Notaları: the city score" */

@font-face { font-family: "Big Shoulders Display"; src: url(fonts/bigshoulders-var-latin.woff2) format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Big Shoulders Display"; src: url(fonts/bigshoulders-var-latin-ext.woff2) format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Instrument Serif"; src: url(fonts/instrument-latin.woff2) format("woff2"); font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Instrument Serif"; src: url(fonts/instrument-latin-ext.woff2) format("woff2"); font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Instrument Serif"; font-style: italic; src: url(fonts/instrument-italic-latin.woff2) format("woff2"); font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Instrument Serif"; font-style: italic; src: url(fonts/instrument-italic-latin-ext.woff2) format("woff2"); font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "DM Mono"; font-weight: 400; src: url(fonts/dmmono-400-latin.woff2) format("woff2"); font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "DM Mono"; font-weight: 400; src: url(fonts/dmmono-400-latin-ext.woff2) format("woff2"); font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "DM Mono"; font-weight: 500; src: url(fonts/dmmono-500-latin.woff2) format("woff2"); font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "DM Mono"; font-weight: 500; src: url(fonts/dmmono-500-latin-ext.woff2) format("woff2"); font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Six Caps"; src: url(fonts/sixcaps-latin.woff2) format("woff2"); font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Six Caps"; src: url(fonts/sixcaps-latin-ext.woff2) format("woff2"); font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --banner: 30px;
  --pad: clamp(20px, 5vw, 72px);
  --ease: cubic-bezier(.2, .75, .2, 1);
  --serif: "Instrument Serif", "Times New Roman", serif;
  --cond: "Big Shoulders Display", "Arial Narrow", sans-serif;
  --mono: "DM Mono", ui-monospace, monospace;
  --six: "Six Caps", "Big Shoulders Display", sans-serif;
  --olive: #2E4220;
}

html[data-theme="day"] {
  --bg: #F4EEE3; --bg2: #FBF8F1; --ink: #1F1A14; --muted: #5A5043;
  --line: #3A4F27; --line-soft: rgba(58, 79, 39, .42); --rule: rgba(31, 26, 20, .13);
  --accent: #7A5A1F; --win: #3A4F27; --btn-bg: #3A4F27; --btn-ink: #FBF8F1;
  --plate: #FBF8F1; --olive: #3A4F27;
  --logo-si: #6E5119; --logo-co: #4A6A2C; --logo-lo: #3A3A36;
  color-scheme: light;
}
html[data-theme="night"] {
  --bg: #1D1712; --bg2: #262019; --ink: #ECE3D3; --muted: #B3A68F;
  --line: #C9A15E; --line-soft: rgba(201, 161, 94, .45); --rule: rgba(236, 227, 211, .13);
  --accent: #E2C792; --win: #F6CB72; --btn-bg: #2E4220; --btn-ink: #F4EEE3;
  --plate: #1A1510; --olive: #2E4220;
  --logo-si: #C9A15E; --logo-co: #ECE3D3; --logo-lo: #B3A68F;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--banner) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 18px/1.5 var(--serif); font-synthesis: none;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4, p, figure { margin: 0; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
.wrap { width: 100%; max-width: 1360px; margin-inline: auto; padding-inline: var(--pad); }
.label { font: 400 12px/1.2 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }

.skip { position: fixed; left: 12px; top: calc(var(--banner) + 8px); z-index: 100; min-height: 44px; display: flex; align-items: center; padding: 0 18px; background: var(--ink); color: var(--bg); font: 500 14px var(--mono); text-decoration: none; transform: translateY(-200%); }
.skip:focus { transform: none; }

/* Concept strip, always visible */
.banner {
  position: sticky; top: 0; z-index: 60; height: var(--banner); margin: 0;
  display: flex; align-items: center; justify-content: center; padding: 0 12px;
  background: var(--olive); color: #F4EEE3; border-bottom: 1px solid rgba(201, 161, 94, .5);
  font: 600 12.5px/1 var(--cond); letter-spacing: .07em; text-transform: uppercase; white-space: nowrap; overflow: hidden;
}
.banner-long { display: none; }
@media (min-width: 900px) { .banner-long { display: inline; } .banner-short { display: none; } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 14px;
  min-height: 54px; padding: 0 26px; border-radius: 999px; cursor: pointer;
  font: 700 16px/1 var(--cond); letter-spacing: .1em; text-transform: uppercase; text-decoration: none;
  transition: transform .25s var(--ease), background-color .3s, border-color .3s, color .3s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn-main { background: var(--btn-bg); color: var(--btn-ink); border: 1px solid var(--line); }
.btn-line { background: transparent; color: var(--ink); border: 1px solid var(--line-soft); }
.btn-line:hover { border-color: var(--line); }
.arr { width: 20px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.4; transition: transform .3s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }

/* ---------- Hero: the city score ---------- */
.hero {
  --band: clamp(330px, 52svh, 560px);
  --s: calc(100vw / 560);
  --ax: calc(-800 * var(--s));
  --ay: calc(var(--band) * .56 - 410 * var(--s));
  --sn: .7;
  position: relative; display: flex; flex-direction: column;
  min-height: calc(100svh - var(--banner) - 78px); overflow: hidden; background: var(--bg);
}
.score { position: relative; flex: none; height: var(--band); overflow: hidden; }
.art { position: absolute; left: var(--ax); top: var(--ay); width: calc(1600 * var(--s)); height: calc(901 * var(--s)); }
.night-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1s ease; }
html[data-theme="night"] .night-photo { opacity: 1; }
.stave { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.stave .ln { fill: none; stroke: var(--line); stroke-width: 1; vector-effect: non-scaling-stroke; transition: stroke .6s; }
html[data-theme="night"] .stave .ln { stroke: rgba(232, 200, 140, .7); }
.stave .sun { display: none; fill: none; stroke: var(--line); stroke-width: 1; vector-effect: non-scaling-stroke; }
.stave .sun * { vector-effect: non-scaling-stroke; }
.stave .w { fill: var(--win); transition: fill .5s ease calc(var(--i) * 45ms), opacity .5s ease calc(var(--i) * 45ms); }
html[data-theme="day"] .stave .w-roof { fill: none; stroke: var(--line); stroke-width: 1; vector-effect: non-scaling-stroke; }
html[data-theme="night"] .stave .notes { filter: drop-shadow(0 0 2px rgba(255, 214, 140, .95)) drop-shadow(0 0 9px rgba(246, 170, 80, .55)); }
.scrim { position: absolute; inset: 0; pointer-events: none; }
html[data-theme="night"] .scrim { background: linear-gradient(to bottom, rgba(18, 14, 10, .5) 0, transparent 20%, transparent 60%, var(--bg) 99%); }
html[data-theme="day"] .scrim { background: linear-gradient(to bottom, transparent 75%, var(--bg)); }

.hero-top {
  position: absolute; z-index: 3; top: 14px; left: var(--pad); right: var(--pad);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.clock { font: 400 12px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink); display: flex; gap: 10px; }
.clock:has(time:empty) { visibility: hidden; }
html[data-theme="night"] .clock { color: #ECE3D3; }
.top-links { display: none; }
.mode {
  display: inline-flex; padding: 3px; border-radius: 999px; border: 1px solid var(--line-soft);
  background: color-mix(in srgb, var(--bg) 70%, transparent); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.mode-btn {
  min-height: 44px; padding: 0 16px; border: 0; border-radius: 999px; background: transparent; cursor: pointer;
  font: 400 12px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
  transition: background-color .3s, color .3s;
}
.mode-btn:hover { color: var(--ink); }
.mode-btn[aria-pressed="true"] { background: var(--ink); color: var(--bg); }

.clef {
  position: absolute; z-index: 2; left: var(--pad);
  top: calc(var(--ay) + 410 * var(--s)); transform: translateY(-50%);
  height: calc(158 * var(--s)); aspect-ratio: 1 / 1.02;
  padding: calc(14 * var(--s)); background: var(--plate);
  border: 1px solid var(--line-soft); transition: background-color .6s;
}
.clef svg { display: block; width: 100%; height: 100%; }

.hero-copy { --ly-sub: clamp(40px, 15.6vw, 172px); position: relative; z-index: 2; display: flex; flex-direction: column; align-items: flex-start; padding: 0 var(--pad) 28px; margin-top: -26px; }
.hero-name { display: flex; gap: 12px; align-items: baseline; font: 700 15px/1 var(--cond); letter-spacing: .16em; text-transform: uppercase; color: var(--ink); }
.hero-floor { font: 400 11px/1 var(--mono); letter-spacing: .14em; color: var(--accent); }
.lyric { --ly: clamp(40px, 15.6vw, 172px); margin-top: 14px; font: italic 400 var(--ly)/.92 var(--serif); letter-spacing: -.015em; white-space: nowrap; }
.hero-sub { margin-top: calc(var(--ly-sub, 40px) * .2 + 6px); max-width: 34ch; font: 400 18px/1.42 var(--serif); color: var(--muted); }
.hero-copy .btn { margin-top: 22px; }
.rail { display: none; position: relative; z-index: 2; margin-top: auto; padding: 0 var(--pad) 18px; }
.rail ol { list-style: none; margin: 0; padding: 0; display: flex; justify-content: space-between; gap: 4px; }
.rail li { flex: 1 1 auto; }
.rail a {
  display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 2px 0; text-decoration: none;
  font: 700 15px/1 var(--cond); letter-spacing: .05em; text-transform: uppercase; color: var(--ink);
  border-top: 1px solid var(--line-soft); transition: border-color .3s, color .3s;
}
.rail a:hover { border-top-color: var(--line); color: var(--accent); }
.rail-no { display: none; font: 400 11px/1 var(--mono); color: var(--accent); letter-spacing: .1em; }

@media (min-width: 900px) {
  .hero {
    --hh: max(640px, calc(100svh - var(--banner)));
    --s: max(calc(100vw / 1600), calc(var(--hh) / 901));
    --ax: calc((100vw - 1600 * var(--s)) * .85);
    --ay: calc((var(--hh) - 901 * var(--s)) * .5);
    --sn: .96;
    height: var(--hh); min-height: 0;
  }
  .score { position: absolute; inset: 0; height: auto; }
  html[data-theme="night"] .scrim {
    background:
      linear-gradient(90deg, rgba(20, 16, 11, .72) 0, rgba(20, 16, 11, .3) 40%, transparent 62%),
      linear-gradient(to top, rgba(22, 17, 12, .94) 0, rgba(22, 17, 12, .55) 30%, transparent 50%),
      linear-gradient(to bottom, rgba(18, 14, 10, .55) 0, transparent 14%);
  }
  html[data-theme="day"] .scrim { background: none; }
  html[data-theme="day"] .stave .sun { display: block; }
  .hero-top { top: 22px; }
  .clef { height: calc(186 * var(--s)); padding: calc(16 * var(--s)); }
  .hero-copy { --ly-sub: min(10.6vw, calc(160 * var(--s))); position: absolute; left: 0; top: calc(var(--ay) + 524 * var(--s)); margin: 0; padding: 0 var(--pad); }
  .hero-copy > :not(.lyric) { max-width: 520px; }
  .lyric { --ly: min(10.6vw, calc(160 * var(--s))); margin-top: 10px; }
  .hero-sub { font-size: 20px; color: var(--ink); opacity: .82; }
  .rail { display: block; position: absolute; right: var(--pad); bottom: 30px; padding: 0; margin: 0; }
  .rail ol { gap: 6px; }
  .rail a { align-items: baseline; padding: 14px 12px 0; font-size: 17px; letter-spacing: .08em; }
  .rail-no { display: inline; }
  html[data-theme="night"] .hero-name, html[data-theme="night"] .rail a { color: #ECE3D3; }
}

@media (min-width: 900px) {
  .top-links { display: flex; gap: 4px; }
  .top-links a {
    position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; text-decoration: none; color: var(--ink);
    font: 400 12px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase;
  }
  .top-links a::after { content: ""; position: absolute; left: 16px; right: 16px; bottom: 9px; height: 1px; background: var(--line); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease); }
  .top-links a:hover::after, .top-links a:focus-visible::after { transform: scaleX(1); }
  html[data-theme="night"] .top-links a { color: #ECE3D3; }
}

/* Hero entrance and the scroll morph (stave lines pull together toward the group bar) */
@media (prefers-reduced-motion: no-preference) {
  .js .stave .ln { transform-box: fill-box; transform-origin: 0 50%; animation: draw 1.3s cubic-bezier(.7, 0, .2, 1) calc(var(--k) * 90ms) both; }
  .js .stave .sun { animation: pop 1.2s ease .5s both; }
  .js .stave .w { animation: pop .6s ease calc(650ms + var(--i) * 40ms) both; }
  html.js[data-theme="night"] .stave .w:nth-child(3n + 1) { animation: pop .6s ease calc(650ms + var(--i) * 40ms) both, twinkle 4.6s ease-in-out calc(2.4s + var(--i) * 310ms) 3 alternate; }
  .js .hero-copy > *, .js .clef, .js .hero-top, .js .rail { animation: rise .9s var(--ease) both; }
  .js .clef { animation-delay: .15s; }
  .js .hero-name { animation-delay: .25s; }
  .js .lyric { animation-delay: .35s; }
  .js .hero-sub { animation-delay: .45s; }
  .js .hero-copy .btn { animation-delay: .55s; }
  .js .hero-top, .js .rail { animation-delay: .7s; }

  @supports (animation-timeline: scroll()) {
    .stave .row { animation: converge linear both; animation-timeline: scroll(root); animation-range: 0 42vh; }
    .stave .rows { animation: sink linear both; animation-timeline: scroll(root); animation-range: 0 42vh; }
    .stave .sun, .stave .notes { animation: fade-out linear both; animation-timeline: scroll(root); animation-range: 0 26vh; }
  }
}
@keyframes draw { from { transform: scaleX(0); } }
@keyframes pop { from { opacity: 0; } }
@keyframes twinkle { to { opacity: .45; } }
@keyframes rise { from { opacity: 0; translate: 0 14px; } }
@keyframes converge { 70% { opacity: 1; } to { transform: translateY(var(--dy)); opacity: 0; } }
@keyframes sink { to { transform: translateY(calc(26vh / var(--sn))); } }
@keyframes fade-out { to { opacity: 0; } }

/* ---------- Guest shortcuts: one measure of four bars under the hero ---------- */
.quick { background: var(--bg); }
.quick .wrap { padding-block: 0; }
.quick-list {
  position: relative; list-style: none; margin: 0; padding: 0 14px 0 0; display: grid; grid-template-columns: repeat(4, 1fr);
  border-block: 1px solid var(--line-soft); border-left: 1px solid var(--line-soft);
}
.quick-list::after { content: ""; position: absolute; right: 0; top: 0; bottom: 0; width: 14px; border-left: 1.5px solid var(--line); border-right: 5px solid var(--line); }
.quick-list li + li { border-left: 1px solid var(--line-soft); }
.quick-list a {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; min-height: 76px; padding: 10px 2px;
  text-decoration: none; color: var(--ink); font: 700 14px/1 var(--cond); letter-spacing: .07em; text-transform: uppercase; white-space: nowrap;
  transition: background-color .3s, color .3s;
}
.quick-list svg { width: 22px; height: 22px; fill: none; stroke: var(--accent); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; transition: transform .4s var(--ease); }
.quick-list a:hover { background: color-mix(in srgb, var(--line) 9%, transparent); }
.quick-list a:hover svg { transform: translateY(-2px); }
@media (min-width: 900px) {
  .quick-list a { flex-direction: row; gap: 14px; min-height: 84px; font-size: 17px; letter-spacing: .09em; }
  .quick-list svg { width: 24px; height: 24px; }
}

/* ---------- Menu ---------- */
.menu { position: relative; padding: 64px 0 40px; }
.menu-head { display: grid; gap: 10px; }
.menu-title { font: italic 400 clamp(76px, 22vw, 200px)/.86 var(--serif); letter-spacing: -.02em; }
.menu-titlebar { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.pick-btn {
  flex: none; display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 18px; margin-bottom: 10px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line-soft); background: transparent; color: var(--ink);
  font: 700 15px/1 var(--cond); letter-spacing: .1em; text-transform: uppercase; transition: border-color .3s, background-color .3s;
}
.pick-btn:hover { border-color: var(--line); background: color-mix(in srgb, var(--line) 8%, transparent); }
.pick-btn svg { width: 15px; height: 11px; }
.pick-btn ellipse { fill: var(--line); }
.pick-btn path { fill: none; stroke: var(--bg); stroke-width: 1.5; stroke-linecap: round; }
.pick { display: grid; gap: 4px; justify-items: start; padding: 14px 18px 4px; border-left: 1.5px solid var(--line); background: color-mix(in srgb, var(--line) 7%, transparent); transform-origin: 50% 0; }
.pick[hidden] { display: none; }
.pick-k { font: 400 11.5px/1.3 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.pick-n { font: italic 400 clamp(34px, 9vw, 52px)/1 var(--serif); letter-spacing: -.01em; }
.pick-p { font: 500 18px/1.2 var(--mono); font-variant-numeric: tabular-nums; }
.pick-go { display: inline-flex; align-items: center; min-height: 44px; font: 400 12px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); text-underline-offset: 4px; }
.pick-go:hover { color: var(--ink); }
.menu-meta { font: 400 13px/1.2 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.find { display: grid; gap: 8px; margin-top: 22px; }
.find-label { font: 400 12px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.find-field { position: relative; }
.find-field svg { position: absolute; left: 16px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); fill: none; stroke: var(--muted); stroke-width: 1.5; pointer-events: none; }
.find-field input {
  width: 100%; min-height: 54px; padding: 0 18px 0 46px; border-radius: 999px;
  border: 1px solid var(--line-soft); background: var(--bg2); color: var(--ink);
  font: 400 19px/1 var(--serif); transition: border-color .3s;
}
.find-field input::placeholder { color: var(--muted); opacity: .8; font-style: italic; }
.find-field input:focus { border-color: var(--line); outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--line) 25%, transparent); }
.find-result { min-height: 1.2em; font: 400 13px/1.3 var(--mono); color: var(--muted); }
.menu-note { font: italic 400 15px/1.45 var(--serif); color: var(--muted); max-width: 52ch; }
.toc { margin-top: 8px; border-block: 1px solid var(--line-soft); }
.toc[hidden], .toc [hidden] { display: none !important; }
.toc summary { display: flex; align-items: center; gap: 14px; min-height: 56px; cursor: pointer; list-style: none; }
.toc summary::-webkit-details-marker { display: none; }
.toc-title { font: 700 17px/1 var(--cond); letter-spacing: .1em; text-transform: uppercase; }
.toc-sum { margin-left: auto; font: 400 12px/1 var(--mono); letter-spacing: .1em; color: var(--muted); }
.toc-chev { width: 12px; height: 8px; fill: none; stroke: var(--accent); stroke-width: 1.5; transition: rotate .3s var(--ease); }
.toc[open] .toc-chev { rotate: 180deg; }
.toc nav { padding-bottom: 14px; }
.toc-grid { display: grid; gap: 20px 40px; }
.toc-gname { display: flex; align-items: baseline; justify-content: space-between; padding-bottom: 6px; border-bottom: 1px solid var(--line); font: italic 400 25px/1.1 var(--serif); }
.toc-range { font: 400 11px/1 var(--mono); letter-spacing: .1em; color: var(--muted); font-style: normal; }
.toc ol { list-style: none; margin: 0; padding: 0; }
.toc a { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; align-items: center; min-height: 44px; padding-block: 4px; border-bottom: 1px solid var(--rule); text-decoration: none; transition: color .3s; }
.toc a:hover .toc-name { color: var(--accent); }
.toc-no { font: 400 11px/1 var(--mono); letter-spacing: .06em; color: var(--accent); }
.toc-name { font: 400 18px/1.2 var(--serif); }
.toc-count { font: 400 12px/1 var(--mono); color: var(--muted); font-variant-numeric: tabular-nums; }
@media (max-width: 639px) { .toc[open] nav { max-height: 62svh; overflow-y: auto; overscroll-behavior: contain; } }
@media (min-width: 640px) { .toc-grid { grid-template-columns: repeat(2, 1fr); } }

.menu-body { margin-top: 8px; padding-bottom: 130px; }
.menu-list { min-width: 0; }

.grp { padding-top: 36px; }
.grp[hidden], .cat[hidden], .it[hidden] { display: none; }
.grp:first-child { padding-top: 0; }
.grp:first-child .grp-head { padding-top: 6px; }
.grp-head { padding-top: 28px; display: grid; gap: 8px; }
.grp-staff { display: grid; gap: 6px; width: 100%; margin-bottom: 26px; }
.grp-staff span { height: 1px; background: var(--line-soft); }
.grp-staff .on { height: 2px; background: var(--line); }
.grp-name { font: italic 400 clamp(56px, 15vw, 112px)/.9 var(--serif); letter-spacing: -.015em; }
.grp-meta { font: 400 12px/1.2 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }

.cat { padding-top: 46px; }
.cat-head {
  display: grid; grid-template-columns: auto 1fr; column-gap: 14px; align-items: end;
  padding-bottom: 14px; margin-bottom: 8px; border-bottom: 1px solid var(--line-soft);
}
.cat-no { grid-row: span 2; font: 400 clamp(76px, 21vw, 132px)/.74 var(--six); color: var(--accent); }
.cat-name { font: 800 clamp(34px, 9.6vw, 72px)/.9 var(--cond); text-transform: uppercase; letter-spacing: .005em; text-wrap: balance; }
.cat-count { margin-top: 8px; font: 400 11.5px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }

.cat-head:has(+ .cat-photo) { margin-bottom: 0; }
.cat-photo {
  display: grid; grid-template-columns: minmax(0, 600px); margin: 0; padding: 10px 0; border-bottom: 1px solid var(--line-soft);
}
.cat-photo > * { grid-area: 1 / 1; }
.cat-photo img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 5; object-fit: cover; border-radius: 2px; filter: saturate(.9) sepia(.1); }
[data-theme="night"] .cat-photo img { filter: saturate(.88) sepia(.1) brightness(.88); }
.cat-photo::before { content: ""; grid-area: 1 / 1; border-radius: 2px; pointer-events: none; z-index: 1; background: linear-gradient(180deg, transparent 52%, rgba(20, 16, 12, .58)); }
.credit { z-index: 2; display: flex; align-items: flex-end; justify-content: flex-start; text-decoration: none; }
.credit span { margin: 0 0 9px 10px; padding: 6px 10px 5px; border-radius: 999px; background: rgba(20, 16, 12, .55); color: #F4EEE3; font: 400 10.5px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; }
a.credit:hover span { background: rgba(20, 16, 12, .8); }
@media (min-width: 640px) { .cat-photo img { aspect-ratio: 16 / 6; } }

.items { list-style: none; margin: 0; padding: 0; }
.it { padding: 12px 0; border-bottom: 1px solid var(--rule); scroll-margin-top: 33vh; }
.it.is-picked { background: color-mix(in srgb, var(--line) 14%, transparent); box-shadow: -10px 0 0 color-mix(in srgb, var(--line) 14%, transparent), 10px 0 0 color-mix(in srgb, var(--line) 14%, transparent); }
.it:last-child { border-bottom: 0; }
.it-row { display: flex; align-items: baseline; gap: 10px; }
.it-name { font: 400 20px/1.2 var(--serif); }
.it-dots { flex: 1 1 12px; min-width: 12px; border-bottom: 1px dotted color-mix(in srgb, var(--ink) 38%, transparent); transform: translateY(-5px); }
.it-price { font: 400 15.5px/1 var(--mono); font-variant-numeric: tabular-nums; letter-spacing: .02em; white-space: nowrap; }
.it-desc { display: block; margin-top: 4px; max-width: 58ch; font: italic 400 15.5px/1.38 var(--serif); color: var(--muted); }
.it-tag { font: 400 11px/1.3 var(--mono); font-style: normal; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.it-open {
  display: grid; grid-template-columns: 68px minmax(0, 1fr); column-gap: 16px; align-items: start;
  width: 100%; padding: 2px 0; border: 0; background: none; text-align: left; cursor: pointer;
}
.it-open > :not(.it-thumb) { grid-column: 2; }
.it-thumb { grid-row: 1 / span 3; width: 68px; height: 68px; object-fit: cover; border-radius: 2px; outline: 1px solid var(--line-soft); outline-offset: 2px; transition: transform .5s var(--ease); }
.it-open:hover .it-thumb { transform: scale(1.04); }
.it-open:hover .it-name { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.it-open .it-row { padding-top: 6px; }

/* Group navigation: phone = bottom bar (five lines + group names + category chips) */
.score-nav {
  position: fixed; z-index: 40; left: 0; right: 0; bottom: 0;
  background: color-mix(in srgb, var(--bg) 97%, transparent);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-top: 1px solid var(--rule); padding-bottom: env(safe-area-inset-bottom);
  transform: translateY(calc(100% + 70px)); transition: transform .55s var(--ease);
}
.bar-on .score-nav { transform: none; }
.groups { position: relative; list-style: none; margin: 0; padding: 19px 6px 0; display: flex; justify-content: space-between; }
.g { flex: 0 1 auto; }
.g-link {
  display: flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 7px; text-align: center;
  font: 700 15px/1 var(--cond); letter-spacing: .05em; text-transform: uppercase; text-decoration: none; color: var(--muted);
  transition: color .3s;
}
.g-count { display: none; }
.g.is-on .g-link { color: var(--ink); }
.g-line {
  position: absolute; left: 14px; right: 14px; top: calc(7px + (4 - var(--i)) * 3px); height: 1px;
  background: var(--line-soft); transition: background-color .3s;
}
.g.is-on .g-line { background: var(--line); }
.bar-on .g-line { animation: spread .8s var(--ease) both; }
@keyframes spread { from { transform: translateY(calc((var(--i) - 2) * 3px)) scaleX(.2); opacity: 0; } }
.cats { display: none; list-style: none; margin: 0; padding: 0; }
.g.is-on .cats {
  display: flex; gap: 8px; position: absolute; left: 0; right: 0; bottom: 100%;
  padding: 4px 12px; overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain;
  background: var(--bg);
  border-top: 1px solid var(--rule);
}
.g.is-on .cats::-webkit-scrollbar { display: none; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; min-height: 44px; padding: 0 16px;
  border: 1px solid var(--rule); border-radius: 999px; text-decoration: none;
  font: 400 17px/1 var(--serif); color: var(--ink); transition: border-color .3s, background-color .3s;
}
.chip-no, .chip-count { font: 400 11px/1 var(--mono); letter-spacing: .06em; color: var(--accent); }
.chip-count { color: var(--muted); }
.chip.is-on { border-color: var(--line); background: color-mix(in srgb, var(--line) 13%, transparent); }
.bean { position: absolute; left: 0; top: 0; width: 15px; height: 11px; pointer-events: none; transform: translate(var(--bx, -40px), var(--by, 0px)) translate(-50%, -50%); transition: transform .4s var(--ease); }
.bean svg { display: block; width: 100%; height: 100%; overflow: visible; }
.bean ellipse { fill: var(--line); }
.bean path { fill: none; stroke: var(--bg); stroke-width: 1.5; stroke-linecap: round; }

@media (min-width: 1024px) {
  .menu { padding-top: 112px; }
  .menu-head { grid-template-columns: 1fr minmax(320px, 440px); column-gap: 80px; align-items: end; }
  .menu-head > .label, .menu-titlebar, .pick, .menu-meta { grid-column: 1; }
  .menu-titlebar { justify-content: flex-start; gap: 36px; }
  .pick { max-width: 560px; justify-self: start; }
  .toc { grid-column: 1 / -1; margin-top: 28px; }
  .toc-grid { grid-template-columns: repeat(5, 1fr); gap: 0 28px; }
  .toc a { min-height: 36px; padding-block: 0; }
  .toc-name { font-size: 16.5px; }
  .toc-gname { margin-bottom: 4px; }
  .find { grid-column: 2; grid-row: 1 / span 4; align-self: end; margin: 0; }
  .menu-note { grid-column: 2; }
  .menu-body { display: grid; grid-template-columns: 250px minmax(0, 1fr); column-gap: clamp(48px, 7vw, 120px); align-items: start; margin-top: 48px; padding-bottom: 40px; }
  .score-nav { position: sticky; top: calc(var(--banner) + 36px); transform: none; background: none; border: 0; -webkit-backdrop-filter: none; backdrop-filter: none; padding: 0; transition: none; }
  .groups { display: block; padding: 0; }
  .g { position: relative; padding-top: 12px; }
  .g-link { justify-content: space-between; align-items: baseline; min-height: 40px; padding: 0; font-size: 22px; text-align: left; }
  .g-link:hover { color: var(--ink); }
  .g-count { display: inline; font: 400 12px/1 var(--mono); color: var(--muted); letter-spacing: .08em; }
  .g-line { position: relative; display: block; left: auto; right: auto; top: auto; animation: none !important; }
  .g.is-on .g-line { height: 1.5px; }
  .g.is-on .cats { position: static; display: block; padding: 10px 0 8px; background: none; border: 0; -webkit-backdrop-filter: none; backdrop-filter: none; overflow: visible; }
  .chip { display: flex; min-height: 36px; padding: 0; border: 0; border-radius: 0; font-size: 18px; gap: 10px; color: var(--muted); }
  .chip:hover { color: var(--ink); }
  .chip.is-on { background: none; color: var(--ink); }
  .chip-name { flex: 1; }
  .grp:first-child { padding-top: 0; }
  .grp:first-child .grp-head { padding-top: 0; }
  .it-name { font-size: 22px; }
  .it-price { font-size: 16px; }
}

@media (min-width: 1240px) {
  .items { columns: 2; column-gap: 64px; }
  .it { break-inside: avoid; }
  .it:last-child { border-bottom: 1px solid var(--rule); }
}

/* ---------- Day and night ---------- */
.daynight { padding: 96px 0; border-top: 1px solid var(--rule); }
.dn-title { margin-top: 14px; font: italic 400 clamp(52px, 14vw, 150px)/.9 var(--serif); letter-spacing: -.015em; }
.dn-title span { display: block; }
.dn-title span:last-child { color: var(--accent); padding-left: .8em; }
.dn-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 36px; }
.dn-card { position: relative; overflow: hidden; aspect-ratio: 4 / 5; background: var(--bg2); }
.dn-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.dn-card:hover img { transform: scale(1.03); }
.dn-card::after { content: ""; position: absolute; inset: 0; border: 1px solid transparent; transition: border-color .4s; pointer-events: none; }
html[data-theme="day"] .dn-day::after, html[data-theme="night"] .dn-night::after { border-color: var(--line); inset: 8px; }
.dn-btn {
  position: absolute; left: 12px; right: 12px; bottom: 12px; min-height: 46px; padding: 0 14px; border-radius: 999px; cursor: pointer;
  border: 1px solid rgba(244, 238, 227, .55); background: rgba(24, 19, 14, .55); color: #F4EEE3;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  font: 400 11.5px/1.15 var(--mono); letter-spacing: .1em; text-transform: uppercase; transition: background-color .3s, transform .25s var(--ease);
}
.dn-btn:hover { background: rgba(24, 19, 14, .8); transform: translateY(-2px); }
.dn-long { display: none; }
.dn-btn[aria-pressed="true"] { background: #F4EEE3; color: #1F1A14; }
@media (min-width: 900px) {
  .daynight { padding: 140px 0; }
  .dn-grid { gap: 24px; }
  .dn-card { aspect-ratio: 5 / 4; }
  .dn-long { display: inline; }
  .dn-btn { left: 24px; right: auto; bottom: 24px; padding: 0 22px; font-size: 12px; }
  .dn-title span:last-child { padding-left: 2.2em; }
}

/* ---------- Visit ---------- */
.visit { padding: 88px 0; border-top: 1px solid var(--rule); }
.visit-grid { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 20px; row-gap: 36px; align-items: start; }
.big3 { font: 400 clamp(220px, 62vw, 560px)/.76 var(--six); color: transparent; -webkit-text-stroke: 1.2px var(--line); user-select: none; margin-top: -4px; }
.visit-copy { display: grid; gap: 14px; align-content: start; }
.visit-copy > .label { margin-bottom: 10px; }
.visit-title { font: italic 400 clamp(46px, 12vw, 108px)/.92 var(--serif); letter-spacing: -.015em; }
.place { font: 400 19px/1.4 var(--serif); color: var(--muted); }
.hours { margin-top: 8px; padding: 16px 0; border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); display: grid; gap: 8px; }
.hours-label { font: 400 11.5px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.hours-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font: 400 21px/1.2 var(--serif); }
.hours-time { font: 400 16px/1 var(--mono); font-variant-numeric: tabular-nums; }
.hours-note { font: italic 400 15px/1.35 var(--serif); color: var(--muted); }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.visit-photo { grid-column: 1 / -1; aspect-ratio: 4 / 5; overflow: hidden; background: var(--bg2); }
.visit-photo img { width: 100%; height: 100%; object-fit: cover; }
html[data-theme="day"] .vp-night, html[data-theme="night"] .vp-day { display: none; }
@media (max-width: 899px) {
  .visit-grid { row-gap: 14px; column-gap: 18px; }
  .visit-copy { display: contents; }
  .big3 { grid-column: 1; grid-row: 1 / span 3; font-size: clamp(190px, 58vw, 260px); align-self: start; }
  .visit-copy > .label, .visit-title, .place { grid-column: 2; }
  .visit-copy > .label { align-self: end; }
  .visit-title { font-size: clamp(44px, 12.5vw, 64px); }
  .place { font-size: 17px; align-self: start; }
  .hours, .visit-copy > .actions, .visit-photo { grid-column: 1 / -1; }
  .visit-photo { margin-top: 22px; }
  .actions .btn { flex: 1 1 100%; }
}
@media (min-width: 900px) {
  .visit { padding: 140px 0; }
  .visit-grid { grid-template-columns: auto minmax(0, 1fr) minmax(0, .8fr); column-gap: clamp(32px, 5vw, 80px); align-items: end; }
  .visit-photo { grid-column: 3; aspect-ratio: 4 / 5; }
  .visit-copy { padding-bottom: 8px; }
}

/* ---------- Review and Instagram ---------- */
.talk { padding: 88px 0; border-top: 1px solid var(--rule); }
.talk-grid { display: grid; gap: 72px; }
.review, .insta { display: grid; gap: 14px; align-content: start; }
.review-title { font: italic 400 clamp(44px, 11.5vw, 96px)/.95 var(--serif); letter-spacing: -.015em; }
.review-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.choice {
  display: flex; flex-direction: column; justify-content: space-between; gap: 22px; min-height: 176px; padding: 18px 16px;
  border: 1px solid var(--line-soft); border-radius: 2px; background: transparent; color: var(--ink);
  text-align: left; text-decoration: none; cursor: pointer; transition: border-color .3s, transform .3s var(--ease), background-color .3s;
}
.choice:hover { border-color: var(--line); transform: translateY(-2px); background: color-mix(in srgb, var(--line) 6%, transparent); }
.choice-k { font: 400 10.5px/1.3 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.choice-t { font: 400 25px/1.05 var(--serif); }
.choice-go { font: 400 11px/1.2 var(--mono); letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.insta-link { display: grid; gap: 10px; text-decoration: none; padding: 6px 0 18px; border-bottom: 1px solid var(--line-soft); }
.insta-handle { font: 800 clamp(40px, 11.5vw, 64px)/.9 var(--cond); letter-spacing: .005em; overflow-wrap: anywhere; transition: color .3s; }
.insta-link:hover .insta-handle { color: var(--accent); }
.insta-go { font: 400 12px/1.2 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.insta-sub { margin-top: 8px; font: 400 11.5px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.insta-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; font: italic 400 21px/1.3 var(--serif); }
.insta-grid { list-style: none; margin: 4px calc(-1 * var(--pad)) 0 0; padding: 4px var(--pad) 8px 4px; display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: thin; }
.insta-grid li { flex: 0 0 92px; scroll-snap-align: start; }
.insta-grid a { display: block; aspect-ratio: 1; overflow: hidden; border-radius: 2px; outline: 1px solid var(--line-soft); outline-offset: 2px; }
.ig-thumb { display: block; width: 100%; height: 100%; object-fit: cover; filter: saturate(.92) sepia(.08); transition: transform .5s var(--ease); }
.insta-grid a:hover .ig-thumb { transform: scale(1.05); }
.insta-grid .ig-all a { display: grid; place-items: center; outline: 0; border: 1px solid var(--line-soft); font: 400 12px/1.2 var(--mono); letter-spacing: .12em; text-transform: uppercase; text-decoration: none; color: var(--muted); transition: border-color .3s, color .3s; }
.insta-grid .ig-all a:hover { border-color: var(--line); color: var(--ink); }
@media (min-width: 900px) {
  .talk { padding: 140px 0; }
  .talk-grid { grid-template-columns: 1.35fr 1fr; column-gap: clamp(48px, 8vw, 140px); align-items: end; }
  .choice { min-height: 220px; padding: 26px 24px; }
  .choice-t { font-size: 34px; }
}

/* ---------- Hand-off ---------- */
.handoff { position: relative; overflow: hidden; padding: 96px 0 0; background: var(--olive); color: #F4EEE3; }
.handoff .label { color: #E2C792; }
.handoff-grid { display: grid; gap: 18px; }
.nfc-line { font: 400 13px/1.4 var(--mono); letter-spacing: .08em; color: rgba(244, 238, 227, .78); }
.handoff-title { font: italic 400 clamp(52px, 13.5vw, 156px)/.9 var(--serif); letter-spacing: -.02em; max-width: 12ch; }
.handoff-body { max-width: 46ch; font: 400 19px/1.45 var(--serif); color: rgba(244, 238, 227, .86); }
.handoff .btn-main { background: #F4EEE3; color: #1F1A14; border-color: #F4EEE3; }
.wa-num { align-self: center; font: 400 13px/1 var(--mono); letter-spacing: .08em; color: rgba(244, 238, 227, .78); }
.seal { position: relative; width: 240px; aspect-ratio: 1; margin: 18px 0 0; justify-self: start; }
.seal-img { position: absolute; inset: 15%; width: 70%; height: 70%; object-fit: cover; border-radius: 50%; }
.seal-ring { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.seal-ring text { font: 400 10.5px var(--mono); fill: #E2C792; letter-spacing: .1em; }
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .seal-ring { animation: turn linear both; animation-timeline: view(); animation-range: entry 0% exit 100%; }
  }
}
@keyframes turn { from { rotate: -40deg; } to { rotate: 80deg; } }
.finale { position: relative; height: 96px; margin-top: 80px; padding: 18px 0; display: flex; flex-direction: column; justify-content: space-between; }
.finale span { height: 1px; background: rgba(226, 199, 146, .5); }
.finale i { position: absolute; right: var(--pad); top: 18px; bottom: 18px; width: 14px; border-left: 1.5px solid #E2C792; border-right: 6px solid #E2C792; }
@media (min-width: 900px) { .seal { grid-column: 2 !important; grid-row: 1 / span 3; width: min(380px, 30vw); justify-self: end; align-self: center; margin: 0; } .handoff { padding-top: 150px; } .handoff-grid { grid-template-columns: 1fr 1fr; column-gap: 80px; } .handoff-grid > * { grid-column: 1 / -1; } .handoff-grid > .label { grid-row: 1; } .nfc-line { grid-row: 2; } .handoff-title { grid-row: 3; } .handoff-body { grid-column: 1; grid-row: 4; } .handoff-grid .actions { grid-column: 2; grid-row: 4; align-self: end; justify-content: flex-end; } }

/* ---------- Footer ---------- */
.foot { padding: 48px 0 64px; background: var(--bg); }
.foot-grid { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 24px; align-items: start; }
.foot-logo { width: 72px; height: 72px; }
.foot-notes { display: grid; gap: 8px; font: 400 14px/1.45 var(--serif); color: var(--muted); max-width: 80ch; }
.foot-notes a { padding-block: 14px; color: var(--ink); text-underline-offset: 3px; }

/* ---------- Sheets (item detail, private note) ---------- */
.sheet {
  border: 0; padding: 0; width: min(940px, calc(100vw - 48px)); max-width: none; max-height: calc(100svh - 48px);
  background: var(--bg2); color: var(--ink); border-radius: 4px; overflow: auto;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .35);
}
.sheet::backdrop { background: rgba(14, 11, 8, .62); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.sheet[open] { animation: sheet-in .5s var(--ease); }
@keyframes sheet-in { from { opacity: 0; transform: translateY(28px); } }
.sheet-in { display: grid; }
.sheet-photo { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--bg); }
.sheet-photo img { width: 100%; height: 100%; object-fit: cover; }
.sheet-credit { position: absolute; left: 14px; top: 14px; margin: 0; }
.sheet-tag { position: relative; display: inline-block; padding: 7px 11px; text-decoration: none; border-radius: 999px; background: rgba(20, 16, 12, .62); color: #F4EEE3; font: 400 11px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; }
a.sheet-tag::after { content: ""; position: absolute; inset: -9px; }
.sheet-copy { display: grid; gap: 12px; align-content: start; padding: 24px 22px calc(24px + env(safe-area-inset-bottom)); }
.sheet-cat { font: 400 11.5px/1.2 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.sheet-name { font: italic 400 clamp(42px, 11vw, 72px)/.95 var(--serif); letter-spacing: -.01em; }
.sheet-price { font: 500 22px/1 var(--mono); font-variant-numeric: tabular-nums; }
.sheet-desc { font: italic 400 18px/1.45 var(--serif); color: var(--muted); }
.sheet-desc:empty { display: none; }
.sheet form[method="dialog"] { margin-top: 8px; }
@media (max-width: 899px) {
  .sheet { width: 100vw; max-height: 92svh; margin: auto 0 0; border-radius: 18px 18px 0 0; }
  .sheet[open] { animation-name: sheet-up; }
  @keyframes sheet-up { from { transform: translateY(40%); opacity: .4; } }
  .sheet form[method="dialog"] .btn { width: 100%; }
}
@media (min-width: 900px) {
  .sheet-in { grid-template-columns: 1.05fr 1fr; }
  .sheet-photo { aspect-ratio: 4 / 5; }
  .sheet-copy { padding: 48px 44px; align-content: end; }
}
.sheet-note { width: min(560px, calc(100vw - 48px)); }
.note-form { display: grid; gap: 8px; margin-top: 10px; }
.note-form label { font: 400 12px/1.2 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-top: 8px; }
.note-form label span { text-transform: none; letter-spacing: 0; }
.note-form textarea, .note-form input {
  width: 100%; padding: 14px 16px; border: 1px solid var(--line-soft); border-radius: 4px; background: var(--bg); color: var(--ink);
  font: 400 18px/1.4 var(--serif); min-height: 50px; resize: vertical;
}
.note-form textarea:focus, .note-form input:focus { outline: none; border-color: var(--line); box-shadow: 0 0 0 3px color-mix(in srgb, var(--line) 25%, transparent); }
.note-err { min-height: 1em; font: 400 13px/1.3 var(--mono); color: #B4442F; }
html[data-theme="night"] .note-err { color: #F09A80; }
.note-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.note-done { display: grid; gap: 18px; margin-top: 12px; font: 400 20px/1.45 var(--serif); }
@media (max-width: 899px) { .sheet-note { width: 100vw; } .note-actions .btn { flex: 1; } }

/* Theme switch reveal */
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
::view-transition-new(root) { animation: reveal .95s cubic-bezier(.65, 0, .25, 1) both; }
@keyframes reveal { from { clip-path: circle(0 at var(--vx, 85%) var(--vy, 6%)); } to { clip-path: circle(150vmax at var(--vx, 85%) var(--vy, 6%)); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
.nowrap { white-space: nowrap; }
@media (max-width: 359px) { .rail a, .g-link { font-size: 13px; letter-spacing: .02em; } }
