:root {
  --accent: #cb1023;
  --accent-dark: #a30d1c;
  --ink: #23262d;
  --text: #2f333a;
  --muted: #5f646c;
  --line: #e3e4e7;
  --bg: #ffffff;
  --bg-alt: #f6f6f7;
  --radius: 10px;
  --wrap: 1120px;
  --font:
    system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
  color: var(--ink);
  line-height: 1.2;
  margin: 0 0 0.5em;
}

p {
  margin: 0 0 1em;
}

a {
  color: var(--accent);
  text-underline-offset: 2px;
}

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

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

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

.skip-link {
  position: absolute;
  left: -9999px;
}

.skip-link:focus {
  left: 12px;
  top: 12px;
  z-index: 10;
  background: #fff;
  padding: 8px 12px;
  border-radius: var(--radius);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  border: 2px solid var(--accent);
  transition:
    background 0.15s,
    border-color 0.15s;
}

.btn:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  color: #fff;
}

.btn-small {
  padding: 6px 16px;
}

.btn-ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.6);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #fff;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: var(--ink);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 24px;
  min-height: 64px;
}

.brand {
  color: #fff;
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: 0.04em;
  text-decoration: none;
}

.brand span {
  font-weight: 400;
  color: #c9cbd0;
}

.brand:hover {
  color: #fff;
}

.nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav a:not(.btn) {
  color: #e8e9ec;
  text-decoration: none;
  font-weight: 500;
}

.nav a:not(.btn):hover {
  color: #fff;
  text-decoration: underline;
}

/* Hero */
.hero {
  color: #fff;
  background:
    radial-gradient(1200px 500px at 85% -10%, rgba(203, 16, 35, 0.45), transparent 60%),
    linear-gradient(160deg, #2c3038 0%, #1b1d22 100%);
  padding: 96px 0 120px;
}

.hero h1 {
  color: #fff;
  font-size: clamp(2rem, 5vw, 3.4rem);
  max-width: 18ch;
  margin-bottom: 32px;
}

.hero .eyebrow {
  color: #ff8a97;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 12px;
}

/* Quick-link cards */
.quick {
  margin-top: -64px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
}

.card {
  display: block;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  text-decoration: none;
  color: var(--text);
  box-shadow: 0 10px 30px rgba(20, 22, 27, 0.08);
  transition:
    transform 0.15s,
    box-shadow 0.15s;
}

.card:hover {
  color: var(--text);
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(20, 22, 27, 0.14);
}

.card .num {
  display: block;
  color: var(--accent);
  font-weight: 800;
  font-size: 0.9rem;
  margin-bottom: 8px;
}

.card h2 {
  font-size: 1.15rem;
}

.card p {
  color: var(--muted);
  margin: 0;
  font-size: 0.95rem;
}

/* Sections */
.section {
  padding: 80px 0;
}

.section-alt {
  background: var(--bg-alt);
}

.section-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  max-width: 28ch;
  margin-bottom: 32px;
}

.resource-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: 20px;
}

.resource {
  border: 1px solid var(--line);
  border-top: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: 24px;
}

.resource:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}

.resource h3 {
  font-size: 1.2rem;
}

.resource p:last-child {
  margin-bottom: 0;
}

.links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.links li + li {
  border-top: 1px solid var(--line);
}

.links a {
  display: block;
  padding: 10px 0;
  font-weight: 500;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
}

.about-grid p {
  color: var(--muted);
}

/* Contact */
.contact {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
  align-items: start;
}

.contact-list {
  margin: 0;
  display: grid;
  gap: 20px;
}

.contact-list dt {
  font-weight: 700;
  color: var(--ink);
}

.contact-list dd {
  margin: 4px 0 0;
  font-size: 1.1rem;
}

/* Long-form pages */
.prose {
  max-width: 760px;
}

.prose h2 {
  font-size: 1.25rem;
  margin-top: 1.8em;
}

.note {
  background: var(--bg-alt);
  border-left: 4px solid var(--accent);
  padding: 12px 16px;
  border-radius: 0 var(--radius) var(--radius) 0;
}

/* Footer */
.site-footer {
  background: var(--ink);
  color: #c9cbd0;
  font-size: 0.9rem;
  padding: 24px 0;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
}

.footer-inner p {
  margin: 0;
}

@media (max-width: 560px) {
  body {
    font-size: 16px;
  }

  /* The nav wraps on phones; a pinned two-line header would eat the viewport. */
  .site-header {
    position: static;
  }

  .header-inner {
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .nav {
    gap: 4px 14px;
    font-size: 0.95rem;
  }

  .hero {
    padding: 64px 0 104px;
  }

  .section {
    padding: 56px 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .card,
  .btn {
    transition: none;
  }
}
