/* Biombo's site: the app icon's night, with the gold ridge along the bottom. Dark on purpose, like the icon. */
:root {
  --sky-top: #252C4D;
  --sky-bottom: #0B0D1A;
  --text: #F4F1E8;
  --muted: rgba(244, 241, 232, 0.74);
  --gold-light: #FFE29A;
  --gold: #EDB646;
  --gold-deep: #C08A2E;
  --ink: #1E1404;
  --vermilion: #EF6442;
  --line: rgba(255, 226, 154, 0.22);
  --serif: ui-serif, "New York", "Iowan Old Style", Georgia, serif;
  --sans: system-ui, -apple-system, "Hiragino Sans", "Segoe UI", Roboto, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { background: var(--sky-bottom); }

body {
  margin: 0;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  color: var(--text);
  font: 17px/1.55 var(--sans);
  background: linear-gradient(180deg, var(--sky-top) 0%, #161A30 55%, var(--sky-bottom) 100%) fixed;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

[hidden] { display: none !important; }

a { color: var(--gold-light); text-underline-offset: 3px; }
a:hover { color: #fff; }

/* Top bar: back link on the inner pages, language on every page. */
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px max(16px, env(safe-area-inset-left)) 0 max(16px, env(safe-area-inset-left));
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
}
.home {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font: 600 18px/1 var(--serif);
}
.home img { width: 30px; height: 30px; }
.langs { display: flex; gap: 2px; margin-left: auto; }
.langs button, .langs a {
  appearance: none;
  border: 0;
  background: none;
  color: var(--muted);
  font: 600 13px/1 var(--sans);
  padding: 9px 10px;
  border-radius: 999px;
  cursor: pointer;
  text-decoration: none;
}
.langs button[aria-pressed="true"], .langs a[aria-current="page"] { color: var(--ink); background: var(--gold); }
.langs button:focus-visible, .langs a:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 2px; }
.suggest { color: var(--gold-light); font: 600 13px/1 var(--sans); text-decoration: none; padding: 9px 0; }

/* Landing. */
.hero {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(28px, 7vh, 72px) 16px 8px;
  text-align: center;
}
.icon {
  width: 128px;
  height: 128px;
  display: block;
  margin: 0 auto 22px;
  filter: drop-shadow(0 18px 40px rgba(239, 100, 66, 0.22)) drop-shadow(0 6px 18px rgba(0, 0, 0, 0.5));
}
.soon {
  display: inline-block;
  margin: 0 0 18px;
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--gold-light);
  font: 600 13px/1.4 var(--sans);
  letter-spacing: 0.02em;
}
h1 {
  margin: 0;
  font: 600 clamp(48px, 11vw, 80px)/1 var(--serif);
  letter-spacing: 0.005em;
}
h1 .subtitle {
  display: block;
  margin-top: 14px;
  color: var(--gold);
  font: 500 clamp(21px, 4.4vw, 27px)/1.3 var(--serif);
  letter-spacing: 0;
}
.lede {
  max-width: 560px;
  margin: 16px auto 0;
  color: var(--muted);
}

/* Sections under the hero. */
main { flex: 1; }
.band {
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
  padding: 56px 16px 0;
}
.band h2 {
  margin: 0;
  text-align: center;
  font: 600 clamp(26px, 5vw, 34px)/1.2 var(--serif);
}
.intro {
  max-width: 600px;
  margin: 12px auto 0;
  text-align: center;
  color: var(--muted);
}
.duo {
  display: grid;
  gap: 24px;
  margin-top: 32px;
  align-items: center;
}
@media (min-width: 820px) {
  .duo { grid-template-columns: 300px 1fr; gap: 40px; }
}
.shot { margin: 0; text-align: center; }
.shot img {
  width: 100%;
  max-width: 300px;
  height: auto;
  border-radius: 28px;
  border: 1px solid var(--line);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45);
}
.shot figcaption { margin-top: 10px; color: var(--muted); font-size: 14px; }
.postures {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
@media (min-width: 560px) {
  .postures { grid-template-columns: 1fr 1fr; }
}
.postures li {
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.035);
}
.postures h3 {
  margin: 0 0 6px;
  color: var(--gold-light);
  font: 600 16px/1.35 var(--sans);
}
.postures p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.5; }
.features {
  max-width: 760px;
  margin: 24px auto 0;
  padding-left: 1.2em;
  display: grid;
  gap: 4px 36px;
}
@media (min-width: 760px) {
  .features { grid-template-columns: 1fr 1fr; }
}
.features li { margin: 6px 0; }
.features li::marker { color: var(--gold); }
.band .faq { max-width: 720px; margin: 8px auto 0; }

