/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

/* ── Tokens ── */
:root {
  --bg:        #0f172a;
  --bg-alt:    #111827;
  --surface:   #1e293b;
  --border:    #334155;
  --accent:    #f5a020;
  --accent-dk: #78350f;
  --text:      #e2e8f0;
  --muted:     #94a3b8;
  --dim:       #64748b;
  --radius:    10px;
  --max-w:     1200px;
}

/* ── Base ── */
body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }

/* ── Typography ── */
h1 { font-size: clamp(1.8rem, 5vw, 2.6rem); font-weight: 800; line-height: 1.15; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.3rem, 3vw, 1.7rem); font-weight: 700; line-height: 1.25; letter-spacing: -0.01em; margin: 40px 0 14px; }
h3 { font-size: 1.1rem; font-weight: 700; margin: 26px 0 10px; }

/* ── Layout ── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 clamp(20px, 5vw, 48px); }

.label {
  display: block;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

/* ── Buttons ── */
.btn {
  display: inline-block;
  padding: 15px 28px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  transition: opacity .15s;
  white-space: nowrap;
}
.btn:hover { opacity: .85; }
.btn-primary { background: var(--accent); color: #0f172a; }
.btn-outline { background: transparent; color: var(--text); border: 1px solid var(--border); }

/* ════════════════════════════════════════
   PAGE HEADER
════════════════════════════════════════ */
.page-header {
  border-bottom: 1px solid var(--border);
  padding: 8px 0;
}
.page-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.page-header img { height: 146px; width: auto; }
.back-link {
  font-size: .85rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color .15s;
}
.back-link:hover { color: var(--accent); }
.back-link svg { flex-shrink: 0; }

/* ════════════════════════════════════════
   HERO BAND
════════════════════════════════════════ */
.page-hero {
  padding: clamp(40px, 7vw, 64px) 0 clamp(28px, 5vw, 40px);
  text-align: center;
}
.page-hero .label { text-align: center; }
.page-hero h1 { margin-bottom: 10px; }
.page-hero p {
  color: var(--muted);
  font-size: clamp(.95rem, 2.2vw, 1.1rem);
  max-width: 560px;
  margin: 0 auto;
}

/* ════════════════════════════════════════
   ARTICLE
════════════════════════════════════════ */
.article-wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 0 clamp(48px, 8vw, 80px);
}
.article-meta {
  display: flex;
  gap: 10px;
  align-items: center;
  color: var(--dim);
  font-size: .85rem;
  margin-bottom: 8px;
  justify-content: center;
}
.article-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--dim); }

.article-body p { color: var(--muted); margin-bottom: 16px; }
.article-body ul, .article-body ol { color: var(--muted); margin: 0 0 16px 22px; }
.article-body li { margin-bottom: 8px; line-height: 1.65; }
.article-body strong { color: var(--text); }
.article-body a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.article-body .btn { text-decoration: none; }
.article-body .btn-primary { color: #0f172a; }
.article-body .btn-outline { color: var(--text); }
.article-body h2 { color: var(--text); }
.article-body h2:first-child { margin-top: 0; }
.article-body h3 { color: var(--text); }

.cta-box {
  margin: 40px 0;
  padding: clamp(24px, 4vw, 32px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  border-top: 3px solid var(--accent);
  text-align: center;
}
.cta-box h3 { margin-top: 0; margin-bottom: 10px; }
.cta-box p { color: var(--muted); margin-bottom: 18px; }
.cta-box p:last-child { margin-bottom: 0; }

/* ════════════════════════════════════════
   POST LIST (blog index)
════════════════════════════════════════ */
.post-list {
  display: flex;
  flex-direction: column;
  max-width: 760px;
  margin: 0 auto;
  padding-bottom: clamp(48px, 8vw, 80px);
}
.post-card { padding: 28px 0; border-bottom: 1px solid var(--border); }
.post-card:first-child { padding-top: 0; }
.post-card-date {
  font-size: .78rem;
  color: var(--dim);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.post-card h2 { margin: 0 0 10px; font-size: clamp(1.2rem, 2.6vw, 1.5rem); }
.post-card h2 a { transition: color .15s; }
.post-card h2 a:hover { color: var(--accent); }
.post-card p { color: var(--muted); margin-bottom: 10px; }
.post-card .read-more { color: var(--accent); font-size: .9rem; font-weight: 600; }

/* ════════════════════════════════════════
   FOOTER
════════════════════════════════════════ */
footer { border-top: 1px solid var(--border); padding: 32px 0; }
.footer-inner {
  display: flex; flex-direction: column;
  align-items: center; gap: 12px; text-align: center;
}
.footer-contact { font-size: .85rem; color: var(--dim); }
.footer-contact a { color: var(--muted); }
.footer-contact a:hover { color: var(--accent); }
.footer-copy { font-size: .78rem; color: var(--dim); }
