/* ===========================================================================
   Golden Fist Karate Club — design system
   Palette: warm crimson + achievement gold on deep ink (per CLAUDE-DESIGN.md)
   Type: Anton (hero impact) · Oswald (headings) · Inter (body)
   Photo treatment: crimson-on-ink duotone + grain to unify low-res heritage media
   =========================================================================== */

:root {
  /* palette */
  --bg: #0F1115;            /* deep ink base */
  --bg-2: #14171D;          /* alt ink */
  --surface: #1A1D24;       /* raised dark card */
  --surface-light: #F6F4EF; /* warm off-white sections */
  --paper: #FBFAF6;         /* lightest warm paper */
  --text-dark: #15171C;     /* text on light */
  --text-light: #F4F2EE;    /* text on dark */
  --muted: #6B7280;         /* secondary on light */
  --muted-dark: #9AA1AD;    /* secondary on dark */
  --primary: #CE1A28;       /* Golden Fist crimson */
  --primary-700: #A8121E;
  --secondary: #E0B23C;     /* achievement gold */
  --secondary-600: #C9982A;
  --accent: #CE1A28;        /* single CTA colour */
  --border-light: #E4DFD6;
  --border-dark: #2A2E37;
  --focus: #E0B23C;

  --maxw: 1200px;
  --radius: 4px;
  --radius-lg: 8px;
  --ease: cubic-bezier(.2,.7,.2,1);

  --font-display: 'Anton', 'Oswald', sans-serif;
  --font-head: 'Oswald', 'Arial Narrow', sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 76px; }

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text-dark);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

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

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

button { font-family: inherit; cursor: pointer; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  border-radius: 2px;
}

/* ---------- layout ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
@media (max-width: 640px) { .wrap { padding: 0 18px; } }

.section { padding: 88px 0; }
.section--tight { padding: 64px 0; }
@media (max-width: 760px) { .section { padding: 56px 0; } .section--tight { padding: 44px 0; } }

.bg-ink { background: var(--bg); color: var(--text-light); }
.bg-ink-2 { background: var(--bg-2); color: var(--text-light); }
.bg-light { background: var(--surface-light); color: var(--text-dark); }
.bg-paper { background: var(--paper); color: var(--text-dark); }

/* ---------- type ---------- */
.eyebrow {
  font-family: var(--font-head);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .22em;
  font-size: 13px;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
}
.eyebrow::before {
  content: "";
  width: 28px; height: 2px;
  background: var(--secondary);
}
.eyebrow--center { justify-content: center; }
.eyebrow--light { color: var(--secondary); }

.h-display {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: .92;
  letter-spacing: .01em;
  text-transform: uppercase;
  margin: 0;
}
.h1 { font-family: var(--font-head); font-weight: 700; line-height: 1.02; text-transform: uppercase; letter-spacing: .005em; margin: 0; font-size: clamp(34px, 6vw, 64px); }
.h2 { font-family: var(--font-head); font-weight: 700; line-height: 1.05; text-transform: uppercase; letter-spacing: .01em; margin: 0; font-size: clamp(28px, 4.4vw, 46px); }
.h3 { font-family: var(--font-head); font-weight: 600; line-height: 1.1; text-transform: uppercase; letter-spacing: .02em; margin: 0; font-size: clamp(20px, 2.6vw, 26px); }
.lede { font-size: clamp(17px, 2.1vw, 21px); line-height: 1.55; color: inherit; opacity: .9; margin: 0; }
.body { font-size: 16.5px; line-height: 1.65; }
.muted { color: var(--muted); }
.bg-ink .muted, .bg-ink-2 .muted { color: var(--muted-dark); }
.gold { color: var(--secondary); }
.crimson { color: var(--primary); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--font-head); font-weight: 600; text-transform: uppercase;
  letter-spacing: .06em; font-size: 15px;
  padding: 15px 26px; border: 2px solid transparent; border-radius: var(--radius);
  transition: transform .15s var(--ease), background .2s var(--ease), box-shadow .2s var(--ease);
  white-space: nowrap; line-height: 1;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--accent); color: #fff; box-shadow: 0 10px 24px -10px rgba(206,26,40,.7); }
.btn--primary:hover { background: var(--primary-700); box-shadow: 0 14px 30px -10px rgba(206,26,40,.85); }
.btn--gold { background: var(--secondary); color: #1c1404; }
.btn--gold:hover { background: var(--secondary-600); }
.btn--outline { background: transparent; border-color: currentColor; color: inherit; }
.btn--outline:hover { background: rgba(255,255,255,.08); }
.btn--ghost-dark { background: transparent; border-color: var(--border-light); color: var(--text-dark); }
.btn--ghost-dark:hover { border-color: var(--text-dark); }
.btn--wa { background: #1FA855; color: #fff; }
.btn--wa:hover { background: #178a45; }
.btn--lg { padding: 18px 32px; font-size: 16px; }
.btn--block { width: 100%; }
.btn svg { width: 18px; height: 18px; }

/* ---------- photo duotone treatment ---------- */
.photo { position: relative; overflow: hidden; background: var(--bg-2); isolation: isolate; }
.photo > img { width: 100%; height: 100%; object-fit: cover; display: block;
  filter: grayscale(1) contrast(1.06) brightness(.92); }
.photo::before {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(150deg, rgba(206,26,40,.55), rgba(15,17,21,.62) 60%, rgba(224,178,60,.30));
  mix-blend-mode: multiply;
}
.photo::after {
  content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none; opacity: .5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}
.photo--plain > img { filter: grayscale(.15) contrast(1.02); }
.photo--plain::before { background: linear-gradient(180deg, rgba(15,17,21,0) 55%, rgba(15,17,21,.45)); mix-blend-mode: normal; }
.photo--soft::before { opacity: .8; }

/* low-res flag tag */
.lowres-flag {
  position: absolute; z-index: 4; left: 8px; bottom: 8px;
  font-family: var(--font-body); font-size: 10px; letter-spacing: .04em;
  background: rgba(15,17,21,.78); color: var(--secondary);
  border: 1px solid rgba(224,178,60,.4); padding: 3px 7px; border-radius: 3px;
}

/* ---------- card ---------- */
.card { background: var(--surface-light); border: 1px solid var(--border-light); border-radius: var(--radius-lg); }
.card-dark { background: var(--surface); border: 1px solid var(--border-dark); border-radius: var(--radius-lg); }

/* ---------- reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* ---------- divider chop ---------- */
.chop { height: 6px; background:
  repeating-linear-gradient(135deg, var(--primary) 0 18px, var(--secondary) 18px 24px, var(--primary) 24px 42px); }
