:root {
  --ink: #171819;
  --charcoal: #242425;
  --paper: #faf7ef;
  --white: #ffffff;
  --silver: #d9dde4;
  --blue: #2367ff;
  --red: #e34d43;
  --grass: #a2b84b;
  --gold: #d7a84f;
  --muted: #6c6f75;
  --line: rgba(23, 24, 25, 0.14);
  --shadow: 0 20px 60px rgba(23, 24, 25, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family:
    "Satoshi", "Avenir Next", Inter, ui-sans-serif, system-ui, -apple-system,
    BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

body::selection {
  color: var(--white);
  background: var(--blue);
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  right: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 20px clamp(18px, 4vw, 58px);
  color: var(--white);
  transition:
    background 180ms ease,
    color 180ms ease,
    box-shadow 180ms ease,
    padding 180ms ease;
}

.site-header.is-scrolled {
  padding-block: 12px;
  color: var(--ink);
  background: rgba(250, 247, 239, 0.93);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 2px solid currentColor;
  border-radius: 6px;
  transform: skew(-8deg);
}

.brand-copy {
  letter-spacing: 0;
}

.site-nav {
  display: flex;
  gap: clamp(12px, 2vw, 26px);
  justify-content: flex-end;
  font-size: 0.8rem;
  font-weight: 900;
  text-transform: uppercase;
}

.site-nav a {
  position: relative;
  padding-block: 6px;
}

.site-nav a::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  background: var(--red);
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.site-nav a:hover::after,
.site-nav a.is-active::after {
  transform: scaleX(1);
}

.hero {
  position: relative;
  min-height: 78svh;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(240px, 0.45fr);
  gap: 32px;
  align-items: end;
  overflow: hidden;
  padding: 108px clamp(18px, 5vw, 72px) 58px;
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(23, 24, 25, 0.9), rgba(23, 24, 25, 0.58) 42%, rgba(23, 24, 25, 0.12)),
    url("assets/davrik-hero.png") center / cover no-repeat;
}

.hero::before {
  position: absolute;
  left: clamp(18px, 5vw, 72px);
  right: clamp(18px, 5vw, 72px);
  bottom: 30px;
  height: 1px;
  background: rgba(255, 255, 255, 0.28);
  content: "";
}

.hero::after {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 48%;
  width: 14vw;
  background: rgba(35, 103, 255, 0.16);
  content: "";
  transform: skew(-14deg);
}

.hero-copy,
.hero-badge {
  position: relative;
  z-index: 1;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 12ch;
  margin-bottom: 18px;
  font-size: clamp(3.5rem, 7.6vw, 6.8rem);
  line-height: 0.88;
  font-weight: 1000;
  text-transform: uppercase;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2.2rem, 5vw, 5.5rem);
  line-height: 0.9;
  font-weight: 1000;
  text-transform: uppercase;
}

h3 {
  margin-bottom: 10px;
  font-size: 1rem;
  font-weight: 1000;
  text-transform: uppercase;
}

.dek {
  max-width: 620px;
  margin-bottom: 28px;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(1.1rem, 2vw, 1.6rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border: 1px solid currentColor;
  border-radius: 4px;
  padding: 12px 18px;
  font-size: 0.82rem;
  font-weight: 1000;
  text-transform: uppercase;
  transition:
    transform 180ms ease,
    background 180ms ease,
    color 180ms ease,
    border-color 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-hot {
  color: var(--white);
  border-color: var(--red);
  background: var(--red);
}

.button-ghost {
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

.hero-badge {
  justify-self: end;
  width: min(330px, 100%);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  padding: 24px;
  background: rgba(23, 24, 25, 0.45);
  backdrop-filter: blur(10px);
  text-transform: uppercase;
}

.hero-badge span,
.hero-badge strong {
  display: block;
}

.hero-badge span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.78rem;
  font-weight: 900;
}

.hero-badge strong {
  color: var(--silver);
  font-size: clamp(1.8rem, 2.8vw, 3rem);
  line-height: 0.9;
  overflow-wrap: normal;
}

.score-band {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  background: var(--white);
}

.score-band article {
  min-height: 150px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(18px, 3vw, 32px);
  border-right: 1px solid var(--line);
  border-bottom: 4px solid var(--blue);
}

.score-band article:nth-child(2) {
  border-bottom-color: var(--red);
}

.score-band article:nth-child(3) {
  border-bottom-color: var(--grass);
}

.score-band article:nth-child(4) {
  border-bottom-color: var(--gold);
}

.score-band article:nth-child(5) {
  border-bottom-color: var(--red);
  border-right: 0;
}

.score-label {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 1000;
  text-transform: uppercase;
}

.score-band strong {
  font-size: clamp(2.2rem, 5vw, 4.8rem);
  line-height: 0.95;
  font-weight: 1000;
}

.section {
  padding: clamp(70px, 10vw, 132px) clamp(18px, 5vw, 72px);
}

.profile {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(310px, 0.58fr);
  gap: clamp(28px, 7vw, 90px);
  align-items: start;
}

.profile-text p,
.section-lead p,
.team p {
  max-width: 680px;
  color: var(--muted);
  font-size: 1.05rem;
}

.bio-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 18px 44px rgba(23, 24, 25, 0.08);
}

dl {
  margin: 0;
}

.bio-panel div {
  display: grid;
  grid-template-columns: 98px minmax(0, 1fr);
  gap: 16px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
}

.bio-panel div:last-child {
  border-bottom: 0;
}

dt {
  color: var(--blue);
  font-size: 0.74rem;
  font-weight: 1000;
  text-transform: uppercase;
}

dd {
  margin: 0;
  font-weight: 800;
}

.weapons {
  color: var(--white);
  background:
    linear-gradient(125deg, rgba(35, 103, 255, 0.24), transparent 38%),
    var(--charcoal);
}

.section-lead {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.56fr);
  gap: clamp(26px, 6vw, 76px);
  align-items: end;
  margin-bottom: 34px;
}

