/* Orpheic — shared style for the release pages (index, download, privacy, credits).
   The older pages (self-host, pair, j) keep their own inline copy of the same palette. */
@font-face {
  font-family: 'EB Garamond';
  src: url('/fonts/ebgaramond.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
:root {
  --ink: #ece3d2;          /* parchment */
  --ink-dim: #a99f8c;
  --ink-faint: #6f685b;
  --ground: #12100d;       /* warm near-black */
  --ground-raised: #191510;
  --gold: #c9a25a;
  --gold-deep: #8a6c35;
  --rule: #2c2620;
  --measure: 34rem;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--ground);
  color: var(--ink);
  font-family: 'EB Garamond', 'Georgia', serif;
  font-size: 21px;
  line-height: 1.62;
  letter-spacing: .003em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
.wrap { max-width: 46rem; margin: 0 auto; padding: 0 1.6rem; }
.wide { max-width: 72rem; margin: 0 auto; padding: 0 1.6rem; }
a { color: var(--gold); text-decoration: none; border-bottom: 1px solid transparent; }
a:hover { border-bottom-color: var(--gold); }

/* --- top bar --- */
nav.top { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem;
  padding: 1.4rem 0; font-size: 1rem; }
nav.top .name { color: var(--ink); letter-spacing: .22em; text-transform: uppercase; font-size: .95rem;
  display: inline-flex; align-items: center; gap: .6rem; }
nav.top .name img { width: 1.15em; height: 1.15em; }
nav.top ul { list-style: none; display: flex; gap: 1.6rem; flex-wrap: wrap; }
nav.top ul a { color: var(--ink-dim); }
nav.top ul a:hover, nav.top ul a[aria-current] { color: var(--gold); }
@media (max-width: 520px) { nav.top { font-size: .9rem; } nav.top ul { gap: .9rem; } nav.top .name { font-size: .85rem; } }

/* --- masthead --- */
header.hero { padding: 14vh 0 7vh; }
.mark { font-size: clamp(2.6rem, 10vw, 5.2rem); line-height: 1; letter-spacing: .14em; text-transform: uppercase; font-weight: 400; }
.tagline { margin-top: 1.6rem; font-size: clamp(1.2rem, 3.4vw, 1.7rem);
  color: var(--ink-dim); max-width: var(--measure); font-style: italic; }
.badge { display: inline-block; font-size: .8rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--gold); border: 1px solid var(--rule); border-radius: 2rem;
  padding: .3rem .9rem; margin-bottom: 2.2rem; }
.actions { margin-top: 2.6rem; display: flex; flex-wrap: wrap; gap: 1rem 1.6rem; align-items: center; }
.btn { display: inline-block; background: var(--gold); color: #1a140b; border: 0;
  padding: .7rem 1.6rem; border-radius: 2rem; font-size: 1.1rem; letter-spacing: .02em; }
.btn:hover { background: #d9b46e; border: 0; }
.btn.ghost { background: transparent; color: var(--gold); border: 1px solid var(--gold-deep); }
.btn.ghost:hover { border-color: var(--gold); }
.actions .aside { color: var(--ink-faint); font-size: .95rem; font-style: italic; }

/* --- screenshots --- */
figure.shot { margin: 0; }
figure.shot img { display: block; width: 100%; height: auto; border-radius: 10px;
  border: 1px solid var(--rule); box-shadow: 0 30px 80px rgba(0,0,0,.55); }
figure.shot figcaption { color: var(--ink-faint); font-size: .95rem; font-style: italic;
  margin-top: .9rem; text-align: center; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem; }
@media (max-width: 760px) { .pair { grid-template-columns: 1fr; } }

/* --- sections --- */
section { padding: 7vh 0; border-top: 1px solid var(--rule); }
section.flush { border-top: 0; padding-top: 0; }
h1 { font-weight: 400; font-size: clamp(2.4rem, 7vw, 3.6rem); line-height: 1.1; margin-bottom: 1.2rem; }
h2 { font-weight: 400; font-size: 1rem; letter-spacing: .28em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 1.7rem; }
h3 { font-weight: 400; font-size: 1.9rem; line-height: 1.2; margin: 0 0 .6rem; }
h4 { font-weight: 400; font-size: 1.35rem; margin: 2rem 0 .5rem; }
p { max-width: var(--measure); margin: 0 0 1.1rem; color: var(--ink); }
p.lead { font-size: 1.28rem; }
p .dim, .dim { color: var(--ink-dim); }
.stack > * + * { margin-top: 3.2rem; }
.claim { max-width: var(--measure); }
.claim p { color: var(--ink-dim); font-size: 1.05rem; }
ul.plain { list-style: none; max-width: var(--measure); }
ul.plain li { padding: .55rem 0; border-bottom: 1px solid var(--rule); color: var(--ink-dim); }
ul.plain li b { color: var(--ink); font-weight: 400; }
.note { color: var(--ink-faint); font-size: .95rem; font-style: italic; }
code, pre { font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace; font-size: .8em; color: var(--ink); }
code { background: var(--ground-raised); padding: .12em .4em; border-radius: 4px; }
pre { background: var(--ground-raised); border: 1px solid var(--rule); border-radius: 8px;
  padding: 1rem 1.2rem; overflow-x: auto; line-height: 1.55; margin: .4rem 0 1.2rem; }

/* --- download cards --- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 1.4rem; }
.card { background: var(--ground-raised); border: 1px solid var(--rule); border-radius: 12px; padding: 1.6rem 1.6rem 1.4rem; }
.card h3 { font-size: 1.6rem; }
.card p { font-size: 1rem; color: var(--ink-dim); }
.card .btn { margin: .4rem 0 .8rem; font-size: 1rem; }
.card .meta { font-size: .85rem; color: var(--ink-faint); font-family: ui-monospace, Menlo, Consolas, monospace;
  word-break: break-all; }
.card.here { border-color: var(--gold-deep); }

/* --- tables (privacy, credits) --- */
table { border-collapse: collapse; width: 100%; font-size: 1rem; }
th, td { text-align: left; vertical-align: top; padding: .7rem .9rem .7rem 0; border-bottom: 1px solid var(--rule); }
th { font-weight: 400; color: var(--gold); font-size: .8rem; letter-spacing: .18em; text-transform: uppercase; }
td { color: var(--ink-dim); }
td b { color: var(--ink); font-weight: 400; }
.scroll { overflow-x: auto; }

/* Draft marker: anything that must be filled in before this goes live.
   Search the source for class="tbd" — there must be none left on release day. */
.tbd { outline: 1px dashed #e0a040; outline-offset: 3px; }

footer { padding: 8vh 0 10vh; border-top: 1px solid var(--rule); color: var(--ink-faint); font-size: .95rem; }
footer p { color: var(--ink-faint); }
footer ul { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem 1.6rem; margin-bottom: 1.2rem; }
footer a { color: var(--ink-dim); }

/* --- "coming soon" in a download card --- */
.card .soon { display: inline-block; margin: .4rem 0 .2rem; color: var(--ink-faint); font-style: italic;
  border: 1px dashed var(--rule); border-radius: 2rem; padding: .45rem 1.2rem; font-size: 1rem; }
