/* Hallmark · shape: Marquee Hero · genre: atmospheric · theme: Darkroom (deal 1/3, seed mortal-kombat-af8f·76e8e70f·2026-10-29·r0) · job: attend · draw: 76e8e70f
 * hero: Poster · nav: edge-aligned · footer: colophon · imagery: photograph, library 1, mono · signature: the bracket that fills itself · darkroom: amber
 * axes: dark/display-condensed/chromatic-amber · posture: restrained · contrast: pass · fold: pass · v2.0.0 */
/* Hallmark · pre-emit critique: P5 H5 E4 S5 R4 V5 · weakest: E, the bracket had to stay readable at 375px, so the board is one column on phones and the champion sits under the final */
/* Hallmark · hero-review: none, the page was built whole · finish-review: in-thread · 4 findings · 3 resolved (section rhythm mixed, fill-slots set in the body face, viewer fields read-only instead of disabled) · 1 open by design: the hero photograph is a library stand-in until the evening's own photo arrives */
@import url("./fonts/fonts.css");
@import url("./tokens.css");
@import url("./base.css");

:root { --nav-h: 72px; --rule: 1px; }

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: var(--z-sticky-nav);
  height: var(--nav-h); display: flex; align-items: center;
  border-bottom: var(--rule) solid transparent;
  transition: background-color var(--dur-short) var(--ease-out), border-color var(--dur-short) var(--ease-out);
}
.nav.is-stuck { background: var(--color-paper); border-bottom-color: var(--color-rule); }
.nav__in { display: flex; align-items: center; justify-content: space-between; gap: var(--space-xl); }
.wordmark {
  font-family: var(--font-display); font-weight: 400; font-size: var(--text-lg);
  text-transform: uppercase; letter-spacing: 0.04em; color: var(--color-ink);
  text-decoration: none; display: inline-flex; gap: var(--space-2xs); white-space: nowrap;
}
.wordmark__slash { color: var(--color-muted); }
.nav__links { display: flex; align-items: center; gap: var(--space-lg); }
.nav__links a {
  font-size: var(--text-sm); color: var(--color-ink-2); white-space: nowrap;
  text-decoration: underline; text-decoration-color: color-mix(in oklab, var(--color-rule) 100%, transparent);
  text-decoration-thickness: var(--rule); text-underline-offset: 0.22em;
  transition: color var(--dur-short) var(--ease-out), text-decoration-color var(--dur-short) var(--ease-out);
}
.nav__links a:hover { color: var(--color-ink); text-decoration-color: var(--color-accent); }

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: 100svh; display: grid; align-items: end;
  overflow: clip;
  padding-top: calc(var(--nav-h) + var(--space-3xl));
  padding-bottom: var(--space-3xl);
}
.hero__media { position: absolute; inset: 0; z-index: 0; margin: 0; }
.hero__media > img { filter: grayscale(1) contrast(1.08) brightness(1.16); }
.hero__scrim {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background-image:
    linear-gradient(to top, var(--color-paper) 0%, color-mix(in oklab, var(--color-paper) 90%, transparent) 30%, color-mix(in oklab, var(--color-paper) 20%, transparent) 64%, color-mix(in oklab, var(--color-paper) 52%, transparent) 100%),
    linear-gradient(to bottom, color-mix(in oklab, var(--color-paper) 82%, transparent), transparent);
  background-size: 100% 100%, 100% 200px;
  background-repeat: no-repeat;
}
.hero__in { position: relative; z-index: 2; display: grid; gap: var(--space-lg); align-content: end; }
.hero__head { text-transform: uppercase; display: grid; gap: var(--space-2xs); }
.hero__brand { display: block; font-size: clamp(3.1rem, 9.2vw, 8.25rem); line-height: 1.02; letter-spacing: -0.01em; }
.hero__sub { display: block; font-size: clamp(1.5rem, 3.4vw, 3rem); line-height: 1.05; letter-spacing: 0.06em; color: var(--color-ink-2); }
.hero__lead { color: var(--color-ink-2); max-width: 42ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--space-sm); }

