/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --gold-light: #f5c842;
  --gold-mid:   #e8a020;
  --gold-dark:  #b86a00;
  --ink:        #1a1a1a;
  --ink-soft:   #3d3d3d;
  --rule:       #d4b86a;
  --bg:         #f5f0e8;
  --card-bg:    #ffffff;
  --accent:     #c0392b;
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Georgia', 'Times New Roman', serif;
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
a:hover { text-decoration: none; }
img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* ===== HEADER ===== */
.site-header {
  background: linear-gradient(135deg, #b86a00 0%, #e8a020 30%, #f5c842 55%, #e8a020 75%, #8b4800 100%);
  padding: 0;
  border-bottom: 4px solid var(--gold-dark);
  box-shadow: 0 4px 18px rgba(0,0,0,0.35);
  position: relative;
  overflow: hidden;
}

.site-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    90deg,
    transparent,
    transparent 3px,
    rgba(255,255,255,0.04) 3px,
    rgba(255,255,255,0.04) 4px
  );
}

.header-inner {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  padding: 28px 16px 20px;
  text-align: center;
}

.header-tagline-top {
  font-size: .72rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  margin-bottom: 6px;
  font-family: 'Georgia', serif;
  font-style: italic;
}

.site-title {
  font-size: clamp(1.8rem, 10vw, 6.5rem);
  font-family: 'Georgia', 'Times New Roman', serif;
  font-weight: 900;
  letter-spacing: .04em;
  color: #fff;
  text-shadow:
    0 2px 0 rgba(0,0,0,.45),
    0 4px 16px rgba(0,0,0,.35),
    2px 2px 0 rgba(0,0,0,.2);
  line-height: 1;
  text-transform: uppercase;
}

.site-title a { color: inherit; }

.header-rule {
  border: none;
  border-top: 2px solid rgba(255,255,255,.4);
  margin: 12px auto 8px;
  width: 60%;
}

.header-tagline-bottom {
  font-size: .8rem;
  color: rgba(255,255,255,.8);
  font-style: italic;
  letter-spacing: .06em;
}

/* ===== NAV BAR ===== */
.site-nav {
  background: var(--ink);
  border-bottom: 2px solid var(--gold-mid);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  gap: 0;
  overflow-x: auto;
}

.nav-inner a {
  color: rgba(255,255,255,.8);
  font-size: .78rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 10px 16px;
  white-space: nowrap;
  border-right: 1px solid rgba(255,255,255,.08);
  transition: background .15s, color .15s;
}

.nav-inner a:hover {
  background: rgba(232,160,32,.15);
  color: var(--gold-light);
}

.nav-inner a.nav-active {
  color: var(--gold-light);
  border-bottom: 2px solid var(--gold-mid);
  background: rgba(232,160,32,.1);
}

/* ===== DATE BAR ===== */
.date-bar {
  max-width: 1100px;
  margin: 0 auto;
  padding: 6px 16px;
  font-size: .72rem;
  color: #888;
  letter-spacing: .08em;
  border-bottom: 1px solid #ddd;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.date-bar span { font-style: italic; }

/* ===== MAIN LAYOUT ===== */
.main-content {
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px 16px 48px;
}

.section-title {
  font-size: .7rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold-dark);
  border-bottom: 2px solid var(--rule);
  padding-bottom: 6px;
  margin-bottom: 20px;
  font-family: 'Georgia', serif;
}

/* ===== HERO ARTICLE ===== */
.hero {
  margin-bottom: 36px;
  cursor: pointer;
  border-bottom: 3px double var(--rule);
  padding-bottom: 32px;
}

.hero-img-wrap {
  width: 100%;
  aspect-ratio: 16 / 7;
  overflow: hidden;
  background: #222;
  position: relative;
}

.hero-img-wrap img {
  transition: transform .4s ease;
}

.hero:hover .hero-img-wrap img { transform: scale(1.025); }

.hero-body {
  padding: 16px 0 0;
}

.hero-category {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-size: .68rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  padding: 3px 8px;
  margin-bottom: 10px;
}

.hero-title {
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  line-height: 1.2;
  font-weight: 900;
  color: var(--ink);
  margin-bottom: 10px;
  transition: color .15s;
}

.hero:hover .hero-title { color: var(--gold-dark); }

.hero-summary {
  font-size: 1rem;
  color: var(--ink-soft);
  line-height: 1.55;
  max-width: 780px;
}