.weapons .section-lead p {
  color: rgba(255, 255, 255, 0.72);
}

.weapon-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.weapon-grid article {
  min-height: 260px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  padding: clamp(20px, 3vw, 32px);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)),
    rgba(255, 255, 255, 0.04);
}

.weapon-grid span {
  margin-bottom: auto;
  color: var(--gold);
  font-size: 0.76rem;
  font-weight: 1000;
  text-transform: uppercase;
}

.weapon-grid p {
  color: rgba(255, 255, 255, 0.72);
}

.results {
  background: var(--paper);
}

.timeline {
  display: grid;
  gap: 12px;
  margin-bottom: 20px;
}

.timeline article {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 20px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
  background: var(--white);
  box-shadow: 0 12px 30px rgba(23, 24, 25, 0.07);
}

.timeline time {
  color: var(--red);
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1;
  font-weight: 1000;
}

.timeline p {
  margin-bottom: 0;
  color: var(--muted);
}

.major-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.major-strip article,
.note-grid article {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
  background: #f1efe8;
}

.major-strip strong,
.major-strip span {
  display: block;
}

.major-strip span {
  margin-top: 6px;
  color: var(--muted);
}

.notes {
  display: grid;
  grid-template-columns: minmax(230px, 0.35fr) minmax(0, 1fr);
  gap: clamp(24px, 6vw, 76px);
  background: var(--white);
}

.matches {
  background: var(--white);
}

.match-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.36fr);
  gap: 18px;
}

.match-table {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 12px 30px rgba(23, 24, 25, 0.07);
}

table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
}

caption {
  padding: 18px 20px 0;
  color: var(--red);
  font-weight: 1000;
  text-align: left;
  text-transform: uppercase;
}

th,
td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

th {
  color: var(--muted);
  font-size: 0.72rem;
  text-transform: uppercase;
}

td {
  font-weight: 780;
}

tr:last-child td {
  border-bottom: 0;
}

.result-win,
.result-loss {
  display: inline-grid;
  place-items: center;
  min-width: 28px;
  min-height: 28px;
  border-radius: 50%;
  color: var(--white);
  font-size: 0.74rem;
  font-weight: 1000;
}

.result-win {
  background: var(--ink);
}

.result-loss {
  background: var(--red);
}

.money-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
  background: #f1efe8;
  box-shadow: 0 12px 30px rgba(23, 24, 25, 0.07);
}

.money-panel > span {
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 1000;
  text-transform: uppercase;
}

.money-panel > strong {
  display: block;
  margin-top: 18px;
  font-size: clamp(2.2rem, 4vw, 4rem);
  line-height: 1;
}

.money-panel p {
  color: var(--muted);
}

.money-panel dl {
  margin: 24px 0 0;
  border-top: 1px solid var(--line);
}

.money-panel div {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.note-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.note-grid strong {
  color: var(--blue);
}

.note-grid p {
  margin: 12px 0 0;
  color: var(--muted);
}

.team {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
  background:
    linear-gradient(90deg, rgba(162, 184, 75, 0.38), rgba(35, 103, 255, 0.1)),
    var(--silver);
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  padding: 34px clamp(18px, 5vw, 72px);
  color: rgba(255, 255, 255, 0.68);
  background: var(--ink);
  font-size: 0.82rem;
}

.site-footer p {
  margin: 0;
}

@media (max-width: 940px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .site-nav {
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .hero,
  .profile,
  .section-lead,
  .notes,
  .team {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 84svh;
    padding-top: 156px;
    background-position: 63% center;
  }

  .hero-badge {
    justify-self: start;
  }

  .score-band,
  .weapon-grid,
  .major-strip,
  .note-grid,
  .site-footer {
    grid-template-columns: repeat(2, 1fr);
  }

  .match-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .site-header {
    padding-inline: 14px;
  }

  .brand-mark {
    width: 36px;
    height: 36px;
  }

  .brand-copy {
    display: none;
  }

  .site-nav {
    font-size: 0.72rem;
  }

  .hero {
    min-height: 82svh;
    padding: 142px 16px 92px;
    background-position: 67% center;
  }

  .hero::after {
    display: none;
  }

  h1 {
    font-size: clamp(3rem, 15vw, 3.7rem);
  }

  .score-band,
  .weapon-grid,
  .major-strip,
  .note-grid,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .score-band article {
    min-height: 126px;
    border-right: 0;
  }

  .bio-panel div,
  .timeline article {
    grid-template-columns: 1fr;
  }

  .section {
    padding-block: 58px;
  }

  .team .button {
    justify-self: start;
  }
}
