@font-face {
  font-family: "Space Grotesk";
  src: url("../fonts/space-grotesk-latin-wght-normal.woff2") format("woff2-variations");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2190-2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "JetBrains Mono";
  src: url("../fonts/jetbrains-mono-latin-wght-normal.woff2") format("woff2-variations");
  font-weight: 100 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2190-2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --ink: #121212;
  --paper: #FAFAFA;
  --phi: 1.618;

  --font-display: "Space Grotesk", "Pretendard Variable", "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --t-label: 0.75rem;
  --t-small: 0.875rem;
  --t-body: 1rem;
  --t-lead: clamp(1.125rem, 0.9rem + 0.6vw, 1.272rem);
  --t-h2: clamp(1.618rem, 1.1rem + 2.2vw, 2.618rem);
  --t-h1: clamp(2.058rem, 1.2rem + 3.9vw, 4.236rem);
  --t-display: clamp(2.618rem, 0.9rem + 7.4vw, 6.854rem);

  --s-1: 2px;
  --s-2: 3px;
  --s-3: 5px;
  --s-4: 8px;
  --s-5: 13px;
  --s-6: 21px;
  --s-7: 34px;
  --s-8: 55px;
  --s-9: 89px;
  --s-10: 144px;
  --s-11: 233px;

  --measure: 610px;
  --wide: 987px;
  --max: 1440px;
  --gutter: clamp(21px, 5vw, 55px);
  --section: clamp(89px, 11vw, 144px);

  --d-1: 89ms;
  --d-2: 144ms;
  --d-3: 233ms;
  --d-4: 377ms;
  --d-5: 610ms;
  --d-6: 987ms;
  --ease-leap: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-std: cubic-bezier(0.2, 0, 0, 1);

  --glow-filter: drop-shadow(0 0 2px rgba(250, 250, 250, 0.95)) drop-shadow(0 0 9px rgba(250, 250, 250, 0.55)) drop-shadow(0 0 21px rgba(250, 250, 250, 0.25));
  --glow-shadow: 0 0 2px 1px rgba(250, 250, 250, 0.9), 0 0 9px 2px rgba(250, 250, 250, 0.5), 0 0 21px 5px rgba(250, 250, 250, 0.22);
}

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

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

body {
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--t-body);
  font-weight: 400;
  line-height: var(--phi);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, p, ol, ul, figure, blockquote, dl, dd { margin: 0; }
ol, ul { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }

.surface-ink {
  --fg: var(--paper);
  --bg: var(--ink);
  --muted: rgba(250, 250, 250, 0.62);
  --line: rgba(250, 250, 250, 0.14);
  background: var(--bg);
  color: var(--fg);
}

.surface-paper {
  --fg: var(--ink);
  --bg: var(--paper);
  --muted: rgba(18, 18, 18, 0.62);
  --line: rgba(18, 18, 18, 0.12);
  background: var(--bg);
  color: var(--fg);
}

::selection { background: var(--fg, var(--ink)); color: var(--bg, var(--paper)); }

:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

.label {
  font-family: var(--font-mono);
  font-size: var(--t-label);
  font-weight: 500;
  letter-spacing: 0.08em;
  line-height: 1.4;
  text-transform: uppercase;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
}

.mono { font-family: var(--font-mono); }

.rule {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 0;
}

.wordmark {
  display: block;
  height: var(--s-6);
  width: auto;
  color: currentColor;
  overflow: visible;
}

.dot {
  display: inline-block;
  width: 0.24em;
  height: 0.24em;
  border-radius: 30%;
  background: currentColor;
  vertical-align: 0.12em;
}

[data-glow].dot, .dot[data-glow] { box-shadow: var(--glow-shadow); }
svg [data-glow] { filter: var(--glow-filter); }

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

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 1ms !important;
    animation-delay: 0ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
    scroll-behavior: auto !important;
  }
}
