:root {
  color-scheme: light dark;
  --brand-navy: #061b46;
  --brand-blue: #176bff;
  --brand-cyan: #20c7e4;
  --brand-gray: #7c8491;
  --white: #ffffff;
  --background: #f4f7fb;
  --surface: #ffffff;
  --surface-soft: #eef4ff;
  --text: #061b46;
  --text-secondary: #4f5d70;
  --border: #dbe4f0;
  --success: #137a4b;
  --warning: #9a5a00;
  --danger: #b42318;
  --focus: #20c7e4;
  --shadow-soft: 0 12px 36px rgb(6 27 70 / 10%);
  --shadow-strong: 0 18px 50px rgb(6 27 70 / 16%);
  --radius-small: 10px;
  --radius-medium: 16px;
  --radius-large: 24px;
  --content-wide: 1120px;
  --content-reading: 760px;
  --store-width: 480px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: #050e21;
    --surface: #0d2147;
    --surface-soft: #142d5a;
    --text: #f6f9ff;
    --text-secondary: #bac7dc;
    --border: #29456f;
    --success: #55d79a;
    --warning: #ffc46b;
    --danger: #ff8a80;
    --shadow-soft: 0 12px 36px rgb(0 0 0 / 24%);
    --shadow-strong: 0 18px 50px rgb(0 0 0 / 34%);
  }
}

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

html {
  min-width: 320px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--background);
  font-family:
    Pretendard,
    "Noto Sans KR",
    "Apple SD Gothic Neo",
    "Malgun Gothic",
    system-ui,
    sans-serif;
  font-size: 16px;
  line-height: 1.65;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

a {
  color: var(--brand-blue);
  text-underline-offset: 0.2em;
}

a,
button,
summary {
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgb(23 107 255 / 18%);
}

a:hover {
  text-decoration-thickness: 2px;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

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

button,
summary {
  cursor: pointer;
}

h1,
h2,
h3,
p,
figure,
dl,
dd {
  margin-top: 0;
}

h1,
h2,
h3 {
  color: var(--text);
  line-height: 1.25;
  letter-spacing: -0.035em;
}

h1 {
  font-size: clamp(2rem, 7vw, 3.75rem);
}

h2 {
  font-size: clamp(1.5rem, 4vw, 2.25rem);
}

h3 {
  font-size: 1.125rem;
}

address {
  font-style: normal;
}

ul,
ol {
  padding-left: 1.25rem;
}

li + li {
  margin-top: 0.45rem;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1000;
  padding: 10px 14px;
  border-radius: var(--radius-small);
  color: var(--white);
  background: var(--brand-navy);
  font-weight: 700;
  transform: translateY(-160%);
  transition: transform 160ms ease;
}

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

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

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  color: var(--text);
  text-decoration: none;
}

.brand-name {
  display: inline-block;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.025em;
}

.brand-name::first-letter {
  color: var(--brand-blue);
}

.brand-name-korean {
  color: var(--text-secondary);
  font-size: 0.75rem;
}

.eyebrow {
  margin-bottom: 0.55rem;
  color: var(--brand-blue);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.primary-action,
.secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.75rem 1.2rem;
  border: 1px solid transparent;
  border-radius: 12px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
}

.primary-action {
  color: var(--white);
  background: var(--brand-blue);
}

.secondary-action {
  border-color: var(--border);
  color: var(--text);
  background: var(--surface);
}

.primary-action:hover,
.secondary-action:hover {
  text-decoration: none;
}

@media (hover: hover) and (pointer: fine) {
  .primary-action:hover,
  .secondary-action:hover {
    transform: translateY(-1px);
  }
}

.media-placeholder {
  display: grid;
  place-items: center;
  min-height: 150px;
  color: rgb(255 255 255 / 86%);
  background:
    linear-gradient(145deg, rgb(6 27 70 / 12%), rgb(6 27 70 / 55%)),
    linear-gradient(125deg, var(--brand-cyan), var(--brand-blue) 50%, var(--brand-navy));
  font-size: 0.875rem;
  font-weight: 700;
}

details {
  border-top: 1px solid var(--border);
}

[hidden] {
  display: none !important;
}

summary {
  min-height: 48px;
  padding: 0.75rem 0;
  color: var(--text);
  font-weight: 700;
}

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

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