:root {
  --ivory: #f5efe3;
  --ivory-2: #ece3d2;
  --linen: #e0d3bc;
  --charcoal: #231f1c;
  --muted: #7a6e63;
  --wine: #5a1625;
  --wine-2: #73202f;
  --butter: #ebcb7a;
  --line: rgba(35, 31, 28, 0.16);
  --serif: "Gloock", Georgia, serif;
  --sans: "Work Sans", system-ui, sans-serif;
  --hand: "Caveat", cursive;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --pad: 40px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }
body { font-family: var(--sans); background: var(--ivory); color: var(--charcoal); line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: clip; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: var(--wine); color: var(--ivory); }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: .98; letter-spacing: -0.015em; }
h2 { font-size: clamp(46px, 6vw, 88px); }
em { font-style: italic; color: var(--wine); }
.kicker { font-size: 12px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-bottom: 20px; }
.hand { font-family: var(--hand); font-weight: 700; color: var(--wine); font-size: 26px; line-height: 1.1; }
.hand.big { font-size: 32px; margin-top: 30px; transform: rotate(-2deg); display: inline-block; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 52px; padding: 0 26px; border-radius: 999px; font-weight: 600; font-size: 15px; transition: background .25s, color .25s, border-color .25s, opacity .25s; white-space: nowrap; }
.btn .arr { transition: transform .3s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }
.btn-wine { background: var(--wine); color: var(--ivory); }
.btn-wine:hover { background: var(--wine-2); }
.btn-wine:disabled { opacity: .45; cursor: not-allowed; }
.btn-line { border: 1.5px solid var(--charcoal); }
.btn-line:hover { background: var(--charcoal); color: var(--ivory); }
.btn-sm { height: 40px; padding: 0 18px; font-size: 14px; }
.btn.wide { width: 100%; }

/* ---------- Nav ---------- */
.nav { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 70px; padding: 0 var(--pad); background: rgba(245,239,227,.9); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid transparent; transition: border-color .3s; }
.nav.scrolled { border-color: var(--line); }
.logo { font-family: var(--serif); font-size: 26px; }
.nav-links { display: flex; gap: 34px; font-size: 15px; font-weight: 500; }
.nav-links a { position: relative; }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1.5px; background: var(--wine); transform: scaleX(0); transition: transform .4s var(--ease); }
.nav-links a:hover::after { transform: scaleX(1); }

/* ---------- Hero ---------- */
.hero { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; padding: 50px var(--pad) 90px; min-height: calc(100vh - 70px); min-height: calc(100svh - 70px); }
.hero h1 { font-size: clamp(64px, 8.6vw, 148px); }
.lede { margin-top: 28px; font-size: clamp(16px, 1.4vw, 19px); color: var(--muted); max-width: 480px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 34px; }
.hours { display: inline-flex; align-items: center; gap: 10px; margin-top: 26px; font-size: 14px; font-weight: 500; }
.open-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--butter); box-shadow: 0 0 0 4px rgba(235,203,122,.3); }
.open-dot.closed { background: var(--muted); box-shadow: none; }
.hero-plate { position: relative; display: grid; place-items: center; }
.plate { width: min(560px, 100%); height: auto; animation: turn 80s linear infinite; filter: drop-shadow(0 30px 40px rgba(35,31,28,.18)); }
@keyframes turn { to { transform: rotate(360deg); } }
.chalk { position: absolute; top: 4%; left: 0; z-index: 2; background: var(--charcoal); color: var(--ivory); font-family: var(--hand); font-size: 22px; line-height: 1.15; padding: 16px 20px; border-radius: 6px; transform: rotate(-6deg); box-shadow: 6px 8px 0 rgba(35,31,28,.12); }
.chalk b { color: var(--butter); font-size: 30px; }
.steam { position: absolute; top: 14%; width: 10px; height: 60px; border-radius: 10px; border-left: 3px solid rgba(35,31,28,.18); animation: steam 3.6s ease-in-out infinite; opacity: 0; }
.s1 { left: 44%; } .s2 { left: 50%; animation-delay: 1.2s; } .s3 { left: 56%; animation-delay: 2.4s; }
@keyframes steam { 0% { opacity: 0; transform: translateY(20px) scaleY(.6); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(-40px) scaleY(1.1) skewX(10deg); } }

/* ---------- Ribbon ---------- */
.ribbon { background: var(--wine); color: var(--ivory); overflow: hidden; padding: 14px 0; }
.ribbon-track { display: flex; align-items: center; gap: 28px; width: max-content; animation: marquee 34s linear infinite; font-family: var(--serif); font-size: clamp(22px, 2.4vw, 32px); }
.ribbon i { font-style: normal; color: var(--butter); font-size: .7em; }
@keyframes marquee { to { transform: translateX(calc(-50% - 14px)); } }

