body { margin: 0; }
img { max-width: 100%; }
/* Layout: the page reads as the Amsterdam flag — red band, black band with three crosses, red band — in the DWFT banner's type. */
:root {
  --red: #C4262B;
  --ink: #0E0E0E;
  --paper: #FFFFFF;
  --blush: #F3D3D6;
  --muted: #B8ADAD;
  --line: #2A2424;
  --display: 'Anton', Impact, 'Arial Narrow', sans-serif;
  --body: 'Barlow', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --wrap: 1120px;
  --gutter: clamp(16px, 5vw, 64px);
  color-scheme: dark;
}
* { box-sizing: border-box; }
b { font-weight: inherit; }
html { scroll-behavior: smooth; }
body { background: var(--ink); color: var(--paper); font-family: var(--body); font-size: 17px; line-height: 1.55; font-weight: 400; }
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--paper); outline-offset: 3px; }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 400; text-transform: uppercase; line-height: .92; text-wrap: balance; }
p { margin: 0; }
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.eyebrow { font-size: 14px; font-weight: 400; letter-spacing: .2em; text-transform: uppercase; }
.tbd { border-bottom: 1px dashed currentColor; }

/* Red bands */
.red { background: var(--red); }
.red .eyebrow, .red .k { color: var(--ink); }

/* Top bar */
.bar { position: sticky; top: 0; z-index: 10; }
/* Menu links stop here: the sticky bar then covers only the empty top of a section. */
html { scroll-padding-top: 60px; }
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px 32px; flex-wrap: wrap; padding-block: 20px; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.brand img { width: 56px; height: 56px; }
.brand span { display: flex; flex-direction: column; gap: 4px; font-size: 14px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; line-height: 1; }
.brand span b:last-child { color: var(--ink); }
nav { display: flex; gap: 8px 24px; flex-wrap: wrap; }
nav a { color: var(--ink); font-size: 14px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; text-decoration: none; padding-block: 4px; border-bottom: 2px solid transparent; }
.burger { display: none; padding: 8px; margin: -8px; background: none; border: 0; color: var(--ink); cursor: pointer; }
.burger svg { display: block; }
nav a:hover { border-color: var(--ink); }

/* Hero */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 32px 48px; padding-block: 40px 64px; }
.hero h1 { display: flex; flex-direction: column; gap: 8px; }
.hero h1 .w { font-size: clamp(64px, 13vw, 168px); letter-spacing: .01em; }
.hero h1 .k { font-size: clamp(36px, 6.4vw, 82px); }
.hero .lead { margin-top: 28px; max-width: 34em; font-size: 19px; font-weight: 400; line-height: 1.4; }
.hero .logo { width: clamp(150px, 24vw, 280px); height: auto; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.btn { display: inline-block; padding: 14px 24px; font-size: 15px; font-weight: 400; letter-spacing: .14em; text-transform: uppercase; text-decoration: none; background: var(--ink); color: var(--paper); border: 2px solid var(--ink); }
.btn:hover { background: transparent; color: var(--ink); }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: var(--paper); }

/* Hero video: fills the first block, dark layer on top so the text stays readable */
.vid { position: relative; overflow: hidden; display: flex; align-items: flex-end; min-height: clamp(440px, 72vh, 780px); background: var(--ink); }
.vid video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; }
.vid .hero { position: relative; z-index: 1; width: 100%; }
.vid .btn.ghost { color: var(--paper); border-color: var(--paper); }
.vid .btn.ghost:hover { background: var(--paper); color: var(--ink); }
.vid .btn:not(.ghost):hover { background: var(--paper); border-color: var(--paper); }

/* Flag band: three Andreaskruisen */
.xxx { display: flex; justify-content: center; gap: 48px; padding-block: 24px; background: var(--ink); }
.xxx svg { width: 36px; height: 36px; animation: turn 1.8s cubic-bezier(.2,.9,.3,1.3) .6s both; }
.xxx svg:nth-child(2) { animation-delay: 1s; }
.xxx svg:nth-child(3) { animation-delay: 1.4s; }
@keyframes turn { from { transform: rotate(-180deg) scale(.6); } }
@media (prefers-reduced-motion: reduce) { .xxx svg { animation: none; } html { scroll-behavior: auto; } }

