/* kyameru - shared styles. Tokens, type, buttons, menu, footer, sections. Fonts are self-hosted (fonts/). */

/* ---------- Fonts ---------- */
@font-face { font-family: 'Bellefair'; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/Bellefair-hebrew.woff2) format('woff2'); unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F; }
@font-face { font-family: 'Bellefair'; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/Bellefair-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Rubik'; font-style: normal; font-weight: 300 700; font-display: swap; src: url(fonts/Rubik-hebrew.woff2) format('woff2'); unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F; }
@font-face { font-family: 'Rubik'; font-style: normal; font-weight: 300 700; font-display: swap; src: url(fonts/Rubik-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Frank Ruhl Libre'; font-style: normal; font-weight: 300 900; font-display: swap; src: url(fonts/FrankRuhlLibre-hebrew.woff2) format('woff2'); unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F; }
@font-face { font-family: 'Frank Ruhl Libre'; font-style: normal; font-weight: 300 900; font-display: swap; src: url(fonts/FrankRuhlLibre-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
/* Katakana subset: only the four letters of キャメル */
@font-face { font-family: 'Noto Serif JP'; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/NotoSerifJP-kyameru.woff2) format('woff2'); unicode-range: U+30AD, U+30E1, U+30E3, U+30EB; }

/* ---------- Tokens ---------- */
:root {
  --ground: #f6ece2;
  --peach: #efd9c6;
  --band: #f1e3d6;
  --tan: #c99b76;
  --text: #3a2a1f;
  --soft: #6a4f3d;
  --wa: #25d366;
  --wa-lit: #3ee07a;
  --wa-ink: #0b2e1c;
  --brown: #6b4a35;
  --brown-lit: #5a3d2b;
  --brown-ink: #fbf4ee;
  --mark: 'Frank Ruhl Libre', serif;
  --sans: 'Rubik', 'Arial Hebrew', sans-serif;
  --display: 'Bellefair', 'Frank Ruhl Libre', serif;
  --display-w: 400;
  --display-track: .01em;
  --ds: 1.18;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --gut: 1.5rem;
}
@media (min-width: 900px) { :root { --gut: 6vw; } }

/* ---------- Base ---------- */
* { box-sizing: border-box; }
html { background: var(--ground); color: var(--text); -webkit-text-size-adjust: 100%; scroll-padding-block: 5rem 6rem; } /* WCAG 2.4.11: focused items stay clear of the fixed menu button (top) and pill (bottom) */
body { margin: 0; font: 400 1.0625rem/1.8 var(--sans); text-align: center; }
::selection { background: var(--tan); color: var(--text); }
img { display: block; width: 100%; height: 100%; object-fit: cover; }
a { color: inherit; text-underline-offset: .22em; text-decoration-thickness: 1px; }
:focus-visible { outline: 3px solid var(--text); outline-offset: 4px; }
h1, h2, h3, p { margin: 0; }
p { max-width: 32em; margin-inline: auto; }
section { padding: 4.5rem var(--gut); }
h2 { font: var(--display-w) calc(var(--ds) * clamp(1.75rem, 6.2vw, 2.6rem))/1.2 var(--display); letter-spacing: var(--display-track); margin-bottom: .7rem; text-wrap: balance; }
h3 { font: var(--display-w) calc(var(--ds) * 1.5rem)/1.3 var(--display); letter-spacing: var(--display-track); margin-bottom: .3rem; }
.rule { width: 3rem; height: 1px; background: var(--tan); margin: 0 auto 2rem; border: 0; }

.skip { position: absolute; inset-inline-start: 1rem; top: -4rem; background: var(--text); color: var(--ground); padding: .75rem 1rem; z-index: 30; }
.skip:focus { top: 1rem; }

/* ---------- Name and kana ---------- */
.name { display: block; direction: ltr; font: 400 13vw/.95 var(--mark); letter-spacing: .1em; padding-inline-start: .1em; }
@media (min-width: 320px) { .name { font-size: clamp(2.7rem, 13vw, 6rem); } } /* below 320px (200% zoom on a phone) the name shrinks with the viewport so it never overflows (WCAG 1.4.10) */
/* Emphasised and a little larger (Noam, 1.12). The font has one weight, so a thin stroke adds the boldness. */
.kana { display: block; margin-bottom: .45rem; font: 400 1.3rem/1 'Noto Serif JP', 'Yu Mincho', 'Hiragino Mincho ProN', serif; letter-spacing: .45em; color: var(--text); -webkit-text-stroke: .025em currentColor; }
.sub { display: block; margin-top: .5rem; font: 400 1.05rem/1.3 var(--sans); letter-spacing: .08em; color: var(--soft); }
.tagline { margin-top: 1.1rem; font: var(--display-w) calc(var(--ds) * clamp(1.7rem, 7vw, 2.7rem))/1.25 var(--display); letter-spacing: var(--display-track); text-wrap: balance; }
.sig { margin-top: 1.2rem; font: var(--display-w) calc(var(--ds) * 1.35rem)/1.3 var(--display); color: var(--soft); }

/* ---------- Buttons ---------- */
.btn-wa, .btn-brown { max-width: 100%; display: inline-flex; align-items: center; justify-content: center; gap: .75rem; min-height: 3.5rem; padding: .7rem 1.75rem; text-decoration: none; font: 600 1.15rem/1.2 var(--sans); border-radius: 999px; transition: background-color .4s var(--ease); }
.btn-wa { background: var(--wa); color: var(--wa-ink); }
.btn-wa:hover { background: var(--wa-lit); }
.btn-brown { background: var(--brown); color: var(--brown-ink); font-weight: 500; font-size: 1rem; min-height: 3.25rem; }
.btn-brown:hover { background: var(--brown-lit); }
@media (max-width: 319px) { .btn-wa, .btn-brown { padding-inline: .75rem; gap: .5rem; font-size: 1rem; } .menu a { font-size: 1.6rem; padding-inline: .5rem; } .page-head .name { font-size: 11vw; } }
.btn-wa svg, .btn-brown svg { width: 1.5rem; height: 1.5rem; flex: none; }
.btn-brown svg { width: 1.2rem; height: 1.2rem; }
.all-link { display: inline-flex; align-items: center; min-height: 3rem; padding: .5rem 1.5rem; border: 1px solid var(--tan); border-radius: 999px; text-decoration: none; font-weight: 500; transition: background-color .4s var(--ease); }
.all-link:hover { background: var(--peach); }
.back { display: inline-block; padding: .4rem 0; margin-bottom: 1.5rem; }

/* Floating WhatsApp pill: visible by default (works without JavaScript); no background strip behind it. */
.wa-float { position: fixed; inset-inline: 0; bottom: 0; z-index: 5; display: flex; justify-content: center; gap: .5rem; padding: .75rem 1rem calc(.75rem + env(safe-area-inset-bottom)); background: none; pointer-events: none; transition: transform .5s var(--ease), visibility 0s linear 0s; }
.wa-float.is-hidden { transform: translateY(calc(100% + 2rem)); visibility: hidden; transition: transform .5s var(--ease), visibility 0s linear .5s; }
.wa-float .btn-wa, .wa-float .btn-brown { pointer-events: auto; box-shadow: 0 6px 20px rgba(58, 42, 31, .25); }
.wa-float .btn-wa { flex: 1; }
@media (min-width: 900px) {
  .wa-float { inset-inline: auto; left: 1.5rem; bottom: 1.5rem; padding: 0; }
  .wa-float .btn-wa { flex: none; }
  .wa-float .btn-wa, .wa-float .btn-brown { box-shadow: 0 8px 24px rgba(58, 42, 31, .22); }
}

/* ---------- Menu (three lines, top left) ---------- */
.menu-btn { position: fixed; top: .75rem; left: .75rem; z-index: 21; width: 3rem; height: 3rem; display: grid; place-content: center; gap: 5px; border: 1px solid rgba(58, 42, 31, .18); border-radius: 50%; background: rgba(246, 236, 226, .92); color: var(--text); cursor: pointer; padding: 0; box-shadow: 0 4px 14px rgba(58, 42, 31, .12); }
.menu-btn span { display: block; width: 20px; height: 2px; border-radius: 2px; background: currentColor; transition: transform .35s var(--ease), opacity .2s; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.menu-btn:focus-visible { outline: 3px solid var(--text); outline-offset: 3px; }
.menu { position: fixed; inset: 0; z-index: 20; background: var(--ground); display: grid; place-items: center; padding: 5rem 1.5rem; text-align: center; overflow-y: auto; }
.menu[hidden] { display: none; }
/* No JavaScript: the floating pill and the menu button stay hidden (site.js swaps html.no-js to html.js first thing). */
.no-js .wa-float, .no-js .menu-btn { display: none; }
.menu ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.25rem; }
.menu a { display: inline-block; padding: .4rem 1rem; font: 400 2.2rem/1.2 var(--display); color: var(--text); text-decoration: none; }
.menu a[aria-current="page"], .menu a:hover { color: #8a6a52; }
.menu .menu-logo { display: block; width: min(15rem, 70vw); height: auto; margin: 0 auto 2rem; }
.menu .menu-sub { display: block; margin: .6rem 0 2rem; font: 400 .95rem/1 var(--sans); letter-spacing: .35em; color: var(--text); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; display: grid; align-items: end; justify-items: center; isolation: isolate; padding: 0; }
.hero > img { position: absolute; inset: 0; z-index: -2; object-position: 50% 30%; animation: morning 2.4s var(--ease) both; }
@keyframes morning { from { filter: brightness(1.12) saturate(.75); transform: scale(1.03); } }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(246, 236, 226, 1) 0%, rgba(246, 236, 226, 1) 12%, rgba(246, 236, 226, .9) 36%, rgba(246, 236, 226, 0) 60%); }
.hero .inner { padding: 0 var(--gut) 2.5rem; }
.cta { margin-top: 1.5rem; }
@media (min-width: 900px) {
  .hero .inner { padding-bottom: 4rem; }
  .hero::after { background: linear-gradient(to top, rgba(246, 236, 226, 1) 0%, rgba(246, 236, 226, 1) 10%, rgba(246, 236, 226, .88) 38%, rgba(246, 236, 226, 0) 70%); }
}

/* ---------- Sections ---------- */
.story { padding-block: 5rem; }
.story p { font-size: 1.15rem; }

.plate { padding: 0 0 4.5rem; }
.plate figure { margin: 0; }
.plate img { height: auto; aspect-ratio: 4 / 5; }
.plate .cap { padding: 1.6rem var(--gut) 0; }
@supports (animation-timeline: view()) {
  .plate img { animation: reveal linear both; animation-timeline: view(); animation-range: entry 0% cover 40%; }
  @keyframes reveal { from { filter: brightness(1.15) saturate(.6); } }
}
@media (min-width: 900px) {
  .plate { padding-inline: var(--gut); max-width: 1100px; margin: 0 auto; }
  .plate img { aspect-ratio: 16 / 9; }
}
.all { margin: -1.5rem auto 4.5rem; padding-inline: var(--gut); }

.band { background: var(--band); }

.extras { background: var(--peach); padding-block: 5rem; }
.extras ul { list-style: none; margin: 2rem auto 0; padding: 0; display: grid; gap: 2rem; max-width: 60rem; }
.extras li p { color: var(--soft); }
.extras li img { display: block; width: 100%; height: auto; max-width: 30rem; margin: 1.25rem auto 0; }
.extras .link { display: inline-block; margin-top: .5rem; padding-block: .4rem; font-weight: 500; }
@media (min-width: 900px) {
  .extras ul { grid-template-columns: repeat(3, 1fr); gap: 3rem; }
  /* On desktop the ramen photo gets a light paper frame (Noam, 1.12). */
  .extras li img { box-sizing: border-box; padding: .6rem; background: var(--ground); border: 1px solid var(--tan); box-shadow: 0 14px 28px -18px rgba(58, 42, 31, .45); }
}

.outside { padding-block: 5rem; }
/* "בחוץ" is read by screen readers as the section heading, but not shown (Noam, 29.11). */
.outside .eyebrow { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
.outside .quote { font: var(--display-w) calc(var(--ds) * clamp(1.6rem, 6.2vw, 2.8rem))/1.4 var(--display); letter-spacing: var(--display-track); max-width: 18em; text-wrap: balance; }
.outside .more { margin-top: 1.2rem; color: var(--soft); }
.night { margin: 2.5rem auto 0; max-width: 26rem; }
.night img { height: auto; aspect-ratio: 2 / 3; }
/* On phones the balcony and ramen photos run edge to edge, like the room photos (Noam, 1.12). */
@media (max-width: 899px) {
  .night, .extras li img { width: 100vw; max-width: none; margin-inline: calc(50% - 50vw); }
}

.facts { background: var(--band); }
.facts ul { list-style: none; margin: 1.5rem auto 0; padding: 0; display: grid; gap: 1.4rem; max-width: 56rem; }
.facts strong { display: block; font-weight: 600; }
.facts span { color: var(--soft); }
.facts .reviews { margin-top: 2rem; }
.facts .reviews a { display: inline-block; padding-block: .4rem; }
@media (min-width: 900px) { .facts ul { grid-template-columns: repeat(3, 1fr); gap: 2.5rem; } }

/* ---------- Footer: bottom padding keeps the floating pill off the links ---------- */
.site-footer { padding: 3.5rem var(--gut) 7rem; display: grid; gap: 2rem; justify-items: center; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: baseline; justify-content: center; gap: .2rem 1.5rem; }
.site-footer a { display: inline-block; padding-block: .3rem; }
.site-footer .btn-wa, .site-footer .btn-brown { display: inline-flex; padding-block: .7rem; }
.site-footer .meta, .meta { color: var(--soft); font-size: .98rem; }
.site-footer .contact { margin-top: -.5rem; }
.site-footer .quiet { color: var(--soft); font-size: .98rem; }
@media (min-width: 900px) { .site-footer { padding-bottom: 3.5rem; } }

/* ---------- Simple page header (404, legal pages) ---------- */
.page-head { padding: 2.5rem var(--gut) 1rem; }
.page-head .name { font-size: 2.2rem; line-height: 1; }
.page-head h1 { font: var(--display-w) calc(var(--ds) * 2.2rem)/1.2 var(--display); letter-spacing: var(--display-track); margin-top: .6rem; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
/* Windows high-contrast mode drops background colours: keep button edges visible. */
@media (forced-colors: active) { .btn-wa, .btn-brown, .menu-btn, .skip { border: 2px solid ButtonText; } }

/* ---------- Gallery page ---------- */
.gallery section { padding: 2.5rem var(--gut) 0; }
.gallery .grid { list-style: none; margin: 0 auto; padding: 0; columns: 2; column-gap: .5rem; max-width: 1200px; }
.gallery .grid li { break-inside: avoid; margin-bottom: .5rem; }
.gallery .grid a { display: block; }
.gallery .grid img { display: block; width: 100%; height: auto; object-fit: contain; }
@media (min-width: 900px) { .gallery .grid { columns: 3; column-gap: .75rem; } .gallery .grid li { margin-bottom: .75rem; } }
/* Fixed brown "back to home" pill: no background strip behind it; visible without JavaScript. */
.home-float { position: fixed; inset-inline: 0; bottom: 0; z-index: 5; display: flex; justify-content: center; padding: .75rem 1rem calc(.75rem + env(safe-area-inset-bottom)); background: none; pointer-events: none; }
.home-float .btn-brown { pointer-events: auto; box-shadow: 0 6px 20px rgba(58, 42, 31, .25); }
@media (min-width: 900px) { .home-float { inset-inline: auto; left: 1.5rem; bottom: 1.5rem; padding: 0; } }

/* ---------- Workshops page ---------- */
.ws-hero { padding-bottom: 3rem; }
.ws-hero h1 { font: var(--display-w) calc(var(--ds) * clamp(1.9rem, 8vw, 3.4rem))/1.15 var(--display); letter-spacing: var(--display-track); text-wrap: balance; max-width: 14em; margin: .6rem auto 0; }
.ws-hero figure { margin: 1.75rem auto 0; max-width: 30rem; }
.ws-hero figure img { height: auto; aspect-ratio: 2 / 3; }
.ws-intro { margin-top: 1.75rem; }
.ws-intro p { font-size: 1.1rem; }
.ws-intro p + p { margin-top: .9rem; }
.workshops .ws-facts { background: var(--peach); }
.ws-facts ul { list-style: none; margin: 1.75rem auto 0; padding: 0; display: grid; gap: 1.75rem; max-width: 60rem; }
.ws-facts li p { color: var(--soft); }
@media (min-width: 900px) { .ws-facts ul { grid-template-columns: repeat(4, 1fr); gap: 2.5rem; } }
.workshops .ws-photos ul { list-style: none; margin: 1.75rem auto 0; padding: 0; columns: 2; column-gap: .5rem; max-width: 1100px; }
.ws-photos li { break-inside: avoid; margin-bottom: .5rem; }
.ws-photos img { height: auto; object-fit: contain; }
@media (min-width: 900px) { .workshops .ws-photos ul { columns: 3; column-gap: .75rem; } .ws-photos li { margin-bottom: .75rem; } }
/* Pill with two buttons: stays on one row on phones, wraps at 200% zoom. */
.ws-float { align-items: center; }
.ws-float .btn-wa { flex: 1 1 auto; padding-inline: .75rem; gap: .45rem; font-size: 1rem; min-height: 3.25rem; }
.ws-float .btn-wa svg { width: 1.3rem; height: 1.3rem; }
.ws-float .btn-brown { padding-inline: 1rem; font-size: .95rem; }
@media (max-width: 319px) { .ws-float { flex-wrap: wrap; } }
@media (min-width: 900px) { .ws-float .btn-wa { flex: none; padding-inline: 1.75rem; font-size: 1.15rem; } }@media (max-width: 319px) { .workshops ~ .site-footer { padding-bottom: 11rem; } } /* wrapped two-row pill (about 9.1rem) must clear the last footer link */

/* ---------- Legal pages (accessibility, privacy, terms) ---------- */
.legal-note { display: inline-block; max-width: 100%; margin: 1.2rem auto 0; padding: .35rem 1rem; border: 1px solid var(--tan); border-radius: 999px; color: var(--soft); font-size: .95rem; line-height: 1.5; overflow-wrap: anywhere; }
.legal { max-width: 40em; margin: 0 auto; padding: 1.5rem var(--gut) 1rem; text-align: start; overflow-wrap: anywhere; }
.legal section { padding: 0; margin-top: 2.5rem; }
.legal h2 { text-align: center; margin-bottom: 1rem; }
.gallery h2, .legal h2 { font-size: 1.9rem; }
.ws-hero-link { text-decoration: none; color: inherit; }
@media (min-width: 320px) { .ws-float .btn-wa, .ws-float .btn-brown { white-space: nowrap; } }
@media (min-width: 900px) {
  .hero > img { object-position: 50% 5%; }
  .plate img[src*="0342"] { object-position: 50% 85%; }
  .plate img[src*="0353"] { object-position: 50% 95%; }
}
.legal p { max-width: none; margin: 0 0 1rem; }
.legal ul { margin: 0 0 1rem; padding-inline-start: 1.4rem; }
.legal li { margin-block: .4rem; }
.legal .ph { background: var(--peach); padding-inline: .25em; border-radius: 3px; }
.legal .updated { color: var(--soft); margin-top: 2.5rem; }
.legal a[href^="tel:"], .legal a[href^="tel:"] bdi { white-space: nowrap; overflow-wrap: normal; }
