:root {
  font-family: Inter, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink); background: var(--paper);
  -webkit-text-size-adjust: 100%;
}
* { box-sizing: border-box }
body, h1, h2, h3, p, figure, dl, dd { margin: 0 }
a { color: inherit }
a:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px }
.wrap { max-width: 960px; width: calc(100% - 64px); margin-inline: auto }
.masthead-inner { height: 76px; display: flex; align-items: center; justify-content: space-between; border-bottom: 2px solid var(--grid) }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; font-weight: 780; font-size: 25px; letter-spacing: -.075em }
.brand img { image-rendering: pixelated }
.hero { display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding: clamp(32px,5vw,66px) 0 }
h1 { font-size: clamp(3.4rem,7.5vw,6.4rem); line-height: .91; letter-spacing: -.065em; font-weight: 770 }
.hero p { max-width: 410px; margin-top: 1.5rem; font-size: clamp(1rem,1.5vw,1.18rem); line-height: 1.55 }
.example { flex: 0 1 280px; margin-inline-start: 16px }
.example-grid { width: 100%; aspect-ratio: 1; display: grid; grid-template: repeat(3, 1fr) / repeat(3, 1fr); gap: 3px; padding: 3px; background: var(--grid) }
.mini-square { min-width: 0; display: grid; grid-template: repeat(3, 1fr) / repeat(3, 1fr); gap: 1px }
.mini-square b { background: var(--paper); display: grid; place-items: center; font-size: clamp(.8rem,1.6vw,1.28rem); line-height: 1 }
.mini-square .fixed { background: var(--fixed) }
.mini-square .selected { background: var(--selection) }
h2 { font-size: clamp(1.6rem,3.2vw,2.2rem); letter-spacing: -.065em; line-height: 1.1 }
.choices { display: grid; grid-template-columns: repeat(4,1fr); border: 2px solid var(--grid) }
.choice { position: relative; padding: 32px clamp(15px,2.4vw,26px) clamp(15px,2.4vw,26px); text-decoration: none; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 1.45rem }
.choice + .choice { border-left: 1px solid var(--grid) }
.size-tag {
  position: absolute; inset-block-start: 0; inset-inline-start: 0;
  min-width: 2rem; padding: .25rem .45rem; background: var(--ink); color: var(--paper);
  font-size: .8rem; line-height: 1.2; font-weight: 750;
}
.size-preview {
  width: min(120px,100%); aspect-ratio: 1; display: grid;
  grid-template: repeat(var(--squares),1fr) / repeat(var(--squares),1fr);
  gap: 2px; padding: 2px; background: var(--grid);
}
.preview-square {
  display: grid; grid-template: repeat(var(--letters),1fr) / repeat(var(--letters),1fr); gap: 1px;
}
.preview-square i { background: var(--paper) }
.preview-square .fixed { background: var(--fixed) }
.size-preview:empty { background: transparent }
.play-label, .puzzle-actions a { text-decoration: none; display: inline-flex; min-width: 72px; min-height: 36px; justify-content: center; align-items: center; padding: .4rem 1rem; background: var(--ink); color: var(--paper); font-size: .95rem; font-weight: 650 }
.play-label::after { content: ""; position: absolute; inset: 0 }
.puzzle-actions { display: flex; justify-content: center; gap: .5rem; margin-top: 5.2rem }
.puzzle-actions a { background: var(--paper); color: var(--ink); border: 1px solid currentColor }
.choice:has(.play-label:hover), .choice:has(.play-label:focus-visible), .puzzle-actions a:hover { background: var(--selection) }
.instructions { display: grid; grid-template-columns: minmax(0,1fr) 1px minmax(0,1fr); column-gap: clamp(1rem,2.5vw,2rem) }
.instructions::before { content: ""; grid-area: 1 / 2; background: var(--divider); margin-block: 5.2rem 3.5rem }
.rules { margin: 3.5rem 0; padding-top: 1.7rem; scroll-margin-top: 1rem }
.rules h2 { margin-bottom: 1.25rem }
.rules p { max-width: 68ch; line-height: 1.55 }
.rules ol { margin: .5rem 0 0; padding-inline-start: 1.5rem; line-height: 1.55 }
.rules p svg { width: 1.15em; height: 1.15em; vertical-align: -.2em; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round }
@media (max-width: 650px) {
  .wrap { width: calc(100% - 36px) }
  .masthead-inner { height: 60px }
  .hero { gap: 1rem; flex-wrap: wrap; padding: 26px 0 }
  .hero > div { flex: 1 1 44% }
  h1 { font-size: clamp(2.75rem,8.5vw,3.7rem) }
  .hero p { font-size: 1rem; margin-top: .8rem; line-height: 1.4 }
  .example { flex: 0 1 40%; margin: 0 }
  .choices { grid-template-columns: repeat(2,1fr) }
  .puzzle-actions { margin-top: 3.7rem }
  .instructions { display: block }
  .instructions::before { display: none }
  .choice:nth-child(3) { border-left: 0 }
  .choice:nth-child(n+3) { border-top: 1px solid var(--grid) }
  .choice { padding: 32px 9px 12px; gap: .8rem }
  .play-label { min-width: 0; padding: .4rem .7rem }
  .rules { margin: 2rem 0 }
}
@media (max-width: 370px) {
  .hero { display: grid; grid-template-columns: 1fr }
  .example { width: 160px; justify-self: end }
  .choices { grid-template-columns: 1fr }
  .choice + .choice { border: 0; border-top: 1px solid var(--grid) }
}