/* The ground: sun, gold ridge and Kinbyō standing on its flat stretch. */
.scene {
  position: relative;
  height: 220px;
  margin-top: 40px;
}
.scene svg.ridge { position: absolute; inset: auto 0 0 0; width: 100%; height: 220px; display: block; }
.sun {
  position: absolute;
  left: 11%;
  bottom: 150px;
  width: clamp(54px, 8vw, 84px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 38% 35%, #EF6442, #C7341D);
  box-shadow: 0 0 60px 18px rgba(240, 122, 74, 0.18);
}
.kinbyo {
  position: absolute;
  /* The ridge is flat from 70% to 86.7% of the width, 145 px above the bottom. */
  left: calc(78.3% - 32px);
  bottom: 145px;
  width: 64px;
  height: 80px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.kinbyo svg { width: 100%; height: 100%; display: block; shape-rendering: crispEdges; }
.kinbyo g { display: none; }
.kinbyo[data-frame="idle"] .k-idle, .kinbyo[data-frame="blink"] .k-blink, .kinbyo[data-frame="half"] .k-half,
.kinbyo[data-frame="closed"] .k-closed, .kinbyo[data-frame="hop"] .k-hop, .kinbyo[data-frame="happy"] .k-happy,
.kinbyo[data-frame="sleep0"] .k-sleep0, .kinbyo[data-frame="sleep1"] .k-sleep1 { display: inline; }
.kinbyo:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 4px; border-radius: 6px; }
@media (max-width: 480px) {
  .kinbyo { width: 48px; height: 60px; left: calc(78.3% - 24px); bottom: 146px; }
}

/* Footer: ink on the gold below the ridge on the landing, quiet on the inner pages. */
footer {
  padding: 18px 16px calc(22px + env(safe-area-inset-bottom));
  text-align: center;
  font-size: 14px;
}
footer nav { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 22px; }
footer.ground { background: var(--gold-deep); color: var(--ink); }
footer.ground a { color: var(--ink); font-weight: 600; }
footer.plain { border-top: 1px solid var(--line); color: var(--muted); margin-top: 48px; }
footer.plain a { color: var(--muted); }
footer small { display: block; margin-top: 8px; opacity: 0.8; }

/* Privacy and support. */
.page {
  flex: 1;
  width: 100%;
  max-width: 700px;
  margin: 0 auto;
  padding: 36px 16px 0;
}
.page h1 { font-size: clamp(36px, 8vw, 52px); }
.updated { margin: 10px 0 0; color: var(--muted); font-size: 14px; }
.page h2 {
  margin: 36px 0 8px;
  color: var(--gold);
  font: 600 22px/1.3 var(--serif);
}
.page p, .page li { color: var(--text); }
.page ul { padding-left: 1.2em; }
.page li { margin: 8px 0; }
.page li::marker { color: var(--gold); }
.lead { font-size: 19px; color: var(--muted); }
.mail {
  display: inline-block;
  margin-top: 6px;
  padding: 12px 20px;
  border-radius: 999px;
  background: var(--gold);
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}
.mail:hover { background: var(--gold-light); color: var(--ink); }
.faq dt { margin-top: 22px; font-weight: 700; }
.faq dd { margin: 6px 0 0; color: var(--muted); }

@media (prefers-reduced-motion: no-preference) {
  .langs button { transition: background 0.15s ease, color 0.15s ease; }
}
