:root {
  color-scheme: light;
  --ink: #221f1a;
  --muted: #70685d;
  --paper: #fff4dc;
  --paper-deep: #f2e3c5;
  --surface: #fffdf7;
  --yellow: #ffd84a;
  --green: #62ce83;
  --pink: #f5b5ca;
  --blue: #a8dcf7;
  --orange: #ff643d;
  --line: #29241e;
  --soft-line: rgba(41, 36, 30, 0.22);
  --radius: 18px;
  --shadow: 6px 7px 0 var(--ink);
  --font-display: ui-rounded, "SF Pro Rounded", "Arial Rounded MT Bold", "Trebuchet MS", sans-serif;
  --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--paper);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  opacity: 0.32;
  background-image: radial-gradient(rgba(34, 31, 26, 0.12) 0.65px, transparent 0.65px);
  background-size: 16px 16px;
  mask-image: linear-gradient(to bottom, black, transparent 42rem);
}

a {
  color: inherit;
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

[hidden] {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-shell {
  width: min(100% - 40px, 1120px);
  margin: 0 auto;
}

.site-header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 24px;
  align-items: center;
  min-height: 92px;
  border-bottom: 2px solid var(--line);
}

.brand {
  display: inline-flex;
  gap: 11px;
  align-items: center;
  width: fit-content;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 47px;
  height: 47px;
  border: 2px solid var(--line);
  border-radius: 14px;
  background: var(--yellow);
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 950;
  letter-spacing: -0.06em;
  box-shadow: 3px 3px 0 var(--ink);
  transform: rotate(-2deg);
}

.brand-lockup {
  display: grid;
  gap: 1px;
}

.brand-lockup strong {
  font-family: var(--font-display);
  font-size: 1.18rem;
  font-weight: 950;
  letter-spacing: -0.045em;
}

.brand-lockup small {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.57rem;
  letter-spacing: 0.01em;
}

.main-nav {
  display: flex;
  gap: 5px;
  align-items: center;
  padding: 4px;
  border: 1.5px solid var(--soft-line);
  border-radius: 13px;
  background: rgba(255, 253, 247, 0.56);
}

.main-nav a {
  padding: 9px 13px;
  border-radius: 9px;
  font-size: 0.76rem;
  font-weight: 780;
  text-decoration: none;
  white-space: nowrap;
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
  background: var(--surface);
  box-shadow: inset 0 0 0 1px rgba(41, 36, 30, 0.09);
}

.free-chip {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  justify-self: end;
  padding: 9px 13px;
  border: 2px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 800;
  text-transform: uppercase;
  box-shadow: 3px 3px 0 var(--ink);
}

.free-chip i {
  width: 8px;
  height: 8px;
  border: 1.5px solid var(--line);
  border-radius: 50%;
  background: var(--green);
}

.tool-hero {
  padding: 82px 0 74px;
}

.hero-heading {
  max-width: 890px;
  margin: 0 auto 48px;
  text-align: center;
}

.eyebrow {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  margin: 0 0 23px;
  font-family: var(--font-mono);
  font-size: 0.67rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow span,
.eyebrow b {
  padding: 7px 10px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
}

.eyebrow b {
  background: var(--green);
}

.hero-heading h1,
.section-heading h2,
.plain-talk h2,
.page-hero h1,
.not-found strong {
  font-family: var(--font-display);
  font-weight: 950;
  letter-spacing: -0.065em;
}

.hero-heading h1 {
  margin: 0;
  font-size: clamp(3.9rem, 7.2vw, 6.4rem);
  line-height: 0.97;
}

.hero-heading mark,
.page-hero mark {
  display: inline-block;
  padding: 0 0.14em 0.08em;
  border: 2px solid var(--line);
  border-radius: 14px;
  color: var(--ink);
  background: var(--yellow);
  box-shadow: 4px 5px 0 var(--ink);
  transform: rotate(-1deg);
}

.hero-heading > p:last-child {
  max-width: 620px;
  margin: 28px auto 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  line-height: 1.6;
}

.lookup-panel {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
  padding: 34px;
  border: 2px solid var(--line);
  border-radius: 24px;
  background-color: var(--surface);
  background-image: radial-gradient(rgba(34, 31, 26, 0.11) 0.85px, transparent 0.85px);
  background-size: 18px 18px;
  box-shadow: 8px 9px 0 var(--ink);
}

.panel-sticker {
  position: absolute;
  top: -18px;
  right: 34px;
  padding: 8px 12px;
  border: 2px solid var(--line);
  border-radius: 9px;
  background: var(--orange);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  box-shadow: 3px 3px 0 var(--ink);
  transform: rotate(2deg);
}

.search-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  padding: 8px;
  border: 2px solid var(--line);
  border-radius: 19px;
  background: var(--surface);
  transition: box-shadow 140ms ease, transform 140ms ease;
}

.search-row:focus-within {
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0 var(--yellow);
}

.input-icon {
  display: grid;
  place-items: center;
  width: 43px;
  height: 43px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: var(--yellow);
  font-size: 1.12rem;
  font-weight: 900;
}

.search-row input {
  min-width: 0;
  width: 100%;
  padding: 15px 11px;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
  font-family: var(--font-display);
  font-size: clamp(1.12rem, 2.2vw, 1.5rem);
  font-weight: 850;
  letter-spacing: -0.025em;
}

.search-row input::placeholder {
  color: #aaa194;
}

.primary-button {
  display: inline-flex;
  gap: 22px;
  align-items: center;
  justify-content: space-between;
  min-width: 166px;
  padding: 16px 17px;
  border: 2px solid var(--line);
  border-radius: 12px;
  color: white;
  background: var(--ink);
  font-size: 0.83rem;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 3px 3px 0 var(--green);
  transition: color 130ms ease, background 130ms ease, box-shadow 130ms ease, transform 130ms ease;
}

.primary-button:hover:not(:disabled) {
  color: var(--ink);
  background: var(--green);
  box-shadow: 3px 3px 0 var(--ink);
  transform: translate(-1px, -1px);
}

.primary-button:active:not(:disabled) {
  transform: translate(2px, 2px);
  box-shadow: 0 0 0 var(--ink);
}

.primary-button:disabled {
  cursor: wait;
  opacity: 0.68;
}

.button-arrow {
  font-size: 1.1rem;
}

.lookup-foot {
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
  margin-top: 15px;
}

.form-note,
.lookup-status {
  margin: 0;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.61rem;
  line-height: 1.5;
}

.promise-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  justify-content: flex-end;
  margin: 0;
  padding: 0;
  list-style: none;
  font-family: var(--font-mono);
  font-size: 0.58rem;
  font-weight: 800;
  text-transform: uppercase;
}

