/* Kyoto Coffee Lounge, the website.
   Identity: a tea-house menu card on washi, sealed in vermillion.
   Tokens are the app's (lib/theme.ts in the app repo), unchanged; see DESIGN.md.
   Rules held as numbers: radius 4px everywhere, circles for seals only.
   Zero shadows. One solid vermillion fill per viewport (the primary action).
   One ease-out curve, 150 to 300ms. Display serif at weight 500, never bold. */

:root {
  --bg: #FBF8F4;          /* washi cream, the page */
  --surface: #FFFFFF;     /* paper step */
  --washi: #F3EADB;       /* the stamp card */
  --washi-border: #CFBFA8;
  --washi-ring: #A8977F;
  --line: #E9E2DA;        /* hairline */
  --text: #1A1411;        /* 17.22:1 on bg */
  --text-2: #574B42;      /* 7.96:1 on bg */
  --muted: #706256;       /* 5.56:1 on bg */
  --accent: #C4362A;      /* torii vermillion: fills and borders only */
  --accent-text: #B03126; /* vermillion as text on paper, 5.99:1 */
  --accent-pressed: #A82D23;
  --on-accent: #FFF8F2;   /* 5.11:1 on accent */
  --seal: #E34234;        /* seal impressions, never behind copy */
  --success: #5A7A3C;     /* open, and nothing else */
  --ink: #14100E;         /* sumi, the lacquer surface */
  --ink-raised: #211B17;
  --ink-border: #3A302A;
  --on-ink: #F7F0E6;      /* 16.72:1 on ink */
  --on-ink-muted: #B5A799;/* 8.06:1 on ink */
  --accent-on-ink: #F2685A; /* 6.22:1 on ink */
  --success-on-ink: #9DBB7A;
  --magenta-text: #B0154F;

  --serif: "Hiragino Mincho ProN", "Shippori Mincho", "Yu Mincho", "Noto Serif JP", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --radius: 4px;
  --wrap: 1200px;
  --gutter: 24px;
  --section: clamp(64px, 9vw, 112px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --fast: 150ms;
  --slow: 300ms;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: var(--washi-ring); transition: color var(--fast) var(--ease), text-decoration-color var(--fast) var(--ease); }
a:hover { color: var(--accent-text); text-decoration-color: var(--accent); }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; }
address { font-style: normal; }
table { border-collapse: collapse; }
button { font: inherit; }

/* Focus is a state, drawn on purpose: a 2px ink ring with a cream gap. */
:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; border-radius: 2px; }
.footer :focus-visible, .band :focus-visible, .ink-card :focus-visible, .map :focus-visible { outline-color: var(--on-ink); }
main:focus { outline: none; }

.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 16px; top: -100px; z-index: 100; background: var(--ink); color: var(--on-ink); padding: 12px 16px; border-radius: var(--radius); text-decoration: none; font-weight: 600; }
.skip:focus { top: 12px; color: var(--on-ink); }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.wrap--narrow { max-width: 760px; }

/* ── The stamped label: the app's section heading, a receipt line over a short vermillion rule ── */
.label {
  display: block;
  font: 700 12px/1.3 var(--sans);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-2);
  margin: 0 0 20px;
  padding-bottom: 10px;
  position: relative;
}
.label::after { content: ""; position: absolute; left: 0; bottom: 0; width: 28px; height: 2px; background: var(--accent); }
.label--on-ink { color: var(--accent-on-ink); }
.label--on-ink::after { background: var(--accent-on-ink); }
.label--ink { color: var(--on-ink-muted); }
.label--ink::after { background: var(--accent-on-ink); }

/* ── The seal: the one device. A vermillion hanko with a kanji knocked out. ── */
.seal {
  display: inline-grid; place-items: center;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--seal); color: var(--bg);
  font: 500 22px/1 var(--serif);
  transform: rotate(-6deg);
  flex: none;
  user-select: none;
}
.seal--brand { width: 36px; height: 36px; font-size: 19px; }
.seal--page { width: 96px; height: 96px; font-size: 46px; transform: rotate(-8deg) translate(2px, 3px); }
.seal--cat { width: 40px; height: 40px; font-size: 20px; transform: rotate(5deg); }
.seal--empty { width: 72px; height: 72px; font-size: 36px; margin-bottom: 24px; }
.seal--map { width: 64px; height: 64px; font-size: 30px; margin-bottom: 20px; }

