/* ===== Rune Heaven Blog — Global Stylesheet ===== */
/* Serif typography only (no sans-serif), medieval/parchment OSRS theme */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@500;700;900&family=Lora:ital,wght@0,400;0,500;0,600;0,700;1,400&family=IM+Fell+English:ital@0;1&display=swap');

:root {
  --gold: #c8a24b;
  --gold-dark: #8b6914;
  --gold-bright: #f0c040;
  --parchment: #f5ecd7;
  --parchment-dark: #e8dcb8;
  --bg-dark: #1a1410;
  --bg-mid: #2a1f15;
  --bg-card: #fbf5e3;
  --text-dark: #2b1f10;
  --text-body: #3a2e1f;
  --text-muted: #6b5a44;
  --border: #b89968;
  --accent-red: #8b2a1f;
  --accent-green: #4a6b2a;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Lora', 'Georgia', 'Times New Roman', serif;
  font-size: 18px;
  line-height: 1.75;
  color: var(--text-body);
  background-color: var(--parchment);
  background-image:
    radial-gradient(circle at 25% 15%, rgba(200,162,75,0.10) 0%, transparent 50%),
    radial-gradient(circle at 75% 85%, rgba(139,105,20,0.08) 0%, transparent 50%);
  background-attachment: fixed;
}

