/* Responsibility: Define ReadOrbit's tokens, reset, typography, and global layout. */
/* Architecture: Foundational stylesheet loaded before reusable component styles. */
:root {
  --ink: #f4f1e8;
  --muted: #a7adba;
  --night: #080b14;
  --surface: #101522;
  --surface-2: #171d2c;
  --line: #293044;
  --accent: #8ee8d1;
  --warm: #f2a66f;
  --radius: 18px;
  --shell: min(1180px, calc(100% - 40px));
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, sans-serif;
  background: var(--night);
  color: var(--ink);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; background: radial-gradient(circle at 78% 8%, #14233a 0, transparent 32%), var(--night); }
body::before { content: ""; position: fixed; inset: 0; pointer-events: none; opacity: .26; background-image: radial-gradient(#fff 0.6px, transparent 0.7px); background-size: 31px 31px; mask-image: linear-gradient(to bottom, #000, transparent 60%); }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); text-underline-offset: .22em; }
a:hover { color: var(--accent); }
button, input, select, textarea { font: inherit; }
button, .button { border: 0; border-radius: 999px; padding: .82rem 1.15rem; background: var(--accent); color: #07120f; font-weight: 750; cursor: pointer; text-decoration: none; }
button:hover, .button:hover { background: #b5f5e5; color: #07120f; }
input, select, textarea { width: 100%; border: 1px solid var(--line); border-radius: 12px; padding: .82rem .9rem; color: var(--ink); background: #0b101b; }
input:focus, select:focus, textarea:focus, button:focus-visible, a:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 50%, transparent); outline-offset: 2px; }
textarea { min-height: 150px; resize: vertical; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: Iowan Old Style, Palatino Linotype, Book Antiqua, Georgia, serif; line-height: 1.04; font-weight: 500; }
h1 { font-size: clamp(3rem, 8vw, 6.8rem); letter-spacing: -.045em; }
h2 { font-size: clamp(2rem, 4vw, 3.25rem); letter-spacing: -.025em; }
h3 { font-size: 1.2rem; }
p { line-height: 1.65; color: var(--muted); }
em { color: var(--accent); font-weight: 400; }
.shell { width: var(--shell); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 20; left: 1rem; top: -4rem; padding: .7rem; background: var(--ink); color: var(--night); }
.skip-link:focus { top: 1rem; }
.site-header { position: relative; z-index: 3; width: var(--shell); min-height: 86px; margin: auto; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.site-header nav { display: flex; gap: 1.4rem; align-items: center; }
.site-header nav a { text-decoration: none; color: var(--muted); }
.site-header nav a:hover { color: var(--ink); }
.brand { display: flex; align-items: center; gap: .7rem; font-weight: 800; letter-spacing: -.02em; text-decoration: none; font-size: 1.15rem; }
.brand-mark { width: 30px; height: 30px; border: 1px solid var(--accent); border-radius: 50%; display: grid; place-items: center; transform: rotate(-24deg); }
.brand-mark::after { content: ""; width: 40px; height: 10px; border: 1px solid var(--accent); border-radius: 50%; position: absolute; }
.brand-mark i { width: 8px; height: 8px; background: var(--warm); border-radius: 50%; }
.inline { display: inline; }
.nav-button { padding: 0; background: transparent; color: var(--muted); font-weight: 500; }
.nav-cta { border: 1px solid var(--line); padding: .6rem 1rem; border-radius: 999px; }
main { position: relative; z-index: 1; min-height: calc(100vh - 190px); }
footer { position: relative; z-index: 1; width: var(--shell); margin: 7rem auto 0; padding: 2rem 0; border-top: 1px solid var(--line); display: flex; justify-content: space-between; color: var(--muted); font-size: .85rem; }

@media (max-width: 700px) {
  :root { --shell: min(100% - 24px, 1180px); }
  .site-header { min-height: 70px; align-items: flex-start; flex-direction: column; gap: .75rem; padding: .8rem 0; }
  .site-header nav { width: 100%; justify-content: space-between; gap: .55rem; font-size: .8rem; }
  .site-header nav > a:first-child { display: none; }
  footer { flex-direction: column; gap: .7rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
