/* Zimbabwe Untold — shared styles */

:root {
  --bg: #0d0d0d;
  --bg-raised: #171717;
  --border: #2a2a2a;
  --text: #f2efe8;
  --text-muted: #b9b4a9;
  --accent: #d4a017;
  --accent-hover: #e8b62a;
  --max: 70rem;
  --gutter: clamp(1rem, 4vw, 2rem);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.125rem; /* 18px */
  line-height: 1.7;
  overflow-wrap: break-word;
}

main {
  flex: 1;
}

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

a {
  color: var(--accent);
  text-underline-offset: 0.2em;
}

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

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

h1,
h2,
h3 {
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin: 0 0 1rem;
}

h1 {
  font-size: clamp(2.25rem, 7vw, 4.25rem);
}

h2 {
  font-size: clamp(1.75rem, 4.5vw, 2.75rem);
}

h3 {
  font-size: 1.375rem;
}

p {
  margin: 0 0 1.25rem;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--accent);
  color: #0d0d0d;
  font-weight: 700;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.narrow {
  max-width: 46rem;
}

/* Header */

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

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

.wordmark {
  color: var(--text);
  text-decoration: none;
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: 0.3em;
  white-space: nowrap;
}

.wordmark:hover {
  color: var(--accent);
}

.menu-toggle {
  display: none;
}

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

.site-nav a {
  color: var(--text);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 0.5rem 0;
  border-bottom: 2px solid transparent;
}

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

/* Phones: collapse nav behind a menu button (only when JS is available) */
@media (max-width: 40rem) {
  .wordmark {
    font-size: 0.875rem;
    letter-spacing: 0.22em;
  }

  .js .menu-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 0.5rem 0.875rem;
    font: inherit;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
  }

  .js .menu-toggle:hover {
    border-color: var(--accent);
    color: var(--accent);
  }

  .header-inner {
    flex-wrap: wrap;
  }

  .site-nav {
    width: 100%;
  }

  .js .site-nav {
    display: none;
  }

  .js .site-nav.is-open {
    display: block;
  }

  .site-nav ul {
    flex-direction: column;
    gap: 0;
    padding-bottom: 1rem;
  }

  html:not(.js) .site-nav ul {
    flex-direction: row;
    gap: 1.5rem;
  }

  .site-nav a {
    display: block;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
  }
}

/* Buttons */

.button {
  display: inline-block;
  background: var(--accent);
  color: #0d0d0d;
  font-weight: 700;
  font-size: 1.0625rem;
  text-decoration: none;
  padding: 0.95rem 1.75rem;
  border-radius: 4px;
  transition: background-color 0.15s ease;
}

.button:hover {
  background: var(--accent-hover);
  color: #0d0d0d;
}

/* Hero */

.hero {
  padding: clamp(4.5rem, 14vw, 9rem) 0 clamp(4rem, 10vw, 7rem);
  background:
    radial-gradient(ellipse at 20% 0%, rgba(212, 160, 23, 0.14), transparent 60%),
    linear-gradient(180deg, #141210 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--border);
}

.hero h1 {
  max-width: 18ch;
  margin-bottom: 1.5rem;
}

.hero .lede {
  max-width: 38rem;
  color: var(--text-muted);
  font-size: clamp(1.125rem, 2.4vw, 1.375rem);
  margin-bottom: 2.25rem;
}

/* Sections */

.section {
  padding: clamp(3.5rem, 9vw, 6rem) 0;
}

.section + .section {
  border-top: 1px solid var(--border);
}

.eyebrow-rule {
  display: block;
  width: 3rem;
  height: 3px;
  background: var(--accent);
  margin-bottom: 1.5rem;
}

/* Series cards */

.cards {
  list-style: none;
  margin: 2.5rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  gap: 1.25rem;
}

.card {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-top: 3px solid var(--accent);
  border-radius: 4px;
  padding: 1.75rem 1.5rem;
}

.card-number {
  display: block;
  color: var(--accent);
  font-weight: 800;
  font-size: 0.875rem;
  letter-spacing: 0.2em;
  margin-bottom: 0.75rem;
}

.card p {
  color: var(--text-muted);
  margin: 0;
}

/* Closing call to action */

.cta {
  text-align: center;
}

.cta p {
  font-size: clamp(1.25rem, 3vw, 1.625rem);
  font-weight: 600;
  max-width: 36rem;
  margin: 0 auto 2rem;
}

/* Content pages (about, contact, legal) */

.page {
  padding: clamp(3.5rem, 10vw, 6.5rem) 0;
}

.page h1 {
  margin-bottom: 2rem;
}

.page h2 {
  font-size: clamp(1.375rem, 3.2vw, 1.75rem);
  margin-top: 2.75rem;
  margin-bottom: 0.75rem;
}

.updated {
  color: var(--text-muted);
  font-size: 1rem;
  margin-top: -1rem;
}

.page p {
  max-width: 42rem;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0;
  font-size: 1rem;
  color: var(--text-muted);
}

.footer-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
}

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

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

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