:root {
  --ink: #102326;
  --deep: #173c3d;
  --paper: #f7f4ee;
  --white: #fffefa;
  --sea: #8fc9bb;
  --sage: #d4ded2;
  --amber: #c98a42;
  --coral: #d15f49;
  --muted: #5f706c;
  --line: rgba(16, 35, 38, 0.14);
  --shadow: 0 22px 70px rgba(16, 35, 38, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

img {
  display: block;
  max-width: 100%;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 4vw, 56px);
  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(247, 244, 238, 0.92);
  box-shadow: 0 10px 40px rgba(16, 35, 38, 0.12);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0;
  white-space: nowrap;
}

.brand span {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid currentColor;
  border-radius: 50%;
}

.brand small {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(12px, 2vw, 28px);
  font-size: 0.82rem;
  font-weight: 700;
  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: currentColor;
  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: 76svh;
  display: grid;
  align-items: end;
  overflow: hidden;
  padding: 104px clamp(18px, 5vw, 72px) 56px;
  color: var(--white);
  background:
    linear-gradient(88deg, rgba(16, 35, 38, 0.88) 0%, rgba(16, 35, 38, 0.64) 31%, rgba(16, 35, 38, 0.1) 68%),
    url("assets/sylvra-hero.png") center / cover no-repeat;
}

.hero::after {
  position: absolute;
  right: -12vw;
  bottom: -28vw;
  width: 55vw;
  aspect-ratio: 1;
  border: 1px solid rgba(255, 254, 250, 0.2);
  border-radius: 50%;
  content: "";
}

.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(16, 35, 38, 0.18), rgba(16, 35, 38, 0.2));
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 16px;
  color: var(--amber);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

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

h1 {
  max-width: 13ch;
  margin-bottom: 18px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.8rem, 8vw, 7rem);
  line-height: 0.88;
  font-weight: 500;
}

h2 {
  margin-bottom: 18px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 4.5rem);
  line-height: 0.98;
  font-weight: 500;
}

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

.tagline {
  max-width: 540px;
  margin-bottom: 28px;
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  color: rgba(255, 254, 250, 0.86);
}

.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: 6px;
  padding: 12px 18px;
  font-size: 0.84rem;
  font-weight: 800;
  text-transform: uppercase;
  transition:
    transform 180ms ease,
    background 180ms ease,
    color 180ms ease,
    border-color 180ms ease;
}

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

.button-primary {
  color: var(--ink);
  border-color: var(--sea);
  background: var(--sea);
}

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

.hero-facts {
  position: absolute;
  z-index: 1;
  right: clamp(18px, 5vw, 72px);
  bottom: 26px;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  max-width: min(580px, 82vw);
}

.hero-facts span {
  border: 1px solid rgba(255, 254, 250, 0.3);
  border-radius: 6px;
  padding: 8px 10px;
  background: rgba(16, 35, 38, 0.38);
  color: rgba(255, 254, 250, 0.9);
  font-size: 0.78rem;
  font-weight: 700;
}

.season-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-block: 1px solid var(--line);
  background: var(--white);
}

.season-strip article {
  padding: clamp(18px, 3vw, 34px);
  border-right: 1px solid var(--line);
}

.season-strip article:last-child {
  border-right: 0;
}

.stat-value {
  display: block;
  margin-bottom: 4px;
  color: var(--deep);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.8rem, 4vw, 3.8rem);
  line-height: 1;
}

.stat-label {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

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

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.72fr);
  gap: clamp(32px, 7vw, 92px);
  align-items: start;
}

.intro p,
.section-heading p,
.contact p {
  max-width: 650px;
  color: var(--muted);
  font-size: 1.05rem;
}

.identity-list {
  margin: 0;
  border-top: 1px solid var(--line);
}

.identity-list div {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

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

dd {
  margin: 0;
  color: var(--deep);
  font-weight: 700;
}

.rhythm {
  color: var(--white);
  background: var(--deep);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(260px, 0.55fr);
  gap: clamp(28px, 6vw, 76px);
  align-items: end;
  margin-bottom: 38px;
}

.rhythm .section-heading p {
  color: rgba(255, 254, 250, 0.72);
}

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

.style-card {
  min-height: 260px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid rgba(255, 254, 250, 0.16);
  border-radius: 8px;
  padding: clamp(20px, 3vw, 32px);
  background: rgba(255, 254, 250, 0.06);
}

.style-card p {
  color: rgba(255, 254, 250, 0.72);
}

.card-number {
  color: var(--sea);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 3rem;
}

.results {
  background:
    linear-gradient(90deg, rgba(212, 222, 210, 0.64), rgba(255, 254, 250, 0.3)),
    var(--paper);
}

.results-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.65fr);
  gap: 18px;
}

.table-wrap,
.majors article,
.rival-grid article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 254, 250, 0.78);
  box-shadow: 0 14px 36px rgba(16, 35, 38, 0.08);
}

.table-wrap {
  overflow-x: auto;
}

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

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

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

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

td {
  font-weight: 700;
}

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

.majors {
  display: grid;
  gap: 12px;
}

.majors article {
  padding: 20px;
}

.majors strong,
.majors span {
  display: block;
}

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

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

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

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

.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: 900;
}

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

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

.money-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
  background: var(--paper);
  box-shadow: 0 14px 36px rgba(16, 35, 38, 0.08);
}

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

.money-panel > strong {
  display: block;
  margin-top: 18px;
  color: var(--deep);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.4rem, 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: 110px minmax(0, 1fr);
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

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

.rival-grid article {
  padding: 24px;
}

.rival-name {
  color: var(--coral);
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
}

.rival-grid span {
  display: block;
  margin-top: 14px;
  color: var(--muted);
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
  background: var(--sage);
}

.contact .button-primary {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--white);
}

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

.site-footer p {
  margin: 0;
}

@media (max-width: 900px) {
  .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 {
    min-height: 84svh;
    padding-top: 150px;
    background-position: 44% center;
  }

  .season-strip,
  .style-grid,
  .rival-grid,
  .site-footer {
    grid-template-columns: repeat(2, 1fr);
  }

  .intro-grid,
  .section-heading,
  .results-layout,
  .contact {
    grid-template-columns: 1fr;
  }

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

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

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

  .brand span {
    width: 36px;
    height: 36px;
  }

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

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

  .hero::after {
    display: none;
  }

  .hero-facts {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    justify-content: flex-start;
    margin-top: 16px;
  }

  h1 {
    font-size: clamp(3.7rem, 21vw, 5.4rem);
  }

  .season-strip,
  .style-grid,
  .rival-grid,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .season-strip article {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .identity-list div {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .section {
    padding-block: 58px;
  }
}