/* ---------- Sections ---------- */
.section { padding: 120px var(--pad); }

/* ---------- Menu ---------- */
.menu-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 36px; }
.note { font-family: var(--hand); font-size: 24px; color: var(--wine); margin-top: 10px; }
.diet { display: flex; gap: 8px; flex-wrap: wrap; }
.diet button { padding: 10px 16px; border-radius: 999px; border: 1.5px solid var(--line); font-size: 14px; font-weight: 500; transition: background .2s, color .2s, border-color .2s; }
.diet button:hover { border-color: var(--charcoal); }
.diet button[aria-pressed="true"] { background: var(--charcoal); color: var(--ivory); border-color: var(--charcoal); }
.menu-tabs { display: flex; gap: 4px; border-bottom: 1.5px solid var(--charcoal); overflow-x: auto; scrollbar-width: none; }
.menu-tabs button { padding: 14px 22px; font-family: var(--serif); font-size: 24px; color: var(--muted); position: relative; white-space: nowrap; transition: color .2s; }
.menu-tabs button[aria-selected="true"] { color: var(--charcoal); }
.menu-tabs button[aria-selected="true"]::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: -1.5px; height: 4px; background: var(--wine); border-radius: 4px 4px 0 0; }
.menu-card { background: var(--ivory-2); border-radius: 0 0 24px 24px; padding: 34px 40px 28px; }
.dishes { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 56px; }
.dish { padding: 16px 0; border-bottom: 1px dashed var(--line); transition: opacity .3s; animation: in .45s var(--ease) both; }
@keyframes in { from { opacity: 0; transform: translateY(8px); } }
.dish.dim { opacity: .25; }
.dish-top { display: flex; align-items: baseline; gap: 10px; }
.dish-top b { font-family: var(--serif); font-weight: 400; font-size: 22px; }
.dish-top .tags { display: inline-flex; gap: 4px; }
.dish-top .tags span { font-size: 10px; font-weight: 600; letter-spacing: .06em; padding: 2px 6px; border-radius: 4px; background: var(--butter); color: var(--charcoal); }
.dish-top .dots { flex: 1; border-bottom: 1.5px dotted rgba(35,31,28,.35); transform: translateY(-5px); min-width: 20px; }
.dish-top .price { font-weight: 600; font-variant-numeric: tabular-nums; }
.dish p { color: var(--muted); font-size: 14px; margin-top: 4px; max-width: 90%; }
.menu-foot { margin-top: 24px; font-size: 13px; color: var(--muted); }

