/* HioneOS. Palette from the Hione press kit: Tally Amber, Deep Amber, Ice Blue, Gunmetal
   Black, Gunmetal, Stage Ivory. System fonts only, nothing loaded from third parties. */
:root {
  --amber: #ffab2e;
  --amber-deep: #8f5300;
  --ice: #8ec5ff;
  --black: #111216;
  --gun: #2b2f38;
  --gun-2: #1b1d23;
  --ivory: #f4efe6;
  --muted: #b8b2a8;
  --line: #3a3f4a;
  --radius: 10px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--black); color: var(--ivory);
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", sans-serif;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ice); }
a:hover { color: var(--amber); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .6em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); color: var(--amber); letter-spacing: .02em; }
h3 { font-size: 1.15rem; color: var(--ivory); }
p { margin: 0 0 1em; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--amber); color: var(--black); padding: 8px 12px; z-index: 50; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }

/* Top bar */
.bar { position: sticky; top: 0; z-index: 20; background: rgba(17, 18, 22, .92); border-bottom: 1px solid var(--line); }
@supports (backdrop-filter: blur(8px)) { .bar { background: rgba(17, 18, 22, .72); backdrop-filter: blur(10px); } }
.bar-in { display: flex; align-items: center; gap: 12px; min-height: 60px; }
.me { padding: 0; border: 2px solid var(--amber); border-radius: 50%; background: none; cursor: pointer; flex: none; width: 44px; height: 44px; overflow: hidden; }
.me img { width: 40px; height: 40px; }
.me:active { transform: scale(.94); }
.brand img { width: 110px; }
.bar nav { display: flex; gap: 4px; margin-left: auto; overflow-x: auto; scrollbar-width: none; }
.bar nav::-webkit-scrollbar { display: none; }
.bar nav a { color: var(--ivory); text-decoration: none; padding: 8px 10px; border-radius: 8px; white-space: nowrap; font-size: .95rem; }
.bar nav a:hover { background: var(--gun); color: var(--amber); }
.sound { flex: none; border: 1px solid var(--line); background: var(--gun-2); color: var(--ivory); border-radius: 999px; padding: 6px 12px; font: inherit; font-size: .85rem; cursor: pointer; }
.sound[aria-pressed="true"] { border-color: var(--amber); color: var(--amber); }
.sound[aria-pressed="true"] .off, .sound[aria-pressed="false"] .on { display: none; }
@media (max-width: 760px) {
  .brand { display: none; }
  .bar nav a { padding: 8px 7px; font-size: .9rem; }
}

/* Hero */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero picture img { width: 100%; height: clamp(420px, 62vh, 640px); object-fit: cover; object-position: 60% 30%; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(17, 18, 22, .92) 0%, rgba(17, 18, 22, .7) 45%, rgba(17, 18, 22, .1) 100%); }
.hero-in { position: absolute; inset: 0; z-index: 1; display: flex; flex-direction: column; justify-content: center; }
.hero-in > * { max-width: 34rem; }
.hero h1 img { width: min(430px, 80vw); }
.kicker { color: var(--ice); text-transform: uppercase; letter-spacing: .14em; font-size: .8rem; margin-bottom: .8em; }
.lede { font-size: clamp(1.1rem, 2.2vw, 1.35rem); }
.wip { color: var(--muted); }
@media (max-width: 700px) {
  .hero::after { background: linear-gradient(0deg, rgba(17, 18, 22, .96) 0%, rgba(17, 18, 22, .75) 55%, rgba(17, 18, 22, .2) 100%); }
  .hero-in { justify-content: flex-end; padding-bottom: 24px; }
}

