/* refiner.css — the Aether Refiner mini-site (q-portal-landing-page).
 *
 * Self-contained on purpose: everything under /refiner/ uses relative paths and its own stylesheet
 * so the directory can be served from refiner.thegreatcloudgame.life without a code change.
 * Same palette as portal.css (art-direction bible §3/§15) — one brand, two surfaces.
 */

:root {
  --ink: #0b1020;
  --panel: #131a2e;
  --panel-edge: rgba(255, 255, 255, 0.1);
  --text: #eef1f8;
  --text-dim: #c3cadb;
  --gold: #f0b440;
  --gold-bright: #ffd27a;
  --focus: #7fd4ff;
  --max: 900px;
  --radius: 16px;
}

* { box-sizing: border-box; }

body.refiner {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: 'Bricolage Grotesque', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

h1, h2, h3 { line-height: 1.2; margin: 0 0 0.5em; font-weight: 800; letter-spacing: -0.02em; }
p { margin: 0 0 1em; }
a { color: var(--gold-bright); }
code { font-family: 'Space Mono', ui-monospace, monospace; font-size: 0.92em; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }

.skip-to-content {
  position: absolute; left: -9999px; top: 0; z-index: 50;
  background: var(--gold); color: #17120a; padding: 0.75rem 1.25rem;
  font-weight: 700; text-decoration: none;
}
.skip-to-content:focus { left: 1rem; top: 1rem; }

/* ---------- hero ---------- */

.refiner-hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(2rem, 6vw, 4.5rem) clamp(1.25rem, 4vw, 2rem) clamp(1.5rem, 4vw, 2.5rem);
  border-bottom: 1px solid var(--panel-edge);
}
.refiner-hero.compact { padding-bottom: 1.5rem; }

.crumb {
  font-family: 'Space Mono', ui-monospace, monospace;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.crumb a { color: var(--gold); text-decoration: none; }
.crumb a:hover { text-decoration: underline; }

.refiner-hero h1 { font-size: clamp(2rem, 6vw, 3.25rem); margin-top: 0.6em; }
.lede { font-size: clamp(1.05rem, 2.2vw, 1.25rem); color: var(--text-dim); max-width: 34em; }
.updated { color: var(--text-dim); font-size: 0.95rem; }

.hero-meta {
  font-family: 'Space Mono', ui-monospace, monospace;
  font-size: 0.8rem;
  color: var(--text-dim);
  letter-spacing: 0.04em;
}

/* ---------- store badge ---------- */

.store { margin: 1.5rem 0 1rem; }

.store-soon,
.store-link {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.9rem 1.4rem;
  border-radius: 14px;
  text-decoration: none;
  font-weight: 700;
}
.store-soon {
  background: var(--panel);
  border: 1px dashed rgba(240, 180, 64, 0.6);
  color: var(--text-dim);
  cursor: default;
}
.store-link { background: var(--gold); color: #17120a; }
.store-link:hover { background: var(--gold-bright); }

.store-soon .store-lead,
.store-link .store-lead { display: block; font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 400; }
.store-soon .store-main,
.store-link .store-main { display: block; font-size: 1.05rem; }
.store-note { font-size: 0.85rem; color: var(--text-dim); margin: 0.6rem 0 0; }

/* ---------- sections ---------- */

main { display: block; }
main section {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 3.25rem) clamp(1.25rem, 4vw, 2rem);
}
main h2 { font-size: clamp(1.4rem, 3.2vw, 2rem); }
main p, main li { color: var(--text-dim); }
main strong { color: var(--text); }
.section-sub { color: var(--text-dim); }

.callout {
  background: var(--panel);
  border: 1px solid var(--panel-edge);
  border-left: 4px solid var(--gold);
  border-radius: 10px;
  padding: 1rem 1.25rem;
}

.how-grid { display: grid; grid-template-columns: 128px 1fr; gap: 1.5rem; align-items: start; }
.how-grid .motif { width: 128px; height: 128px; object-fit: contain; }
.how-grid ol { margin: 0; padding-left: 1.2rem; }
.how-grid li { margin-bottom: 0.9rem; }
@media (max-width: 620px) {
  .how-grid { grid-template-columns: 1fr; }
  .how-grid .motif { display: none; }
}

.shot-grid {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}
/* Empty slots, clearly empty. A placeholder that looked like a screenshot would be the exact
   thing this site promises not to do. */
.shot-slot {
  aspect-ratio: 9 / 16;
  border: 1px dashed rgba(255, 255, 255, 0.28);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1rem;
  color: var(--text-dim);
  font-family: 'Space Mono', ui-monospace, monospace;
  font-size: 0.78rem;
  background: rgba(255, 255, 255, 0.02);
}

.promise-list { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; gap: 1rem; }
.promise-list li {
  background: var(--panel);
  border: 1px solid var(--panel-edge);
  border-radius: var(--radius);
  padding: 1.1rem 1.35rem;
}
.promise-list h3 { font-size: 1.05rem; margin-bottom: 0.35rem; color: var(--text); }
.promise-list p { margin: 0; font-size: 0.95rem; }

.promise-scope {
  margin-top: 1.5rem;
  font-size: 0.95rem;
  border-top: 1px solid var(--panel-edge);
  padding-top: 1rem;
}

.legal-page main section { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.legal-page main ul { padding-left: 1.2rem; }
.legal-page main li { margin-bottom: 0.5rem; }

/* ---------- footer ---------- */

.refiner-footer {
  border-top: 1px solid var(--panel-edge);
  max-width: var(--max);
  margin: 2rem auto 0;
  padding: 2rem clamp(1.25rem, 4vw, 2rem) 3rem;
  color: var(--text-dim);
}
.refiner-footer nav { display: flex; flex-wrap: wrap; gap: 1rem 1.5rem; margin-bottom: 1rem; }
.refiner-footer a { color: var(--text); text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, 0.25); }
.refiner-footer a:hover { color: var(--gold-bright); }
.refiner-footer .small { font-size: 0.85rem; }
