/* Harmonious Us: public site. Space-navy ground, light type, teal accent, warm planet colours. */
:root {
  --ink: #070b16;
  --ink-2: #0b1222;
  --panel: #101a2e;
  --line: #22304a;
  --text: #eef3f8;
  --muted: #a8b6ca;
  --teal: #4fd6c4;
  --teal-deep: #0f8f84;
  --warm: #f0b25f;
  --max: 1180px;
  --display: "Bahnschrift", "DIN Alternate", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --body: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ink); color: var(--text); font: 17px/1.6 var(--body); overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); }
a:hover { color: #8eeadd; }
:focus-visible { outline: 3px solid var(--warm); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3 { font-family: var(--display); line-height: 1.12; margin: 0 0 .5em; font-weight: 700; letter-spacing: .01em; }
h2, .h3 { font-size: clamp(1.7rem, 3.4vw, 2.7rem); text-wrap: balance; }
h2.h3 { font-size: clamp(1.3rem, 2.2vw, 1.7rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--warm); color: #111; padding: 10px 14px; font-weight: 700; }
.skip:focus { top: 12px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 780px; }
.label { font-family: var(--display); text-transform: uppercase; letter-spacing: .22em; font-size: .78rem; color: var(--teal); margin: 0 0 14px; }
.lead { font-size: 1.12rem; color: var(--muted); max-width: 62ch; }
.fine { font-size: .9rem; color: var(--muted); }
.text-link { font-weight: 600; }
.notice { border: 1px solid var(--line); border-left: 4px solid var(--warm); background: var(--panel); padding: 16px 18px; max-width: 60ch; }
.prose p { color: #d5deea; }
.prose h2 { font-size: 1.4rem; margin-top: 1.4em; }
.prose ul { list-style: disc; padding-left: 1.2em; margin-bottom: 1em; color: #d5deea; }

/* announcement */
.announce { background: var(--warm); color: #1a1206; text-align: center; padding: 9px 16px; font-weight: 600; font-size: .95rem; }
.announce p { margin: 0; }
.announce a { color: #1a1206; }

/* header */
.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 20px; padding: 12px 24px; background: rgba(7, 11, 22, .9); backdrop-filter: blur(8px); border-bottom: 1px solid rgba(255, 255, 255, .07); }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-family: var(--display); font-weight: 700; text-transform: uppercase; letter-spacing: .16em; font-size: .98rem; white-space: nowrap; }
.brand-mark { width: 26px; height: 26px; color: var(--teal); flex: none; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.nav a { color: #d9e2ee; text-decoration: none; padding: 9px 12px; font-size: .92rem; font-weight: 600; border-radius: 4px; }
.nav a:hover, .nav a[aria-current] { color: #fff; background: rgba(255, 255, 255, .08); }
.nav .nav-cta { background: var(--teal); color: #04221f; margin-left: 8px; padding: 9px 18px; }
.nav .nav-cta:hover, .nav .nav-cta[aria-current] { background: #8eeadd; color: #04221f; }
.menu-button { display: none; margin-left: auto; width: 46px; height: 46px; background: transparent; border: 1px solid var(--line); border-radius: 6px; color: var(--text); cursor: pointer; }
.menu-bars, .menu-bars::before, .menu-bars::after { display: block; width: 20px; height: 2px; background: currentColor; margin: 0 auto; position: relative; content: ""; }
.menu-bars::before { position: absolute; top: -6px; }
.menu-bars::after { position: absolute; top: 6px; }

/* buttons */
.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 12px 26px; font-family: var(--display); font-weight: 700; text-transform: uppercase; letter-spacing: .1em; font-size: .92rem; text-decoration: none; border-radius: 4px; border: 2px solid transparent; }
.button span { font-weight: 400; letter-spacing: 0; text-transform: none; opacity: .8; font-size: .85rem; }
.button.primary { background: var(--teal); color: #04221f; }
.button.primary:hover { background: #8eeadd; color: #04221f; }
.button.ghost { border-color: rgba(255, 255, 255, .45); color: #fff; background: rgba(7, 11, 22, .35); }
.button.ghost:hover { border-color: #fff; color: #fff; background: rgba(255, 255, 255, .1); }
.button.wide { width: 100%; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 26px 0 0; }

/* hero */
.hero { position: relative; min-height: min(88vh, 860px); display: flex; align-items: flex-end; overflow: hidden; isolation: isolate; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 40%; z-index: -3; }
.hero-shade { position: absolute; inset: 0; z-index: -2; background: linear-gradient(180deg, rgba(7, 11, 22, .55) 0%, rgba(7, 11, 22, .05) 30%, rgba(7, 11, 22, .35) 62%, rgba(7, 11, 22, .92) 90%, var(--ink) 100%), linear-gradient(90deg, rgba(7, 11, 22, .82) 0%, rgba(7, 11, 22, .45) 38%, rgba(7, 11, 22, 0) 70%); }
.hero-ridge { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 120px; z-index: -1; }
.ridge-far { fill: #0c1528; opacity: .8; }
.ridge-near { fill: var(--ink); }
.hero-inner { width: 100%; max-width: var(--max); margin: 0 auto; padding: 130px 24px 150px; }
.kicker { font-family: var(--display); text-transform: uppercase; letter-spacing: .2em; font-size: .82rem; color: var(--teal); margin-bottom: 14px; }
.hero h1 { font-size: clamp(2.7rem, 9.4vw, 7rem); text-transform: uppercase; letter-spacing: .03em; line-height: .95; margin-bottom: .22em; text-shadow: 0 4px 30px rgba(0, 0, 0, .5); overflow-wrap: anywhere; }
.hero-sub { font-family: var(--display); font-size: clamp(1.25rem, 2.6vw, 2rem); font-weight: 600; margin-bottom: .5em; }
.hero-text { max-width: 54ch; font-size: 1.1rem; color: #dbe4ef; }
.hero-version { margin: 26px 0 0; font-size: .92rem; color: #cdd7e4; display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; }
.hero-version strong { color: #fff; font-family: var(--display); letter-spacing: .04em; }
.hero-version span { padding-left: 14px; border-left: 1px solid rgba(255, 255, 255, .3); }
.motes i { position: absolute; z-index: -1; width: 5px; height: 5px; background: #c9fff6; opacity: 0; transform: rotate(45deg); animation: mote 14s linear infinite; }
.motes i:nth-child(1) { left: 12%; bottom: 20%; animation-delay: 0s; }
.motes i:nth-child(2) { left: 28%; bottom: 34%; animation-delay: 3s; }
.motes i:nth-child(3) { left: 46%; bottom: 16%; animation-delay: 6s; }
.motes i:nth-child(4) { left: 61%; bottom: 40%; animation-delay: 1.5s; }
.motes i:nth-child(5) { left: 74%; bottom: 24%; animation-delay: 8s; }
.motes i:nth-child(6) { left: 86%; bottom: 44%; animation-delay: 4.5s; }
.motes i:nth-child(7) { left: 38%; bottom: 52%; animation-delay: 10s; }
.motes i:nth-child(8) { left: 93%; bottom: 14%; animation-delay: 12s; }
@keyframes mote { 0% { opacity: 0; translate: 0 0; } 15% { opacity: .7; } 85% { opacity: .5; } 100% { opacity: 0; translate: 30px -180px; } }

/* bands */
.band { padding: clamp(60px, 9vw, 120px) 0; }
.band-deep { background: var(--ink-2); border-block: 1px solid rgba(255, 255, 255, .05); }
.band .wrap + .wrap { margin-top: 48px; }
.page-head { padding: clamp(60px, 9vw, 110px) 0 10px; background: linear-gradient(180deg, #0d1830, var(--ink)); }
.page-head h1 { font-size: clamp(2.2rem, 6vw, 4.2rem); text-transform: uppercase; letter-spacing: .02em; }

.highlights, .features, .worlds, .gallery, .news-grid, .modes, .req-grid { display: grid; gap: 22px; }
.highlights { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.highlights li { border-top: 3px solid var(--teal); padding-top: 18px; }
.highlights p, .features p, .world p, .modes p { color: var(--muted); margin: 0; }

.creed { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; margin: 34px 0; counter-reset: creed; }
.creed li { background: var(--panel); padding: 28px 24px; font-family: var(--display); font-size: clamp(1.15rem, 2vw, 1.55rem); font-weight: 600; clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 50%, calc(100% - 22px) 100%, 0 100%); }
.creed li:last-child { clip-path: none; }
.creed span { display: block; color: var(--warm); text-transform: uppercase; letter-spacing: .2em; font-size: .78rem; margin-bottom: 6px; }
.path { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 18px; }
.path li { display: flex; align-items: center; gap: 10px; padding: 10px 16px 10px 12px; border: 1px solid var(--line); border-radius: 4px; font-family: var(--display); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; font-size: .86rem; background: rgba(255, 255, 255, .02); }
.path-n { color: var(--teal); font-size: .76rem; }
.path li:nth-child(n+6) .path-n { color: var(--warm); }
.features { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.features li { background: var(--panel); border: 1px solid var(--line); padding: 22px; border-radius: 6px; }
.tag { display: inline-block; font-family: var(--display); font-size: .7rem; text-transform: uppercase; letter-spacing: .14em; padding: 4px 9px; border-radius: 3px; margin-bottom: 12px; font-weight: 700; }
.tag-now { background: var(--teal); color: #04221f; }
.tag-dev { background: var(--warm); color: #2a1a04; }
.tag-plan { background: #2a3852; color: #dbe4ef; }

.worlds { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); margin-top: 34px; }
.world { background: var(--panel); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; display: flex; flex-direction: column; }
.world-img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.world-body { padding: 20px 22px 24px; border-top: 3px solid var(--line); flex: 1; }
.world h3 { font-size: 1.5rem; text-transform: uppercase; letter-spacing: .08em; }
.world-origin .world-body { border-color: #6bbf6a; }
.world-khepra .world-body { border-color: #e2793d; }
.world-nivara .world-body { border-color: #a9d8f0; }
.world-pelagos .world-body { border-color: #38b9c9; }
.world-viridia .world-body { border-color: #9a6fd0; }
.world-astraea .world-body { border-color: #c9b06a; }

.modes { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); margin-top: 30px; }
.modes article { background: var(--panel); border: 1px solid var(--line); border-left: 4px solid var(--teal); padding: 26px; border-radius: 6px; }
.modes h3 { font-size: 1.4rem; }

/* release */
.facts { display: flex; flex-wrap: wrap; gap: 12px 34px; margin: 0 0 22px; }
.facts dt { font-family: var(--display); text-transform: uppercase; letter-spacing: .16em; font-size: .72rem; color: var(--muted); }
.facts dd { margin: 0; font-family: var(--display); font-size: 1.5rem; font-weight: 700; }
.notes { list-style: none; display: grid; gap: 10px; margin: 0 0 18px; }
.notes li { padding-left: 22px; position: relative; color: #d5deea; }
.notes li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 8px; height: 8px; background: var(--teal); transform: rotate(45deg); }
.alpha { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(260px, 1fr); gap: 40px; margin-top: 26px; align-items: start; }
.alpha-side { background: var(--panel); border: 1px solid var(--line); padding: 24px; border-radius: 6px; }
.plain { margin: 18px 0; display: grid; gap: 8px; }
.plain span { color: var(--muted); font-size: .9rem; }

.req-grid { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); margin-top: 26px; }
.req { background: var(--panel); border: 1px solid var(--line); border-radius: 6px; padding: 22px; min-width: 0; }
.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: .93rem; }
th, td { text-align: left; vertical-align: top; padding: 9px 10px 9px 0; border-bottom: 1px solid var(--line); }
thead th { font-family: var(--display); text-transform: uppercase; letter-spacing: .12em; font-size: .72rem; color: var(--teal); }
tbody th { color: var(--muted); font-weight: 600; white-space: nowrap; }
tr:last-child th, tr:last-child td { border-bottom: 0; }

.gallery { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); margin-top: 26px; }
.gallery figure { margin: 0; }
.gallery img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; border-radius: 6px; border: 1px solid var(--line); }
.gallery figcaption { font-size: .9rem; color: var(--muted); padding-top: 8px; }

.news-grid { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); margin: 26px 0; }
.news-card { background: var(--panel); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.news-card img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.news-card-body { padding: 22px; }
.news-card time, .article time { font-family: var(--display); text-transform: uppercase; letter-spacing: .14em; font-size: .74rem; color: var(--warm); }
.news-card h3 { margin-top: 8px; font-size: 1.3rem; }
.news-card h3 a { color: var(--text); text-decoration: none; }
.news-card h3 a:hover { color: var(--teal); }
.news-card p { color: var(--muted); margin: 0; }
.article { padding: clamp(50px, 8vw, 100px) 0; }
.article h1 { font-size: clamp(2rem, 5vw, 3.4rem); margin-top: 10px; overflow-wrap: anywhere; }
.article-img { border-radius: 6px; margin: 20px 0; }

/* download */
.dl-main { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 34px; margin: 10px 0 60px; align-items: start; }
.dl-launcher { background: linear-gradient(140deg, #12314a, var(--panel)); border: 1px solid #2a5670; border-radius: 8px; padding: clamp(22px, 4vw, 38px); }
.dl-launcher .ver { font-size: .6em; color: var(--teal); letter-spacing: .08em; }
.hashes, .pkg details { margin-top: 18px; font-size: .88rem; color: var(--muted); }
summary { cursor: pointer; padding: 6px 0; }
code { font-family: Consolas, "SFMono-Regular", Menlo, monospace; font-size: .82rem; overflow-wrap: anywhere; color: #cfe9e5; }
.pkgs { display: grid; gap: 14px; margin: 22px 0; }
.pkg { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 24px; align-items: center; background: var(--panel); border: 1px solid var(--line); border-radius: 6px; padding: 20px 22px; }
.pkg h3 { margin-bottom: 4px; }
.pkg p { margin: 0; color: var(--muted); }
.pkg .file { font-size: .9rem; overflow-wrap: anywhere; }
.pkg details { grid-column: 1 / -1; margin-top: 0; }

/* footer */
.foot { border-top: 1px solid var(--line); background: #050810; padding: 46px 0 34px; font-size: .93rem; color: var(--muted); }
.foot-inner { max-width: var(--max); margin: 0 auto; padding: 0 24px; display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 24px 40px; }
.foot-brand strong { font-family: var(--display); text-transform: uppercase; letter-spacing: .16em; color: var(--text); }
.foot-brand p { margin: 8px 0 0; max-width: 52ch; }
.foot-links { display: grid; gap: 8px; align-content: start; }
.foot-legal { grid-column: 1 / -1; margin: 0; padding-top: 18px; border-top: 1px solid var(--line); }

@media (max-width: 900px) {
  .alpha, .dl-main, .foot-inner { grid-template-columns: minmax(0, 1fr); }
  .creed { grid-template-columns: 1fr; }
  .creed li { clip-path: none; }
  .js .menu-button { display: block; }
  .js .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; padding: 10px 16px 18px; background: var(--ink); border-bottom: 1px solid var(--line); }
  .js .nav.open { display: flex; }
  .js .nav a { padding: 14px 12px; font-size: 1.05rem; }
  .js .nav .nav-cta { margin: 10px 0 0; text-align: center; }
  .top { flex-wrap: wrap; }
  .hero-inner { padding: 110px 20px 90px; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .wrap, .foot-inner { padding: 0 18px; }
  .top { padding: 10px 16px; }
  .actions .button { width: 100%; }
  .pkg { grid-template-columns: minmax(0, 1fr); }
  .hero-version span { padding-left: 0; border-left: 0; }
  .hero-version { flex-direction: column; align-items: flex-start; gap: 2px; }
  .worlds, .features, .modes, .req-grid, .gallery, .news-grid, .highlights { grid-template-columns: minmax(0, 1fr); }
  tbody th { white-space: normal; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .motes { display: none; }
  * { animation: none !important; transition: none !important; }
}
