:root {
  /* Pulled from the app's night theme tokens so the site reads as
     the same world, not a marketing skin bolted on. */
  --bg: #1A1F4A;
  --bg-2: #14173a;
  --bg-card: rgba(255, 255, 255, 0.04);
  --border: rgba(255, 255, 255, 0.10);
  --border-soft: rgba(255, 255, 255, 0.06);
  --text: #F4F0E8;
  --text-dim: #B8B3D6;
  --text-muted: #8784b3;
  --pink: #FF8FB3;
  --teal: #6FD6C9;
  --lemon: #F5D77A;
  --lavender: #B59DD8;
  --mint: #8FE0B0;
  --peach: #FFB38A;
  --ink: #211a33;
  --face: #d8d9ec;       /* the system gray of an old OS */
  --font: 'Atkinson Hyperlegible', -apple-system, 'Segoe UI', sans-serif;
  --display: 'Bricolage Grotesque', var(--font);
  --mono: 'Inconsolata', ui-monospace, monospace;
  --accent: var(--lavender);
  /* Chunky 3D bevels. The whole point of the era. */
  --raise: inset 2px 2px 0 rgba(255,255,255,0.55),
           inset -2px -2px 0 rgba(0,0,0,0.46),
           inset 3px 3px 0 rgba(255,255,255,0.16),
           inset -3px -3px 0 rgba(0,0,0,0.24);
  --sink: inset 2px 2px 0 rgba(0,0,0,0.5),
          inset -2px -2px 0 rgba(255,255,255,0.28);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background:
    repeating-linear-gradient(45deg, rgba(255,255,255,0.022) 0 2px, transparent 2px 9px),
    repeating-linear-gradient(-45deg, rgba(0,0,0,0.06) 0 2px, transparent 2px 9px),
    radial-gradient(900px 600px at 78% -8%, rgba(111,214,201,0.18), transparent 60%),
    radial-gradient(820px 600px at 8% 8%, rgba(255,143,179,0.15), transparent 55%),
    radial-gradient(720px 520px at 60% 110%, rgba(245,215,122,0.10), transparent 60%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
  background-attachment: fixed;
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  padding-top: 62px; /* menubar + marquee */
  cursor: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='28'%20height='28'%20viewBox='0%200%2028%2028'%3E%3Cg%20fill='%23F4F0E8'%20stroke='%2323203A'%20stroke-width='1.6'%3E%3Cellipse%20cx='14'%20cy='19'%20rx='6.5'%20ry='5'/%3E%3Cellipse%20cx='7'%20cy='12'%20rx='2.7'%20ry='3.2'/%3E%3Cellipse%20cx='12'%20cy='8'%20rx='2.7'%20ry='3.4'/%3E%3Cellipse%20cx='18'%20cy='8'%20rx='2.7'%20ry='3.4'/%3E%3Cellipse%20cx='22'%20cy='12'%20rx='2.7'%20ry='3.2'/%3E%3C/g%3E%3C/svg%3E") 12 16, auto;
}
a { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; }
code, .mono { font-family: var(--mono); }
code {
  background: rgba(0,0,0,0.32);
  padding: 1px 6px; border-radius: 0;
  box-shadow: var(--sink);
  font-size: 0.9em; color: var(--peach);
}
.wrap { max-width: 940px; margin: 0 auto; padding: 0 24px; }
h2 {
  font-family: var(--display);
  font-size: 1.78rem; font-weight: 700;
  letter-spacing: 0.01em; margin-bottom: 8px;
}
.section-kicker {
  font-family: var(--mono);
  font-size: 0.78rem; letter-spacing: 0.12em;
  text-transform: lowercase;
  color: var(--accent); margin-bottom: 20px;
}

/* ------------------------------------------------------------------ */
/*  maiko.os : a strange machine, last booted a long time ago.         */
/*  Chrome is late-90s-OS-meets-garish-old-web. Every window its own   */
/*  loud color, because one indigo is a crime.                         */
/* ------------------------------------------------------------------ */

/* The menubar: a beveled system strip, not part of the night sky. */
.menubar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 80;
  display: flex; align-items: center; gap: 5px;
  height: 34px; padding: 0 8px;
  font-family: var(--mono); font-size: 0.82rem;
  color: var(--ink);
  background: var(--face);
  box-shadow: var(--raise);
}
.menubar .brand {
  display: flex; align-items: center; gap: 7px;
  color: var(--ink); font-weight: 700;
  padding: 4px 12px; margin-right: 4px;
  background: var(--face); box-shadow: var(--raise);
}
.menubar .brand:active { box-shadow: var(--sink); }
.menubar .brand:hover { text-decoration: none; }
.menubar .menu {
  color: var(--ink); padding: 5px 11px;
}
.menubar .menu:hover {
  text-decoration: none; color: #fff;
  background: #3a2a78;
}
.menubar .menu[aria-current="page"] {
  color: #fff; background: #5a3aa8;
}
.menubar .spacer { flex: 1; }
.menubar .planet-mood {
  color: var(--ink); white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis; max-width: 42vw;
  padding: 4px 10px; background: var(--face);
  box-shadow: var(--sink);
}
.menubar .planet-mood b { color: #7a2f8f; font-weight: 700; }
.menubar .clock {
  color: var(--ink); padding: 4px 10px; margin-left: 5px;
  background: var(--face); box-shadow: var(--sink);
  font-weight: 700;
}
@media (max-width: 760px) {
  .menubar .menu { display: none; }
  .menubar .planet-mood { max-width: 40vw; }
}

/* A real marquee, because of course. Scrolls forever, like it always did. */
.boot {
  position: fixed; top: 34px; left: 0; right: 0; z-index: 70;
  height: 26px; overflow: hidden;
  background: #0c0e2c; box-shadow: var(--sink);
  display: flex; align-items: center;
}
.boot span {
  display: inline-block; white-space: nowrap;
  font-family: var(--mono); font-size: 0.8rem;
  color: var(--lemon); padding-left: 100%;
  animation: marquee 52s linear infinite;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-100%); }
}
@media (prefers-reduced-motion: reduce) {
  .boot span { animation: none; padding-left: 16px; }
}

