/* ============================================================
   STAND BY ME International BAR - 神戸・中山手通
   Evening-green-and-coral theme. VARIANCE 6 / MOTION 3 / DENSITY 3
   Theme lock: dark, whole page. Accent lock: singing coral.
   Radius lock: 10px everywhere.

   WHY THIS PALETTE. Reviews describe a small international bar
   where Japanese and foreign guests end up singing together,
   teaching each other words and trying each other's liquors. So
   the ground is a deep evening green, the colour of a quiet room
   late at night, and the single accent is a warm coral: a voice
   colour rather than a neon one. Distinct from every existing
   dark site: 09-knot is blue-grey slate with CYAN, 05-tamaya is
   night INDIGO with karashi gold, 19-hana is black cherry with
   champagne, and Puentech uses petrol teal as an accent on warm
   paper, the opposite role. No site pairs a green ground with a
   coral accent.

   Contrast, computed from these hex values, not assumed:
   text #eaf2ec on bg 12.44 / muted #a9c0b4 on bg 7.51, on bg-3
   5.89 / accent #f0966b as text on bg 6.41 / ink #2b130a on
   accent 7.73.
   ============================================================ */

:root {
  --bg: #122e29;
  --bg-2: #173731;
  --bg-3: #1d403a;
  --line: rgba(230, 240, 235, 0.15);
  --text: #eaf2ec;
  --muted: #a9c0b4;
  --accent: #f0966b;
  --accent-hover: #f5a983;
  --accent-ink: #2b130a;
  --warn: #ecc36a;
  --r: 10px;
  /* Potta One ships weight 400 ONLY (wght@700 returns HTTP 400 from the
     Fonts API, verified before writing this). It reads like warm painted
     signage, which suits a bar whose whole offer is friendliness. Every
     rule using it pins font-weight: 400. */
  --font-display: "Potta One", "Hiragino Sans", sans-serif;
  /* M PLUS Rounded 1c ships 400/500/700 (verified). A rounded body for a
     room whose product is conviviality; the family is unused elsewhere in
     the project (13 considered and rejected it as a DISPLAY face). */
  --font-body: "M PLUS Rounded 1c", "Hiragino Kaku Gothic ProN", sans-serif;
  --nav-h: 108px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

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

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

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

.wrap {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2.5rem);
}

/* ---------- Navigation: two-row centred (variant B) ----------
   Brand centred over a hairline rule, links on the second row.
   Desktop nav is deliberately taller than the 80px cap, a documented
   exception shared with 02/05/08/11/13; the cap applies on phones,
   where this collapses to a single 64px row. */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 40;
  background: rgba(18, 46, 41, 0.93);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav .wrap {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  grid-template-areas:
    "lang brand cta"
    "links links links";
  align-items: center;
  row-gap: 0.15rem;
  padding-top: 0.55rem;
}
.brand {
  grid-area: brand;
  justify-self: center;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.25rem;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.nav-links {
  grid-area: links;
  justify-self: center;
  display: flex;
  gap: 1.6rem;
  font-size: 0.88rem;
  border-top: 1px solid var(--line);
  padding: 0.4rem 1.2rem 0.55rem;
}
.nav-links a { color: var(--muted); transition: color 0.2s; }
.nav-links a:hover { color: var(--text); }

/* Flags + autonyms switcher (lang.css supplies .langsw internals). */
.langsw { grid-area: lang; justify-self: start; min-width: 0; }

.nav-cta {
  grid-area: cta;
  justify-self: end;
  display: inline-flex; align-items: center;
  min-height: 44px;
  padding: 0.45rem 1rem;
  font-size: 0.88rem; font-weight: 700;
  background: var(--accent);
  color: var(--accent-ink);
  border-radius: var(--r);
  white-space: nowrap;
  transition: background 0.2s;
}
.nav-cta:hover { background: var(--accent-hover); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.8rem 1.7rem;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  border: 1px solid transparent;
  border-radius: var(--r);
  transition: transform 0.15s, background 0.25s, border-color 0.25s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-ghost { border-color: var(--line); color: var(--text); }
.btn-ghost:hover { border-color: var(--muted); }

/* ---------- Hero: centred, voice-warm ---------- */
.hero {
  padding: calc(var(--nav-h) + clamp(3rem, 9vh, 5.5rem)) 0 clamp(3rem, 7vh, 4.5rem);
  text-align: center;
}
.eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--accent);
  margin-bottom: 1.3rem;
}
.hero h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.85rem, 5vw, 3rem);
  line-height: 1.45;
  max-width: 18em;
  margin: 0 auto 1.4rem;
}
.hero-sub {
  color: var(--muted);
  max-width: 34em;
  margin: 0 auto 2rem;
}
.hero-ctas { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; }

/* ---------- Sections ---------- */
section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.band { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sec-head { margin-bottom: clamp(2rem, 4vw, 3rem); }
.sec-head h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.45rem, 3.2vw, 2.1rem);
  line-height: 1.5;
  margin-bottom: 0.8rem;
}
.sec-head p { color: var(--muted); max-width: 40em; }
.centered .sec-head { text-align: center; }
.centered .sec-head p { margin: 0 auto; }

/* ---------- A night here: three moments ---------- */
.moments {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.25rem, 3vw, 2rem);
}
.moment {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 1.6rem 1.5rem;
}
.band .moment { background: var(--bg); }
.moment .m-no {
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--accent);
  font-size: 0.9rem;
  display: block;
  margin-bottom: 0.6rem;
}
.moment h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.18rem;
  margin-bottom: 0.5rem;
}
.moment p { color: var(--muted); font-size: 0.94rem; }

