/* San Sushi Bar — site styles after the VillaBliss WEB UI kit (header 4:3, home 1:2, menu 4:266,
   detail 4:627, blog details 4:2, contact 1:1183, footer 8:5784, style guide 1:1520).
   Tokens: Cormorant headings, Outfit text, espresso/brown/cream with a gold accent, pill buttons,
   square photos, hairline #D6D4C9 dividers. Narrow layouts are our own reflow: the kit is 1920-only. */
@font-face { font-family: "Cormorant"; src: url("../fonts/Cormorant-Variable.ttf") format("truetype"); font-weight: 300 700; font-display: swap; }
@font-face { font-family: "Outfit"; src: url("../fonts/Outfit-Variable.ttf") format("truetype"); font-weight: 100 900; font-display: swap; }

:root {
  --gold: #FDD17C; --gold-deep: #8A5A00; --espresso: #26180F; --brown: #49382C; --text: #514941;
  --line: #D6D4C9; --box: #EBE7DC; --page: #F4F4EA; --white: #FFFFFF;
  --serif: "Cormorant", Georgia, "Times New Roman", serif; --sans: "Outfit", "Helvetica Neue", Arial, sans-serif;
  --wrap: 1200px; --wide: 1720px; --read: 1140px; --gutter: clamp(16px, 5.2vw, 100px);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--page); color: var(--text); font: 400 18px/1.4 var(--sans); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, h4, h5 { font-family: var(--serif); font-weight: 600; color: var(--espresso); margin: 0 0 .4em; letter-spacing: -.01em; }
h1 { font-size: clamp(40px, 5vw, 72px); line-height: 1.1; }
h2 { font-size: clamp(34px, 4vw, 60px); line-height: 1.1; }
h3 { font-size: clamp(26px, 2.6vw, 34px); line-height: 1.15; }
h4 { font-size: 28px; line-height: 1.1; }
h5 { font-size: 24px; line-height: 1.2; }
p { margin: 0 0 1em; }
.lead { font-size: 22px; line-height: 1.45; }
.small { font-size: 15px; }
.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }
.wide { width: min(var(--wide), 100% - 2 * var(--gutter)); margin-inline: auto; }
.read { width: min(var(--read), 100% - 2 * var(--gutter)); margin-inline: auto; }
.center { text-align: center; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--espresso); color: var(--white); padding: 8px 14px; border-radius: 100px; }
.skip:focus { left: 16px; z-index: 10; }
:focus-visible { outline: 3px solid var(--gold-deep); outline-offset: 3px; }

/* Buttons: pills, 52–54px tall (style guide 1:1520) */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 28px; border-radius: 100px;
  font: 500 18px/1 var(--sans); text-decoration: none; border: 1px solid var(--espresso); color: var(--espresso); background: transparent; cursor: pointer; }
.btn:hover { background: var(--espresso); color: var(--white); }
.btn.dark { background: var(--espresso); color: var(--white); }
.btn.dark:hover { background: var(--brown); }
.btn.gold { border-color: var(--gold); color: var(--gold); }
.btn.gold:hover { background: var(--gold); color: var(--espresso); }
.btns { display: flex; flex-wrap: wrap; gap: 14px; }

/* Header 4:3 — links left, wordmark centre, pill right, hairline below */
.hdr { padding: 28px 0 0; }
.hero + .hdr { padding-top: 32px; }
.hdr .bar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; padding-bottom: 26px; border-bottom: 1px solid var(--espresso); }
.hdr nav ul { list-style: none; display: flex; gap: 28px; margin: 0; padding: 0; }
.hdr nav a { font: 500 18px/1 var(--sans); text-decoration: none; color: var(--espresso); padding: 8px 0; }
.hdr nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; }
.mark { font: 600 30px/1 var(--serif); color: var(--espresso); text-decoration: none; letter-spacing: .02em; white-space: nowrap; }
.hdr .cta { justify-self: end; }
.menu-toggle { display: none; }
@media (max-width: 900px) {
  .hdr .bar { grid-template-columns: auto 1fr auto; }
  .hdr nav { grid-column: 1 / -1; order: 3; }
  .hdr nav ul { flex-wrap: wrap; gap: 6px 20px; }
  .hdr .mark { justify-self: start; }
  .hdr .cta { min-height: 44px; padding: 0 18px; font-size: 16px; }
}

