:root {
  color-scheme: light;

  /* Brand colors */
  --th-color-ink: #1f2933;
  --th-color-ink-strong: #17202a;
  --th-color-muted: #59636e;
  --th-color-subtle: #64748b;
  --th-color-line: #eaded2;
  --th-color-line-cool: #d9e0e8;
  --th-color-bg: #fffaf5;
  --th-color-bg-soft: #fff7f0;
  --th-color-bg-panel: #ffffff;
  --th-color-bg-tint: #fff1e5;
  --th-color-accent: #ff6b00;
  --th-color-accent-dark: #c94f00;
  --th-color-green: #16866f;
  --th-color-green-dark: #0e5a4f;
  --th-color-green-soft: #e6f7f3;
  --th-color-focus: #2563eb;
  --th-color-white: #ffffff;

  /* Typography */
  --th-font-sans: "Pretendard", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", "Segoe UI", Arial, sans-serif;
  --th-font-size-xs: 12px;
  --th-font-size-sm: 14px;
  --th-font-size-md: 16px;
  --th-font-size-lg: 18px;
  --th-font-size-xl: 22px;
  --th-font-size-2xl: 28px;
  --th-font-size-3xl: 36px;
  --th-font-size-hero: clamp(42px, 5vw, 64px);
  --th-type-display-size: clamp(42px, 5vw, 64px);
  --th-type-heading-1-size: clamp(32px, 4vw, 44px);
  --th-type-heading-2-size: 28px;
  --th-type-heading-3-size: 22px;
  --th-type-body-large-size: 18px;
  --th-type-body-size: 16px;
  --th-type-body-small-size: 15px;
  --th-type-caption-size: 14px;
  --th-type-label-size: 13px;
  --th-line-tight: 1.18;
  --th-line-base: 1.55;
  --th-line-loose: 1.65;
  --th-weight-regular: 500;
  --th-weight-medium: 620;
  --th-weight-bold: 750;
  --th-weight-heavy: 900;

  /* Layout */
  --th-container: 1120px;
  --th-page-gutter: 40px;
  --th-section-y: 76px;
  --th-section-y-mobile: 56px;
  --th-gap-xs: 8px;
  --th-gap-sm: 12px;
  --th-gap-md: 18px;
  --th-gap-lg: 24px;
  --th-gap-xl: 34px;
  --th-gap-2xl: 54px;

  /* Shape and elevation */
  --th-radius-sm: 6px;
  --th-radius-md: 8px;
  --th-radius-pill: 999px;
  --th-shadow-card: 0 10px 30px rgba(15, 23, 42, 0.05);
  --th-shadow-panel: 0 22px 54px rgba(15, 23, 42, 0.11);
  --th-shadow-button: 0 12px 28px rgba(255, 107, 0, 0.22);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--th-color-bg);
  color: var(--th-color-ink);
  font-family: var(--th-font-sans);
  letter-spacing: 0;
}

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

img {
  max-width: 100%;
  height: auto;
}

:focus-visible {
  outline: 2px solid var(--th-color-focus);
  outline-offset: 2px;
}

.th-container {
  width: calc(100% - var(--th-page-gutter));
  max-width: var(--th-container);
  margin: 0 auto;
}

.th-section {
  padding: var(--th-section-y) 0;
}

.th-section-soft {
  background: var(--th-color-bg-soft);
  border-top: 1px solid var(--th-color-line);
  border-bottom: 1px solid var(--th-color-line);
}

.th-section-dark {
  background: var(--th-color-ink-strong);
  color: var(--th-color-white);
}

.th-section-title {
  max-width: 760px;
  margin-bottom: var(--th-gap-xl);
}

.th-eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: var(--th-radius-pill);
  background: #fff0e2;
  color: var(--th-color-accent-dark);
  font-size: 15px;
  font-weight: var(--th-weight-heavy);
}

.th-kicker {
  margin: 0 0 10px;
  color: var(--th-color-accent-dark);
  font-size: var(--th-font-size-md);
  font-weight: var(--th-weight-heavy);
}