/* Sections */
main > section { padding: 64px 0; }
main > section.hero { padding: 0; }
main > section.wrap { padding-left: 16px; padding-right: 16px; }
.band { background: var(--gun-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.two { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 40px; align-items: start; }
@media (max-width: 820px) { .two { grid-template-columns: 1fr; } }
figure { margin: 0; }
figcaption { color: var(--muted); font-size: .875rem; margin-top: 8px; }
.tall img { max-height: 560px; width: auto; margin: 0 auto; }
blockquote { margin: 0 0 1.2em; padding: 12px 16px; border-left: 3px solid var(--amber); background: var(--gun-2); border-radius: 0 var(--radius) var(--radius) 0; }
.name span[lang] { color: var(--ice); }
.ticks { list-style: none; padding: 0; margin: 0 0 1.2em; }
.ticks li { padding-left: 1.4em; position: relative; margin-bottom: .4em; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .55em; width: .6em; height: .6em; border: 2px solid var(--amber); border-radius: 50%; }
.steps { padding-left: 1.3em; }
.steps li { margin-bottom: .4em; }
.steps li::marker { color: var(--amber); font-weight: 700; }
table { border-collapse: collapse; width: 100%; margin: 0 0 1em; font-size: .92rem; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--amber); font-weight: 600; }
.btn { display: inline-block; border: 1px solid var(--amber); color: var(--amber); background: none; padding: 10px 16px; border-radius: 999px; text-decoration: none; font: inherit; cursor: pointer; }
.btn:hover { background: var(--amber); color: var(--black); }
.tool-mark { width: 150px; margin-bottom: 12px; }
button.open { padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: var(--radius); overflow: hidden; display: block; width: 100%; }
button.open img { border-radius: var(--radius); }

/* Gallery */
.group { margin-top: 36px; }
.group h3 { color: var(--ice); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.grid .open { aspect-ratio: 3 / 4; background: var(--gun-2); }
.grid .open img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; transition: transform .25s ease; }
.grid .open:hover img { transform: scale(1.04); }
.grid.wide .open { aspect-ratio: 16 / 10; }
@media (prefers-reduced-motion: reduce) { .grid .open img { transition: none; } }

/* Footer */
.foot { padding-top: 32px; padding-bottom: 96px; border-top: 1px solid var(--line); color: var(--muted); font-size: .92rem; }
.foot b { color: var(--ivory); }

/* What she just said */
.say { position: fixed; left: 16px; bottom: 16px; z-index: 30; display: flex; gap: 10px; align-items: center; max-width: min(420px, calc(100vw - 32px)); background: var(--gun); border: 1px solid var(--amber); border-radius: 999px; padding: 6px 16px 6px 6px; box-shadow: 0 8px 24px rgba(0, 0, 0, .45); }
.say[hidden] { display: none; }
.say img { width: 44px; height: 44px; border-radius: 50%; flex: none; }
.say p { margin: 0; font-size: .95rem; line-height: 1.35; }
.say.speaking img { box-shadow: 0 0 0 3px var(--amber); }

/* Viewer */
.viewer { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; color: var(--ivory); }
.viewer::backdrop { background: rgba(10, 10, 12, .92); }
.viewer[open] { display: flex; align-items: center; justify-content: center; }
.viewer figure { max-width: calc(100vw - 120px); text-align: center; }
.viewer figure img { max-height: calc(100vh - 100px); width: auto; margin: 0 auto; border-radius: 6px; }
.viewer figcaption { color: var(--ivory); font-size: 1rem; }
.viewer .x { position: fixed; top: 12px; right: 12px; background: var(--gun); color: var(--ivory); border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; font: inherit; cursor: pointer; }
.viewer .nav { background: var(--gun); color: var(--amber); border: 1px solid var(--line); border-radius: 50%; width: 44px; height: 44px; font-size: 1.6rem; line-height: 1; cursor: pointer; flex: none; margin: 0 8px; }
@media (max-width: 700px) {
  .viewer figure { max-width: 100vw; }
  .viewer .nav { position: fixed; bottom: 16px; }
  .viewer .prev { left: 16px; } .viewer .next { right: 16px; }
}
