/* Hanpan Taekwondo — single-page site */

@font-face {
  font-family: "Hanpan Rock";
  /* 상상토끼 정묵바위, subset to 한판태권도 only */
  src: url("../assets/fonts/hanpan-rock.woff2") format("woff2");
  font-display: swap;
}

:root {
  --ink: #141414;
  --paper: #ffffff;
  --accent: #b8261f;
  --muted: #55524c;
  --rule: #e6e3dd;
  --night-text: #d4d1cb;
  --night-eyebrow: #e9a19b;

  --font-brush: "Hanpan Rock", "Song Myung", serif;
  --font-display: "Cinzel", Georgia, serif;
  --font-seal: "Song Myung", serif;
  --font-body: "IBM Plex Sans", system-ui, sans-serif;

  --max: 1200px;
  --gutter: 24px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* The black band runs to the bottom of the screen on tall displays */
main {
  flex: 1;
  display: flex;
  flex-direction: column;
}

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

/* Header */

.site-header { border-bottom: 1px solid var(--rule); }

.site-header__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 18px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-seal);
  font-size: 13px;
  line-height: 1;
  border-radius: 3px;
}

.site-header__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.22em;
}

/* Hero */

.hero__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 72px var(--gutter) 104px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  text-align: center;
}

.hero__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(22px, 3.2vw, 34px);
  letter-spacing: 0.3em;
  margin-right: -0.3em; /* re-center tracked text */
  line-height: 1.2;
}

.hero__tagline {
  margin: 0;
  max-width: 560px;
  font-size: 18px;
  color: var(--muted);
}

/* Logo — sized in container units so it scales as one piece */

.logo {
  position: relative;
  width: min(560px, 88vw);
  aspect-ratio: 1 / 1;
  container-type: inline-size;
}

.logo__ink {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.logo__mark {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo__lockup {
  display: flex;
  align-items: flex-end;
  gap: 2cqw;
}

.logo__word {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-family: var(--font-brush);
  font-size: 36.67cqw;
  line-height: 0.95;
  color: var(--ink);
  -webkit-text-stroke: 2cqw var(--paper);
  paint-order: stroke fill;
}

.seal {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 9cqw;
  margin-bottom: 4.67cqw;
  padding: 1.5cqw 0;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-seal);
  font-size: 4cqw;
  line-height: 1.15;
  border-radius: 3px;
  box-shadow: 0 0 0 0.67cqw var(--paper);
}

/* What Hanpan means */

.meaning {
  flex: 1;
  background: var(--ink);
  color: #fff;
}

.meaning__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 96px var(--gutter);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 48px;
}

.meaning__word {
  flex: 1 1 320px;
  margin: 0;
  font-family: var(--font-brush);
  font-size: clamp(96px, 14vw, 180px);
  line-height: 0.9;
}

.meaning__text {
  flex: 2 1 420px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.eyebrow {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--night-eyebrow);
}

.meaning__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(28px, 3.4vw, 42px);
  line-height: 1.2;
}

.meaning__body {
  margin: 0;
  max-width: 620px;
  color: var(--night-text);
}

/* Small screens */

@media (max-width: 600px) {
  .site-header__name { font-size: 13px; letter-spacing: 0.16em; }
  .hero__inner { padding: 48px var(--gutter) 72px; gap: 22px; }
  .meaning__inner { padding: 72px var(--gutter); gap: 24px; }
  .meaning__text { flex-basis: 100%; }
}
