:root {
  --ink: #1b2414;
  --forest: #23361b;
  --moss: #4f6f2f;
  --matcha: #8bb04f;
  --pale: #d9e8bf;
  --mist: #eaf0dc;
  --rice: #f6f2e8;
  --paper: #fbf9f3;
  --clay: #b5653f;
  --muted: #5f6a55;
  --line: rgba(35, 54, 27, .14);
  --radius: 22px;
  --serif: "Fraunces", "Iowan Old Style", Palatino, Georgia, serif;
  --sans: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --jp: "Hiragino Mincho ProN", "Yu Mincho", "Noto Serif JP", serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  color: var(--ink);
  background: var(--rice);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* Paper grain over everything */
body::after {
  content: "";
  position: fixed; inset: 0; z-index: 100; pointer-events: none;
  opacity: .07; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

a { color: var(--moss); }
h1, h2, h3 {
  font-family: var(--serif); font-weight: 400; line-height: 1.02;
  margin: 0 0 .5em; color: var(--forest); letter-spacing: -.02em;
  font-variation-settings: "opsz" 144;
}
h1 em, h2 em, .footer-big em { font-style: italic; font-weight: 300; color: var(--moss); }
h1 { font-size: clamp(3.4rem, 8.5vw, 7rem); }
h2 { font-size: clamp(2.4rem, 5vw, 4rem); }
h3 { font-size: 1.4rem; letter-spacing: -.01em; line-height: 1.2; }

.container { width: min(1180px, 100% - 3rem); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  text-transform: uppercase; letter-spacing: .18em; font-size: .74rem; font-weight: 600;
  color: var(--moss); margin: 0 0 1.25rem;
}
.eyebrow::before { content: ""; width: 26px; height: 1px; background: currentColor; }
.eyebrow:has(.dot)::before { display: none; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--matcha); box-shadow: 0 0 0 4px rgba(139, 176, 79, .25); animation: pulse 2.4s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(139, 176, 79, 0); } }
.section { padding: clamp(5rem, 11vw, 9rem) 0; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 1rem 1.75rem; border-radius: 999px;
  background: var(--forest); color: var(--rice);
  text-decoration: none; font-weight: 500; letter-spacing: .01em;
  transition: background .3s var(--ease), transform .3s var(--ease), box-shadow .3s var(--ease);
  box-shadow: 0 10px 24px -12px rgba(35, 54, 27, .6);
}
.btn:hover { background: var(--moss); transform: translateY(-2px); box-shadow: 0 16px 30px -14px rgba(35, 54, 27, .7); }
.btn-small { padding: .6rem 1.2rem; font-size: .92rem; box-shadow: none; }
.link-arrow { color: var(--forest); font-weight: 500; text-decoration: none; border-bottom: 1px solid var(--line); padding-bottom: 2px; }
.link-arrow span { display: inline-block; transition: transform .3s var(--ease); }
.link-arrow:hover span { transform: translateX(4px); }
:focus-visible { outline: 2px solid var(--matcha); outline-offset: 4px; border-radius: 6px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(246, 242, 232, .78);
  backdrop-filter: blur(14px) saturate(1.3);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: flex; align-items: center; gap: .65rem; text-decoration: none; color: var(--forest); }
.brand-mark {
  width: 28px; height: 28px; border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #cfe3a0, var(--matcha) 55%, var(--moss));
  box-shadow: 0 0 0 4px var(--forest);
}
.brand-name { font-family: var(--serif); font-size: 1.35rem; font-weight: 600; letter-spacing: -.02em; }
.brand-name em { font-style: italic; font-weight: 300; color: var(--moss); }
.site-nav { display: flex; align-items: center; gap: 2.2rem; }
.site-nav a:not(.btn) { position: relative; color: var(--ink); text-decoration: none; font-weight: 500; font-size: .95rem; }
.site-nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; bottom: -4px; width: 100%; height: 1px;
  background: var(--moss); transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease);
}
.site-nav a:not(.btn):hover::after { transform: scaleX(1); transform-origin: left; }
.nav-toggle { display: none; background: none; border: 0; padding: .6rem; cursor: pointer; }
.nav-toggle .bar { display: block; width: 24px; height: 1.5px; background: var(--forest); margin: 6px 0; transition: transform .3s var(--ease); }

