:root {
  --bg:      #0d0f14;
  --surface: #141720;
  --surface2:#1c2030;
  --border:  #252a38;
  --text:    #e8e4dc;
  --muted:   #6b7280;
  --accent:  #c8a84b;
  --accent2: #4b7ec8;
  --red:     #c84b4b;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  background: var(--bg); color: var(--text);
  font-family: "Georgia", "Times New Roman", serif;
  line-height: 1.7;
}

/* NAV */
nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(13,15,20,.96); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 2rem; height: 56px;
}
.nav-logo {
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 1.1rem; font-weight: 900; letter-spacing: -.02em;
  text-decoration: none; color: var(--text);
}
.nav-logo span { color: var(--accent); }
.nav-links { display: flex; align-items: center; gap: 1.5rem; }
.nav-links a {
  color: var(--muted); text-decoration: none;
  font-family: -apple-system, sans-serif; font-size: .825rem;
  transition: color .15s;
}
.nav-links a:hover { color: var(--text); }
.nav-tag {
  background: var(--accent); color: #0d0f14;
  font-size: .65rem; font-weight: 800; letter-spacing: .08em;
  text-transform: uppercase; padding: .2rem .55rem; border-radius: 3px;
  font-family: -apple-system, sans-serif;
}

/* HERO / INDEX */
.hero-index {
  max-width: 900px; margin: 0 auto; padding: 5rem 2rem 3rem;
  border-bottom: 1px solid var(--border);
}
.hero-index h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 400; letter-spacing: -.02em; line-height: 1.2;
  margin-bottom: 1rem;
}
.hero-index h1 em { font-style: italic; color: var(--accent); }
.hero-index .lead {
  font-size: 1.1rem; color: var(--muted); max-width: 600px;
  font-family: -apple-system, sans-serif; line-height: 1.6;
}

/* ARTICLE GRID */
.articles { max-width: 900px; margin: 0 auto; padding: 3rem 2rem; }
.articles-label {
  font-family: -apple-system, sans-serif;
  font-size: .7rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--accent);
  margin-bottom: 2rem;
  display: flex; align-items: center; gap: .75rem;
}
.articles-label::after { content: ''; flex: 1; height: 1px; background: var(--border); }

.article-item {
  display: grid; grid-template-columns: 1fr auto;
  gap: 1rem; align-items: start;
  padding: 1.5rem 0; border-bottom: 1px solid var(--border);
  text-decoration: none; color: var(--text);
}
.article-item:hover .article-title { color: var(--accent); }
.article-meta {
  font-family: -apple-system, sans-serif;
  font-size: .75rem; color: var(--muted);
  margin-bottom: .4rem;
  display: flex; gap: .75rem; align-items: center;
}
.art-cat {
  color: var(--accent); font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
}
.article-title { font-size: 1.2rem; font-weight: 400; margin-bottom: .4rem; line-height: 1.35; }
.article-deck { font-size: .9rem; color: var(--muted); font-family: -apple-system, sans-serif; line-height: 1.5; }
.article-arrow { color: var(--muted); font-size: 1.2rem; padding-top: .2rem; }
.article-item:hover .article-arrow { color: var(--accent); }

/* ARTICLE PAGE */
.article-page { max-width: 720px; margin: 0 auto; padding: 4rem 2rem 6rem; }
.article-header { margin-bottom: 3rem; padding-bottom: 2rem; border-bottom: 1px solid var(--border); }
.article-header .cat {
  font-family: -apple-system, sans-serif;
  font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 1rem; display: block;
}
.article-header h1 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 400; line-height: 1.2; margin-bottom: 1rem;
}
.article-header .deck {
  font-size: 1.1rem; color: var(--muted);
  font-family: -apple-system, sans-serif; line-height: 1.6;
  margin-bottom: 1.5rem;
}
.article-header .byline {
  font-family: -apple-system, sans-serif; font-size: .8rem; color: var(--muted);
  display: flex; gap: 1rem; align-items: center;
}
.byline-dot { color: var(--border); }

