:root {
  --ink: #171620;
  --paper: #f7f3e7;
  --lime: #e3ff54;
  --line: #bdb7a9;
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 17px/1.6 system-ui, sans-serif; }
[hidden] { display: none !important; }
a { color: inherit; text-underline-offset: 4px; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible {
  outline: 3px solid #ad4df0;
  outline-offset: 5px;
}
.skip { position: absolute; top: -100px; inset-inline-start: 16px; background: white; color: var(--ink); padding: 10px; z-index: 1; }
.skip:focus { top: 8px; }
.wrap { width: min(1232px, calc(100% - 72px)); margin-inline: auto; }
.top, .hero, .foot { background: var(--ink); color: var(--paper); }
.bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; min-height: 81px; border-bottom: 1px solid #ffffff40; padding-block: 14px; }
.brand { display: inline-block; font-weight: 950; font-size: 28px; letter-spacing: -.08em; text-decoration: none; }
.brand span { color: var(--ink); background: var(--lime); padding: 0 5px; margin-left: 5px; }
.bar nav { display: flex; flex-wrap: wrap; gap: clamp(12px, 3vw, 36px); font-size: 14px; }
.bar nav a { text-decoration: none; }
.bar nav a:hover, [aria-current=page] { text-decoration: underline !important; }
.lang { border: 1px solid #ffffff70; padding: 5px 12px; text-decoration: none; font-size: 14px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: 42px; padding-block: clamp(44px, 6vw, 88px); }
.eyebrow { font: 700 12px/1.5 ui-monospace, monospace; letter-spacing: .09em; margin-block: 0 16px; }
h1, h2, h3 { font-weight: 900; line-height: .99; letter-spacing: -.065em; margin: 0 0 21px; }
h1 { font-size: clamp(51px, 7.6vw, 108px); }
h1 em { color: var(--lime); font-style: normal; }
h2 { font-size: clamp(34px, 5.7vw, 76px); }
h3 { font-size: clamp(26px, 3vw, 38px); }
[dir=rtl] h1, [dir=rtl] h2, [dir=rtl] h3 { letter-spacing: 0; line-height: 1.25; }
[dir=rtl] .eyebrow { letter-spacing: 0; }
.lead { font-size: clamp(17px, 2vw, 21px); max-width: 50ch; }
.hero .lead { max-width: 37ch; color: #e0dacd; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; margin-top: 28px; }
.button { display: inline-block; background: var(--lime); color: var(--ink); border: 2px solid var(--ink); padding: 12px 19px; text-decoration: none; font: inherit; font-weight: 800; cursor: pointer; box-shadow: 4px 4px 0 var(--ink); }
.button:hover { background: #fff; }
.hero .button { border-color: var(--lime); box-shadow: none; }
.hero figure { margin: 0; border: 1px solid var(--paper); box-shadow: 9px 9px 0 #ffffff28; }
svg { display: block; width: 100%; height: auto; direction: ltr; }
.hero figcaption { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px; padding: 12px; font: 11px/1.5 ui-monospace, monospace; }
.ticker { background: var(--lime); color: var(--ink); padding-block: 15px; font: 800 13px/1.55 ui-monospace, monospace; text-align: center; }
.section { padding-block: clamp(34px, 6vw, 80px); }
.section-head, .split { display: flex; justify-content: space-between; gap: 22px; align-items: end; }
.section-head { margin-bottom: 22px; }
.section-head h2 { margin-bottom: 0; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.cards article { border: 2px solid var(--ink); }
.cards a { display: flex; flex-direction: column; height: 100%; text-decoration: none; }
.cards a:hover { background: #fff; }
.card-text { display: flex; flex: 1; flex-direction: column; padding: 21px; }
.card-text small { margin-bottom: 11px; font-weight: 600; }
.card-text p { margin-top: 0; }
.card-text span { display: flex; justify-content: space-between; margin-top: auto; padding-top: 13px; border-top: 1px solid var(--line); font-weight: 750; }
.panel { background: #c4b6ff; border: 2px solid var(--ink); padding-inline: clamp(18px, 5vw, 60px); }
.moves { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; padding-inline-start: 25px; margin-block: 28px; font-weight: 700; }
.split > div { flex: 1; }
.split h2 { margin: 0; }
.intro { padding-block: clamp(35px, 6vw, 80px) 24px; border-bottom: 2px solid var(--ink); }
.intro h1 { font-size: clamp(45px, 8vw, 95px); overflow-wrap: anywhere; }
.route-art { margin-block: 28px; border: 2px solid var(--ink); }
.route-art svg { max-height: 360px; background: #e8e2d7; }
.prose { max-width: 880px; padding-block: 28px; }
.prose section { display: grid; grid-template-columns: 44px 1fr; gap: 20px; padding-block: 22px; border-bottom: 1px solid var(--line); }
.prose h2, .result h2 { font-size: clamp(26px, 4vw, 42px); margin-bottom: 12px; }
.prose p { margin: 0; max-width: 68ch; }
.builder { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; align-items: start; }
.builder form, .result { padding: clamp(18px, 4vw, 36px); border: 2px solid var(--ink); }
.builder form { background: #c4b6ff; }
.result { background: #fff; }
.builder label { display: block; font-weight: 700; margin-bottom: 15px; }
.builder input, .builder select { display: block; width: 100%; padding: 10px; margin-top: 4px; border: 1px solid var(--ink); font: inherit; color: var(--ink); background: white; }
.result pre { white-space: pre-wrap; overflow-wrap: anywhere; font: inherit; }
.foot { margin-top: 38px; padding-block: 32px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 22px; font-size: 14px; }
.footer-grid nav { display: flex; flex-direction: column; align-items: start; gap: 7px; }
.footer-grid p { max-width: 32ch; color: #e0dacd; }
@media (max-width: 850px) {
  .wrap { width: calc(100% - 40px); }
  .hero-grid, .builder { grid-template-columns: 1fr; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 540px) {
  .wrap { width: calc(100% - 32px); }
  .bar nav { order: 3; flex-basis: 100%; }
  .hero-grid { gap: 32px; }
  .cards, .moves { grid-template-columns: 1fr; }
  .moves { gap: 12px; }
  .split, .section-head { align-items: start; flex-direction: column; }
  .prose section { grid-template-columns: 27px 1fr; gap: 12px; }
  .footer-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .footer-grid > div { grid-column: 1 / -1; }
}
