@import url("https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@500;600;700&family=DM+Sans:wght@400;500;600;700&family=Space+Grotesk:wght@500;600;700&display=swap");

:root {
  --ink: #17242b;
  --steel: #263940;
  --muted: #65757b;
  --paper: #f4f1ea;
  --white: #fff;
  --line: #d8d8d0;
  --spark: #ef6b35;
  --spark-dark: #ca4c1f;
  --good: #267a58;
  --bad: #af463c;
  --shadow: 0 20px 55px rgba(22, 36, 43, 0.12);
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  overflow-x: clip;
}
body {
  margin: 0;
  overflow-x: clip;
  background: var(--paper);
  color: var(--ink);
  font-family: "DM Sans", Arial, sans-serif;
  line-height: 1.6;
}
a {
  color: inherit;
}
.shell {
  width: min(1160px, calc(100% - 40px));
  margin-inline: auto;
}
.skip-link {
  position: fixed;
  top: -100px;
  left: 20px;
  z-index: 10;
  background: #fff;
  padding: 10px 16px;
}

.skip-link:focus {
  top: 10px;
}
.site-header {
  position: relative;
  z-index: 2;
  background: var(--ink);
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.header-inner {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  text-decoration: none;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  flex: 0 0 58px;
}
.brand-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.brand-name {
  display: inline-flex;
  font: 600 25px/0.95 "Barlow Condensed", "Arial Narrow", sans-serif;
  letter-spacing: 0.015em;
  white-space: nowrap;
}
.brand-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}
.brand-wordmark {
  display: block;
  width: 178px;
  height: auto;
  max-height: 28px;
  object-fit: contain;
  object-position: left center;
}
.brand-tagline {
  width: 178px;
  color: #65757b;
  font: 600 10px/1 "DM Sans", Arial, sans-serif;
  letter-spacing: 0.12em;
  text-align: center;
  text-transform: uppercase;
}
.logo-smede,
.logo-teori {
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}
.logo-smede {
  background-image: linear-gradient(180deg, #66777d 0%, #3d5057 42%, #1b2d34 76%, #52656b 100%);
}
.logo-teori {
  background-image: linear-gradient(180deg, #ff9a3c 0%, #f17320 45%, #d64a0c 100%);
}
.site-header nav {
  display: flex;
  gap: 28px;
  flex: 0 0 auto;
}
.site-header nav a {
  text-decoration: none;
  color: #cbd4d6;
  font-weight: 600;
  font-size: 14px;
  padding: 31px 0;
  border-bottom: 3px solid transparent;
}
.site-header nav a:hover,
.site-header nav a[aria-current="page"] {
  color: #fff;
  border-color: var(--spark);
}
.hero {
  overflow: hidden;
  background: var(--ink);
  color: #fff;
  padding: 92px 0 105px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 90px;
  align-items: center;
}
.eyebrow {
  margin: 0 0 15px;
  color: var(--spark);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.hero h1,
.quiz-hero h1 {
  margin: 0;
  font: 600 clamp(48px, 7vw, 84px) / 0.98 "Space Grotesk";
  letter-spacing: -0.055em;
}
.hero h1 em {
  color: var(--spark);
  font-style: normal;
}
.hero-copy {
  max-width: 600px;
  margin: 28px 0 34px;
  color: #bbc7ca;
  font-size: 18px;
}
.hero-actions,
.result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.hero-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.hero-actions > .button {
  width: 100%;
}
.mix-quiz-button {
  grid-column: 1 / -1;
  justify-content: space-between;
  min-height: 58px;
  border: 2px solid #71878d;
  background: #263940;
  color: #fff;
  text-align: left;
  box-shadow: 4px 4px 0 rgba(4, 24, 31, 0.22);
}
.mix-quiz-button span:first-child {
  display: grid;
  gap: 2px;
}
.mix-quiz-button strong {
  color: #fff;
  font-size: 14px;
}
.mix-quiz-button small {
  color: #c2d1d4;
  font: 500 12px/1.3 "DM Sans", sans-serif;
}
.mix-quiz-button:hover {
  border-color: var(--spark);
  background: #304a53;
  box-shadow: 3px 3px 0 rgba(4, 24, 31, 0.28);
}

.about-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(380px, 0.9fr);
  gap: 40px;
  align-items: center;
}

.about-hero h1 {
  margin-bottom: 20px;
}

.about-hero p:not(.eyebrow) {
  max-width: 680px;
  color: #c2d1d4;
  font-size: 18px;
}

.project-note {
  display: block;
  margin-top: 20px;
  color: #9ba9ad;
  font-size: 11px;
  opacity: 0.72;
}

.about-places h2 {
  margin: 6px 0 18px;
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.about-places dt {
  flex: 0 0 auto;
  white-space: nowrap;
}

.about-content {
  padding-top: 72px;
  padding-bottom: 80px;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 34px;
}

.about-card {
  min-height: 220px;
  padding: 24px;
  border: 1px solid var(--line);
  background: #fff;
}

.about-card h3 {
  margin: 18px 0 10px;
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  font-size: 25px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.about-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.about-quote-feature {
  display: grid;
  grid-template-columns: minmax(180px, 0.4fr) 1fr;
  gap: 28px;
  align-items: center;
  margin: 62px 0;
}

.about-quote-feature img {
  display: block;
  width: 100%;
  max-height: 240px;
  object-fit: contain;
  filter: drop-shadow(8px 10px 12px rgba(4, 24, 31, 0.2));
}

.about-quote-feature blockquote {
  margin: 0;
  padding: 28px 32px;
  border-left: 4px solid var(--spark);
  background: #e6ecee;
  color: var(--ink);
  font: 600 23px/1.35 "Barlow Condensed", "Arial Narrow", sans-serif;
}

.about-quote-feature cite {
  display: block;
  margin-top: 12px;
  color: var(--muted);
  font: 600 14px/1.3 "DM Sans", sans-serif;
}

.about-development a {
  color: var(--spark-dark);
  font-weight: 700;
}

.quiz-learning-quote {
  max-width: 650px;
  margin: 28px 0 0;
  padding: 16px 20px;
  border-left: 3px solid var(--spark);
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  font: 500 16px/1.55 "DM Sans", Arial, sans-serif;
}

.quiz-learning-quote cite {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font: 600 12px/1.3 "DM Sans", sans-serif;
}

.home-quote-section {
  display: flex;
  justify-content: center;
  padding-top: 28px;
}

.home-quote-section .quiz-learning-quote {
  width: min(650px, 100%);
  margin: 0;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 25px;
  border: 0;
  border-radius: 2px;
  padding: 15px 20px;
  text-decoration: none;
  font: 700 14px "DM Sans";
  cursor: pointer;
}
.button-primary {
  background: var(--spark);
  color: #fff;
}
.button-primary:hover {
  background: var(--spark-dark);
}
.button-secondary {
  background: var(--ink);
  color: #fff;
}
.button-random {
  border: 1px solid #61747b;
  background: transparent;
  color: #fff;
}
.button-random:hover {
  border-color: var(--spark);
  background: rgba(239, 107, 53, 0.12);
}
.button-outline {
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
}
.button-outline:hover {
  background: #edf0ed;
}
.result-actions {
  margin-top: 20px;
}
.hero-panel {
  position: relative;
  background: #30464e;
  border: 1px solid rgba(255, 255, 255, 0.13);
  padding: 40px;
  box-shadow: 30px 30px 0 #1e3037;
}
.hero-panel > p {
  margin: 0;
  color: #9fb0b6;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.15em;
}
.hero-panel > strong {
  display: block;
  margin: 5px 0 35px;
  font: 600 35px "Space Grotesk";
}
.hero-panel dl {
  margin: 0;
}
.hero-panel dl div {
  display: flex;
  justify-content: space-between;
  padding: 14px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.hero-panel dt {
  color: #aab8bc;
}
.hero-panel dd {
  margin: 0;
  font-weight: 700;
}
.spark {
  position: absolute;
  background: var(--spark);
  height: 3px;
}
.spark-one {
  width: 40px;
  right: -15px;
  top: 30px;
  transform: rotate(-45deg);
}
.spark-two {
  width: 23px;
  right: 10px;
  top: 3px;
  transform: rotate(-75deg);
}
.section {
  padding: 90px 0 110px;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 50px;
  margin-bottom: 36px;
}
.section-heading h2 {
  margin: 0;
  font: 600 43px "Space Grotesk";
}
.section-heading > p {
  max-width: 500px;
  color: var(--muted);
  margin: 0;
}
.topic-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.topic-card {
  min-height: 295px;
  padding: 27px;
  background: #fff;
  border: 1px solid var(--line);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  transition: 0.2s;
}
.topic-card.active:hover {
  transform: translateY(-5px);
  border-color: var(--spark);
  box-shadow: var(--shadow);
}
.topic-number {
  color: var(--spark);
  font: 700 12px "Space Grotesk";
}
.topic-card h3 {
  margin: 36px 0 8px;
  font: 600 24px "Space Grotesk";
  line-height: 1.15;
  overflow-wrap: normal;
  word-break: normal;
}
.topic-card h3.topic-title-long {
  font-size: 22px;
}
.topic-card p {
  color: var(--muted);
  font-size: 14px;
}
.card-link,
.tag {
  margin-top: auto;
}
.card-link {
  display: flex;
  justify-content: space-between;
  font-weight: 700;
  font-size: 13px;
}
.card-link b {
  color: var(--spark);
  font-size: 20px;
}
.topic-card.muted {
  background: transparent;
  color: #68777c;
}
.tag {
  align-self: start;
  padding: 5px 8px;
  background: #e7e4dd;
  color: #7a817f;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
}
.quiz-hero {
  background: var(--ink);
  color: #fff;
  padding: 50px 0 62px;
}
.quiz-hero .back-link {
  display: inline-block;
  margin-bottom: 35px;
  color: #a9b7bb;
  text-decoration: none;
  font-size: 13px;
}
.quiz-hero h1 {
  font-size: clamp(43px, 6vw, 67px);
}
.quiz-hero > div > p:last-child {
  color: #bdc8cb;
  margin: 18px 0 0;
  font-size: 17px;
}
.quiz-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 55px;
  padding: 55px 0 100px;
  align-items: start;
  min-width: 0;
}
.quiz-layout > div,
.quiz-form,
.question-card {
  min-width: 0;
  max-width: 100%;
}
.quiz-meta {
  position: sticky;
  top: 20px;
}
.progress-card {
  background: var(--steel);
  color: #fff;
  padding: 25px;
}
.progress-card > span,
.progress-card small {
  display: block;
  color: #adbec2;
  font-size: 12px;
}
.progress-card strong {
  display: block;
  margin: 5px 0 17px;
  font: 600 28px "Space Grotesk";
}
.progress-track {
  height: 5px;
  background: #52646a;
  margin-bottom: 11px;
}
.progress-track span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--spark);
  transition: width 0.2s;
}
.question-card {
  margin: 0 0 17px;
  padding: 28px 30px 30px;
  border: 1px solid var(--line);
  background: #fff;
  min-inline-size: 0;
}
.question-card legend {
  float: left;
  width: 100%;
  margin-bottom: 23px;
  font: 600 20px/1.35 "Space Grotesk";
}
.question-card legend span {
  display: block;
  margin-bottom: 8px;
  color: var(--spark);
  font: 700 10px "DM Sans";
  letter-spacing: 0.13em;
  text-transform: uppercase;
}
.speak-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  margin-left: 6px;
  padding: 0;
  border: 1px solid #c8ced0;
  border-radius: 50%;
  background: #f4f7f8;
  color: #273238;
  font: 15px/1 sans-serif;
  cursor: pointer;
  vertical-align: middle;
}
.speak-button:hover,
.speak-button:focus-visible {
  border-color: var(--spark);
  background: #fff3ea;
}
.option-speak {
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  margin: 0 0 0 auto;
  font-size: 13px;
}
.options {
  clear: both;
  display: grid;
  gap: 9px;
}
.option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 15px;
  border: 1px solid #dedfd9;
  background: #fafaf7;
  cursor: pointer;
  font-size: 14px;
  min-width: 0;
  overflow-wrap: anywhere;
}
.option > span:last-child {
  min-width: 0;
  overflow-wrap: anywhere;
}
.option:hover {
  border-color: #93a0a3;
}
.option input {
  position: absolute;
  opacity: 0;
}
.radio-mark {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  border: 2px solid #9aa5a7;
  border-radius: 50%;
  box-shadow: inset 0 0 0 3px #fafaf7;
}
.option:has(input:checked) {
  border-color: var(--spark);
  background: #fff7f2;
}
.option input:checked + .radio-mark {
  background: var(--spark);
  border-color: var(--spark);
}
.question-card.is-correct {
  border-left: 4px solid var(--good);
}
.question-card.is-wrong {
  border-left: 4px solid var(--bad);
}
.correct-option {
  border-color: var(--good) !important;
  background: #eef8f3 !important;
}
.feedback {
  clear: both;
  margin: 17px 0 0;
  padding: 12px 15px;
  background: #f0f1ed;
  font-size: 13px;
}
.result-card {
  margin-bottom: 25px;
  padding: 32px;
  background: #fff;
  border-top: 5px solid var(--spark);
  box-shadow: var(--shadow);
}
.result-score {
  display: flex;
  align-items: baseline;
  gap: 18px;
}
.result-score strong {
  font: 700 60px "Space Grotesk";
}
.result-score span {
  color: var(--muted);
}
.submit-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-top: 28px;
  padding: 22px 25px;
  background: var(--steel);
  color: #fff;
}
.submit-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}
@media (max-width: 600px) {
  .submit-actions {
    width: 100%;
    justify-content: stretch;
  }
  .submit-actions .button {
    flex: 1 1 100%;
  }
}
.submit-bar strong,
.submit-bar span {
  display: block;
}
.submit-bar span {
  font-size: 12px;
  color: #b8c5c8;
}
.site-footer {
  background: #101c21;
  color: #fff;
  padding: 45px 0;
}
.footer-inner {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
}
.site-footer strong {
  font: 600 18px "Space Grotesk";
}
.site-footer p {
  margin: 4px 0 0;
  color: #83959a;
  font-size: 12px;
}
.quiz-intro {
  min-height: calc(100vh - 88px);
  padding: 80px 0 110px;
  background: linear-gradient(135deg, var(--ink) 0 58%, #30464e 58%);
  color: #fff;
  min-width: 0;
}
.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
  gap: 80px;
  align-items: center;
  min-width: 0;
}
.intro-copy,
.intro-card {
  min-width: 0;
  max-width: 100%;
}
.intro-copy .back-link {
  display: inline-block;
  margin-bottom: 50px;
  color: #a9b7bb;
  text-decoration: none;
  font-size: 13px;
}
.intro-copy h1 {
  max-width: 760px;
  margin: 0;
  font: 600 clamp(48px, 7vw, 78px) / 1 "Space Grotesk";
  letter-spacing: -0.05em;
  overflow-wrap: anywhere;
}
.intro-copy > p:last-of-type {
  max-width: 650px;
  color: #bdc8cb;
  font-size: 18px;
}
.intro-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}
.intro-challenge-form {
  display: grid;
  grid-template-columns: minmax(105px, auto) max-content max-content;
  align-items: end;
  gap: 10px;
  margin: 0;
}
.intro-challenge-setup {
  margin: 0;
}
.intro-challenge-setup[open] {
  display: flex;
  flex: 0 1 auto;
}
.intro-actions:has(.intro-challenge-setup[open]) > [data-standard-quiz-start],
.intro-actions:has(.intro-challenge-setup[open]) > [data-challenge-back] {
  display: none;
}
.intro-challenge-setup > summary {
  list-style: none;
  cursor: pointer;
}
.intro-challenge-setup[open] > summary {
  display: none;
}
.intro-challenge-setup > summary::-webkit-details-marker {
  display: none;
}
.challenge-question-count {
  display: grid;
  gap: 5px;
  color: #d2dddf;
  font-size: 12px;
  font-weight: 700;
}
.challenge-question-count select {
  width: 100px;
  min-width: 100px;
  min-height: 52px;
  padding: 10px 26px 10px 10px;
  border: 1px solid #91b5bf;
  border-radius: 3px;
  background: #f8faf8;
  color: var(--ink);
  font: 700 15px/1.2 "DM Sans", Arial, sans-serif;
}
.intro-cancel {
  color: #fff;
  border: 1px solid #61747b;
  background: transparent;
}
.intro-card {
  padding: 32px;
  background: #fff;
  color: var(--ink);
  box-shadow: 22px 22px 0 rgba(16, 28, 33, 0.4);
  overflow-wrap: anywhere;
}
.intro-card dl {
  margin: 0;
}
.intro-card dl div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  min-width: 0;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.intro-card dd {
  margin: 0;
  font-weight: 700;
  min-width: 0;
  text-align: right;
  overflow-wrap: anywhere;
}
.intro-card > p:last-child {
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 14px;
}
.quiz-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 9px;
  margin-top: 20px;
}
.progress-submit,
.abort-button {
  display: flex;
  box-sizing: border-box;
  width: 100%;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 10px 12px;
  font: 700 12px "DM Sans";
}
.progress-submit {
  border: 1px solid var(--spark);
  background: var(--spark);
  color: #fff;
  cursor: pointer;
}
.progress-submit:hover {
  background: var(--spark-dark);
  border-color: var(--spark-dark);
}
.abort-button {
  border: 1px solid #829197;
  color: #ffd0bd;
  text-align: center;
  text-decoration: none;
}
.abort-button:hover {
  border-color: var(--spark);
  background: rgba(239, 107, 53, 0.12);
  color: #fff;
}
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 60px;
  }
  .hero-panel {
    max-width: 520px;
  }
  .topic-grid {
    grid-template-columns: 1fr 1fr;
  }
  .quiz-layout {
    grid-template-columns: 1fr;
  }
  .quiz-meta {
    position: static;
  }
  .section-heading {
    align-items: start;
    flex-direction: column;
  }
  .progress-card {
    max-width: none;
  }
}
@media (max-width: 900px) {
  .intro-grid {
    grid-template-columns: 1fr;
    gap: 45px;
  }
  .quiz-intro {
    background: var(--ink);
  }
  .intro-card {
    max-width: 560px;
  }
}
@media (max-width: 600px) {
  .shell {
    width: min(100% - 26px, 1160px);
  }
  .quiz-hero > .shell,
  .quiz-layout {
    width: calc(100% - 26px);
    margin-inline: auto;
  }
  .header-inner {
    min-height: 72px;
    gap: 10px;
  }
  .site-header nav {
    gap: 10px;
  }
  /* The logo already links to the front page; keep the remaining navigation visible. */
  .site-header nav a:first-child {
    display: none;
  }
  .site-header nav a {
    padding: 23px 0;
  }
  .brand {
    gap: 8px;
    flex: 1 1 auto;
  }
  .brand-mark {
    width: 48px;
    height: 48px;
    flex-basis: 48px;
  }
  .brand-name {
    font-size: 18px;
  }
  .hero {
    padding: 65px 0 75px;
  }
  .hero h1 {
    font-size: 47px;
  }
  .hero-panel {
    padding: 28px;
    box-shadow: 13px 13px 0 #1e3037;
  }
  .section {
    padding: 65px 0;
  }
  .topic-grid {
    grid-template-columns: 1fr;
  }
  .topic-card {
    min-height: 230px;
  }
  .quiz-hero {
    padding: 38px 0 45px;
  }
  .quiz-layout {
    padding-top: 25px;
    gap: 25px;
  }
  .question-card {
    padding: 23px 18px;
  }
  .submit-bar,
  .footer-inner,
  .hero-actions,
  .result-actions {
    align-items: stretch;
    flex-direction: column;
  }
  .hero-actions {
    grid-template-columns: 1fr;
  }
  .button {
    width: 100%;
  }
}
@media (max-width: 600px) {
  .quiz-intro {
    padding: 45px 0 75px;
  }
  .intro-grid {
    width: calc(100% - 26px);
    max-width: 100%;
  }
  .intro-copy,
  .intro-card {
    width: 100%;
    max-width: 100%;
  }
  .intro-copy .back-link {
    margin-bottom: 32px;
  }
  .intro-copy h1 {
    font-size: 44px;
  }
  .intro-actions {
    flex-direction: column;
  }
  .intro-card {
    padding: 24px;
    box-shadow: 10px 10px 0 rgba(16, 28, 33, 0.4);
  }
}
@media (max-width: 480px) {
  .site-header nav {
    gap: 12px;
  }
  .site-header nav a {
    font-size: 13px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

/* Blueprint theme */
:root {
  --ink: #0d2733;
  --steel: #123847;
  --muted: #5e747d;
  --paper: #edf1ef;
  --line: #aebfc2;
  --spark: #eeb426;
  --spark-dark: #c78e09;
  --shadow: 12px 12px 0 rgba(4, 24, 31, 0.18);
}

body {
  background: var(--paper);
  color: var(--ink);
}

.site-header {
  background: #b3b3b3;
  color: var(--ink);
  border-bottom: 1px solid #b9c8cb;
}

.site-header nav a {
  color: #36505a;
}

.site-header nav a:hover,
.site-header nav a[aria-current="page"] {
  color: var(--ink);
  border-color: var(--spark);
}

.hero,
.quiz-hero,
.quiz-intro {
  background-color: #123847;
  background-image:
    linear-gradient(rgba(127, 178, 191, 0.11) 1px, transparent 1px),
    linear-gradient(90deg, rgba(127, 178, 191, 0.11) 1px, transparent 1px);
  background-size: 28px 28px;
}

.hero {
  padding: 84px 0 102px;
}

.eyebrow,
.topic-number {
  color: var(--spark);
}

.hero h1,
.quiz-hero h1,
.intro-copy h1 {
  font-family: "Barlow Condensed", "Arial Narrow", "Segoe UI", sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.015em;
}

.hero h1 em {
  color: var(--spark);
}

.hero-copy,
.quiz-hero > div > p:last-child,
.intro-copy > p:last-of-type {
  color: #c2d1d4;
}

.button-primary {
  background: var(--spark);
  color: #142932;
}

.button-primary:hover {
  background: var(--spark-dark);
}

.button-secondary,
.button-random {
  background: transparent;
  border: 1px solid #8eb0ba;
  color: #fff;
}

.button-random:hover,
.button-secondary:hover {
  border-color: var(--spark);
  background: rgba(238, 180, 38, 0.12);
}

.result-card .button-secondary {
  color: var(--ink);
  border-color: var(--ink);
}

.hero-panel {
  background: rgba(9, 37, 48, 0.82);
  border: 2px solid #91b5bf;
  box-shadow: var(--shadow);
}

.hero-panel > p,
.hero-panel dt {
  color: #a9c0c6;
}

.hero-panel dl div {
  border-top: 1px dashed #6f969f;
}

.section-heading > p,
.topic-card p {
  color: var(--muted);
}

.topic-grid {
  gap: 12px;
}

.topic-card {
  background: #f8faf8;
  border: 1px solid var(--line);
}

.topic-card::before {
  content: "";
  position: absolute;
  top: 11px;
  right: 11px;
  width: 9px;
  height: 9px;
  border-top: 1px solid #829ba1;
  border-right: 1px solid #829ba1;
}

.topic-card.active:hover {
  border-color: #719ba6;
  box-shadow: var(--shadow);
}

.card-link {
  border-top: 1px dashed #b9c6c8;
  padding-top: 14px;
}

.quiz-hero {
  padding: 58px 0 70px;
}

.quiz-hero .back-link,
.intro-copy .back-link {
  color: #b8cdd2;
}

.quiz-layout {
  background: var(--paper);
}

.progress-card,
.submit-bar {
  background: #123847;
}

.progress-track {
  background: #416572;
}

.progress-track span {
  background: var(--spark);
}

.question-card,
.result-card,
.intro-card {
  background: #f8faf8;
  border-color: var(--line);
}

.question-card legend span {
  color: #b47d00;
}

.option {
  background: #f1f5f3;
  border-color: #c6d2d2;
}

.option:hover,
.option:has(input:checked) {
  border-color: #719ba6;
}

.option:has(input:checked) {
  background: #fff8df;
}

.radio-mark {
  box-shadow: inset 0 0 0 3px #f1f5f3;
}

.result-card {
  border-top-color: var(--spark);
  box-shadow: var(--shadow);
}

.quiz-intro {
  color: #f4f7f5;
}

.intro-card {
  background: rgba(9, 37, 48, 0.82);
  border: 2px solid #91b5bf;
  color: #f4f7f5;
  box-shadow: var(--shadow);
}

.intro-card dl div {
  border-top: 1px dashed #6f969f;
}

.site-footer {
  background: #0d2b37;
  color: #d7e1e2;
}

@media (max-width: 600px) {
  .hero {
    padding: 62px 0 74px;
  }

  .hero-panel,
  .intro-card {
    box-shadow: 8px 8px 0 rgba(4, 24, 31, 0.45);
  }
}

.elapsed {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid #52646a;
}
.elapsed span {
  color: #adbec2;
  font-size: 12px;
}
.elapsed strong {
  margin: 0;
  font-size: 21px;
  font-variant-numeric: tabular-nums;
}
.question-card.needs-answer {
  border: 2px solid var(--bad);
  box-shadow: 0 0 0 4px rgba(175, 70, 60, 0.1);
}
.feedback > strong,
.feedback > span {
  display: block;
}
.feedback > span {
  margin-top: 4px;
}
.feedback p {
  margin: 9px 0 0;
}
.form-error {
  padding: 14px 18px;
  background: #fff0ed;
  border-left: 4px solid var(--bad);
  color: #7e3029;
  font-weight: 700;
}
.is-hidden {
  display: none;
}
.question-card:focus {
  outline: 3px solid rgba(239, 107, 53, 0.32);
  outline-offset: 3px;
}
.question-illustration {
  clear: both;
  margin: 0 0 22px;
  padding: 18px;
  text-align: center;
  background: #f7f7f3;
  border: 1px solid #e1e2dc;
}
.question-illustration img {
  display: block;
  width: min(100%, 420px);
  max-height: 290px;
  margin: auto;
  object-fit: contain;
}
.explanation-illustration {
  display: block;
  width: min(100%, 420px);
  max-height: 300px;
  margin: 16px auto 3px;
  padding: 12px;
  object-fit: contain;
  background: #fff;
  border: 1px solid #d9ddd8;
}
.explanation-illustration-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin: 16px 0 3px;
}
.explanation-illustration-grid img {
  display: block;
  width: 100%;
  height: 260px;
  padding: 12px;
  object-fit: contain;
  background: #fff;
  border: 1px solid #d9ddd8;
}
.topic-grid {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}
.quiz-layout.result-layout {
  grid-template-columns: minmax(0, 1fr);
}
.back-to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 46px;
  padding: 10px 15px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 3px;
  background: var(--steel);
  color: #fff;
  box-shadow: 0 10px 30px rgba(22, 36, 43, 0.25);
  font: 600 12px "DM Sans";
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  pointer-events: none;
  transition:
    opacity 0.2s,
    transform 0.2s,
    visibility 0.2s,
    background 0.2s;
}
.back-to-top span {
  color: var(--spark);
  font-size: 20px;
  line-height: 1;
}
.back-to-top strong {
  font: inherit;
}
.back-to-top:hover {
  background: var(--ink);
}
.back-to-top:focus-visible {
  outline: 3px solid rgba(239, 107, 53, 0.5);
  outline-offset: 3px;
}
.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}
@media (max-width: 900px) {
  .topic-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 600px) {
  .topic-grid {
    grid-template-columns: 1fr;
  }
  .back-to-top {
    right: 13px;
    bottom: 13px;
    min-width: 46px;
    padding: 9px 11px;
  }
  .back-to-top strong {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
  .back-to-top span {
    font-size: 24px;
  }
}

.report-question {
  display: inline-flex;
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px solid #d8dcd7;
  color: #52666d;
  font-weight: 700;
  text-decoration: none;
}
.report-question:hover {
  color: var(--spark);
}
.contact-hero {
  background: var(--ink);
  color: #fff;
  padding: 62px 0 68px;
}
.contact-hero h1 {
  margin: 0;
  font: 600 clamp(44px, 6vw, 68px) / 1 "Space Grotesk";
  letter-spacing: -0.045em;
}
.contact-hero > div > p:last-child {
  max-width: 720px;
  margin: 20px 0 0;
  color: #bdc8cb;
  font-size: 17px;
}
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 45px;
  align-items: start;
  padding: 60px 0 100px;
}
.contact-card {
  padding: 34px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.contact-form {
  display: grid;
  gap: 22px;
}
.contact-form label {
  display: grid;
  gap: 7px;
}
.contact-form label > span {
  font-weight: 700;
}
.contact-form label small {
  color: var(--muted);
  font-weight: 500;
}
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 1px solid #bfc7c7;
  border-radius: 2px;
  background: #fafaf7;
  color: var(--ink);
  padding: 12px 13px;
  font: 500 15px "DM Sans";
}
.contact-form textarea {
  resize: vertical;
  min-height: 180px;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: 3px solid rgba(239, 107, 53, 0.2);
  border-color: var(--spark);
}
.contact-fields-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.contact-form > .button {
  justify-self: start;
}
.contact-privacy {
  margin: -4px 0 0;
  color: var(--muted);
  font-size: 12px;
}
.contact-honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}
.contact-errors {
  padding: 15px 18px;
  border-left: 4px solid var(--bad);
  background: #fff0ed;
  color: #7e3029;
}
.contact-errors ul {
  margin: 7px 0 0;
  padding-left: 20px;
}
.report-context {
  display: grid;
  gap: 6px;
  padding: 17px 19px;
  border-left: 4px solid var(--spark);
  background: #f2f1eb;
}
.report-context span {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.report-context strong {
  font: 600 18px/1.4 "Space Grotesk";
}
.contact-aside {
  padding: 27px;
  background: var(--steel);
  color: #fff;
}
.contact-aside strong {
  font: 600 23px/1.2 "Space Grotesk";
}
.contact-aside p {
  color: #bec9cc;
  font-size: 14px;
}
.contact-success {
  grid-column: 1/-1;
  max-width: 760px;
}
.contact-success h2 {
  margin: 0;
  font: 600 38px "Space Grotesk";
}
.contact-actions {
  display: flex;
  gap: 12px;
  margin-top: 25px;
}
.site-footer a {
  color: #b8c5c8;
}
.site-footer a:hover {
  color: #fff;
}
@media (max-width: 800px) {
  .contact-layout {
    grid-template-columns: 1fr;
  }
  .contact-aside {
    order: -1;
  }
  .contact-fields-two {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 600px) {
  .contact-hero {
    padding: 45px 0 50px;
  }
  .contact-layout {
    padding: 28px 0 70px;
    gap: 18px;
  }
  .contact-card {
    padding: 23px 18px;
  }
  .contact-actions {
    flex-direction: column;
  }
  .contact-form > .button {
    width: 100%;
  }
}

.cookie-hero {
  padding: 64px 0 72px;
  overflow: hidden;
  background:
    radial-gradient(circle at 82% 30%, rgba(239, 107, 53, 0.2), transparent 27%),
    var(--ink);
  color: #fff;
}
.cookie-hero h1 {
  margin: 0;
  font: 600 clamp(46px, 7vw, 76px) / 0.95 "Space Grotesk";
  letter-spacing: -0.05em;
}
.cookie-hero h1 em {
  color: var(--spark);
  font-style: normal;
}
.cookie-hero > div > p:last-child {
  max-width: 720px;
  margin: 24px 0 0;
  color: #bdc8cb;
  font-size: 17px;
}
.cookie-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 28px;
  align-items: start;
  padding: 60px 0 100px;
}
.cookie-card {
  padding: 34px;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow);
}
.cookie-card h2 {
  margin: 0 0 18px;
  font: 600 clamp(28px, 4vw, 40px) / 1.08 "Space Grotesk";
  letter-spacing: -0.03em;
}
.cookie-card p {
  max-width: 760px;
}
.cookie-story {
  min-width: 0;
}
.cookie-summary {
  padding: 28px;
  background: var(--steel);
  color: #fff;
}
.cookie-summary span {
  color: #bec9cc;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.cookie-summary strong {
  display: block;
  margin: 7px 0 3px;
  color: var(--spark);
  font: 600 72px/1 "Space Grotesk";
}
.cookie-summary p {
  margin-bottom: 0;
  color: #d7dfe1;
}
.cookie-technical,
.cookie-privacy {
  grid-column: 1 / -1;
}
.cookie-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 28px 0 34px;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.cookie-facts div {
  min-width: 0;
  padding: 18px 20px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.cookie-facts dt {
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.cookie-facts dd {
  margin: 0;
  font-weight: 600;
}
.cookie-facts code {
  color: var(--spark-dark);
  font-size: 15px;
}
.cookie-code-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 800;
}
.cookie-code {
  display: block;
  width: 100%;
  min-height: 220px;
  resize: none;
  border: 1px solid #364449;
  border-radius: 2px;
  background: #111719;
  color: #dce8e4;
  padding: 20px;
  font: 500 14px/1.7 Consolas, "Courier New", monospace;
}
.cookie-code:focus {
  outline: 3px solid rgba(239, 107, 53, 0.35);
  outline-offset: 2px;
}
.cookie-note {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13px;
}
.cookie-privacy .button {
  margin-top: 12px;
}
@media (max-width: 800px) {
  .about-grid {
    grid-template-columns: 1fr 1fr;
  }
  .about-hero-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .cookie-layout {
    grid-template-columns: 1fr;
  }
  .cookie-summary {
    grid-row: 1;
  }
  .cookie-technical,
  .cookie-privacy {
    grid-column: auto;
  }
}
@media (max-width: 600px) {
  .brand-wordmark {
    width: 132px;
    max-height: 24px;
  }
  .brand-tagline {
    width: 132px;
    font-size: 8px;
  }
  .about-hero-grid,
  .about-grid,
  .about-quote-feature {
    grid-template-columns: 1fr;
  }
  .about-content {
    padding-top: 48px;
    padding-bottom: 64px;
  }
  .about-card {
    min-height: 0;
  }
  .about-quote-feature blockquote {
    padding: 22px 20px;
    font-size: 20px;
  }
  .cookie-hero {
    padding: 46px 0 52px;
  }
  .cookie-layout {
    gap: 18px;
    padding: 28px 0 70px;
  }
  .cookie-card {
    padding: 24px 18px;
  }
  .cookie-facts {
    grid-template-columns: 1fr;
  }
  .cookie-code {
    min-height: 235px;
    padding: 15px;
    font-size: 12px;
  }
}

/* Compact mobile navigation. */
.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 76px;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid #36505a;
  border-radius: 3px;
  background: #d4d4d4;
  color: var(--ink);
  font: 700 13px/1 "DM Sans", Arial, sans-serif;
  cursor: pointer;
}

