/* kwinfootball.com — one stylesheet for the home page and the legal pages.
   Colours and type follow design/BRAND.md ("Pitch"): DM Sans text, the
   wordmark in Outfit ExtraBold with a floodlight i-dot, grass green as the
   only accent, near-neutral grounds, no decorative borders. */

@font-face { font-family: "DM Sans"; src: url("/assets/fonts/DMSans.ttf") format("truetype"); font-weight: 100 1000; font-display: swap; }
@font-face { font-family: "Outfit"; src: url("/assets/fonts/Outfit-ExtraBold.ttf") format("truetype"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Noto Sans Myanmar"; src: url("/assets/fonts/NotoSansMyanmar-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Noto Sans Myanmar"; src: url("/assets/fonts/NotoSansMyanmar-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }

:root {
  --bg: #f5f7f5;
  --surface: #ffffff;
  --surface-2: #eef1ee;
  --line: #d3dad5;
  --t1: #0e1511;
  --t2: #45514a;
  --t3: #6b7770;
  --brand: #2f7d22;
  --brand-text: #246c21;
  --brand-soft: #dceed7;
  --floodlight: #9a5b00;
  --dot: #ffb627;
  --shot-shadow: 0 1px 2px rgb(14 21 17 / 0.08), 0 24px 48px -20px rgb(14 21 17 / 0.35);
  --font: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-my: "Noto Sans Myanmar", "Myanmar Text", "DM Sans", system-ui, sans-serif;
  --wordmark: "Outfit", "DM Sans", system-ui, sans-serif;
  --max: 1080px;
  --read: 68ch;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a0d0b;
    --surface: #141917;
    --surface-2: #1e2522;
    --line: #333d38;
    --t1: #f1f5f2;
    --t2: #a9b4ad;
    --t3: #86918a;
    --brand: #5cbf45;
    --brand-text: #5cbf45;
    --brand-soft: #1d3a20;
    --floodlight: #ffb627;
    --shot-shadow: 0 0 0 1px #2a332e, 0 24px 48px -24px rgb(0 0 0 / 0.8);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--t1);
  font: 400 17px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
}
:lang(my) body, body:lang(my) { font-family: var(--font-my); line-height: 1.85; }
img { max-width: 100%; display: block; }
a { color: var(--brand-text); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 4px; }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left));
  padding-right: max(20px, env(safe-area-inset-right));
}

/* Header */
.site-head { padding-block: 20px; }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--t1); }
.brand img { width: 36px; height: 36px; }
.wordmark { font: 800 28px/1 var(--wordmark); letter-spacing: -0.03em; color: var(--t1); }
.wordmark .i { position: relative; }
.wordmark .i::after { content: ""; position: absolute; left: 50%; top: 0.265em; width: 0.19em; height: 0.19em; margin-left: -0.09em; border-radius: 50%; background: var(--dot); }
.wordmark .dotless { color: inherit; }
.lang-switch { display: flex; gap: 4px; font-size: 15px; }
.lang-switch a, .lang-switch span { padding: 6px 10px; border-radius: 999px; text-decoration: none; color: var(--t2); }
.lang-switch [aria-current="true"] { background: var(--surface-2); color: var(--t1); font-weight: 600; }

