/* Hallmark · shape: Letter (statement-led venue page) · genre: editorial · theme: Atelier (deal 3/3, seed ease-063c·b961ffbd·2026-11-18·r0) · job: visit · draw: 984579
 * hero: Ledge · nav: plain bar, wordmark and three anchors (swap: search-led, a cafe has nothing to search; today's hours moved to the sticky action bar) · footer: index columns · imagery: photographs (the owner's Naver uploads) · signature: the lemon granita as a matted print, its price pencilled beneath
 * axes: light/sans/warm · owner brief 11-19: ivory paper and the logo's charcoal grey, one family (Pretendard), the owner's logo file as the wordmark · posture: restrained · contrast: pass · fold: pass · v2.0.0 */
/* Hallmark · pre-emit critique: P4 H4 E3 S4 R4 V3 · weakest: E, the menu is long, so it sits behind one switch and the page keeps one idea per screen */
/* Hallmark · waive 26b · no control on the page can be disabled: links, the menu radio switch, details · a cafe page with nothing to submit has no disabled state to style */
@import url("./tokens.css");
@import url("./base.css");

:root {
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.15' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.3 0 0 0 0 0.25 0 0 0 0 0.2 0 0 0 0.55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --fibre: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='f'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85 0.12' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.35 0 0 0 0 0.3 0 0 0 0 0.25 0 0 0 0.12 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23f)'/%3E%3C/svg%3E");
  --bar-h: 64px;
  --color-bar: oklch(97.2% 0.013 92 / 0.96);
}

body { color: var(--color-ink-2); line-height: 1.6; padding-bottom: var(--bar-h); word-break: keep-all; }
h1, h2 { font-weight: var(--display-weight); color: var(--color-ink); }
h3 { font-weight: var(--serif-small); color: var(--color-ink); }
.display-s { font-size: var(--text-display-s); letter-spacing: var(--tracking-statement); line-height: 1.1; max-width: 22ch; }
.muted { color: var(--color-muted); }
.num { font-variant-numeric: tabular-nums; }

.skip { position: absolute; left: var(--space-md); top: -100px; z-index: var(--z-modal); background: var(--color-ink); color: var(--color-paper); padding: var(--space-xs) var(--space-md); }
.skip:focus-visible { top: var(--space-md); }

/* links and the one button */
.btn { display: inline-flex; align-items: center; min-height: 52px; border: var(--rule-hair) solid var(--color-ink); border-radius: var(--radius-pill); padding: 0 var(--space-lg); color: var(--color-ink); background: transparent; text-decoration: none; transition: background-color var(--dur-short) var(--ease-out), color var(--dur-short) var(--ease-out), transform var(--dur-micro) var(--ease-out); }
.btn:hover { background: var(--color-ink); color: var(--color-paper); }
.btn:active { transform: scale(0.97); }
.link { color: var(--color-ink); text-decoration: underline; text-decoration-color: var(--color-accent); text-underline-offset: 0.25em; transition: text-decoration-color var(--dur-short) var(--ease-out); }
.link:hover { text-decoration-color: var(--color-ink); }
a:focus-visible, label:focus-visible, summary:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 3px; }

/* nav */
.nav { position: sticky; top: 0; z-index: var(--z-sticky-nav); background: var(--color-paper); border-bottom: var(--rule-hair) solid var(--color-rule); }
.nav-in { display: flex; align-items: center; gap: var(--space-xl); min-height: 64px; }
.wordmark { display: inline-flex; align-items: center; min-height: 44px; color: var(--color-ink); }
.logo { height: 34px; width: auto; }
.nav nav { display: flex; gap: var(--space-lg); margin-left: auto; }
.nav nav a { font-size: var(--text-sm); color: var(--color-ink-2); text-decoration: none; padding-block: var(--space-xs); transition: color var(--dur-short) var(--ease-out); }
.nav nav a:hover { color: var(--color-ink); text-decoration: underline; text-decoration-color: var(--color-accent); }
.nav-hours { font-size: var(--text-sm); color: var(--color-ink); }

/* hero: Ledge, the head resting at the base beside the print */
.hero { position: relative; isolation: isolate; background: radial-gradient(120% 90% at 20% 0%, var(--card-lit), var(--color-paper) 60%); }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background-image: var(--grain); background-size: 180px; opacity: 0.16; mix-blend-mode: multiply; pointer-events: none; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: var(--space-3xl); align-items: center; min-height: min(calc(100svh - 64px), 860px); padding-block: var(--space-2xl); }
.hero-text { display: grid; gap: var(--space-lg); }
.hero h1 { max-width: none; line-height: 1.08; font-size: clamp(2.5rem, 4.2vw + 0.5rem, 5.25rem); }
.hero h1 span { display: block; white-space: nowrap; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-lg); margin-top: var(--space-xs); }

