@font-face {
  font-family: "Manrope";
  src: url("/fonts/manrope-latin-var.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --navy: #0B2236;
  --maize: #FFC400;
  --paper: #F5F7FA;
  --slate: #4A5E72;
  --mist: #A9B8C7;
  --line: #D5DDE6;
  --measure: 36rem;
  --gutter: clamp(1.25rem, 5vw, 4rem);
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--navy);
  font-family: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  font-weight: 450;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }

a {
  color: var(--navy);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--maize);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.25em;
}

a:hover { text-decoration-thickness: 4px; }

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

.wrap {
  width: 100%;
  max-width: 76rem;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Masthead */

.masthead {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  padding-block: 1.5rem;
}

.brand { display: block; text-decoration: none; }
.brand img { display: block; height: 44px; width: auto; }

.masthead ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.75rem;
}

.masthead nav a {
  display: block;
  padding-block: 0.4rem;
  font-size: 0.9375rem;
  text-decoration-color: transparent;
}

.masthead nav a:hover,
.masthead nav a[aria-current="page"] { text-decoration-color: var(--maize); }

/* Type */

h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

h2 {
  font-size: clamp(1.75rem, 3.2vw, 2.5rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  text-wrap: balance;
  max-width: 24ch;
}

h3 {
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

h3 span {
  display: block;
  margin-top: 0.25rem;
  font-size: 1rem;
  font-weight: 450;
  letter-spacing: 0;
  color: var(--slate);
}

.lede {
  max-width: var(--measure);
  margin-top: 1.75rem;
  font-size: clamp(1.125rem, 1.6vw, 1.3125rem);
  line-height: 1.5;
  color: var(--slate);
}

[data-countdown]:not(:empty) { color: var(--navy); font-weight: 700; }

/* Buttons and actions */

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
  margin-top: 2.25rem;
}

.row .actions { margin-top: 1.5rem; }

.button {
  display: inline-block;
  padding: 0.95rem 1.6rem;
  background: var(--navy);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  border-radius: 999px;
  box-shadow: inset 0 0 0 0 var(--maize);
  transition: box-shadow 160ms ease, color 160ms ease;
}

.button:hover {
  box-shadow: inset 0 -3.5rem 0 0 var(--maize);
  color: var(--navy);
}

.source { font-size: 0.875rem; color: var(--slate); }
.source a { font-weight: 500; color: var(--slate); }

/* Home hero */

.hero {
  display: grid;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
  padding-block: clamp(2.5rem, 6vw, 5rem) clamp(2rem, 4vw, 3.5rem);
}

.hero h1 { font-size: clamp(2.375rem, 5.2vw, 4rem); }

/* Certificate chain figure */

.chain ol {
  position: relative;
  display: grid;
  gap: 0.75rem;
  padding: 1rem;
  background: var(--navy);
  border-radius: 16px;
  box-shadow: 0 28px 56px -30px rgba(11, 34, 54, 0.7);
}

.chain li {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.15rem 1rem;
  padding: 1rem 1.15rem;
  border: 1px solid rgba(169, 184, 199, 0.3);
  border-radius: 10px;
  color: #fff;
}

.chain li + li::before {
  content: "";
  position: absolute;
  left: 2rem;
  top: calc(-0.75rem - 1px);
  height: 0.75rem;
  border-left: 2px solid var(--mist);
}

.chain .role { font-weight: 700; }
.chain .key { grid-row: 2; font-size: 0.9375rem; color: var(--mist); }
.chain .status { grid-row: 1 / span 2; align-self: center; font-size: 0.875rem; text-align: right; color: var(--mist); max-width: 11rem; }

.chain .flag { background: var(--maize); border-color: var(--maize); color: var(--navy); }
.chain .flag .key, .chain .flag .status { color: var(--navy); font-weight: 700; }

.chain figcaption {
  margin-top: 0.9rem;
  font-size: 0.8125rem;
  color: var(--slate);
  text-align: right;
}

/* Inner page heads */

.pagehead { padding-block: clamp(2.5rem, 6vw, 5rem) clamp(1rem, 2vw, 1.5rem); }

.bigmail { margin-top: 2rem; }

.bigmail a {
  font-size: clamp(1.375rem, 4.4vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
  text-decoration-thickness: 0.07em;
  text-underline-offset: 0.18em;
  overflow-wrap: anywhere;
}

/* Sections and rows */

.section { padding-block: clamp(2rem, 4vw, 3.5rem); }
.section:last-child { padding-bottom: clamp(3.5rem, 8vw, 7rem); }

.section h2 { margin-bottom: clamp(1.5rem, 3vw, 2.5rem); }

.row {
  display: grid;
  gap: 0.75rem;
  padding-block: clamp(1.75rem, 3.5vw, 2.75rem);
  border-top: 1px solid var(--line);
}

.row p { max-width: var(--measure); color: var(--slate); }
.row p + p { margin-top: 1rem; }

.row .links { display: flex; flex-wrap: wrap; gap: 0.5rem 2rem; margin-top: 1.5rem; }

.gets { max-width: var(--measure); margin-top: 1.25rem; color: var(--slate); }

.gets li {
  position: relative;
  padding: 0.55rem 0 0.55rem 1.4rem;
  border-top: 1px solid var(--line);
}

.gets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.1rem;
  width: 0.6rem;
  height: 0.6rem;
  background: var(--maize);
  transform: skewX(-20deg);
}

/* Footer */

.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  padding-block: 1.75rem;
  font-size: 0.875rem;
  color: var(--slate);
}

.footer a { color: var(--slate); font-weight: 500; text-decoration-thickness: 1px; }

/* Wider screens */

@media (min-width: 60rem) {
  .hero { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); }
  .row { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 2rem; }
}

@media (max-width: 34rem) {
  .brand img { height: 38px; }
  .chain li { grid-template-columns: 1fr; }
  .chain .status { grid-row: auto; text-align: left; max-width: none; }
}

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

.gets + p { margin-top: 1.25rem; }