.th-display,
.th-heading-1,
.th-heading-2,
.th-heading-3,
.th-h1,
.th-h2,
.th-h3 {
  margin: 0;
  letter-spacing: 0;
}

.th-display,
.th-h1 {
  font-size: var(--th-type-display-size);
  line-height: 1.08;
  font-weight: var(--th-weight-heavy);
}

.th-heading-1,
.th-h2 {
  font-size: var(--th-type-heading-1-size);
  line-height: var(--th-line-tight);
  font-weight: var(--th-weight-heavy);
}

.th-heading-2 {
  font-size: var(--th-type-heading-2-size);
  line-height: 1.25;
  font-weight: var(--th-weight-heavy);
}

.th-heading-3,
.th-h3 {
  font-size: var(--th-type-heading-3-size);
  line-height: 1.3;
  font-weight: var(--th-weight-heavy);
}

.th-body-large,
.th-body-lg {
  margin: 16px 0 0;
  color: var(--th-color-muted);
  font-size: var(--th-type-body-large-size);
  line-height: var(--th-line-loose);
  font-weight: var(--th-weight-medium);
}

.th-body {
  margin: 0;
  color: var(--th-color-muted);
  font-size: var(--th-type-body-size);
  line-height: 1.62;
  font-weight: 590;
}

.th-body-small {
  margin: 0;
  color: var(--th-color-muted);
  font-size: var(--th-type-body-small-size);
  line-height: 1.58;
  font-weight: var(--th-weight-medium);
}

.th-caption,
.th-note {
  margin: 16px 0 0;
  color: var(--th-color-subtle);
  font-size: var(--th-type-caption-size);
  line-height: 1.5;
  font-weight: var(--th-weight-medium);
}

.th-label {
  color: inherit;
  font-size: var(--th-type-label-size);
  line-height: 1.35;
  font-weight: var(--th-weight-heavy);
}

.th-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: var(--th-radius-md);
  background: var(--th-color-accent);
  color: var(--th-color-white);
  font-size: 15px;
  font-weight: 850;
  box-shadow: var(--th-shadow-button);
  white-space: nowrap;
}

.th-button:hover,
.th-button:focus-visible {
  background: var(--th-color-accent-dark);
}

.th-button-secondary {
  background: transparent;
  color: var(--th-color-ink);
  border-color: #dfcab8;
  box-shadow: none;
}

.th-button-secondary:hover,
.th-button-secondary:focus-visible {
  background: #fff1e5;
  color: var(--th-color-ink);
}

.th-button-dark {
  background: var(--th-color-ink);
  color: var(--th-color-white);
  box-shadow: 0 10px 26px rgba(31, 41, 51, 0.14);
}

.th-card {
  background: var(--th-color-bg-panel);
  border: 1px solid var(--th-color-line);
  border-radius: var(--th-radius-md);
  padding: 26px;
  box-shadow: var(--th-shadow-card);
}

.th-card-flat {
  box-shadow: none;
}

.th-grid-2,
.th-grid-3,
.th-grid-4 {
  display: grid;
  gap: var(--th-gap-md);
}

.th-grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.th-grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.th-grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.th-tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 9px;
  border-radius: var(--th-radius-pill);
  background: var(--th-color-green-soft);
  color: var(--th-color-green-dark);
  font-size: var(--th-font-size-xs);
  font-weight: var(--th-weight-heavy);
  white-space: nowrap;
}

.th-stat-number {
  color: var(--th-color-accent-dark);
  font-size: 44px;
  line-height: 1;
  font-weight: 950;
}

@media (max-width: 900px) {
  html,
  body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  .th-container {
    width: calc(100vw - 40px);
    margin-left: 14px;
    margin-right: 26px;
  }

  .th-section {
    padding: var(--th-section-y-mobile) 0;
  }

  .th-grid-2,
  .th-grid-3,
  .th-grid-4 {
    grid-template-columns: 1fr;
  }

  .th-display,
  .th-h1 {
    font-size: 34px;
    line-height: 1.12;
  }

  .th-heading-1,
  .th-h2 {
    font-size: 27px;
    line-height: 1.22;
  }

  .th-body-lg {
    font-size: var(--th-font-size-md);
  }
}
