/* Koi Sushi · tokens from the Figma file */
:root {
  --cream: #f8f0e3;
  --card: #fcf7ee;
  --paper: #fff9ee;
  --line: #dac9b2;
  --ink: #34251d;
  --muted: #7a6655;
  --vermilion: #b94321;
  --vermilion-deep: #a23a1c;
  --sand: #f3dec1;
  --sand-deep: #ecd0aa;
  --tint: #eee2cf;
  --koi: #e87832;

  --serif: 'Cormorant Garamond', 'Cormorant', Garamond, 'Times New Roman', serif;
  --sans: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --jp: 'Noto Serif JP', 'Hiragino Mincho ProN', 'Yu Mincho', serif;

  --gutter: clamp(16px, 5.6vw, 80px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  position: relative;
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; }
button { font: inherit; color: inherit; }
h1, h2, h3, p { margin: 0; }
[hidden] { display: none !important; }

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

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 50;
  background: var(--ink); color: var(--cream); padding: 10px 16px; border-radius: 20px; text-decoration: none;
}
.skip:focus { top: 12px; }

:focus-visible { outline: 2px solid var(--vermilion); outline-offset: 3px; }

.eyebrow {
  font-size: 11px; font-weight: 500; letter-spacing: 2px; text-transform: uppercase; color: var(--muted);
}
.eyebrow--red { color: var(--vermilion); font-size: 10px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 50px; padding: 0 32px; border-radius: 999px;
  font-size: 15px; font-weight: 500; cursor: pointer; border: 1px solid transparent;
  transition: background-color .2s ease, transform .2s ease, border-color .2s ease;
  text-decoration: none; white-space: nowrap;
}
.btn:active { transform: scale(.98); }
.btn-outline { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn-outline:hover { background: rgba(52, 37, 29, .05); }
.btn-solid { background: var(--vermilion); color: var(--cream); }
.btn-solid:hover { background: var(--vermilion-deep); }
.btn-lg { height: 56px; }
.btn-block { width: 100%; }

/* Navigation */
.nav {
  position: relative;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  height: 112px;
}
.nav::after {
  content: ''; position: absolute; left: var(--gutter); right: var(--gutter); bottom: 0; height: 1px; background: var(--line);
}
.brand { display: flex; align-items: center; gap: 16px; text-decoration: none; color: var(--ink); flex: 1 1 0; }
.brand-mark { position: relative; width: 48px; height: 48px; flex: none; }
.brand-mark img { display: block; width: 48px; height: 48px; }
.brand-mark span {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-family: var(--jp); font-size: 27px; line-height: 1; color: var(--cream); padding-bottom: 2px;
}
.brand-text { display: flex; flex-direction: column; }
.brand-name { font-family: var(--serif); font-style: italic; font-size: 38px; line-height: 1; }
.brand-sub { margin-top: 6px; font-size: 9px; font-weight: 500; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); padding-left: 2px; }

.links { display: flex; gap: 24px; }
.links a, .links button {
  position: relative; display: inline-flex; align-items: center; height: 44px; padding: 0 9px;
  background: none; border: 0; font-size: 15px; font-weight: 500; color: var(--ink); text-decoration: none; cursor: pointer;
}
.links .is-current::after {
  content: ''; position: absolute; left: 12px; right: 12px; bottom: 3px; height: 1px; background: var(--vermilion);
}
.links a:hover, .links button:hover { color: var(--vermilion); }