/* ---------- controls ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding-inline: var(--space-lg);
  border: var(--rule) solid var(--color-ink); background: transparent; color: var(--color-ink);
  font-family: var(--font-display); font-weight: 400; font-size: var(--text-lg);
  text-transform: uppercase; letter-spacing: 0.02em; line-height: 1; text-decoration: none; white-space: nowrap;
  cursor: pointer;
  transition: background-color var(--dur-short) var(--ease-out), color var(--dur-short) var(--ease-out), border-color var(--dur-short) var(--ease-out);
}
.btn--primary { background: var(--color-accent); border-color: var(--color-accent); color: var(--color-accent-ink); }
.btn--primary:hover { background: var(--color-accent-deep); border-color: var(--color-accent-deep); color: var(--color-ink); }
.btn--quiet:hover { background: var(--color-paper-2); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; }

/* ---------- the sheet ---------- */
.sheet { padding-block: var(--section-gap-s); }
.sheet__list { margin: 0; border-top: var(--rule) solid var(--color-rule); }
.sheet__row {
  display: grid; grid-template-columns: 3fr 9fr; gap: var(--gap-columns); align-items: baseline;
  padding-block: var(--space-lg); border-bottom: var(--rule) solid var(--color-rule);
}
.sheet__row dt { font-size: var(--text-sm); color: var(--color-muted); }
.sheet__row dd {
  margin: 0; text-align: right; text-transform: uppercase;
  font-family: var(--font-display); font-weight: 200; letter-spacing: var(--tracking-display);
  font-size: clamp(1.35rem, 2.1vw, 2.1rem); line-height: 1.06; color: var(--color-ink);
}
.fill {
  padding: 0 var(--space-2xs); border: var(--rule) dashed color-mix(in oklab, var(--color-muted) 70%, transparent);
  color: var(--color-muted); box-decoration-break: clone; -webkit-box-decoration-break: clone;
  text-transform: none; font-family: var(--font-body); font-weight: 400; font-size: var(--text-md); letter-spacing: 0;
}
.fill:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 1px; }
.sheet__row dd .fill {
  padding: 0 var(--space-2xs); border: var(--rule) dashed color-mix(in oklab, var(--color-muted) 70%, transparent);
  font-family: var(--font-body); font-weight: 400; font-size: var(--text-md); letter-spacing: 0;
  text-transform: none; color: var(--color-muted);
}
.sheet__row dd .fill.is-set {
  padding: 0; border-color: transparent; color: inherit;
  font: inherit; text-transform: inherit; letter-spacing: inherit;
}

/* ---------- the bracket ---------- */
.bracket { padding-block: var(--section-gap); background: var(--color-paper-2); }
.grained { position: relative; isolation: isolate; }
.grained::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: var(--grain);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 9 -4'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E") 0 0 / 200px 200px;
}
.bracket__head { display: grid; grid-template-columns: 6fr 5fr; gap: var(--space-2xl); align-items: end; margin-bottom: var(--space-2xl); }
.bracket__side { display: grid; gap: var(--space-2xs); align-content: end; }
.bracket__note { min-height: 1lh; font-size: var(--text-sm); color: var(--color-muted); }
.bracket__note.is-alert { color: var(--color-error); }
.bracket__state { margin-top: var(--space-sm); font-size: var(--text-sm); color: var(--color-accent); }
.bracket__hint { color: var(--color-ink-2); max-width: 46ch; }
.bracket__noscript { margin-top: var(--space-lg); font-size: var(--text-sm); color: var(--color-muted); }

.board { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap-columns); min-height: 560px; }
.round { display: flex; flex-direction: column; min-width: 0; }
.round__title {
  font-family: var(--font-body); font-weight: 400; font-size: var(--text-sm); line-height: 1.3;
  color: var(--color-muted); text-transform: none; letter-spacing: 0; margin-bottom: var(--space-md);
}
.round__matches { display: flex; flex-direction: column; justify-content: space-around; gap: var(--space-lg); flex: 1; }

.match {
  display: grid; min-height: 96px;
  border: var(--rule) solid var(--color-rule); background: transparent;
}
.match__row { display: grid; grid-template-columns: minmax(0, 1fr) 44px; align-items: center; gap: var(--space-xs); padding: var(--space-3xs) var(--space-sm); }
.match__name {
  width: 100%; min-width: 0; height: 44px; padding-inline: var(--space-xs);
  border: 0; border-bottom: var(--rule) solid var(--color-muted); background: transparent; color: var(--color-ink);
  font-family: var(--font-display); font-weight: 400; font-size: var(--text-lg); line-height: 1;
  text-transform: uppercase; letter-spacing: 0.01em; text-overflow: ellipsis;
}
.match__name::placeholder { color: var(--color-muted); opacity: 1; }
.match__name:read-only { color: var(--color-ink-2); }
.match__name:read-only:placeholder-shown { color: var(--color-muted); }
.match__name:focus-visible { outline: 2px solid var(--color-focus); outline-offset: -2px; }
.match__score {
  width: 44px; height: 44px; padding: 0; text-align: center;
  border: 0; border-bottom: var(--rule) solid var(--color-muted); background: transparent;
  color: var(--color-ink-2); font-family: var(--font-display); font-weight: 400; font-size: var(--text-lg);
  font-variant-numeric: tabular-nums; transition: border-color var(--dur-short) var(--ease-out), color var(--dur-short) var(--ease-out);
}
.match__score:hover { border-bottom-color: var(--color-ink-2); }
.match__score:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.match__score:disabled { opacity: 0.55; cursor: not-allowed; }
.match.is-decided .is-loser .match__name { color: var(--color-muted); }
.match.is-decided .is-winner .match__score { color: var(--color-accent); border-bottom-color: var(--color-accent); }

.champ { display: flex; flex-direction: column; justify-content: center; gap: var(--space-sm); padding-left: var(--space-lg); border-left: var(--rule) solid var(--color-rule); }
.champ__label { font-size: var(--text-sm); color: var(--color-muted); }
.champ__name {
  font-family: var(--font-display); font-weight: 200; text-transform: uppercase; line-height: 1.02;
  letter-spacing: var(--tracking-display); font-size: clamp(1.6rem, 2.6vw, 2.75rem);
  color: var(--color-muted); overflow-wrap: break-word;
}
.champ__name.is-set { color: var(--color-accent); }