/* Home hero 1:2 — full-bleed photo with a giant serif wordmark sitting on its lower edge */
.hero { position: relative; height: clamp(420px, 62.5vw, 1200px); overflow: hidden; background: var(--espresso); }
.hero img { width: 100%; height: 100%; object-fit: cover; }
.hero .word { position: absolute; left: 0; right: 0; bottom: -.18em; text-align: center; margin: 0; font: 600 clamp(84px, 23vw, 441px)/1 var(--serif);
  color: var(--page); letter-spacing: -.02em; white-space: nowrap; }

section { padding: clamp(56px, 7vw, 120px) 0; }
.welcome { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 80px); align-items: start; }
.welcome .a { margin-top: clamp(40px, 8vw, 140px); }
.welcome .copy { align-self: end; max-width: 520px; }
@media (max-width: 800px) { .welcome { grid-template-columns: 1fr; } .welcome .a { margin-top: 0; } }

/* Menu cards 4:266 — portrait photo in a cream box */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 1000px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .cards { grid-template-columns: 1fr; } }
.card { background: var(--box); padding: 12px 12px 22px; text-decoration: none; color: var(--text); display: flex; flex-direction: column; }
.card img { aspect-ratio: 2 / 3; object-fit: cover; width: 100%; }
.card h3 { font-size: 28px; margin: 16px 0 6px; }
.card p { font-size: 16px; margin: 0; }
.card .price { margin-top: 10px; color: var(--gold-deep); font-weight: 500; font-size: 16px; }
.card:hover h3 { text-decoration: underline; text-underline-offset: 4px; }

/* Dark features band */
.dark { background: var(--espresso) center / cover no-repeat; color: #EDE6DA; position: relative; }
.dark h2, .dark h3 { color: var(--white); }
.dark .shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(38,24,15,.55), rgba(38,24,15,.94)); }
.dark .inner { position: relative; }
.dark .bgimg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.features { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 56px; }
.features > div { padding: 0 28px; border-left: 1px solid rgba(253,209,124,.35); }
.features > div:first-child { border-left: 0; padding-left: 0; }
.features h3 { font-size: 28px; margin-top: 12px; }
.features p { font-size: 16px; }
.features .ico { color: var(--gold); font: 600 26px/1 var(--serif); }
@media (max-width: 900px) { .features { grid-template-columns: 1fr 1fr; gap: 32px 0; } .features > div:nth-child(3) { border-left: 0; padding-left: 0; } }
@media (max-width: 520px) { .features { grid-template-columns: 1fr; } .features > div { border-left: 0; padding-left: 0; } }

/* "At a glance" table */
.glance { display: grid; grid-template-columns: 1fr 1.6fr; gap: clamp(24px, 5vw, 80px); }
.glance table { width: 100%; border-collapse: collapse; font-size: 16px; }
.glance th, .glance td { text-align: left; padding: 14px 0; border-top: 1px solid var(--line); vertical-align: top; }
.glance th { font-weight: 400; width: 45%; color: var(--text); }
.glance td { color: var(--espresso); }
@media (max-width: 800px) { .glance { grid-template-columns: 1fr; } }

.stories { background: var(--box); }
.story { display: grid; grid-template-columns: 1fr 1.1fr; gap: 24px; align-items: start; }
.story img { aspect-ratio: 3 / 2; object-fit: cover; }
.story-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; margin-top: 40px; }
@media (max-width: 900px) { .story-grid, .story { grid-template-columns: 1fr; } }

