/* StudyGuidesAI.com Blog Style Sheet */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,700;0,900;1,400&family=Source+Serif+4:wght@300;400;600&family=DM+Mono:wght@400;500&display=swap');

:root {
  --navy: #1a2744;
  --gold: #d4a843;
  --gold-light: #f5e6c0;
  --slate: #3d5073;
  --cream: #faf8f4;
  --white: #ffffff;
  --text: #2c2c2c;
  --muted: #6b7280;
  --border: #e5e0d5;
  --green: #2a6b4a;
  --green-light: #e8f5ee;
  --red: #c0392b;
  --red-light: #fdf0ee;
}

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

body {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 18px;
  line-height: 1.75;
  color: var(--text);
  background: var(--cream);
}

/* ── Top Bar ── */
.site-bar {
  background: var(--navy);
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.site-bar .logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--gold);
  text-decoration: none;
  letter-spacing: -.5px;
}
.site-bar .logo span { color: var(--white); }
.site-bar nav { margin-left: auto; display: flex; gap: 20px; }
.site-bar nav a {
  color: rgba(255,255,255,.75);
  text-decoration: none;
  font-family: 'DM Mono', monospace;
  font-size: .78rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  transition: color .2s;
}
.site-bar nav a:hover { color: var(--gold); }

/* ── Hero Banner ── */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--slate) 100%);
  color: var(--white);
  padding: 64px 24px 56px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-tag {
  display: inline-block;
  background: var(--gold);
  color: var(--navy);
  font-family: 'DM Mono', monospace;
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 2px;
  margin-bottom: 20px;
}
.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 900;
  line-height: 1.15;
  max-width: 820px;
  margin: 0 auto 20px;
  letter-spacing: -.5px;
}
.hero-meta {
  font-size: .9rem;
  color: rgba(255,255,255,.65);
  font-family: 'DM Mono', monospace;
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

/* ── Layout ── */
.page-wrap {
  max-width: 860px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}

/* ── Article Typography ── */
.article h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--navy);
  margin: 52px 0 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--gold);
}
.article h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--slate);
  margin: 36px 0 12px;
}
.article p { margin-bottom: 20px; }
.article a { color: var(--slate); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.article a:hover { color: var(--gold); }
.article ul, .article ol { margin: 0 0 20px 28px; }
.article li { margin-bottom: 8px; }

/* ── Intro Box ── */
.intro-box {
  background: var(--gold-light);
  border-left: 5px solid var(--gold);
  padding: 22px 26px;
  border-radius: 0 6px 6px 0;
  margin-bottom: 40px;
  font-size: 1.05rem;
}

/* ── Tables ── */
.styled-table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0 36px;
  font-size: .95rem;
  box-shadow: 0 2px 12px rgba(0,0,0,.07);
  border-radius: 6px;
  overflow: hidden;
}
.styled-table thead { background: var(--navy); color: var(--white); }
.styled-table thead th {
  padding: 13px 16px;
  text-align: left;
  font-family: 'DM Mono', monospace;
  font-size: .8rem;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.styled-table tbody tr:nth-child(even) { background: var(--gold-light); }
.styled-table tbody tr:nth-child(odd) { background: var(--white); }
.styled-table td { padding: 12px 16px; border-bottom: 1px solid var(--border); }
.styled-table tbody tr:last-child td { border-bottom: none; }

/* ── CTA Box ── */
.cta-box {
  background: var(--navy);
  color: var(--white);
  padding: 36px 40px;
  border-radius: 10px;
  margin: 48px 0;
  text-align: center;
}
.cta-box h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  color: var(--gold);
  margin-bottom: 12px;
}
.cta-box p { color: rgba(255,255,255,.8); margin-bottom: 24px; }
.cta-btn {
  display: inline-block;
  background: var(--gold);
  color: var(--navy);
  font-family: 'DM Mono', monospace;
  font-size: .9rem;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 14px 32px;
  border-radius: 4px;
  text-decoration: none !important;
  transition: background .2s, transform .15s;
}
.cta-btn:hover { background: var(--gold-light); transform: translateY(-2px); color: var(--navy) !important; }

/* ── Tip Box ── */
.tip-box {
  background: var(--green-light);
  border-left: 5px solid var(--green);
  padding: 18px 24px;
  border-radius: 0 6px 6px 0;
  margin: 28px 0;
}
.tip-box strong { color: var(--green); font-family: 'DM Mono', monospace; font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; display: block; margin-bottom: 6px; }

/* ── Warning Box ── */
.warn-box {
  background: var(--red-light);
  border-left: 5px solid var(--red);
  padding: 18px 24px;
  border-radius: 0 6px 6px 0;
  margin: 28px 0;
}
.warn-box strong { color: var(--red); font-family: 'DM Mono', monospace; font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; display: block; margin-bottom: 6px; }

/* ── FAQ ── */
.faq-section { margin-top: 56px; }
.faq-section h2 { border-bottom-color: var(--slate); }
.faq-item { border-bottom: 1px solid var(--border); padding: 20px 0; }
.faq-question {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  color: var(--navy);
  font-size: 1.05rem;
  margin-bottom: 10px;
}
.faq-answer { color: var(--muted); font-size: .97rem; line-height: 1.7; }

/* ── Footer ── */
footer {
  background: var(--navy);
  color: rgba(255,255,255,.5);
  text-align: center;
  padding: 32px 24px;
  font-family: 'DM Mono', monospace;
  font-size: .78rem;
  letter-spacing: .04em;
}
footer a { color: var(--gold); text-decoration: none; }

/* ── Numbered Resource List ── */
.resource-list { list-style: none; margin: 0 0 32px; padding: 0; counter-reset: res; }
.resource-list li {
  counter-increment: res;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
.resource-list li::before {
  content: counter(res, decimal-leading-zero);
  font-family: 'DM Mono', monospace;
  font-size: .85rem;
  color: var(--gold);
  font-weight: 500;
  min-width: 32px;
  padding-top: 2px;
}
.resource-list li:last-child { border-bottom: none; }
.resource-list .res-name { font-weight: 600; color: var(--navy); display: block; }
.resource-list .res-desc { font-size: .92rem; color: var(--muted); }

/* ── Meta Tags Block (invisible, for SEO copy) ── */
.meta-block { display: none; }