/* Home: hero */
.hero { padding-block: 40px 72px; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.hero h1 {
  margin: 0 0 18px;
  font-size: clamp(40px, 6vw, 68px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  font-weight: 700;
  text-wrap: balance;
}
:lang(my) .hero h1 { font-size: clamp(32px, 4.6vw, 50px); line-height: 1.35; letter-spacing: 0; }
.hero p.lede { margin: 0 0 28px; font-size: 20px; color: var(--t2); max-width: 30em; }
.store {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 18px; border-radius: 12px;
  background: var(--surface-2); color: var(--t2); font-size: 15px; font-weight: 500;
}
.store svg { width: 20px; height: 20px; flex: none; }
.shot { justify-self: center; width: min(340px, 100%); }
.shot img { width: 100%; height: auto; border-radius: 28px; box-shadow: var(--shot-shadow); background: #0a0d0b; }
.shot figcaption { margin-top: 12px; font-size: 13px; color: var(--t3); text-align: center; }

/* Home: feature rows */
.rows { padding-block: 24px 40px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; padding-block: 48px; }
.row + .row { border-top: 1px solid var(--line); }
.row:nth-child(even) .shot { order: -1; }
.row h2 { margin: 0 0 12px; font-size: clamp(28px, 3.4vw, 38px); line-height: 1.12; letter-spacing: -0.025em; font-weight: 700; text-wrap: balance; }
:lang(my) .row h2 { line-height: 1.45; letter-spacing: 0; font-size: clamp(24px, 3vw, 32px); }
.row p { margin: 0 0 12px; color: var(--t2); max-width: 34em; }
.row .shot { width: min(300px, 100%); }
.points { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 8px; max-width: 30em; }
.points li { display: flex; justify-content: space-between; gap: 16px; padding: 10px 14px; background: var(--surface); border-radius: 10px; font-size: 15px; }
.points li span:last-child { font-variant-numeric: tabular-nums; color: var(--brand-text); font-weight: 600; white-space: nowrap; }

/* Home: the week, facts */
.week { padding-block: 56px; background: var(--surface); }
.week .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.week h2 { margin: 0 0 12px; font-size: clamp(26px, 3vw, 34px); line-height: 1.15; letter-spacing: -0.02em; }
:lang(my) .week h2 { line-height: 1.5; letter-spacing: 0; }
.week p { margin: 0; color: var(--t2); }
.clock { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin-top: 4px; }
.clock div { background: var(--surface-2); border-radius: 8px; padding: 10px 0 8px; text-align: center; font-size: 13px; color: var(--t2); }
.clock div b { display: block; font-size: 12px; color: var(--t3); font-weight: 500; }
.clock div.start { background: var(--brand-soft); color: var(--brand-text); font-weight: 600; }
.clock-note { margin-top: 10px !important; font-size: 14px; color: var(--t3) !important; }

.facts { padding-block: 56px 72px; }
.facts ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.facts li b { display: block; font-size: 17px; margin-bottom: 4px; }
.facts li span { color: var(--t2); font-size: 15px; }

/* Legal pages */
.doc { padding-block: 24px 80px; }
.doc .wrap { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 56px; }
.doc nav.side { position: sticky; top: 24px; align-self: start; font-size: 15px; }
.doc nav.side p { margin: 0 0 8px; font-size: 13px; color: var(--t3); text-transform: uppercase; letter-spacing: 0.06em; }
.doc nav.side ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.doc nav.side a { display: block; padding: 6px 10px; border-radius: 8px; color: var(--t2); text-decoration: none; }
.doc nav.side a[aria-current="page"] { background: var(--surface-2); color: var(--t1); font-weight: 600; }
.doc article { max-width: var(--read); min-width: 0; }
.doc h1 { margin: 0 0 6px; font-size: clamp(34px, 4.4vw, 46px); line-height: 1.08; letter-spacing: -0.03em; }
:lang(my) .doc h1 { line-height: 1.4; letter-spacing: 0; }
.doc .effective { margin: 0 0 28px; color: var(--t3); font-size: 15px; }
.doc h2 { margin: 44px 0 10px; font-size: 24px; line-height: 1.25; letter-spacing: -0.015em; scroll-margin-top: 24px; }
.doc h3 { margin: 24px 0 6px; font-size: 18px; }
.doc p, .doc li { color: var(--t2); }
.doc p strong, .doc li strong { color: var(--t1); }
.doc ul, .doc ol { padding-left: 22px; }
.doc li + li { margin-top: 6px; }
.toc { background: var(--surface); border-radius: 12px; padding: 18px 22px; margin-bottom: 8px; }
.toc ol { margin: 0; padding-left: 20px; columns: 2; column-gap: 32px; font-size: 15px; }
.toc li { break-inside: avoid; margin: 0 0 4px !important; }
.note { background: var(--brand-soft); color: var(--t1); border-radius: 12px; padding: 16px 20px; margin: 18px 0; }
.note p { color: var(--t1); margin: 0; }
.note p + p { margin-top: 8px; }
.table { overflow-x: auto; margin: 14px 0; }
table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 520px; }
th, td { text-align: left; vertical-align: top; padding: 12px 14px; }
thead th { font-size: 13px; color: var(--t3); font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; background: var(--surface-2); }
thead th:first-child { border-radius: 8px 0 0 8px; }
thead th:last-child { border-radius: 0 8px 8px 0; }
tbody tr + tr td { border-top: 1px solid var(--line); }
td:first-child { color: var(--t1); font-weight: 600; width: 32%; }
td { color: var(--t2); }
.steps { counter-reset: step; list-style: none; padding: 0 !important; display: grid; gap: 10px; }
.steps li { counter-increment: step; position: relative; padding: 14px 16px 14px 56px; background: var(--surface); border-radius: 12px; margin: 0 !important; }
.steps li::before { content: counter(step); position: absolute; left: 16px; top: 13px; width: 26px; height: 26px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 700; font-size: 14px; display: grid; place-items: center; }
@media (prefers-color-scheme: dark) { .steps li::before { color: #0b220c; } }
.copy-email { font-weight: 600; color: var(--t1); user-select: all; }

/* Footer */
.site-foot { border-top: 1px solid var(--line); padding-block: 32px 40px; font-size: 15px; color: var(--t3); }
.site-foot .wrap { display: flex; flex-wrap: wrap; gap: 16px 32px; justify-content: space-between; align-items: flex-start; }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.site-foot a { color: var(--t2); text-decoration: none; }
.site-foot a:hover { color: var(--t1); text-decoration: underline; }
.site-foot .small { width: 100%; font-size: 13px; }

@media (max-width: 860px) {
  .hero .wrap, .row, .week .wrap { grid-template-columns: 1fr; gap: 32px; }
  .row:nth-child(even) .shot { order: 0; }
  .hero { padding-block: 16px 48px; }
  .hero p.lede { font-size: 18px; }
  .facts ul { grid-template-columns: 1fr 1fr; }
  .doc .wrap { grid-template-columns: 1fr; gap: 16px; }
  .doc nav.side { position: static; }
  .doc nav.side ul { display: flex; flex-wrap: wrap; }
  .toc ol { columns: 1; }
}
@media (max-width: 480px) {
  body { font-size: 16px; }
  .facts ul { grid-template-columns: 1fr; gap: 20px; }
  .wordmark { font-size: 24px; }
  .brand img { width: 30px; height: 30px; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }
.doc .wrap.single { display: block; }
