/* Hallmark · redesign: full · shape: café editorial · genre: editorial · brand: WIP Coffee & More · posture: committed · hero: Ledge (/) and Stage (/show-your-wip) · job: visit · signature: the espresso at the entrance and the wooden counter in the same room · v2.0.0 */
/* Hallmark · pre-emit critique: P5 H5 E4 S5 R5 V5 · weakest: the arch and espresso share the frame; give the cup its own silhouette. */
/* Hallmark · dropped #drink-stage · the mobile photo now sits directly beneath the selected drink, so the jump link is redundant. */
/* Hallmark · dismissed 3 · the thin stroke traces transient steam above the espresso and never labels a card. */
/* Hallmark · hero-review: in-thread · resolved the event fold and brought the home actions into the image row. */
/* Hallmark · finish-review: in-thread · corrected mobile caption overflow, fixed counter navigation, and consolidated the scroll timeline. */
/* Hallmark · dismissed 77 · the event page covers the format and the next announcement in three sections while its first date is pending. */
@import url("./tokens.css");

@font-face {
  font-family: "Instrument Serif";
  src: url("./assets/InstrumentSerif-Regular.ttf") format("truetype");
  font-display: swap;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: clip; }
html { scroll-padding-top: var(--anchor-space); }
html:has(dialog[open]) { overflow-y: hidden; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 1rem/1.55 var(--font-body); }
.wrap { width: min(100% - 2 * var(--gutter), var(--frame)); margin-inline: auto; }
img { display: block; max-width: 100%; height: auto; }
p, figure, dl, dd { margin: 0; }
p { max-width: 54ch; }
a { color: inherit; text-underline-offset: .24em; }
a:hover { text-decoration-thickness: 2px; }
button { font: inherit; color: inherit; cursor: pointer; }
:where(a, button, summary, [tabindex]):focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
[hidden] { display: none !important; }
h1, h2, h3 { margin: 0; font: 400 3rem/.96 var(--font-display); text-wrap: balance; overflow-wrap: break-word; min-width: 0; }
h1 { font-size: clamp(3.8rem, 7.1vw, 7.15rem); letter-spacing: -.038em; }
h2 { font-size: clamp(3.5rem, 6.2vw, 6.4rem); letter-spacing: -.032em; }
h3 { font-size: clamp(2.125rem, 3.1vw, 3.1rem); }
.skip { position: fixed; top: var(--space-md); left: var(--space-md); z-index: 10; padding: var(--space-sm) var(--space-md); background: var(--paper); transform: translateY(-180%); }
.skip:focus-visible { transform: none; }