.strip { display: grid; grid-template-columns: repeat(4, 1fr); }
.strip img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
@media (max-width: 700px) { .strip { grid-template-columns: 1fr 1fr; } }

/* Detail 4:627 */
.detail-hero { width: 100%; aspect-ratio: 1720 / 600; object-fit: cover; }
.dish-list { width: 100%; border-collapse: collapse; margin: 16px 0 8px; font-size: 16px; }
.dish-list th, .dish-list td { border-top: 1px solid var(--line); padding: 16px 12px 16px 0; text-align: left; vertical-align: top; }
.dish-list thead th { font-weight: 500; color: var(--espresso); border-top: 0; font-size: 15px; }
.dish-list .name { font: 600 22px/1.2 var(--serif); color: var(--espresso); display: block; }
.dish-list .jp { color: var(--gold-deep); font-size: 14px; }
.dish-list td.p { white-space: nowrap; color: var(--espresso); }
.tag { display: inline-block; font-size: 13px; padding: 2px 10px; border-radius: 100px; background: var(--box); margin: 6px 6px 0 0; }
.cta-box { background: var(--box); padding: clamp(28px, 4vw, 56px); text-align: center; margin-top: 48px; }
.cta-box .btns { justify-content: center; margin-top: 18px; }
ul.ticks { padding-left: 1.1em; } ul.ticks li { margin: .35em 0; }

/* FAQ rows 4:1521 — native details/summary, readable without script */
.faq { max-width: 760px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); padding: 20px 0; }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; font-weight: 500; color: var(--espresso); }
.faq summary::after { content: "+"; font-size: 24px; line-height: 1; }
.faq details[open] summary::after { content: "×"; }
.faq summary::-webkit-details-marker { display: none; }
.faq details p { margin: 12px 0 0; font-size: 16px; }

/* Gallery 4:1050 */
.gallery { columns: 3 320px; column-gap: 20px; }
.gallery figure { break-inside: avoid; margin: 0 0 20px; }
.gallery figcaption, figure figcaption { font-size: 14px; margin-top: 8px; color: var(--text); }