/* ===== Header ===== */
.site-header {
  background: linear-gradient(180deg, #1a1410 0%, #2a1f15 100%);
  border-bottom: 4px double var(--gold);
  padding: 1.2rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.logo {
  font-family: 'Cinzel', serif;
  font-weight: 900;
  font-size: 1.8rem;
  color: var(--gold-bright);
  text-decoration: none;
  letter-spacing: 2px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.logo-icon {
  display: inline-block;
  width: 36px; height: 36px;
  background: radial-gradient(circle, var(--gold-bright) 30%, var(--gold-dark) 100%);
  border-radius: 50%;
  border: 2px solid #4a3210;
  position: relative;
  box-shadow: inset 0 -3px 5px rgba(0,0,0,0.4), 0 0 8px rgba(240,192,64,0.5);
}
.logo-icon::after {
  content: "ᚱ";
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -55%);
  color: #4a3210;
  font-weight: 900;
  font-size: 1.2rem;
}

.main-nav {
  display: flex;
  gap: 1.8rem;
  flex-wrap: wrap;
}
.main-nav a {
  font-family: 'Cinzel', serif;
  color: var(--parchment);
  text-decoration: none;
  font-size: 0.95rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-weight: 500;
  transition: color 0.2s;
  border-bottom: 2px solid transparent;
  padding-bottom: 2px;
}
.main-nav a:hover { color: var(--gold-bright); border-bottom-color: var(--gold-bright); }

.cta-btn {
  background: linear-gradient(180deg, var(--gold-bright) 0%, var(--gold-dark) 100%);
  color: #1a1410 !important;
  padding: 0.6rem 1.4rem;
  border-radius: 4px;
  font-family: 'Cinzel', serif;
  font-weight: 700;
  text-decoration: none;
  border: 2px solid #4a3210;
  box-shadow: 0 3px 0 #4a3210, 0 5px 10px rgba(0,0,0,0.3);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.9rem;
  display: inline-block;
  transition: transform 0.15s, box-shadow 0.15s;
}
.cta-btn:hover { transform: translateY(-2px); box-shadow: 0 5px 0 #4a3210, 0 8px 15px rgba(0,0,0,0.4); }
.cta-btn:active { transform: translateY(1px); box-shadow: 0 2px 0 #4a3210; }

/* ===== Hero ===== */
.hero {
  background: linear-gradient(135deg, #1a1410 0%, #3a2810 50%, #1a1410 100%);
  color: var(--parchment);
  padding: 5rem 2rem 4rem;
  text-align: center;
  border-bottom: 4px double var(--gold);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    radial-gradient(2px 2px at 20% 30%, rgba(240,192,64,0.4), transparent),
    radial-gradient(1px 1px at 60% 70%, rgba(240,192,64,0.3), transparent),
    radial-gradient(2px 2px at 80% 20%, rgba(240,192,64,0.4), transparent),
    radial-gradient(1px 1px at 40% 80%, rgba(240,192,64,0.3), transparent);
  background-size: 250px 250px;
  opacity: 0.6;
}
.hero-inner { position: relative; max-width: 900px; margin: 0 auto; }
.hero h1 {
  font-family: 'Cinzel', serif;
  font-weight: 900;
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  color: var(--gold-bright);
  letter-spacing: 3px;
  text-shadow: 0 3px 6px rgba(0,0,0,0.6);
  margin-bottom: 1rem;
  line-height: 1.15;
}
.hero p.tagline {
  font-family: 'IM Fell English', serif;
  font-style: italic;
  font-size: 1.3rem;
  color: var(--parchment);
  margin-bottom: 2rem;
  opacity: 0.95;
}
.hero .cta-btn { font-size: 1rem; padding: 0.8rem 2rem; }

/* ===== Main containers ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 2rem;
}
.container-narrow {
  max-width: 820px;
  margin: 0 auto;
  padding: 3rem 2rem;
}

/* ===== Section title ===== */
.section-title {
  font-family: 'Cinzel', serif;
  font-weight: 700;
  font-size: 2.2rem;
  color: var(--text-dark);
  text-align: center;
  margin-bottom: 0.5rem;
  letter-spacing: 2px;
}
.section-subtitle {
  text-align: center;
  font-style: italic;
  color: var(--text-muted);
  margin-bottom: 3rem;
  font-size: 1.1rem;
}
.divider {
  display: block;
  margin: 0 auto 3rem;
  width: 200px;
  text-align: center;
  color: var(--gold-dark);
  font-size: 1.5rem;
}
.divider::before { content: "❦ ⚔ ❦"; letter-spacing: 8px; }

/* ===== Article grid (homepage) ===== */
.article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: 2rem;
}

.article-card {
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(60,40,10,0.15);
  transition: transform 0.25s, box-shadow 0.25s;
  display: flex;
  flex-direction: column;
}
.article-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 28px rgba(60,40,10,0.25);
}
.article-card .thumb {
  width: 100%;
  height: 200px;
  overflow: hidden;
  background: #2a1f15;
}
.article-card .thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}
.article-card:hover .thumb img { transform: scale(1.06); }

.article-card .card-body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }
.article-card .tag {
  display: inline-block;
  font-family: 'Cinzel', serif;
  font-size: 0.7rem;
  color: var(--gold-dark);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
  border-bottom: 1px solid var(--gold);
  padding-bottom: 3px;
  align-self: flex-start;
}
.article-card h3 {
  font-family: 'Cinzel', serif;
  font-size: 1.25rem;
  color: var(--text-dark);
  margin-bottom: 0.7rem;
  line-height: 1.3;
}
.article-card p {
  color: var(--text-muted);
  font-size: 0.97rem;
  line-height: 1.6;
  margin-bottom: 1.2rem;
  flex: 1;
}
.article-card .read-more {
  font-family: 'Cinzel', serif;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 0.85rem;
  color: var(--gold-dark);
  text-decoration: none;
  font-weight: 700;
  align-self: flex-start;
  border-bottom: 2px solid var(--gold);
  padding-bottom: 2px;
}
.article-card .read-more:hover { color: var(--accent-red); border-bottom-color: var(--accent-red); }

/* ===== Article page ===== */
.article-hero {
  background: linear-gradient(180deg, #1a1410 0%, #3a2810 100%);
  color: var(--parchment);
  padding: 4rem 2rem 3rem;
  text-align: center;
  border-bottom: 4px double var(--gold);
}
.article-hero .meta {
  font-family: 'Cinzel', serif;
  font-size: 0.85rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold-bright);
  margin-bottom: 1rem;
}
.article-hero h1 {
  font-family: 'Cinzel', serif;
  font-weight: 900;
  font-size: clamp(1.8rem, 4vw, 3rem);
  color: var(--parchment);
  letter-spacing: 1.5px;
  max-width: 900px;
  margin: 0 auto 1rem;
  line-height: 1.2;
}
.article-hero .sub {
  font-family: 'IM Fell English', serif;
  font-style: italic;
  font-size: 1.15rem;
  color: var(--parchment-dark);
  max-width: 750px;
  margin: 0 auto;
}

.article-body {
  font-size: 1.08rem;
  color: var(--text-body);
}
.article-body h2 {
  font-family: 'Cinzel', serif;
  font-weight: 700;
  color: var(--text-dark);
  font-size: 1.7rem;
  margin: 2.5rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--border);
  letter-spacing: 1px;
}
.article-body h3 {
  font-family: 'Cinzel', serif;
  font-weight: 700;
  color: var(--gold-dark);
  font-size: 1.3rem;
  margin: 2rem 0 0.7rem;
  letter-spacing: 0.5px;
}
.article-body p { margin-bottom: 1.3rem; }
.article-body ul, .article-body ol { margin: 1rem 0 1.5rem 1.5rem; }
.article-body li { margin-bottom: 0.6rem; line-height: 1.7; }
.article-body a { color: var(--accent-red); font-weight: 600; text-decoration: underline; text-decoration-color: var(--gold); }
.article-body a:hover { color: var(--gold-dark); }

.article-body img.inline-img {
  width: 100%;
  max-width: 100%;
  border-radius: 6px;
  border: 2px solid var(--border);
  margin: 1.5rem 0 0.6rem;
  box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}
.article-body .img-caption {
  text-align: center;
  font-style: italic;
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-bottom: 1.8rem;
}

.article-body blockquote {
  border-left: 4px solid var(--gold);
  background: rgba(200,162,75,0.10);
  padding: 1.2rem 1.5rem;
  margin: 1.8rem 0;
  font-style: italic;
  font-family: 'IM Fell English', serif;
  font-size: 1.1rem;
  color: var(--text-dark);
  border-radius: 0 4px 4px 0;
}

