@font-face {
  font-family: Literata;
  src: url("./assets/literata-latin-opsz-normal.woff2") format("woff2");
  font-weight: 200 900;
  font-display: swap;
}
@font-face {
  font-family: Literata;
  src: url("./assets/literata-latin-opsz-italic.woff2") format("woff2");
  font-style: italic;
  font-weight: 200 900;
  font-display: swap;
}
:root {
  --paper: #f8f6ef;
  --ink: #17251f;
  --muted: #535c55;
  --rule: #c6cbc0;
  --blue: #2448ae;
  --serif: Literata, Georgia, serif;
  --mono: "SFMono-Regular", Consolas, monospace;
  color: var(--ink);
  background: var(--paper);
  font: 17px/1.6 "Helvetica Neue", Helvetica, sans-serif;
  scroll-behavior: smooth;
}
* { box-sizing: border-box; }
body, h1, h2, h3, p, figure { margin: 0; }
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 3px solid #bf5218; outline-offset: 4px; }
.wrap { width: min(calc(100% - 80px), 1160px); margin-inline: auto; }
.skip { position: absolute; left: 1rem; top: -5rem; background: white; padding: .5rem; z-index: 2; }
.skip:focus { top: .5rem; }
.masthead, nav, .signature, .section-head, .actions, footer, .plate-head, .plate-foot {
  display: flex; align-items: center;
}
.masthead, .section-head, footer, .plate-head, .plate-foot { justify-content: space-between; }
.masthead { min-height: 78px; border-bottom: 1px solid var(--rule); }
.signature { gap: 10px; font-size: .95rem; font-weight: 600; text-decoration: none; }
.mark { display: grid; place-items: center; width: 33px; height: 33px; padding-bottom: 3px; background: var(--ink); color: var(--paper); font: italic 21px/1 var(--serif); }
nav { gap: clamp(14px, 3vw, 38px); }
nav a, footer { font-size: .86rem; }
nav a, footer a { text-decoration: none; }
nav a:hover, footer a:hover { text-decoration: underline; text-underline-offset: 4px; }
.hero { display: grid; grid-template-columns: 1.35fr 1fr; align-items: center; gap: clamp(30px, 5vw, 76px); padding-block: clamp(50px, 6vw, 90px); }
.label { font: 600 .66rem/1.4 var(--mono); text-transform: uppercase; letter-spacing: .12em; }
.role { display: flex; gap: 12px; align-items: center; color: var(--blue); }
.role::before { content: ""; width: 28px; border-top: 2px solid; }
h1, h2, h3 { font-family: var(--serif); font-weight: 440; }
h1 { margin: 23px 0 25px; font-size: clamp(2.55rem, 5.9vw, 5.1rem); line-height: 1.07; letter-spacing: -.068em; }
h1 em { font-weight: 370; color: var(--blue); }
.lede { max-width: 44ch; font-size: clamp(1rem, 1.3vw, 1.15rem); color: var(--muted); }
.button { display: inline-flex; align-items: center; gap: 26px; margin-top: 28px; padding: 12px 20px; background: var(--ink); color: white; text-decoration: none; font-weight: 550; font-size: .87rem; }
.button:hover { background: var(--blue); }
.study { width: min(100%, 430px); justify-self: end; }
.plate { color: #fff; background: #253f9a; padding: 16px 21px; }
.plate-head { border-bottom: 1px solid #ffffff55; padding-bottom: 10px; }
.diagram { display: grid; grid-template-columns: 18px 1fr; grid-template-rows: 1fr 18px; width: min(85%, 270px); margin: 16px auto 7px; }
.axis { font: .65rem/1 var(--mono); color: #e2e6fc; display: grid; align-items: center; text-align: center; }
.ranks { grid-template-rows: repeat(5, 1fr); }
.files { grid-column: 2; grid-template-columns: repeat(5, 1fr); }
#board { display: grid; grid-template: repeat(5, 1fr) / repeat(5, 1fr); aspect-ratio: 1; background: repeating-conic-gradient(#7795dc 0 25%, #abc1ef 0 50%) 0 0 / 40% 40%; }
.square, .fallback { display: grid; place-items: center; min-width: 0; padding: 0; border: 0; border-radius: 0; background: transparent; color: #172a61; font: clamp(24px, 4.3vw, 43px)/1 Georgia, serif; }
.fallback { grid-column: 3; grid-row: 3; }
.square:disabled { opacity: 1; }
.square:enabled { cursor: pointer; }
.square:enabled::after { content: ""; width: 18%; aspect-ratio: 1; border: 2px solid #213c84; border-radius: 50%; transition: transform .15s ease; }
.square:enabled:hover::after, .square:focus-visible::after { transform: scale(1.5); background: #213c84; }
.square:focus-visible { outline-offset: -3px; outline-color: #111b48; }
.square.visited { background: #253f9a80; }
.plate-foot { border-top: 1px solid #ffffff55; padding-top: 9px; gap: 8px; font-size: .77rem; min-height: 35px; }
#reset { color: white; font: inherit; background: transparent; border: 0; text-decoration: underline; padding: 4px; cursor: pointer; }
.plate button:focus-visible { outline-color: #ffdf84; }
.study figcaption { color: var(--muted); font-size: .77rem; margin-top: 7px; }
.work { background: #eeefe6; padding: 48px 0 56px; border-block: 1px solid var(--rule); }
h2 { font-size: clamp(2.1rem, 4vw, 3.2rem); letter-spacing: -.055em; line-height: 1.2; }
.section-head { gap: 15px; margin-bottom: 30px; }
.link { font-size: .88rem; font-weight: 550; color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 4px; }
.link:hover { text-decoration-thickness: 2px; }
.project-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(24px, 4vw, 54px); border-bottom: 1px solid var(--rule); margin-bottom: 32px; padding-bottom: 32px; }
.project-art { display: grid; place-items: center; aspect-ratio: 1.8; margin-bottom: 18px; }
.project-art img { display: block; max-width: 90%; height: auto; }
.player-title { display: flex; align-items: center; gap: 12px; }
.player-title img { display: block; }
.player-features { padding-inline-start: 1.2em; margin-block: 14px; color: var(--muted); }
.player-features li + li { margin-top: 6px; }
.player-features strong { color: var(--ink); }
.switchboard-art { background: #e0dfd4; }
.switchboard-art img { width: 58%; box-shadow: 0 4px 12px #14201a24; }
.project-pair h3 { margin: 7px 0 10px; }
.project-pair p { color: var(--muted); }
.feature { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(25px, 5.5vw, 80px); align-items: center; margin-bottom: 32px; }
.screen { display: block; padding: clamp(16px, 2.5vw, 38px); background: #d9e1da; }
.croc-preview { width: min(100%, 310px); padding: 10px; justify-self: center; }
.screen img { display: block; width: 100%; height: auto; box-shadow: 0 8px 18px #14201a24; transition: transform .25s ease; }
.screen:hover img { transform: translateY(-3px); }
h3 { font-size: clamp(1.5rem, 2.6vw, 2.2rem); letter-spacing: -.05em; line-height: 1.25; }
.feature h3 { margin: 9px 0 12px; }
.feature p:not(.label), .entry > p, .closing p { color: var(--muted); }
.actions { gap: 24px; margin-top: 16px; }
.entry { border-top: 1px solid var(--rule); display: grid; grid-template-columns: 1fr 1.25fr auto; gap: 28px; align-items: center; padding: 22px 0; }
.entry:last-child { border-bottom: 1px solid var(--rule); }
.entry .label, .feature .label { color: var(--muted); }
.entry h3 { margin-top: 5px; }
.closing { display: grid; grid-template-columns: 1.2fr 1fr; gap: 10%; padding-block: 68px; }
.closing h2 { font-size: 2rem; }
.closing p { margin-block: 13px; }
footer { border-top: 1px solid var(--rule); padding: 19px 0; color: var(--muted); gap: 16px; }
[hidden] { display: none !important; }
@media (max-width: 760px) {
  .wrap { width: calc(100% - 40px); }
  .hero { grid-template-columns: 1fr; gap: 30px; padding-block: 38px; }
  h1 { font-size: clamp(2.5rem, 9vw, 4.2rem); }
  .study { justify-self: start; }
  .square, .fallback { font-size: 36px; }
  .feature, .closing, .project-pair { grid-template-columns: 1fr; gap: 22px; }
  .croc-preview { width: min(100%, 230px); justify-self: start; }
  .entry { grid-template-columns: 1fr auto; gap: 8px 18px; }
  .entry > p { grid-row: 2; grid-column: 1 / -1; }
  .entry .link { grid-column: 2; grid-row: 1; }
  .closing { padding-block: 44px; }
}
@media (max-width: 400px) {
  .wrap { width: calc(100% - 32px); }
  .signature { gap: 6px; font-size: .8rem; }
  nav { gap: 11px; }
  .section-head { align-items: start; flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  :root { scroll-behavior: auto; }
  *, *::after { transition: none !important; }
}
