/* The Unsettled Republic — site stylesheet
   Direction: "Primary Source" — parchment field, ink-brown type,
   one amber rule as the only real color accent. */

@font-face {
  font-family: "Libre Baskerville";
  src: url("./fonts/libre-baskerville-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Libre Baskerville";
  src: url("./fonts/libre-baskerville-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Libre Baskerville";
  src: url("./fonts/libre-baskerville-400-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

:root {
  --parchment: #f0e6d2;
  --ink: #2b1d0e;
  --ink-soft: #4a3620;
  --amber: #ba7517;
  --amber-deep: #8a5a1e;
  --rule: #d9c9a3;
  --chip-border: #bfa876;
  --max-width: 640px;
}

* { box-sizing: border-box; }

html {
  color-scheme: light;
}

body {
  margin: 0;
  background: var(--parchment);
  color: var(--ink);
  font-family: "Libre Baskerville", Georgia, "Times New Roman", serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

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

.wrap-wide {
  max-width: 820px;
}

/* Skip link — visible on keyboard focus only */
.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  background: var(--ink);
  color: var(--parchment);
  padding: 10px 16px;
  z-index: 10;
}
.skip-link:focus {
  left: 16px;
  top: 16px;
}

/* Hero */
.hero {
  padding: clamp(56px, 12vw, 96px) 0 clamp(40px, 8vw, 64px);
  text-align: center;
}

.eyebrow {
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--amber-deep);
  text-transform: uppercase;
  margin: 0 0 18px;
}

h1 {
  font-weight: 700;
  font-size: clamp(28px, 6vw, 40px);
  margin: 0 0 8px;
  line-height: 1.25;
}

.rule {
  width: 56px;
  height: 2px;
  background: var(--amber);
  border: none;
  margin: 20px auto;
}

.subhead {
  font-size: clamp(15px, 3.2vw, 17px);
  color: var(--ink-soft);
  max-width: 440px;
  margin: 0 auto 28px;
}

.cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  text-decoration: none;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  padding: 9px 4px;
  transition: opacity 0.15s ease;
}
.cta:hover,
.cta:focus-visible {
  opacity: 0.65;
}
.cta svg { width: 16px; height: 16px; flex: none; }

/* Section shared styling */
.section {
  border-top: 1px solid var(--rule);
  padding: 40px 0;
}

/* Mission pull-quote */
.quote {
  text-align: center;
}
.quote blockquote {
  font-style: italic;
  font-size: clamp(16px, 3.6vw, 18px);
  color: var(--ink-soft);
  max-width: 460px;
  margin: 0 auto;
}

/* Topics */
.topics-label {
  font-size: 11px;
  letter-spacing: 0.15em;
  color: var(--amber-deep);
  text-transform: uppercase;
  text-align: center;
  margin: 0 0 22px;
}
.topics {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  list-style: none;
  margin: 0;
  padding: 0;
}
.topics li {
  font-size: 13px;
  border: 1px solid var(--chip-border);
  border-radius: 2px;
  padding: 8px 14px;
}
.topics a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  transition: opacity 0.15s ease;
}
.topics a:hover,
.topics a:focus-visible {
  opacity: 0.65;
}
.topics a svg { width: 12px; height: 12px; flex: none; }

/* Footer */
footer {
  border-top: 1px solid var(--rule);
  padding: 24px 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
footer img {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: block;
}
.copyright {
  font-size: 11px;
  color: var(--amber-deep);
  margin: 0;
}
footer a {
  color: var(--amber-deep);
  display: flex;
}
footer a svg { width: 20px; height: 20px; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .cta { transition: none; }
  .topics a { transition: none; }
}

/* Visible keyboard focus throughout */
a:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
}
