:root {
  color-scheme: light;
  --bg: #faf8f6;
  --surface: #fffaf7;
  --surface-strong: #ffffff;
  --text: #25211f;
  --muted: #655d58;
  --soft: #8a7d74;
  --brand: #c45a2c;
  --brand-dark: #a34821;
  --line: #e8dfd8;
}

html,
body {
  width: 100%;
  min-height: 100%;
  margin: 0;
  padding: 0;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family:
    "NotoSansKR",
    "Noto Sans KR",
    "Apple SD Gothic Neo",
    "Malgun Gothic",
    "NanumGothic",
    sans-serif;
}

* {
  box-sizing: border-box;
}

a {
  color: inherit;
}

.seo-page {
  min-height: 100vh;
  background:
    linear-gradient(180deg, #fff8f4 0%, #faf8f6 42%, #f6efe9 100%);
}

.seo-shell {
  width: min(100%, 1040px);
  margin: 0 auto;
  padding: 28px 22px 72px;
}

.seo-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 54px;
}

.seo-logo {
  color: var(--text);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-decoration: none;
  text-transform: lowercase;
}

.seo-nav {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--muted);
  font-size: 14px;
  white-space: nowrap;
}

.seo-nav a {
  text-decoration: none;
}

.seo-hero {
  padding: 76px 0 48px;
}

.seo-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 11px;
  border: 1px solid rgba(196, 90, 44, 0.18);
  border-radius: 999px;
  background: rgba(196, 90, 44, 0.08);
  color: var(--brand-dark);
  font-size: 13px;
  font-weight: 700;
}

.seo-title {
  max-width: 840px;
  margin: 18px 0 18px;
  color: var(--text);
  font-size: clamp(38px, 7vw, 72px);
  font-weight: 760;
  line-height: 1.06;
  letter-spacing: 0;
}

.seo-lead {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.72;
}

.seo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.seo-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--brand);
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.seo-button.secondary {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.78);
  color: var(--text);
}

.seo-section {
  padding: 34px 0;
  border-top: 1px solid var(--line);
}

.seo-section h2 {
  margin: 0 0 16px;
  color: var(--text);
  font-size: 26px;
  line-height: 1.32;
  letter-spacing: 0;
}

.seo-section p {
  max-width: 760px;
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.74;
}

.seo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.seo-card {
  min-height: 148px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.seo-card h3 {
  margin: 0 0 10px;
  color: var(--text);
  font-size: 17px;
  line-height: 1.4;
  letter-spacing: 0;
}

.seo-card p,
.seo-card li {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.66;
}

.seo-card p {
  margin: 0;
}

.seo-card ul {
  margin: 0;
  padding-left: 18px;
}

.seo-link-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.seo-chip {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--muted);
  font-size: 13px;
  text-decoration: none;
}

.seo-footer {
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--soft);
  font-size: 13px;
  line-height: 1.7;
}

#boot-splash {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 14px;
  background: rgba(250, 248, 246, 0.92);
  backdrop-filter: blur(2px);
  transition: opacity 220ms ease;
}

#boot-splash.hidden,
#seo-fallback.hidden {
  opacity: 0;
  pointer-events: none;
}

.boot-spinner {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 3px solid rgba(196, 90, 44, 0.2);
  border-top-color: var(--brand);
  animation: boot-spin 0.85s linear infinite;
}

.boot-label {
  color: var(--muted);
  font-size: 13px;
}

@keyframes boot-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 760px) {
  .seo-shell {
    padding: 20px 18px 52px;
  }

  .seo-top {
    align-items: flex-start;
    flex-direction: column;
  }

  .seo-nav {
    flex-wrap: wrap;
    gap: 10px 14px;
    white-space: normal;
  }

  .seo-hero {
    padding: 48px 0 34px;
  }

  .seo-lead {
    font-size: 16px;
  }

  .seo-grid {
    grid-template-columns: 1fr;
  }
}