.promise-list li::before {
  margin-right: 5px;
  color: #23864b;
  content: "✓";
}

.lookup-status {
  min-height: 18px;
  margin-top: 14px;
  text-align: center;
}

.lookup-status:empty {
  display: none;
}

.lookup-error {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 20px;
  padding: 14px 16px;
  border: 2px solid var(--line);
  border-radius: 14px;
  background: #ffe0d6;
  box-shadow: 3px 3px 0 var(--ink);
}

.lookup-error span {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 27px;
  height: 27px;
  border: 1.5px solid var(--line);
  border-radius: 50%;
  color: white;
  background: var(--orange);
  font-weight: 950;
}

.lookup-error p {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 750;
  line-height: 1.45;
}

.rating-result {
  --score: 0;
  margin-top: 30px;
  padding-top: 28px;
  border-top: 2px solid var(--line);
}

.result-header {
  display: flex;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.result-header p {
  display: flex;
  gap: 7px;
  align-items: center;
  margin: 0 0 4px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.result-header p span {
  width: 8px;
  height: 8px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--green);
}

.result-header h2 {
  overflow: hidden;
  max-width: 650px;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4vw, 2.45rem);
  font-weight: 950;
  letter-spacing: -0.05em;
  text-overflow: ellipsis;
}

.share-button {
  flex: 0 0 auto;
  padding: 10px 13px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  font-size: 0.7rem;
  font-weight: 850;
  cursor: pointer;
  box-shadow: 2px 2px 0 var(--ink);
}

.share-button:hover {
  background: var(--blue);
}

.result-grid {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 34px;
  align-items: stretch;
}

.score-card {
  display: grid;
  place-items: center;
  padding: 24px;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  background: var(--yellow);
  text-align: center;
  box-shadow: 5px 5px 0 var(--ink);
}

.score-card > p {
  margin: 0 0 16px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.15em;
}

.score-ring {
  display: grid;
  place-items: center;
  width: 170px;
  height: 170px;
  padding: 13px;
  border: 2px solid var(--line);
  border-radius: 50%;
  background: conic-gradient(var(--green) calc(var(--score) * 1%), rgba(255, 253, 247, 0.72) 0);
  box-shadow: 4px 4px 0 var(--ink);
}

.score-inner {
  display: grid;
  place-content: center;
  width: 100%;
  height: 100%;
  border: 2px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
}