.mast { position: sticky; top: 0; z-index: 5; background: var(--paper); border-bottom: 1px solid var(--rule); }
.mast-inner, .foot { display: flex; justify-content: space-between; align-items: center; gap: var(--space-md); }
.mast-inner { min-height: var(--mast-height); }
.mast nav { margin-inline-start: auto; }
.site-language {
  display: flex;
  flex: none;
  align-items: center;
  gap: var(--space-xs);
  margin-inline-start: auto;
}
.site-language:not([hidden]) + nav { margin-inline-start: 0; }
.site-language button {
  min-height: 2.75rem;
  padding-inline: var(--space-sm);
  border: 1px solid var(--clear);
  border-radius: var(--pill-radius);
  color: var(--wine);
  background: var(--clear);
  font-size: .82rem;
}
.site-language button[aria-pressed="true"] { border-color: var(--rule); }
.site-language button:hover { text-decoration: underline; }
.site-language button:focus-visible { outline-color: var(--focus-dark); }
.brand { display: inline-flex; align-items: center; gap: var(--space-sm); font: 400 1.65rem/1 var(--font-display); text-decoration: none; }
.brand img { border-radius: 50%; object-fit: cover; width: 3rem; aspect-ratio: 1; }
nav { display: flex; align-items: center; gap: clamp(var(--space-sm), 2.4vw, var(--space-xl)); }
nav a { display: inline-flex; align-items: center; min-height: 2.75rem; text-decoration: none; white-space: nowrap; font-size: .94rem; }
.mast nav a:hover, .mast nav [aria-current] { text-decoration: underline; }
.mast .visit-link {
  padding-inline: var(--space-md);
  border: 1px solid var(--wine);
  border-radius: var(--pill-radius);
  color: var(--ivory);
  background: var(--wine);
}
.mast .visit-link:focus-visible { outline-color: var(--focus-dark); }
body:has(#visit:target) .visit-link { text-decoration: underline; }
.brand-code summary { cursor: pointer; padding-block: var(--space-sm); min-height: 2.75rem; }
.brand-code summary:hover { text-decoration: underline; }
.brand-decoded { padding-bottom: var(--space-sm); }
.morse { font-size: 1.12rem; margin-bottom: var(--space-xs); }


.opening, .show-intro {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, .72fr) minmax(0, 1.6fr);
  align-items: center;
  gap: clamp(1.25rem, 3vw, 3rem) var(--column);
  padding-block: clamp(var(--space-lg), 4vw, 3.5rem);
}
.opening::before {
  content: "";
  position: absolute;
  inset: 0 calc((100% - 100vi) / 2);
  background: var(--hero-paper);
  z-index: -1;
}
.opening h1, .show-intro h1 {
  grid-column: 1 / -1;
  font-size: clamp(3.4rem, 9.9vw, 9.6rem);
  line-height: .88;
  text-wrap: balance;
}
.opening h1 { text-align: center; }
.intro { align-self: center; }
.intro p { max-width: 30ch; font-size: clamp(1rem, 1.5vw, 1.24rem); }
.intro-actions { display: flex; align-items: flex-start; flex-wrap: wrap; margin-block-start: var(--space-lg); gap: var(--space-xs) var(--space-md); }
.opening-link { display: inline-flex; align-items: center; min-height: 2.75rem; font-size: .92rem; }
.entrance { min-width: 0; }
.entrance-art { position: relative; isolation: isolate; padding-inline-end: 9%; }
.entrance-art::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 11% 2% 8% 14%;
  background: var(--leaf);
}
.doorway { aspect-ratio: 1.95; overflow: clip; border-radius: 50% 50% 0 0 / 31% 31% 0 0; background: var(--wood); }
.doorway-photo { width: 100%; height: 100%; object-fit: cover; object-position: left bottom; }
figcaption { display: flex; align-items: baseline; gap: var(--space-md); margin-top: var(--space-sm); font-size: .88rem; color: var(--muted); }
.entrance figcaption { justify-content: flex-end; }
.entrance figcaption a { display: inline-flex; align-items: center; min-height: 2.75rem; }
.primary, .seat-open:not([hidden]) {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  min-height: 3rem;
  padding: var(--space-xs) var(--space-sm) var(--space-xs) var(--space-lg);
  border: 1px solid var(--clear);
  border-radius: var(--pill-radius);
  color: var(--ivory);
  background: var(--espresso);
  text-decoration: none;
  white-space: nowrap;
  font-weight: 650;
}
:where(.primary, .seat-open)::after {
  content: "";
  flex: none;
  width: 1.85rem;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--blush) url("./assets/action-arrow.svg") center / 1.1rem no-repeat;
}
:where(.primary, .seat-open):hover { text-decoration: underline; }
:where(.primary, .seat-open):active { transform: translateY(1px); }
.primary:focus-visible { outline-color: var(--wine); }
.visit .primary, .seat-open:not([hidden]) { color: var(--espresso); background: var(--ivory); }
.visit .primary:focus-visible, .seat-open:focus-visible { outline-color: var(--ivory); }