.hero-meta {
  font-size: .72rem;
  color: #999;
  margin-top: 10px;
  letter-spacing: .04em;
  font-style: italic;
}

/* ===== ARTICLE GRID ===== */
.articles-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

.article-item {
  display: flex;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid #e0d8c8;
  cursor: pointer;
  align-items: flex-start;
  transition: background .15s;
}

.article-item:hover { background: rgba(232,160,32,.07); }
.article-item:last-child { border-bottom: none; }

.article-thumb {
  flex: 0 0 110px;
  height: 78px;
  overflow: hidden;
  background: #ddd;
}

@media (min-width: 480px) {
  .article-thumb { flex: 0 0 140px; height: 95px; }
}

.article-thumb img { transition: transform .3s ease; }
.article-item:hover .article-thumb img { transform: scale(1.06); }

.article-info { flex: 1; min-width: 0; }

.article-cat {
  font-size: .62rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 4px;
}

.article-title {
  font-size: clamp(.9rem, 2.2vw, 1.1rem);
  line-height: 1.3;
  font-weight: 700;
  color: var(--ink);
  transition: color .15s;
}

.article-item:hover .article-title { color: var(--gold-dark); }

.article-meta {
  font-size: .65rem;
  color: #aaa;
  margin-top: 5px;
  font-style: italic;
}

/* ===== TWO-COLUMN ON DESKTOP ===== */
@media (min-width: 700px) {
  .articles-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0 32px;
  }

  .articles-grid .article-item {
    border-bottom: 1px solid #e0d8c8;
  }
}

/* ===== LOADING / ERROR ===== */
.loading-state, .error-state {
  text-align: center;
  padding: 60px 20px;
  color: #999;
  font-style: italic;
  font-size: 1rem;
}

.error-state { color: var(--accent); }

.spinner {
  display: inline-block;
  width: 36px; height: 36px;
  border: 3px solid #e0d8c8;
  border-top-color: var(--gold-mid);
  border-radius: 50%;
  animation: spin .7s linear infinite;
  margin-bottom: 14px;
}

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

/* ===== ARTICLE PAGE ===== */
.article-page {
  max-width: 780px;
  margin: 0 auto;
  padding: 28px 16px 60px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .78rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gold-dark);
  border-bottom: 1px solid var(--rule);
  padding-bottom: 3px;
  margin-bottom: 24px;
  transition: color .15s;
}

.back-link:hover { color: var(--accent); }

.article-header-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #222;
  margin-bottom: 24px;
}

.article-headline {
  font-size: clamp(1.7rem, 5vw, 2.8rem);
  line-height: 1.15;
  font-weight: 900;
  margin-bottom: 12px;
  color: var(--ink);
}

.article-byline {
  font-size: .75rem;
  color: #aaa;
  letter-spacing: .06em;
  font-style: italic;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--rule);
}

.article-body {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--ink-soft);
}

.article-chapter {
  margin-bottom: 1.6em;
}

.article-chapter:first-child > p:first-child::first-letter {
  float: left;
  font-size: 3.8em;
  line-height: .8;
  padding-right: .08em;
  padding-top: .06em;
  font-weight: 900;
  color: var(--gold-dark);
  font-family: 'Georgia', serif;
}

/* ===== FOOTER ===== */
.site-footer {
  background: var(--ink);
  color: rgba(255,255,255,.45);
  text-align: center;
  padding: 20px 16px;
  font-size: .72rem;
  letter-spacing: .08em;
  border-top: 3px solid var(--gold-dark);
}

.site-footer strong { color: var(--gold-light); }

/* ===== SHARE BAR ===== */
.share-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 2px solid var(--rule);
}

.share-bar p {
  font-size: .78rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-family: Georgia, serif;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--ink);
  color: var(--gold-light);
  border: none;
  border-radius: 3px;
  padding: 9px 18px;
  font-size: .8rem;
  font-family: Georgia, serif;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .15s;
}

.share-btn:hover { background: var(--ink-soft); }

.share-btn svg { flex-shrink: 0; }

.share-copied {
  font-size: .75rem;
  color: var(--gold-dark);
  font-family: Georgia, serif;
  font-style: italic;
  opacity: 0;
  transition: opacity .3s;
}

.share-copied.visible { opacity: 1; }

/* ===== PLACEHOLDER IMAGE ===== */
.img-placeholder {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, #2a2a2a, #444);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.2);
  font-size: .75rem;
  letter-spacing: .1em;
  text-transform: uppercase;
}