/* Hero */
.hero { position: relative; padding: clamp(3rem, 7vw, 6rem) 0 clamp(4rem, 8vw, 7rem); overflow: hidden; }
.kanji {
  position: absolute; right: -1rem; top: 50%; transform: translateY(-50%);
  writing-mode: vertical-rl; font-family: var(--jp); font-size: clamp(10rem, 22vw, 20rem);
  line-height: 1; color: var(--forest); opacity: .04; pointer-events: none; user-select: none;
}
.hero-inner { display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 2rem; position: relative; }
.lede { font-size: 1.2rem; color: var(--muted); max-width: 30rem; margin: 0; }
.hero-actions { display: flex; align-items: center; gap: 2rem; flex-wrap: wrap; margin-top: 2.5rem; }
.hero-stats { display: flex; gap: 2.5rem; margin: 3.5rem 0 0; padding-top: 2rem; border-top: 1px solid var(--line); }
.hero-stats dt { font-family: var(--serif); font-size: 2rem; color: var(--forest); line-height: 1; }
.hero-stats dd { margin: .4rem 0 0; font-size: .85rem; color: var(--muted); }

.hero-art { position: relative; aspect-ratio: 1; max-width: 560px; justify-self: end; width: 100%; }
.halo {
  position: absolute; inset: 4%; border-radius: 50%;
  background: radial-gradient(circle, var(--mist) 0 55%, transparent 70%);
}
.halo::after {
  content: ""; position: absolute; inset: -6%; border-radius: 50%;
  border: 1px dashed rgba(79, 111, 47, .3);
  animation: spin 80s linear infinite;
}
.bowl {
  position: absolute; inset: 10%; width: 80%; height: 80%;
  filter: drop-shadow(0 40px 40px rgba(27, 36, 20, .3));
  animation: settle 1.4s var(--ease) both;
}
@keyframes settle { from { transform: rotate(-25deg) scale(.92); opacity: 0; } }
.badge {
  position: absolute; right: 0; top: 4%; width: 27%;
  filter: drop-shadow(0 10px 20px rgba(27, 36, 20, .15));
}
.badge text { font-family: var(--sans); font-size: 15.5px; letter-spacing: .2em; font-weight: 600; fill: var(--forest); }
.badge textPath { animation: none; }
.badge .badge-kanji { font-family: var(--jp); font-size: 42px; letter-spacing: 0; fill: var(--moss); }
.badge { animation: spin 30s linear infinite; }
.chashaku {
  position: absolute; left: 2%; bottom: 14%; width: 46%; height: 14px;
  background: linear-gradient(180deg, #e7cf9d, #c9a668);
  border-radius: 4px 40px 40px 4px; transform: rotate(-28deg);
  box-shadow: 0 14px 18px -10px rgba(27, 36, 20, .4);
}
.chashaku::before {
  content: ""; position: absolute; left: 30%; top: 0; bottom: 0; width: 4px; background: rgba(120, 90, 40, .35);
}
.leaf {
  position: absolute; width: 64px; height: 30px; border-radius: 0 100% 0 100%;
  background: linear-gradient(135deg, var(--matcha), var(--moss));
  box-shadow: inset -4px -4px 0 rgba(0, 0, 0, .06);
}
.leaf-1 { top: 6%; left: 10%; transform: rotate(-24deg); animation: float 7s ease-in-out infinite; }
.leaf-2 { bottom: 4%; right: 14%; width: 46px; height: 22px; transform: rotate(32deg); animation: float 8s ease-in-out infinite reverse; }
.leaf-3 { top: 40%; left: -2%; width: 36px; height: 17px; opacity: .7; transform: rotate(60deg); animation: float 9s ease-in-out infinite; }
@keyframes float { 50% { translate: 0 -14px; } }
@keyframes spin { to { transform: rotate(360deg); } }

/* Marquee */
.marquee { background: var(--forest); color: var(--pale); overflow: hidden; padding: 1.1rem 0; transform: rotate(-1.2deg) scale(1.02); }
.marquee-track { display: flex; gap: 2rem; width: max-content; animation: marquee 32s linear infinite; }
.marquee span { font-family: var(--serif); font-style: italic; font-size: 1.6rem; font-weight: 300; white-space: nowrap; }
.marquee i { font-style: normal; color: var(--matcha); font-size: 1.1rem; align-self: center; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Section heads */
.section-head { max-width: 40rem; margin-bottom: 4rem; }
.section-intro { color: var(--muted); font-size: 1.1rem; margin: 0; }

/* Ritual */
.ritual { background: var(--paper); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line); }
.step { padding: 2.5rem 2.5rem 1rem 0; position: relative; }
.step + .step { padding-left: 2.5rem; border-left: 1px solid var(--line); }
.step-num {
  display: block; font-family: var(--serif); font-weight: 300; font-style: italic;
  font-size: 4.5rem; line-height: 1; color: var(--matcha); margin-bottom: 1.5rem;
}
.step p { margin: 0; color: var(--muted); }

/* Menu */
.menu { background: var(--rice); }
.menu-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; flex-wrap: wrap; margin-bottom: 3rem; }
.menu-head h2 { margin: 0; }
.tabs { display: inline-flex; gap: .25rem; padding: .3rem; border-radius: 999px; background: #fff; border: 1px solid var(--line); }
.tabs button {
  font: inherit; font-weight: 500; font-size: .95rem; border: 0; background: transparent; color: var(--muted);
  padding: .65rem 1.4rem; border-radius: 999px; cursor: pointer; transition: background .3s var(--ease), color .3s;
}
.tabs button:hover { color: var(--forest); }
.tabs button[aria-selected="true"] { background: var(--forest); color: var(--rice); }
.tab-panel:not([hidden]) { animation: fadeUp .5s var(--ease); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } }

.menu-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.menu-card {
  position: relative; display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.75rem; min-height: 250px;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.menu-card:hover { transform: translateY(-4px); box-shadow: 0 24px 40px -24px rgba(27, 36, 20, .35); }
.menu-card h3 { margin: 1.25rem 0 .4rem; }
.menu-card p { margin: 0 0 1.5rem; color: var(--muted); font-size: .95rem; }
.swatch {
  width: 64px; height: 64px; border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, var(--c1), var(--c2));
  box-shadow: 0 0 0 6px #fff, 0 0 0 7px var(--line), 0 12px 20px -8px rgba(27, 36, 20, .35);
  transition: transform .6s var(--ease);
}
.menu-card:hover .swatch { transform: rotate(40deg) scale(1.05); }
.price { margin-top: auto; font-family: var(--serif); font-size: 1.35rem; color: var(--forest); }
.tag {
  position: absolute; top: 1.75rem; right: 1.75rem;
  font-size: .68rem; text-transform: uppercase; letter-spacing: .14em; font-weight: 600;
  background: var(--mist); color: var(--moss); padding: .35rem .7rem; border-radius: 999px;
}
.menu-card.featured { grid-row: span 2; background: var(--forest); border-color: var(--forest); color: var(--pale); }
.menu-card.featured h3 { color: #fff; font-size: 2.2rem; }
.menu-card.featured p { color: var(--pale); font-size: 1.05rem; }
.menu-card.featured .price { color: #fff; font-size: 1.8rem; }
.menu-card.featured .swatch { width: 150px; height: 150px; box-shadow: 0 0 0 10px rgba(255,255,255,.06), 0 0 0 11px rgba(255,255,255,.12), 0 30px 40px -15px rgba(0,0,0,.5); margin: 1rem 0 1rem; }
.menu-card.featured .tag { background: rgba(255,255,255,.1); color: var(--pale); }

/* Quote */
.quote { position: relative; background: var(--forest); color: var(--pale); padding: clamp(6rem, 12vw, 10rem) 0; text-align: center; overflow: hidden; }
.quote-kanji {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  font-family: var(--jp); font-size: clamp(8rem, 22vw, 18rem); color: #fff; opacity: .04; white-space: nowrap; pointer-events: none;
}
.quote blockquote { margin: 0 auto; max-width: 52rem; position: relative; }
.quote blockquote p {
  font-family: var(--serif); font-weight: 300; font-size: clamp(1.8rem, 3.8vw, 3rem);
  line-height: 1.2; letter-spacing: -.015em; color: #fff; margin: 0;
}
.quote-cite { position: relative; margin: 2rem 0 0; text-transform: uppercase; letter-spacing: .18em; font-size: .75rem; color: var(--matcha); }

/* Visit */
.visit { background: var(--paper); }
.visit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
address { font-style: normal; font-family: var(--serif); font-size: 1.5rem; line-height: 1.35; color: var(--forest); margin: 1rem 0; }
.visit-copy .btn { margin-top: 1rem; }
.hours {
  background: #fff; border: 1px solid var(--line); border-radius: 28px; padding: 2.5rem;
  box-shadow: 0 30px 60px -40px rgba(27, 36, 20, .45);
}
.hours-top { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.hours-top h3 { margin: 0; }
.hours dl { margin: 0; }
.hours dl div { display: flex; justify-content: space-between; padding: 1.1rem 0; border-bottom: 1px solid var(--line); }
.hours dt { font-weight: 500; }
.hours dd { margin: 0; color: var(--muted); font-variant-numeric: tabular-nums; }
.hours-note { margin: 0; font-size: .82rem; font-weight: 600; padding: .35rem .8rem; border-radius: 999px; white-space: nowrap; }
.hours-note.open { color: var(--moss); background: var(--mist); }
.hours-note.closed { color: var(--clay); background: #f7e7de; }
.hours-foot { margin: 1.25rem 0 0; font-size: .88rem; color: var(--muted); }

/* Footer */
.site-footer { background: var(--ink); color: var(--pale); padding: 5rem 0 2rem; }
.site-footer a { color: var(--pale); text-decoration: none; }
.site-footer a:hover { color: #fff; }
.footer-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 3rem; flex-wrap: wrap; padding-bottom: 3.5rem; border-bottom: 1px solid rgba(217, 232, 191, .15); }
.footer-big { font-family: var(--serif); font-size: clamp(2.4rem, 5vw, 4rem); line-height: 1.02; letter-spacing: -.02em; color: #fff; margin: 0; }
.footer-big em { color: var(--matcha); }
.newsletter { max-width: 420px; width: 100%; }
.newsletter label { display: block; font-size: .95rem; margin-bottom: .8rem; color: var(--pale); }
.newsletter-row { display: flex; background: rgba(255,255,255,.06); border: 1px solid rgba(217, 232, 191, .2); border-radius: 999px; padding: .3rem; }
.newsletter input { flex: 1; min-width: 0; background: transparent; border: 0; color: #fff; font: inherit; padding: .6rem 1rem; }
.newsletter input::placeholder { color: rgba(217, 232, 191, .5); }
.newsletter input:focus { outline: none; }
.newsletter button { font: inherit; font-weight: 500; border: 0; border-radius: 999px; background: var(--matcha); color: var(--ink); padding: .6rem 1.3rem; cursor: pointer; }
.newsletter button:hover { background: var(--pale); }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; padding-top: 1.75rem; font-size: .88rem; color: rgba(217, 232, 191, .6); }
.footer-bottom p { margin: 0; }
.footer-bottom p:last-child { display: flex; gap: 1.5rem; }

/* Scroll reveal */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-art { max-width: 420px; justify-self: center; order: -1; }
  .menu-grid { grid-template-columns: repeat(2, 1fr); }
  .menu-card.featured { grid-column: span 2; grid-row: auto; }
  .visit-grid { grid-template-columns: 1fr; gap: 3rem; }
}
@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute; top: 76px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--rice); border-bottom: 1px solid var(--line);
    padding: .5rem 1.5rem 1.5rem; display: none;
  }
  .site-nav.open { display: flex; }
  .site-nav a:not(.btn) { padding: 1rem 0; border-bottom: 1px solid var(--line); font-size: 1.1rem; }
  .site-nav a:not(.btn)::after { display: none; }
  .site-nav .btn { margin-top: 1.25rem; }
  .nav-toggle[aria-expanded="true"] .bar:nth-child(2) { transform: translateY(3.75px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .bar:nth-child(3) { transform: translateY(-3.75px) rotate(-45deg); }
  .steps { grid-template-columns: 1fr; }
  .step, .step + .step { padding: 2rem 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .step-num { font-size: 3.5rem; margin-bottom: 1rem; }
  .menu-grid { grid-template-columns: 1fr; }
  .menu-card.featured { grid-column: auto; }
  .tabs { width: 100%; }
  .tabs button { flex: 1; padding-inline: .5rem; }
  .hero-stats { gap: 1.5rem; }
  .hero-stats dt { font-size: 1.6rem; }
  .hours { padding: 1.75rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