.stock { position: relative; border-radius: 2px; background: var(--fibre) 0 0 / 220px, linear-gradient(160deg, var(--card-lit), var(--color-card) 55%, var(--card-shade)); box-shadow: var(--shadow-card), inset 1px 1px 0 var(--lit); text-shadow: 0 1px 0 var(--lit); }
.print { margin: 0; padding: var(--space-xl) var(--space-xl) var(--space-md); max-width: 480px; justify-self: end; width: 100%; }
.print-frame { aspect-ratio: 3 / 4; box-shadow: inset 0 0 0 1px var(--color-card-edge); }
.print figcaption { display: flex; justify-content: space-between; gap: var(--space-md); padding-top: var(--space-md); font-size: var(--text-sm); }
.edition { color: var(--color-ink); }
.pencil { color: var(--color-pencil); }

/* statement in the owner's words */
.statement { padding-block: var(--section-gap); background: var(--color-paper); }
.st-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap-columns); row-gap: var(--space-xl); }
.st-grid h2 { grid-column: 1 / span 10; }
.wall { grid-column: 5 / span 6; font-size: var(--text-lead); line-height: 1.7; max-width: 46ch; }
.signoff { grid-column: 5 / span 6; font-family: var(--font-display); font-size: var(--text-title); color: var(--color-ink); }

/* menu: one switch, rows under an ink rule */
.menu { padding-block: var(--section-gap-s) var(--section-gap); background: var(--color-paper-2); }
.head-split { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap-columns); align-items: end; margin-bottom: var(--space-2xl); }
.head-split h2 { grid-column: 1 / span 5; }
.head-split .lead { grid-column: 7 / span 6; }
.tabs { display: flex; flex-wrap: wrap; gap: var(--space-xs); margin-bottom: var(--space-xl); }
.tabs label { display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--space-md); border: var(--rule-hair) solid var(--color-rule); border-radius: var(--radius-pill); color: var(--color-ink-2); cursor: pointer; transition: background-color var(--dur-short) var(--ease-out), border-color var(--dur-short) var(--ease-out), color var(--dur-short) var(--ease-out); }
.tabs label:hover { border-color: var(--color-ink); color: var(--color-ink); }
.tabs input:checked + label { background: var(--color-ink); border-color: var(--color-ink); color: var(--color-paper); }
.tabs input:focus-visible + label { outline: 2px solid var(--color-focus); outline-offset: 3px; }
.panel { display: none; }
.switch:has(#m-espresso:checked) #p-espresso,
.switch:has(#m-granita:checked) #p-granita,
.switch:has(#m-noncoffee:checked) #p-noncoffee,
.switch:has(#m-bar:checked) #p-bar,
.switch:has(#m-dessert:checked) #p-dessert { display: block; }
@supports not selector(:has(*)) { .panel { display: block; margin-bottom: var(--space-2xl); } }
.panel-line { font-size: var(--text-sm); color: var(--color-muted); margin-bottom: var(--space-md); }
.menu-rows { list-style: none; margin: 0; padding: 0; border-top: var(--rule-head) solid var(--color-ink); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--space-3xl); }
.mrow { display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-lg); padding-block: var(--space-md); border-bottom: var(--rule-hair) solid var(--color-rule); }
.mname { display: grid; gap: var(--space-3xs); min-width: 0; }
.mname .en { font-family: var(--font-display); font-weight: var(--serif-small); font-size: var(--text-title); color: var(--color-ink); line-height: 1.2; }
.mname .ko { font-size: var(--text-sm); color: var(--color-ink-2); }
.mname .desc { font-size: var(--text-sm); color: var(--color-muted); }
.tag { justify-self: start; font-size: var(--text-xs); color: var(--color-accent); border: var(--rule-hair) solid currentColor; border-radius: var(--radius-pill); padding: 0 var(--space-xs); line-height: 1.6; }
.mrow b { font-weight: 400; font-size: var(--text-lead); color: var(--color-ink); white-space: nowrap; }
.boards { margin-top: var(--space-xl); }
.boards summary { cursor: pointer; color: var(--color-ink); text-decoration: underline; text-decoration-color: var(--color-accent); text-underline-offset: 0.25em; min-height: 44px; display: inline-flex; align-items: center; }
.board-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap-columns); margin-top: var(--space-lg); }
.board-pair img { box-shadow: var(--shadow-card); }

/* the room: two prints at two sizes */
.room { padding-block: var(--section-gap); }
.room h2 { margin-bottom: var(--space-2xl); }
.room-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: var(--gap-columns); align-items: end; }
.hang { margin: 0; }
.hang .frame { aspect-ratio: 4 / 3; }
.hang-s { margin-bottom: var(--space-3xl); }
.hang-s .frame { aspect-ratio: 4 / 3; }
.hang figcaption { display: flex; flex-wrap: wrap; gap: var(--space-xs); padding-top: var(--space-sm); font-size: var(--text-sm); color: var(--color-ink); }

