:root {
  color-scheme: light;
  --ink-950: #10182a;
  --ink-800: #23314d;
  --text: #17213a;
  --muted: #63708a;
  --line: #dde3ec;
  --canvas: #ffffff;
  --canvas-strong: #eef2f7;
  --surface: #f5f7fa;
  --action: #245be8;
  --action-hover: #1947ba;
  --action-soft: #edf3ff;
  --tulip: #e15e8d;
  --leaf: #56b85c;
  --content: 1280px;
  --reading: 720px;
  --gutter: 24px;
  --section-space: clamp(72px, 9vw, 144px);
  --radius-xs: 4px;
  --radius-sm: 6px;
  --focus: 3px solid #245be8;
  --ease-out: cubic-bezier(.2, .75, .25, 1);
}

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

html {
  background: var(--canvas-strong);
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
  scroll-padding-bottom: calc(88px + env(safe-area-inset-bottom));
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--canvas-strong);
  color: var(--text);
  font-family: "Pretendard Variable", Pretendard, "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  font-size: 17px;
  line-height: 1.7;
  letter-spacing: -.015em;
  word-break: keep-all;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

button,
input,
select,
textarea {
  color: inherit;
  font: inherit;
}

a {
  color: inherit;
  text-underline-offset: .2em;
}

h1,
h2,
h3,
p,
figure {
  margin: 0;
}

h1,
h2,
h3 {
  color: var(--ink-950);
  letter-spacing: -.035em;
}

h1 {
  font-size: clamp(38px, 5vw, 72px);
  font-weight: 750;
  line-height: 1;
}

h2 {
  font-size: clamp(32px, 3.35vw, 48px);
  font-weight: 720;
  line-height: 1.15;
}

h3 {
  font-size: clamp(22px, 2.1vw, 28px);
  font-weight: 700;
  line-height: 1.25;
}

:where(a, button, input, select, textarea, summary):focus-visible {
  outline: var(--focus);
  outline-offset: 3px;
}

[hidden] {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  z-index: 2000;
  top: 10px;
  left: 10px;
  padding: 10px 14px;
  background: var(--ink-950);
  color: #fff;
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site,
.home-shell {
  width: min(100%, 1440px);
  max-width: 1440px;
  min-height: 100vh;
  margin-inline: auto;
  background: var(--canvas);
}

.wrap,
.content-grid {
  width: min(var(--content), calc(100% - 160px));
  margin-inline: auto;
}

.reading-width {
  width: min(var(--reading), 100%);
}

.section {
  padding-block: var(--section-space);
  border: 0;
  scroll-margin-top: 92px;
}

.section + .section {
  border-top: 1px solid var(--line);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 8fr) minmax(180px, 4fr);
  align-items: end;
  gap: var(--gutter);
  margin-bottom: clamp(32px, 4vw, 56px);
}

.section-heading > :last-child:not(:first-child) {
  justify-self: end;
}

.section-heading > p {
  max-width: 34ch;
  color: var(--muted);
  line-height: 1.7;
}

.eyebrow {
  display: block;
  margin-bottom: 12px;
  color: var(--action);
  font-size: 14px;
  font-weight: 750;
  letter-spacing: .02em;
}

.lead {
  max-width: 62ch;
  color: var(--muted);
  font-size: clamp(17px, 1.45vw, 20px);
  line-height: 1.65;
}

.btn,
.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--canvas);
  color: var(--ink-800);
  font-weight: 750;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  transition: color 180ms var(--ease-out), background 180ms var(--ease-out), border-color 180ms var(--ease-out), transform 180ms var(--ease-out);
}

.btn:hover,
.button:hover {
  border-color: #aeb9ca;
  transform: translateY(-1px);
}

.btn.primary,
.button-primary {
  border-color: var(--action);
  background: var(--action);
  color: #fff;
}

.btn.primary:hover,
.button-primary:hover {
  border-color: var(--action-hover);
  background: var(--action-hover);
}

.text-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 8px;
  color: var(--action-hover);
  font-weight: 750;
  text-decoration-thickness: 1px;
}

@media (max-width: 1199px) {
  :root {
    --content: 944px;
    --gutter: 20px;
    --section-space: clamp(80px, 9vw, 112px);
  }

  .wrap,
  .content-grid {
    width: min(var(--content), calc(100% - 80px));
  }

  h1 {
    font-size: clamp(48px, 5.45vw, 56px);
    line-height: 1.05;
  }

  h2 {
    font-size: clamp(36px, 3.9vw, 40px);
    line-height: 1.2;
  }
}

@media (max-width: 767px) {
  :root {
    --gutter: 12px;
    --section-space: clamp(72px, 20vw, 88px);
  }

  html {
    scroll-padding-top: 72px;
  }

  body {
    font-size: 16px;
    line-height: 1.7;
  }

  .wrap,
  .content-grid {
    width: calc(100% - 40px);
  }

  .section {
    scroll-margin-top: 72px;
  }

  .section-heading {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 32px;
  }

  .section-heading > :last-child:not(:first-child) {
    justify-self: start;
  }

  h1 {
    font-size: 42px;
    line-height: 1.09;
  }

  h2 {
    font-size: 32px;
    line-height: 1.22;
  }

  h3 {
    font-size: 22px;
    line-height: 1.32;
  }

  .btn,
  .button {
    min-height: 52px;
  }
}

@media (max-width: 374px) {
  .wrap,
  .content-grid {
    width: calc(100% - 32px);
  }

  h1 {
    font-size: 38px;
    line-height: 1.1;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}
