@font-face {
  font-family: "Source Sans 3";
  src: url("/assets/source-sans-3-upright-b01a0d0c.woff2") format("woff2");
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("/assets/source-sans-3-italic-4199496e.woff2") format("woff2");
  font-style: italic;
  font-weight: 200 900;
  font-display: swap;
}
@font-face {
  font-family: "Source Code Pro";
  src: url("/assets/source-code-pro-upright-e27d927e.woff2") format("woff2");
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
}
:root {
  color-scheme: light;
  scrollbar-gutter: stable;
  --paper: #f8f7f3;
  --ink: #222923;
  --muted: #555e57;
  --line: #d4d8d0;
  --accent: #315c41;
  --accent-hover: #264b34;
  --font-sans: "Source Sans 3", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "Source Code Pro", ui-monospace, SFMono-Regular, Consolas, monospace;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
}
* { box-sizing: border-box; }
body { margin: 0; }
code, pre, kbd, samp { font-family: var(--font-mono); }
a { color: var(--accent); text-underline-offset: .25em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 5px; }
.leaderboard { min-width: 0; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.leaderboard h2, .leaderboard h3 { margin: 0 0 8px; font-family: inherit; font-size: 1.1rem; font-weight: 650; }
.leaderboard-table { width: 100%; table-layout: fixed; border-collapse: collapse; font-size: .875rem; }
.leaderboard-table th, .leaderboard-table td { padding: 7px 4px; border-bottom: 1px solid var(--line); text-align: left; overflow-wrap: anywhere; }
.leaderboard-table th:last-child, .leaderboard-table td:last-child { width: 5em; text-align: right; }
.leaderboard-rank { display: inline-block; min-width: 1.5em; font-weight: 700; }
.leaderboard-time { font-variant-numeric: tabular-nums; white-space: nowrap; }
.page-width { width: min(1080px, calc(100% - 64px)); margin-inline: auto; }
.skip-link { position: absolute; top: 12px; left: 12px; padding: 10px 16px; background: var(--paper); z-index: 2; transform: translateY(-180%); }
.skip-link:focus { transform: translateY(0); }
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 27px; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; }
.brand img { display: block; }
.wordmark { font-family: var(--font-sans); font-variant-caps: all-small-caps; letter-spacing: .025em; white-space: nowrap; }
.brand .wordmark { font-size: 32px; line-height: 1; }
.header-note, .eyebrow, .format-size, .status, .publication-note, .site-footer { color: var(--muted); font-size: .875rem; }
.public-page { padding-block: 38px 48px; }
.public-page h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); line-height: 1.15; margin-bottom: 24px; text-wrap: balance; }
.introduction { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); align-items: start; gap: 40px; padding-bottom: 48px; }
.introduction-copy { min-width: 0; }
.public-notice { padding: 16px; border: 1px solid var(--line); border-radius: 4px; background: #edf1e8; }
/* Keep the original 360-unit grid scale when adding the side-clue gutter. */
.crossword-art svg { display: block; width: calc(100% * 470 / 360); max-width: none; height: auto; margin-left: calc(-100% * 55 / 360); }
.eyebrow { margin: 0 0 21px; }
h1, h2, h3, p { margin-top: 0; }
h1 { font-family: var(--font-sans); font-size: clamp(2.8rem, 6vw, 4.7rem); line-height: 1.07; letter-spacing: -.035em; font-weight: 400; margin-bottom: 26px; }
.lead { max-width: 630px; font-size: 1.125rem; color: var(--muted); margin-bottom: 24px; }
.text-link { display: inline-flex; gap: 18px; padding-block: 8px; font-weight: 600; }
h2 { font-size: 1.25rem; line-height: 1.35; font-weight: 600; }
h3, .puzzle-card-title { font-family: var(--font-sans); font-size: 1.5rem; font-weight: 400; line-height: 1.3; margin-bottom: 16px; }
.explanation { display: grid; grid-template-columns: 1fr 2fr; gap: 48px; border-block: 1px solid var(--line); padding-block: 32px 20px; scroll-margin-top: 24px; }
.explanation p { max-width: 650px; color: var(--muted); }
.formats { padding-block: 48px 42px; }
.section-heading { display: flex; gap: 20px; justify-content: space-between; align-items: baseline; margin-bottom: 30px; }
.section-heading h2 { margin-bottom: 0; }
.status { white-space: nowrap; }
.format-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.format-list article { display: flex; flex-direction: column; min-width: 0; padding: 0 28px; border-left: 1px solid var(--line); }
.format-list article:first-child { padding-left: 0; border-left: 0; }
.format-list article:last-child { padding-right: 0; }
.format-number { display: block; color: var(--muted); font-size: .75rem; margin-bottom: 12px; }
.format-list article p { color: var(--muted); }
.format-size { margin-bottom: 0; }
.format-list .puzzle-card-access { margin-top: 16px; }
.format-list .puzzle-entry { display: flex; flex-direction: column; gap: 16px; margin-top: auto; padding-top: 16px; }
.format-list .puzzle-entry p { margin: 0; }
.format-list .public-button { width: 100%; }
.publication-note { margin: 32px 0 0; }
.site-footer { display: flex; justify-content: space-between; gap: 20px; border-top: 1px solid var(--line); padding-block: 22px; }
.site-footer p { margin-bottom: 0; }
.site-footer a { white-space: nowrap; }
@media (max-width: 1200px) {
  .introduction { grid-template-columns: 1fr; gap: 36px; }
  .crossword-art { width: min(470px, 100%); justify-self: center; }
  .crossword-art svg { width: 100%; margin-left: 0; }
}
@media (max-width: 640px) {
  .page-width { width: calc(100% - 40px); }
  .site-header { padding-block: 22px; }
  .header-note { display: none; }
  .public-page { padding-block: 24px 40px; }
  .explanation { grid-template-columns: 1fr; gap: 6px; }
  .section-heading { flex-direction: column; gap: 10px; }
  .format-list { grid-template-columns: 1fr; }
  .format-list article, .format-list article:first-child, .format-list article:last-child { padding: 24px 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .format-list article:first-child { padding-top: 0; }
  .format-list article:last-child { border-bottom: 0; padding-bottom: 0; }
  .site-footer { flex-direction: column; gap: 6px; }
}

.header-navigation { display: flex; align-items: center; gap: 20px; font-size: .875rem; }
.header-navigation a { padding-block: 10px; white-space: nowrap; }
.header-navigation [aria-current="page"] { color: var(--ink); text-decoration-thickness: 2px; }
.guide { max-width: 760px; margin-inline: auto; }
.guide-intro { padding-bottom: 20px; }
.guide-intro:has(> h1:last-child) { padding-bottom: 0; }
.guide-intro--labeled { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding-bottom: 0; margin-bottom: 24px; }
.guide-intro--labeled h1, .guide-label { margin: 0; }
.guide-intro--labeled h1 { flex: 0 0 auto; max-width: 100%; overflow-wrap: anywhere; }
.guide-intro--labeled .guide-label { max-width: 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.player-page > .guide-intro--labeled { max-width: none; margin-inline-start: max(0px, calc((100% - 760px) / 2)); margin-inline-end: 0; }
.guide p, .guide li, .guide dd { color: var(--muted); }
.guide strong, .guide dt { color: var(--ink); }
.guide-section { padding-block: 32px 16px; border-top: 1px solid var(--line); }
.clue-parts { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-block: 24px; }
.clue-parts div { border-left: 2px solid var(--accent); padding-left: 18px; }
.clue-parts dt { font-weight: 600; margin-bottom: 6px; }
.clue-parts dd { margin: 0; }
.guide blockquote { margin: 20px 0; padding: 12px 20px; background: #e6ece3; border-left: 2px solid var(--accent); font-family: var(--font-sans); font-size: 1.25rem; line-height: 1.5; }
.guide .example-clue { font-size: 1.25rem; }
.guide .technique-clue { font-size: 1.0625rem; }
.guide .technique-answer { display: inline-flex; align-items: baseline; gap: .35em; margin-inline-start: .5em; color: var(--accent); white-space: nowrap; }
.guide .technique-answer strong { color: inherit; font-size: .9em; }
.guide .technique-answer-arrow { font-size: 1.2em; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.enumeration { white-space: nowrap; }
.guide .techniques details { border-bottom: 1px solid var(--line); }
.guide .techniques details:last-child { border-bottom: 0; }
.guide summary { cursor: pointer; padding: 18px 4px; color: var(--ink); font-weight: 600; }
.guide summary::marker { color: var(--accent); }
.guide summary span { color: var(--muted); font-size: .875rem; font-weight: 400; margin-left: 12px; }
.guide details[open] summary { color: var(--accent); }
.disclosure-body { padding: 12px 4px 8px; }
.solve-steps, .grid-basics, .terms-list { padding-left: 24px; }
.solve-steps li, .grid-basics li, .terms-list li { margin-bottom: 12px; }
.guide .answer-path { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 16px; border: 1px solid var(--line); color: var(--accent); }
.answer-path span, .answer-path strong { white-space: nowrap; }
@media (max-width: 640px) {
  .header-navigation { gap: 16px; flex-wrap: wrap; }
  .clue-parts { grid-template-columns: 1fr; gap: 20px; }
  .guide summary span { display: block; margin-left: 20px; }
}

.flash-stack { position: fixed; right: 24px; bottom: 24px; z-index: 3; display: grid; grid-template-rows: 1fr; width: min(440px, calc(100vw - 48px)); opacity: 1; transition: grid-template-rows .3s ease, opacity .2s ease; }
.flash-stack-inner { min-height: 0; overflow: hidden; }
.flash-message { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; min-height: 48px; padding: 10px 10px 10px 14px; border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 10px; background: #edf1e8; box-shadow: 0 1px 2px rgb(34 41 35 / 4%); font-size: .875rem; line-height: 1.5; overflow-wrap: anywhere; }
.flash-message + .flash-message { margin-top: 8px; }
.flash-message-content { padding-block: 3px; }
.flash-message--alert { border-color: #e3bfa8; border-left-color: #963e32; background: #fff4e8; }
.flash-dismiss { flex: 0 0 32px; width: 32px; height: 32px; margin: -2px -2px -2px 0; border: 1px solid transparent; padding: 0; border-radius: 6px; background: transparent; color: var(--muted); font: inherit; font-size: 1.4rem; cursor: pointer; }
.flash-dismiss:hover { background: rgb(49 92 65 / 8%); color: var(--ink); }
.flash-message--alert .flash-dismiss:hover { background: rgb(150 62 50 / 8%); color: #70281f; }
.flash-dismiss:focus-visible { outline-offset: 1px; }
.flash-stack--dismissed { grid-template-rows: 0fr; opacity: 0; }
@media (prefers-reduced-motion: reduce) { .flash-stack { transition: none; } }
@media (max-width: 640px) { .flash-stack { right: 20px; bottom: 20px; width: calc(100vw - 40px); } }

.import-form { max-width: 54rem; }
.import-form textarea { width: 100%; box-sizing: border-box; font-family: var(--font-mono); }
.import-form input[type="file"] { max-width: 100%; }
.import-documentation { margin-block: 1.5rem; min-width: 0; }
.import-documentation summary { cursor: pointer; font-weight: 600; }
.import-documentation pre { padding: 1rem; background: var(--surface, #f5f5f2); overflow: auto; max-height: 32rem; font-size: .85rem; }
.import-documentation li { margin-block: .5rem; }
.import-documentation code, .form-errors li { overflow-wrap: anywhere; }

.import-form .import-field { margin-block: 1.25rem; }
.import-form label { display: block; margin-bottom: .5rem; font-weight: 600; }
.import-form textarea { padding: .75rem; border: 1px solid #b9c4bb; border-radius: .35rem; line-height: 1.5; }

[data-import-cancel-target="button"]:disabled { opacity: .5; cursor: default; background: transparent; color: var(--accent); }

/* Compact public masthead with distinct discovery and account groups. */
.site-header { --header-padding: 12px; position: relative; align-items: baseline; gap: 16px; padding-block: var(--header-padding); }
.site-header > .brand { align-items: baseline; min-height: 36px; }
.site-header > .brand img { align-self: center; }
.site-header .navigation--user { font-size: .875rem; }
.site-header .navigation--user nav { flex-wrap: nowrap; gap: 12px; width: max-content; }
.site-header .navigation--user ul { flex-wrap: nowrap; gap: 2px; }
.site-header .navigation-group--account { border-left: 1px solid var(--line); padding-left: 12px; }
.site-header .navigation-item, .site-header .text-button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 36px;
  padding: 6px 8px; border: 1px solid transparent; border-radius: 8px;
  font: inherit; line-height: 1.4; color: var(--muted); text-decoration: none; white-space: nowrap;
}
.site-header a.navigation-item:hover, .site-header .text-button:hover { background: #e6ece3; color: var(--accent); }
.site-header .navigation-item[aria-current="page"] { background: #e6ece3; color: var(--accent); border-color: var(--line); }
.site-header .navigation-item--primary { color: var(--accent); }
.site-header .navigation--user > summary { list-style: none; align-items: center; gap: 8px; min-height: 36px; padding: 4px 12px; border: 1px solid var(--line); border-radius: 8px; color: var(--accent); font-weight: 400; line-height: 1.4; }
.site-header .navigation--user > summary::-webkit-details-marker { display: none; }
.site-header--collapsed { flex-wrap: wrap; gap: 0; }
.site-header--collapsed .navigation--user { width: 100%; }
.site-header--collapsed .navigation--user > summary { display: flex; position: absolute; top: var(--header-padding); right: 0; }
.site-header--collapsed .navigation--user[open] > summary { background: #e6ece3; }
.site-header--collapsed .navigation--user nav { width: auto; flex-direction: column; align-items: stretch; gap: 12px; margin-top: 12px; padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: #fdfdfb; }
.site-header--collapsed .navigation--user ul { display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; }
.site-header--collapsed .navigation-group--account { border-left: 0; border-top: 1px solid var(--line); padding: 12px 0 0; }
.site-header--collapsed .navigation-item, .site-header--collapsed .text-button { width: 100%; min-height: 48px; justify-content: flex-start; text-align: left; white-space: normal; }