.score-inner strong {
  font-family: var(--font-display);
  font-size: 4.2rem;
  font-weight: 950;
  line-height: 0.9;
  letter-spacing: -0.09em;
}

.score-inner span {
  margin-top: 7px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 800;
}

.ahrefs-attribution {
  margin-top: 17px;
  font-size: 0.65rem;
  font-weight: 850;
  line-height: 1.4;
  text-underline-offset: 3px;
}

.result-readout {
  min-width: 0;
  padding: 30px 6px 10px;
}

.score-band {
  display: inline-flex;
  padding: 7px 10px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: var(--green);
  font-family: var(--font-mono);
  font-size: 0.63rem;
  font-weight: 900;
  text-transform: uppercase;
}

.result-readout h3 {
  max-width: 580px;
  margin: 18px 0 11px;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4.4vw, 3.15rem);
  font-weight: 950;
  line-height: 1.02;
  letter-spacing: -0.055em;
}

.result-explainer {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.65;
}

.rating-meter {
  position: relative;
  height: 17px;
  margin-top: 30px;
  overflow: visible;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: var(--paper-deep);
}

.rating-meter-fill {
  width: calc(var(--score) * 1%);
  height: 100%;
  border-radius: inherit;
  background: var(--green);
}

.rating-meter i {
  position: absolute;
  top: 50%;
  left: calc(var(--score) * 1%);
  width: 5px;
  height: 25px;
  border: 1.5px solid var(--line);
  border-radius: 4px;
  background: var(--orange);
  transform: translate(-50%, -50%);
}

.rating-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 7px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.52rem;
}

.result-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 9px 16px;
  margin-top: 24px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.58rem;
}

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

.fact-card {
  min-width: 0;
  min-height: 215px;
  padding: 22px;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 5px 6px 0 var(--ink);
}

.fact-card:nth-child(2) {
  transform: rotate(0.8deg);
}

.fact-card:nth-child(3) {
  transform: rotate(-0.6deg);
}

.fact-card > span,
.section-kicker,
.tiny-note,
.page-tag,
.principle-card > span {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.fact-card strong {
  display: block;
  overflow-wrap: anywhere;
  margin: 35px 0 12px;
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6vw, 4.4rem);
  font-weight: 950;
  line-height: 0.9;
  letter-spacing: -0.065em;
}

.fact-card p {
  max-width: 270px;
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.5;
}

.fact-yellow {
  background: var(--yellow);
}

.fact-pink {
  background: var(--pink);
}

.fact-blue {
  background: var(--blue);
}

.shelf-section,
.plain-talk {
  padding: 90px 0;
  border-top: 2px solid var(--line);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.7fr);
  gap: 70px;
  align-items: end;
  margin-bottom: 42px;
}

.section-kicker {
  margin: 0 0 14px;
}

.section-heading h2,
.plain-talk h2 {
  margin: 0;
  font-size: clamp(2.8rem, 5.5vw, 4.8rem);
  line-height: 0.96;
}

.section-heading > p {
  max-width: 440px;
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 0.93rem;
  line-height: 1.65;
}

.shelf-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.shelf-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  min-height: 168px;
  padding: 22px;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  text-decoration: none;
  box-shadow: 5px 6px 0 var(--ink);
  transition: box-shadow 130ms ease, transform 130ms ease;
}

.shelf-card:hover {
  transform: translate(3px, 3px);
  box-shadow: 2px 3px 0 var(--ink);
}

.shelf-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border: 2px solid var(--line);
  border-radius: 15px;
  font-size: 1.35rem;
  font-weight: 950;
  box-shadow: 2px 2px 0 var(--ink);
}

.shelf-icon-green {
  background: var(--green);
}

.shelf-icon-orange {
  background: var(--orange);
  color: white;
}

.shelf-card > div > span {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.55rem;
  font-weight: 800;
}

.shelf-card h3 {
  margin: 8px 0 6px;
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 950;
  letter-spacing: -0.045em;
}

.shelf-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.5;
}

.shelf-card > b {
  font-size: 1.35rem;
}

.plain-talk {
  display: grid;
  grid-template-columns: 0.78fr 1fr;
  gap: 76px;
}

.plain-talk-intro {
  align-self: start;
}

.tiny-note {
  display: inline-block;
  margin-top: 28px;
  padding: 8px 10px;
  border: 1.5px solid var(--line);
  border-radius: 8px;
  background: var(--yellow);
  box-shadow: 2px 2px 0 var(--ink);
  transform: rotate(-1deg);
}

.faq-list {
  border-top: 2px solid var(--line);
}

