:root {
  --ink: #1b2945;
  --muted: #667087;
  --cream: #f7f4ed;
  --paper: #fffdf8;
  --line: #dfe2da;
  --lime: #efff85;
  --coral: #ff8d70;
  --blue: #b9d7ff;
  --green: #c9f0c1;
  --shadow: 0 20px 60px rgba(26, 39, 66, 0.08);
  --radius: 24px;
}
* {
  box-sizing: border-box;
}
html,
body {
  max-width: 100%;
  overflow-x: hidden;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  line-height: 1.55;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input {
  font: inherit;
}
button {
  cursor: pointer;
  color: inherit;
}
p {
  margin: 0 0 1rem;
}
.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-header {
  height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1240px;
  margin: auto;
  padding: 0 32px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.04em;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: var(--ink);
  color: var(--lime);
  font-size: 10px;
  letter-spacing: -0.08em;
  padding-right: 2px;
}
.brand-dot {
  display: none;
}
.brand-word {
  color: #e16850;
  margin-left: 5px;
}
.main-nav {
  display: flex;
  gap: 28px;
  font-size: 14px;
  color: var(--muted);
}
.main-nav a {
  padding: 8px 0;
  border-bottom: 2px solid transparent;
}
.main-nav a:hover,
.main-nav a.active {
  color: var(--ink);
  border-color: var(--coral);
}
.menu-button {
  display: none;
  border: 1px solid var(--line);
  border-radius: 99px;
  background: transparent;
  padding: 7px 12px;
  font-size: 13px;
}
.hero {
  max-width: 1240px;
  margin: 34px auto 0;
  padding: 46px 32px 72px;
  display: grid;
  grid-template-columns: 1fr 1.02fr;
  gap: 70px;
  align-items: center;
}
.hero > * {
  min-width: 0;
}
.hero-copy {
  padding-left: 20px;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.13em;
  font-size: 11px;
  font-weight: 800;
  color: #7d876d;
  margin-bottom: 16px;
}
.live-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #70c77c;
  margin-right: 7px;
  box-shadow: 0 0 0 4px rgba(112, 199, 124, 0.15);
}
h1,
h2,
h3 {
  line-height: 1.08;
  letter-spacing: -0.055em;
  margin: 0 0 20px;
}
h1 {
  font-size: clamp(48px, 6vw, 82px);
  font-weight: 800;
}
h1 em {
  font-style: normal;
  color: #e16850;
}
h2 {
  font-size: clamp(32px, 4vw, 52px);
}
h3 {
  font-size: 25px;
}
.hero-lede {
  max-width: 500px;
  font-size: 18px;
  line-height: 1.65;
  color: var(--muted);
}
.hero-links {
  display: flex;
  gap: 24px;
  margin-top: 28px;
}
.text-link {
  font-size: 14px;
  font-weight: 800;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 3px;
}
.text-link span {
  margin-left: 5px;
  color: #e16850;
}
.game-shell {
  position: relative;
  background: var(--paper);
  border: 1px solid #e4e3da;
  border-radius: 28px;
  box-shadow: var(--shadow);
  padding: 24px 28px 18px;
  min-height: 630px;
  min-width: 0;
}
.game-topline,
.game-footer,
.game-actions,
.game-scoreline {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.game-topline {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.13em;
  color: #92978f;
  border-bottom: 1px solid var(--line);
  padding-bottom: 18px;
}
.game-scoreline {
  padding: 25px 0 18px;
}
.game-scoreline > div {
  display: flex;
  flex-direction: column;
}
.muted-label {
  font-size: 10px;
  letter-spacing: 0.12em;
  color: #92978f;
  font-weight: 800;
}
.game-scoreline strong {
  font-size: 22px;
  letter-spacing: -0.04em;
}
.target-badge {
  background: var(--lime);
  border-radius: 13px;
  padding: 7px 14px;
}
.par-block {
  text-align: right;
}
.path-area {
  min-height: 255px;
  border: 1px dashed #d4d9cf;
  border-radius: 18px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: #fbfaf4;
}
.path-row {
  display: flex;
  gap: 7px;
  align-items: center;
}
.path-index {
  width: 20px;
  color: #9ca397;
  font-size: 11px;
}
.letter {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: #e9ece4;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 20px;
  font-weight: 800;
}
.letter.changed {
  background: var(--coral);
  color: white;
}
.path-row.current .letter {
  background: var(--ink);
  color: white;
}
.path-row.target .letter {
  background: var(--lime);
  color: var(--ink);
}
.game-message {
  font-size: 13px;
  color: var(--muted);
  min-height: 42px;
  padding: 14px 0 8px;
}
.guess-form {
  display: flex;
  gap: 8px;
}
.guess-form input {
  min-width: 0;
  flex: 1;
  background: #f3f2ea;
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 14px 15px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  outline: none;
}
.guess-form input:focus {
  border-color: var(--ink);
  background: white;
}
.primary-button,
.secondary-button {
  border: 0;
  border-radius: 12px;
  background: var(--ink);
  color: white;
  padding: 13px 17px;
  font-weight: 800;
  white-space: nowrap;
}
.primary-button:hover,
.secondary-button:hover {
  background: #31476f;
}
.game-actions {
  justify-content: flex-start;
  gap: 18px;
  padding: 15px 0 9px;
}
.quiet-button,
.inline-button {
  border: 0;
  background: transparent;
  padding: 0;
  color: var(--muted);
  font-size: 12px;
}
.quiet-button:hover,
.inline-button:hover {
  color: var(--ink);
}
.keycap {
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 0 4px;
  margin-left: 3px;
}
.keyboard {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  justify-content: center;
  padding: 12px 0;
}
.key {
  border: 0;
  background: #eef0e9;
  border-radius: 7px;
  min-width: 28px;
  height: 32px;
  font-weight: 800;
  font-size: 11px;
}
.key:hover {
  background: var(--lime);
}
.game-footer {
  border-top: 1px solid var(--line);
  padding-top: 13px;
  color: #92978f;
  font-size: 11px;
}
.result-panel {
  position: absolute;
  inset: 70px 18px 18px;
  background: rgba(255, 253, 248, 0.98);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 28px;
  z-index: 2;
}
.result-panel h3 {
  font-size: 30px;
}
.result-route {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 18px 0;
}
.result-word {
  background: var(--lime);
  padding: 7px 10px;
  border-radius: 8px;
  font:
    800 13px ui-monospace,
    monospace;
}
.result-actions {
  display: flex;
  gap: 8px;
}
.proof-strip {
  max-width: 1176px;
  margin: 0 auto 100px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 25px 0;
}
.proof-strip div {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 10px;
  border-right: 1px solid var(--line);
}
.proof-strip div:last-child {
  border: 0;
}
.proof-strip strong {
  font-size: 30px;
  letter-spacing: -0.06em;
}
.proof-strip span {
  font-size: 12px;
  color: var(--muted);
}
.content-section,
.feature-section,
.faq-section {
  max-width: 1176px;
  margin: 0 auto;
  padding: 0 0 110px;
}
.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
}
.prose {
  max-width: 560px;
  color: var(--muted);
  font-size: 16px;
}
.prose strong {
  color: var(--ink);
}
.prose a {
  color: #ce5d48;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.section-heading {
  max-width: 620px;
  margin-bottom: 35px;
}
.section-heading > p:last-child {
  font-size: 17px;
  color: var(--muted);
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.feature-card {
  display: flex;
  flex-direction: column;
  min-height: 330px;
  border-radius: 22px;
  padding: 27px;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.card-lime {
  background: var(--lime);
}
.card-blue {
  background: var(--blue);
}
.card-coral {
  background: var(--coral);
}
.feature-icon {
  font-size: 34px;
  margin-bottom: 38px;
}
.feature-card p {
  max-width: 280px;
  color: rgba(27, 41, 69, 0.72);
}
.card-link {
  margin-top: auto;
  font-weight: 800;
  font-size: 13px;
}
.card-link span {
  margin-left: 8px;
}
.split-callout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  background: #e9efe7;
  border-radius: 28px;
  padding: 54px;
  margin-bottom: 110px;
}
.callout-visual {
  display: grid;
  place-items: center;
}
.mini-path {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  font:
    800 16px ui-monospace,
    monospace;
}
.mini-path span {
  background: var(--paper);
  border-radius: 8px;
  padding: 8px 13px;
  box-shadow: 0 4px 0 rgba(27, 41, 69, 0.08);
}
.mini-path i {
  font-style: normal;
  color: #94a08e;
}
.mini-path .mini-target {
  background: var(--lime);
}
.secondary-button {
  display: inline-block;
  margin-top: 10px;
}
.faq-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 90px;
}
.faq-list details {
  border-top: 1px solid var(--line);
  padding: 18px 0;
}
.faq-list details:last-child {
  border-bottom: 1px solid var(--line);
}
summary {
  cursor: pointer;
  font-weight: 800;
  list-style: none;
}
summary::-webkit-details-marker {
  display: none;
}
summary:after {
  content: "+";
  float: right;
  font-size: 20px;
  color: #a1a99a;
}
.faq-list details[open] summary:after {
  content: "−";
}
.faq-list p {
  color: var(--muted);
  font-size: 14px;
  margin: 12px 0 0;
}
.site-footer {
  max-width: 1240px;
  margin: auto;
  padding: 35px 32px 28px;
  border-top: 1px solid var(--line);
}
.footer-main {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: start;
  gap: 20px;
}
.footer-main > p {
  font-size: 13px;
  color: var(--muted);
  margin: 4px 0;
}
.footer-main nav {
  display: flex;
  gap: 16px;
  justify-content: flex-end;
  font-size: 12px;
  color: var(--muted);
}
.footer-note {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  margin-top: 32px;
  padding-top: 17px;
  font-size: 11px;
  color: #92978f;
}
.page-hero {
  max-width: 1176px;
  margin: 46px auto 75px;
  padding: 0 0;
}
.page-hero h1 {
  font-size: clamp(46px, 6vw, 72px);
  max-width: 760px;
}
.page-hero .lede {
  max-width: 680px;
  color: var(--muted);
  font-size: 19px;
}
.article-layout {
  max-width: 1176px;
  margin: auto;
  display: grid;
  grid-template-columns: minmax(0, 760px) 260px;
  gap: 90px;
  padding-bottom: 110px;
}
.article-body {
  font-size: 17px;
  color: #49546a;
}
.article-body h2 {
  font-size: 34px;
  margin: 50px 0 15px;
  color: var(--ink);
}
.article-body h3 {
  font-size: 22px;
  margin: 34px 0 10px;
  color: var(--ink);
}
.article-body ul,
.article-body ol {
  padding-left: 22px;
}
.article-body li {
  margin: 0.6rem 0;
}
.article-body blockquote {
  border-left: 4px solid var(--coral);
  padding: 12px 20px;
  background: #fff8f0;
  border-radius: 0 14px 14px 0;
  margin: 28px 0;
}
.article-body .callout {
  background: #e9efe7;
  border-radius: 18px;
  padding: 22px;
  margin: 30px 0;
}
.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 14px;
}
.article-body th,
.article-body td {
  border-bottom: 1px solid var(--line);
  padding: 12px;
  text-align: left;
}
.article-body th {
  color: var(--ink);
  background: #f5f5ed;
}
.toc {
  position: sticky;
  top: 24px;
  align-self: start;
  border-left: 1px solid var(--line);
  padding-left: 20px;
  font-size: 13px;
  color: var(--muted);
}
.toc strong {
  display: block;
  color: var(--ink);
  margin-bottom: 10px;
}
.toc a {
  display: block;
  margin: 8px 0;
}
.tool-page {
  max-width: 1176px;
  margin: auto;
  padding-bottom: 100px;
}
.tool-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 30px;
  box-shadow: var(--shadow);
  max-width: 760px;
}
.tool-card label {
  font-weight: 800;
  font-size: 13px;
  display: block;
  margin-bottom: 8px;
}
.tool-row {
  display: flex;
  gap: 8px;
  align-items: end;
}
.tool-row input {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: white;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 800;
}
.tool-result {
  margin-top: 24px;
  min-height: 80px;
  color: var(--muted);
}
.archive-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.archive-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px;
}
.archive-card small {
  display: block;
  color: #92978f;
  font-size: 11px;
}
.archive-card strong {
  display: block;
  margin: 7px 0;
}
.archive-card span {
  color: #cc6049;
  font-size: 12px;
  font-weight: 800;
}
.notice {
  background: #fff4df;
  border: 1px solid #f1d9a4;
  padding: 14px 16px;
  border-radius: 12px;
  font-size: 13px;
  color: #6d5b39;
  margin: 24px 0;
}
.error {
  color: #c75643 !important;
}
@media (max-width: 900px) {
  .site-header {
    padding: 0 20px;
  }
  .main-nav {
    gap: 14px;
  }
  .hero {
    grid-template-columns: 1fr;
    gap: 38px;
    padding: 32px 20px 60px;
  }
  .hero-copy {
    padding-left: 0;
  }
  .game-shell {
    min-height: 0;
  }
  .proof-strip {
    margin: 0 20px 75px;
  }
  .content-section,
  .feature-section,
  .faq-section {
    padding-left: 20px;
    padding-right: 20px;
  }
  .intro-grid,
  .faq-section {
    gap: 35px;
  }
  .article-layout {
    padding: 0 20px 90px;
    display: block;
  }
  .toc {
    display: none;
  }
  .page-hero {
    padding: 0 20px;
    margin-top: 35px;
  }
  .tool-page {
    padding: 0 20px 90px;
  }
  .archive-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .site-footer {
    padding-left: 20px;
    padding-right: 20px;
  }
}
@media (max-width: 640px) {
  .site-header {
    height: 68px;
  }
  .main-nav {
    display: none;
  }
  .main-nav.open {
    display: flex;
    position: absolute;
    z-index: 10;
    top: 62px;
    right: 20px;
    left: 20px;
    flex-direction: column;
    gap: 0;
    padding: 10px 16px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--paper);
    box-shadow: var(--shadow);
  }
  .main-nav.open a {
    padding: 10px 0;
  }
  .menu-button {
    display: block;
  }
  .hero {
    margin-top: 12px;
  }
  .hero h1 {
    font-size: 50px;
  }
  .hero-lede {
    font-size: 16px;
  }
  .game-shell {
    padding: 18px 16px;
  }
  .game-scoreline {
    gap: 8px;
  }
  .target-badge {
    padding: 7px 10px;
  }
  .game-scoreline strong {
    font-size: 18px;
  }
  .keyboard {
    gap: 4px;
  }
  .key {
    min-width: 26px;
  }
  .letter {
    width: 34px;
    height: 34px;
    font-size: 17px;
  }
  .path-area {
    min-height: 218px;
    padding: 12px;
  }
  .proof-strip {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
    padding: 20px 0;
  }
  .proof-strip div:nth-child(2) {
    border-right: 0;
  }
  .proof-strip div:nth-child(-n + 2) {
    padding-bottom: 17px;
    border-bottom: 1px solid var(--line);
  }
  .proof-strip strong {
    font-size: 26px;
  }
  .feature-grid {
    grid-template-columns: 1fr;
  }
  .feature-card {
    min-height: 260px;
  }
  .split-callout {
    grid-template-columns: 1fr;
    padding: 30px 22px;
    margin-left: 20px;
    margin-right: 20px;
  }
  .intro-grid,
  .faq-section {
    grid-template-columns: 1fr;
  }
  .footer-main {
    grid-template-columns: 1fr;
  }
  .footer-main nav {
    justify-content: flex-start;
  }
  .footer-note {
    display: block;
  }
  .footer-note span {
    display: block;
    margin-top: 8px;
  }
  .page-hero h1 {
    font-size: 47px;
  }
  .article-body {
    font-size: 16px;
  }
  .tool-row {
    display: block;
  }
  .tool-row button {
    margin-top: 8px;
    width: 100%;
  }
  .archive-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