/* Photo */
.photo { position: relative; overflow: hidden; height: clamp(360px, 56vw, 640px); }
.photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
/* Dark layer on the hero video so the title stays readable */
.vid::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14,14,14,.25) 0%, rgba(14,14,14,.8) 100%); }
.photo .cap { position: absolute; inset: auto 0 0 0; z-index: 1; padding-block: 40px; display: flex; flex-direction: column; gap: 10px; }
.photo .cap h2 { font-size: clamp(44px, 8vw, 104px); }
.photo .cap a { font-weight: 400; letter-spacing: .04em; text-transform: uppercase; font-size: clamp(16px, 2.2vw, 22px); text-decoration-thickness: 2px; text-underline-offset: 5px; }

/* Black sections */
.section { padding-block: 88px; display: flex; flex-direction: column; gap: 40px; }
.section + .section { border-top: 1px solid var(--line); }
.head { display: flex; flex-direction: column; gap: 14px; max-width: 40em; }
.head .eyebrow { color: var(--red); }
.head h2 { font-size: clamp(40px, 6vw, 72px); }
.head p { color: var(--muted); font-size: 18px; }

.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px 32px; }
.fact { border-top: 3px solid var(--red); padding-top: 14px; display: flex; flex-direction: column; gap: 6px; }
.fact b { font-family: var(--display); font-weight: 400; font-size: 44px; line-height: 1; font-variant-numeric: tabular-nums; }
.fact span { color: var(--muted); }

.portrait { display: block; width: 100%; max-width: 100%; aspect-ratio: 2 / 3; object-fit: cover; }
.split { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); align-items: center; gap: 48px; }
.split-text { display: flex; flex-direction: column; gap: 40px; min-width: 0; }
.split .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.gallery { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 16px; }
.gallery.one { grid-template-columns: minmax(0, 1fr); }
.gallery figure { margin: 0; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.gallery img { width: 100%; height: clamp(320px, 40vw, 520px); object-fit: cover; }
.gallery .team img { object-position: 70% 40%; }
.gallery figcaption { font-size: 13px; font-weight: 400; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }

/* Training: one block per day, one line per session */
.days { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 32px 48px; }
.day { border-top: 3px solid var(--red); padding-top: 16px; }
.day h3 { font-size: 36px; margin-bottom: 8px; }
.day p { display: flex; justify-content: space-between; gap: 16px; padding-block: 12px; border-bottom: 1px solid var(--line); font-size: 19px; font-variant-numeric: tabular-nums; }
.day p span:last-child { color: var(--muted); }

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 560px; font-variant-numeric: tabular-nums; }
th, td { text-align: left; padding: 16px 16px 16px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 13px; font-weight: 400; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); border-bottom: 3px solid var(--red); }
td:first-child { font-family: var(--display); font-size: 26px; text-transform: uppercase; line-height: 1.1; }
td { font-size: 18px; font-weight: 400; }
.note { font-size: 14px; color: var(--muted); }