.faq-list details {
  border-bottom: 2px solid var(--line);
}

.faq-list summary {
  position: relative;
  padding: 22px 44px 22px 0;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 900;
  cursor: pointer;
  list-style: none;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  position: absolute;
  top: 17px;
  right: 2px;
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  border: 1.5px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  content: "+";
}

.faq-list details[open] summary::after {
  background: var(--green);
  content: "−";
}

.faq-list details p {
  max-width: 620px;
  margin: -3px 42px 23px 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.65;
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 24px;
  align-items: center;
  min-height: 150px;
  border-top: 2px solid var(--line);
}

.footer-brand .brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  font-size: 0.78rem;
}

.site-footer > p {
  margin: 0;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.58rem;
  text-align: center;
}

.site-footer > div {
  display: flex;
  gap: 18px;
  justify-content: flex-end;
  font-size: 0.7rem;
  font-weight: 780;
}

.site-footer > div a {
  text-decoration: none;
}

.site-footer > div a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* Secondary pages */
.page-main {
  min-height: calc(100vh - 244px);
}

.page-hero {
  max-width: 920px;
  margin: 0 auto;
  padding: 86px 0 66px;
  text-align: center;
}

.page-tag {
  display: inline-flex;
  padding: 8px 11px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: var(--green);
}

.page-hero h1 {
  margin: 25px 0;
  font-size: clamp(3.5rem, 7vw, 6.2rem);
  line-height: 0.98;
}

.page-hero > p:last-child {
  max-width: 650px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.65;
}

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

.principle-card {
  min-height: 250px;
  padding: 23px;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 5px 6px 0 var(--ink);
}

.principle-card:nth-child(2) {
  background: var(--yellow);
  transform: rotate(0.7deg);
}

.principle-card:nth-child(3) {
  background: var(--pink);
  transform: rotate(-0.6deg);
}

.principle-card h2 {
  margin: 82px 0 10px;
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 950;
  letter-spacing: -0.045em;
}

.principle-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.55;
}

.principle-card:nth-child(2) p,
.principle-card:nth-child(3) p {
  color: var(--ink);
}

.coming-soon {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 30px;
  align-items: center;
  margin-bottom: 88px;
  padding: 31px;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  color: white;
  background: var(--ink);
  box-shadow: 6px 7px 0 var(--green);
}

.coming-soon h2 {
  margin: 0 0 7px;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 950;
  letter-spacing: -0.05em;
}

.coming-soon p {
  max-width: 690px;
  margin: 0;
  color: #d8d2c7;
  font-size: 0.84rem;
  line-height: 1.55;
}

.coming-soon a,
.text-link,
.not-found a {
  display: inline-flex;
  width: fit-content;
  padding: 12px 15px;
  border: 2px solid var(--line);
  border-radius: 11px;
  color: var(--ink);
  background: var(--yellow);
  font-size: 0.72rem;
  font-weight: 900;
  text-decoration: none;
  box-shadow: 3px 3px 0 white;
}

.empty-index {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.72fr);
  gap: 28px;
  align-items: stretch;
  margin: 0 0 88px;
}