/* ── Masthead ── */
.masthead { position: sticky; top: 0; z-index: 50; background: rgba(251, 248, 244, 0.97); border-bottom: 1px solid var(--line); }
.masthead__row { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; min-height: 44px; }
.brand:hover { color: var(--text); }
.brand__name { font: 500 21px/1.1 var(--serif); letter-spacing: -0.01em; }
.brand__name span { color: var(--text-2); }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px;
  font: 500 15px/1 var(--sans); text-decoration: none; color: var(--text-2);
  position: relative;
}
.nav a:hover { color: var(--text); }
.nav a[aria-current="page"] { color: var(--text); }
.nav__short { display: none; }
.nav a[aria-current="page"]::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 8px; height: 2px; background: var(--accent); }

/* ── Buttons: one shape (4px). Primary is the one vermillion fill. Hover changes the fill, never lifts. ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 22px; border-radius: var(--radius);
  font: 600 16px/1.1 var(--sans); text-decoration: none; border: 1px solid transparent;
  cursor: pointer;
  transition: background-color var(--fast) var(--ease), color var(--fast) var(--ease), border-color var(--fast) var(--ease);
}
.btn--primary { background: var(--accent); color: var(--on-accent); }
.btn--primary:hover { background: var(--accent-pressed); color: var(--on-accent); }
.btn--quiet { border-color: var(--text); color: var(--text); background: transparent; }
.btn--quiet:hover { background: var(--text); color: var(--bg); }
.btn--inverse { background: var(--on-ink); color: var(--ink); }
.btn--inverse:hover { background: var(--washi); color: var(--ink); }
.text-link { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; text-decoration: underline; text-decoration-color: var(--text); }
.text-link::after { content: "→"; margin-left: 8px; transition: transform var(--fast) var(--ease); }
.text-link:hover::after { transform: translateX(3px); }

/* ── Type ── */
h1 { font: 500 clamp(44px, 7.4vw, 88px)/1 var(--serif); letter-spacing: -0.02em; }
.lede { font-size: 19px; line-height: 1.55; color: var(--text-2); max-width: 46ch; margin-top: 20px; }
.prose { max-width: 62ch; }
.prose p { margin-bottom: 1.1em; }
.prose .label { margin-top: 40px; }
.small, .note { font-size: 14px; color: var(--muted); }
.note { margin-top: 16px; }
.note a { color: var(--text); }

/* ── Sections ── */
.section { padding: var(--section) 0; }
.section--tight { padding-top: 0; }
.section--flush { padding-top: 8px; }
.section--paper { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 8px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); }

/* ── Home hero: split, the motto in display type, operational truth in tracked caps ── */
.hero { padding: clamp(40px, 6vw, 80px) 0 clamp(48px, 7vw, 96px); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: clamp(32px, 6vw, 88px); align-items: end; }
.hero__title { font-size: clamp(54px, 9.6vw, 120px); line-height: 0.92; letter-spacing: -0.03em; max-width: 7ch; }
.hero__motto { font: 500 clamp(22px, 2.6vw, 30px)/1.2 var(--serif); color: var(--accent-text); margin: 22px 0 0; letter-spacing: -0.01em; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 32px; }
.hero__photo { margin: 0; }
.hero__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 62%; border-radius: var(--radius); background: var(--washi); }
figcaption { font-size: 13px; color: var(--muted); margin-top: 10px; }

