/* karateseishin.ch: black, white, and the red of the Seishin logo. */
@font-face { font-family: "Hanken Grotesk"; src: url(/fonts/hanken-grotesk-500.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Hanken Grotesk"; src: url(/fonts/hanken-grotesk-700.woff2) format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Hanken Grotesk"; src: url(/fonts/hanken-grotesk-800.woff2) format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Inter"; src: url(/fonts/inter-400.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url(/fonts/inter-500.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Inter"; src: url(/fonts/inter-700.woff2) format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --bg: #0b0b0b;
  --bg-2: #141414;
  --bg-3: #1c1c1c;
  --line: #2a2a2a;
  --text: #f5f3f2;
  --muted: #a9a4a2;
  --red: #d53212;
  --red-deep: #a8240b;
  --radius: 14px;
  --wrap: 1180px;
  --head: "Hanken Grotesk", system-ui, sans-serif;
  --body: "Inter", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 17px/1.65 var(--body); }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-color: var(--red); text-underline-offset: 3px; }
a:hover { color: #fff; text-decoration-color: #fff; }
h1, h2, h3, h4 { font-family: var(--head); line-height: 1.1; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.3rem, 6vw, 4.4rem); font-weight: 800; text-transform: uppercase; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); font-weight: 800; }
h3 { font-size: 1.25rem; font-weight: 700; }
p { margin: 0 0 1em; }
.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; z-index: 99; background: var(--red); padding: 8px 14px; border-radius: 8px; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }

.eyebrow { font: 700 .8rem/1 var(--head); letter-spacing: .18em; text-transform: uppercase; color: var(--red); margin-bottom: 1rem; }
.lead { font-size: clamp(1.1rem, 2vw, 1.3rem); color: #e2dedc; max-width: 46rem; }
.muted { color: var(--muted); }
.red { color: var(--red); }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: .5em; padding: .9em 1.5em; border-radius: 999px; font: 700 1rem/1 var(--head); text-decoration: none; transition: transform .15s, background .15s; border: 2px solid transparent; }
.btn:hover { transform: translateY(-2px); }
.btn--red { background: var(--red); color: #fff; }
.btn--red:hover { background: #ec3a17; color: #fff; }
.btn--ghost { border-color: #fff; color: #fff; }
.btn--ghost:hover { background: #fff; color: #000; }
.pill { display: inline-block; padding: .5em 1em; border-radius: 999px; font: 700 .85rem/1 var(--head); text-decoration: none; white-space: nowrap; }
.pill--red { background: var(--red); color: #fff; }
.pill--red:hover { background: #ec3a17; }

/* Header */
.top { position: sticky; top: 0; z-index: 20; background: rgba(11,11,11,.88); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top__bar { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__text strong { font: 800 1.15rem/1.1 var(--head); text-transform: uppercase; letter-spacing: .02em; }
.brand__text small { color: var(--muted); font-size: .78rem; }
.nav { display: flex; align-items: center; gap: 22px; }
.nav ul { display: flex; gap: 22px; list-style: none; margin: 0; padding: 0; }
.nav ul a { text-decoration: none; font: 500 .98rem/1 var(--head); color: #ddd; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav ul a:hover, .nav ul a[aria-current] { color: #fff; border-bottom-color: var(--red); }
.menu { display: none; }
.menu summary { list-style: none; cursor: pointer; width: 44px; height: 44px; display: grid; place-content: center; gap: 5px; }
.menu summary::-webkit-details-marker { display: none; }
.menu summary span { display: block; width: 24px; height: 2px; background: #fff; transition: transform .2s, opacity .2s; }
.menu[open] summary span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu[open] summary span:nth-child(2) { opacity: 0; }
.menu[open] summary span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.menu__panel { position: absolute; left: 0; right: 0; top: 72px; background: var(--bg); border-bottom: 1px solid var(--line); padding: 12px 16px 24px; display: flex; flex-direction: column; }
.menu__panel a { padding: 14px 4px; border-bottom: 1px solid var(--line); text-decoration: none; font: 600 1.1rem/1.2 var(--head); }
.menu__panel .menu__turnier { color: var(--red); }
.menu__panel .btn { margin-top: 18px; justify-content: center; border: 0; }
@media (max-width: 1000px) { .nav { display: none; } .menu { display: block; } }

/* Hero (home) */
.hero { position: relative; min-height: min(92vh, 860px); display: flex; align-items: flex-end; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 30%; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11,11,11,.97) 0%, rgba(11,11,11,.9) 38%, rgba(11,11,11,.45) 65%, rgba(11,11,11,.1) 100%), linear-gradient(0deg, rgba(11,11,11,1) 0%, rgba(11,11,11,0) 35%); }
@media (max-width: 860px) { .hero__img { object-position: 78% 20%; } .hero::after { background: linear-gradient(0deg, rgba(11,11,11,1) 0%, rgba(11,11,11,.88) 55%, rgba(11,11,11,.55) 100%); } }
.hero__inner { position: relative; z-index: 1; padding: 120px 0 72px; }
.hero h1 { max-width: 13ch; }
.hero h1 em { font-style: normal; color: var(--red); }
.hero .lead { max-width: 36rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero__facts { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 40px; color: #ddd; font: 500 .95rem/1.3 var(--head); }
.hero__facts span::before { content: "■"; color: var(--red); margin-right: .5em; font-size: .7em; vertical-align: middle; }

/* Page head (subpages) */
.pagehead { position: relative; padding: 96px 0 56px; border-bottom: 1px solid var(--line); overflow: hidden; background: radial-gradient(circle at 85% 20%, rgba(213,50,18,.22), transparent 45%), var(--bg); }
.pagehead--img { padding: 150px 0 64px; }
.pagehead__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .38; }
.pagehead--img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, var(--bg) 0%, rgba(11,11,11,.55) 60%, rgba(11,11,11,.3) 100%); }
.pagehead__inner { position: relative; z-index: 1; }

/* Sections */
.section { padding: clamp(64px, 9vw, 110px) 0; }
.section--alt { background: var(--bg-2); border-block: 1px solid var(--line); }
.section__head { max-width: 46rem; margin-bottom: 44px; }
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.split--rev > :first-child { order: 2; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split--rev > :first-child { order: 0; } }
.photo { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo--tall { aspect-ratio: 4 / 5; }
.photo--wide { aspect-ratio: 16 / 10; }
.prose { max-width: 46rem; }
.prose h2 { margin-top: 1.6em; }
.prose h2:first-child { margin-top: 0; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .35em; }
.prose li::marker { color: var(--red); }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.card { background: var(--bg-3); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; position: relative; }
.card h3 { margin-bottom: .4em; }
.card p:last-child { margin-bottom: 0; }
.card--accent { border-top: 4px solid var(--red); }
.card__num { font: 800 2.6rem/1 var(--head); color: var(--red); margin-bottom: 14px; display: block; }
.card__tag { font: 700 .75rem/1 var(--head); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); display: block; margin-bottom: 10px; }

.values { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 0; }
.values li { border: 1px solid var(--line); background: var(--bg-3); border-radius: 999px; padding: .55em 1.1em; font: 600 .95rem/1 var(--head); }
.values li::before { content: "✓"; color: var(--red); margin-right: .5em; }

.checklist { list-style: none; padding: 0; margin: 0 0 1em; }
.checklist li { padding: 10px 0 10px 34px; border-bottom: 1px solid var(--line); position: relative; }
.checklist li::before { content: ""; position: absolute; left: 0; top: 17px; width: 16px; height: 10px; border-left: 3px solid var(--red); border-bottom: 3px solid var(--red); transform: rotate(-45deg); }

/* Training block */
.training { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.training > div { background: var(--bg-3); padding: 28px; }
.training strong { display: block; font: 800 1.5rem/1.2 var(--head); margin-top: 4px; }
@media (max-width: 760px) { .training { grid-template-columns: 1fr; } }

/* Tournament teaser */
.turnier-band { position: relative; overflow: hidden; background: linear-gradient(115deg, var(--red-deep), var(--red) 55%, #e2451f); }
.turnier-band__inner { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center; padding: 64px 0; }
.turnier-band h2 { font-size: clamp(2rem, 4.4vw, 3.4rem); text-transform: uppercase; }
.turnier-band .eyebrow { color: #fff; opacity: .85; }
.turnier-band .btn--ghost:hover { color: var(--red); }
.turnier-band__date { font: 800 clamp(3rem, 8vw, 6rem)/.9 var(--head); text-align: right; letter-spacing: -.03em; }
.turnier-band__date small { display: block; font-size: .28em; letter-spacing: .1em; font-weight: 700; margin-top: 10px; }
@media (max-width: 760px) { .turnier-band__inner { grid-template-columns: 1fr; } .turnier-band__date { text-align: left; } }

/* Trainer */
.trainers { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; }
.trainer { background: var(--bg-3); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; display: flex; flex-direction: column; }
.trainer__rank { display: inline-block; align-self: flex-start; background: var(--red); color: #fff; font: 700 .78rem/1 var(--head); padding: .5em .8em; border-radius: 6px; margin-bottom: 16px; letter-spacing: .04em; }
.trainer h3 { font-size: 1.5rem; margin-bottom: .15em; }
.trainer__role { color: var(--muted); font: 600 .95rem/1.3 var(--head); margin-bottom: 1em; }
.trainer ul { padding-left: 1.1em; margin: 0 0 1em; color: #ddd; font-size: .95rem; }
.trainer li::marker { color: var(--red); }
.trainer__meta { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); font-size: .92rem; color: var(--muted); }

/* Prices */
.prices { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.price { background: var(--bg-3); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.price--hi { border-color: var(--red); box-shadow: 0 0 0 1px var(--red) inset; }
.price h3 { font-size: 1.15rem; }
.price__amount { font: 800 clamp(1.45rem, 2.2vw, 1.9rem)/1 var(--head); margin: 14px 0 4px; white-space: nowrap; }
.price__amount small { font-size: .45em; font-weight: 600; color: var(--muted); }
.price__alt { color: var(--muted); font-size: .95rem; }

/* Tables */
.table { width: 100%; border-collapse: collapse; margin: 0 0 1.5em; font-size: .97rem; }
.table th, .table td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table thead th { background: var(--bg-3); font: 700 .8rem/1.2 var(--head); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.table td:first-child { font-weight: 600; white-space: nowrap; color: #fff; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.table-wrap .table { margin: 0; }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 240px; grid-auto-flow: dense; gap: 10px; }
.gallery figure { margin: 0; border-radius: 10px; overflow: hidden; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.gallery figure:hover img { transform: scale(1.04); }
.gallery .g-tall { grid-row: span 2; }
.gallery .g-wide { grid-column: span 2; }
@media (max-width: 860px) { .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 170px; } }

/* Logos */
.logos { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.logo-card { background: #fff; border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; text-decoration: none; color: #111; min-height: 190px; transition: transform .15s; }
.logo-card:hover { transform: translateY(-3px); color: #000; }
.logo-card img { max-height: 100px; width: auto; object-fit: contain; }
.logo-card span { font: 600 .85rem/1.25 var(--head); text-align: center; }

/* Flyers */
.flyers { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.flyers a { border-radius: 10px; overflow: hidden; border: 1px solid var(--line); display: block; }


/* Schedule */
.days { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 760px) { .days { grid-template-columns: 1fr; } }
.day { background: var(--bg-3); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.day__head { background: #000; padding: 22px 28px; border-bottom: 3px solid var(--red); }
.day__head h3 { font-size: 1.6rem; margin: 0; text-transform: uppercase; }
.day__head p { margin: 4px 0 0; color: var(--muted); font-weight: 600; }
.day ol { list-style: none; margin: 0; padding: 12px 28px; }
.day li { display: grid; grid-template-columns: 7.5em 1fr; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.day li:last-child { border-bottom: 0; }
.day time { font: 700 1rem/1.4 var(--head); color: var(--red); }
.day__foot { padding: 18px 28px; background: var(--bg-2); border-top: 1px solid var(--line); font-weight: 600; }

/* Numbers */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.stat { border-left: 3px solid var(--red); padding-left: 18px; }
.stat strong { display: block; font: 800 clamp(2.2rem, 5vw, 3.4rem)/1 var(--head); }
.stat span { color: var(--muted); font-weight: 500; }
@media (max-width: 760px) { .stats { grid-template-columns: 1fr 1fr; } }

.note { border-left: 3px solid var(--red); background: var(--bg-3); padding: 16px 20px; border-radius: 0 10px 10px 0; color: #ddd; }

/* CTA band + footer */
.cta-band { background: var(--bg-2); border-top: 1px solid var(--line); }
.cta-band__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; padding: 64px 0; }
.cta-band h2 { margin-bottom: .3em; }
.cta-band p { color: var(--muted); margin: 0; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.foot { border-top: 1px solid var(--line); padding: 56px 0 24px; font-size: .95rem; color: #cfcac8; }
.foot__grid { display: grid; grid-template-columns: 1.3fr 1fr 1.3fr 1fr; gap: 32px; }
.foot__grid img { margin-bottom: 12px; }
.foot h3 { font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; color: var(--red); margin-bottom: 1em; }
.foot a { text-decoration: none; }
.foot a:hover { text-decoration: underline; }
.foot__legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 44px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: .85rem; }
@media (max-width: 860px) { .foot__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .foot__grid { grid-template-columns: 1fr; } body { font-size: 16px; } }

.stack > * + * { margin-top: 18px; }
.center { text-align: center; }
.mt-l { margin-top: 44px; }