/* ARTICLE BODY */
.article-body { font-size: 1.05rem; line-height: 1.8; }
.article-body h2 {
  font-size: 1.3rem; font-weight: 400; margin: 2.5rem 0 .75rem;
  color: var(--text); font-family: -apple-system, sans-serif; font-weight: 700;
}
.article-body h3 {
  font-size: 1rem; font-weight: 700; margin: 2rem 0 .5rem;
  color: var(--accent); font-family: -apple-system, sans-serif;
  text-transform: uppercase; letter-spacing: .06em;
}
.article-body p { margin-bottom: 1.4rem; }
.article-body ul, .article-body ol { margin: 0 0 1.4rem 1.5rem; }
.article-body li { margin-bottom: .4rem; }
.article-body blockquote {
  border-left: 3px solid var(--accent);
  padding: .75rem 1.5rem;
  margin: 2rem 0;
  color: var(--muted);
  font-style: italic;
  background: var(--surface);
  border-radius: 0 6px 6px 0;
}
.article-body .highlight {
  background: var(--surface2); border: 1px solid var(--border);
  border-radius: 8px; padding: 1.25rem 1.5rem; margin: 2rem 0;
  font-family: -apple-system, sans-serif; font-size: .9rem;
}
.article-body .highlight strong { color: var(--accent); }
.article-body a { color: var(--accent2); text-decoration: underline; }

/* FOOTER */
footer {
  border-top: 1px solid var(--border);
  text-align: center; padding: 2rem;
  font-family: -apple-system, sans-serif;
  font-size: .75rem; color: var(--muted);
}

@media (max-width: 640px) {
  nav { padding: 0 1rem; }
  .hero-index, .articles, .article-page { padding-left: 1rem; padding-right: 1rem; }
  .article-item { grid-template-columns: 1fr; }
  .article-arrow { display: none; }
}

/* ── sipol Radio: Article Audio Player ───────────────────── */
.article-audio { margin: 0 0 2.5rem; }
.apl-bar {
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 2px solid var(--accent);
  border-radius: 8px;
  padding: .9rem 1.25rem;
  display: flex;
  align-items: center;
  gap: .85rem;
  width: 100%;
  box-sizing: border-box;
}
.apl-play {
  flex-shrink: 0;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--accent);
  color: #0d0f14;
  border: none;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: .9rem;
  transition: opacity .15s;
  font-family: sans-serif;
}
.apl-play:hover { opacity: .8; }
.apl-center {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: .3rem;
}
.apl-label {
  font-family: -apple-system, sans-serif;
  font-size: .65rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--accent);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.apl-seek {
  width: 100%;
  height: 3px;
  -webkit-appearance: none;
  appearance: none;
  background: var(--border);
  border-radius: 2px;
  outline: none;
  cursor: pointer;
  accent-color: var(--accent);
  display: block;
  padding: 0;
  margin: 0;
}
.apl-seek::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 11px; height: 11px;
  border-radius: 50%;
  background: var(--accent);
  cursor: pointer;
}
.apl-seek::-moz-range-thumb {
  width: 11px; height: 11px;
  border-radius: 50%;
  background: var(--accent);
  border: none;
}
.apl-time {
  flex-shrink: 0;
  font-family: -apple-system, sans-serif;
  font-size: .7rem; color: var(--muted);
  white-space: nowrap;
}
.apl-radio {
  flex-shrink: 0;
  font-family: -apple-system, sans-serif;
  font-size: .7rem; color: var(--muted);
  text-decoration: none;
  border-left: 1px solid var(--border);
  padding-left: .85rem;
  white-space: nowrap;
  transition: color .15s;
}
.apl-radio:hover { color: var(--accent); }
@media (max-width: 520px) {
  .apl-radio, .apl-time { display: none; }
}