.nav-actions { display: flex; align-items: center; justify-content: flex-end; gap: 26px; flex: 1 1 0; }
.nav-actions .btn { width: 160px; padding: 0; }
.cart {
  position: relative; width: 50px; height: 50px; display: grid; place-items: center;
  background: none; border: 0; cursor: pointer; border-radius: 50%;
}
.cart img { width: 28px; height: 28px; }
.cart:hover { background: rgba(52, 37, 29, .05); }
.cart-count {
  position: absolute; top: 4px; right: 2px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 10px;
  background: var(--vermilion); color: var(--cream); font-size: 11px; font-weight: 500; line-height: 19px; text-align: center;
}
.cart.is-bump { animation: bump .5s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes bump { 40% { transform: scale(1.18); } }

/* Hero */
.hero { position: relative; text-align: center; padding-top: 52px; padding-bottom: 82px; }
.hero-kanji { font-family: var(--jp); font-size: 24px; color: var(--vermilion); line-height: 1.2; }
.hero h1 {
  margin-top: 6px; font-family: var(--serif); font-weight: 400; font-size: clamp(64px, 7.2vw, 104px);
  line-height: 1.12; letter-spacing: -3px;
}
.hero-sub { margin-top: 6px; font-family: var(--serif); font-size: 24px; color: var(--muted); }
.hero-note { margin-top: 30px; font-size: 10px; font-weight: 500; letter-spacing: .3px; text-transform: uppercase; color: var(--muted); }

.hero-koi { position: absolute; z-index: 2; }
.hero-koi--left { left: 5.2%; top: 95px; width: 19.4%; max-width: 280px; }
.hero-koi--right { left: 76%; top: 10px; width: 20.1%; max-width: 290px; }

/* Filters */
.menu { scroll-margin-top: 12px; }
.filters {
  display: flex; justify-content: center; gap: 12px; flex-wrap: wrap;
  padding: 12px var(--gutter) 40px;
}
.chip {
  height: 48px; padding: 0 44px; border-radius: 24px;
  background: transparent; border: 1px solid var(--line); font-size: 15px; font-weight: 500; color: var(--ink);
  cursor: pointer; transition: background-color .25s ease, color .25s ease, border-color .25s ease;
}
.chip:hover { border-color: var(--muted); }
.chip.is-active { background: var(--vermilion); border-color: var(--vermilion); color: var(--cream); }

/* Menu */
.lane { width: min(1168px, calc(100% - 2 * var(--gutter))); margin: 0 auto; }
.menu-meta { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding-bottom: 28px; }
.menu-count { font-size: 12px; color: var(--muted); }

.dishes { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.dish {
  position: relative;
  display: grid; grid-template-columns: 340px 1fr auto;
  min-height: 192px;
  background: var(--card); border: 1px solid var(--line); border-radius: 22px; overflow: hidden;
  transition: transform .5s cubic-bezier(.2, .8, .2, 1), box-shadow .5s ease, border-color .5s ease;
}
.dish-photo { position: relative; overflow: hidden; background: var(--tint); }
.dish-photo img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.2s cubic-bezier(.2, .8, .2, 1);
}
.dish:hover .dish-photo img { transform: scale(1.03); }
.dish-body { padding: 24px 24px 24px 36px; }
.dish-kind { font-size: 10px; font-weight: 500; letter-spacing: 1.5px; color: var(--vermilion); }
.dish-kind span { margin: 0 9px; }
.dish-name { margin-top: 10px; font-family: var(--serif); font-weight: 400; font-size: 36px; line-height: 1.1; }
.dish-desc { margin-top: 12px; font-size: 15px; line-height: 1.45; color: var(--muted); max-width: 490px; }
.dish-side {
  display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between;
  padding: 30px 32px 32px 24px;
}
.dish-price { font-family: var(--serif); font-size: 27px; white-space: nowrap; width: 176px; }
.add {
  display: inline-flex; align-items: center; justify-content: center; gap: 14px;
  width: 118px; height: 48px; border: 0; border-radius: 24px; background: var(--sand);
  font-size: 15px; font-weight: 500; cursor: pointer; transition: background-color .25s ease, transform .2s ease;
}
.add:hover { background: var(--sand-deep); }
.add:active { transform: scale(.96); }

/* When a koi chooses a dish */
.dish.is-picked {
  transform: translateY(-4px);
  border-color: rgba(232, 120, 50, .55);
  box-shadow: 0 18px 36px -24px rgba(185, 67, 33, .55);
}
.dish.is-picked .add { background: var(--sand-deep); animation: nudge 1s ease 2; }
@keyframes nudge { 50% { transform: scale(1.06); } }
.lm-tag {
  position: absolute; left: 14px; top: 14px; z-index: 2;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 13px 7px 11px; border-radius: 999px;
  background: rgba(255, 249, 238, .94); color: var(--vermilion);
  font-size: 11px; font-weight: 500; letter-spacing: .4px;
  box-shadow: 0 6px 16px -10px rgba(52, 37, 29, .5);
  animation: tag-in .5s cubic-bezier(.3, 1.4, .5, 1) both;
}
.lm-tag::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--koi); }
.lm-tag.is-leaving { animation: tag-out .45s ease forwards; }
@keyframes tag-in { from { opacity: 0; transform: translateY(6px) scale(.9); } }
@keyframes tag-out { to { opacity: 0; transform: translateY(-4px); } }

