/* AthenaSoft — athenallc.info
   One stylesheet for every page. No JavaScript, no external requests.
   Design notes: ../../DESIGN.md */

/* ---------- Type ---------- */

@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/inter-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: optional;
}

/* Metric-matched fallback so a page drawn without Inter keeps the same layout. */
@font-face {
  font-family: "Inter Fallback";
  src: local("Arial"), local("Helvetica Neue"), local("Liberation Sans"), local("Roboto");
  size-adjust: 107%;
  ascent-override: 90%;
  descent-override: 22.5%;
  line-gap-override: 0%;
}

/* ---------- Palette ---------- */

:root {
  color-scheme: light dark;

  --bg: #fbfaf7;
  --surface: #f3f1eb;
  --text: #1b1d22;
  --muted: #5b6168;
  --accent: #1e6b60;
  --accent-strong: #16544b;
  --border: #e2dfd7;
  --glow: rgba(30, 107, 96, 0.10);

  --font: "Inter", "Inter Fallback", system-ui, -apple-system, "Segoe UI", sans-serif;
  --measure: 42rem;
  --gutter: clamp(1.25rem, 5vw, 2rem);
  --radius: 12px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #16181d;
    --surface: #1e2127;
    --text: #eceae4;
    --muted: #a3a8b0;
    --accent: #6fcdb9;
    --accent-strong: #8edccb;
    --border: #2c3038;
    --glow: rgba(111, 205, 185, 0.09);
  }
}

/* ---------- Base ---------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  overflow-wrap: break-word;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: clamp(1rem, 0.95rem + 0.3vw, 1.0625rem);
  line-height: 1.6;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

main {
  flex: 1 0 auto;
}

main:focus {
  outline: none;
}

h1,
h2,
h3 {
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.15;
  text-wrap: balance;
}

p,
ul,
ol {
  margin: 0 0 1rem;
}

a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  text-decoration-color: color-mix(in srgb, var(--accent) 50%, transparent);
  transition: color 120ms ease, text-decoration-color 120ms ease;
}

a:hover {
  color: var(--accent-strong);
  text-decoration-color: currentColor;
}

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

::selection {
  background: color-mix(in srgb, var(--accent) 25%, transparent);
}

svg {
  display: block;
}

.mark-dot {
  fill: var(--accent);
}

/* ---------- Skip link ---------- */

.skip {
  position: absolute;
  top: -5rem;
  left: 1rem;
  z-index: 10;
  padding: 0.75rem 1rem;
  background: var(--accent);
  color: var(--bg);
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
}

.skip:focus {
  top: 1rem;
}

/* ---------- Header ---------- */

.site-header {
  border-bottom: 1px solid var(--border);
}

.site-header .bar {
  max-width: var(--measure);
  margin-inline: auto;
  padding: 0.625rem var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 44px;
  color: var(--text);
  font-weight: 600;
  font-size: 1.0625rem;
  letter-spacing: -0.015em;
  text-decoration: none;
}

.brand:hover {
  color: var(--text);
}

.brand svg {
  width: 26px;
  height: 26px;
  color: var(--text);
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 0.125rem;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 0.75rem;
  color: var(--muted);
  font-weight: 500;
  font-size: 0.9375rem;
  text-decoration: none;
  border-radius: 8px;
  transition: color 120ms ease, background-color 120ms ease;
}

.site-nav a:hover {
  color: var(--text);
  background: var(--surface);
}

.site-nav a[aria-current="page"] {
  color: var(--text);
  box-shadow: inset 0 -2px 0 var(--accent);
  border-radius: 0;
}

@media (max-width: 26em) {
  .site-header .bar {
    gap: 0 0.5rem;
  }

  .brand {
    gap: 0.5rem;
  }

  .site-nav a {
    padding: 0 0.5rem;
  }
}

/* ---------- Home ---------- */

.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(60rem 28rem at 92% -6rem, var(--glow), transparent 70%);
}

