:root {
  --bg: #f6f6f3;
  --surface: #ffffff;
  --text: #1a1a1a;
  --text-soft: #333333;
  --muted: #6b7280;
  --border: #e5e7eb;
  --border-strong: #d1d5db;
  --accent: #d92121;
  --accent-dark: #a81818;
  --accent-soft: #fdecec;
  --neutral: #111827;
  --neutral-soft: #f3f4f6;
  --success: #16a34a;
  --radius: 6px;
  --radius-sm: 4px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

img, svg { max-width: 100%; }

.container {
  width: 100%;
  max-width: 880px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ===== Top notice bar ===== */
.notice-bar {
  background: var(--neutral);
  color: #fff;
  font-size: 0.85rem;
  text-align: center;
  padding: 8px 16px;
  letter-spacing: -0.01em;
}
.notice-bar strong { color: #ffd84d; font-weight: 700; margin-right: 4px; }

/* ===== Header ===== */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.site-header .container {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 14px;
  padding-bottom: 14px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 800;
  letter-spacing: -0.01em;
  font-size: 1.1rem;
  color: var(--text);
}
.brand-mark {
  width: 28px; height: 28px; flex: 0 0 28px;
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 800;
  font-size: 0.95rem;
}
.brand-sub {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.92rem;
}
.brand-tag {
  margin-left: auto;
  font-size: 0.78rem;
  color: var(--text-soft);
  border: 1px solid var(--border-strong);
  background: var(--surface);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
}

/* ===== Hero ===== */
.hero {
  padding: 28px 0 8px;
  text-align: center;
}
.hero h1 {
  margin: 0 0 10px;
  font-size: clamp(1.55rem, 4vw, 2rem);
  letter-spacing: -0.02em;
  line-height: 1.3;
  font-weight: 800;
  color: var(--text);
}
.hero h1 .accent { color: var(--accent); }
.hero p.lead {
  margin: 0 auto 16px;
  color: var(--text-soft);
  max-width: 620px;
  font-size: 0.98rem;
}
.status-row {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 0.88rem;
  color: var(--text);
}
.status-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--success);
}

/* ===== Site cards ===== */
.sites {
  padding: 18px 0 4px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
@media (min-width: 720px) {
  .sites { grid-template-columns: 1fr 1fr; gap: 14px; }
}

.site-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 18px;
  display: flex; flex-direction: column;
}
.site-card.primary { border-top: 3px solid var(--accent); }
.site-card.alt { border-top: 3px solid var(--neutral); }

.tag {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: 8px;
  width: fit-content;
}
.site-card.alt .tag {
  background: var(--neutral-soft);
  color: var(--neutral);
}

.site-card h2 {
  margin: 0 0 4px;
  font-size: 1.12rem;
  letter-spacing: -0.01em;
  font-weight: 700;
}
.site-card .url {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color: var(--text);
  font-size: 1rem;
  word-break: break-all;
  margin: 6px 0 10px;
  padding: 8px 10px;
  background: var(--neutral-soft);
  border-radius: var(--radius-sm);
}
.site-card .desc {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0 0 14px;
}

.btn-row {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-top: auto;
}

.cta {
  flex: 1 1 auto;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.98rem;
  letter-spacing: -0.01em;
  background: var(--accent);
  color: #fff;
  border: 1px solid var(--accent);
  transition: background-color 140ms ease, border-color 140ms ease;
  text-decoration: none;
}
.cta:hover {
  text-decoration: none;
  background: var(--accent-dark);
  border-color: var(--accent-dark);
}
.site-card.alt .cta {
  background: var(--neutral);
  border-color: var(--neutral);
}
.site-card.alt .cta:hover {
  background: #000;
  border-color: #000;
}

.copy-btn {
  flex: 0 0 auto;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9rem;
  background: var(--surface);
  color: var(--text-soft);
  border: 1px solid var(--border-strong);
  cursor: pointer;
  transition: border-color 140ms ease, color 140ms ease;
}
.copy-btn:hover { border-color: var(--accent); color: var(--accent); }
.site-card.alt .copy-btn:hover { border-color: var(--neutral); color: var(--neutral); }
.copy-btn.copied { border-color: var(--success); color: var(--success); }

/* ===== Generic content sections ===== */
section.block {
  margin: 22px 0;
  padding: 22px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
section.block h2 {
  margin: 0 0 10px;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  font-weight: 700;
  color: var(--text);
  padding-left: 10px;
  border-left: 3px solid var(--accent);
}
section.block p { margin: 0 0 10px; color: var(--text-soft); }
section.block p:last-child { margin-bottom: 0; }
section.block strong { color: var(--accent); font-weight: 700; }

ol.guide-list, ul.guide-list {
  margin: 6px 0 0; padding-left: 1.2em;
  color: var(--text-soft);
}
ol.guide-list li, ul.guide-list li { margin: 5px 0; }

.update-note {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.85rem;
}

/* ===== FAQ ===== */
.faq details {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  padding: 0 14px;
  margin-bottom: 8px;
}
.faq details[open] { border-color: var(--accent); }
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 13px 0;
  font-weight: 600;
  position: relative;
  padding-right: 28px;
  color: var(--text);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 4px; top: 50%;
  transform: translateY(-50%);
  font-size: 1.25rem;
  color: var(--accent);
  font-weight: 400;
}
.faq details[open] summary::after { content: "−"; }
.faq .a {
  padding: 10px 0 14px;
  color: var(--text-soft);
  border-top: 1px solid var(--border);
  margin-top: 0;
  line-height: 1.65;
}

/* ===== Footer ===== */
.site-footer {
  margin-top: 24px;
  padding: 22px 0 32px;
  border-top: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  font-size: 0.85rem;
  text-align: center;
}
.site-footer p { margin: 4px 0; }

/* ===== Reduced motion ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

/* ===== Focus styles for a11y ===== */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}