.empty-index > div:first-child,
.empty-index-copy {
  padding: 34px;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.empty-index > div:first-child {
  display: grid;
  align-content: space-between;
  min-height: 340px;
  background: var(--blue);
}

.empty-index h2 {
  max-width: 620px;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(3rem, 6vw, 5.5rem);
  font-weight: 950;
  line-height: 0.94;
  letter-spacing: -0.065em;
}

.empty-index .empty-mark {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 900;
}

.empty-index-copy {
  display: grid;
  align-content: center;
  background: var(--yellow);
  transform: rotate(0.8deg);
}

.empty-index-copy p {
  margin: 0 0 25px;
  font-size: 0.9rem;
  line-height: 1.65;
}

.empty-index-copy .text-link {
  background: var(--surface);
  box-shadow: 3px 3px 0 var(--ink);
}

.not-found {
  display: grid;
  place-items: center;
  min-height: calc(100vh - 244px);
  padding: 70px 0;
  text-align: center;
}

.not-found > div {
  width: min(100%, 680px);
  padding: 46px;
  border: 2px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.not-found strong {
  display: block;
  color: #d94825;
  font-size: clamp(6rem, 18vw, 11rem);
  line-height: 0.8;
}

.not-found h1 {
  margin: 34px 0 10px;
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 950;
  letter-spacing: -0.045em;
}

.not-found p {
  margin: 0 0 28px;
  color: var(--muted);
}

.not-found a {
  margin: 0 auto;
  box-shadow: 3px 3px 0 var(--ink);
}

:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 4px;
}

@media (max-width: 900px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .free-chip {
    display: none;
  }

  .result-grid {
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 25px;
  }

  .section-heading,
  .plain-talk {
    grid-template-columns: 1fr;
    gap: 35px;
  }

  .section-heading > p {
    max-width: 650px;
  }

  .empty-index {
    grid-template-columns: 1fr;
  }

  .empty-index > div:first-child {
    min-height: 290px;
  }
}

@media (max-width: 720px) {
  .site-shell {
    width: min(100% - 28px, 1120px);
  }

  .site-header {
    gap: 12px;
    min-height: 76px;
  }

  .brand {
    gap: 8px;
  }

  .brand-mark {
    width: 41px;
    height: 41px;
    border-radius: 12px;
    font-size: 0.78rem;
    box-shadow: 2px 2px 0 var(--ink);
  }

  .brand-lockup small {
    display: none;
  }

  .brand-lockup strong {
    font-size: 1rem;
  }

  .main-nav {
    gap: 2px;
    padding: 3px;
    border: 0;
    background: transparent;
  }

  .main-nav a {
    padding: 8px 7px;
    font-size: 0.65rem;
  }

  .main-nav a[aria-current="page"] {
    background: var(--surface);
  }

  .tool-hero {
    padding: 59px 0 68px;
  }

  .hero-heading {
    margin-bottom: 40px;
  }

  .eyebrow {
    font-size: 0.56rem;
  }

  .hero-heading h1 {
    font-size: clamp(3.15rem, 14vw, 4.7rem);
  }

  .hero-heading mark {
    border-radius: 10px;
    box-shadow: 3px 4px 0 var(--ink);
  }

  .hero-heading > p:last-child {
    margin-top: 24px;
    font-size: 0.98rem;
  }

  .lookup-panel {
    padding: 20px;
    border-radius: 20px;
    box-shadow: 6px 7px 0 var(--ink);
  }

  .panel-sticker {
    top: -16px;
    right: 16px;
    font-size: 0.54rem;
  }

  .search-row {
    grid-template-columns: auto minmax(0, 1fr);
    border-radius: 16px;
  }

  .input-icon {
    width: 39px;
    height: 39px;
  }

  .search-row input {
    padding: 13px 5px;
    font-size: 1.05rem;
  }

  .primary-button {
    grid-column: 1 / -1;
    min-width: 0;
    width: 100%;
  }

  .lookup-foot {
    align-items: flex-start;
    flex-direction: column;
  }

  .promise-list {
    justify-content: flex-start;
  }

  .result-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .result-header h2 {
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .result-grid {
    grid-template-columns: 1fr;
  }

  .score-card {
    min-height: 300px;
  }

  .result-readout {
    padding: 10px 2px 4px;
  }

  .fact-grid,
  .shelf-grid,
  .principle-grid {
    grid-template-columns: 1fr;
  }

  .fact-grid {
    padding-bottom: 76px;
  }

  .fact-card {
    min-height: 190px;
  }

  .fact-card strong {
    margin-top: 28px;
  }

  .shelf-section,
  .plain-talk {
    padding: 74px 0;
  }

  .shelf-card {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .shelf-card > b {
    display: none;
  }

  .site-footer {
    grid-template-columns: 1fr;
    justify-items: center;
    padding: 42px 0;
  }

  .site-footer > div {
    flex-wrap: wrap;
    justify-content: center;
  }

  .page-hero {
    padding: 67px 0 54px;
  }

  .page-hero h1 {
    font-size: clamp(3.1rem, 14vw, 4.8rem);
  }

  .principle-card {
    min-height: 210px;
  }

  .principle-card h2 {
    margin-top: 55px;
  }

  .coming-soon {
    grid-template-columns: 1fr;
    margin-bottom: 72px;
  }

  .coming-soon a {
    box-shadow: 3px 3px 0 var(--green);
  }

  .empty-index > div:first-child,
  .empty-index-copy {
    padding: 26px;
  }

  .not-found > div {
    padding: 35px 22px;
  }
}

@media (max-width: 400px) {
  .site-shell {
    width: min(100% - 22px, 1120px);
  }

  .brand-lockup {
    display: none;
  }

  .main-nav a {
    padding-inline: 6px;
  }

  .eyebrow b {
    display: none;
  }

  .lookup-panel {
    padding-inline: 15px;
  }

  .shelf-card {
    gap: 13px;
    padding: 18px;
  }

  .shelf-icon {
    width: 45px;
    height: 45px;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
