:root {
  --bg: #faf9f7;
  --surface: #ffffff;
  --text: #1f2320;
  --muted: #6b7269;
  --border: #e4e1da;
  --accent: #2f5b48;
  --accent-contrast: #ffffff;
  --danger: #a4453a;
  --radius: 10px;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Apple SD Gothic Neo",
    "Noto Sans KR", Pretendard, Arial, sans-serif;
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.wrap {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: 0 20px;
}

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

a:hover {
  text-decoration: underline;
}

.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  flex-wrap: wrap;
  gap: 10px;
}

.brand {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.92rem;
}

.lang-switch {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px 12px;
}

main {
  flex: 1;
  padding: 32px 20px 48px;
}

h1 {
  font-size: 1.6rem;
  margin: 0 0 12px;
}

h2 {
  font-size: 1.2rem;
  margin: 32px 0 12px;
}

p {
  margin: 0 0 12px;
  color: var(--text);
}

.muted {
  color: var(--muted);
}

.badge {
  display: inline-block;
  background: var(--accent);
  color: var(--accent-contrast);
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 0.82rem;
  margin-bottom: 16px;
}

.notice {
  background: #f2efe7;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 16px;
  margin: 16px 0;
  font-size: 0.92rem;
}

.notice.notice-warn {
  background: #f6ede9;
  border-color: #e6cfc4;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 16px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin: 20px 0 32px;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
}

.feature-card h3 {
  margin: 0 0 8px;
  font-size: 1.02rem;
}

.feature-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.btn {
  display: inline-block;
  background: var(--accent);
  color: var(--accent-contrast);
  border: none;
  border-radius: 999px;
  padding: 10px 22px;
  font-size: 0.95rem;
  cursor: pointer;
}

.btn:hover {
  opacity: 0.92;
  text-decoration: none;
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-danger {
  background: var(--danger);
}

form.stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 480px;
}

label {
  font-size: 0.88rem;
  color: var(--muted);
  margin-bottom: 4px;
  display: block;
}

input[type="text"],
input[type="url"],
input[type="datetime-local"],
input[type="search"],
select,
textarea {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: inherit;
  background: var(--surface);
  color: var(--text);
}

textarea {
  min-height: 100px;
  resize: vertical;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0;
  font-size: 0.9rem;
}

th, td {
  text-align: left;
  padding: 10px 8px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

th {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.82rem;
}

.status-pill {
  display: inline-block;
  border-radius: 999px;
  padding: 2px 10px;
  font-size: 0.78rem;
  background: var(--border);
}

.status-published { background: #dcebe2; color: #235a3d; }
.status-pending { background: #ede8d8; color: #6b5a24; }
.status-publishing { background: #dde6f2; color: #29527a; }
.status-failed { background: #f3ded9; color: #8c3a2c; }
.status-cancelled { background: #ece9e3; color: var(--muted); }

.metric-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 12px;
  margin: 16px 0;
}

.metric-tile {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  text-align: center;
}

.metric-tile .value {
  font-size: 1.3rem;
  font-weight: 700;
}

.metric-tile .label {
  font-size: 0.78rem;
  color: var(--muted);
}

.error-list {
  background: #f6ede9;
  border: 1px solid #e6cfc4;
  border-radius: var(--radius);
  padding: 12px 16px;
  margin-bottom: 16px;
}

.error-list p {
  margin: 0;
  color: var(--danger);
}

.legal-section {
  margin-bottom: 24px;
}

.legal-section h2 {
  margin-top: 0;
}

.legal-section p {
  color: var(--text);
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 24px 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.footer-links a {
  color: var(--muted);
}

.footer-email {
  margin: 0;
}

@media (max-width: 520px) {
  .header-row {
    flex-direction: column;
    align-items: flex-start;
  }
  main {
    padding: 24px 16px 40px;
  }
}
