:root {
  --bg: #faf6f4;
  --surface: #ffffff;
  --text: #201a1d;
  --muted: #6b5e64;
  --accent: #b5325c;
  --accent-text: #ffffff;
  --font-heading: 'Lora', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --font-accent: 'Lora', Georgia, 'Times New Roman', serif;
}

/* ==========================================================================
   Direction "zen" — Japanese calm: washi paper, air, one seal-red accent.
   Serif headings, a sans for text. Signature moves: the hero circle (hinomaru)
   with an offset ring, the vertical kicker, prices as rotated hanko seals,
   circular gallery, an ensō ring around the rating, a seigaiha wave band
   before the footer. No shadows, no gradients; radii only on circles and
   small 6px corners.

   Tokens from new_site.py: --bg --surface --text --muted --accent --accent-text
                            --font-heading --font-body
   Type scale (mobile → desktop), details in NOTES.md:
     h1      clamp(2.5rem, 1.6rem + 4.2vw, 5.25rem)   500, lh 1.02, -.02em (serif)
     lead    clamp(1.125rem, 1rem + .5vw, 1.375rem)    serif italic, muted
     h2      clamp(1.75rem, 1.4rem + 1.4vw, 2.5rem)    500 (serif)
     about   clamp(1.125rem, 1rem + .5vw, 1.375rem)    serif, lh 1.6, measure 34em
     h3      1.2rem / 500 (serif); body 1rem / 1.6; label .72rem caps .16em
   Spacing: 8px steps (--s1 … --s12), section padding clamp(3.5rem, 8vw, 6.5rem).
   Grid: single column to 700px, two columns 700–900px, 12 columns from 900px.
   ========================================================================== */

:root {
  --s1: .5rem;  --s2: 1rem;  --s3: 1.5rem;  --s4: 2rem;  --s5: 2.5rem;
  --s6: 3rem;   --s8: 4rem;  --s10: 5rem;   --s12: 6rem;
  --section-pad: clamp(3.5rem, 8vw, 6.5rem);
  --page-pad: clamp(1.25rem, 4vw, 3rem);
  --container: 1180px;
  --measure: 34em;
  --r: 6px;
  --hair: 1px solid rgb(0 0 0 / .14);
  --hair-color: rgb(0 0 0 / .14);
  --wash: var(--surface);
}

@supports (color: color-mix(in srgb, red 50%, transparent)) {
  :root {
    --hair: 1px solid color-mix(in srgb, var(--text) 16%, transparent);
    --hair-color: color-mix(in srgb, var(--text) 16%, transparent);
    --wash: color-mix(in srgb, var(--accent) 7%, var(--bg));
  }
}

/* ------------------------------------------------------------------ base */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .2em; }
h1, h2, h3 { font-family: var(--font-heading); font-weight: 500; margin: 0; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
dl { margin: 0; }

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

.container { width: min(100% - 2 * var(--page-pad), var(--container)); margin-inline: auto; }

/* Spaced small caps: hours, map, section cues. */
.label {
  margin: 0 0 .75rem;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Inline SVG patterns; the parent is position:relative + overflow:hidden. */
.pattern { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }


/* ---------------------------------------------------------------- header */
.site-header { padding-block: var(--s2); border-bottom: var(--hair); }

.header-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: .75rem var(--s2);
}

.brand { display: inline-flex; align-items: center; gap: .7rem; min-width: 0; min-height: 44px; text-decoration: none; }

.brand-mark {
  flex: none;
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-text);
  font-family: var(--font-heading);
  font-size: 1.2rem;
}

.brand-name {
  min-width: 0;
  overflow-wrap: anywhere;
  font-family: var(--font-heading);
  font-size: 1.2rem;
  line-height: 1.15;
}

.header-phone {
  grid-column: 2;
  grid-row: 1;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  text-decoration: none;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

/* Navigation: spaced caps separated by thin vertical bars. On phones it is
   one non-wrapping strip that scrolls sideways (scrollbar hidden). */
.nav {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: nowrap;
  gap: 0 .25rem;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.nav::-webkit-scrollbar { display: none; }

.nav a {
  flex: none;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 .55rem;
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
}
.nav a:first-child { padding-left: 0; }
.nav a + a { border-left: var(--hair); }

/* -------------------------------------------------------------- buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: .7rem 1.6rem;
  border: 1px solid var(--text);
  border-radius: var(--r);
  background: transparent;
  color: var(--text);
  font-size: .9rem;
  font-weight: 600;
  letter-spacing: .06em;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
}
.btn-call { background: var(--accent); border-color: var(--accent); color: var(--accent-text); }

.hero-actions, .contacts-actions { display: flex; flex-wrap: wrap; gap: .6rem; }

/* ----------------------------------------------------------------- hero */
.hero { padding-block: var(--s6) var(--s4); }

.hero-grid { display: grid; gap: var(--s6); align-items: center; }

.hero-copy { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--s3); }

/* The vertical kicker: the city, read top to bottom, with a short accent bar. */
.kicker {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  margin: 0;
  writing-mode: vertical-rl;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--muted);
}
.kicker::before { content: ""; flex: none; width: 1px; height: 2.25rem; background: var(--accent); margin-top: .1rem; }