/* Contact 1:1183 */
.info { display: grid; grid-template-columns: repeat(3, 1fr); text-align: center; margin: 48px 0; }
.info > div { padding: 0 20px; border-left: 1px solid var(--gold); }
.info > div:first-child { border-left: 0; }
.info h3 { font-size: 26px; margin-bottom: 6px; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.contact-grid img { width: 100%; height: 100%; object-fit: cover; }
.form { background: var(--box); padding: clamp(20px, 3vw, 40px); }
.form label { display: block; font-size: 15px; margin: 14px 0 6px; }
.form input, .form textarea, .form select { width: 100%; font: inherit; font-size: 16px; padding: 12px 14px; border: 1px solid var(--line); background: var(--page); color: var(--espresso); }
.form textarea { min-height: 150px; resize: vertical; }
.form .btn { width: 100%; margin-top: 18px; border-radius: 0; }
.form .note { font-size: 14px; margin-top: 12px; }
.form .err { color: #9A2A12; font-size: 14px; min-height: 1.2em; margin: 6px 0 0; }
@media (max-width: 800px) { .info, .contact-grid { grid-template-columns: 1fr; } .info > div { border-left: 0; border-top: 1px solid var(--gold); padding: 20px 0; } .info > div:first-child { border-top: 0; } }

/* Footer 8:5784 */
.ftr { background: var(--espresso); color: #CFC6B8; padding: 80px 0 0; overflow: hidden; }
.ftr .cols { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr; gap: 40px; }
.ftr h4 { color: #EDE6DA; font-size: 24px; }
.ftr ul { list-style: none; margin: 0; padding: 0; columns: 2; }
.ftr li { margin: 0 0 10px; font-size: 16px; }
.ftr a { color: #EDE6DA; text-decoration: none; }
.ftr a:hover, .ftr a[aria-current="page"] { color: var(--gold); }
.ftr .mark { color: #EDE6DA; }
.ftr .big { font: 600 clamp(80px, 17vw, 330px)/.8 var(--serif); color: rgba(237,230,218,.07); text-align: center; margin-top: 40px; white-space: nowrap; }
.ftr .fine { font-size: 14px; margin-top: 18px; }
@media (max-width: 800px) { .ftr .cols { grid-template-columns: 1fr; } }

/* Privacy (blog details 4:2) */
.date-chip { display: inline-block; background: var(--gold); color: var(--espresso); font-size: 14px; padding: 4px 10px; }
.rule { border: 0; border-top: 1px solid var(--line); margin: 36px 0; }
.toc ol { margin: 0; padding: 0; list-style: none; counter-reset: toc; }
.toc li { border-bottom: 1px solid var(--line); counter-increment: toc; }
.toc a { display: flex; gap: 14px; padding: 14px 0; text-decoration: none; color: var(--espresso); font-weight: 500; }
.toc a::before { content: counter(toc, decimal-leading-zero); color: var(--gold-deep); min-width: 2ch; }
.policy section { padding: 36px 0; border-top: 1px solid var(--line); }
.policy h2 { font-size: 28px; }
.policy figure { margin: 0 0 20px; }
.policy figure img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; max-width: 560px; }
.policy .row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 36px; align-items: start; }
.policy section:nth-of-type(even) .row figure { order: 2; }
@media (max-width: 800px) { .policy .row { grid-template-columns: 1fr; } .policy section:nth-of-type(even) .row figure { order: 0; } }
blockquote { background: var(--box); margin: 24px 0; padding: 28px 32px; font-size: 18px; color: var(--espresso); text-align: center; }
.back-top { font-size: 15px; }

/* Motion — a slow, quiet rhythm to match the editorial kit. Only active when site.js adds .motion */
.motion .reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s cubic-bezier(.2,.7,.2,1) var(--d, 0ms), transform .8s cubic-bezier(.2,.7,.2,1) var(--d, 0ms); }
.motion .reveal.in { opacity: 1; transform: none; }
.hero img { transform: scale(1.06); transition: transform 2.4s cubic-bezier(.2,.7,.2,1); }
.hero .word { transform: translateY(18%); opacity: 0; transition: transform 1.4s cubic-bezier(.2,.7,.2,1) .15s, opacity 1.2s ease .15s; }
html:not(.motion) .hero img, .ready .hero img { transform: none; }
html:not(.motion) .hero .word, .ready .hero .word { transform: none; opacity: 1; }
.card img, .gallery img, .story img, .strip img, .welcome img { transition: transform .9s cubic-bezier(.2,.7,.2,1), filter .9s ease; }
.card { overflow: hidden; transition: background-color .4s ease, box-shadow .4s ease; }
.card:hover { background: #E4DED0; box-shadow: 0 18px 40px -24px rgba(38,24,15,.45); }
.card:hover img, .gallery figure:hover img, .story:hover img, .strip img:hover, .welcome img:hover { transform: scale(1.04); filter: saturate(1.08); }
.gallery figure, .story, .strip, .welcome > div { overflow: hidden; }
.btn { transition: background-color .35s ease, color .35s ease, border-color .35s ease, transform .35s ease; }
.btn:hover { transform: translateY(-2px); }
.hdr nav a { background: linear-gradient(currentColor, currentColor) left bottom / 0 1px no-repeat; transition: background-size .4s ease; }
.hdr nav a:hover { background-size: 100% 1px; }
.faq details p { animation: faqIn .45s ease; }
@keyframes faqIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.ftr .big { transition: color 1.2s ease; } .ftr:hover .big { color: rgba(237,230,218,.11); }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } .hero img, .hero .word { transform: none !important; opacity: 1 !important; } }
