/* Hallmark · pre-emit critique: P5 H5 E4 S5 R5 V4 */
/* Hallmark · genre: modern-minimal · macrostructure: Narrative Workflow · theme: Kilgore Yellow · enrichment: prize mark · nav: N1a · footer: Ft2 */
/* Audience: Kilgore community. Use: enter the giveaway. Tone: direct and lightly playful. */
@font-face {
  font-family: Geist;
  src: url("/geist.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: light;
  --font: Geist, system-ui, sans-serif;
  --paper: #f8f7f3;
  --panel: #fff;
  --ink: #1a1915;
  --muted: #5b5850;
  --line: #d9d6cc;
  --quiet: #eeece4;
  --art: #f6e7a6;
  --art-ink: #252114;
  --art-line: #c7af60;
  --white: #fff;
  --yellow: #f6df52;
  --yellow-hover: #f9e779;
  --button-ink: #1a1915;
  --success: #24613d;
  --success-bg: #e5f1e6;
  --focus: #835b00;
  --radius: 0.9rem;
  --gutter: clamp(1rem, 4.75vw, 4rem);
  --page: 76rem;
  --ease: 140ms ease;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --paper: #161612;
    --panel: #21211b;
    --ink: #f7f4e8;
    --muted: #c5c0b2;
    --line: #464238;
    --quiet: #302e25;
    --art: #3b321a;
    --art-ink: #f9e9ad;
    --art-line: #726332;
    --success: #a4dbb3;
    --success-bg: #263b2c;
    --focus: #f6df52;
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #161612;
  --panel: #21211b;
  --ink: #f7f4e8;
  --muted: #c5c0b2;
  --line: #464238;
  --quiet: #302e25;
  --art: #3b321a;
  --art-ink: #f9e9ad;
  --art-line: #726332;
  --success: #a4dbb3;
  --success-bg: #263b2c;
  --focus: #f6df52;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: clip; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1rem/1.55 var(--font);
}
[hidden] { display: none !important; }
img { display: block; max-inline-size: 100%; }
p, h1, h2, h3, ol, figure, dl { margin: 0; }
h1, h2, h3 { min-inline-size: 0; overflow-wrap: anywhere; line-height: 1; }
a { color: inherit; }
button, input { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; }

.shell { max-inline-size: var(--page); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: fixed; z-index: 1; inset: 0 auto auto 1rem; padding: 0.65rem; background: var(--panel); transform: translateY(-110%); }
.skip:focus { transform: translateY(0); }
.masthead {
  display: flex;
  min-block-size: 4.6rem;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
}
.brand, nav { display: flex; align-items: center; }
.brand { gap: 0.45rem; text-decoration: none; font-weight: 750; letter-spacing: -0.045em; white-space: nowrap; }
.brand-suffix { display: none; }
.brand img { border-radius: 0.55rem; background: var(--white); border: 1px solid var(--line); }
nav { gap: clamp(0.7rem, 3vw, 1.5rem); white-space: nowrap; }
nav a, .footer a { text-underline-offset: 4px; font-size: 0.875rem; }
nav a { text-decoration: none; }
nav a:hover, .footer a:hover { text-decoration: underline; }
.theme {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border-radius: 99rem;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--ink);
  padding: 0.45rem 0.7rem;
  min-block-size: 2.5rem;
  font-size: 0.8rem;
  font-weight: 600;
}
.theme:hover { background: var(--quiet); }
.theme-mark { inline-size: 0.75rem; block-size: 0.75rem; border: 1px solid currentColor; border-radius: 50%; box-shadow: inset 0.28rem 0 0 currentColor; }

