:root {
  --cream: #fbf5e8;
  --ink: #2b2520;
  --muted: #5c5148;
  --blue: #1f4e79;
  --yellow: #f2c53d;
  --red: #b8322a;
  --red-dark: #962820;
  --board: #22332b;
  --chalk: #f3efe3;
  --wood: #8a5a33;
  --r: 14px;
  --s1: .5rem; --s2: 1rem; --s3: 1.5rem; --s4: 2.5rem; --s5: 4rem;
  --serif: "Bitter", Georgia, serif;
  --sans: "Cabin", system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--cream); color: var(--ink);
  font: 400 1.05rem/1.65 var(--sans); overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--blue); }
h1, h2, h3 { font-family: var(--serif); line-height: 1.15; margin: 0 0 var(--s2); overflow-wrap: normal; word-break: keep-all; hyphens: none; }
h2 { font-size: clamp(1.7rem, 6vw, 2.6rem); font-weight: 800; color: var(--blue); }
h3 { font-size: 1.3rem; font-weight: 600; }
p { margin: 0 0 var(--s2); }
.wrap { width: min(1120px, 100% - 2.5rem); margin-inline: auto; }
.kicker { font: 600 .82rem/1.3 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--red-dark); margin-bottom: var(--s1); }
.kicker.light { color: var(--yellow); }
section { padding-block: var(--s5); }

