/* edgcpp.org site styles */

:root {
  --bg: #ffffff;
  --surface: #f6f8fa;
  --text: #1a1d21;
  --muted: #5b6470;
  --border: #dfe2e5;
  --accent: #2f6fa8;
  --accent-strong: #245a8a;
  --accent-soft: #e8f0f8;
  --accent-soft-border: #cfdfee;
  --dark: #0b1220;
  --dark-surface: #111c2e;
  --dark-border: #23324a;
  --dark-text: #e6ebf2;
  --dark-muted: #a3aec0;
  --accent-on-dark: #6fa8dc;
  --max: 1100px;
  --radius: 10px;
  --font: "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
  -webkit-text-size-adjust: 100%;
}

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

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

img,
svg {
  max-width: 100%;
}

code {
  padding: 0.1em 0.4em;
  border-radius: 4px;
  background: var(--surface);
  font-family: "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 0.92em;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}

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

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

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

h1 {
  font-size: clamp(2.5rem, 6vw, 4.25rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.9rem, 3.5vw, 2.6rem);
}

h2::after {
  content: "";
  display: block;
  width: 3.5rem;
  height: 3px;
  margin-top: 1rem;
  border-radius: 2px;
  background: var(--accent);
}

h3 {
  font-size: 1.25rem;
}

p {
  margin: 0 0 1rem;
}

.container {
  width: min(var(--max), 100% - 3rem);
  margin-inline: auto;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 100;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  background: var(--accent);
  color: #fff;
}

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

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: 4rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-right: auto;
  color: var(--text);
  text-decoration: none;
}

.brand__logo {
  display: block;
  height: 2.5rem;
  width: auto;
}

.brand__name {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.site-nav {
  display: flex;
  gap: 1.25rem;
}

.site-nav a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
}

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

/* Buttons */

.button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.2rem;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}

.button--primary {
  background: var(--accent);
  color: #fff;
}

.button--primary:hover {
  background: var(--accent-strong);
  color: #fff;
}

.button--ghost {
  border-color: var(--dark-border);
  color: var(--dark-text);
}

.button--ghost:hover {
  border-color: var(--accent-on-dark);
  color: #fff;
}

.button--github {
  padding: 0.55rem 1rem;
  background: var(--dark);
  color: #fff;
  font-size: 0.95rem;
}

.button--github:hover {
  background: #1a2740;
  color: #fff;
}

.button--github svg {
  width: 1.1em;
  height: 1.1em;
  fill: currentColor;
}

/* Section scaffolding */

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

.eyebrow--on-dark {
  color: var(--accent-on-dark);
}

.section {
  padding: 5rem 0;
}

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

.section__lead {
  max-width: 46rem;
  margin: 1.25rem 0 2.5rem;
  font-size: 1.2rem;
  color: var(--muted);
}

/* Hero */

.hero {
  position: relative;
  padding: 6rem 0 5rem;
  background: var(--dark);
  color: var(--dark-text);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: var(--accent);
}

.hero h1 {
  max-width: 18ch;
  color: #fff;
}

.hero .lead {
  max-width: 42rem;
  margin-bottom: 2rem;
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  color: var(--dark-muted);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
}

/* Callouts */

.callout {
  margin-top: 2rem;
  padding: 1.1rem 1.4rem;
  border: 1px solid var(--accent-soft-border);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  background: var(--accent-soft);
}

.callout p {
  margin: 0;
}

.callout strong {
  color: var(--accent-strong);
}

.callout--on-dark {
  border-color: var(--dark-border);
  border-left-color: var(--accent-on-dark);
  background: var(--dark-surface);
  color: var(--dark-text);
}

.callout--on-dark strong {
  color: var(--accent-on-dark);
}

.hero .callout {
  max-width: 60rem;
}

/* Cards */

.grid {
  display: grid;
  gap: 1.25rem;
}

.grid--3 {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

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

.card {
  padding: 1.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
}

.card h3 {
  margin-top: 0.25rem;
}

.card p:last-child {
  margin-bottom: 0;
  color: var(--muted);
}

.card__number {
  margin: 0 0 1rem;
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1;
  color: var(--accent);
}

.card__label {
  margin: 0 0 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.card--track {
  border-top: 4px solid var(--accent);
}

/* Two-column split */

.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  align-items: start;
  margin-top: 3rem;
  padding-top: 3rem;
  border-top: 1px solid var(--border);
}

.checklist {
  display: grid;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.checklist li {
  position: relative;
  padding-left: 2rem;
}

.checklist li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  top: 0;
  font-weight: 700;
  color: var(--accent);
}

/* History placeholder */

.placeholder {
  max-width: 60rem;
  padding: 2rem;
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.placeholder__label {
  margin-bottom: 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.placeholder h3 {
  margin-bottom: 0.5rem;
}

.placeholder p:last-child {
  margin: 0;
  color: var(--muted);
}

/* Comparison table */

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
}

.compare {
  width: 100%;
  border-collapse: collapse;
}

.compare th,
.compare td {
  padding: 1.1rem 1.25rem;
  border-top: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

.compare thead th {
  border-top: 0;
  background: var(--surface);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.compare thead th.compare__new {
  color: var(--accent);
}

.compare tbody th {
  width: 22%;
  font-weight: 700;
}

.compare tbody td {
  width: 39%;
  color: var(--muted);
}

.compare tbody td.compare__new {
  color: var(--text);
}

@media (max-width: 640px) {
  .compare thead {
    display: none;
  }

  .compare tr {
    display: block;
    padding: 0.75rem 0;
    border-top: 1px solid var(--border);
  }

  .compare tr:first-child {
    border-top: 0;
  }

  .compare th,
  .compare td,
  .compare tbody th,
  .compare tbody td {
    display: block;
    width: auto;
    padding: 0.35rem 1.25rem;
    border: 0;
  }

  .compare tbody th {
    padding-top: 0.75rem;
  }

  .compare td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 0.1rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
  }

  .compare td.compare__new::before {
    color: var(--accent);
  }
}

/* Next steps */

.steps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.steps li {
  display: flex;
  gap: 1.25rem;
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
}

.steps__number {
  flex: 0 0 auto;
  padding-top: 0.15rem;
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1;
  color: var(--accent);
}

.steps h3 {
  margin-bottom: 0.4rem;
  font-size: 1.1rem;
}

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

@media (max-width: 700px) {
  .steps {
    grid-template-columns: 1fr;
  }
}

/* Closing call to action */

.cta {
  padding: 4rem 0;
  background: var(--dark);
  color: var(--dark-text);
}

.cta__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.cta h2 {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  color: #fff;
}

.cta h2::after {
  display: none;
}

.cta p {
  max-width: 40rem;
  margin: 0;
  color: var(--dark-muted);
}

/* Footer */

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

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 2rem;
}

.site-footer__brand {
  margin: 0;
  font-weight: 700;
  color: var(--text);
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-right: auto;
}

.site-footer__links a {
  color: var(--muted);
  text-decoration: none;
}

.site-footer__links a:hover {
  color: var(--text);
  text-decoration: underline;
}

.site-footer__legal {
  margin: 0;
}

/* Small screens */

@media (max-width: 760px) {
  .site-nav {
    display: none;
  }

  .section {
    padding: 3.5rem 0;
  }

  .hero {
    padding: 4rem 0 3.5rem;
  }
}