.hero {
  display: grid;
  align-items: center;
  gap: clamp(1.8rem, 5vw, 4.5rem);
  border-block-start: 1px solid var(--line);
  padding-block: clamp(2.75rem, 6.7vw, 6.6rem) clamp(2.6rem, 6vw, 5rem);
}
.kicker {
  color: var(--muted);
  font-size: 0.77rem;
  font-weight: 720;
  text-transform: uppercase;
  letter-spacing: 0.11em;
}
h1 { margin-block: 0.66rem 1rem; font-size: clamp(2.65rem, 6.65vw, 6.15rem); font-weight: 790; letter-spacing: -0.08em; }
h1 span { display: block; }
.intro { font-size: clamp(1.02rem, 1.35vw, 1.2rem); max-inline-size: 39ch; color: var(--muted); }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  min-block-size: 3rem;
  padding: 0.68rem 1.1rem;
  border-radius: 0.5rem;
  border: 1px solid transparent;
  white-space: nowrap;
  text-decoration: none;
  font-weight: 690;
  transition: background var(--ease), transform var(--ease);
}
.hero .button { margin-block-start: 1.35rem; }
.primary { background: var(--yellow); color: var(--button-ink); }
.primary:hover { background: var(--yellow-hover); }
.button:active { transform: translateY(1px); }
.art {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-content: space-between;
  gap: 0.85rem;
  padding: clamp(0.85rem, 2.5vw, 1.45rem);
  background: var(--art);
  color: var(--art-ink);
  border: 1px solid var(--art-line);
  border-radius: 1.35rem;
}
.art-inner {
  display: grid;
  place-items: center;
  padding-block: clamp(1.2rem, 4vw, 3.1rem);
  min-inline-size: 0;
}
.art img {
  inline-size: min(74%, 15.5rem);
  block-size: auto;
  border: 1px solid var(--art-line);
  border-radius: clamp(1rem, 2.5vw, 2rem);
  background: var(--white);
}
.art figcaption {
  border-block-start: 1px solid var(--art-line);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.25rem 0.8rem;
  font-size: 0.85rem;
  padding-block-start: 0.75rem;
}

.section { border-block-start: 1px solid var(--line); padding-block: clamp(2.4rem, 6vw, 5rem); }
.entry, .rules { display: grid; gap: clamp(1.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4.4vw, 3.75rem); letter-spacing: -0.065em; font-weight: 760; }
.entry h2 { margin-block: 0.6rem 0.85rem; }
.entry-overview > p:not(.kicker) { max-inline-size: 30ch; color: var(--muted); }
.draw { margin-block-start: 1.5rem; max-inline-size: 21rem; }
.count { font-size: 1.25rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.count strong { font-size: 2.65rem; letter-spacing: -0.07em; line-height: 1; color: var(--ink); }
progress { display: block; inline-size: 100%; block-size: 0.5rem; margin-block: 0.75rem 0.6rem; accent-color: var(--focus); }
.draw > p:last-child { color: var(--muted); font-size: 0.87rem; }
.entry-panel {
  min-inline-size: 0;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(0.9rem, 3.5vw, 1.7rem);
}
.panel-heading { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.35rem 0.75rem; margin-block-end: 0.85rem; }
.panel-heading h3 { font-size: clamp(1.15rem, 3vw, 1.45rem); letter-spacing: -0.045em; }
#task-count { color: var(--muted); font-size: 0.85rem; font-variant-numeric: tabular-nums; }
.tasks { padding: 0; list-style: none; }
.tasks li { display: flex; align-items: center; min-block-size: 3.35rem; gap: 0.8rem; border-block-start: 1px solid var(--line); font-weight: 600; }
.task-number {
  display: grid;
  place-items: center;
  inline-size: 2rem;
  block-size: 2rem;
  border-radius: 0.35rem;
  background: var(--quiet);
  color: var(--muted);
  font-size: 0.82rem;
  font-variant-numeric: tabular-nums;
}
[data-state="done"] .task-number { color: var(--success); background: var(--success-bg); }
[data-state="next"] .task-number { color: var(--button-ink); background: var(--yellow); }
.task-state { margin-inline-start: auto; font-weight: 475; color: var(--muted); font-size: 0.85rem; }
[data-state="done"] .task-state { color: var(--success); }
.entry-panel form { border-block-start: 1px solid var(--line); padding-block-start: 1rem; }
.entry-panel input {
  display: block;
  inline-size: 100%;
  margin-block: 0.45rem 0.55rem;
  padding: 0.67rem 0.75rem;
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 0.5rem;
}
.entry-panel label { font-weight: 650; }
.note { color: var(--muted); font-size: 0.875rem; margin-block: 0.65rem 0; }
#entry-status:empty { display: none; }
#registration button { margin-block-start: 0.85rem; }
.rules dl > div { border-block-end: 1px solid var(--line); padding-block: 1rem; }
.rules dl > div:first-child { padding-block-start: 0; }
.rules dt { font-weight: 680; }
.rules dd { margin: 0.25rem 0 0; max-inline-size: 56ch; color: var(--muted); }
.prize-note { grid-column: 1 / -1; margin-block: 0; }
.footer { display: flex; justify-content: space-between; gap: 0.8rem; color: var(--muted); font-size: 0.875rem; padding-block: 1rem 1.5rem; }

@media (min-width: 29rem) {
  .brand-suffix { display: inline; margin-inline-start: -0.2rem; }
}
@media (min-width: 46rem) {
  .hero { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); }
  .entry, .rules { grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button { transition: none; }
  .button:active { transform: none; }
}