.menu-toggle-icon {
  display: grid;
  gap: 4px;
  width: 18px;
}

.menu-toggle-icon span {
  display: block;
  height: 2px;
  background: currentColor;
  transition: transform .2s ease, opacity .2s ease;
}

.menu-toggle.is-open .menu-toggle-icon span:first-child {
  transform: translateY(6px) rotate(45deg);
}

.menu-toggle.is-open .menu-toggle-icon span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.is-open .menu-toggle-icon span:last-child {
  transform: translateY(-6px) rotate(-45deg);
}

@media (max-width: 760px) {
  .header-inner {
    position: relative;
  }

  .menu-toggle {
    display: inline-flex;
    flex: 0 0 auto;
  }

  .site-header nav {
    position: absolute;
    z-index: 5;
    top: 100%;
    right: 13px;
    left: 13px;
    display: none;
    flex-direction: column;
    gap: 0;
    padding: 8px;
    background: var(--ink);
    box-shadow: 0 12px 24px rgba(4, 24, 31, .22);
  }

  .site-header nav[data-open="true"] {
    display: flex;
  }

  .site-header nav a,
  .site-header nav a:first-child {
    display: block;
    padding: 13px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, .16);
    color: #fff;
  }

  .site-header nav a:last-child {
    border-bottom: 0;
  }

  .site-header nav a:hover,
  .site-header nav a[aria-current="page"] {
    color: var(--spark);
  }
}

