/* Edison Companion — site styles. One dark navy-and-gold theme, system fonts, no external requests. */
:root {
  --bg: #09152f;
  --bg-raised: #10203f;
  --bg-card: #132648;
  --line: #24386a;
  --text: #eef1f8;
  --muted: #a9b4cc;
  --gold: #e7c874;
  --gold-deep: #8a6a2a;
  --on-gold: #14213d;
  --radius: 14px;
  --maxw: 1080px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); text-underline-offset: 3px; }
a:hover { color: #f6dc97; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding-inline: 20px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--gold); color: var(--on-gold); padding: 8px 14px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 8px; }

/* header */
.site-header { border-bottom: 1px solid var(--line); background: rgba(9, 21, 47, 0.92); position: sticky; top: 0; backdrop-filter: blur(8px); z-index: 5; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; flex-wrap: wrap; padding-block: 8px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); font-weight: 700; font-size: 1.1rem; }
.brand img { width: 36px; height: 36px; border-radius: 9px; }
.brand span b { color: var(--gold); font-weight: 700; }
.nav { display: flex; gap: 22px; flex-wrap: wrap; }
.nav a { color: var(--muted); text-decoration: none; font-size: 0.97rem; padding-block: 6px; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); }

/* hero */
.hero { padding: 72px 0 56px; }
.hero .wrap { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: center; }
.eyebrow { color: var(--gold); text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.8rem; font-weight: 700; margin: 0 0 14px; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); line-height: 1.08; margin: 0 0 18px; letter-spacing: -0.02em; text-wrap: balance; }
h1 em { font-style: normal; color: var(--gold); }
.lede { font-size: 1.2rem; color: var(--muted); max-width: 34em; margin: 0 0 28px; }
.hero-art { display: flex; justify-content: center; }
.hero-art img { width: min(340px, 78%); border-radius: 28%; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45), 0 0 0 1px var(--line); }

.stores { display: flex; gap: 12px; flex-wrap: wrap; }
.store {
  display: inline-flex; flex-direction: column; justify-content: center; min-width: 190px; padding: 10px 18px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--bg-raised); color: var(--text); text-decoration: none; line-height: 1.25;
}
.store small { color: var(--muted); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; }
.store strong { font-size: 1.05rem; }
.store[aria-disabled="true"] { opacity: 0.75; cursor: default; }
.note { color: var(--muted); font-size: 0.92rem; margin: 14px 0 0; }

/* sections */
section { padding: 56px 0; }
section + section { border-top: 1px solid var(--line); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.1rem); line-height: 1.15; margin: 0 0 12px; letter-spacing: -0.01em; text-wrap: balance; }
.section-lede { color: var(--muted); max-width: 40em; margin: 0 0 32px; }
h3 { font-size: 1.15rem; margin: 0 0 6px; }

.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); }
.card { background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.card p { margin: 0; color: var(--muted); }
.card .tag { display: inline-block; font-size: 0.75rem; color: var(--on-gold); background: var(--gold); border-radius: 999px; padding: 2px 10px; margin-bottom: 10px; font-weight: 700; }

.steps { counter-reset: step; display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); padding: 0; margin: 0; list-style: none; }
.steps li { counter-increment: step; background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 22px 22px 22px; position: relative; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--gold); color: var(--on-gold); font-weight: 800; margin-bottom: 12px; }
.steps p { margin: 0; color: var(--muted); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.checks li { padding-left: 30px; position: relative; }
.checks li::before { content: ""; position: absolute; left: 0; top: 0.5em; width: 14px; height: 8px; border-left: 3px solid var(--gold); border-bottom: 3px solid var(--gold); transform: rotate(-45deg) translateY(-50%); }

details { background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius); padding: 0; margin-bottom: 12px; }
summary { cursor: pointer; padding: 16px 20px; font-weight: 650; list-style-position: inside; }
details[open] summary { border-bottom: 1px solid var(--line); }
details .a { padding: 14px 20px 18px; color: var(--muted); }
details .a p { margin: 0 0 10px; }
details .a p:last-child { margin: 0; }

/* article pages */
.page { padding: 56px 0 72px; }
.page .wrap { max-width: 760px; }
.page h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); }
.page h2 { font-size: 1.4rem; margin-top: 40px; }
.page p, .page li { color: #d3daea; }
.page ul { padding-left: 22px; }
.page li { margin-bottom: 6px; }
.updated { color: var(--muted); font-size: 0.92rem; margin-top: -6px; }
.callout { background: var(--bg-card); border: 1px solid var(--line); border-left: 4px solid var(--gold); border-radius: 10px; padding: 16px 20px; margin: 22px 0; }
.callout p { margin: 0; }
table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 0.97rem; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; color: #d3daea; overflow-wrap: anywhere; }
th { color: var(--text); }

/* footer */
.site-footer { border-top: 1px solid var(--line); padding: 36px 0 48px; color: var(--muted); font-size: 0.93rem; }
.site-footer .cols { display: grid; gap: 28px; grid-template-columns: 1.4fr 1fr 1fr; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--text); }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.site-footer .f-title { color: var(--text); }
.site-footer .f-p { margin: 8px 0 0; }
.site-footer .f-list { margin-top: 8px; }
.section-lede.tight { margin-bottom: 0; }
.site-footer .fine { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 18px; font-size: 0.85rem; }

@media (max-width: 820px) {
  .hero { padding-top: 44px; }
  .hero .wrap, .split, .site-footer .cols { grid-template-columns: 1fr; }
  .hero-art { order: -1; }
  .hero-art img { width: 150px; }
  .nav { gap: 16px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