.counter-scene {
  position: relative;
  overflow: clip;
  background: var(--wine);
  color: var(--ivory);
}
.counter-scene::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(var(--room-top), var(--clear) 36%, var(--wine) 96%), var(--wood) url("./assets/interior.webp") center 55% / cover;
}
.counter-layout { position: relative; padding-block: clamp(var(--space-lg), 5vw, var(--space-xxl)); }
.counter { margin-block-start: clamp(5rem, 21vh, 14rem); }
.counter-index {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  background: var(--wood-dark);
  color: var(--ivory);
  border-block-start: .3rem solid var(--wood-edge);
  padding: var(--space-xs) var(--space-sm);
}
.counter-index a {
  display: grid;
  place-items: center;
  min-height: 2.75rem;
  border-inline-end: 1px solid var(--wood-light);
  text-align: center;
}
.counter-index a:last-child { border: 0; }
.counter-intro { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--space-md); margin-bottom: var(--space-lg); }
.counter-intro h2, .seat-prompt { color: var(--ivory); text-shadow: 0 2px 10px var(--wood-dark); }
.seat-invite, .seat-preview { display: flex; align-items: start; gap: var(--space-md); padding: var(--space-md); color: var(--wine); background: var(--ivory); }
.seat-invite { width: min(100%, 33rem); margin: 0 auto var(--space-lg); box-shadow: 0 6px 18px var(--shadow); }
.seat-invite:focus-visible { outline-color: var(--ivory); }
.seat-invite img, .seat-preview img { flex: none; width: 2.75rem; border-radius: 50%; }
.seat-invite > div, .seat-preview > div { min-width: 0; }
.seat-invite h3, .seat-preview strong { display: block; font: 400 clamp(1.85rem, 4.8vw, 2.65rem)/1.05 var(--font-display); }
.seat-note, .seat-preview span { display: block; margin: var(--space-xs) 0 0; overflow-wrap: anywhere; }
.counter-after { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: var(--space-md); padding-block-start: var(--space-md); }
.seat-open { margin-inline-end: auto; }
.tabletop { position: relative; isolation: isolate; padding: var(--space-lg) var(--gutter) var(--space-md); }
.tabletop::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(var(--wood-grain), var(--room-shade)), var(--wood) url("./assets/walnut.webp") center / cover;
  clip-path: polygon(3% 0, 97% 0, 100% 100%, 0 100%);
}
.counter-note { font-variant-numeric: tabular-nums; display: none; align-items: center; justify-content: space-between; gap: var(--space-sm); font-size: .9rem; }
.counter-ready .counter-note { display: flex; }
.drag-extra { display: inline-block; }
.reset { min-height: 2.75rem; background: var(--ivory); color: var(--wine); border: 0; padding: var(--space-sm) var(--space-md); }
.reset:focus-visible { outline-color: var(--ivory); }
.tray { position: relative; isolation: isolate; min-height: 13rem; aspect-ratio: 2.85; }
.object { position: absolute; display: grid; justify-items: center; width: 28%; text-decoration: none; transform: translate(var(--x, 0px), var(--y, 0px)); touch-action: pan-y; user-select: none; }
.object img { pointer-events: none; width: 100%; aspect-ratio: 1; object-fit: contain; filter: drop-shadow(3px 10px 9px var(--shadow)); transform: rotate(var(--tilt)); transition: transform var(--settle) var(--ease); }
.object span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: clip;
  clip-path: inset(50%);
  white-space: nowrap;
}
.counter-ready .object { cursor: grab; }
.counter-ready .object.dragging { cursor: grabbing; }
.object.dragging img { transform: translateY(-7px) rotate(0) scale(1.055); }
.object.resetting { transition: transform var(--settle) var(--ease); }
.cup { left: 8%; top: 6%; --tilt: -10deg; }
.toast { left: 36%; top: 6%; --tilt: 9deg; }
.books { right: 8%; top: 6%; --tilt: 11deg; }
@media (min-width: 44rem) {
  .counter-note { padding-inline-start: 8%; }
}
.counter-slip { font-variant-numeric: tabular-nums; display: flex; justify-content: flex-end; align-items: center; min-height: 2.75rem; font-size: .9rem; }
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: clip;
  clip-path: inset(50%);
  white-space: nowrap;
}
.keyboard-hint { display: none; }
.counter:has(.object:focus-visible) .drag-hint { display: none; }
.counter:has(.object:focus-visible) .keyboard-hint { display: inline; }