/* The desktop label, painted on the wallpaper. */
.desktop-title { text-align: center; padding: 60px 24px 24px; }
.desktop-title .paw { font-size: 2.4rem; }
.desktop-title .eyebrow {
  font-family: var(--mono); font-size: 1.3rem;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--lavender); margin-bottom: 10px;
}
.desktop-title h1 {
  font-family: var(--display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700; line-height: 1.12;
  margin: 0 auto 16px; max-width: 880px;
  color: #fff;
  text-shadow: 2px 2px 0 #d4438a, 4px 4px 0 rgba(0,0,0,0.4);
}
.desktop-title .tagline {
  font-style: italic; color: var(--lemon);
  font-size: 0.85rem; letter-spacing: 0.02em;
}
.desktop-title .sub {
  max-width: 560px; margin: 16px auto 0;
  color: var(--text-dim); font-size: 1.05rem;
}

/* Faint desktop shortcuts down the left edge. Wide screens only. */
.desk-icons {
  position: fixed; left: 14px; top: 96px; z-index: 20;
  display: none; flex-direction: column; gap: 20px;
}
.desk-icons a {
  display: flex; flex-direction: column; align-items: center; gap: 5px;
  width: 78px; color: #fff;
  font-family: var(--mono); font-size: 0.72rem; text-align: center;
  text-shadow: 1px 1px 0 rgba(0,0,0,0.6);
}
.desk-icons a:hover { text-decoration: none; }
.desk-icons a:hover span:last-child {
  background: #3a2a78; outline: 1px dotted #fff; outline-offset: 2px;
}
.desk-icons .glyph {
  font-size: 1.7rem; transition: transform 0.15s steps(2);
}
.desk-icons a:hover .glyph { transform: translateY(-2px) rotate(-6deg); }
@media (min-width: 1280px) { .desk-icons { display: flex; } }

/* Per-window color. Set explicitly so it survives any nesting. */
.c-pink     { --accent: var(--pink); }
.c-teal     { --accent: var(--teal); }
.c-lemon    { --accent: var(--lemon); }
.c-lavender { --accent: var(--lavender); }
.c-mint     { --accent: var(--mint); }
.c-peach    { --accent: var(--peach); }

/* Side by side, so it is not one endless column. Stacks when narrow. */
.row {
  max-width: 1010px; margin: 42px auto; padding: 0 8px;
  display: grid; gap: 22px;
  grid-template-columns: 1fr 1fr; align-items: start;
}
.row.cols-3 { max-width: 1010px; grid-template-columns: 1fr 1fr 1fr; }
.row > .win { max-width: none; margin: 0; }
@media (max-width: 880px) {
  .row, .row.cols-3 { grid-template-columns: 1fr; }
}

/* Windows: hard-edged, beveled, dropped with a flat shadow. */
.win {
  position: relative;
  max-width: 880px; margin: 42px auto;
  background: #23274f;
  border-radius: 0;
  box-shadow: var(--raise), 7px 7px 0 rgba(0,0,0,0.45);
  transform: rotate(0deg);
  transition: transform 0.3s steps(6);
  padding: 4px;
}
.win:hover { transform: rotate(var(--tilt, 0deg)); }
.win.wide { max-width: 1000px; }
.win.narrow { max-width: 680px; }

/* Window-shade: rolled up to its title bar. Click the bar to toggle. */
.win-bar { cursor: inherit; }
.win:not(.closed) .win-title::after {
  content: " \25BE"; color: var(--ink); opacity: 0.55;
  font-size: 0.85em;
}
.win.rolled .win-title::after { content: " \25B8"; }
.win.rolled { box-shadow: var(--raise), 5px 5px 0 rgba(0,0,0,0.4); }
.win.rolled .win-body { display: none; }
.win.rolled .win-bar { box-shadow: var(--raise); }
.win-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 6px 6px 0;
  font-family: var(--display); font-weight: 700;
  background: linear-gradient(180deg,
    var(--accent),
    color-mix(in srgb, var(--accent) 58%, #160f2e));
  box-shadow: var(--raise);
}
.win-bar::before {
  content: ""; flex: none;
  width: 26px; height: 22px; margin-left: 4px;
  background: rgba(255,255,255,0.5)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='6' fill='%23FF8FB3'/%3E%3Cellipse cx='12' cy='12' rx='10.5' ry='3.6' fill='none' stroke='%23F5D77A' stroke-width='1.7' transform='rotate(-22 12 12)'/%3E%3C/svg%3E")
    center / 15px no-repeat;
  box-shadow: var(--raise);
}
.win-title {
  flex: 1; order: 2; text-align: left;
  font-size: 0.96rem; color: var(--ink);
  letter-spacing: 0.01em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  text-shadow: 1px 1px 0 rgba(255,255,255,0.3);
}
.win-bar::before { order: 1; }
/* The [_][o][x] cluster. The dots became real buttons. */
.win-dots { order: 3; display: flex; gap: 4px; flex: none; }
.win-dots i {
  width: 21px; height: 19px; display: flex;
  align-items: center; justify-content: center;
  background: var(--face); box-shadow: var(--raise);
  color: var(--ink); font-family: var(--mono);
  font-size: 0.8rem; font-style: normal; line-height: 1;
}
.win-dots i::after { content: "_"; transform: translateY(-3px); }
.win-dots i:nth-child(2)::after { content: "▢"; transform: none; }
.win-dots i:nth-child(3) { display: none; }
.win-x {
  order: 4; flex: none;
  width: 21px; height: 19px; margin-right: 4px;
  display: flex; align-items: center; justify-content: center;
  background: var(--face); box-shadow: var(--raise);
  color: var(--ink); font-size: 0.74rem; cursor: inherit;
  user-select: none;
}
.win-x:active, .win-dots i:active { box-shadow: var(--sink); }
.win-x:hover { color: #b3122f; }
.win-body {
  padding: 28px 30px 32px;
  background: #1c1f43; box-shadow: var(--sink);
  border-top: 3px solid color-mix(in srgb, var(--accent) 70%, #000);
}
@media (max-width: 620px) { .win-body { padding: 20px 16px 24px; } }

/* A window someone closed. Left as a beveled, minimized tab. */
.win.closed {
  transform: none; box-shadow: var(--raise); padding: 0;
  max-width: 360px; background: var(--face);
}
.win.closed .win-bar, .win.closed .win-body { display: none; }
.win.closed::after {
  content: attr(data-closed);
  display: block; text-align: center;
  font-family: var(--mono); font-size: 0.8rem;
  color: var(--ink); font-style: italic;
  padding: 10px 14px; cursor: inherit;
}

/* Marginalia. The annotations got more colorful too. */
.scrawl {
  position: absolute; z-index: 5;
  font-family: var(--font); font-style: italic;
  font-size: 0.92rem; color: var(--accent);
  opacity: 0.92; max-width: 230px; line-height: 1.35;
  transform: rotate(-3deg); pointer-events: none;
  text-shadow: 1px 1px 0 rgba(0,0,0,0.7);
}
.scrawl::before { content: "\21AA\00A0"; color: #fff; }
.scrawl.tr { top: -26px; right: -34px; transform: rotate(3deg); }
.scrawl.br { bottom: -30px; right: -26px; transform: rotate(-2deg); }
.scrawl.bl { bottom: -30px; left: -22px; transform: rotate(2deg); }
.scrawl.tl { top: -28px; left: -20px; transform: rotate(-3deg); }
.scrawl.plain::before { content: ""; }
@media (max-width: 1100px) { .scrawl { display: none; } }

/* ------------------------------------------------------------------ */
/*  Window contents. Same blocks, now wearing the era's clothes.       */
/* ------------------------------------------------------------------ */

.cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 6px; }
.btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 11px 22px; border-radius: 0;
  font-family: var(--font); font-weight: 700; font-size: 0.97rem;
  cursor: inherit; box-shadow: var(--raise);
  color: var(--ink);
}
.btn:active { box-shadow: var(--sink); transform: translateY(1px); }
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--pink); }
.btn-ghost { background: var(--face); }

.shot {
  display: block; width: 100%; height: auto;
  box-shadow: var(--sink); padding: 4px; background: #0c0e2c;
}
.shot-cap {
  font-family: var(--mono); font-size: 0.8rem;
  color: var(--text-muted); margin-top: 12px; text-align: center;
}

.lede-quote {
  font-size: 1.16rem; line-height: 1.7; color: var(--text);
  border-left: 4px solid var(--accent); padding-left: 18px;
}
.lede-quote span { color: var(--text-muted); }

.grid {
  display: grid; gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.card {
  background: #20244a; box-shadow: var(--sink);
  border-left: 4px solid var(--accent);
  padding: 18px 18px 18px 20px;
}
.card h3 {
  font-size: 1.03rem; margin-bottom: 6px;
  display: flex; align-items: baseline; gap: 8px;
}
.card h3 .dot {
  width: 9px; height: 9px; flex: none;
  box-shadow: 1px 1px 0 rgba(0,0,0,0.6);
}
.card p { color: var(--text-dim); font-size: 0.95rem; }
.card em { color: var(--text); font-style: italic; }
.card p + p { margin-top: 10px; }

.flow { display: flex; flex-direction: column; gap: 0; }
.flow-step {
  display: flex; gap: 16px; padding: 15px 0;
  border-bottom: 2px dotted rgba(255,255,255,0.14);
}
.flow-step:last-child { border-bottom: none; }
.flow-num {
  font-family: var(--mono); font-size: 0.95rem; font-weight: 700;
  color: var(--ink); background: var(--accent);
  box-shadow: var(--raise);
  flex: none; width: 30px; height: 24px;
  display: flex; align-items: center; justify-content: center;
}
.flow-step h3 { font-size: 1.0rem; margin-bottom: 3px; }
.flow-step p { color: var(--text-dim); font-size: 0.95rem; }

.gallery {
  display: grid; gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}
.gallery figure {
  background: #0c0e2c; box-shadow: var(--raise); padding: 4px;
}
.gallery img { width: 100%; height: auto; display: block; }
.gallery figcaption {
  padding: 10px 13px; font-size: 0.87rem; color: var(--text-dim);
}

/* Click-through screenshot gallery. */
.carousel {
  display: flex; align-items: center; gap: 10px;
}
.carousel .car-img { flex: 1; min-width: 0; }
.car-nav {
  flex: none; width: 38px; height: 38px;
  background: var(--face); box-shadow: var(--raise);
  color: var(--ink); font-size: 1.3rem; line-height: 1;
  cursor: inherit; display: flex; align-items: center; justify-content: center;
}
.car-nav:active { box-shadow: var(--sink); }
.car-meta { margin-top: 14px; display: grid; gap: 4px; }
.car-count {
  font-family: var(--mono); font-size: 0.78rem;
  letter-spacing: 0.12em; color: var(--accent);
}
.car-title {
  font-family: var(--display); font-weight: 700;
  font-size: 1.05rem; color: var(--text);
}
.car-desc { color: var(--text-dim); font-size: 0.95rem; }
@media (max-width: 620px) {
  .car-nav { width: 32px; height: 32px; font-size: 1.1rem; }
}

pre {
  background: #0a0c26; box-shadow: var(--sink);
  padding: 16px 18px; border-radius: 0;
  font-family: var(--mono); font-size: 0.9rem;
  color: var(--mint); overflow-x: auto; line-height: 1.7;
}
.install-note {
  margin-top: 14px; font-size: 0.92rem; color: var(--text-muted);
}

.stays-list { list-style: none; display: grid; gap: 10px; }
.stays-list li {
  padding-left: 26px; position: relative; color: var(--text-dim);
}
.stays-list li::before {
  content: ""; position: absolute; left: 0; top: 3px;
  width: 15px; height: 15px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='6' fill='%23FF8FB3'/%3E%3Cellipse cx='12' cy='12' rx='10.5' ry='3.6' fill='none' stroke='%23F5D77A' stroke-width='1.7' transform='rotate(-22 12 12)'/%3E%3C/svg%3E")
    center / contain no-repeat;
}
.stays-list strong { color: var(--text); }

.deeper {
  list-style: none; display: grid; gap: 4px;
  background: #0a0c26; box-shadow: var(--sink);
  padding: 8px;
}
.deeper li a {
  display: flex; gap: 12px; padding: 10px 13px;
  color: var(--text-dim); background: #20244a;
  box-shadow: var(--raise);
}
.deeper li a:hover {
  text-decoration: none; color: var(--text);
  background: #2b2f5e;
}
.deeper li a:active { box-shadow: var(--sink); }
.deeper .n {
  font-family: var(--mono); color: var(--accent);
  font-size: 0.85rem; flex: none; width: 18px;
}

footer {
  text-align: center; padding: 40px 24px 56px;
  color: var(--text-muted); font-size: 0.88rem;
  font-family: var(--mono);
}
footer a { color: var(--text-dim); }
.beta {
  display: inline-block; margin-top: 16px; padding: 6px 14px;
  background: var(--lemon); color: var(--ink); font-weight: 700;
  box-shadow: var(--raise);
  font-size: 0.8rem; font-family: var(--mono);
}

@media (prefers-reduced-motion: reduce) {
  .win, .desk-icons .glyph { transition: none; }
  .win { transform: none; }
  html { scroll-behavior: auto; }
}