.ops { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 0; margin: 32px 0 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.ops div { padding: 14px 24px 14px 0; margin-right: 24px; border-right: 1px solid var(--line); }
.ops div:last-child { border-right: 0; margin-right: 0; }
.ops dt { font: 700 11px/1.3 var(--sans); letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.ops dd { margin: 0; font: 600 14px/1.35 var(--sans); letter-spacing: 0.06em; text-transform: uppercase; }

.status { font-weight: 600; margin: 0 0 16px; }
.status:empty { display: none; }
.ops .status { margin: 0; }
.status[data-state="open"]::before, .status[data-state="closed"]::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 8px; vertical-align: 1px; }
.status[data-state="open"] { color: var(--success); }
.status[data-state="open"]::before { background: var(--success); }
.status[data-state="closed"] { color: var(--text-2); }
.status[data-state="closed"]::before { background: transparent; border: 1.5px solid var(--text-2); }

/* ── Ink card: Brewing today, with the mascot (she winks once) ── */
.ink-card { background: var(--ink); color: var(--on-ink); border-radius: var(--radius); }
.brewing { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 24px; padding: clamp(28px, 5vw, 56px); overflow: hidden; }
.brewing__name { font: 500 clamp(36px, 5.6vw, 68px)/1 var(--serif); letter-spacing: -0.02em; margin-top: 4px; }
.brewing__meta { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 18px 0 0; font: 700 13px/1.3 var(--sans); letter-spacing: 0.12em; text-transform: uppercase; color: var(--on-ink-muted); }
.brewing__meta .price { color: var(--on-ink); font-variant-numeric: tabular-nums; }
.brewing__desc { color: var(--on-ink-muted); max-width: 48ch; margin-top: 16px; }
.brewing .btn { margin-top: 12px; }
.brewing__mascot { width: clamp(150px, 22vw, 260px); margin: 0 -8px -12px 0; }
.mascot { position: relative; }
.mascot img { width: 100%; }
.wink-eye { position: absolute; left: 28.205%; top: 22.07%; width: 10.256%; height: 9.961%; background: url(/img/wink-eye.webp) center / 100% 100% no-repeat; opacity: 0; pointer-events: none; }
.js-wink.is-winking .wink-eye { animation: wink 640ms var(--ease) 1 both; }
@keyframes wink { 0% { opacity: 0; } 18% { opacity: 1; } 62% { opacity: 1; } 78% { opacity: 0; } 100% { opacity: 0; } }

/* ── Hours ── */
.hours { width: 100%; max-width: 420px; font-variant-numeric: tabular-nums; }
.hours th, .hours td { padding: 11px 0; border-bottom: 1px solid var(--line); text-align: left; font-size: 16px; }
.hours th { font-weight: 400; color: var(--text-2); }
.hours td { text-align: right; }
.hours tr.is-today th, .hours tr.is-today td { font-weight: 700; color: var(--text); }
.hours tr.is-today th::after { content: "Today"; margin-left: 10px; font: 700 11px/1 var(--sans); letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent-text); vertical-align: 2px; }
.address-big { font: 500 clamp(26px, 3.2vw, 36px)/1.2 var(--serif); letter-spacing: -0.01em; margin-bottom: 20px; }
.inline-links { display: flex; flex-wrap: wrap; gap: 4px 24px; }
.inline-links a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }

/* ── News: the image is the card ── */
.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 24px; margin-top: 16px; }
.post-grid--all { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.post-grid--all .post-card:first-child { grid-column: span 2; grid-row: span 2; }
.post-grid--all .post-card:first-child .post-card__title { font-size: clamp(30px, 3.6vw, 44px); }
.post-card__link { display: block; text-decoration: none; height: 100%; }
.post-card__link:hover { color: var(--text); }
.post-card__link:hover .post-card__title { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; text-decoration-color: var(--accent); }
.post-card__media { overflow: hidden; border-radius: var(--radius); background: var(--washi); }
.post-card__media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; transition: transform var(--slow) var(--ease); }
.post-grid--all .post-card:first-child .post-card__media img { aspect-ratio: 4 / 4.2; }
.post-card__link:hover .post-card__media img { transform: scale(1.025); }
.post-card__body { padding-top: 16px; }
.post-card__date { font: 700 12px/1.3 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.pin { color: var(--magenta-text); }
.post-card__title { font: 500 24px/1.2 var(--serif); letter-spacing: -0.01em; }
.post-card__snippet { color: var(--text-2); font-size: 16px; margin: 10px 0 0; max-width: 52ch; }

/* ── Reviews ── */
.review-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(32px, 5vw, 72px); }
.review { margin: 0; padding: 28px 0; border-top: 1px solid var(--line); }
.review__stars { color: var(--accent-text); letter-spacing: 0.2em; font-size: 15px; margin-bottom: 12px; }
.review blockquote { margin: 0; }
.review blockquote p { font: 500 clamp(21px, 2.2vw, 26px)/1.4 var(--serif); letter-spacing: -0.005em; margin: 0; }
.review figcaption { font-size: 14px; color: var(--text-2); margin-top: 16px; font-weight: 600; }
.review figcaption span { font-weight: 400; color: var(--muted); }
.review-grid--all .review:first-child { grid-column: 1 / -1; }
.review-grid--all .review:first-child blockquote p { font-size: clamp(28px, 3.6vw, 44px); line-height: 1.2; }
.attribution { font-size: 14px; color: var(--muted); margin-top: 24px; }
.cta-line { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; margin-top: 56px; padding: 32px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.cta-line p { margin: 0; font: 500 26px/1.25 var(--serif); }

/* ── The app band: ink ground, the off-white stamp card on it ── */
.band { background: var(--ink); color: var(--on-ink); padding: var(--section) 0; }
.band__grid { display: grid; grid-template-columns: 1fr minmax(0, 460px); gap: clamp(40px, 7vw, 112px); align-items: center; }
.band__title { font: 500 clamp(40px, 5.6vw, 72px)/1 var(--serif); letter-spacing: -0.025em; max-width: 12ch; }
.band__text { color: var(--on-ink-muted); max-width: 46ch; margin: 24px 0 28px; }
.band__small { margin-top: 16px; font-size: 15px; }
.band__small a { color: var(--on-ink); text-decoration-color: var(--on-ink-muted); display: inline-flex; min-height: 44px; align-items: center; }
.band__small a:hover { color: var(--accent-on-ink); }

.hanko { background: var(--washi); color: var(--text); border: 1px solid var(--washi-border); border-radius: var(--radius); padding: clamp(20px, 3vw, 32px); width: 100%; }
.hanko__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 20px; }
.hanko__name { font: 500 18px/1.2 var(--serif); }
.hanko__count { font: 700 12px/1 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-2); font-variant-numeric: tabular-nums; }
.hanko__grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.hanko__slot { aspect-ratio: 1; border-radius: 50%; border: 1.5px dashed var(--washi-ring); display: grid; place-items: center; font: 600 13px/1 var(--sans); color: var(--muted); }
.hanko__slot--sealed { border: 0; }
.hanko__seal { width: 92%; aspect-ratio: 1; border-radius: 50%; background: var(--seal); color: var(--washi); display: grid; place-items: center; font: 500 clamp(18px, 2.4vw, 24px)/1 var(--serif); transform: translate(var(--nx), var(--ny)) rotate(var(--tilt)); }
.hanko__slot--reward { border-color: var(--accent); border-style: solid; color: var(--accent-text); font: 500 clamp(18px, 2.4vw, 24px)/1 var(--serif); }
.hanko__imprint { margin: 20px 0 0; font: 500 14px/1.5 var(--serif); color: var(--text-2); }

/* ── Inner page heads ── */
.page-head { padding: clamp(40px, 6vw, 88px) 0 clamp(32px, 4vw, 56px); }
.page-head__row { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; }
.page-head h1 { max-width: 14ch; }
.page-head--404 { padding-bottom: var(--section); }

