@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/css/fonts/sourcesans3-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/css/fonts/sourcesans3-600-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/css/fonts/sourcesans3-700-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Barlow Condensed";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/css/fonts/barlowcondensed-700-normal.woff2") format("woff2");
}

:root {
  --room: #12100e;
  --chalk: #f3efe4;
  --chalk-dim: #c4b6a4;
  --lamp: #e8b86a;
  --need: #e09060;
  --grass: #2a7534;
  --dirt: #c9a56d;
  --rule: rgba(243, 239, 228, 0.14);
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --face: "Source Sans 3", "Segoe UI", sans-serif;
  --mark: "Barlow Condensed", "Arial Narrow", sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  color-scheme: dark;
  scrollbar-color: #3a3228 var(--room);
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--room);
  color: var(--chalk);
  font-family: var(--face);
  font-size: 17px;
  line-height: 1.45;
}

::selection {
  background: var(--lamp);
  color: var(--room);
}

a {
  color: var(--lamp);
  text-underline-offset: 0.16em;
}
a:hover { color: var(--chalk); }
a:focus-visible {
  outline: 2px solid var(--lamp);
  outline-offset: 3px;
}

.room {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.plate {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 1.5rem;
  background: var(--room);
  box-shadow: 0 8px 0 var(--grass), 0 10px 0 var(--dirt);
  position: relative;
  z-index: 2;
}

.mark {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--chalk);
  line-height: 0.86;
}
.mark-name,
.mark-sport {
  font-family: var(--mark);
  font-weight: 700;
  text-transform: uppercase;
}
.mark-name { font-size: 1.7rem; letter-spacing: 0.06em; }
.mark-sport { font-size: 0.72rem; letter-spacing: 0.26em; color: var(--lamp); }

.plate-nav {
  display: flex;
  gap: 1.1rem;
  font-weight: 600;
}
.plate-nav a {
  color: var(--chalk);
  text-decoration: none;
}
.plate-nav a:hover { color: var(--lamp); }

/* The opening: grows into leftover viewport after plate + desk (flex: 1 / 58vh basis). */
.opening {
  position: relative;
  flex: 1 1 58vh;
  min-height: 20rem;
  margin-top: 10px;
  background: #0b0a08;
}

.opening img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 46%;
}

/* Moneyball desk: the work surface in the same dark room */
.desk {
  background: var(--room);
  border-top: 1px solid var(--rule);
  padding: 1.35rem 1.5rem 2.5rem;
}

.desk-in { max-width: 64rem; margin: 0 auto; }

.box-msg { margin: 0 0 1rem; }
.box-msg .alert {
  display: inline-block;
  padding: 0.35rem 0.6rem;
  border: 1px solid var(--rule);
  color: var(--chalk);
}

.slip {
  padding: 1rem 0 1.1rem;
  border-bottom: 1px solid var(--rule);
}

.slip-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.5rem;
}

.slip h1 {
  margin: 0;
  font-size: clamp(1.55rem, 3vw, 2.05rem);
  letter-spacing: -0.02em;
  line-height: 1.1;
  white-space: nowrap;
}
.slip h1 a {
  color: var(--chalk);
  text-decoration: none;
}
.slip h1 a:hover { color: var(--lamp); }
.slip .abbr {
  margin-left: 0.4rem;
  font-weight: 400;
  color: var(--chalk-dim);
}

.record {
  margin: 0;
  font-variant-numeric: tabular-nums lining-nums;
  font-size: 2.15rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 0.95;
  white-space: nowrap;
}

.league {
  margin: 0.3rem 0 0;
  color: var(--chalk-dim);
}

.need {
  margin: 0.65rem 0 0;
  color: var(--need);
  font-weight: 600;
}
.need a { color: var(--need); }

.games {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem 1.5rem;
  margin: 0.85rem 0 0;
}
.games h2 {
  margin: 0 0 0.15rem;
  font-size: 0.72rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--chalk-dim);
}
.games p { margin: 0; }
.join-game { color: var(--need); font-weight: 700; }

.jobs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1.05rem;
  margin: 0.85rem 0 0;
}
.jobs a {
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(232, 184, 106, 0.45);
  padding-bottom: 0.04rem;
  transition: color 160ms ease, border-color 160ms ease;
}
.jobs a:hover { border-bottom-color: var(--chalk); }
.jobs a:active {
  transform: scale(0.97);
  transition: transform 140ms var(--ease-out);
}

.wait {
  margin: 1.1rem 0 0;
  color: var(--chalk-dim);
}
.wait summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--chalk);
}
.wait label {
  display: block;
  font-weight: 600;
  margin: 0.75rem 0 0.25rem;
  color: var(--chalk);
}
.wait input[type="text"],
.wait input[type="email"],
.wait textarea,
.wait select {
  font-family: var(--face);
  font-size: 1rem;
  color: var(--chalk);
  background: #1c1814;
  border: 1px solid rgba(243, 239, 228, 0.24);
  border-radius: 0;
  padding: 0.4rem 0.5rem;
  width: min(100%, 28rem);
}
.wait input[type="submit"],
.wait button {
  font-family: var(--face);
  font-weight: 600;
  margin-top: 0.85rem;
  padding: 0.55rem 0.9rem;
  border: 1px solid var(--chalk);
  background: var(--chalk);
  color: var(--room);
  cursor: pointer;
}
.wait input[type="submit"]:active,
.wait button:active { transform: scale(0.97); }
.wait .apply-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

[hidden] { display: none !important; }

.pitch h1 {
  margin: 0;
  font-size: clamp(1.55rem, 3vw, 2.05rem);
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.pitch .lede {
  margin: 0.55rem 0 0;
  max-width: 46rem;
  color: var(--chalk-dim);
  text-wrap: pretty;
}
.pitch-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 1.2rem 0 0;
}

.gate {
  display: inline-block;
  font-family: var(--face);
  font-weight: 600;
  text-decoration: none;
  border: 1px solid var(--chalk);
  background: transparent;
  color: var(--chalk);
  padding: 0.55rem 0.95rem;
  transition: color 160ms var(--ease-out), background-color 160ms var(--ease-out), border-color 160ms var(--ease-out);
}
.gate:hover { color: var(--lamp); border-color: var(--lamp); }
.gate:active { transform: scale(0.97); }
.gate-go {
  background: var(--chalk);
  color: var(--room);
  border-color: var(--chalk);
}
.gate-go:hover {
  background: var(--lamp);
  border-color: var(--lamp);
  color: var(--room);
}

.notes {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 0 3.5rem;
  margin: 1.75rem 0 0;
  padding-top: 1.35rem;
  border-top: 1px solid var(--rule);
}
.notes h2 {
  margin: 0 0 0.45rem;
  font-size: 0.72rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--chalk-dim);
}
.notes ul {
  margin: 0;
  padding-left: 1.15rem;
}
.notes li { margin-bottom: 0.4rem; }
.notes p {
  margin: 0;
  color: var(--chalk-dim);
}

@media (max-width: 700px) {
  .opening { min-height: 16.5rem; }
  .slip h1 { white-space: nowrap; }
  .slip-top { flex-wrap: wrap; gap: 0.4rem 1rem; }
  .games,
  .wait .apply-row,
  .notes { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .jobs a:active,
  .wait input[type="submit"]:active,
  .wait button:active,
  .gate:active { transform: none; }
}