/* ===== Rune Heaven CTA box (in articles) ===== */
.rh-cta {
  background: linear-gradient(135deg, #2a1f15 0%, #3a2810 100%);
  color: var(--parchment);
  border: 2px solid var(--gold);
  border-radius: 8px;
  padding: 2rem;
  margin: 2.5rem 0;
  text-align: center;
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
  position: relative;
}
.rh-cta::before, .rh-cta::after {
  content: "❖";
  color: var(--gold);
  font-size: 1.5rem;
  position: absolute;
  top: 0.5rem;
}
.rh-cta::before { left: 1rem; }
.rh-cta::after { right: 1rem; }
.rh-cta h3 {
  font-family: 'Cinzel', serif;
  color: var(--gold-bright);
  font-size: 1.5rem;
  margin-bottom: 0.8rem;
  letter-spacing: 1.5px;
}
.rh-cta p {
  color: var(--parchment-dark);
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
}

/* ===== Pros / Cons & comparison ===== */
.pros-cons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin: 2rem 0;
}
.pros, .cons {
  padding: 1.5rem;
  border-radius: 6px;
  border: 2px solid;
}
.pros { background: rgba(74,107,42,0.10); border-color: var(--accent-green); }
.cons { background: rgba(139,42,31,0.08); border-color: var(--accent-red); }
.pros h4, .cons h4 {
  font-family: 'Cinzel', serif;
  margin-bottom: 0.8rem;
  font-size: 1.15rem;
  letter-spacing: 1px;
}
.pros h4 { color: var(--accent-green); }
.cons h4 { color: var(--accent-red); }
.pros ul, .cons ul { margin-left: 1.2rem; }

@media (max-width: 600px) {
  .pros-cons { grid-template-columns: 1fr; }
}

/* ===== Info/Warning boxes ===== */
.info-box {
  background: rgba(200,162,75,0.12);
  border-left: 4px solid var(--gold-dark);
  padding: 1rem 1.3rem;
  margin: 1.5rem 0;
  border-radius: 0 4px 4px 0;
}
.info-box strong { color: var(--gold-dark); font-family: 'Cinzel', serif; letter-spacing: 1px; }

.warning-box {
  background: rgba(139,42,31,0.08);
  border-left: 4px solid var(--accent-red);
  padding: 1rem 1.3rem;
  margin: 1.5rem 0;
  border-radius: 0 4px 4px 0;
}
.warning-box strong { color: var(--accent-red); font-family: 'Cinzel', serif; letter-spacing: 1px; }

/* ===== Table ===== */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0 2rem;
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
}
th {
  background: var(--bg-mid);
  color: var(--gold-bright);
  font-family: 'Cinzel', serif;
  padding: 0.9rem 1rem;
  text-align: left;
  letter-spacing: 1px;
  font-size: 0.95rem;
}
td { padding: 0.8rem 1rem; border-bottom: 1px solid var(--parchment-dark); }
tr:nth-child(even) td { background: rgba(200,162,75,0.06); }
tr:last-child td { border-bottom: none; }

/* ===== Related articles ===== */
.related {
  background: rgba(200,162,75,0.08);
  border-top: 2px solid var(--border);
  padding: 3rem 2rem;
}
.related-inner { max-width: 1200px; margin: 0 auto; }
.related h2 {
  font-family: 'Cinzel', serif;
  text-align: center;
  color: var(--text-dark);
  font-size: 1.8rem;
  margin-bottom: 2rem;
  letter-spacing: 2px;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

/* ===== Footer ===== */
.site-footer {
  background: #1a1410;
  color: var(--parchment-dark);
  padding: 3rem 2rem 1.5rem;
  border-top: 4px double var(--gold);
  text-align: center;
}
.footer-inner { max-width: 1200px; margin: 0 auto; }
.footer-logo {
  font-family: 'Cinzel', serif;
  font-weight: 900;
  font-size: 1.6rem;
  color: var(--gold-bright);
  letter-spacing: 3px;
  margin-bottom: 0.8rem;
}
.footer-tagline {
  font-family: 'IM Fell English', serif;
  font-style: italic;
  color: var(--parchment-dark);
  margin-bottom: 1.5rem;
}
.footer-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 1.8rem;
  flex-wrap: wrap;
}
.footer-links a {
  color: var(--parchment);
  text-decoration: none;
  font-family: 'Cinzel', serif;
  font-size: 0.85rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, color 0.2s;
  padding-bottom: 3px;
}
.footer-links a:hover { color: var(--gold-bright); border-bottom-color: var(--gold-bright); }
.footer-bottom {
  border-top: 1px solid #3a2810;
  padding-top: 1.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.footer-bottom a { color: var(--gold); text-decoration: none; }

/* ===== Misc ===== */
.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }

@media (max-width: 768px) {
  body { font-size: 16px; }
  .container, .container-narrow { padding: 2rem 1.2rem; }
  .article-hero { padding: 3rem 1.2rem 2rem; }
  .main-nav { gap: 1rem; }
  .main-nav a { font-size: 0.85rem; }
}