/* awning valance — the terrace's blue/yellow tenda */
.valance {
  height: 30px; width: 100%;
  background: repeating-linear-gradient(90deg, var(--blue) 0 24px, var(--yellow) 24px 48px);
  -webkit-mask: linear-gradient(#000,#000) top / 100% 18px no-repeat, radial-gradient(circle 12px at 12px 0, #000 96%, transparent 100%) 0 18px / 24px 12px repeat-x;
          mask: linear-gradient(#000,#000) top / 100% 18px no-repeat, radial-gradient(circle 12px at 12px 0, #000 96%, transparent 100%) 0 18px / 24px 12px repeat-x;
}
.valance.small { height: 22px;
  -webkit-mask: linear-gradient(#000,#000) top / 100% 12px no-repeat, radial-gradient(circle 10px at 12px 0, #000 96%, transparent 100%) 0 12px / 24px 10px repeat-x;
          mask: linear-gradient(#000,#000) top / 100% 12px no-repeat, radial-gradient(circle 10px at 12px 0, #000 96%, transparent 100%) 0 12px / 24px 10px repeat-x;
}

/* progress */
.progress { position: fixed; inset: 0 0 auto 0; height: 4px; z-index: 60; pointer-events: none; }
.progress span { display: block; height: 100%; background: var(--red); transform-origin: 0 50%; transform: scaleX(0); }

/* header */
.top { position: sticky; top: 0; z-index: 40; background: var(--cream); }
.nav { display: flex; align-items: center; gap: var(--s2); min-height: 56px; }
.brand { font: 800 1.25rem var(--serif); color: var(--blue); text-decoration: none; margin: 0; }
.nav ul { display: none; list-style: none; margin: 0 0 0 auto; padding: 0; gap: var(--s3); }
.nav ul a { color: var(--ink); text-decoration: none; font-weight: 600; padding: .6rem 0; display: inline-block; }
.nav ul a:hover { color: var(--red); }
.lang { margin-left: auto; min-width: 44px; min-height: 44px; border: 2px solid var(--blue); background: transparent; color: var(--blue); border-radius: var(--r); font: 600 .9rem var(--sans); cursor: pointer; }

/* buttons */
.btn {
  position: relative; overflow: hidden; display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: .7rem 1.3rem; border-radius: var(--r); border: 2px solid transparent;
  font: 600 1rem var(--sans); text-decoration: none; cursor: pointer; transition: transform .2s, background .2s;
}
.btn-main { background: var(--red); color: #fff; }
.btn-main:hover { background: var(--red-dark); }
.btn-ghost { border-color: var(--blue); color: var(--blue); background: transparent; }
.btn-ghost.light { border-color: var(--chalk); color: var(--chalk); }
.btn span { position: relative; z-index: 1; }
.ripple { position: absolute; border-radius: 50%; background: rgba(255,255,255,.45); width: 20px; height: 20px; margin: -10px 0 0 -10px; transform: scale(0); animation: ripple .6s ease-out forwards; pointer-events: none; }
.btn-ghost .ripple { background: rgba(31,78,121,.25); }
@keyframes ripple { to { transform: scale(18); opacity: 0; } }

/* hero */
.hero { display: grid; gap: var(--s4); padding-top: var(--s3); }
.hero-text { min-width: 0; }
h1 { font-size: clamp(2.8rem, 14vw, 5.6rem); font-weight: 800; color: var(--ink); margin-bottom: var(--s2); }
h1 .rise { display: inline-block; animation: rise 1.1s cubic-bezier(.2,.7,.2,1) both; }
@keyframes rise { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: none; } }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 34ch; }
.cta-row { display: flex; flex-wrap: wrap; gap: var(--s1); margin: var(--s3) 0 var(--s2); }
.hours-chip { display: inline-flex; align-items: center; gap: .5rem; background: #fff; border-radius: var(--r); padding: .4rem .9rem; font-weight: 600; box-shadow: 0 2px 0 rgba(43,37,32,.08); }
.dot { width: 10px; height: 10px; border-radius: 50%; background: #3c8d4a; }
.hero-media { position: relative; min-width: 0; padding-bottom: 2.5rem; }
.hero-photo { margin: 0; border-radius: var(--r); overflow: hidden; animation: unveil 1.3s cubic-bezier(.7,0,.2,1) both; }
.hero-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
@keyframes unveil { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }
.hero-inset { position: absolute; left: -.4rem; bottom: 0; width: 42%; margin: 0; border: 5px solid #fff; border-radius: var(--r); overflow: hidden; box-shadow: 0 12px 28px rgba(43,37,32,.25);
  animation: drop .9s 1s cubic-bezier(.2,.8,.3,1.2) both, float 6s 1.9s ease-in-out infinite; }
.hero-inset img { aspect-ratio: 1; object-fit: cover; width: 100%; }
@keyframes drop { from { opacity: 0; transform: translateY(-50px) rotate(-6deg); } to { opacity: 1; transform: rotate(-3deg); } }
@keyframes float { 0%,100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-12px) rotate(-3deg); } }
.stamp { position: absolute; right: -.3rem; top: -1.6rem; width: 112px; height: 112px; display: block; }
.stamp svg { width: 100%; height: 100%; overflow: visible; }
.stamp-bg { fill: var(--yellow); }
.stamp text { font: 700 15.5px var(--sans); letter-spacing: .12em; fill: var(--blue); }
.stamp-spin { transform-origin: 100px 100px; animation: spin 18s linear infinite; }
.stamp-arrow { fill: none; stroke: var(--red); stroke-width: 7; stroke-linecap: round; stroke-linejoin: round; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ribbon */
.ribbon-wrap { overflow-x: clip; overflow-y: visible; padding-block: 1.4rem; }
.ribbon { width: 112%; margin-left: -6%; background: var(--red); color: #fff; transform: rotate(-2deg); padding: .8rem 0; }
.track { display: flex; width: max-content; gap: 1.2rem; animation: slide 30s linear infinite; font: 800 1.2rem var(--serif); white-space: nowrap; }
.track span:nth-child(even) { color: var(--yellow); }
@keyframes slide { to { transform: translateX(-50%); } }

/* about */
.about { display: grid; gap: var(--s4); align-items: center; }
.about-text { min-width: 0; }
.words .w { display: inline-block; opacity: 0; transform: translateY(.6em); transition: opacity .5s, transform .5s; }
.words.in .w { opacity: 1; transform: none; }
.facts { list-style: none; padding: 0; margin: var(--s3) 0 0; display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: var(--s1); }
.facts li { background: #fff; border-radius: var(--r); padding: .8rem .6rem; text-align: center; border-top: 4px solid var(--yellow); }
.facts strong { display: block; font: 800 1.05rem var(--serif); color: var(--blue); }
.facts span { font-size: .85rem; color: var(--muted); }
.slides { position: relative; border-radius: var(--r); overflow: hidden; aspect-ratio: 4 / 3; min-width: 0; transition: transform .3s; }
.slides img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.2s ease; }
.slides img.on { opacity: 1; }

/* today board */
.today { background: var(--blue); padding-top: 0; color: #fff; }
.today .valance { background: repeating-linear-gradient(90deg, var(--cream) 0 24px, var(--yellow) 24px 48px); }
.today-in { display: grid; gap: var(--s4); padding-top: var(--s4); align-items: center; }
.board { background: var(--board); color: var(--chalk); border: 12px solid var(--wood); border-radius: var(--r); padding: var(--s3) var(--s3) var(--s2); box-shadow: inset 0 0 40px rgba(0,0,0,.45), 0 16px 30px rgba(0,0,0,.3); min-width: 0; }
.board-date { font-size: .9rem; opacity: .85; margin-bottom: .2rem; }
.board-title { color: var(--chalk); font-size: clamp(1.9rem, 8vw, 2.8rem); font-style: italic; border-bottom: 2px dashed rgba(243,239,227,.5); padding-bottom: .6rem; }
.board-list { list-style: none; margin: 0 0 var(--s2); padding: 0; }
.board-list li { display: flex; align-items: baseline; gap: .5rem; padding: .45rem 0; font: 600 1.08rem var(--serif); }
.board-list span { min-width: 0; }
.board-list i { flex: 1; border-bottom: 2px dotted rgba(243,239,227,.45); min-width: 1rem; }
.board-list b { color: var(--yellow); font-weight: 600; white-space: nowrap; }
.board-note { font-size: .9rem; opacity: .9; margin: 0; }
.today-side h3 { font-size: clamp(1.6rem, 6vw, 2.2rem); font-weight: 800; color: var(--yellow); }
.today-side .kicker { color: var(--yellow); }

/* menu with gingham */
.menu { background:
  repeating-linear-gradient(0deg, rgba(184,50,42,.13) 0 18px, transparent 18px 36px),
  repeating-linear-gradient(90deg, rgba(184,50,42,.13) 0 18px, transparent 18px 36px), #fff; }
.menu-grid { display: grid; grid-template-columns: minmax(0,1fr); gap: var(--s2); margin-top: var(--s3); }
.menu-card { background: var(--cream); border-radius: var(--r); padding: var(--s3); box-shadow: 0 6px 18px rgba(43,37,32,.1); }
.menu-card h3 { color: var(--red-dark); border-bottom: 3px solid var(--yellow); padding-bottom: .4rem; }
.menu-card ul { list-style: none; margin: 0; padding: 0; }
.menu-card li { display: flex; justify-content: space-between; gap: 1rem; padding: .4rem 0; border-bottom: 1px dashed #d9cdb8; }
.menu-card li span { min-width: 0; }
.menu-card b { color: var(--muted); font-weight: 600; white-space: nowrap; }

/* gallery */
.hint { color: var(--muted); font-size: .95rem; }
.gal-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: var(--s1); }
.gal { padding: 0; border: 0; border-radius: var(--r); overflow: hidden; cursor: zoom-in; background: #ddd; min-width: 0; }
.gal img { width: 100%; aspect-ratio: 1; object-fit: cover; transition: transform .5s; }
.gal:first-child { grid-column: span 2; }
.gal:first-child img { aspect-ratio: 16 / 9; }
.zoom-back { position: fixed; inset: 0; background: rgba(20,17,14,.85); z-index: 80; }
.zoom-img { position: fixed; z-index: 81; border-radius: var(--r); object-fit: contain; cursor: zoom-out; }

/* booking */
.book { background: var(--board); color: var(--chalk); padding-top: 0; }
.book .valance { background: repeating-linear-gradient(90deg, var(--cream) 0 24px, var(--yellow) 24px 48px); }
.book-in { display: grid; gap: var(--s4); padding-top: var(--s4); }
.book h2 { color: var(--yellow); }
.book-form { display: grid; gap: var(--s2); background: rgba(255,255,255,.06); padding: var(--s3); border-radius: var(--r); min-width: 0; }
.book-form label { display: grid; gap: .3rem; font-weight: 600; min-width: 0; }
.book-form input { min-width: 0; max-width: 100%; width: 100%; min-height: 48px; padding: .6rem .8rem; border-radius: var(--r); border: 2px solid transparent; background: var(--chalk); color: var(--ink); font: 400 1rem var(--sans); }
.book-form input:focus { outline: none; border-color: var(--yellow); }
.row { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: var(--s1); }

/* where */
.where { display: grid; gap: var(--s3); align-items: stretch; }
.where-card { background: #fff; border-radius: var(--r); padding: var(--s3); border-left: 6px solid var(--yellow); min-width: 0; }
.where dl { margin: 0 0 var(--s3); display: grid; grid-template-columns: minmax(0,auto) minmax(0,1fr); gap: .5rem 1rem; }
.where dt { font-weight: 600; color: var(--muted); }
.where dd { margin: 0; }
.where-photo { border-radius: var(--r); overflow: hidden; min-width: 0; transition: transform .3s; }
.where-photo img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }

/* faq */
.faq details { background: #fff; border-radius: var(--r); margin-bottom: var(--s1); padding: 0 var(--s2); }
.faq summary { cursor: pointer; font-weight: 600; min-height: 48px; display: flex; align-items: center; padding: .6rem 0; list-style: none; }
.faq summary::after { content: "+"; margin-left: auto; font: 800 1.3rem var(--serif); color: var(--red); padding-left: 1rem; }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding-bottom: var(--s2); margin: 0; }

/* footer */
.foot { background: var(--blue); color: #fff; padding-bottom: 6rem; }
.foot .valance { background: repeating-linear-gradient(90deg, var(--cream) 0 24px, var(--yellow) 24px 48px); }
.foot-in { padding-top: var(--s4); }
.foot .brand { color: var(--yellow); font-size: 1.6rem; }
.foot a { color: #fff; }
.small { font-size: .9rem; opacity: .85; }

/* dock */
.dock { position: fixed; left: 50%; bottom: .8rem; z-index: 50; display: flex; gap: .4rem; padding: .4rem; background: var(--ink); border-radius: calc(var(--r) + 6px); box-shadow: 0 10px 30px rgba(0,0,0,.3);
  transform: translate(-50%, 140%); transition: transform .45s cubic-bezier(.2,.8,.2,1); max-width: calc(100% - 1.5rem); }
.dock.show { transform: translate(-50%, 0); }
.dock .btn { background: var(--red); color: #fff; padding: .6rem .9rem; font-size: .95rem; }
.dock .btn:nth-child(2) { background: #2f7d4c; }
.dock .btn:nth-child(3) { background: #6a4ca3; }

/* jelly + tilt */
.jelly { animation: jelly .5s ease; }
@keyframes jelly { 0%,100% { transform: scale(1,1); } 30% { transform: scale(1.06,.94); } 55% { transform: scale(.97,1.03); } 75% { transform: scale(1.02,.98); } }

/* reveal (GSAP sets from-state only when motion is allowed) */

@media (min-width: 760px) {
  .nav ul { display: flex; }
  .lang { margin-left: var(--s2); }
  .hero { grid-template-columns: 1fr 1.1fr; align-items: center; padding-top: var(--s4); }
  .stamp { width: 140px; height: 140px; right: -1rem; top: -2.2rem; }
  .about { grid-template-columns: 1fr 1fr; }
  .today-in { grid-template-columns: 1.1fr .9fr; }
  .menu-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .gal-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .gal:first-child { grid-row: span 2; grid-column: span 1; }
  .gal:first-child img { aspect-ratio: auto; height: 100%; }
  .book-in { grid-template-columns: 1fr 1fr; align-items: center; }
  .where { grid-template-columns: 1fr 1fr; }
}
@media (hover: hover) { .gal:hover img { transform: scale(1.05); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .hero-inset { transform: rotate(-3deg); }
  .words .w { opacity: 1; transform: none; }
}