.empty { padding: 52px 0 64px; }
.empty-title { font-family: var(--serif); font-weight: 400; font-size: clamp(34px, 3.4vw, 46px); line-height: 1.15; }
.empty-copy { margin-top: 22px; font-size: 16px; line-height: 1.5; color: var(--muted); }
.empty .btn { margin-top: 54px; height: 52px; padding: 0 42px; }

.menu-foot {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 30px 26px 40px 0; font-size: 12px; color: var(--muted);
}
.menu-foot p:last-child { font-size: 11px; }

/* Omakase invitation */
.invite { padding-top: 4px; padding-bottom: 36px; }
.invite-card {
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
  min-height: 232px; padding: 34px 52px 34px 48px; border-radius: 24px; background: var(--tint);
}
.invite-card h2 { margin-top: 18px; font-family: var(--serif); font-weight: 400; font-size: 46px; line-height: 1.1; }
.invite-copy { margin-top: 12px; font-size: 16px; color: var(--muted); }
.invite-card .btn { width: 268px; flex: none; }

/* Footer */
.foot {
  position: relative;
  display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; column-gap: 40px; row-gap: 10px;
  padding-top: 30px; padding-bottom: 34px; font-size: 12px; color: var(--muted);
}
.foot::before { content: ''; position: absolute; left: var(--gutter); right: var(--gutter); top: 0; height: 1px; background: var(--line); }
.foot-name { font-family: var(--serif); font-style: italic; font-size: 26px; color: var(--ink); }
.credits { grid-column: 1 / -1; font-size: 11px; opacity: .8; }
.still-toggle {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px;
  background: none; border: 1px solid var(--line); font-size: 11px; color: var(--muted); cursor: pointer;
}
.still-toggle:hover { border-color: var(--muted); }
.still-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--koi); }
.still-toggle[aria-pressed="true"] .still-dot { background: var(--line); }