/* ── Menu: an editorial ruled list, dish in the serif, price right ── */
.kanji-strip { position: sticky; top: 68px; z-index: 10; background: var(--bg); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 40px; }
.kanji-strip ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px 28px; overflow-x: auto; scrollbar-width: none; }
.kanji-strip a { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; white-space: nowrap; text-decoration: none; font: 700 13px/1 var(--sans); letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-2); }
.kanji-strip a:hover { color: var(--text); }
.kanji { font: 500 20px/1 var(--serif); color: var(--accent-text); letter-spacing: 0; }
.menu-brewing { margin-bottom: clamp(48px, 6vw, 80px); }
.menu-sections { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(48px, 6vw, 80px) clamp(40px, 6vw, 96px); align-items: start; }
.menu-section { scroll-margin-top: 140px; }
.menu-section__head { display: flex; align-items: center; gap: 16px; padding-bottom: 16px; border-bottom: 2px solid var(--text); }
.menu-section__title { font: 500 clamp(32px, 3.6vw, 44px)/1 var(--serif); letter-spacing: -0.02em; }
.menu-list { list-style: none; margin: 0; padding: 0; }
.menu-item { padding: 18px 0; border-bottom: 1px solid var(--line); }
.menu-item__line { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.menu-item__name { font: 500 21px/1.25 var(--serif); letter-spacing: -0.005em; }
.menu-item__price { font: 600 16px/1.2 var(--sans); font-variant-numeric: tabular-nums; white-space: nowrap; }
.menu-item__desc, .menu-item__var { font-size: 15px; color: var(--text-2); margin: 6px 0 0; max-width: 52ch; }
.menu-item__var { color: var(--muted); }
.menu-item__tags { margin: 8px 0 0; display: flex; gap: 8px; flex-wrap: wrap; }
.tag, .soldout { font: 700 11px/1 var(--sans); letter-spacing: 0.12em; text-transform: uppercase; padding: 6px 8px; border-radius: var(--radius); }
.tag--today { color: var(--accent-text); border: 1px solid var(--accent); }
.soldout { color: var(--text-2); border: 1px solid var(--text-2); }
.soldout--ink { color: var(--on-ink); border-color: var(--on-ink-muted); }
.menu-item--out .menu-item__name, .menu-item--out .menu-item__price { color: var(--text-2); text-decoration: line-through; text-decoration-color: var(--text-2); }
.menu-foot { margin: 56px 0 var(--section); color: var(--text-2); max-width: 60ch; }

/* ── Post ── */
.post { padding: clamp(32px, 5vw, 64px) 0 var(--section); }
.crumbs { margin-bottom: 28px; font-size: 15px; }
.crumbs a { display: inline-flex; min-height: 44px; align-items: center; }
.crumbs a::before { content: "←"; margin-right: 8px; }
.post h1 { font-size: clamp(40px, 6vw, 72px); margin-bottom: 32px; }
.post__media { margin: 0 0 40px; }
.post__media img { width: 100%; border-radius: var(--radius); background: var(--washi); }
.post__body { font-size: 18px; }
.post__back { margin-top: 40px; }

/* ── Visit ── */
.visit-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(40px, 6vw, 96px); padding-bottom: var(--section); }
.visit-where .label:not(:first-child) { margin-top: 56px; }
.map__frame { position: relative; aspect-ratio: 4 / 5; background: var(--ink); color: var(--on-ink); border-radius: var(--radius); overflow: hidden; }
.map__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map__facade { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; padding: clamp(28px, 4vw, 48px); background:
  repeating-linear-gradient(0deg, transparent 0 47px, var(--ink-border) 47px 48px),
  repeating-linear-gradient(90deg, transparent 0 47px, var(--ink-border) 47px 48px), var(--ink); }
.map__coords { font: 700 13px/1.3 var(--sans); letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent-on-ink); margin-bottom: 8px; }
.map__text { color: var(--on-ink-muted); max-width: 34ch; }
.map .btn { align-self: flex-start; }

/* ── About and app ── */
.about-grid, .app-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: clamp(40px, 7vw, 112px); padding-bottom: var(--section); align-items: start; }
.app-grid { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); }
.about-photo { margin: 0; position: sticky; top: 96px; }
.about-photo img { border-radius: var(--radius); }
.about-motto { font: 500 clamp(30px, 3.6vw, 44px)/1.1 var(--serif); color: var(--accent-text); margin-top: 40px; letter-spacing: -0.02em; }
.ticks, .steps { padding-left: 0; list-style: none; margin: 0 0 32px; }
.ticks li, .steps li { padding: 14px 0; border-bottom: 1px solid var(--line); }
.steps { counter-reset: step; }
.steps li { counter-increment: step; display: flex; gap: 16px; }
.steps li::before { content: counter(step); font: 500 22px/1.2 var(--serif); color: var(--accent-text); min-width: 20px; }

.empty { padding: 48px 0 var(--section); max-width: 48ch; }
.empty h2 { font: 500 34px/1.1 var(--serif); margin-bottom: 12px; }

