@font-face {
  font-family: Unbounded;
  src: url("/unbounded-800.ttf") format("truetype");
  font-weight: 800;
  font-display: swap;
}
:root {
  --ink: #18202b;
  --paper: #f5f6f2;
  --blue: #243ddb;
  --orange: #ff9261;
  --muted: #515966;
  --line: #c2c6cc;
  --display: Unbounded, "Arial Black", sans-serif;
  color: var(--ink);
  background: var(--paper);
  font: 16px/1.45 Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}
* { box-sizing: border-box; }
body, h1, h2, h3, p, ol { margin: 0; }
button, input, textarea { font: inherit; color: inherit; }
button, a { touch-action: manipulation; }
button { cursor: pointer; }
button:disabled { opacity: .65; cursor: wait; }
a { color: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid currentColor;
  outline-offset: 4px;
}
.wrap { width: min(90%, 1440px); margin-inline: auto; }
.masthead-inner, nav, .brand, footer { display: flex; align-items: center; }
.masthead-inner { min-height: 72px; justify-content: space-between; }
.brand { gap: 15px; text-decoration: none; }
.wordmark {
  font: 800 2.35rem/.86 var(--display);
  letter-spacing: -.12em;
  transform: skewX(-13deg);
  text-transform: uppercase;
}
.club { padding: 1px 0 1px 13px; border-left: 1px solid var(--line); color: var(--muted); font-size: .9rem; }
nav { gap: 26px; font-size: .9rem; font-weight: 600; }
.navrule { text-decoration: none; }
.navrule:hover, .quiet:hover { text-decoration: underline; }
.account, .secondary {
  background: transparent;
  border: 1px solid #959ca6;
  border-radius: 6px;
  padding: 9px 16px;
  font-weight: 600;
}
.account:hover, .secondary:hover { background: #e4e7e2; }
.poster { background: var(--blue); color: white; overflow: hidden; }
.poster-inner {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: 51% 49%;
  grid-template-rows: auto auto auto;
  align-content: center;
  min-height: clamp(470px, 40vw, 630px);
  padding-block: clamp(32px, 4vw, 68px);
}
.season, h1, .registration { grid-column: 1; position: relative; }
.season {
  display: flex;
  align-items: center;
  gap: .75rem;
  font-size: .94rem;
  font-weight: 620;
  margin-bottom: clamp(19px, 1.8vw, 28px);
}
.season::before { content: ""; width: 2rem; height: 3px; background: var(--orange); transform: skewX(-20deg); }
h1 {
  font: 800 clamp(4.3rem, 7.7vw, 8.1rem)/.94 var(--display);
  text-transform: uppercase;
  letter-spacing: -.063em;
  width: fit-content;
  transform: skewX(-8deg);
  transform-origin: center;
  margin-left: .055em;
}
.cassette {
  grid-column: 2;
  grid-row: 1 / 4;
  align-self: center;
  justify-self: center;
  width: 118%;
  max-width: 910px;
  display: block;
  z-index: -1;
  pointer-events: none;
}
.registration { margin-top: clamp(21px, 2.1vw, 35px); }
.lead { max-width: 37ch; text-wrap: pretty; color: #f0f2ff; line-height: 1.4; font-size: clamp(1rem, 1.35vw, 1.22rem); }
.primary {
  border: 0;
  border-radius: 6px;
  background: var(--orange);
  color: #211d22;
  font-weight: 740;
  line-height: 1.25;
  padding: 14px 20px;
}
.primary:hover { background: #ffad87; }
.primary:active, .account:active, .secondary:active { transform: translateY(1px); }
.join { margin-top: 23px; min-height: 48px; }
.join:focus-visible { outline-color: white; }
.status { margin-top: 10px; font-size: .83rem; color: #e3e7ff; }
.rules { display: grid; grid-template-columns: 41% 59%; align-items: start; padding-block: clamp(36px, 5vw, 78px); scroll-margin: 24px; }
.rules h2, dialog h2 { font: 800 clamp(1.55rem, 2.65vw, 2.9rem)/1.12 var(--display); letter-spacing: -.055em; }
.rules h2 { max-width: 10ch; }
.steps { counter-reset: step; list-style: none; padding: 0; }
.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 13px;
  padding-block: 18px;
  border-top: 1px solid var(--line);
}
.steps li:first-child { padding-top: 2px; border-top: 0; }
.steps li:last-child { padding-bottom: 0; }
.steps li::before { content: counter(step, decimal-leading-zero); color: var(--blue); font-size: .91rem; font-weight: 750; font-variant-numeric: tabular-nums; padding-top: 4px; }
.steps h3 { font-size: clamp(1.1rem, 1.55vw, 1.45rem); letter-spacing: -.035em; line-height: 1.27; }
.steps p { margin-top: 4px; max-width: 55ch; color: var(--muted); }
footer { justify-content: space-between; gap: 16px; border-top: 1px solid var(--line); padding-block: 19px; color: var(--muted); font-size: .85rem; }
dialog {
  width: min(488px, calc(100% - 24px));
  max-height: 92dvh;
  padding: 0;
  color: var(--ink);
  background: var(--paper);
  border: 0;
  border-top: 6px solid var(--blue);
  border-radius: 8px;
}
dialog::backdrop { background: rgb(16 22 46 / 68%); }
.dialog-shell { position: relative; padding: clamp(20px, 4vw, 34px); }
dialog h2 { font-size: clamp(1.45rem, 3vw, 2.05rem); margin: 8px 32px 24px 0; overflow-wrap: anywhere; }
#close { position: absolute; right: 8px; top: 7px; border: 0; background: none; width: 42px; height: 42px; font-size: 1.8rem; line-height: 1; }
#close:hover { color: var(--blue); }
#panel, form, label, .letter { display: grid; }
#panel, form { gap: 16px; }
#panel p { white-space: pre-line; overflow-wrap: anywhere; }
label { gap: 6px; font-weight: 650; }
input, textarea { width: 100%; min-width: 0; padding: 11px 13px; border: 1px solid #9098a4; border-radius: 5px; background: #fff; font-weight: 400; }
textarea { min-height: 94px; resize: vertical; }
.actions { display: flex; flex-wrap: wrap; gap: 9px; }
.quiet { justify-self: start; background: none; border: 0; padding: 6px 0; text-decoration: underline; }
.note, .quiet { color: var(--muted); font-size: .93rem; }
.letter { border-left: 4px solid var(--blue); padding: 14px 17px; background: #e7eaf7; gap: 6px; overflow-wrap: anywhere; }
.roster { margin: 0; padding-left: 22px; overflow-wrap: anywhere; }
.roster:empty { display: none; }
#feedback:not(:empty) { margin-top: 15px; color: #702b18; font-weight: 650; }
@media (max-width: 760px) {
  .masthead-inner { min-height: 60px; }
  .wordmark { font-size: 1.85rem; }
  .brand { gap: 11px; }
  .club { padding-left: 10px; }
  nav { gap: 14px; }
  .poster-inner { grid-template-columns: 55% 45%; min-height: 390px; }
  h1 { font-size: clamp(3.2rem, 8vw, 4.25rem); }
  .cassette { width: 125%; }
  .rules { grid-template-columns: 33% 67%; }
  .steps li { grid-template-columns: 28px 1fr; gap: 9px; }
}
@media (max-width: 560px) {
  .navrule { display: none; }
  .account { min-height: 42px; }
  .poster-inner { grid-template-columns: minmax(0,1fr); grid-template-rows: auto auto auto auto; padding-block: 25px 28px; }
  .season { margin-bottom: 14px; font-size: .84rem; }
  h1 { font-size: clamp(3rem, 12.3vw, 4.4rem); }
  .cassette { grid-column: 1; grid-row: 3; width: min(94%, 345px); margin: -13px -4% -16px 0; justify-self: end; }
  .registration { grid-row: 4; margin: 0; }
  .lead { max-width: 33ch; }
  .join { margin-top: 17px; }
  .rules { grid-template-columns: 1fr; gap: 24px; }
  .rules h2 { max-width: none; }
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  button { transition: background-color .13s ease, transform .13s ease; }
}