/* ---------- Languages band ---------- */
.tongues { text-align: center; }
.tongues .line {
  font-size: clamp(1.05rem, 2.4vw, 1.35rem);
  margin-bottom: 0.9rem;
}
.tongues .line .who {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin-right: 0.7rem;
  vertical-align: middle;
}
.tongues .note { color: var(--muted); font-size: 0.9rem; margin-top: 1.4rem; }

/* ---------- Money: what a night costs ---------- */
.ledger {
  max-width: 560px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
}
.ledger li {
  list-style: none;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.05rem 1.3rem;
  background: var(--bg-2);
}
.ledger li + li { border-top: 1px solid var(--line); }
.ledger .k { font-weight: 700; }
.ledger .v { font-family: var(--font-display); font-weight: 400; font-size: 1.15rem; color: var(--accent); }
.ledger .tbc { color: var(--muted); font-size: 0.92rem; }
.money-note { margin-top: 1.1rem; color: var(--muted); font-size: 0.85rem; max-width: 560px; }

/* ---------- Access ---------- */
.access-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
}
.hours dt {
  font-weight: 700;
  margin-top: 1.3rem;
  color: var(--accent);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
}
.hours dt:first-child { margin-top: 0; }
.hours dd { font-size: 1.1rem; font-weight: 500; }
.hours .hours-note { color: var(--muted); font-size: 0.88rem; font-weight: 400; margin-top: 0.2rem; }

.info-list { list-style: none; }
.info-list li { padding: 1rem 0; display: flex; flex-direction: column; gap: 0.15rem; }
.info-list li + li { border-top: 1px solid var(--line); }
.info-list .label { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.12em; color: var(--muted); }
.info-list a.link { color: var(--accent); font-weight: 700; min-height: 44px; display: inline-flex; align-items: center; }
.info-actions { margin-top: 1.4rem; display: flex; gap: 1rem; flex-wrap: wrap; }

/* ---------- Reserve: split (variant A) ---------- */
.reserve { background: var(--bg-2); border-top: 1px solid var(--line); }
.reserve-grid {
  display: grid;
  grid-template-columns: 5fr 6fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.reserve-copy h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.45rem, 3vw, 2rem);
  margin-bottom: 1rem;
}
.reserve-copy p { color: var(--muted); max-width: 34em; }
.reserve-alt { margin-top: 1.8rem; padding-top: 1.4rem; border-top: 1px solid var(--line); font-size: 0.92rem; color: var(--muted); }
.reserve-alt a { color: var(--accent); font-weight: 700; }

.form { display: grid; grid-template-columns: 1fr 1fr; gap: 1.3rem; }
.field { display: flex; flex-direction: column; gap: 0.45rem; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 0.85rem; font-weight: 700; letter-spacing: 0.05em; }
.field input,
.field select {
  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  min-height: 48px;
  padding: 0.7rem 1rem;
  border-radius: var(--r);
  appearance: none;
  -webkit-appearance: none;
}
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23a9c0b4' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
}
.field input:focus, .field select:focus {
  outline: 2px solid var(--accent);
  outline-offset: 0;
  border-color: var(--accent);
}
/* Solid muted, never an alpha tint: tinted placeholders failed AA on four
   earlier sites and had to be repaired. */
.field input::placeholder { color: var(--muted); }

.form-error { grid-column: 1 / -1; display: none; color: var(--warn); font-size: 0.9rem; font-weight: 500; }
.form-error.show { display: block; }
.form-ok { grid-column: 1 / -1; display: none; color: var(--text); background: var(--bg-3); border: 1px solid var(--line); border-radius: var(--r); padding: 1rem 1.2rem; font-size: 0.95rem; }
.form-ok.show { display: block; }
.form .btn { grid-column: 1 / -1; justify-self: start; }

/* ---------- Footer: two columns (variant A) ---------- */
footer {
  padding: 2.6rem 0 3rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.88rem;
}
.foot-grid {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.foot-brand { font-family: var(--font-display); font-weight: 400; font-size: 1.05rem; color: var(--text); margin-bottom: 0.3rem; }
.foot-links { display: flex; gap: 1.4rem; align-items: center; }
.foot-links a { min-height: 44px; display: inline-flex; align-items: center; }
.foot-links a:hover { color: var(--text); }
.demo-note { margin-top: 1.5rem; font-size: 0.8rem; }

/* ---------- Reveal ---------- */
.rv { opacity: 0; transform: translateY(18px); transition: opacity 0.6s cubic-bezier(0.16,1,0.3,1), transform 0.6s cubic-bezier(0.16,1,0.3,1); }
.rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .rv { opacity: 1; transform: none; transition: none; }
}

/* ---------- Mobile. Scoped collapses only; an unscoped layout rule
   appended after these once silently killed a site's collapse. ---------- */
@media (max-width: 880px) {
  :root { --nav-h: 64px; }
  .nav .wrap {
    grid-template-columns: auto 1fr auto;
    grid-template-areas: "brand lang cta";
    padding-top: 0;
    min-height: 64px;
  }
  .brand { justify-self: start; font-size: 1.05rem; }
  .nav-links { display: none; }
  /* Stretch, never end-justify: an end-justified 1fr language cell
     overflows LEFTWARD across the brand once labels stop fitting
     (measured 19px overlap on another site before this rule). */
  .langsw {
    justify-self: stretch;
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    scrollbar-width: none;
  }
  .langsw::-webkit-scrollbar { display: none; }
  .moments { grid-template-columns: 1fr; }
  .access-grid, .reserve-grid { grid-template-columns: 1fr; }
  .form { grid-template-columns: 1fr; }
}
@media (max-width: 430px) {
  .nav .wrap { gap: 0.5rem; }
  .nav-cta { padding: 0.4rem 0.7rem; font-size: 0.78rem; }
  .hero-ctas .btn { width: 100%; }
}