/* visit */
.visit { padding-block: var(--section-gap-s); background: var(--color-paper-2); }
.visit-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap-columns); row-gap: var(--space-2xl); }
.visit-head { grid-column: 1 / span 5; display: grid; gap: var(--space-md); align-content: start; }
.hours-big { font-family: var(--font-display); font-weight: var(--display-weight); font-size: var(--text-display-s); color: var(--color-ink); line-height: 1.1; letter-spacing: var(--tracking-statement); }
.hours-note { color: var(--color-ink-2); }
address { font-style: normal; color: var(--color-ink-2); }
.tel { color: var(--color-ink); text-decoration-color: var(--color-accent); }
.facade { margin: var(--space-lg) 0 0; max-width: 360px; }
.facade .frame { aspect-ratio: 3 / 4; }
.facade figcaption { padding-top: var(--space-sm); font-size: var(--text-sm); color: var(--color-muted); }
.routes { grid-column: 7 / span 6; list-style: none; margin: 0; padding: 0; border-top: var(--rule-head) solid var(--color-ink); }
.routes li { padding-block: var(--space-lg); border-bottom: var(--rule-hair) solid var(--color-rule); display: grid; gap: var(--space-xs); }
.routes .maps { display: flex; flex-wrap: wrap; gap: var(--space-lg); border-bottom: 0; }

/* faq */
.faq { padding-block: var(--section-gap); }
.faq-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap-columns); row-gap: var(--space-xl); }
.faq-grid h2 { grid-column: 1 / span 4; }
.faq-list { grid-column: 5 / span 8; border-top: var(--rule-head) solid var(--color-ink); }
.faq-list details { border-bottom: var(--rule-hair) solid var(--color-rule); }
.faq-list summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: var(--space-md); align-items: center; min-height: 64px; font-family: var(--font-display); font-weight: var(--serif-small); font-size: var(--text-title); color: var(--color-ink); }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; font-family: var(--font-body); color: var(--color-muted); transition: transform var(--dur-short) var(--ease-out); }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details p { padding-bottom: var(--space-lg); max-width: 60ch; }

/* footer: index columns */
.foot { border-top: var(--rule-head) solid var(--color-ink); padding-block: var(--space-2xl) var(--space-xl); font-size: var(--text-sm); }
.foot-grid { display: grid; grid-template-columns: minmax(0, 6fr) repeat(2, minmax(0, 3fr)); gap: var(--gap-columns); }
.foot-mark { color: var(--color-ink); }
.foot-mark .logo { height: 44px; }
.foot-h { font-family: var(--font-body); font-size: var(--text-sm); color: var(--color-muted); margin-bottom: var(--space-xs); }
.foot a { color: var(--color-ink); }
.foot-base { margin-top: var(--space-2xl); }

/* the action bar: today's hours, call, directions, booking (embed.js may replace the links) */
.actionbar { position: fixed; inset: auto 0 0 0; z-index: var(--z-sticky); background: var(--color-bar); border-top: var(--rule-hair) solid var(--color-rule); padding: var(--space-xs) 0 max(var(--space-xs), env(safe-area-inset-bottom)); }
.actionbar .ab-in { max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); display: flex; align-items: center; gap: var(--space-xs); }
.actionbar .wrap { display: flex; align-items: center; gap: var(--space-xs); }
.ab-hours { margin-right: auto; font-size: var(--text-sm); color: var(--color-ink); }
.actionbar a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 var(--space-md); border: var(--rule-hair) solid var(--color-ink); border-radius: var(--radius-pill); color: var(--color-ink); text-decoration: none; font-size: var(--text-sm); transition: background-color var(--dur-short) var(--ease-out), color var(--dur-short) var(--ease-out); }
.actionbar a:hover { background: var(--color-ink); color: var(--color-paper); }
.actionbar a:active { transform: scale(0.97); }

@media (max-width: 60rem) {
  .nav nav { display: none; }
  .nav-hours { margin-left: auto; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); min-height: 0; gap: var(--space-xl); padding-block: var(--space-xl) var(--space-2xl); }
  .print { justify-self: stretch; max-width: none; padding: var(--space-lg) var(--space-lg) var(--space-sm); }
  .st-grid h2, .wall, .signoff, .head-split h2, .head-split .lead, .visit-head, .routes, .faq-grid h2, .faq-list { grid-column: 1 / -1; }
  .head-split { row-gap: var(--space-md); }
  .menu-rows { grid-template-columns: minmax(0, 1fr); }
  .room-grid { grid-template-columns: minmax(0, 1fr); }
  .hang-s { margin-bottom: 0; }
  .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 40rem) {
  .board-pair { grid-template-columns: minmax(0, 1fr); }
  .foot-grid { grid-template-columns: minmax(0, 1fr); }
  .actionbar a { padding: 0 var(--space-sm); }
}