/* Quiz challenges */
.challenge-join-form {
  grid-column: 1 / -1;
  display: grid;
  gap: 7px;
  margin: 4px 0 0;
}

.challenge-join-form label {
  color: #d2dddf;
  font-size: 13px;
  font-weight: 700;
}

.challenge-join-form > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.challenge-join-form input {
  min-width: 0;
  min-height: 44px;
  padding: 9px 11px;
  border: 1px solid #71878d;
  border-radius: 3px;
  background: #fff;
  color: var(--ink);
  font: 500 14px/1.2 "DM Sans", Arial, sans-serif;
  letter-spacing: .08em;
}

.challenge-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 52px;
  padding: 13px 22px;
  border: 0;
  border-radius: 3px;
  background: linear-gradient(110deg, #ffd43b 0%, #ff8b24 52%, #ed462f 100%);
  color: #17272e;
  font: 800 14px/1.2 "DM Sans", Arial, sans-serif;
  letter-spacing: .025em;
  text-align: center;
  text-transform: uppercase;
  clip-path: polygon(8% 0, 92% 0, 100% 24%, 100% 76%, 92% 100%, 8% 100%, 0 76%, 0 24%);
  filter: drop-shadow(0 5px 0 #96371f) drop-shadow(0 9px 10px rgba(4, 24, 31, .28));
  cursor: pointer;
  transition: transform .16s ease, filter .16s ease;
}

.challenge-cta:hover {
  background: linear-gradient(110deg, #ffe36a 0%, #ff9e37 52%, #f15b3e 100%);
  color: #17272e;
  filter: drop-shadow(0 7px 0 #96371f) drop-shadow(0 12px 13px rgba(4, 24, 31, .34));
  transform: translateY(-2px) scale(1.015);
}

.challenge-cta:active {
  filter: drop-shadow(0 2px 0 #96371f);
  transform: translateY(3px);
}

.challenge-cta:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 5px;
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, .9));
}

.challenge-cta span {
  font-size: 19px;
  line-height: 1;
}

.challenge-share-panel {
  max-width: 690px;
  margin-top: 28px;
  padding: 22px;
  border: 1px solid #71878d;
  border-radius: 3px;
  background: rgba(13, 39, 51, .72);
}

.challenge-share-panel > .eyebrow {
  margin: 0 0 8px;
  color: var(--spark);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.challenge-share-panel > p:not(.eyebrow) {
  margin: 0 0 14px;
  color: #d2dddf;
  font-size: 14px;
}

.challenge-share-panel label {
  display: block;
  margin-bottom: 6px;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}

.challenge-link-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.challenge-link-row input {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 9px 11px;
  border: 1px solid #b9c6c8;
  border-radius: 3px;
  background: #fff;
  color: var(--ink);
  font: 500 13px/1.3 "DM Sans", Arial, sans-serif;
}

.challenge-link-row .button {
  min-height: 44px;
  padding: 10px 14px;
}

.challenge-share-panel .challenge-code-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  margin: 14px 0 8px;
  padding-top: 12px;
  border-top: 1px dashed #71878d;
}

.challenge-code-row strong {
  color: #fff;
  font: 700 17px/1.2 "Space Grotesk", sans-serif;
  letter-spacing: .08em;
  overflow-wrap: anywhere;
}

.challenge-share-panel > .challenge-share-note {
  margin: 8px 0 0;
  color: #aebfc3;
  font-size: 12px;
}

.challenge-share-panel > .challenge-copy-status {
  min-height: 1.2em;
  margin: 8px 0 0;
  color: #f4c36b;
  font-size: 13px;
}

.challenge-error {
  padding: 12px 14px;
  border-left: 4px solid #f4c36b;
  background: rgba(13, 39, 51, .72);
  color: #fff;
}

@media (max-width: 520px) {
  .intro-copy h1 {
    font-size: clamp(26px, 8vw, 44px);
    line-height: 1.05;
    letter-spacing: 0;
  }

  .intro-challenge-form {
    grid-template-columns: minmax(0, 1fr);
  }

  .intro-challenge-form .button-primary {
    width: 100%;
  }

  .intro-challenge-setup[open] {
    width: 100%;
  }

  .challenge-share-panel {
    padding: 17px;
  }

  .challenge-link-row {
    grid-template-columns: 1fr;
  }

  .challenge-join-form > div {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .intro-card dl div {
    align-items: flex-start;
    gap: 12px;
  }

  .intro-card dt {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .intro-card dd {
    flex: 1 1 0;
  }
}