/* Tournament */
.tourney { padding-block: 80px; display: flex; flex-direction: column; gap: 40px; }
.tourney-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 340px); align-items: end; gap: 40px; }
.tourney .title { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.tourney .title .w { font-size: clamp(88px, 16vw, 180px); line-height: .86; }
.tourney .title .k { font-size: clamp(38px, 6.6vw, 82px); margin-top: 14px; }
.tourney .date { font-family: var(--display); font-size: clamp(36px, 6vw, 64px); line-height: 1; text-transform: uppercase; }
.tourney .date small { display: block; margin-top: 10px; font-family: var(--body); font-size: clamp(16px, 2.4vw, 24px); font-weight: 400; letter-spacing: .04em; }
.info { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px 40px; }
.info div { border-top: 3px solid var(--ink); padding-top: 10px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.info .eyebrow { font-size: 13px; }
.info p { font-size: 22px; font-weight: 400; line-height: 1.15; }
.deadline { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px 24px; background: var(--ink); padding: 18px 28px; }
.deadline .eyebrow { color: var(--paper); }
.deadline strong { font-family: var(--display); font-weight: 400; font-size: clamp(28px, 4.4vw, 44px); line-height: 1; text-transform: uppercase; }
.deadline em { font-style: normal; color: var(--blush); font-weight: 400; letter-spacing: .08em; text-transform: uppercase; font-size: 14px; }

/* Join */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 32px; margin: 0; padding: 0; list-style: none; counter-reset: s; }
.steps li { counter-increment: s; display: flex; flex-direction: column; gap: 8px; border-top: 1px solid var(--line); padding-top: 16px; }
.steps li::before { content: counter(s); font-family: var(--display); font-size: 56px; line-height: 1; color: var(--red); }
.steps h3 { font-size: 28px; line-height: 1; }
.steps p { color: var(--muted); }
.contact { display: flex; flex-wrap: wrap; gap: 28px; }
.contact a { display: flex; align-items: center; gap: 16px; text-decoration: none; }
.contact a:hover svg { color: var(--red); }
.contact svg { flex: none; width: 36px; height: 36px; color: var(--paper); }
.contact div { display: flex; flex-direction: column; gap: 4px; }
.contact .eyebrow { color: var(--muted); font-size: 12px; }
.contact p { font-size: 22px; font-weight: 400; }

/* Sponsor */
.sponsor { background: var(--paper); color: var(--ink); }
.sponsor .wrap { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px 32px; padding-block: 24px; }
.sponsor img { width: 130px; height: auto; }

/* Footer */
footer .wrap { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px; padding-block: 40px; }
footer .xs { display: flex; gap: 20px; }
footer .xs svg { width: 24px; height: 24px; }
footer p { font-size: 14px; font-weight: 400; letter-spacing: .12em; text-transform: uppercase; }
footer p b { color: var(--ink); }

@media (max-width: 860px) {
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .info { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .split, .tourney-top, .gallery { grid-template-columns: minmax(0, 1fr); }
  .split .portrait { aspect-ratio: 4 / 5; }
  .tourney-top .portrait { aspect-ratio: 4 / 3; object-position: 50% 40%; }
  .gallery img { height: auto; aspect-ratio: 4 / 3; }
}
@media (max-width: 640px) {
  /* Header: name and a menu button; the menu opens under it */
  .top { padding-block: 16px; gap: 14px; }
  .brand img { width: 44px; height: 44px; }
  .brand { flex: 1 1 0; min-width: 0; }
  .brand span { font-size: clamp(11px, 3.6vw, 14px); white-space: nowrap; }
  .burger { display: block; margin-left: auto; }
  nav { display: none; width: 100%; flex-direction: column; gap: 0; }
  .top.open nav { display: flex; }
  nav a { font-size: 16px; padding-block: 14px; border-bottom: 0; border-top: 1px solid rgba(14,14,14,.25); }
  /* Hero: the crest is already in the header, buttons full width for thumbs */
  .hero { grid-template-columns: minmax(0, 1fr); padding-block: 24px 40px; }
  .hero .logo { display: none; }
  .actions { margin-top: 24px; }
  .actions .btn { flex: 1 1 100%; text-align: center; }
  /* DWFT band: show the whole group photo, text below it instead of over faces */
  .photo { height: auto; }
  .photo img { position: static; display: block; height: auto; aspect-ratio: 3 / 2; }
  .photo .cap { position: static; padding-block: 20px 36px; }
  /* Training: one card per session instead of a wide table */
  table { min-width: 0; }
  thead { display: none; }
  tr { display: grid; grid-template-columns: 124px minmax(0, 1fr); gap: 2px 16px; padding-block: 18px; border-bottom: 1px solid var(--line); }
  tbody tr:first-child { border-top: 3px solid var(--red); }
  td { border: 0; padding: 0; grid-column: 2; font-size: 16px; }
  td:first-child { grid-column: 1; grid-row: 1 / span 3; }
  td:nth-child(2) { font-size: 20px; }
  .xxx { gap: 32px; padding-block: 18px; }
  .xxx svg { width: 28px; height: 28px; }
  .section { padding-block: 64px; }
  .info { grid-template-columns: minmax(0, 1fr); }
  .deadline { padding: 16px 18px; }
}

/* Tournaments page */
.page-title { font-size: clamp(48px, 8vw, 96px); }
.editions { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 40px 32px; }
.edition { display: flex; flex-direction: column; gap: 10px; text-decoration: none; }
.edition img, .edition .ph { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; object-position: 50% 40%; margin-bottom: 8px; }
/* No photo yet: an empty frame with the three crosses */
.edition .ph { display: flex; align-items: center; justify-content: center; gap: 28px; border: 1px solid var(--line); color: var(--line); }
.edition .ph svg { width: 36px; height: 36px; }
.edition h2 { font-size: clamp(26px, 3vw, 36px); }
.edition:hover h2 { color: var(--red); }
.shots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.shots div { aspect-ratio: 4 / 3; display: grid; place-items: center; border: 1px dashed var(--muted); color: var(--muted); font-size: 13px; font-weight: 400; letter-spacing: .2em; text-transform: uppercase; }
.shots img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.sponsor.strip img { width: min(100%, 720px); }
@media (max-width: 860px) { .shots { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