/* Overlays */
.sheet {
  width: min(600px, calc(100% - 24px)); max-height: calc(100dvh - 24px);
  padding: 40px; border: 0; border-radius: 28px;
  background: var(--cream); color: var(--ink);
  box-shadow: 0 30px 80px -30px rgba(52, 37, 29, .45);
}
.sheet::backdrop { background: rgba(52, 37, 29, .32); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
.sheet[open] { animation: sheet-in .45s cubic-bezier(.2, .9, .3, 1); }
.sheet[open]::backdrop { animation: fade .3s ease; }
@keyframes sheet-in { from { opacity: 0; transform: translateY(18px) scale(.985); } }
@keyframes fade { from { opacity: 0; } }
.sheet h2 { margin-top: 26px; font-family: var(--serif); font-weight: 400; font-size: 48px; line-height: 1.08; }
.sheet .lede { margin-top: 18px; font-size: 16px; color: var(--muted); }
.sheet .eyebrow--red { letter-spacing: .3px; }
.close {
  position: absolute; top: 28px; right: 36px; width: 46px; height: 46px; border-radius: 50%;
  background: none; border: 1px solid var(--line); font-size: 16px; cursor: pointer;
}
.close:hover { border-color: var(--muted); }
.body-copy { margin-top: 22px; font-size: 16px; line-height: 1.6; color: var(--muted); }
.body-copy + .body-copy { margin-top: 18px; }
#omakase .btn-solid, #story .btn-solid { margin-top: 64px; }
#omakase .btn-outline { margin-top: 18px; }
.fine { margin-top: 24px; font-size: 11px; color: var(--muted); }
.fine-lg { margin-top: 36px; font-size: 15px; line-height: 1.5; color: var(--muted); }
.sheet .fine-lg + .btn { margin-top: 56px; }

.basket-items { list-style: none; padding: 0; margin: 34px 0 0; display: grid; gap: 10px; }
.basket-item {
  display: grid; grid-template-columns: 80px 1fr auto; gap: 16px; align-items: center;
  padding: 8px 18px 8px 8px; border: 1px solid var(--line); border-radius: 16px; background: var(--card);
}
.basket-item img { width: 80px; height: 76px; object-fit: cover; border-radius: 12px; display: block; }
.bi-name { font-family: var(--serif); font-size: 24px; }
.bi-price { margin-top: 8px; font-size: 13px; color: var(--muted); }
.bi-side { text-align: left; min-width: 96px; }
.bi-remove { padding: 0; background: none; border: 0; font-size: 12px; color: var(--vermilion); cursor: pointer; }
.bi-remove:hover { text-decoration: underline; }
.bi-qty { margin-top: 14px; font-size: 15px; }
.basket-empty { margin-top: 34px; padding: 24px; border: 1px dashed var(--line); border-radius: 16px; font-size: 15px; color: var(--muted); text-align: center; }
.basket-summary { margin-top: 70px; border-top: 1px solid var(--line); padding-top: 18px; }
.subtotal { display: flex; justify-content: space-between; align-items: center; font-size: 16px; padding-right: 120px; }
.subtotal-amount small { font-size: 16px; margin-right: 12px; }
.subtotal-amount b { font-family: var(--serif); font-weight: 400; font-size: 30px; }
.basket-summary .btn { margin-top: 30px; height: 52px; }
#basket > .btn-outline { margin-top: 48px; border-color: var(--line); }

.review-items { list-style: none; padding: 0; margin: 38px 0 0; display: grid; gap: 14px; }
.review-items li, .review-total { display: flex; justify-content: space-between; align-items: baseline; padding-right: 100px; font-size: 18px; }
.review-items b, .review-total b { font-family: var(--serif); font-weight: 400; font-size: 30px; }
.review-total { margin-top: 18px; font-size: 16px; }

.label { margin-top: 44px; font-size: 10px; font-weight: 500; letter-spacing: .3px; text-transform: uppercase; color: var(--muted); }
.booking-date, .reserved-date { margin-top: 20px; font-family: var(--serif); font-size: 24px; }
.choice { border: 0; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.choice legend { margin-bottom: 18px; padding: 0; }
.choice label { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.choice span {
  display: grid; place-items: center; height: 50px; border-radius: 25px; border: 1px solid var(--line);
  background: var(--card); font-size: 16px; transition: background-color .2s ease, color .2s ease;
}
.choice input:checked + span { background: var(--vermilion); border-color: var(--vermilion); color: var(--cream); }
.choice input:focus-visible + span { outline: 2px solid var(--vermilion); outline-offset: 3px; }
.booking-summary { display: flex; gap: 62px; margin: 18px 0 22px; font-size: 13px; color: var(--muted); }
.reserved-date { margin-top: 30px; font-size: 22px; }
.reserved-detail { display: flex; gap: 188px; margin-top: 22px; font-family: var(--serif); font-size: 24px; }
#reserved .fine-lg { margin-top: 38px; }
#reserved .btn { margin-top: 86px; }

/* ---------- Tablet ---------- */
@media (max-width: 1100px) {
  .links { gap: 6px; }
  .nav-actions { gap: 10px; }
  .nav-actions .btn { width: auto; padding: 0 22px; }
  .dish { grid-template-columns: 280px 1fr auto; }
  .dish-price { width: auto; }
  .foot { grid-template-columns: auto 1fr; }
}

/* ---------- Mobile ---------- */
@media (max-width: 720px) {
  .nav { height: auto; flex-wrap: wrap; row-gap: 6px; padding-top: 18px; padding-bottom: 8px; }
  .brand { gap: 10px; flex: 1 0 auto; }
  .brand-name { white-space: nowrap; }
  .brand-mark, .brand-mark img { width: 38px; height: 38px; }
  .brand-mark span { font-size: 21px; }
  .brand-name { font-size: 29px; }
  .brand-sub { font-size: 8px; margin-top: 4px; }
  .nav-actions { gap: 4px; flex: none; }
  .nav-actions .btn { height: 42px; padding: 0 16px; font-size: 14px; }
  .links { order: 3; width: 100%; justify-content: space-between; gap: 0; margin: 0 -9px; width: calc(100% + 18px); }
  .links a, .links button { font-size: 14px; }

  .hero { padding-top: 92px; padding-bottom: 48px; }
  .hero h1 { letter-spacing: -2px; }
  .hero-sub { font-size: 20px; }
  .hero-koi--left { left: -2%; top: 18px; width: 128px; }
  .hero-koi--right { left: auto; right: -1%; top: 6px; width: 120px; }

  .filters { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; gap: 8px; padding-bottom: 28px; scrollbar-width: none; }
  .filters::-webkit-scrollbar { display: none; }
  .chip { flex: none; height: 42px; padding: 0 24px; font-size: 14px; }

  .menu-meta { padding-bottom: 18px; }
  .menu-meta .eyebrow { font-size: 10px; }
  .menu-count { font-size: 11px; text-align: right; }

  .dish { grid-template-columns: 1fr auto; grid-template-rows: auto auto; min-height: 0; border-radius: 20px; }
  .dish-photo { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
  .dish-body { padding: 20px 8px 22px 20px; }
  .dish-name { font-size: 30px; margin-top: 8px; }
  .dish-desc { font-size: 14px; margin-top: 8px; }
  .dish-side { padding: 20px 20px 22px 8px; gap: 16px; }
  .dish-price { font-size: 23px; }
  .add { width: 96px; height: 44px; gap: 10px; }

  .menu-foot { flex-direction: column; gap: 6px; padding-right: 0; }

  .invite-card { flex-direction: column; align-items: flex-start; padding: 32px 24px; min-height: 0; gap: 26px; }
  .invite-card h2 { font-size: 38px; }
  .invite-card .btn { width: 100%; }

  .foot { grid-template-columns: 1fr; row-gap: 12px; }

  .sheet { padding: 28px 22px calc(28px + env(safe-area-inset-bottom)); border-radius: 24px; }
  .sheet h2 { font-size: 38px; margin-top: 20px; }
  .close { top: 18px; right: 18px; }
  .basket-item { grid-template-columns: 64px 1fr auto; gap: 12px; padding-right: 12px; }
  .basket-item img { width: 64px; height: 60px; }
  .bi-name { font-size: 20px; }
  .bi-side { min-width: 72px; }
  .basket-summary { margin-top: 40px; }
  .subtotal, .review-items li, .review-total { padding-right: 0; }
  #basket > .btn-outline { margin-top: 20px; }
  .label { margin-top: 30px; }
  .reserved-detail { gap: 60px; }
  #reserved .btn, .sheet .fine-lg + .btn, #omakase .btn-solid, #story .btn-solid { margin-top: 40px; }
}
