/* xbom.wiki — muji + art deco + immersive scroll */

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

:root {
  --cream: #f0e8d8;
  --warm-white: #faf6f0;
  --orange: #c87030;
  --sienna: #a85828;
  --text: #2a2218;
  --text-muted: #7a6a50;
  --hud: #b8a888;
  --deco: #d4b888;
}

html, body {
  background:
    linear-gradient(180deg,
      var(--cream) 0%,
      var(--warm-white) 30%,
      var(--cream) 60%,
      var(--warm-white) 90%);
  color: var(--text);
  font-family: 'Noto Serif', Georgia, serif;
  font-size: 17px;
  line-height: 1.85;
  overflow-x: hidden;
}

body { position: relative; min-height: 200vh; }

/* HUD instruments rail */
.hud-rail {
  position: fixed;
  right: 4vw;
  top: 0;
  bottom: 0;
  width: 80px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-around;
  pointer-events: none;
  z-index: 50;
}
.hud {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  opacity: 0.85;
}
.hud-label {
  font-family: 'Courier Prime', ui-monospace, monospace;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text-muted);
}
.hud .needle { transform-origin: 24px 24px; transition: transform 0.2s linear; }

@media (max-width: 880px) { .hud-rail { display: none; } }

/* Hero */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  position: relative;
  text-align: center;
}
.hero-title {
  font-family: 'Josefin Sans', sans-serif;
  font-weight: 700;
  font-size: clamp(80px, 25vw, 360px);
  line-height: 0.85;
  letter-spacing: 0.02em;
  color: var(--orange);
  position: relative;
}
/* Art Deco sunburst around hero title */
.hero-title::before, .hero-title::after {
  content: "";
  position: absolute;
  top: 50%;
  height: 1px;
  background: var(--deco);
  width: 18vw;
  max-width: 320px;
}
.hero-title::before { right: 100%; margin-right: 2vw; box-shadow: 0 -10px 0 -0.4px var(--deco), 0 10px 0 -0.4px var(--deco); }
.hero-title::after { left: 100%; margin-left: 2vw; box-shadow: 0 -10px 0 -0.4px var(--deco), 0 10px 0 -0.4px var(--deco); }

.hero-sub {
  font-family: 'Josefin Sans', sans-serif;
  font-size: clamp(18px, 3vw, 36px);
  letter-spacing: 0.4em;
  color: var(--sienna);
  margin-top: 16px;
  font-weight: 400;
}
.hero-meta {
  font-family: 'Courier Prime', ui-monospace, monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--text-muted);
  margin-top: 36px;
}

#dock-sentinel { height: 1px; }

/* Docked title bar */
.dock-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 48px;
  background: var(--cream);
  border-bottom: 1px solid var(--deco);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Josefin Sans', sans-serif;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.32em;
  color: var(--orange);
  z-index: 100;
  transform: translateY(-100%);
  transition: transform 0.4s ease;
}
.dock-bar.docked { transform: translateY(0); }

/* Continuous content stream */
.content {
  max-width: 660px;
  margin: 0 auto;
  padding: 60px 24px 200px;
}

.content article {
  margin-bottom: 64px;
}

.content h2 {
  font-family: 'Josefin Sans', sans-serif;
  font-size: clamp(32px, 6vw, 72px);
  line-height: 1.05;
  font-weight: 700;
  color: var(--orange);
  margin-top: 64px;
  margin-bottom: 28px;
  position: relative;
  letter-spacing: 0.01em;
}
.content h2::after {
  content: "";
  display: block;
  margin-top: 12px;
  width: 60px;
  height: 1px;
  background: var(--deco);
  box-shadow: 0 5px 0 -0.4px var(--deco), 0 10px 0 -0.4px var(--deco);
}

.content p {
  margin-bottom: 1.2em;
}
.content p em {
  font-style: italic;
  color: var(--sienna);
}

/* Illustrations */
.illustration {
  margin: 48px auto;
  text-align: center;
}
.illustration svg { display: block; margin: 0 auto; max-width: 300px; }
.illustration figcaption {
  font-family: 'Courier Prime', ui-monospace, monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--text-muted);
  margin-top: 14px;
}

/* Footer */
.content footer {
  margin-top: 80px;
  text-align: center;
  padding-top: 40px;
  border-top: 1px solid var(--deco);
}
.foot-meta {
  font-family: 'Courier Prime', ui-monospace, monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--text-muted);
}

/* Scroll-triggered reveal */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}