.menu-layout, .room, .feature-layout, .visit-layout {
  padding-block: var(--section);
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  align-items: start;
  gap: var(--column);
}
.menu-layout h2 + p, .room h2 + div, .feature-layout h2 + p, .show-intro h1 + p { margin-top: var(--space-md); }
.menu { background: var(--surface); }
.menu-layout { grid-template-columns: minmax(0, 1fr); }
.menu-list { display: grid; gap: var(--column); }
.menu-list article { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--column); align-items: start; }
.menu-list #food { align-items: center; padding-block: var(--space-lg); border-top: 1px solid var(--rule); }
.menu-list #coffee { grid-template-columns: minmax(0, .76fr) minmax(0, 1.24fr); }
.menu-list #coffee > .drink-stage { align-self: start; }
.menu #coffee { border-top: 1px solid var(--rule); padding-top: var(--space-lg); }
.menu-art { display: grid; place-items: center; min-height: clamp(8rem, 16vw, 12rem); background: var(--sage); }
.menu-art img { width: min(48%, 9rem); aspect-ratio: 1; object-fit: contain; filter: drop-shadow(4px 10px 9px var(--shadow)); rotate: 7deg; }
.drink-stage { background: var(--blush); align-self: center; }
.drink-caption { display: grid; gap: var(--space-sm); padding: var(--space-xl); }
.drink-caption strong { font: 400 clamp(2rem, 4vw, 4rem)/1 var(--font-display); }
.chapter-body .drink-list { padding-inline-start: 0; list-style: none; border-top: 1px solid var(--rule); margin-top: var(--space-md); }
.drink-list li { display: flex; justify-content: space-between; gap: var(--space-sm); align-items: baseline; padding: var(--space-sm); border-bottom: 1px solid var(--rule); margin: 0; }
.drink-list li:has(button) { padding: 0; }
.drink-list li + li { margin: 0; }
.drink-list button { display: flex; justify-content: space-between; align-items: center; gap: var(--space-sm); width: 100%; min-height: 2.75rem; padding: var(--space-sm); background: var(--surface); color: var(--espresso); border: 0; text-align: start; }
.drink-list button:hover span:first-child { text-decoration: underline; text-underline-offset: .2em; }
.drink-list button[aria-pressed="true"] { background: var(--wine); color: var(--ivory); font-weight: 650; }
.drink-list button:focus-visible { position: relative; z-index: 1; outline-color: var(--wine); outline-offset: 2px; }
.drink-list :is(li, button) > span:last-child { font-variant-numeric: tabular-nums; white-space: nowrap; }
.menu-list h3 + .chapter-body { margin-top: var(--space-sm); }
.chapter-body ul { margin: var(--space-sm) 0 0; padding-inline-start: var(--space-lg); }
.chapter-body li + li { margin-top: var(--space-xs); }

.room { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); align-items: center; }
.room figure { grid-area: 1 / 1; }
.room img { width: 100%; aspect-ratio: 1.22; object-fit: cover; object-position: center 62%; border-radius: 50% 50% 0 0 / 28% 28% 0 0; }
.room > div { grid-area: 1 / 2; }
.workfrom { margin-top: var(--space-lg); padding-top: var(--space-md); border-top: 1px solid var(--rule); }
.workfrom h3 + p { margin-top: var(--space-sm); }
.feature-layout p + p { margin-top: var(--space-sm); }
.text-action { display: inline-flex; align-items: center; min-height: 2.75rem; margin-top: var(--space-xs); }
.feature-action { margin-top: var(--space-lg); }

.note-list { border-top: 1px solid var(--rule); }
.note-list article { padding-block: var(--space-lg); border-bottom: 1px solid var(--rule); }
.note-list article h3 + p { margin-top: var(--space-sm); }
.notes { position: relative; isolation: isolate; }
.notes::before {
  content: "";
  position: absolute;
  inset: 0 calc((100% - 100vi) / 2);
  z-index: -1;
  background: var(--sage);
}
.notes .feature-layout { grid-template-columns: minmax(0, 1fr); }
.notes .note-list, .show-format .note-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--column);
}
.notes .note-list article, .show-format .note-list article { border-bottom: 0; }
.notes-edition { color: var(--muted); font-size: .9rem; }

.event-teaser { background: var(--hero-paper); color: var(--wine); }
.event-teaser .feature-layout { align-items: center; }
.event-teaser h2 { max-width: 8ch; font-size: clamp(4.3rem, 9vw, 8rem); }
.visit { background: var(--wine); color: var(--ivory); }
.visit-layout { grid-template-columns: minmax(0, 1fr); justify-items: center; row-gap: var(--space-md); text-align: center; }
.visit h2 { font-size: clamp(4.35rem, 9vw, 8rem); }
.visit-actions { justify-content: center; }
.visit-actions, .event-actions { display: flex; align-items: center; flex-wrap: wrap; gap: var(--space-sm) var(--space-md); margin-top: var(--space-lg); }

