/* My Sudoku's website (pages.ts): the app's colours (src/app/styles.css), light and dark. */
:root {
  --bg: #f4f5f7;
  --surface: #ffffff;
  --text: #1c2330;
  --muted: #5f6b7a;
  --line: #dde2ea;
  --accent: #2459d6;
  --accent-soft: #e6edfb;
  --accent-text: #ffffff;
  --hero: #2459d6;
  --hero-glow: #4a7ef0;
  --hero-text: #ffffff;
  --hero-muted: #dce6fc;
  --hero-button-text: #1b48b3;
  --bezel: #0f1830;
  --focus: #e07b00;
  --radius: 14px;
  --shadow: 0 1px 2px rgb(16 24 40 / 6%), 0 10px 28px rgb(16 24 40 / 10%);
  /* The board of the examples, as the app colours a step (src/app/styles.css). */
  --cell: #ffffff;
  --grid-line: #c9d0da;
  --grid-strong: #1c2330;
  --given: #1c2330;
  --solved: #2459d6;
  --note: #5f6b7a;
  --peer: #e9eef8;
  --pattern: #d7f0dc;
  --elimination: #ffe0c2;
  --target: #8fd69c;
  --place: #1b7a34;
  --remove: #c62828;
  --chain: #6a35c2;
  --color-a: #2459d6;
  --color-b: #e07b00;
  --level-very-easy: #0e8a7d;
  --level-easy: #2f8f3e;
  --level-medium: #c27c0e;
  --level-hard: #d1492b;
  --level-extreme: #7d3cc8;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #12151b;
    --surface: #1b2029;
    --text: #e6e9ef;
    --muted: #9aa5b5;
    --line: #2d3544;
    --accent: #7aa2ff;
    --accent-soft: #222c43;
    --accent-text: #0e1420;
    --hero: #183a8f;
    --hero-glow: #2a55bd;
    --hero-muted: #c9d6f6;
    --hero-button-text: #183a8f;
    --bezel: #05080f;
    --focus: #ffb347;
    --shadow: 0 10px 28px rgb(0 0 0 / 35%);
    --cell: #1b2029;
    --grid-line: #3a4352;
    --grid-strong: #cfd6e2;
    --given: #e6e9ef;
    --solved: #8fb1ff;
    --note: #9aa5b5;
    --peer: #232a37;
    --pattern: #1f3d2a;
    --elimination: #4d3520;
    --target: #2f6b3f;
    --place: #86e39a;
    --remove: #ff8a80;
    --chain: #c49bff;
    --color-a: #7aa2ff;
    --color-b: #ffb347;
    --level-very-easy: #4fd1c5;
    --level-easy: #7bd88f;
    --level-medium: #f6c35b;
    --level-hard: #ff8f6b;
    --level-extreme: #c49bff;
    color-scheme: dark;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  overflow-wrap: break-word;
}

img,
video {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--accent);
}

a:focus-visible,
.btn:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

h1,
h2,
h3 {
  text-wrap: balance;
}

p,
li {
  text-wrap: pretty;
}

.wrap {
  width: 100%;
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: 16px;
}

@media (min-width: 720px) {
  .wrap {
    padding-inline: 32px;
  }
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip {
  position: absolute;
  top: -60px;
  left: 12px;
  z-index: 10;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
  font-weight: 600;
}

.skip:focus {
  top: 12px;
}

/* The app's line icons (src/app/ui/icons.ts). */
.icon {
  flex: none;
  width: 1.25em;
  height: 1.25em;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* The name of the app, the site's sections, and the languages: on a phone, the sections on a line of their own. */
.top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
  padding-block: 14px;
}

.sections {
  display: flex;
  align-items: center;
  gap: 8px;
  order: 3;
  width: 100%;
}

/* On a phone the sections scroll sideways, fading at the edge, and Play stays in sight. */
.section-links {
  display: flex;
  flex: 1;
  gap: 2px;
  min-width: 0;
  margin-left: -8px;
  overflow-x: auto;
  scrollbar-width: none;
}

.section-links::-webkit-scrollbar {
  display: none;
}

@media (max-width: 879px) {
  .section-links {
    padding-right: 20px;
    mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent);
  }
}

