@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
  color-scheme: light;
  --paper: #fbf8f2;
  --white: #fffefa;
  --sand: #f2eadc;
  --sand-deep: #e8dcc8;
  --ink: #342b22;
  --ink-soft: #55483b;
  --muted: #71675c;
  --orange: #a94b22;
  --orange-soft: #f4e5d7;
  --yellow: #f5b72f;
  --green: #466d50;
  --line: #e6ddcf;
  --sans: 'DM Sans', Arial, sans-serif;
  --display: 'Manrope', 'DM Sans', sans-serif;
  --width: 1160px;
  --gutter: clamp(18px, 4.6vw, 68px);
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 94px; scrollbar-color: #c5ad91 var(--paper); }
body { margin: 0; min-width: 320px; background: var(--paper); color: var(--ink); font-size: 15px; line-height: 1.55; }
::selection { color: var(--ink); background: #f6ce70; }
a { color: inherit; text-decoration: none; text-underline-offset: 4px; }
a:hover { color: var(--orange); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--orange); outline-offset: 4px; }
.container { width: min(var(--width), calc(100% - var(--gutter) * 2)); margin-inline: auto; }
.site-header { position: sticky; top: 0; z-index: 10; background: var(--paper); }
.nav-row { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 11px; }
.brand-mark { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 14px 14px 14px 5px; background: var(--yellow); color: var(--ink); font: 800 17px/1 var(--display); letter-spacing: -.07em; }
.brand-copy { display: grid; gap: 2px; }
.brand-copy strong { font-size: 12px; line-height: 1.2; }
.brand-copy small { color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .11em; }
.main-nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: clamp(12px, 2.5vw, 30px); }
.main-nav a { color: var(--ink-soft); font-size: 12px; font-weight: 600; }
.main-nav a:hover { color: var(--orange); }
.hero { position: relative; padding: clamp(40px, 7vw, 82px) 0 24px; overflow: hidden; }
.hero-copy { position: relative; z-index: 1; max-width: 720px; }
.hero h1, .team-heading h1 { margin: 0; font: 800 clamp(43px, 7.2vw, 82px)/1.04 var(--display); letter-spacing: -.045em; }
.page-title { margin: 0; font: 800 clamp(38px, 6.5vw, 72px)/1.08 var(--display); letter-spacing: -.04em; }
.hero h1 span { color: var(--orange); }
.hero-description { max-width: 48ch; margin: 19px 0 19px; color: var(--ink-soft); font-size: 16px; line-height: 1.65; }
.text-link { display: inline-flex; align-items: center; gap: 10px; color: var(--orange); font-size: 13px; font-weight: 700; }
.text-link span { font-size: 18px; transition: transform 180ms ease-out; }
.text-link:hover span { transform: translateY(3px); }
.hero-art { position: absolute; width: clamp(170px, 26vw, 300px); aspect-ratio: 1; right: 5%; top: 48%; transform: translateY(-50%); display: grid; place-items: center; }
.volleyball { position: relative; z-index: 1; width: 63%; animation: float-ball 5s ease-in-out infinite; }
.art-spark { position: absolute; width: 11px; height: 11px; border: 2px solid var(--orange); border-radius: 50%; }
.spark-one { top: 14%; right: 15%; }
.spark-two { width: 8px; height: 8px; bottom: 15%; left: 18%; background: var(--yellow); border-color: var(--yellow); }
@keyframes float-ball { 0%, 100% { transform: translateY(0) rotate(-4deg); } 50% { transform: translateY(-8px) rotate(3deg); } }
.event-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: clamp(45px, 8vw, 86px); padding: 8px 0; border-radius: 14px; background: var(--sand); }
.event-strip > span { display: grid; align-content: center; gap: 4px; min-height: 65px; padding: 13px 18px; }
.event-strip > span:first-child { padding-left: 18px; }
.event-strip b { font-size: 12px; font-weight: 700; }
.event-strip small { color: var(--muted); font-size: 11px; }
.demo-disclaimer { margin: 11px 0 0; color: var(--muted); font-size: 11px; }
.tournament-section { padding-top: 64px; }
.section-heading, .subsection-heading { display: flex; align-items: end; justify-content: space-between; gap: 18px; }
.section-heading h2 { margin: 0; font: 750 clamp(24px, 3vw, 35px)/1.17 var(--display); letter-spacing: -.035em; }
.section-heading p, .subsection-heading p { margin: 7px 0 0; color: var(--muted); font-size: 12px; }
.category-tabs { display: flex; gap: 2px; margin-top: 24px; overflow-x: auto; scrollbar-width: thin; scrollbar-color: var(--sand-deep) transparent; }
.category-tab { position: relative; flex: 0 0 auto; display: flex; align-items: center; gap: 9px; min-height: 49px; padding: 0 15px; border: 0; background: transparent; color: var(--muted); font: 600 12px/1.2 var(--sans); cursor: pointer; white-space: nowrap; }
.category-tab::after { content: ''; position: absolute; right: 13px; bottom: -1px; left: 13px; height: 3px; transform: scaleX(0); transform-origin: left; background: var(--orange); transition: transform 180ms ease-out; }
.category-tab:hover { color: var(--ink); }
.category-tab[aria-selected='true'] { color: var(--ink); }
.category-tab[aria-selected='true']::after { transform: scaleX(1); }
.category-section { padding-top: 39px; }
.subsection-heading { margin-bottom: 15px; }
.subsection-heading h3 { margin: 0; font: 700 23px/1.2 var(--display); letter-spacing: -.03em; }
.heading-note { color: var(--muted); font-size: 11px; text-align: right; }
.team-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 38px; row-gap: 3px; }
.team-row { display: flex; align-items: center; gap: 14px; min-width: 0; min-height: 81px; padding: 11px 4px; border-radius: 12px; transition: padding 160ms ease-out, background 160ms ease-out; }
.team-row:hover { padding-right: 9px; padding-left: 9px; background: #fffdf9; }
.team-mark { flex: 0 0 43px; width: 43px; height: 43px; display: grid; place-items: center; border-radius: 15px; background: var(--sand); color: #55483b; font: 750 12px/1 var(--display); letter-spacing: -.02em; }
.team-mark.tone-1 { background: #f5e6bd; color: #654a0e; }
.team-mark.tone-2 { background: #e8e5d8; color: #4c5540; }
.team-mark.tone-3 { background: #f1dfd4; color: #793e26; }
.team-mark.tone-4 { background: #e1e9dc; color: #3d5b43; }
.team-detail { display: grid; gap: 4px; min-width: 0; }
.team-detail strong { overflow: hidden; font-size: 13px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.team-detail small { color: var(--muted); font-size: 11px; }
.team-arrow { margin-left: auto; color: var(--orange); font-size: 17px; opacity: .65; transition: transform 160ms ease-out, opacity 160ms ease-out; }
.team-row:hover .team-arrow { transform: translate(2px, -2px); opacity: 1; }
.schedule { display: grid; gap: 4px; }
.match-row { display: grid; grid-template-columns: 105px 125px minmax(0, 1fr) 64px; align-items: center; gap: 12px; min-height: 75px; margin-bottom: 3px; padding: 13px 10px; border-radius: 12px; transition: background 150ms ease-out; }
.match-row:hover { background: #fffdf9; }
.match-date { display: grid; gap: 2px; }
.match-date span { color: var(--muted); font-size: 11px; }
.match-date strong { font: 700 14px/1.25 var(--display); font-variant-numeric: tabular-nums; }
.match-phase { color: var(--ink-soft); font-size: 11px; }
.match-pair { display: flex; align-items: center; justify-content: flex-end; gap: clamp(8px, 2vw, 21px); min-width: 0; font-size: 12px; font-weight: 600; text-align: right; }
.match-pair a { min-width: 0; }
.match-pair a:hover { color: var(--orange); }
.match-pair > span { flex: none; color: #988977; font-size: 10px; font-weight: 500; }
.match-score { display: flex; align-items: center; justify-content: center; gap: 5px; color: var(--orange); font: 750 19px/1 var(--display); font-variant-numeric: tabular-nums; }
.match-score i { color: #b19c85; font: 500 12px var(--sans); }
.match-score > span { color: #928474; font: 500 17px var(--sans); }
.match-partials { grid-column: 3 / 5; justify-self: center; margin: -8px 0 0; color: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums; }
.match-partials span { padding: 0 7px; color: #a99b89; }
.table-scroll { overflow-x: auto; }
.standings { width: 100%; min-width: 530px; border-collapse: separate; border-spacing: 0 4px; background: transparent; font-size: 11px; font-variant-numeric: tabular-nums; }
.standings th { height: 41px; color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .055em; text-align: center; }
.standings th:nth-child(2) { text-align: left; }
.standings tbody tr { background: var(--white); }
.standings tbody tr:nth-child(even) { background: var(--sand); }
.standings td { height: 55px; padding: 7px 10px; text-align: center; }
.standings td:nth-child(2) { text-align: left; }
.rank-cell { width: 48px; color: var(--orange); font: 700 14px var(--display); }
.standing-team { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; }
.standing-team .team-mark { width: 29px; height: 29px; flex-basis: 29px; border-radius: 10px; font-size: 9px; }
.points-cell { font-weight: 800; }
.table-footnote { margin: 11px 0 0; color: var(--muted); font-size: 11px; }
.rules-section { padding-bottom: 10px; }
.rules-note { display: flex; align-items: center; gap: 13px; padding: 17px 19px; border-radius: 13px; background: var(--sand); }
.rules-note p { flex: 1; margin: 0; color: var(--ink-soft); font-size: 12px; }
.rules-dot { width: 9px; height: 9px; flex: 0 0 9px; border-radius: 50%; background: var(--yellow); }
.pending-label { flex: none; color: var(--orange); font-size: 11px; font-weight: 700; }
.no-script { padding: 14px; background: var(--orange-soft); color: var(--ink); font-size: 12px; }
.site-footer { margin-top: 70px; background: #f4eee4; }
.footer-row { min-height: 75px; display: flex; justify-content: space-between; align-items: center; gap: 20px; color: var(--muted); font-size: 11px; }
.footer-brand { color: var(--orange); font: 800 19px var(--display); }
.footer-brand span { margin-left: 5px; color: var(--ink-soft); font: 600 11px var(--sans); }
.team-hero { padding: 37px 0 27px; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 30px; color: var(--muted); font-size: 11px; }
.breadcrumbs a:hover { color: var(--orange); }
.team-heading { display: flex; align-items: center; gap: 19px; }
.team-heading > .team-mark { width: 75px; height: 75px; flex-basis: 75px; border-radius: 23px; font-size: 20px; }
.team-heading h1 { font-size: clamp(37px, 5.6vw, 61px); }
.team-category { margin: 0 0 3px; color: var(--orange); font-size: 11px; font-weight: 700; }
.team-pending { margin: 6px 0 0; color: var(--muted); font-size: 11px; }
.team-facts { display: flex; flex-wrap: wrap; gap: 30px; margin: 24px 0 0 94px; }
.team-facts span { display: grid; gap: 5px; }
.team-facts small { color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .06em; }
.team-facts strong { font-size: 12px; }
.back-link { display: inline-block; margin-top: 20px; color: var(--orange); font-size: 11px; font-weight: 700; }
.team-page .category-section { padding-top: 34px; }
.roster-empty { display: grid; gap: 5px; padding: 20px; border-radius: 13px; background: var(--sand); color: var(--ink-soft); font-size: 12px; }
.roster-empty strong { color: var(--ink); font-size: 13px; }
.team-standings { margin-top: 40px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }
@media (max-width: 760px) {
  .nav-row { min-height: 70px; }
  .hero-art { right: 0; width: 25vw; min-width: 145px; opacity: .88; }
  .hero-copy { max-width: 77%; }
  .hero h1 { font-size: clamp(44px, 8vw, 64px); }
  .event-strip > span { padding-inline: 12px; }
  .match-row { grid-template-columns: 88px minmax(0, 1fr) 54px; gap: 9px; }
  .match-phase { grid-column: 1; grid-row: 2; margin-top: -19px; font-size: 9px; }
  .match-pair { grid-column: 2; grid-row: 1 / 3; }
  .match-score { grid-column: 3; grid-row: 1 / 3; font-size: 17px; }
  .match-partials { grid-column: 2 / 4; grid-row: 3; margin: -5px 0 0; }
}
@media (max-width: 540px) {
  :root { --gutter: 18px; }
  body { font-size: 14px; }
  .nav-row { flex-wrap: wrap; gap: 0 10px; padding: 11px 0 0; }
  .brand-mark { width: 38px; height: 38px; }
  .main-nav { flex: 1 0 100%; justify-content: space-between; gap: 8px; padding: 12px 0 11px; }
  .main-nav a { font-size: 11px; }
  .hero { padding-top: 36px; }
  .hero-copy { max-width: 100%; }
  .hero h1 { max-width: 12ch; font-size: clamp(42px, 12vw, 57px); }
  .hero-description { max-width: 37ch; margin: 15px 0; font-size: 14px; }
  .hero-art { display: none; }
  .event-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 37px; }
  .event-strip > span { min-height: 63px; padding: 10px 11px; }
  .event-strip b { font-size: 12px; }
  .event-strip small { font-size: 11px; }
  .demo-disclaimer { max-width: 42ch; font-size: 11px; }
  .tournament-section { padding-top: 47px; }
  .section-heading h2 { max-width: 14ch; font-size: 27px; }
  .section-heading p, .subsection-heading p { font-size: 11px; }
  .category-tabs { margin-top: 16px; }
  .category-tab { min-height: 46px; padding-inline: 10px; font-size: 11px; }
  .category-section { padding-top: 32px; }
  .subsection-heading h3 { font-size: 21px; }
  .heading-note { max-width: 12ch; font-size: 11px; }
  .team-grid { grid-template-columns: 1fr; }
  .team-row { min-height: 70px; }
  .team-detail strong { font-size: 12px; }
  .match-row { grid-template-columns: 67px minmax(0, 1fr) 44px; gap: 6px; min-height: 74px; padding: 11px 3px; }
  .match-date span { font-size: 11px; }
  .match-date strong { font-size: 13px; }
  .match-phase { font-size: 11px; }
  .match-pair { gap: 5px; font-size: 11px; }
  .match-score { gap: 3px; font-size: 15px; }
  .match-partials { font-size: 11px; }
  .standings { font-size: 11px; }
  .standings td { padding-inline: 6px; }
  .rules-note { align-items: flex-start; padding: 14px; }
  .rules-note p { font-size: 11px; }
  .pending-label { font-size: 11px; }
  .footer-row { min-height: 69px; align-items: flex-start; justify-content: center; flex-direction: column; gap: 4px; padding-block: 12px; }
  .team-hero { padding-top: 27px; }
  .breadcrumbs { margin-bottom: 22px; }
  .team-heading { gap: 13px; }
  .team-heading > .team-mark { width: 58px; height: 58px; flex-basis: 58px; border-radius: 18px; }
  .team-heading h1 { font-size: 37px; }
  .team-facts { gap: 14px 22px; margin: 19px 0 0; }
  .team-facts span { flex: 1 0 38%; }
}