.foot { flex-wrap: wrap; min-height: 5rem; padding-block: var(--space-lg); font-size: .9rem; }
.foot > span { color: var(--wine); font: 400 clamp(1.65rem, 3vw, 2.45rem)/1 var(--font-display); }
.foot-links { display: flex; align-items: center; flex-wrap: wrap; column-gap: var(--space-lg); }
.foot a { min-height: 2.75rem; display: inline-flex; align-items: center; }

.show-intro {
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  min-height: min(49rem, calc(100svh - var(--mast-height)));
  align-content: center;
}
.event-intro > p:first-child { font-size: clamp(1.08rem, 1.65vw, 1.4rem); }
.show-intro h1 { color: var(--wine); font-size: clamp(3.4rem, 9vw, 9rem); text-wrap: initial; }
.event-date { margin-top: var(--space-sm); color: var(--muted); font-size: .9rem; }
.show-art { display: grid; justify-items: center; background: var(--sage); padding: var(--space-lg) var(--space-xl); }
.notebook { position: relative; width: min(74%, 23rem); }
.notebook-sketch { position: absolute; inset: 0; width: 100%; height: 100%; overflow: clip; }
.notebook-sketch :is(path, circle) { fill: none; stroke: var(--wine); stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.notebook-sketch text { fill: var(--wine); font: 400 20px var(--font-display); }
.show-art figcaption { display: grid; gap: var(--space-xs); justify-self: stretch; border-top: 1px solid var(--rule); padding-top: var(--space-md); color: var(--espresso); }
.show-art figcaption a { display: inline-flex; align-items: center; justify-self: start; min-height: 2.75rem; }
.show-format { background: var(--surface); }
.show-format .feature-layout { grid-template-columns: minmax(0, 1fr); }

.seat-sheet {
  width: min(32rem, calc(100% - 2rem));
  max-height: calc(100dvh - 2rem);
  padding: 0;
  border: 1px solid var(--rule);
  color: var(--ink);
  background: var(--paper);
}
.seat-sheet::backdrop { background: var(--backdrop); }
.seat-paper { padding: clamp(var(--space-lg), 5vw, var(--space-xl)); }
.seat-sheet-head { display: flex; align-items: start; justify-content: space-between; gap: var(--space-md); }
.seat-sheet h2 { font-size: clamp(3rem, 7vw, 4.75rem); }
.seat-sheet-head + p { margin-top: var(--space-md); }
.seat-sheet label { display: block; margin-block: var(--space-md) var(--space-xs); font-weight: 600; }
.seat-sheet label span { color: var(--muted); font-weight: 400; }
.seat-sheet :is(input, textarea) { display: block; width: 100%; padding: var(--space-sm); background: var(--ivory); color: var(--ink); border: 1px solid var(--rule); font: inherit; }
.seat-sheet textarea { resize: vertical; }
.seat-preview { margin-top: var(--space-md); border: 1px solid var(--rule); }
.seat-link summary { cursor: pointer; padding-block: var(--space-sm); text-decoration: underline; }
.seat-sheet :is(input, textarea):focus-visible { outline: 2px solid var(--wine); outline-offset: 2px; }
.seat-actions { display: flex; align-items: center; flex-wrap: wrap; gap: var(--space-md); margin-top: var(--space-lg); }
.seat-actions .primary, .seat-share, .seat-close { border: 1px solid var(--wine); }
.seat-share, .seat-close { min-height: 2.75rem; padding-inline: var(--space-sm); background: var(--clear); }
.seat-share:hover, .seat-close:hover { background: var(--surface); }
.seat-close { flex: 0 0 2.75rem; padding: 0; font-size: 1.4rem; }
.seat-feedback { margin-top: var(--space-sm); color: var(--muted); }
@media (prefers-reduced-motion: no-preference) {
  .seat-sheet[open], .seat-invite:not([hidden]) { animation: set-down 340ms var(--ease) both; }
}

.detail {
  width: min(43rem, calc(100% - 2rem));
  max-height: calc(100dvh - 2rem);
  border: 1px solid var(--rule);
  border-radius: 1.1rem;
  padding: 0;
  color: var(--ink);
  background: var(--paper);
}
.detail::backdrop { background: var(--backdrop); }
.detail-inner { padding: clamp(var(--space-md), 3vw, var(--space-xl)); }
.detail-head, .detail-actions { display: flex; align-items: center; justify-content: space-between; gap: .7rem; }
.detail-head { margin-bottom: var(--space-lg); }
.detail-picker { display: flex; gap: .25rem; flex-wrap: wrap; }
.detail button {
  min-height: 2.75rem;
  border: 1px solid var(--clear);
  background: var(--clear);
  padding-inline: .8rem;
  font-size: .9rem;
}
.detail button:disabled { background: var(--surface); color: var(--muted); cursor: not-allowed; }
.detail button:not(:disabled):hover { background: var(--surface); }
.detail button:active { transform: translateY(1px); }
.detail-picker button[aria-pressed="true"] {
  background: var(--surface);
  border-color: var(--rule);
  border-radius: 2rem;
  font-weight: 600;
}
.detail button.close {
  display: grid;
  place-items: center;
  width: 2.75rem;
  flex-shrink: 0;
  border-color: var(--rule);
  border-radius: 50%;
  padding: 0;
  font-size: 1.55rem;
  line-height: 1;
}
.detail-content {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: var(--space-lg);
}
.detail-visual {
  display: grid;
  place-items: center;
  aspect-ratio: 1.13;
  background: var(--surface);
  border-radius: .7rem;
}
.detail-art { width: 84%; aspect-ratio: 1; height: auto; object-fit: contain; }
.detail h2 { font-size: clamp(3rem, 7vw, 4.8rem); }
.detail-copy { margin-top: .65rem; }
.detail-copy .chapter-body ul { padding: 0; list-style: none; }
.detail-copy li { border-bottom: 1px solid var(--rule); padding-block: .22rem; }
.detail-copy li + li { margin: 0; }
.detail-actions {
  flex-wrap: wrap;
  margin-top: var(--space-lg);
  padding-top: var(--space-md);
  border-top: 1px solid var(--rule);
}
.detail-link { font-size: .91rem; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .detail[open] { animation: set-down 300ms var(--ease) both; }
  .detail[open]::backdrop { animation: ink-in 240ms ease both; }
  .detail[open].leaving { animation: put-away 180ms ease both; }
  .detail[open].leaving::backdrop { animation: ink-in 180ms ease reverse both; }
  
}
@keyframes set-down { from { opacity: .3; transform: translateY(16px) rotate(-1deg); } to { opacity: 1; transform: none; } }
@keyframes ink-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes put-away { from { opacity: 1; transform: none; } to { opacity: 0; transform: translateY(10px); } }

@media (max-width: 42rem) {
  .detail {
    position: fixed;
    inset: auto 0 0;
    width: 100%;
    max-width: none;
    max-height: calc(100dvh - 1rem);
    margin: 0;
    border-inline: 0;
    border-bottom: 0;
    border-radius: 1.1rem 1.1rem 0 0;
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  .detail-inner {
    padding-inline: var(--space-md);
    padding-bottom: max(var(--space-md), env(safe-area-inset-bottom));
  }
  .detail-head { margin-bottom: var(--space-md); }
  .detail-content { grid-template-columns: minmax(0, 1fr) minmax(0, .56fr); gap: var(--space-md); min-height: 13.25rem; align-items: start; }
  .detail-visual { grid-column: 2; grid-row: 1; align-self: start; aspect-ratio: 1; }
  .detail-text { grid-column: 1; grid-row: 1; }
  .detail-copy { font-size: .93rem; }
  .detail-actions { margin-top: var(--space-md); flex-wrap: wrap; }
  .detail-picker { gap: 0; }
  .detail-picker button { padding-inline: .7rem; }
  .detail-link { padding-inline: .75rem; }
  .detail-visit { min-height: 2.75rem; }
}
@media (max-width: 42rem) and (prefers-reduced-motion: no-preference) {
  .detail[open] { animation: sheet-in 300ms var(--ease) both; }
  .detail[open].leaving { animation: sheet-out 180ms ease-in both; }
}
@keyframes sheet-in { from { transform: translateY(100%); } to { transform: none; } }
@keyframes sheet-out { from { transform: none; } to { transform: translateY(100%); } }



.detail-visit { display: inline-flex; align-items: center; min-height: 2.75rem; }
@media (max-width: 50rem) {
  .opening, .show-intro { grid-template-columns: minmax(0, 1fr); }
  .show-intro { min-height: 0; }
}
@media (max-width: 43rem) {
  .menu-layout, .room, .feature-layout, .visit-layout { grid-template-columns: minmax(0, 1fr); }
  .opening h1, .show-intro h1 { text-align: start; }
  .intro { padding-block-end: 0; }
  .intro p { max-width: 34ch; }
  .menu-list #coffee { grid-template-columns: minmax(0, 1fr); gap: var(--space-md); }
  .drink-stage { position: static; }
  .drink-caption { padding: var(--space-md); }
  .opening h1, .show-intro h1 { font-size: clamp(3.4rem, 13vw, 5.5rem); }
  .doorway { aspect-ratio: 1.25; }
  .entrance figcaption { justify-content: space-between; }
  .tray { aspect-ratio: 1.78; min-height: 9.5rem; }
  .object { width: 31%; top: 10%; }
  .cup { left: 0; }
  .toast { left: 34.5%; }
  .books { right: 0; }
  .show-intro { min-height: 0; padding-top: var(--space-xl); }
  .show-art { padding: var(--space-md) var(--space-lg); }
  .notebook { width: min(67%, 13.5rem); }
}
@media (max-width: 32rem) {
  .brand span { font-size: 1.24rem; max-width: 7ch; }
  .brand img { width: 2.3rem; }
  nav { gap: var(--space-sm); }
  nav a { font-size: .82rem; }
  .mast .visit-link { padding-inline: var(--space-sm); }
  .tabletop { padding-inline: var(--space-sm); }
  .counter-note { align-items: start; }
  .drag-extra { display: block; color: var(--pale); }
  .menu-list #food { grid-template-columns: minmax(0, 1fr); gap: var(--space-md); }
  .menu-list #food .menu-art { grid-row: 1; }
}
@media (max-width: 46rem) {
  :root { --mast-height: 6.5rem; }
  .mast-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: 3.25rem 3.25rem;
    gap: 0;
  }
  .mast .brand span { max-width: none; }
  .mast nav {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: space-between;
    margin-inline-start: 0;
  }
}
@media (max-width: 22rem) {
  .mast nav { gap: var(--space-xs); }
  .mast .visit-link { padding-inline: var(--space-xs); }
}
.walk-in { position: fixed; inset: calc(var(--mast-height) + 1px) 0 0; z-index: 6; overflow: clip; background: var(--wine); }
.walk-in img { width: 100%; height: 100%; object-fit: cover; object-position: center 90%; transform-origin: 18% 82%; }
.tabletop.is-arriving { z-index: 7; pointer-events: none; }
@media (max-width: 43rem) {
  .walk-in img { object-position: 4% 80%; transform-origin: 38% 84%; }
}
.walk-in-skip {
  position: fixed;
  inset: auto var(--gutter) max(var(--space-md), env(safe-area-inset-bottom)) auto;
  z-index: 8;
  min-height: 2.75rem;
  padding: var(--space-sm) var(--space-md);
  border: 1px solid var(--rule);
  color: var(--wine);
  background: var(--ivory);
}
.walk-in-skip:focus-visible { outline-color: var(--ivory); }
@media (prefers-reduced-motion: no-preference) {
  .walk-in:not([hidden]) { animation: threshold-in 230ms ease-out both; }
  @supports (animation-timeline: view()) {
    main { timeline-scope: --doorway-scroll; }
    .entrance-art { view-timeline-name: --doorway-scroll; }
    .doorway-photo {
      animation: approach-room linear both;
    }
    .counter-scene::before {
      animation: enter-room linear both;
    }
    .doorway-photo, .counter-scene::before {
      animation-timeline: --doorway-scroll;
      animation-range: exit 0% exit 100%;
    }
  }
  .tabletop.is-arriving::before { transform-origin: top center; animation: settle-surface var(--arrival-settle) var(--ease) both; }
  .cup.steam-visible::before, .cup.steam-visible::after {
    content: "";
    position: absolute;
    z-index: 1;
    inset: 8% auto auto 47%;
    width: 8%;
    height: 24%;
    pointer-events: none;
    border-inline-start: 3px solid var(--steam);
    border-radius: 50%;
    filter: blur(.7px);
    animation: steam-rise 1.8s ease-out 2 both;
  }
  .cup.steam-visible::after { inset-inline-start: 57%; animation-delay: 320ms; }
  @media (max-width: 43rem) {
    .cup.steam-visible::before, .cup.steam-visible::after {
      border-inline-start-width: 4px;
      filter: drop-shadow(0 1px 2px var(--wood-dark)) blur(.55px);
    }
  }
}
@keyframes threshold-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes approach-room { to { transform: scale(1.18) translateY(2%); } }
@keyframes enter-room { from { transform: scale(1.09); } to { transform: none; } }
@keyframes settle-surface {
  0%, 40% { transform: scale(var(--counter-widen), 2.2); }
  100% { transform: none; }
}
@keyframes steam-rise {
  0% { opacity: 0; transform: translateY(0) rotate(8deg) scale(.7); }
  28%, 46% { opacity: .96; }
  100% { opacity: 0; transform: translateY(-92%) rotate(-10deg) scale(1.22); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}


.drink-photo { display: block; width: 100%; aspect-ratio: 1.24; object-fit: cover; }
.detail-visual.is-photo { overflow: clip; }
.detail-visual.is-photo .detail-art { width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; }
@media (max-width: 43rem) {
  .drink-photo { aspect-ratio: 1.24; }
  .drink-caption { min-width: 0; }
  .drink-caption strong { font-size: clamp(2rem, 8vw, 2.8rem); overflow-wrap: anywhere; }
}

.coffee-postcard {
  position: absolute;
  z-index: 1;
  right: 0;
  bottom: var(--space-sm);
  display: grid;
  justify-items: center;
  width: clamp(7.4rem, 13vw, 12.5rem);
  padding: var(--space-xs) var(--space-sm) var(--space-sm);
  color: var(--wine);
  background: var(--blush);
  border-radius: 50% 50% 0 0;
  transform: rotate(-5deg);
  text-decoration: none;
}
.coffee-postcard img { width: 88%; }
.coffee-postcard span { text-decoration: underline; font-size: .78rem; text-align: center; }
.coffee-postcard:hover span { text-decoration-thickness: 2px; }
.coffee-postcard:active { transform: rotate(-2deg); }
.entrance-art { padding-inline-end: 9%; }

.drink-filters { display: flex; flex-wrap: wrap; gap: var(--space-xs); margin-top: var(--space-md); }
.drink-filters button {
  min-height: 2.75rem;
  padding-inline: var(--space-sm);
  color: var(--wine);
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 1.5rem;
  font-size: .88rem;
}
.drink-filters button[aria-pressed="true"] { background: var(--wine); color: var(--ivory); }
.drink-filters button:hover { text-decoration: underline; }
.drink-filters button:active { transform: translateY(1px); }
.drink-caption-heading { display: flex; flex-wrap: wrap; gap: var(--space-xs) var(--space-md); align-items: baseline; justify-content: space-between; }
.drink-price { font-size: .9rem; font-weight: 650; white-space: nowrap; font-variant-numeric: tabular-nums; }
@media (max-width: 43rem) {
  .entrance-art { padding-inline-end: 7%; }
  .coffee-postcard { width: clamp(6.8rem, 27vw, 9rem); bottom: .38rem; }
  .drink-caption-heading { column-gap: var(--space-sm); }
}


@media (max-width: 43rem) {
  .drink-list li:has(.drink-stage) { display: block; }
  .drink-list .drink-stage { margin-block-end: var(--space-xs); }
  .room > div, .room figure { grid-area: auto; }
  .notes .note-list, .show-format .note-list { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .notes .note-list article + article, .show-format .note-list article + article { border-top: 1px solid var(--rule); }
  .counter { margin-block-start: clamp(4.5rem, 16vh, 8rem); }
}