/* ---------- Pasta shapes ---------- */
.pasta-sec { background: var(--charcoal); color: var(--ivory); }
.pasta-sec .kicker { color: #a89c90; }
.pasta-sec em { color: var(--butter); }
.pasta-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 72px; align-items: center; }
.pasta-copy > p:not(.kicker) { color: #b9ada0; margin-top: 22px; max-width: 440px; font-size: 17px; }
.shapes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 34px; max-width: 480px; }
.shapes button { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px 8px 12px; border-radius: 16px; border: 1.5px solid #3a342f; font-size: 14px; font-weight: 500; color: #b9ada0; transition: border-color .25s, background .25s, color .25s; }
.shapes button svg { width: 54px; height: 54px; }
.shapes button:hover { border-color: #6b6158; }
.shapes button[aria-selected="true"] { background: var(--ivory); color: var(--charcoal); border-color: var(--ivory); }
.shape-card { background: var(--ivory); color: var(--charcoal); border-radius: 28px; padding: 34px; display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: center; }
.shape-art { width: 100%; height: auto; background: var(--ivory-2); border-radius: 50%; }
.shape-art .spin { transform-origin: 150px 150px; animation: wob 6s ease-in-out infinite; }
@keyframes wob { 50% { transform: rotate(8deg) scale(1.04); } }
.shape-info h3 { font-size: clamp(36px, 3.4vw, 52px); margin: 4px 0 12px; }
.shape-info p { color: var(--muted); font-size: 15px; }
.pair { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }
.pair span { display: block; font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.pair b { font-family: var(--serif); font-weight: 400; font-size: 22px; color: var(--wine); }
.shape-card.swap .shape-info, .shape-card.swap .shape-art { animation: in .45s var(--ease) both; }

/* ---------- Booking ---------- */
.book-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 72px; align-items: start; }
.book-copy > p:not(.kicker):not(.hand) { color: var(--muted); margin-top: 22px; max-width: 420px; font-size: 17px; }
.booker { background: var(--ivory-2); border-radius: 28px; padding: 32px; display: grid; gap: 26px; }
.b-label { display: block; font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.b-label small { letter-spacing: 0; text-transform: none; font-weight: 500; margin-left: 6px; color: var(--wine); }
.b-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.b-row .b-label { margin: 0; }
.stepper { display: flex; align-items: center; gap: 14px; }
.stepper button { width: 38px; height: 38px; border-radius: 50%; border: 1.5px solid var(--charcoal); font-size: 18px; transition: background .2s, color .2s; }
.stepper button:hover { background: var(--charcoal); color: var(--ivory); }
.stepper output { font-family: var(--serif); font-size: 22px; min-width: 92px; text-align: center; }
.dates { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; }
.dates button { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 4px; border-radius: 14px; background: var(--ivory); border: 1.5px solid transparent; font-size: 12px; font-weight: 500; color: var(--muted); transition: border-color .2s, background .2s, color .2s; }
.dates button b { font-family: var(--serif); font-weight: 400; font-size: 24px; color: var(--charcoal); line-height: 1.1; }
.dates button:hover:not(:disabled) { border-color: var(--charcoal); }
.dates button[aria-checked="true"] { background: var(--wine); color: var(--ivory); }
.dates button[aria-checked="true"] b { color: var(--ivory); }
.dates button:disabled { opacity: .35; cursor: not-allowed; }
.slots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.slots button { padding: 12px 6px; border-radius: 12px; background: var(--ivory); border: 1.5px solid transparent; font-weight: 600; font-size: 14px; font-variant-numeric: tabular-nums; transition: border-color .2s, background .2s, color .2s; }
.slots button:hover:not(:disabled) { border-color: var(--charcoal); }
.slots button[aria-checked="true"] { background: var(--charcoal); color: var(--ivory); }
.slots button:disabled { text-decoration: line-through; color: var(--muted); opacity: .5; cursor: not-allowed; }
.ticket { background: var(--ivory); border: 1.5px dashed var(--wine); border-radius: 18px; padding: 20px 22px; animation: in .5s var(--ease); }
.ticket p { font-family: var(--serif); font-size: 22px; line-height: 1.3; margin: 6px 0 8px; }
.ticket small { color: var(--muted); font-size: 12px; }

/* ---------- Press ---------- */
.press { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; padding: 80px var(--pad); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--ivory-2); }
.press blockquote { font-family: var(--serif); font-size: clamp(22px, 2vw, 28px); line-height: 1.25; }
.press figcaption { margin-top: 14px; font-family: var(--hand); font-size: 24px; color: var(--wine); }

/* ---------- Visit ---------- */
.visit-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 64px; align-items: center; }
address { font-style: normal; font-family: var(--serif); font-size: 28px; line-height: 1.25; margin: 22px 0 28px; }
.hrs { border-collapse: collapse; width: 100%; max-width: 440px; font-size: 15px; }
.hrs td { padding: 12px 0; border-top: 1px solid var(--line); }
.hrs td:last-child { text-align: right; color: var(--muted); }
.hrs tr.today td { font-weight: 600; color: var(--wine); }
.hrs tr.today td:last-child { color: var(--wine); }
.map { border-radius: 28px; overflow: hidden; }
.map svg { width: 100%; height: auto; display: block; }

/* ---------- Footer ---------- */
.footer { background: var(--wine); color: var(--ivory); padding: 80px var(--pad) 26px; overflow: hidden; }
.footer em { color: var(--butter); }
.foot-mark { font-family: var(--serif); font-size: clamp(64px, 13vw, 220px); line-height: .9; }
.foot-row { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(245,239,227,.25); font-size: 14px; opacity: .85; }
.foot-row a { color: var(--butter); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; translate: 0 22px; transition: opacity 1s var(--ease), translate 1s var(--ease); transition-delay: var(--d, 0s); }
.reveal.in-view { opacity: 1; translate: 0 0; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  :root { --pad: 18px; }
  .nav-links { display: none; }
  .hero { grid-template-columns: 1fr; padding: 36px var(--pad) 70px; min-height: 0; }
  .hero-plate { max-width: 420px; margin: 0 auto; width: 100%; }
  .chalk { font-size: 18px; padding: 12px 14px; }
  .chalk b { font-size: 24px; }
  .section { padding: 90px var(--pad); }
  .menu-card { padding: 22px 18px; }
  .dishes { grid-template-columns: 1fr; }
  .menu-tabs button { font-size: 19px; padding: 12px 14px; }
  .pasta-grid, .book-grid, .visit-grid { grid-template-columns: 1fr; gap: 48px; }
  .shape-card { grid-template-columns: 1fr; padding: 24px; }
  .shape-art { max-width: 240px; margin: 0 auto; }
  .booker { padding: 22px; }
  .dates { gap: 5px; }
  .dates button { padding: 8px 2px; font-size: 11px; }
  .dates button b { font-size: 19px; }
  .slots { grid-template-columns: repeat(3, 1fr); }
  .press { grid-template-columns: 1fr; gap: 32px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; translate: none; }
}