.hero-title {
  margin: 0 0 var(--s2);
  font-size: clamp(2.5rem, 1.6rem + 4.2vw, 5.25rem);
  line-height: 1.02;
  letter-spacing: -.02em;
  overflow-wrap: break-word;
}

.hero-lead {
  max-width: 28em;
  margin: 0 0 var(--s4);
  font-family: var(--font-heading);
  font-style: italic;
  font-size: clamp(1.125rem, 1rem + .5vw, 1.375rem);
  line-height: 1.45;
  color: var(--muted);
}

/* Hours + address as two hairline rows under the buttons. */
.hero-meta { display: grid; margin-top: var(--s4); border-top: var(--hair); }
.meta-row { display: grid; grid-template-columns: 6rem minmax(0, 1fr); gap: var(--s2); padding: .7rem 0; border-bottom: var(--hair); }
.meta-row dt { font-size: .72rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); padding-top: .2rem; }
.meta-row dd { margin: 0; font-weight: 500; font-variant-numeric: tabular-nums; }
.meta-row a { text-decoration: none; }

/* The circle (hinomaru): image or pattern, with a thin ring set off-centre. */
.maru { position: relative; width: min(100%, 26rem); aspect-ratio: 1; margin-inline: auto; }
.maru-img, .maru-fill {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  object-fit: cover;
  background: var(--surface);
}
.maru-fill--solid { display: grid; place-items: center; background: var(--accent); color: var(--accent-text); }
.maru-initial { font-family: var(--font-heading); font-size: clamp(7rem, 30vw, 12rem); line-height: 1; }
.maru-ring {
  position: absolute;
  inset: -4%;
  border: 1px solid var(--accent);
  border-radius: 50%;
  transform: translate(3.5%, 3.5%);
  pointer-events: none;
}

/* Phones and tablets: the header carries no contact — the hero button,
   the contacts section and the sticky bar do; the name sits by the language switch. */
@media (max-width: 899px) {
  .header-phone { display: none; }
}

/* ------------------------------------------------------------- sections */
.section { padding-top: var(--section-pad); }
.contacts-section { padding-bottom: var(--section-pad); }

/* Section head: vertical number, serif title, hairline under. */
.section-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: var(--s3);
  align-items: end;
  margin: 0 0 var(--s5);
  padding-bottom: var(--s2);
  border-bottom: var(--hair);
}
.section-num {
  writing-mode: vertical-rl;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .22em;
  color: var(--accent);
}
.section-title {
  font-size: clamp(1.75rem, 1.4rem + 1.4vw, 2.5rem);
  line-height: 1.1;
  letter-spacing: -.015em;
}

/* ------------------------------------------------------------- services */
.dish-grid { display: grid; gap: 0; border-top: var(--hair); }

.dish { padding: var(--s3) 0; border-bottom: var(--hair); }

.dish-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: .75rem var(--s3); }
.dish-name { font-size: 1.25rem; line-height: 1.25; }

/* The price as a hanko: a thin accent rectangle, slightly tilted. */
.seal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.2rem;
  padding: .35rem .8rem;
  border: 1.5px solid var(--accent);
  border-radius: 4px;
  color: var(--accent);
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .04em;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  transform: rotate(-3deg);
  transform-origin: center;
}

.dish-desc { max-width: 48em; margin-top: .6rem; font-size: .95rem; color: var(--muted); }

/* ---------------------------------------------------------------- about */
.about-grid { display: grid; gap: var(--s5); }

.about-text {
  max-width: var(--measure);
  font-family: var(--font-heading);
  font-size: clamp(1.125rem, 1rem + .5vw, 1.375rem);
  line-height: 1.6;
}

.about-side { display: grid; gap: var(--s4); align-content: start; }

/* Rating inside an open brush circle (ensō). */
.enso { position: relative; display: grid; place-items: center; width: 12rem; aspect-ratio: 1; text-align: center; color: var(--accent); }
.enso-ring { position: absolute; inset: 0; width: 100%; height: 100%; }
.rating-value { font-family: var(--font-heading); font-size: 3.25rem; line-height: 1; letter-spacing: -.03em; color: var(--accent); }
.rating-label { margin-top: .4rem; font-size: .8rem; line-height: 1.35; color: var(--muted); }

