:root {
  --ink: #14120f;
  --paper: #fbf5e8;
  --panel: #fffaf0;
  --lime: #b7f84f;
  --coral: #ff6858;
  --teal: #1fb6a6;
  --violet: #6d4cff;
  --line: #241e17;
  --muted: #655f55;
  --shadow: 8px 8px 0 #14120f;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(20, 18, 15, .05) 1px, transparent 1px) 0 0 / 26px 26px,
    linear-gradient(rgba(20, 18, 15, .05) 1px, transparent 1px) 0 0 / 26px 26px,
    radial-gradient(circle at 14% 8%, rgba(183, 248, 79, .45), transparent 28rem),
    radial-gradient(circle at 88% 12%, rgba(255, 104, 88, .28), transparent 24rem),
    var(--paper);
  font-family: "Trebuchet MS", "Avenir Next", sans-serif;
  line-height: 1.58;
}

a {
  color: inherit;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.wrap {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 3px solid var(--line);
  background: rgba(251, 245, 232, .9);
  backdrop-filter: blur(14px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 66px;
}

.brand {
  font-weight: 900;
  letter-spacing: .02em;
  text-transform: uppercase;
  text-decoration: none;
}

.brand span {
  display: inline-block;
  padding: 2px 8px;
  border: 2px solid var(--line);
  background: var(--lime);
  box-shadow: 3px 3px 0 var(--line);
}

.navlinks {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  font-size: 14px;
  font-weight: 800;
}

.navlinks a {
  text-decoration: none;
  padding: 6px 9px;
  border: 2px solid transparent;
}

.navlinks a:hover {
  border-color: var(--line);
  background: #fff;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(310px, .95fr);
  gap: 28px;
  padding: 46px 0 26px;
  align-items: stretch;
}

.stamp {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 7px 11px;
  border: 3px solid var(--line);
  background: var(--teal);
  color: #fff;
  font-weight: 900;
  text-transform: uppercase;
  box-shadow: 4px 4px 0 var(--line);
}

h1,
h2,
h3 {
  line-height: 1.04;
  margin: 0;
}

h1 {
  max-width: 820px;
  margin-top: 22px;
  font-size: clamp(44px, 7vw, 86px);
  letter-spacing: -0.04em;
}

h2 {
  font-size: clamp(30px, 4vw, 52px);
  letter-spacing: -0.03em;
}

h3 {
  font-size: 22px;
}

.lead {
  max-width: 740px;
  margin: 18px 0 0;
  font-size: 20px;
  color: #2b2721;
}

.hero-card,
.card,
.notice,
.table-wrap,
.answer-box {
  border: 3px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.hero-card {
  position: relative;
  overflow: hidden;
  min-height: 420px;
  padding: 26px;
}

.hero-card::before {
  content: "";
  position: absolute;
  inset: 18px;
  border: 3px dashed rgba(20, 18, 15, .32);
  transform: rotate(-2deg);
  pointer-events: none;
}

.paint-wheel {
  position: absolute;
  right: -68px;
  top: -56px;
  width: 240px;
  aspect-ratio: 1;
  border: 4px solid var(--line);
  border-radius: 50%;
  background: conic-gradient(var(--lime), var(--teal), var(--violet), var(--coral), var(--lime));
  box-shadow: 10px 10px 0 var(--line);
}

.task-list {
  position: relative;
  display: grid;
  gap: 12px;
  margin-top: 110px;
}

.task {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 14px;
  border: 2px solid var(--line);
  background: #fff;
  font-weight: 900;
}

.task small {
  color: var(--muted);
  font-weight: 800;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 15px;
  border: 3px solid var(--line);
  background: #fff;
  box-shadow: 4px 4px 0 var(--line);
  font-weight: 900;
  text-decoration: none;
}

.btn.primary {
  background: var(--coral);
  color: #fff;
}

section {
  padding: 34px 0;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.muted {
  color: var(--muted);
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card,
.notice,
.answer-box {
  padding: 20px;
}

.card .kicker,
.notice .kicker {
  display: inline-flex;
  margin-bottom: 10px;
  padding: 3px 8px;
  border: 2px solid var(--line);
  background: var(--lime);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.card p,
.notice p,
.answer-box p {
  margin: 10px 0 0;
}

.answer-box {
  background: #10100e;
  color: #fff;
}

.answer-box strong {
  color: var(--lime);
}

.table-wrap {
  overflow: auto;
  background: #fff;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}

th,
td {
  padding: 13px 14px;
  border-bottom: 2px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  background: var(--lime);
  font-size: 12px;
  text-transform: uppercase;
}

tr:last-child td {
  border-bottom: 0;
}

.source-list {
  display: grid;
  gap: 12px;
  padding-left: 0;
  list-style: none;
}

.source-list li {
  padding: 12px 14px;
  border: 2px solid var(--line);
  background: #fff;
}

.footer {
  margin-top: 34px;
  padding: 28px 0 44px;
  border-top: 3px solid var(--line);
  color: var(--muted);
}

.page-hero {
  padding: 42px 0 18px;
}

.content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 28px;
  align-items: start;
}

.toc {
  position: sticky;
  top: 92px;
  padding: 16px;
  border: 3px solid var(--line);
  background: #fff;
  box-shadow: 5px 5px 0 var(--line);
}

.toc a {
  display: block;
  margin: 8px 0;
  font-weight: 800;
  text-decoration: none;
}

.article {
  display: grid;
  gap: 18px;
}

@media (max-width: 860px) {
  .hero,
  .content,
  .grid,
  .two {
    grid-template-columns: 1fr;
  }

  .nav {
    align-items: flex-start;
    flex-direction: column;
    padding: 14px 0;
  }

  .navlinks {
    justify-content: flex-start;
  }

  .hero-card {
    min-height: 340px;
  }

  .task-list {
    margin-top: 88px;
  }

  .toc {
    position: static;
  }
}
