:root {
  --ink: #07130f;
  --ink-soft: #10231b;
  --paper: #f1f0e9;
  --paper-dim: #d7d8ce;
  --green: #b8ff2c;
  --evergreen: #195f4c;
  --rust: #cf422e;
  --line: rgba(241, 240, 233, 0.18);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--paper);
  background:
    radial-gradient(circle at 86% 5%, rgba(25, 95, 76, 0.34), transparent 32rem),
    var(--ink);
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  min-width: 320px;
}

button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
.grain {
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0.08;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.7'/%3E%3C/svg%3E");
}

.section-shell, .site-header {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark {
  background: var(--green);
  color: var(--ink);
  padding: 6px 8px 5px;
  font: 900 22px/0.9 "Barlow Condensed", sans-serif;
  transform: rotate(-2deg);
}
.brand-copy { font: 800 13px/0.82 "Barlow Condensed", sans-serif; letter-spacing: 0.08em; }
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--paper-dim);
  padding: 8px 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.status-pill span { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(184, 255, 44, 0.12); }

.hero {
  min-height: 640px;
  display: grid;
  grid-template-columns: 1.45fr 0.7fr;
  gap: clamp(34px, 7vw, 100px);
  align-items: center;
  padding: clamp(70px, 10vw, 128px) 0;
}
.eyebrow {
  margin: 0 0 12px;
  color: var(--green);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
h1, h2, h3, p { margin-top: 0; }
h1, h2, .root-card h3, .next-window h3 {
  font-family: "Barlow Condensed", sans-serif;
  text-transform: uppercase;
}
h1 {
  margin-bottom: 25px;
  font-size: clamp(64px, 10vw, 126px);
  line-height: 0.77;
  letter-spacing: -0.035em;
  font-weight: 900;
}
h1 em { color: var(--green); font-style: italic; }
.hero-deck { max-width: 680px; color: var(--paper-dim); font-size: clamp(16px, 1.7vw, 21px); line-height: 1.55; }
.hero-actions { display: flex; gap: 22px; align-items: center; margin-top: 34px; flex-wrap: wrap; }
.primary-action {
  display: inline-flex;
  background: var(--green);
  color: var(--ink);
  padding: 14px 18px;
  text-decoration: none;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transition: transform 160ms ease, box-shadow 160ms ease;
}
.primary-action:hover { transform: translateY(-2px) rotate(-1deg); box-shadow: 5px 5px 0 var(--rust); }
.text-action { color: var(--paper-dim); font-size: 13px; font-weight: 700; text-decoration-color: rgba(241,240,233,.3); text-underline-offset: 5px; }

.cutline-card { background: var(--paper); color: var(--ink); padding: 18px; transform: rotate(1.2deg); box-shadow: 13px 13px 0 rgba(184,255,44,.12); }
.cutline-label { padding-bottom: 14px; border-bottom: 2px solid var(--ink); font: 900 16px "Barlow Condensed", sans-serif; letter-spacing: .12em; }
.line-team { display: grid; grid-template-columns: 24px 31px 1fr auto; gap: 10px; align-items: center; padding: 12px 5px; border-bottom: 1px solid rgba(7,19,15,.14); }
.line-team.denver-row { background: rgba(184,255,44,.48); margin-inline: -8px; padding-inline: 13px; border-bottom: 0; }
.rank { color: #65716b; font-size: 12px; font-weight: 800; }
.team-dot { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; color: white; font: 900 15px "Barlow Condensed", sans-serif; }
.team-dot.sea { background: #18354b; }.team-dot.acfc { background: #cf422e; }.team-dot.den { background: #195f4c; }.team-dot.orl { background: #5f2578; }
.team-name { font-weight: 700; font-size: 14px; }.line-team strong { font: 900 24px "Barlow Condensed", sans-serif; }
.cutline-rule { display: flex; align-items: center; gap: 9px; margin: 7px -7px; color: var(--rust); font: 900 11px "Barlow Condensed", sans-serif; letter-spacing: .11em; }
.cutline-rule::before, .cutline-rule::after { content: ""; height: 2px; background: var(--rust); flex: 1; }
.microcopy { color: #6e776f; font-size: 10px; margin: 13px 0 0; }

.weekend { padding: 90px 0; border-top: 1px solid var(--line); }
.section-heading { max-width: 720px; margin-bottom: 36px; }
.section-heading h2 { margin-bottom: 8px; font-size: clamp(47px, 7vw, 76px); line-height: .88; letter-spacing: -.025em; }
.section-heading > p:last-child { color: var(--paper-dim); line-height: 1.5; }
.rooting-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.root-card { min-height: 285px; display: flex; flex-direction: column; padding: 22px; border: 1px solid var(--line); background: rgba(16,35,27,.58); transition: transform 180ms ease, border-color 180ms ease; }
.root-card:hover { transform: translateY(-4px); border-color: rgba(184,255,44,.55); }
.root-card.priority { background: var(--green); color: var(--ink); border-color: var(--green); transform: rotate(-.5deg); }
.root-card.priority:hover { transform: translateY(-4px) rotate(-.5deg); }
.root-card.twist { border-color: rgba(207, 66, 46, 0.9); box-shadow: inset 0 3px 0 var(--rust); }
.root-card.twist .tag { color: #ff806d; }
.root-card-top { display: flex; justify-content: space-between; align-items: center; color: var(--paper-dim); font-size: 10px; letter-spacing: .1em; font-weight: 800; }
.priority .root-card-top { color: rgba(7,19,15,.65); }
.tag { border: 1px solid currentColor; padding: 4px 6px; }
.matchup { margin: 37px 0 0; font: 900 18px "Barlow Condensed", sans-serif; letter-spacing: .05em; }.matchup span { opacity: .45; margin: 0 4px; }
.root-card h3 { margin: 1px 0 14px; color: var(--green); font-size: 43px; line-height: .9; }
.root-card.priority h3 { color: var(--ink); }
.root-card > p:last-child { margin-top: auto; margin-bottom: 0; color: var(--paper-dim); font-size: 13px; line-height: 1.55; }
.root-card.priority > p:last-child { color: rgba(7,19,15,.74); }

.calculator-section { padding: 95px 0 60px; border-top: 1px solid var(--line); }
.split-heading { max-width: none; display: flex; align-items: end; justify-content: space-between; gap: 20px; }
.ghost-button { border: 1px solid var(--line); background: transparent; color: var(--paper); padding: 11px 14px; cursor: pointer; font: 700 11px "Inter", sans-serif; letter-spacing: .08em; text-transform: uppercase; }
.ghost-button:hover { border-color: var(--green); color: var(--green); }
.calculator-layout { display: grid; grid-template-columns: 1.08fr .92fr; gap: 16px; align-items: stretch; }
.match-controls { border-top: 1px solid var(--line); }
.match-control { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 18px; padding: 21px 0; border-bottom: 1px solid var(--line); }
.game-time { color: var(--green); font-size: 9px; letter-spacing: .12em; font-weight: 800; }
.match-control h3 { margin: 6px 0 0; font-size: 15px; }
.segmented { display: flex; gap: 5px; }
.segmented button { min-width: 60px; border: 1px solid var(--line); background: transparent; color: var(--paper-dim); padding: 10px 8px; cursor: pointer; font: 800 10px "Inter", sans-serif; }
.segmented button:hover { border-color: rgba(184,255,44,.55); }
.segmented button.selected { background: var(--green); color: var(--ink); border-color: var(--green); }
.projection-card { background: var(--paper); color: var(--ink); padding: clamp(22px, 4vw, 38px); }
.projection-label { color: var(--rust); font-size: 9px; font-weight: 900; letter-spacing: .14em; }
.projection-card h3 { max-width: 440px; margin: 12px 0 8px; font: 900 clamp(33px, 4vw, 49px)/.92 "Barlow Condensed", sans-serif; text-transform: uppercase; }
.projection-card > p { color: #5d6862; font-size: 13px; line-height: 1.5; }
.projection-table { margin: 25px 0 16px; border-top: 2px solid var(--ink); }
.projection-row { display: grid; grid-template-columns: 24px 1fr auto; gap: 10px; align-items: center; padding: 10px 4px; border-bottom: 1px solid rgba(7,19,15,.15); }
.projection-row.denver { background: rgba(184,255,44,.46); padding-inline: 9px; }
.projection-row .place { font-size: 11px; color: #6e776f; font-weight: 800; }.projection-row .club { font-size: 13px; font-weight: 700; }.projection-row .points { font: 900 23px "Barlow Condensed", sans-serif; }
.calculation-note { margin: 0!important; font-size: 10px!important; }
.next-window { margin-top: 56px; display: grid; grid-template-columns: .75fr 1.25fr; gap: 40px; align-items: center; padding: 27px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.next-window h3 { margin: 0; font-size: clamp(29px, 4vw, 44px); line-height: .95; }.next-window p:last-child { margin: 0; color: var(--paper-dim); font-size: 13px; line-height: 1.6; }
.methodology { margin-top: 26px; border-bottom: 1px solid var(--line); }
.methodology summary { padding: 16px 0 22px; cursor: pointer; color: var(--paper-dim); font-size: 12px; font-weight: 700; list-style-position: inside; }
.methodology-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; padding: 4px 0 35px; }
.methodology h4 { margin: 0 0 12px; color: var(--green); font: 900 16px "Barlow Condensed", sans-serif; text-transform: uppercase; letter-spacing: .04em; }
.methodology p, .source-list a { color: var(--paper-dim); font-size: 11px; line-height: 1.6; }.source-list a { display: block; margin-bottom: 8px; text-underline-offset: 3px; }
.site-footer { display: flex; justify-content: space-between; gap: 25px; padding: 27px 0 38px; color: #77837d; font-size: 10px; text-transform: uppercase; letter-spacing: .08em; }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; min-height: unset; }
  .cutline-card { width: min(460px, 95%); margin: 0 auto; }
  .rooting-grid { grid-template-columns: 1fr; }
  .root-card { min-height: 230px; }
  .calculator-layout { grid-template-columns: 1fr; }
  .methodology-grid { grid-template-columns: 1fr; gap: 12px; }
}
@media (max-width: 610px) {
  .section-shell, .site-header { width: min(100% - 24px, 1180px); }
  .status-pill { font-size: 9px; }
  .hero { padding: 76px 0 90px; }
  h1 { font-size: clamp(61px, 20vw, 88px); }
  .weekend, .calculator-section { padding-block: 72px; }
  .split-heading { align-items: start; flex-direction: column; }
  .match-control { grid-template-columns: 1fr; }
  .segmented button { flex: 1; min-width: 0; }
  .segmented { width: 100%; }
  .next-window { grid-template-columns: 1fr; gap: 12px; }
  .site-footer { flex-direction: column; gap: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none!important; }
}

html.is-embedded .site-header,
html.is-embedded .site-footer { display: none; }
html.is-embedded .hero { min-height: auto; padding-top: 48px; }
html.is-embedded .calculator-section { padding-bottom: 24px; }
