:root {
  --ink: #101817;
  --paper: #f5e6bd;
  --cream: #fff3d4;
  --red: #c23b22;
  --blue: #195f7d;
  --yellow: #d8a522;
  --font-display: "Avenir Next Condensed", "Trebuchet MS", sans-serif;
  --font-body: "Avenir Next", "Trebuchet MS", sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  min-height: 100%;
  background: var(--ink);
}

body {
  color: var(--ink);
  font-family: var(--font-body);
  font-synthesis: none;
  overflow-x: hidden;
}

.standards-page {
  width: 100%;
  min-height: 100svh;
  display: grid;
  grid-template-rows: 58px minmax(0, 1fr) 104px;
  background:
    repeating-linear-gradient(91deg, rgba(16, 24, 23, 0.025) 0 1px, transparent 1px 5px),
    var(--paper);
  border-block: 8px solid var(--ink);
}

.mast {
  display: grid;
  grid-template-columns: 18% 11% 33% 16% 22%;
  border-bottom: 2px solid var(--ink);
}

.mast i {
  display: block;
  border-right: 2px solid var(--ink);
}

.mast i:nth-child(1) { background: var(--cream); }
.mast i:nth-child(2) { background: var(--red); }
.mast i:nth-child(3) { background: var(--paper); }
.mast i:nth-child(4) { background: var(--blue); }
.mast i:nth-child(5) {
  background: var(--yellow);
  border-right: 0;
}

.standards-grid {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(170px, 24%) minmax(360px, 1fr) minmax(280px, 31%);
  border-bottom: 2px solid var(--ink);
}

.signal {
  min-height: 0;
  display: grid;
  grid-template-rows: 1fr 0.38fr 0.76fr;
  border-right: 2px solid var(--ink);
}

.signal span {
  position: relative;
  overflow: hidden;
  border-bottom: 2px solid var(--ink);
}

.signal span:first-child {
  background: var(--cream);
}

.signal span:first-child::before {
  content: "";
  position: absolute;
  width: min(24vw, 350px);
  aspect-ratio: 1;
  left: -56%;
  top: 9%;
  border: clamp(38px, 5vw, 74px) solid var(--red);
  border-radius: 50%;
}

.signal span:nth-child(2) {
  background: var(--yellow);
}

.signal span:nth-child(2)::after {
  content: "";
  position: absolute;
  width: 76%;
  height: 10px;
  right: -8%;
  top: 46%;
  background: var(--ink);
  transform: rotate(-6deg);
}

.signal span:last-child {
  border-bottom: 0;
  background: var(--blue);
}

.statement {
  min-width: 0;
  padding: clamp(34px, 5vw, 76px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--cream);
  border-right: 2px solid var(--ink);
}

.eyebrow {
  margin-bottom: clamp(20px, 3vh, 34px);
  font-size: clamp(0.75rem, 0.62rem + 0.45vw, 1rem);
  font-weight: 800;
  letter-spacing: 0.16em;
}

h1 {
  font-family: var(--font-display);
  font-size: clamp(3.3rem, 3.5vw + 1rem, 7.6rem);
  font-stretch: condensed;
  font-weight: 900;
  letter-spacing: -0.055em;
  line-height: 0.83;
  text-wrap: balance;
}

.lede {
  width: fit-content;
  margin-top: clamp(28px, 4vh, 48px);
  padding: 8px 12px 7px;
  background: var(--red);
  color: var(--cream);
  font-size: clamp(1rem, 0.9rem + 0.35vw, 1.25rem);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.standards-list {
  min-width: 0;
  list-style: none;
  display: grid;
  grid-template-rows: repeat(5, 1fr);
  background: var(--paper);
}

.standards-list li {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px clamp(18px, 2vw, 34px);
  border-bottom: 2px solid var(--ink);
  font-family: var(--font-display);
  font-size: clamp(1rem, 0.74rem + 1vw, 1.9rem);
  font-weight: 900;
  letter-spacing: -0.025em;
}

.standards-list li:last-child {
  border-bottom: 0;
}

.standards-list li:nth-child(2) { background: var(--yellow); }
.standards-list li:nth-child(4) { background: var(--red); color: var(--cream); }

.standards-list span {
  flex: 0 0 auto;
  font-size: 0.58em;
  font-weight: 800;
  letter-spacing: 0.08em;
  opacity: 0.72;
}

.verification {
  min-width: 0;
  display: grid;
  grid-template-columns: 104px 1fr minmax(240px, 34%);
  align-items: stretch;
  background: var(--cream);
}

.home-link,
.internet-badge {
  min-width: 0;
  display: grid;
  place-items: center;
  transition: background 160ms ease;
}

.home-link {
  border-right: 2px solid var(--ink);
}

.home-link img {
  width: 50px;
  height: 50px;
}

.verification p {
  min-width: 0;
  display: flex;
  align-items: center;
  padding-inline: clamp(20px, 3vw, 48px);
  font-family: var(--font-display);
  font-size: clamp(1rem, 0.8rem + 0.75vw, 1.65rem);
  font-weight: 900;
  letter-spacing: 0.035em;
}

.internet-badge {
  border-left: 2px solid var(--ink);
}

.internet-badge img {
  display: block;
  width: min(204px, calc(100% - 36px));
  height: auto;
}

.home-link:hover,
.home-link:focus-visible,
.internet-badge:hover,
.internet-badge:focus-visible {
  background: var(--paper);
  outline: 4px solid var(--red);
  outline-offset: -6px;
}

@media (max-width: 820px) {
  .standards-page {
    grid-template-rows: 42px auto auto;
    border-block-width: 6px;
  }

  .mast {
    grid-template-columns: 25% 14% 21% 18% 22%;
  }

  .standards-grid {
    grid-template-columns: 42px 1fr;
    grid-template-rows: auto auto;
  }

  .signal {
    grid-row: 1 / span 2;
  }

  .signal span:first-child::before {
    width: 120px;
    left: -190%;
    border-width: 28px;
  }

  .statement {
    padding: 42px 24px 40px;
    border-right: 0;
    border-bottom: 2px solid var(--ink);
  }

  h1 {
    font-size: clamp(3.1rem, 14vw, 5.4rem);
  }

  .standards-list li {
    min-height: 64px;
    padding-inline: 20px;
    font-size: clamp(1.15rem, 5.4vw, 1.55rem);
  }

  .verification {
    grid-template-columns: 74px 1fr;
    grid-template-rows: 72px 78px;
  }

  .home-link {
    grid-row: 1;
  }

  .home-link img {
    width: 42px;
    height: 42px;
  }

  .verification p {
    grid-row: 1;
    padding-inline: 18px;
    font-size: clamp(0.9rem, 4vw, 1.1rem);
  }

  .internet-badge {
    grid-column: 1 / -1;
    grid-row: 2;
    border-top: 2px solid var(--ink);
    border-left: 0;
  }
}

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