.facts { display: grid; border-top: var(--hair); }
.fact { display: flex; gap: .8rem; padding: .8rem 0; border-bottom: var(--hair); font-weight: 500; }
.fact::before { content: ""; flex: none; width: .45rem; height: .45rem; margin-top: .6rem; border-radius: 50%; background: var(--accent); }

/* -------------------------------------------------------------- gallery */
/* Circles in a grid: two across on phones, four from 900px. */
.gallery-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s3); }

.gallery-item { display: block; aspect-ratio: 1; overflow: hidden; border-radius: 50%; background: var(--surface); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--s3);
  background: rgb(0 0 0 / .84);
}
.lightbox.is-open { display: flex; }
.lightbox img { max-width: min(92vw, 1200px); max-height: 88vh; object-fit: contain; border-radius: var(--r); }
.lightbox-close {
  position: absolute;
  top: var(--s2);
  right: var(--s2);
  width: 3rem;
  height: 3rem;
  border: 0;
  border-radius: 50%;
  background: var(--surface);
  color: var(--text);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

/* ---------------------------------------------------------------- steps */
.steps { display: grid; gap: 0; border-top: var(--hair); }
.step { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .25rem var(--s3); align-items: center; padding: var(--s3) 0; border-bottom: var(--hair); }
.step-num {
  display: grid;
  place-items: center;
  grid-row: 1 / 3;
  width: 3rem;
  height: 3rem;
  border: 1px solid var(--accent);
  border-radius: 50%;
  color: var(--accent);
  font-family: var(--font-heading);
  font-size: 1.25rem;
}
.step-name { font-size: 1.25rem; line-height: 1.25; }
.step-desc { grid-column: 2; font-size: .95rem; color: var(--muted); }

/* ------------------------------------------------------------- contacts */
.contacts-grid { display: grid; gap: var(--s5); }

.contacts-actions { margin-bottom: var(--s4); }

.hours-block { margin-bottom: var(--s4); }
.hours { border-top: var(--hair); }
.hours li { padding: .6rem 0; border-bottom: var(--hair); font-weight: 500; font-variant-numeric: tabular-nums; }

.contacts { display: grid; }
.contact { display: grid; grid-template-columns: 6rem minmax(0, 1fr); gap: var(--s2); padding: .7rem 0; border-bottom: var(--hair); }
.contact dt { font-size: .72rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); padding-top: .2rem; }
.contact dd { margin: 0; font-weight: 500; overflow-wrap: anywhere; }
/* Inline links get a 44px tap height without moving the text. */
.contact dd a { display: inline-block; padding-block: .6em; margin-block: -.6em; }
.contact a { text-decoration: none; }

.contacts-map { display: flex; flex-direction: column; }
.map { aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--r); border: var(--hair); background: var(--surface); }
.map iframe { display: block; width: 100%; height: 100%; border: 0; }

.route-link {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  min-height: 3rem;
  margin-top: var(--s2);
  color: var(--accent);
  font-weight: 600;
  letter-spacing: .04em;
  text-decoration: none;
}

/* ------------------------------------------------------- wave band + footer */
.wave-band { position: relative; height: 4.5rem; overflow: hidden; border-top: var(--hair); }

.site-footer { padding: var(--s6) 0 calc(var(--s6) + 5rem); border-top: var(--hair); }

.footer-main { display: grid; gap: .25rem; margin-bottom: var(--s3); }
.footer-name { font-family: var(--font-heading); font-size: 1.35rem; }
.footer-address { color: var(--muted); }
.footer-phone a { font-weight: 600; text-decoration: none; font-variant-numeric: tabular-nums; }

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .5rem var(--s3);
  padding-top: var(--s2);
  border-top: var(--hair);
  font-size: .85rem;
  color: var(--muted);
}
.footer-credit a { color: inherit; }

/* ------------------------------------------------------ sticky mobile bar */
.sticky-bar {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 50;
  display: flex;
  gap: .5rem;
  padding: .6rem var(--page-pad) calc(.6rem + env(safe-area-inset-bottom, 0px));
  background: var(--bg);
  border-top: 1px solid var(--accent);
  transform: translateY(100%);
  visibility: hidden;
  transition: transform .3s ease, visibility 0s linear .3s;
}
.sticky-bar.is-visible { transform: none; visibility: visible; transition-delay: 0s; }

.sticky-bar a {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: .5rem 1rem;
  border: 1px solid var(--text);
  border-radius: var(--r);
  font-size: .9rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-decoration: none;
  white-space: nowrap;
}
.sticky-call { background: var(--accent); border-color: var(--accent) !important; color: var(--accent-text); }