.hero .inner {
  position: relative;
  max-width: var(--measure);
  margin-inline: auto;
  padding: clamp(3.5rem, 12vh, 7.5rem) var(--gutter) clamp(3.5rem, 10vh, 6rem);
}

.hero-deco {
  position: absolute;
  top: -8%;
  right: -22%;
  width: min(62vw, 48rem);
  height: auto;
  color: var(--text);
  opacity: 0.045;
  pointer-events: none;
}

.hero .mark {
  width: clamp(56px, 8vw, 76px);
  height: auto;
  color: var(--text);
  margin-bottom: clamp(1.5rem, 4vh, 2.5rem);
}

.hero h1 {
  margin: 0 0 1.25rem;
  font-size: clamp(2.875rem, 2rem + 3.6vw, 4.75rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 0.98;
}

.hero .lede {
  margin: 0 0 0.875rem;
  max-width: 30ch;
  font-size: clamp(1.3125rem, 1.05rem + 1.1vw, 1.875rem);
  font-weight: 450;
  line-height: 1.3;
  letter-spacing: -0.015em;
  text-wrap: pretty;
}



/* ---------- Content pages ---------- */

.page {
  max-width: var(--measure);
  margin-inline: auto;
  padding: clamp(2.5rem, 7vh, 4.5rem) var(--gutter) clamp(3rem, 9vh, 5rem);
}

.page h1 {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 1.5rem + 2vw, 2.75rem);
  letter-spacing: -0.03em;
  line-height: 1.08;
}

.page h2 {
  margin: 2.5rem 0 0.625rem;
  font-size: clamp(1.25rem, 1.15rem + 0.4vw, 1.375rem);
  font-weight: 600;
}

.page .lede {
  font-size: clamp(1.125rem, 1.05rem + 0.5vw, 1.3125rem);
  line-height: 1.45;
  max-width: 34ch;
  text-wrap: pretty;
}

.page .dateline {
  margin: -0.25rem 0 2rem;
  color: var(--muted);
  font-size: 0.9375rem;
}

.page ul {
  padding-left: 1.25rem;
}

.page li {
  margin: 0.4rem 0;
  padding-left: 0.2rem;
}

.page li::marker {
  color: var(--accent);
}

/* The support email, set apart */
.contact {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  margin: 1.5rem 0 0.5rem;
  padding: 1.125rem 1.375rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.contact strong {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.contact a {
  font-size: clamp(1.125rem, 1rem + 0.9vw, 1.375rem);
  font-weight: 600;
  letter-spacing: -0.015em;
  overflow-wrap: anywhere;
}

/* Response-times table */
.table-wrap {
  margin: 0.75rem 0 1.25rem;
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
  line-height: 1.45;
}

th,
td {
  padding: 0.7rem 0.9rem 0.7rem 0;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--border);
}

th:last-child,
td:last-child {
  padding-right: 0;
}

th {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
}

td:first-child {
  font-weight: 600;
  white-space: nowrap;
}

td:last-child {
  font-variant-numeric: tabular-nums;
}

@media (min-width: 40em) {
  th:last-child,
  td:last-child {
    white-space: nowrap;
  }
}

/* Legal index */
.page .doc-list {
  list-style: none;
  margin: 1.5rem 0 1.75rem;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.page .doc-list li {
  margin: 0;
  padding: 1rem 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.doc-list a {
  font-weight: 600;
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--border);
}

.site-footer .bar {
  max-width: var(--measure);
  margin-inline: auto;
  padding: 1rem var(--gutter);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0 1.5rem;
  color: var(--muted);
  font-size: 0.9375rem;
}

.site-footer p {
  margin: 0;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 0.25rem;
}

.site-footer a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 0.5rem;
  color: var(--muted);
  text-decoration: none;
  border-radius: 8px;
}

.site-footer a:hover {
  color: var(--text);
}

/* ---------- Preferences ---------- */

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

@media print {
  .skip,
  .site-nav,
  .hero-deco {
    display: none;
  }

  body {
    background: #fff;
    color: #000;
  }
}
