/* ISC2 Arkansas — site styles. Tokens first; values follow specs/spec.md § Design. */

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

:root {
  color-scheme: light dark;

  --bg: #ffffff;
  --surface: #f2f7f4;
  --text: #1c2420;
  --muted: #4d5c55;
  --link: #006a50;
  --link-hover: #00513d;
  --rule: #95c93c;
  --brand: #006a50;
  --on-brand: #ffffff;
  --border: #d5e2db;

  --space-3xs: 0.25rem;
  --space-2xs: 0.5rem;
  --space-xs: 0.75rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;

  --width-prose: 42.5rem;
  --width-content: 60rem;

  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ease-move: cubic-bezier(0.4, 0, 0.2, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1a16;
    --surface: #16241f;
    --text: #d4ddd8;
    --muted: #9aaba3;
    --link: #6fcca7;
    --link-hover: #95c93c;
    --brand: #0b4a39;
    --border: #2a3b34;
  }
  body { -webkit-font-smoothing: antialiased; }
}

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

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

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.72;
  font-weight: 400;
}

img { max-width: 100%; height: auto; display: block; }

/* Type */
h1, h2, h3 { line-height: 1.2; margin: 0 0 var(--space-xs); }
h1 { font-size: 2.5rem; font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; }
h2 { font-size: 1.6rem; font-weight: 700; letter-spacing: -0.01em; line-height: 1.3; }
h3 { font-size: 1.2rem; font-weight: 600; line-height: 1.35; margin-top: var(--space-md); }
p, ul, ol, dl { margin: 0 0 1.35rem; }
p:last-child, ul:last-child, dl:last-child { margin-bottom: 0; }

@media (max-width: 599px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.35rem; }
}

a { color: var(--link); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
@media (hover: hover) {
  a { transition: color 120ms var(--ease-move); }
  a:hover { color: var(--link-hover); text-decoration-thickness: 2px; }
}

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

/* Layout */
.container { max-width: var(--width-content); margin-inline: auto; padding-inline: var(--space-md); }
.prose { max-width: var(--width-prose); }
.stack > * + * { margin-block-start: var(--space-sm); }

.skip-link {
  position: absolute; left: var(--space-sm); top: -4rem;
  background: var(--bg); color: var(--link); padding: var(--space-2xs) var(--space-sm);
  z-index: 10;
}
.skip-link:focus { top: var(--space-sm); }

/* Header */
.site-header { border-bottom: 3px solid var(--rule); }
.site-header .container {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: var(--space-sm); padding-block: var(--space-sm);
}
.brand { display: flex; align-items: center; gap: var(--space-sm); color: var(--text); text-decoration: none; }
.brand img { width: 64px; height: auto; border-radius: 6px; background: #fff; padding: 2px; }
.brand-name { display: block; font-weight: 700; font-size: 1.25rem; letter-spacing: -0.01em; line-height: 1.2; }
.brand-tag { display: block; font-size: 0.8rem; color: var(--muted); letter-spacing: 0.04em; }

.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0 var(--space-3xs); }
.site-nav a {
  display: inline-flex; align-items: center; min-block-size: 44px;
  padding-inline: var(--space-2xs); font-weight: 500; font-size: 0.95rem; text-decoration: none;
}
@media (hover: hover) { .site-nav a:hover { text-decoration: underline; } }

/* Sections */
section { padding-block: var(--space-xl); }
section:nth-of-type(even) { background: var(--surface); }
section h2 { padding-bottom: var(--space-2xs); border-bottom: 3px solid var(--rule); display: inline-block; margin-bottom: var(--space-md); }

.intro { padding-block: var(--space-xl) var(--space-lg); }
.intro .lede { font-size: 1.2rem; line-height: 1.6; color: var(--text); }

.button {
  display: inline-flex; align-items: center; min-block-size: 44px;
  padding: var(--space-2xs) var(--space-md); border-radius: 6px;
  background: var(--brand); color: var(--on-brand); font-weight: 600; text-decoration: none;
}
@media (prefers-color-scheme: dark) { .button { background: var(--link); color: #0f1a16; } }
@media (hover: hover) {
  .button { transition: background-color 120ms var(--ease-move); }
  .button:hover { background: var(--link-hover); color: var(--on-brand); }
}
@media (hover: hover) and (prefers-color-scheme: dark) { .button:hover { color: #0f1a16; } }

.facts { display: grid; gap: var(--space-2xs) var(--space-md); }
@media (min-width: 600px) { .facts { grid-template-columns: max-content 1fr; } }
.facts dt { font-weight: 600; }
.facts dd { margin: 0; color: var(--muted); }

.two-col { display: grid; gap: var(--space-lg); }
@media (min-width: 900px) { .two-col { grid-template-columns: 1fr 1fr; } }

.doc-list { list-style: none; padding: 0; }
.doc-list li { padding-block: var(--space-xs); border-bottom: 1px solid var(--border); }
.doc-list li:first-child { border-top: 1px solid var(--border); }
.doc-meta { color: var(--muted); font-size: 0.875rem; margin-left: var(--space-2xs); white-space: nowrap; }

.contact-list { list-style: none; padding: 0; }
.contact-list li + li { margin-top: var(--space-xs); }
.contact-list strong { display: block; font-weight: 600; }

/* Photos */
.photo-grid { display: grid; gap: var(--space-md); grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); align-items: start; }
.photo-grid figure { margin: 0; }
.photo-grid img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 6px; background: var(--border); }
.photo-grid figcaption { font-size: 0.875rem; color: var(--muted); margin-top: var(--space-2xs); line-height: 1.45; }

/* Footer */
.site-footer { background: var(--brand); color: var(--on-brand); padding-block: var(--space-lg); font-size: 0.9rem; line-height: 1.6; }
.site-footer a { color: var(--on-brand); }
.site-footer p { margin: 0 0 var(--space-2xs); }
.site-footer .fine { opacity: 0.9; }

code { font-size: 0.9em; }

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