:root {
  color-scheme: light;
  --primary: #0064ff;
  --primary-dark: #0050d8;
  --primary-soft: #eaf3ff;
  --primary-pressed: #0046c7;
  --background: #f7f9fc;
  --surface: #ffffff;
  --text: #0b1b3a;
  --secondary: #6b7280;
  --border: #e5edf7;
  --gray-100: #f2f6fc;
  --gray-300: #d7e1ef;
  --success: #22c55e;
  --success-soft: #e9f9ef;
  --warning-bg: #fff7e5;
  --warning: #f59e0b;
  --error: #ef4444;
  --error-soft: #ffeeee;
  --radius: 16px;
  --radius-button: 12px;
  --shadow-card: 0 8px 24px rgba(11, 27, 58, 0.06);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: Pretendard, "Apple SD Gothic Neo", "Noto Sans KR", Roboto, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--primary-dark); text-underline-offset: 3px; }
a:hover { color: var(--primary-pressed); }
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 3px solid #bfdbfe;
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: var(--radius-button);
  background: var(--navy, #0b1b3a);
  color: #fff;
  font-weight: 800;
  transform: translateY(-160%);
}
.skip-link:focus { transform: translateY(0); color: #fff; }

.site-header {
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.header-inner, main, .footer-inner {
  width: min(100% - 32px, 880px);
  margin: 0 auto;
}

.header-inner {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  color: var(--text);
  font-weight: 800;
  text-decoration: none;
  letter-spacing: -0.02em;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 100, 255, 0.18);
}
.brand-name { white-space: nowrap; }

.header-label { color: var(--secondary); font-size: 14px; }

main { padding: 48px 0 72px; }

.hero, .card, .policy-section, .notice {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}

.hero { padding: clamp(24px, 5vw, 48px); }

.eyebrow {
  color: var(--primary);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

h1, h2, h3 { line-height: 1.35; letter-spacing: -0.025em; overflow-wrap: anywhere; }
h1 { margin: 8px 0 12px; font-size: clamp(30px, 6vw, 40px); font-weight: 800; }
h2 { margin: 0 0 16px; font-size: 22px; }
h3 { margin: 24px 0 8px; font-size: 17px; }
p { margin: 0 0 14px; }
ul, ol { padding-left: 22px; }
li::marker { color: var(--primary); }

.draft-banner {
  margin-bottom: 24px;
  padding: 16px 18px;
  color: var(--warning);
  background: var(--warning-bg);
  border: 1px solid #fed7aa;
  border-radius: 12px;
  font-weight: 700;
}

.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.card { padding: 24px; transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease; }
.card:hover { border-color: #bfdbfe; transform: translateY(-2px); box-shadow: 0 12px 28px rgba(11, 27, 58, 0.09); }
.card h2 { font-size: 18px; }
.card p { color: var(--secondary); }
.card a { font-weight: 750; }

.policy-section { margin-top: 18px; padding: clamp(20px, 4vw, 32px); }
.policy-section li + li { margin-top: 6px; }

.notice {
  margin-top: 18px;
  padding: 18px;
  background: var(--primary-soft);
  border-color: #bfdbfe;
}

.meta { color: var(--secondary); font-size: 14px; }
.placeholder {
  color: #b42318;
  font-weight: 750;
  overflow-wrap: anywhere;
}

.deletion-form { display: grid; gap: 10px; margin-top: 22px; }
.deletion-form label { font-weight: 750; }
.deletion-form input:not([type="checkbox"]) {
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  font: inherit;
}
.deletion-form input:focus { border-color: var(--primary); }
.confirmation-row { display: flex; align-items: flex-start; gap: 10px; margin: 10px 0; font-weight: 500 !important; }
.confirmation-row input { width: 20px; height: 20px; margin-top: 3px; flex: 0 0 auto; }
.danger-button {
  min-height: 56px;
  border: 0;
  border-radius: var(--radius-button);
  background: var(--error);
  color: #fff;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}
.danger-button:hover { background: #dc2626; }
.danger-button:disabled { opacity: 0.55; cursor: wait; }
.form-status { min-height: 28px; margin: 4px 0 0; font-weight: 700; overflow-wrap: anywhere; }
.form-status[data-state="error"] { color: #b42318; background: var(--error-soft); padding: 10px 12px; border-radius: var(--radius-button); }
.form-status[data-state="success"] { color: #067647; background: var(--success-soft); padding: 10px 12px; border-radius: var(--radius-button); }

.site-footer { border-top: 1px solid var(--border); background: var(--surface); }
.footer-inner { padding: 28px 0 40px; color: var(--secondary); font-size: 14px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 12px 18px; margin-bottom: 14px; }

@media (max-width: 640px) {
  .header-label { display: none; }
  .header-inner, main, .footer-inner { width: min(100% - 32px, 880px); }
  main { padding: 24px 0 48px; }
  .grid { grid-template-columns: 1fr; }
  .hero { padding: 24px; }
  .policy-section { padding: 20px; }
  .brand-mark { width: 32px; height: 32px; border-radius: 8px; }
  .brand-name { font-size: 15px; }
}

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