/* ── Footer: the closing moment, inverted, the motto at display size ── */
.footer { background: var(--ink); color: var(--on-ink-muted); padding: clamp(56px, 8vw, 104px) 0 32px; }
.band + .footer { border-top: 1px solid var(--ink-border); }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; }
.footer__name { font: 700 12px/1.3 var(--sans); letter-spacing: 0.16em; text-transform: uppercase; color: var(--on-ink); margin-bottom: 18px; }
.footer__motto { font: 500 clamp(44px, 6.4vw, 84px)/0.95 var(--serif); letter-spacing: -0.03em; color: var(--on-ink); margin-bottom: 20px; }
.footer__line { max-width: 34ch; }
.footer a { color: var(--on-ink); text-decoration-color: var(--on-ink-muted); display: inline-flex; min-height: 32px; align-items: center; }
.footer a:hover { color: var(--accent-on-ink); text-decoration-color: var(--accent-on-ink); }
.footer p { margin-bottom: 6px; }
.footer address { color: var(--on-ink); margin-bottom: 8px; line-height: 1.5; }
.footer__legal { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; margin-top: 64px; padding-top: 20px; border-top: 1px solid var(--ink-border); font-size: 14px; }
.footer__legal p { margin: 0; }

/* ── Responsive ── */
@media (max-width: 1000px) {
  .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .post-grid > .post-card:nth-child(3) { display: none; }
  .post-grid--all > .post-card:nth-child(3) { display: block; }
  .post-grid--all { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .post-grid--all .post-card:first-child { grid-column: 1 / -1; grid-row: auto; }
  .post-grid--all .post-card:first-child .post-card__media img { aspect-ratio: 16 / 10; }
  .menu-sections { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  :root { --gutter: 20px; }
  .masthead__row { flex-direction: column; align-items: stretch; gap: 0; min-height: 0; padding-top: 6px; }
  .nav { margin: 0 calc(var(--gutter) * -1); border-top: 1px solid var(--line); }
  .nav ul { overflow-x: auto; scrollbar-width: none; padding: 0 calc(var(--gutter) - 12px); }
  .nav ul::-webkit-scrollbar, .kanji-strip ul::-webkit-scrollbar { display: none; }
  .nav a { white-space: nowrap; font-size: 15px; padding: 0 9px; }
  .nav a[aria-current="page"]::after { left: 9px; right: 9px; }
  .nav ul { justify-content: space-between; }
  .kanji-strip { top: 101px; }
  html { scroll-padding-top: 120px; }
  .hero__grid, .split, .band__grid, .visit-grid, .about-grid, .app-grid, .footer__grid { grid-template-columns: 1fr; }
  .hero__photo img { aspect-ratio: 4 / 3.4; }
  .about-photo { position: static; order: -1; }
  .about-photo img { aspect-ratio: 4 / 3.4; object-fit: cover; object-position: 50% 62%; }
  .seal--page { width: 64px; height: 64px; font-size: 30px; }
  .map__frame { aspect-ratio: 1 / 1; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .nav__long { display: none; }
  .nav__short { display: inline; }
  .hero { padding-top: 28px; }
  .hero__title { font-size: 52px; }
  .lede { font-size: 17px; margin-top: 14px; }
  .hero__motto { margin-top: 14px; }
  .ops { margin-top: 24px; }
  .hero__actions { margin-top: 24px; }
  .ops { grid-template-columns: 1fr; }
  .ops div { border-right: 0; margin-right: 0; padding: 12px 0; border-bottom: 1px solid var(--line); display: flex; gap: 16px; align-items: baseline; }
  .ops div:last-child { border-bottom: 0; }
  .ops dt { width: 56px; flex: none; margin: 0; }
  .brewing { grid-template-columns: 1fr; }
  .brewing__mascot { width: 170px; justify-self: end; margin: -8px -12px -28px 0; order: -1; position: absolute; right: 16px; top: 16px; opacity: 1; }
  .brewing { position: relative; padding-top: 196px; }
  .post-grid, .post-grid--all, .review-grid { grid-template-columns: 1fr; }
  .post-grid > .post-card:nth-child(3) { display: block; }
  .page-head__row { align-items: flex-start; }
  .page-head .seal--page { display: none; }
  .hanko__grid { gap: 8px; }
  .footer__legal { margin-top: 40px; }
  .cta-line p { font-size: 22px; }
}

/* Reduced motion: every transition and the wink go; the information stays. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
  .js-wink.is-winking .wink-eye { opacity: 0; }
}
