/* Stoner Physics — shared styles */

:root {
  --bg: #ffffff;
  --surface: #f6f7f9;
  --fg: #14161a;
  --muted: #5f6673;
  --line: #e4e7ec;
  --accent: #3d5afe;
  --accent-soft: #eef1ff;
  --max: 68rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e1014;
    --surface: #161920;
    --fg: #e8eaee;
    --muted: #9aa2b1;
    --line: #262a33;
    --accent: #7c8cff;
    --accent-soft: #1a1f33;
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 400 17px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ---------- header ---------- */

header.site {
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  z-index: 10;
}

header.site .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.25rem;
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-weight: 650;
  font-size: 1.05rem;
  letter-spacing: -.01em;
  color: var(--fg);
  text-decoration: none;
}

.brand svg { display: block; }

nav.site {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

nav.site a {
  color: var(--muted);
  text-decoration: none;
  font-size: .95rem;
  padding: .25rem 0;
  border-bottom: 2px solid transparent;
}

nav.site a:hover { color: var(--fg); }
nav.site a[aria-current="page"] {
  color: var(--fg);
  border-bottom-color: var(--accent);
}

/* ---------- type ---------- */

h1, h2, h3 {
  letter-spacing: -.022em;
  line-height: 1.2;
  margin: 0 0 .6em;
}

h1 { font-size: clamp(2rem, 5vw, 3rem); font-weight: 700; }
h2 { font-size: clamp(1.4rem, 3vw, 1.85rem); font-weight: 650; margin-top: 2.5rem; }
h3 { font-size: 1.1rem; font-weight: 620; margin-top: 1.75rem; }

p { margin: 0 0 1.1rem; }

a { color: var(--accent); }

.lead {
  font-size: clamp(1.08rem, 2vw, 1.25rem);
  color: var(--muted);
  max-width: 44rem;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: .1em;
  font-size: .75rem;
  font-weight: 650;
  color: var(--accent);
  margin-bottom: .85rem;
}

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

section { padding: 4rem 0; }
section.hero { padding: 5.5rem 0 4rem; }
section.alt { background: var(--surface); border-block: 1px solid var(--line); }

.prose { max-width: 44rem; }
.prose ul { padding-left: 1.25rem; margin: 0 0 1.1rem; }
.prose li { margin-bottom: .45rem; }
.prose h2:first-child { margin-top: 0; }

/* ---------- grid + cards ---------- */

.grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  margin-top: 2rem;
}

.card {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.5rem;
  background: var(--bg);
}

.card h3 { margin-top: 0; }
.card p:last-child { margin-bottom: 0; }
.card .meta { font-size: .85rem; color: var(--muted); }

/* ---------- buttons ---------- */

.btn {
  display: inline-block;
  padding: .7rem 1.35rem;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-weight: 550;
  font-size: .95rem;
  border: 1px solid transparent;
}

.btn:hover { filter: brightness(1.08); }

.btn.ghost {
  background: transparent;
  color: var(--fg);
  border-color: var(--line);
}

.btn-row { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: 2rem; }

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

footer.site {
  border-top: 1px solid var(--line);
  background: var(--surface);
  padding: 3rem 0 2.5rem;
  font-size: .9rem;
  color: var(--muted);
  margin-top: 2rem;
}

footer.site .cols {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

footer.site a { color: var(--muted); text-decoration: none; }
footer.site a:hover { color: var(--fg); text-decoration: underline; }

footer.site nav { display: flex; flex-direction: column; gap: .5rem; }

footer.site .legal {
  border-top: 1px solid var(--line);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.addr { font-style: normal; line-height: 1.7; }

table.tbl {
  width: 100%;
  border-collapse: collapse;
  margin: 1.25rem 0 1.5rem;
  font-size: .95rem;
}

table.tbl th, table.tbl td {
  text-align: left;
  padding: .7rem .8rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

table.tbl th { font-weight: 620; }