.sections a {
  flex: none;
  padding: 6px 8px;
  border-radius: 8px;
  color: inherit;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  opacity: 0.85;
}

.sections a:hover,
.sections a[aria-current] {
  background: color-mix(in srgb, currentColor 12%, transparent);
  opacity: 1;
}

.sections .nav-play {
  padding-inline: 14px;
  border: 2px solid currentColor;
  border-radius: 999px;
  opacity: 1;
}

@media (min-width: 880px) {
  .sections {
    order: 2;
    width: auto;
    margin-left: auto;
  }

  .section-links {
    gap: 4px;
    margin-left: 0;
    overflow: visible;
  }

  .languages {
    order: 3;
  }
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  font-size: 1.125rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.brand img {
  border-radius: 9px;
}

.languages ul {
  display: flex;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.languages a {
  display: block;
  padding: 6px 8px;
  border-radius: 8px;
  color: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  opacity: 0.78;
}

.languages a:hover {
  background: color-mix(in srgb, currentColor 12%, transparent);
  opacity: 1;
}

.languages a[aria-current="page"] {
  background: color-mix(in srgb, currentColor 18%, transparent);
  opacity: 1;
}

/* Buttons. */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 11px 20px;
  border: 2px solid transparent;
  border-radius: 12px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition:
    background-color 0.15s,
    border-color 0.15s,
    color 0.15s;
}

.btn .icon {
  width: 20px;
  height: 20px;
}

.btn-light {
  background: #ffffff;
  color: var(--hero-button-text);
}

.btn-light:hover {
  background: #e8eefc;
}

.btn-outline {
  border-color: rgb(255 255 255 / 70%);
  color: #ffffff;
}

.btn-outline:hover {
  border-color: #ffffff;
  background: rgb(255 255 255 / 12%);
}

.btn-primary {
  background: var(--accent);
  color: var(--accent-text);
}

.btn-primary:hover {
  background: color-mix(in srgb, var(--accent) 88%, var(--text));
}

.btn-secondary {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-secondary:hover {
  background: var(--accent-soft);
}

/* The top of the home page: what the app is, the two ways to play, and the app itself. */
.hero-band {
  overflow: hidden;
  background:
    radial-gradient(900px 520px at 88% 8%, var(--hero-glow) 0%, transparent 62%),
    var(--hero);
  color: var(--hero-text);
}

.hero {
  display: grid;
  gap: 36px;
  padding-top: 20px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--hero-muted);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.25rem, 7vw, 3.6rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.lead {
  max-width: 36em;
  margin: 18px 0 0;
  color: var(--hero-muted);
  font-size: 1.125rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.note {
  margin: 14px 0 0;
  color: var(--hero-muted);
  font-size: 0.9rem;
}

/* A phone rising from the bottom of the band. */
.hero-shot {
  justify-self: center;
  width: min(250px, 70vw);
  height: 360px;
  overflow: hidden;
  border: 8px solid var(--bezel);
  border-bottom: 0;
  border-radius: 34px 34px 0 0;
  box-shadow: 0 -4px 40px rgb(0 0 0 / 22%);
}

@media (min-width: 880px) {
  .hero {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    align-items: end;
    gap: 48px;
    padding-top: 36px;
  }

  .hero-text {
    padding-bottom: 72px;
  }

  .hero-shot {
    width: 300px;
    height: 470px;
  }
}

/* The sections. */
.page-home main > section {
  padding-block: 56px;
}

@media (min-width: 880px) {
  .page-home main > section {
    padding-block: 80px;
  }
}

.article > section {
  margin-top: 48px;
}

h2 {
  margin: 0 0 28px;
  font-size: clamp(1.5rem, 4vw, 2.1rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.feature {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.feature-icon {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
}

.feature-icon .icon {
  width: 24px;
  height: 24px;
}

.feature h3 {
  margin: 14px 0 6px;
  font-size: 1.125rem;
  line-height: 1.3;
}

.feature p {
  margin: 0;
  color: var(--muted);
}

.video {
  padding-top: 0;
}

.video video {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  background: #000000;
  box-shadow: var(--shadow);
}

/* The store's screenshots: a row to swipe on a phone, two rows of four on a wider screen. */
.shots {
  border-block: 1px solid var(--line);
  background: var(--surface);
}

.shot-strip {
  display: grid;
  grid-auto-columns: min(62vw, 240px);
  grid-auto-flow: column;
  gap: 16px;
  margin-block: 0;
  padding-bottom: 12px;
  overflow-x: auto;
  list-style: none;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
}

.shot-strip li {
  scroll-snap-align: center;
}

.shot-strip img {
  border: 1px solid var(--line);
  border-radius: 16px;
}

@media (min-width: 880px) {
  .shot-strip {
    grid-auto-flow: row;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
    overflow: visible;
  }
}

/* The two ways to play. */
.version-cards {
  display: grid;
  gap: 16px;
}

@media (min-width: 720px) {
  .version-cards {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }
}

.version-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.version-card h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: 1.25rem;
}

.version-card h3 .icon {
  width: 26px;
  height: 26px;
  color: var(--accent);
}

.version-card ul {
  display: grid;
  flex: 1;
  align-content: start;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.version-card li {
  position: relative;
  padding-left: 22px;
  color: var(--muted);
}

.version-card li::before {
  position: absolute;
  top: 0.68em;
  left: 4px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  content: "";
}

.version-card .btn {
  align-self: flex-start;
}

/* The foot of every page. */
.site-footer {
  padding-block: 28px 36px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

.page-home .site-footer {
  border-top: 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin: 0 0 8px;
}

.footer-links a {
  color: var(--text);
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
}

.footer-note {
  margin: 0;
}

/* The privacy policy, and the page for an address that leads nowhere. */
.plain-band {
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.prose {
  max-width: 780px;
  padding-block: 40px 56px;
}

.prose h1 {
  margin: 0 0 8px;
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  line-height: 1.15;
}

.prose ul {
  display: grid;
  gap: 12px;
  padding-left: 1.2em;
}

.updated {
  margin: 0 0 24px;
  color: var(--muted);
}

.intro {
  font-size: 1.125rem;
  font-weight: 500;
}

.home-list {
  list-style: none;
  padding: 0;
}

/* The foot of the home page: the rest of the site, close to the two ways to play. */
.page-home .explore {
  padding-top: 0;
}

.explore-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.explore-card {
  display: grid;
  gap: 6px;
  height: 100%;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--muted);
  text-decoration: none;
}

.explore-card strong {
  margin-top: 8px;
  color: var(--text);
  font-size: 1.125rem;
}

.explore-card:hover {
  border-color: var(--accent);
}

/* The pages on solving, the history and the links. */
.article {
  padding-block: 32px 56px;
}

.article.narrow {
  max-width: 820px;
}

.article h1 {
  margin: 0 0 10px;
  font-size: clamp(1.9rem, 5vw, 2.75rem);
  line-height: 1.12;
  letter-spacing: -0.015em;
}

.article h2 {
  margin: 40px 0 14px;
  font-size: clamp(1.35rem, 3.5vw, 1.7rem);
}

.article section > h2:first-child,
.technique-text > h2:first-child {
  margin-top: 0;
}

.lead-text {
  max-width: 46em;
  margin: 0 0 32px;
  color: var(--muted);
  font-size: 1.15rem;
}

.article p,
.article li,
.article dd {
  max-width: 46em;
}

.crumbs {
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 0.9rem;
}

.crumbs a {
  color: inherit;
}

.level-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 0.95rem;
}

.level {
  display: inline-block;
  padding: 2px 10px;
  border: 1.5px solid currentColor;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1.6;
}

.level-very-easy {
  color: var(--level-very-easy);
}

.level-easy {
  color: var(--level-easy);
}

.level-medium {
  color: var(--level-medium);
}

.level-hard {
  color: var(--level-hard);
}

.level-extreme {
  color: var(--level-extreme);
}

/* A lesson beside its example: side by side on a wide screen. */
.technique {
  display: grid;
  gap: 28px;
  margin-block: 8px 40px;
}

@media (min-width: 960px) {
  .technique {
    grid-template-columns: minmax(0, 1fr) minmax(0, 460px);
    align-items: start;
    gap: 48px;
  }
}

.technique-text p {
  margin: 0 0 14px;
}

.tip {
  padding: 14px 16px;
  border-left: 4px solid var(--accent);
  border-radius: 0 10px 10px 0;
  background: var(--accent-soft);
}

.technique-example h2 {
  margin-top: 0;
}

.example {
  margin: 0;
}

.example figcaption {
  margin-top: 12px;
  font-weight: 500;
}

.legend {
  display: grid;
  gap: 6px;
  margin: 12px 0 0;
  padding: 0;
  color: var(--muted);
  font-size: 0.9rem;
  list-style: none;
}

.legend li {
  display: flex;
  align-items: center;
  gap: 10px;
}

.key {
  flex: none;
  width: 18px;
  height: 18px;
  border: 1px solid var(--grid-line);
  border-radius: 4px;
}

.key-highlight {
  background: var(--peer);
}

.key-pattern {
  background: var(--pattern);
}

.key-elimination {
  background: var(--elimination);
}

.key-target {
  background: var(--target);
  box-shadow: inset 0 0 0 2px var(--place);
}

.key-chain {
  border: 0;
  border-radius: 0;
  background: linear-gradient(var(--chain), var(--chain)) left center / 45% 3px no-repeat,
    repeating-linear-gradient(90deg, var(--chain) 0 3px, transparent 3px 6px) right center / 45% 3px no-repeat;
}

.key-coloring {
  border: 0;
  background: linear-gradient(90deg, color-mix(in srgb, var(--color-a) 55%, transparent) 50%, color-mix(in srgb, var(--color-b) 55%, transparent) 50%);
}

.key-sets {
  background: linear-gradient(90deg, color-mix(in srgb, var(--color-a) 25%, transparent) 50%, color-mix(in srgb, var(--color-b) 30%, transparent) 50%);
}

/* The board, drawn in SVG (board.ts): a cell is 100 units. */
.board {
  display: block;
  width: 100%;
  max-width: 460px;
  height: auto;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

.board text {
  text-anchor: middle;
  dominant-baseline: central;
}

.b-cell {
  fill: var(--cell);
}

.b-highlight {
  fill: var(--peer);
}

.b-pattern {
  fill: var(--pattern);
}

.b-elimination {
  fill: var(--elimination);
}

.b-target {
  fill: var(--target);
  stroke: var(--place);
  stroke-width: 6;
}

.b-line {
  stroke: var(--grid-line);
  stroke-width: 2;
}

.b-line.b-thick {
  stroke: var(--grid-strong);
  stroke-width: 5;
}

.b-frame {
  fill: none;
  stroke: var(--grid-strong);
  stroke-width: 7;
}

.b-value {
  fill: var(--given);
  font-size: 60px;
  font-weight: 700;
}

.b-value.b-solved {
  fill: var(--solved);
  font-weight: 500;
}

.b-note {
  fill: var(--note);
  font-size: 23px;
}

.b-note.b-remove {
  fill: var(--remove);
  font-weight: 700;
}

.b-strike {
  stroke: var(--remove);
  stroke-width: 3;
}

.b-note.b-place {
  fill: var(--place);
  font-size: 34px;
  font-weight: 800;
}

.b-label {
  fill: var(--muted);
  font-size: 22px;
  font-weight: 600;
}

/* The chain, as the app draws it (chain-view.ts). */
.chain-link {
  fill: none;
  stroke: var(--chain);
  stroke-width: 4.5;
  stroke-linecap: round;
}

.chain-link.weak {
  stroke-dasharray: 9 9;
}

.chain-arrow {
  fill: var(--chain);
}

.chain-node {
  fill: none;
  stroke: var(--chain);
  stroke-width: 3.5;
}

.chain-node.end {
  stroke-width: 6.5;
}

.chain-color.a {
  fill: color-mix(in srgb, var(--color-a) 45%, transparent);
}

.chain-color.b {
  fill: color-mix(in srgb, var(--color-b) 45%, transparent);
}

.chain-area.a {
  fill: color-mix(in srgb, var(--color-a) 18%, transparent);
}

.chain-area.b {
  fill: color-mix(in srgb, var(--color-b) 22%, transparent);
}

/* How to go about a puzzle: numbered steps. */
.steps {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  position: relative;
  padding-left: 46px;
  counter-increment: step;
}

.steps li::before {
  position: absolute;
  top: -2px;
  left: 0;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 700;
  content: counter(step);
}

/* The techniques, level by level. */
.level-group {
  margin-top: 28px;
}

.level-group h3 {
  margin: 0 0 6px;
}

.level-group > p {
  margin: 0 0 14px;
  color: var(--muted);
}

.technique-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.technique-card {
  display: grid;
  gap: 4px;
  height: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--muted);
  font-size: 0.92rem;
  text-decoration: none;
}

.technique-card strong {
  color: var(--text);
  font-size: 1rem;
}

.technique-card:hover {
  border-color: var(--accent);
}

.words {
  display: grid;
  gap: 4px 24px;
  margin: 0;
}

.words dt {
  margin-top: 10px;
  font-weight: 700;
}

.words dd {
  margin: 0;
  color: var(--muted);
}

@media (min-width: 720px) {
  .words {
    grid-template-columns: minmax(150px, max-content) minmax(0, 1fr);
  }

  .words dt,
  .words dd {
    margin-top: 10px;
  }
}

/* Practise it, and the way through the techniques. */
.practice {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.practice h2 {
  margin: 0 0 6px;
  font-size: 1.25rem;
}

.practice p {
  margin: 0;
  color: var(--muted);
}

.pager {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  margin-top: 32px;
}

.pager a {
  display: grid;
  color: var(--accent);
  text-decoration: none;
}

.pager small {
  color: var(--muted);
}

.pager-all {
  text-align: center;
  font-size: 0.9rem;
}

.pager-next {
  text-align: right;
}

.pager a:hover span {
  text-decoration: underline;
}

/* The history: a timeline. */
.timeline {
  margin: 0;
  padding: 0;
  list-style: none;
}

.timeline li {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2px;
  padding: 18px 0 18px 22px;
  border-left: 3px solid var(--accent-soft);
}

@media (min-width: 720px) {
  .timeline li {
    grid-template-columns: 130px minmax(0, 1fr);
    gap: 24px;
    padding-left: 0;
    border-left: 0;
  }
}

.timeline .when {
  margin: 0;
  color: var(--accent);
  font-size: 1.05rem;
  font-weight: 800;
}

.timeline h2 {
  margin: 0 0 6px;
  font-size: 1.25rem;
}

.timeline p {
  margin: 0;
}

.sources {
  margin-top: 28px;
  color: var(--muted);
  font-size: 0.9rem;
}

/* Famous puzzles: each board beside its story. */
.famous {
  display: grid;
  gap: 20px 40px;
  margin-top: 28px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

@media (min-width: 820px) {
  .famous {
    grid-template-columns: 320px minmax(0, 1fr);
    align-items: start;
  }
}

.famous-board .board {
  max-width: 340px;
}

.famous .when {
  margin: 0;
  color: var(--accent);
  font-weight: 800;
}

.famous h2 {
  margin: 2px 0 4px;
}

.famous-text > p {
  margin: 0 0 12px;
}

.famous .aka {
  color: var(--muted);
  font-style: italic;
}

.famous .needs {
  color: var(--muted);
}

/* Other Sudoku sites. */
.link-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.link-list li {
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}

.outside {
  display: grid;
  gap: 2px;
  text-decoration: none;
}

.outside strong {
  font-size: 1.1rem;
}

.outside:hover strong {
  text-decoration: underline;
}

.host {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 0.85rem;
}

.host .icon {
  width: 14px;
  height: 14px;
}

.link-list p {
  margin: 8px 0 0;
  color: var(--muted);
}

.note-muted {
  margin-top: 28px;
  color: var(--muted);
  font-size: 0.9rem;
}