/* --------------------------------------------------------- hover motion */
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .btn, .route-link, .sticky-bar a, .nav a { transition: opacity .15s ease, transform .15s ease; }
  .btn:hover, .sticky-bar a:hover { opacity: .85; }
  .nav a:hover { color: var(--accent); }
  .gallery-item img { transition: transform .5s ease; }
  .gallery-item:hover img { transform: scale(1.06); }
  .seal { transition: transform .2s ease; }
  .dish:hover .seal { transform: rotate(0deg); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .sticky-bar { transition: none; }
}

/* ---------------------------------------------------------- two columns */
@media (min-width: 700px) {
  .dish-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--s6); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--s6); }
  .gallery-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .maru { width: min(100%, 30rem); }
}

/* -------------------------------------------------------------- desktop */
@media (min-width: 900px) {
  .header-row { grid-template-columns: auto minmax(0, 1fr) auto auto; gap: .75rem var(--s3); }
  .nav { grid-column: 2; grid-row: 1; justify-content: center; overflow: visible; }
  .nav a { padding: 0 .9rem; font-size: .78rem; letter-spacing: .14em; }
  .nav a:first-child { padding-left: .9rem; }
  .header-phone { grid-column: 3; }

  .hero { padding-block: var(--s8) var(--s6); }

  /* split / pattern / type: copy 7 columns, circle 5 columns. */
  .hero-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--s10); }
  .hero--split .maru, .hero--pattern .maru, .hero--type .maru { width: 100%; max-width: 32rem; justify-self: end; }

  /* photo: the big circle on the left, copy on the right. */
  .hero--photo .hero-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
  .hero--photo .maru { width: 100%; max-width: 34rem; justify-self: start; }

  .hero-title { max-width: 12ch; }
  .hero-meta { max-width: 32rem; }

  .about-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: var(--s12); }
  .about-grid--single { grid-template-columns: minmax(0, 1fr); }
  .about-side { padding-top: .4rem; }

  .gallery-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s4); }

  .steps { grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); }
  .step { grid-template-columns: minmax(0, 1fr); align-content: start; }
  .step-num { grid-row: auto; margin-bottom: var(--s2); }
  .step-desc { grid-column: auto; }

  .contacts-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--s10); }
  .map { flex: 1; min-height: 26rem; aspect-ratio: auto; }

  .footer-main { grid-template-columns: auto minmax(0, 1fr) auto; align-items: baseline; gap: var(--s3); }
  .site-footer { padding-bottom: var(--s6); }

  .sticky-bar { display: none; }
}

/* Language switch (base/lang_switch.html.j2): a <details> dropdown — current
   language on the button, all three in a small menu under it. */
.lang-switch { position: relative; grid-column: 2; grid-row: 1; }
.lang-switch summary {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: .35em;
  min-height: 44px;
  padding: 0 .6rem;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text);
  -webkit-user-select: none;
  user-select: none;
  border: var(--hair);
  border-radius: var(--r);
}
.lang-switch summary::-webkit-details-marker { display: none; }
.lang-switch summary::marker { content: ""; }
.lang-caret { width: .65em; height: .65em; flex: none; transition: transform .15s ease; }
.lang-switch[open] .lang-caret { transform: rotate(180deg); }
.lang-menu {
  position: absolute;
  right: 0;
  top: calc(100% + .3rem);
  z-index: 40;
  min-width: 10.5rem;
  margin: 0;
  padding: .3rem;
  list-style: none;
  background: var(--surface);
  color: var(--text);
  border: var(--hair);
  border-radius: var(--r);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .12);
}
.lang-menu a {
  display: flex;
  align-items: center;
  gap: .7em;
  min-height: 42px;
  padding: 0 .75rem;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .08em;
  border-radius: 4px;
}
.lang-menu a:hover { background: var(--bg); }
.lang-menu a[aria-current="page"] { color: var(--accent); pointer-events: none; }
.lang-menu .lang-name { color: var(--muted); font-weight: 400; font-size: .85em; letter-spacing: 0; text-transform: none; }
/* Desktop: fourth column of the header grid, after the contact. This must come
   after the base .lang-switch rule above. */
@media (min-width: 900px) {
  .lang-switch { grid-column: 4; grid-row: 1; }
}

/* Optional logo (site.yml `logo`) takes the place of the initial in the mark. */
.brand-mark--img { padding: 0; object-fit: cover; }

/* «Meniul complet» (site.yml menu_url): a text link under the section head. */
.menu-link { display: inline-flex; align-items: center; min-height: 44px; margin: calc(-1 * var(--s3)) 0 var(--s3); color: var(--accent); font-weight: 600; letter-spacing: .04em; text-decoration: none; }
.menu-link:hover { text-decoration: underline; }
