@font-face {
  font-family: 'Young Serif';
  src: url('young-serif.ttf') format('truetype');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
:root {
  color-scheme: light;
  --paper: #fff9e9;
  --surface: #fffdf6;
  --ink: #1c294b;
  --blue: #213f9e;
  --muted: #525b70;
  --rule: #b5b9c2;
  --butter: #ffd369;
  --word: #dceafa;
  --error: #982c2a;
  --display: 'Young Serif', 'Songti SC', 'Songti TC', 'Yu Mincho', Georgia, serif;
  --sans: ui-sans-serif, -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  --mono: ui-monospace, 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;
  --measure: 1116px;
  --gutter: clamp(18px, 4.7vw, 58px);
}
* { box-sizing: border-box; }
html { scroll-padding-top: 12px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.48 var(--sans); }
h1, h2, h3, p { margin: 0; }
button, input, textarea, select { font: inherit; color: inherit; }
button, select, summary { cursor: pointer; }
:where(button, a, input, select, summary) { touch-action: manipulation; }
button:disabled { cursor: default; opacity: .6; }
a { color: var(--blue); text-underline-offset: .2em; }
:where(button, a, summary, select, textarea, [tabindex]):focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
[hidden] { display: none !important; }
.shell, .mast-inner { max-width: calc(var(--measure) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.shell { padding-bottom: 20px; }
.topbar { background: var(--blue); color: var(--paper); }
.mast-inner { display: flex; align-items: center; gap: 24px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 11px; margin-inline-end: auto; font: 400 clamp(20px, 2vw, 28px)/1 var(--display); letter-spacing: -.032em; }
.brand img { width: 35px; height: 35px; flex: none; transform: rotate(-6deg); }
.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a { display: inline-flex; min-height: 44px; align-items: center; padding: 6px 10px; font-size: 14px; font-weight: 620; text-decoration: none; color: inherit; }
.site-nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; text-decoration-color: var(--butter); }
.topbar :focus-visible { outline-color: var(--butter); }
.language-picker { display: flex; align-items: center; position: relative; border-inline-start: 1px solid #8a9dd6; padding-inline-start: 18px; }
.language-picker > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.language-picker select { border: 0; background: var(--blue); color: var(--surface); font-size: 13px; min-height: 44px; max-width: 155px; }
.language-picker option { background: var(--surface); color: var(--ink); }
.skip { position: fixed; top: 4px; left: 6px; transform: translateY(-140%); z-index: 5; background: var(--butter); color: var(--ink); padding: 10px 16px; }
.skip:focus { transform: none; }
.intro { position: relative; isolation: isolate; display: grid; grid-template-columns: minmax(0, 1fr) minmax(150px, 24%); gap: 24px; align-items: center; padding: 22px 2px 21px; border-bottom: 3px solid var(--blue); }
.intro::after { content: ''; position: absolute; inset: auto 0 -6px; border-bottom: 1px solid var(--blue); }
.puzzle-size { display: inline-flex; align-items: center; gap: 9px; color: var(--blue); font: 650 12px/1.3 var(--mono); letter-spacing: .07em; text-transform: uppercase; }
.puzzle-size::before { content: ''; width: 22px; height: 10px; background: repeating-conic-gradient(var(--blue) 0 25%, transparent 0 50%) 0 0/10px 10px; }
h1 { font: 400 clamp(43px, 5.55vw, 76px)/1.08 var(--display); letter-spacing: -.032em; overflow-wrap: break-word; color: var(--blue); }
.intro h1 { margin: 6px 0 8px; }
.intro h1 .puzzle-size { display: flex; margin-bottom: 6px; }
.puzzle-name { display: block; }
.intro h1:lang(zh), .intro h1:lang(ja) { font-weight: 700; letter-spacing: -.065em; }
.intro-copy > p { font-size: 15px; max-width: 68ch; }
.breakfast-print { display: block; width: min(100%, 246px); height: auto; justify-self: center; }
.site-nav .mobile-index { display: none; }
.puzzle-layout { display: grid; grid-template-columns: minmax(320px, .81fr) minmax(0, 1.2fr); align-items: start; column-gap: clamp(28px, 4.6vw, 62px); margin-top: 28px; }
.board-column, .clue-index { min-width: 0; }
.clue-strip { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 7px 9px; position: relative; padding: 11px 13px; min-height: 75px; color: var(--ink); background: #ffe39b; border: 1px solid var(--blue); border-top: 3px solid var(--blue); overflow-wrap: anywhere; }
.active-clue { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 12px; }
.clue-ticket-number { min-width: .9em; color: var(--blue); font: 400 38px/1 var(--display); text-align: center; }
.clue-id { color: var(--blue); font: 650 11px/1.3 var(--mono); text-transform: uppercase; letter-spacing: .035em; }
.active-clue p { margin-top: 4px; font-weight: 600; line-height: 1.26; }
.nudge-button { min-height: 44px; max-width: 7.8em; padding: 4px 3px 4px 11px; background: none; border: 0; border-inline-start: 1px dashed #a99870; font-size: 13px; font-weight: 650; color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.nudge-text { grid-column: 1/-1; padding-top: 8px; border-top: 1px dashed #a99870; font-size: 14px; }
.board-mat { display: grid; place-items: center; margin-top: 10px; background: var(--surface); border: 1px solid var(--blue); padding: 10px; box-shadow: 3px 3px 0 #c9d5df; }
.grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); width: 100%; gap: 1.5px; border: 2px solid var(--blue); background: var(--blue); }
.cell, .block { min-width: 0; position: relative; aspect-ratio: 1; }
.block { background: #243f89; }
.cell { background: var(--surface); }
.cell.in-word { background: var(--word); }
.cell.active { background: var(--butter); box-shadow: inset 0 0 0 3px var(--blue); }
.cell:focus-within { outline: 2px dashed var(--ink); outline-offset: -6px; }
.cell input { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: 0; background: transparent; color: var(--ink); outline: none; padding: 8px 0 0; text-align: center; text-transform: uppercase; font: 640 clamp(30px, 3.3vw, 43px)/1 var(--sans); caret-color: transparent; }
.number { position: absolute; z-index: 1; top: 3px; left: 5px; color: var(--blue); font: 700 12px/1.1 var(--mono); pointer-events: none; }
.cell.error input { color: var(--error); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.error-mark { position: absolute; bottom: 3px; right: 5px; font: bold 16px/1 var(--sans); color: var(--error); pointer-events: none; }
.solved .cell { background: #f6efce; }
.solved .cell.in-word { background: var(--word); }
.navigation { display: grid; grid-template-columns: auto minmax(0,1fr) auto; border-bottom: 1px dashed var(--rule); padding: 3px 0; }
.navigation button { min-height: 44px; padding: 4px 6px; border: 0; background: transparent; color: var(--blue); font-size: 13px; overflow-wrap: anywhere; }
.flip { font-weight: 700; }
.actions { display: flex; gap: 10px; }
.actions button { border: 1.5px solid var(--blue); border-radius: 3px; min-height: 44px; padding: 8px 13px; flex: 1; color: var(--blue); background: var(--surface); font-weight: 650; font-size: 14px; }
.actions button.primary { background: var(--blue); color: var(--surface); }
.check-actions { margin-top: 10px; }
.feedback { margin-top: 6px; color: var(--muted); font-size: 13px; min-height: 1.45em; }
.puzzle-progress { display: flex; align-items: center; gap: 14px; margin-top: 10px; color: var(--muted); font-size: 12px; }
.puzzle-progress label { flex: 0 1 auto; font-variant-numeric: tabular-nums; }
.puzzle-progress strong { color: var(--blue); }
progress { flex: 1; min-width: 35px; max-width: 15rem; height: 6px; appearance: none; border: 0; color: var(--blue); background: #dededb; }
progress::-webkit-progress-bar { background: #dededb; }
progress::-webkit-progress-value { background: var(--blue); }
progress::-moz-progress-bar { background: var(--blue); }
.sheet-heading { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 3px 14px; border-bottom: 2px solid var(--blue); padding: 0 0 9px; }
.sheet-heading h2 { color: var(--blue); font: 400 36px/1.1 var(--display); letter-spacing: -.05em; }
#word-status { color: var(--muted); font: 500 12px/1.4 var(--mono); }
.clue-columns { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); column-gap: clamp(16px,2.3vw,32px); }
.clue-section h3 { display: flex; align-items: center; gap: 8px; margin: 17px 0 4px; font: 700 18px/1.2 var(--sans); color: var(--blue); }
.clue-section h3 [aria-hidden] { display: inline-grid; place-items: center; width: 24px; height: 24px; border: 1px solid currentColor; font: 700 16px/1 var(--mono); }
.clues { margin: 0; padding: 0; list-style: none; }
.clues li { border-bottom: 1px dashed var(--rule); }
.clues li[value] { list-style: decimal; margin-inline-start: 1.7rem; padding: .5rem .2rem; }
.clue { display: grid; grid-template-columns: 1.35rem minmax(0,1fr); align-content: center; gap: 2px 6px; width: 100%; min-height: 56px; padding: 9px 7px; border: 0; background: transparent; text-align: start; font: 450 16px/1.35 var(--sans); }
.clue-number { color: var(--blue); font: 700 15px/1.3 var(--mono); }
.clue.active { box-shadow: inset 3px 0 var(--blue); background: var(--word); }
.length { color: var(--muted); font: 500 .78em var(--mono); white-space: nowrap; }
.clue-state { grid-column: 2; color: var(--blue); font-size: 11px; font-weight: 650; }
.clue-state:empty { display: none; }
.help { margin-top: 18px; border-block: 1px solid var(--blue); }
.help summary { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 46px; cursor: pointer; font-weight: 650; font-size: 14px; color: var(--blue); list-style: none; }
.help summary::-webkit-details-marker { display: none; }
.help summary::after { content: '+'; font: 400 22px var(--mono); }
.help[open] summary::after { content: '−'; }
.guide-text { font-size: 14px; }
.guide-text p { margin-bottom: 10px; }
.text-button { padding: 4px 1px; border: 0; min-height: 44px; background: transparent; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; font-size: 13px; }
.notes-shortcut, .back-to-grid {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--blue);
  text-underline-offset: .22em;
}
.notes-shortcut { margin-inline-end: 1.25rem; font-size: .9rem; }
.notebook {
  max-width: 50rem;
  margin: clamp(2.5rem, 6vw, 5rem) auto 2rem;
  padding-top: 1.3rem;
  border-top: 4px double var(--blue);
  scroll-margin-top: 1rem;
}
.notebook h2 {
  margin: 0 0 .6rem;
  color: var(--blue);
  font: 400 clamp(1.85rem, 3.3vw, 2.65rem)/1.15 var(--display);
  text-wrap: balance;
}
.notebook p, .notebook dd { max-width: 68ch; font-size: 1rem; line-height: 1.65; }
.notebook > p { margin: .5rem 0 1.3rem; }
.notebook details { border-top: 1px solid var(--rule); }
.notebook summary { padding: .8rem .25rem; min-height: 48px; color: var(--blue); }
.notebook summary h3 { display: inline; margin: 0; font: 650 1.02rem/1.5 var(--sans); }
.notebook details p, .notebook dl { margin: 0 0 1.05rem 1.25rem; }
.notebook dt a { display: inline-flex; align-items: center; min-height: 44px; color: var(--blue); text-underline-offset: .2em; font-weight: 650; }
.notebook dd { margin: 0 0 .55rem; }
.back-to-grid { margin-top: .6rem; }
.result { margin: 26px 0 0; padding: 18px clamp(15px,2vw,28px); background: #ffe39b; border-block: 3px double var(--blue); display: grid; align-items: center; grid-template-columns: minmax(0,1fr) auto; gap: 8px 20px; }
.result h2, .explanations h2, dialog h2 { font: 400 clamp(28px,3vw,40px)/1.16 var(--display); color: var(--blue); letter-spacing: -.045em; }
.result a { justify-self: start; font-weight: 650; padding: 9px 0; }
.stats { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.stats div { font-size: 12px; }
.stats strong { display: block; font: 600 21px/1.3 var(--mono); color: var(--blue); }
.explanations { margin-top: 38px; border-top: 3px double var(--blue); padding-top: 18px; }
.explanation-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0 32px; margin-top: 15px; }
.explanation { border-top: 1px dashed var(--rule); padding: 16px 2px; }
.explanation h3 { font: 700 19px/1.35 var(--sans); color: var(--blue); }
.explanation h3 span { display: inline-block; margin-right: 8px; font: 600 12px var(--mono); }
.explanation p { margin-top: 6px; font-size: 15px; }
.explanation .original-clue { font-style: italic; color: var(--muted); }
.explanation.reviewed-nudge { background: #ffedb9; border-inline-start: 3px solid var(--blue); padding-inline: 12px; }
.footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0 18px; border-top: 3px double var(--blue); margin-top: 28px; color: var(--muted); padding: 6px 0; font-size: 13px; }
.footer > span { font-family: var(--display); color: var(--blue); font-size: 17px; }
.footer nav { display: flex; flex-wrap: wrap; align-items: center; gap: 0 16px; }
.footer a { display: inline-flex; min-height: 44px; align-items: center; }
dialog { width: min(410px,calc(100% - 32px)); padding: 24px; border: 2px solid var(--blue); background: var(--paper); color: var(--ink); }
dialog::backdrop { background: #17284b91; }
dialog p { margin: 12px 0 20px; }
@media (hover:hover) {
  .site-nav a:hover { color: var(--butter); }
  .clue:not(.active):hover, .navigation button:hover, .actions button:not(.primary):hover { background: #f0e9d7; }
  .actions .primary:hover { background: #152b74; }
  .nudge-button:hover { text-decoration-thickness: 2px; }
}
@media (min-width:761px) and (max-width:950px) {
  .puzzle-layout { grid-template-columns: minmax(285px,.9fr) minmax(0,1.15fr); column-gap: 24px; }
  .clue { font-size: 14px; grid-template-columns: 1rem minmax(0,1fr); padding-inline: 5px; }
  .clue-columns { column-gap: 12px; }
}
@media (min-width:761px) and (max-height:800px) {
  .mast-inner { min-height: 52px; }
  .intro { padding-block: 12px; }
  .intro h1 { font-size: clamp(42px,4.5vw,62px); }
  .breakfast-print { max-width: 188px; }
  .puzzle-layout { grid-template-columns: minmax(270px,min(41%,345px)) minmax(0,1fr); margin-top: 21px; }
  .clue-strip { min-height: 63px; padding-block: 7px; }
  .board-mat { padding: 7px; }
}
@media (max-width:760px) {
  :root { --gutter: clamp(14px,4.4vw,24px); }
  .mast-inner { display: grid; grid-template-columns: minmax(0,1fr) auto; min-height: auto; gap: 0 9px; padding-top: 2px; }
  .brand { min-width: 0; margin: 0; gap: 7px; padding-block: 5px; font-size: 20px; min-height: 44px; }
  .brand img { width: 27px; height: 27px; }
  .language-picker { grid-column: 2; grid-row: 1; border: 0; padding: 0; }
  .language-picker select { max-width: min(41vw,156px); font-size: 12px; }
  .site-nav { grid-row: 2; grid-column: 1/-1; width: 100%; flex-wrap: wrap; gap: 0 12px; }
  .site-nav a { min-height: 44px; padding: 4px 1px; font-size: 13px; }
  .site-nav .mobile-index { display: inline-flex; gap: 3px; }
  .shell { max-width: 610px; }
  .intro { display: block; padding: 13px 0 14px; }
  .intro-copy { position: relative; }
  .puzzle-size { font-size: 10px; letter-spacing: .035em; gap: 6px; }
  .puzzle-size::before { width: 16px; height: 8px; background-size: 8px 8px; }
  .intro h1 { font-size: clamp(33px,7.8vw,47px); margin: 3px 0 6px; padding-right: 81px; }
  .intro-copy > p { font-size: 14px; }
  .breakfast-print { position: absolute; right: 0; top: 19px; width: clamp(76px,20vw,106px); }
  .puzzle-layout { grid-template-columns: minmax(0,1fr); margin-top: 18px; gap: 27px; }
  .board-column { width: min(100%,420px); justify-self: center; }
  .clue-strip { min-height: 61px; padding: 7px 10px; }
  .clue-ticket-number { font-size: 31px; }
  .active-clue { gap: 9px; }
  .active-clue p { font-size: 15px; }
  .clue-id { font-size: 10px; }
  .board-mat { margin-top: 6px; padding: 7px; }
  .cell input { font-size: 33px; }
  .navigation button { padding-inline: 5px; }
  .sheet-heading h2 { font-size: 30px; }
  .clue-columns { column-gap: 14px; }
  .clue { font-size: 15px; grid-template-columns: 1rem minmax(0,1fr); min-height: 52px; padding: 9px 5px; }
  .result { grid-template-columns: 1fr; }
  .explanation-grid { grid-template-columns: 1fr; }
}
@media (max-width:370px) {
  .brand { font-size: 17px; }
  .intro h1 { padding-right: 0; }
  .breakfast-print { display: none; }
  .clue-columns { grid-template-columns: 1fr; }
  .clue { min-height: 44px; }
}
@supports (grid-template-columns: subgrid) {
  @media (max-width:370px) {
    .clue-strip { grid-template-columns: auto minmax(0,1fr) auto; gap: 3px 7px; }
    .active-clue { display: grid; grid-column: 1/-1; grid-row: 1/span 2; grid-template-columns: subgrid; grid-template-rows: subgrid; gap: 3px 7px; }
    .clue-ticket-copy { display: contents; }
    .clue-ticket-number { grid-column: 1; grid-row: 1; font-size: 26px; }
    .clue-id { grid-column: 2; grid-row: 1; }
    .active-clue p { grid-column: 1/-1; grid-row: 2; margin: 0 0 3px; }
    .nudge-button { grid-column: 3; grid-row: 1; z-index: 1; }
    .nudge-text { grid-row: 3; }
  }
}
@media (forced-colors:active) {
  .clue.active, .cell.active { outline: 2px solid Highlight; outline-offset: -3px; }
  .cell.in-word { border: 1px dashed Highlight; }
  .grid, .block { forced-color-adjust: none; background: CanvasText; }
  .grid .cell { forced-color-adjust: auto; }
}

/* The guide and support pages read like the inside pages of the puzzle booklet. */
.prose {
  width: min(100%, 52rem);
  min-width: 0;
  margin-inline: auto;
  padding-block: clamp(1.75rem, 5vw, 4rem) clamp(2.5rem, 7vw, 5rem);
  color: var(--ink);
}
.prose h1, .prose h2 {
  color: var(--blue);
  font-family: var(--display);
  font-weight: 400;
  text-wrap: balance;
  overflow-wrap: anywhere;
}
.prose h1 { margin: 0 0 1.1rem; font-size: clamp(2.25rem, 5vw, 4.15rem); line-height: 1.1; letter-spacing: -.035em; }
.prose h2 { margin: 1.8rem 0 .65rem; font-size: clamp(1.35rem, 2.5vw, 1.85rem); line-height: 1.22; letter-spacing: -.02em; }
.prose p { max-width: 65ch; margin: .8rem 0; font-size: 1rem; line-height: 1.68; white-space: pre-line; overflow-wrap: anywhere; }
.prose > h1 + p { max-width: 62ch; margin-block: 0 1.5rem; font-size: clamp(1.04rem, 1.8vw, 1.2rem); line-height: 1.6; }
.prose a { color: var(--blue); font-weight: 650; text-underline-offset: .22em; text-decoration-thickness: .09em; }
.prose .back {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  max-width: 100%;
  padding-block: .55rem;
  gap: .55rem;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.prose .back::after { content: ""; flex: 0 0 .43em; width: .43em; height: .43em; border-block-start: 2px solid; border-inline-end: 2px solid; transform: rotate(45deg); }
:where(body[data-route="about.html"], body[data-route="privacy.html"], body[data-route="404.html"]) .prose { width: min(100%, 45rem); }
body[data-route="privacy.html"] .prose h2 { padding-block-start: 1.05rem; border-block-start: 1px solid var(--rule); }
body[data-route="privacy.html"] .prose > h1 + p { font-size: 1rem; line-height: 1.75; }
body[data-route="guide.html"] .prose > .back { margin-block-start: 1.1rem; }

.guide-section { padding-block: 1.15rem; border-block-end: 1px solid var(--rule); }
.guide-section h2 { margin: 0; }
.guide-section p { margin: .4rem 0; }
.guide-section:first-of-type {
  padding: clamp(1.05rem, 3.4vw, 2rem);
  margin-block: 1.6rem .45rem;
  background: var(--surface);
  border: 1px solid var(--blue);
  border-block-start: .32rem double var(--blue);
  box-shadow: .22rem .22rem 0 var(--butter);
}
.guide-section:first-of-type h2 { margin-block-end: 1.15rem; }
.crossing-example { display: grid; grid-template-columns: minmax(7rem, .36fr) minmax(0, 1fr); gap: clamp(.95rem, 3vw, 2rem); align-items: start; }
.example-grid { display: grid; width: 100%; max-width: 11.25rem; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2px; padding: 2px; background: var(--blue); color: var(--ink); }
.example-grid span, .example-grid i { display: grid; place-items: center; aspect-ratio: 1; position: relative; min-width: 0; }
.example-grid span { background: var(--surface); }
.example-grid i { background: var(--blue); }
.example-grid .shared { background: var(--butter); }
.example-grid small { position: absolute; inset-block-start: 1px; inset-inline-start: 3px; font: 700 .62rem/1.1 var(--mono); }
.example-grid b { font: 700 clamp(1.15rem, 3vw, 2rem)/1 var(--sans); visibility: hidden; }
.example-grid.revealed b { visibility: visible; }
.crossing-example p:first-child { margin-block-start: 0; }
.crossing-example [data-t="exampleAcross"], .crossing-example [data-t="exampleDown"] { color: var(--blue); font-weight: 700; line-height: 1.45; }
#example-toggle, #contact-submit { min-height: 44px; max-width: 100%; padding: .55rem .95rem; font: 700 1rem/1.35 var(--sans); overflow-wrap: anywhere; cursor: pointer; }
#example-toggle { margin-block-start: .45rem; border: 1.5px solid var(--blue); color: var(--blue); background: var(--surface); }
#example-toggle[aria-expanded="true"] { background: var(--word); }
#example-note { margin-block-start: .85rem; padding-inline-start: .75rem; border-inline-start: .2rem solid var(--blue); }
@media (min-width: 42rem) {
  .guide-section + .guide-section { display: grid; grid-template-columns: minmax(0, .6fr) minmax(0, 1fr); gap: 1.75rem; }
  .guide-section + .guide-section p { margin: 0; }
}
@media (max-width: 34rem) {
  .crossing-example { grid-template-columns: minmax(0, 1fr); }
  .example-grid { width: 8.75rem; }
}

body[data-route="contact.html"] .prose { width: min(100%, 42rem); }
#contact-form, #offline-contact { margin-block: 1.4rem .65rem; padding: clamp(1rem, 3.5vw, 1.8rem); border-block: 2px solid var(--blue); background: var(--surface); }
#contact-form { display: grid; grid-template-columns: minmax(0, 1fr); gap: .45rem; }
#contact-form[hidden], #offline-contact[hidden] { display: none; }
#contact-form label { color: var(--ink); font-weight: 700; }
#contact-form label:not(:first-child) { margin-block-start: .75rem; }
#contact-form :is(input, textarea) { width: 100%; min-width: 0; border: 1.5px solid var(--blue); border-radius: 2px; background: var(--paper); color: var(--ink); padding: .65rem .8rem; font: 1rem/1.5 var(--sans); }
#contact-form textarea { min-height: 8rem; resize: vertical; }
#contact-submit { justify-self: start; margin-block-start: .7rem; background: var(--blue); color: var(--surface); border: 2px solid var(--blue); }
#contact-submit:disabled { cursor: progress; }
#contact-status { margin: 0; font-weight: 650; }
#contact-status:not(:empty) { margin-block-start: .5rem; padding-inline-start: .7rem; border-inline-start: 3px solid var(--blue); }
#offline-contact > p:first-child { margin-block-start: 0; }
@media (hover: hover) {
  .prose a:hover { text-decoration-thickness: .15em; }
  #example-toggle:hover { background: var(--word); }
  #contact-submit:not(:disabled):hover { background: var(--ink); border-color: var(--ink); }
}