.third {
  display: grid; grid-template-columns: 4fr 5fr 3fr; gap: var(--gap-columns); align-items: start;
  margin-top: var(--space-2xl); padding-top: var(--space-lg); border-top: var(--rule) solid var(--color-rule);
}
.third__line { margin-top: var(--space-xs); font-size: var(--text-sm); color: var(--color-muted); max-width: 32ch; }
.third__match { max-width: 340px; }
.linkbtn {
  justify-self: end; align-self: end; min-height: 44px; display: inline-flex; align-items: center;
  padding: var(--space-2xs) 0;
  border: 0; background: none; color: var(--color-muted); cursor: pointer;
  font-size: var(--text-sm); text-decoration: underline; text-underline-offset: 0.22em;
  text-decoration-thickness: var(--rule); text-decoration-color: var(--color-rule);
  transition: color var(--dur-short) var(--ease-out);
}
.linkbtn:hover { color: var(--color-ink); }
.linkbtn.is-armed { color: var(--color-accent); }

/* ---------- rules ---------- */
.rules { padding-block: var(--section-gap-l); }
.rules__head { display: grid; grid-template-columns: 6fr 5fr; gap: var(--space-2xl); align-items: end; margin-bottom: var(--space-2xl); }
.rules__intro { color: var(--color-ink-2); }
.rules__list { margin: 0; padding: 0; list-style: none; border-top: var(--rule) solid var(--color-rule); }
.rules__row {
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap-columns); align-items: baseline;
  padding-block: var(--space-xl); border-bottom: var(--rule) solid var(--color-rule);
}
.rules__row h3 { font-size: var(--text-xl); }
.rules__row p { color: var(--color-ink-2); max-width: 52ch; }

/* ---------- close ---------- */
.close { padding-block: var(--section-gap-s); background: var(--color-paper-2); }
.close__in { display: grid; grid-template-columns: 8fr 3fr; gap: var(--space-2xl); align-items: end; }
.close__statement { font-size: var(--text-section); font-weight: 200; text-transform: uppercase; max-width: 18ch; line-height: 1.02; }
.close__action { justify-self: end; white-space: nowrap; font-size: var(--text-lg); color: var(--color-ink); text-decoration-color: var(--color-accent); text-underline-offset: 0.25em; }

/* ---------- footer ---------- */
.foot { padding-block: var(--space-3xl); border-top: var(--rule) solid var(--color-rule); }
.foot__in { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--space-xl) var(--gap-columns); }
.foot__brand { grid-column: 1 / span 5; display: grid; gap: var(--space-sm); align-content: start; }
.foot__line { font-size: var(--text-sm); color: var(--color-muted); }
.foot__links { grid-column: 7 / span 3; display: flex; flex-direction: column; gap: var(--space-xs); }
.foot__links a { font-size: var(--text-md); color: var(--color-ink-2); text-decoration-color: var(--color-rule); text-underline-offset: 0.2em; }
.foot__links a:hover { color: var(--color-ink); text-decoration-color: var(--color-accent); }
.foot__credits { grid-column: 10 / span 3; font-size: var(--text-sm); color: var(--color-muted); }
.foot__credits a { color: var(--color-muted); text-decoration-color: var(--color-rule); }
.foot__credits a:hover { color: var(--color-ink); }
.foot__legal { grid-column: 1 / span 12; margin-top: var(--space-xl); padding-top: var(--space-lg); border-top: var(--rule) solid var(--color-rule); font-size: var(--text-sm); color: var(--color-muted); }

/* ---------- narrow ---------- */
@media (max-width: 60rem) {
  .bracket__head, .rules__head, .close__in { grid-template-columns: minmax(0, 1fr); gap: var(--space-md); }
  .board { grid-template-columns: minmax(0, 1fr); min-height: 0; gap: var(--space-2xl); }
  .round__matches { gap: var(--space-sm); }
  .champ { padding-left: 0; border-left: 0; padding-top: var(--space-lg); border-top: var(--rule) solid var(--color-rule); }
  .third { grid-template-columns: minmax(0, 1fr); }
  .third__match { max-width: none; }
  .linkbtn { justify-self: start; }
  .sheet__row { grid-template-columns: minmax(0, 1fr); gap: var(--space-xs); }
  .sheet__row dd { text-align: left; }
  .rules__row { grid-template-columns: minmax(0, 1fr); gap: var(--space-xs); }
  .close__action { justify-self: start; }
  .foot__in { grid-template-columns: minmax(0, 1fr); }
  .foot__brand, .foot__links, .foot__credits, .foot__legal { grid-column: 1 / -1; }
  .nav__links { gap: var(--space-md); }
  .nav__links a { font-size: var(--text-md); }
  .hero__media img { object-position: 52% 50%; }
}
@media (max-width: 40rem) {
  .nav__links .long { display: none; }
  .hero { padding-bottom: var(--space-2xl); }
}
