/* === TOKENS === */
:root {
  --ink:      #0f1923;
  --slate:    #3d4f5c;
  --mist:     #8fa3b0;
  --paper:    #f7f5f0;
  --white:    #ffffff;
  --gold:     #c8922a;
  --gold-lt:  #f0d9a8;
  --teal:     #1a7a6e;
  --teal-lt:  #d0ece9;
  --rule:     #ddd8cf;
  --radius:   4px;
  --fs-xl:    clamp(2rem, 5vw, 3.5rem);
  --fs-lg:    clamp(1.4rem, 3vw, 2rem);
  --fs-md:    1.1rem;
  --fs-sm:    0.9rem;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Inter', sans-serif; background: var(--paper); color: var(--ink); line-height: 1.65; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* NAV */
.site-header { background: var(--ink); border-bottom: 3px solid var(--gold); position: sticky; top: 0; z-index: 100; }
.nav-inner { max-width: 1180px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; padding: 0 24px; height: 60px; }
.logo { font-family: 'Playfair Display', serif; font-size: 1.35rem; font-weight: 900; color: var(--white); letter-spacing: -0.02em; }
.logo span { color: var(--gold); }
.nav-links { display: flex; gap: 28px; list-style: none; }
.nav-links a { color: #b0bec5; font-size: 0.875rem; font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase; transition: color .2s; }
.nav-links a:hover, .nav-links a.active { color: var(--gold); }

/* PAGE HERO */
.page-hero { background: var(--ink); padding: 52px 24px 56px; text-align: center; }
.page-hero .eyebrow { font-family: 'JetBrains Mono', monospace; font-size: 0.72rem; color: var(--gold); letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 14px; }
.page-hero h1 { font-family: 'Playfair Display', serif; font-size: var(--fs-xl); color: var(--white); line-height: 1.1; max-width: 760px; margin: 0 auto 16px; }
.page-hero h1 em { color: var(--gold); font-style: normal; }
.page-hero p { color: #8fa3b0; font-size: var(--fs-md); max-width: 560px; margin: 0 auto; }

/* WRAP */
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.wrap-sm { max-width: 780px; margin: 0 auto; padding: 0 24px; }

/* BREADCRUMB */
.breadcrumb { padding: 16px 0 8px; font-size: 0.8rem; color: var(--mist); display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.breadcrumb a { color: var(--teal); }
.breadcrumb a:hover { text-decoration: underline; }

/* SECTION TITLES */
.section-head { display: flex; align-items: baseline; gap: 16px; margin-bottom: 32px; padding-bottom: 12px; border-bottom: 1px solid var(--rule); }
.section-head h2 { font-family: 'Playfair Display', serif; font-size: var(--fs-lg); font-weight: 700; }
.section-head .all-link { margin-left: auto; font-size: 0.85rem; color: var(--teal); font-weight: 600; }
.section-head .all-link:hover { text-decoration: underline; }

/* CARDS */
.card { background: var(--white); border: 1px solid var(--rule); border-radius: var(--radius); overflow: hidden; transition: box-shadow .25s, transform .25s; }
.card:hover { box-shadow: 0 8px 28px rgba(0,0,0,0.08); transform: translateY(-2px); }
.card-img { width: 100%; aspect-ratio: 16/9; background: linear-gradient(135deg, #1a7a6e 0%, #0f3d35 100%); display: flex; align-items: center; justify-content: center; font-size: 3rem; }
.card-img.gold-bg { background: linear-gradient(135deg, #c8922a 0%, #7a4f0a 100%); }
.card-img.blue-bg { background: linear-gradient(135deg, #1a4f7a 0%, #0a1f3d 100%); }
.card-img.red-bg { background: linear-gradient(135deg, #7a1a2a 0%, #3d0a10 100%); }
.card-body { padding: 20px 22px 24px; }
.card-cat { font-family: 'JetBrains Mono', monospace; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--teal); font-weight: 500; margin-bottom: 8px; }
.card-cat.gold { color: var(--gold); }
.card h3 { font-family: 'Playfair Display', serif; font-size: 1.15rem; line-height: 1.3; margin-bottom: 10px; }
.card h3 a:hover { color: var(--teal); text-decoration: underline; }
.card p { color: var(--slate); font-size: 0.9rem; line-height: 1.6; margin-bottom: 12px; }
.card-meta { font-size: 0.78rem; color: var(--mist); display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.read-time { background: var(--teal-lt); color: var(--teal); padding: 2px 8px; border-radius: 20px; font-weight: 500; font-size: 0.74rem; }

/* GRID LAYOUTS */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.two-col { display: grid; grid-template-columns: 1fr 320px; gap: 48px; }

/* ARTICLE PROSE */
.prose { padding: 48px 0 72px; }
.prose h2 { font-family: 'Playfair Display', serif; font-size: 1.6rem; margin: 40px 0 16px; color: var(--ink); }
.prose h3 { font-family: 'Playfair Display', serif; font-size: 1.2rem; margin: 28px 0 12px; color: var(--ink); }
.prose p { font-size: var(--fs-md); color: var(--slate); margin-bottom: 20px; line-height: 1.8; }
.prose ul, .prose ol { margin: 0 0 20px 24px; }
.prose li { font-size: var(--fs-md); color: var(--slate); margin-bottom: 8px; line-height: 1.7; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose a { color: var(--teal); text-decoration: underline; }
.prose a:hover { color: var(--gold); }
.prose blockquote { border-left: 4px solid var(--gold); padding: 16px 20px; background: var(--white); margin: 24px 0; border-radius: 0 var(--radius) var(--radius) 0; }
.prose blockquote p { color: var(--ink); font-style: italic; margin: 0; }
.prose .highlight-box { background: var(--teal-lt); border: 1px solid var(--teal); border-radius: var(--radius); padding: 20px 24px; margin: 28px 0; }
.prose .highlight-box p { margin: 0; color: var(--ink); }
.prose .highlight-box strong { color: var(--teal); }
.prose table { width: 100%; border-collapse: collapse; margin: 24px 0; font-size: 0.9rem; }
.prose th { background: var(--ink); color: var(--white); padding: 10px 14px; text-align: left; font-weight: 600; }
.prose td { padding: 10px 14px; border-bottom: 1px solid var(--rule); color: var(--slate); }
.prose tr:nth-child(even) td { background: var(--white); }

/* BUTTONS */
.btn-primary { display: inline-block; background: var(--gold); color: var(--ink); padding: 13px 28px; border-radius: var(--radius); font-weight: 600; font-size: 0.95rem; transition: opacity .2s; }
.btn-primary:hover { opacity: 0.88; }
.btn-teal { display: inline-block; background: var(--teal); color: var(--white); padding: 13px 28px; border-radius: var(--radius); font-weight: 600; font-size: 0.95rem; transition: opacity .2s; }
.btn-teal:hover { opacity: 0.87; }
.btn-ghost { display: inline-block; border: 1px solid #3d4f5c; color: var(--mist); padding: 13px 28px; border-radius: var(--radius); font-weight: 500; font-size: 0.95rem; transition: border-color .2s, color .2s; }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }

/* AD SLOTS */
.ad-slot { background: #f0ede7; border: 1px dashed #c5bfb3; border-radius: var(--radius); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 20px; color: var(--mist); font-size: 0.78rem; min-height: 90px; }
.ad-slot span { font-family: 'JetBrains Mono', monospace; font-size: 0.7rem; text-transform: uppercase; }
.ad-slot.rectangle { min-height: 250px; }

/* SIDEBAR */
.sidebar { display: flex; flex-direction: column; gap: 28px; }
.widget { background: var(--white); border: 1px solid var(--rule); border-radius: var(--radius); overflow: hidden; }
.widget-head { background: var(--ink); color: var(--white); padding: 12px 18px; font-family: 'JetBrains Mono', monospace; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.1em; }
.widget-body { padding: 18px; }
.widget-list { list-style: none; display: flex; flex-direction: column; gap: 0; }
.widget-list li { padding: 10px 0; border-bottom: 1px solid var(--rule); font-size: 0.875rem; }
.widget-list li:last-child { border-bottom: none; }
.widget-list a:hover { color: var(--teal); text-decoration: underline; }

/* NEWSLETTER FORM */
.newsletter-form { display: flex; flex-direction: column; gap: 10px; }
.newsletter-form input { border: 1px solid var(--rule); border-radius: var(--radius); padding: 10px 12px; font-size: 0.9rem; font-family: inherit; background: var(--paper); outline: none; transition: border-color .2s; }
.newsletter-form input:focus { border-color: var(--teal); }
.newsletter-form button { background: var(--teal); color: var(--white); border: none; border-radius: var(--radius); padding: 11px; font-size: 0.9rem; font-weight: 600; cursor: pointer; font-family: inherit; transition: opacity .2s; }
.newsletter-form button:hover { opacity: 0.87; }
.newsletter-form small { color: var(--mist); font-size: 0.75rem; }

/* CONTACT FORM */
.contact-form { display: flex; flex-direction: column; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 0.875rem; font-weight: 600; color: var(--ink); }
.form-group input, .form-group select, .form-group textarea { border: 1px solid var(--rule); border-radius: var(--radius); padding: 11px 14px; font-size: 0.95rem; font-family: inherit; background: var(--white); outline: none; transition: border-color .2s; }
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { border-color: var(--teal); }
.form-group textarea { resize: vertical; min-height: 120px; }

/* INFO BOXES */
.info-box { background: var(--white); border: 1px solid var(--rule); border-radius: var(--radius); padding: 28px 32px; margin-bottom: 24px; }
.info-box h3 { font-family: 'Playfair Display', serif; font-size: 1.15rem; margin-bottom: 10px; }
.info-box p { font-size: 0.9rem; color: var(--slate); }

/* TEAM CARDS */
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; }
.team-card { background: var(--white); border: 1px solid var(--rule); border-radius: var(--radius); padding: 28px 20px; text-align: center; }
.team-avatar { width: 72px; height: 72px; border-radius: 50%; background: var(--teal-lt); display: flex; align-items: center; justify-content: center; font-size: 2rem; margin: 0 auto 14px; }
.team-card h3 { font-family: 'Playfair Display', serif; font-size: 1.05rem; margin-bottom: 4px; }
.team-card .role { font-size: 0.78rem; color: var(--teal); font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 10px; font-family: 'JetBrains Mono', monospace; }
.team-card p { font-size: 0.84rem; color: var(--slate); }

/* GUIDE STRIP */
.guide-strip { background: var(--ink); padding: 64px 24px; }
.guide-grid { max-width: 1180px; margin: 32px auto 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.guide-card { background: #1a2c3a; border: 1px solid #2a3f50; border-radius: var(--radius); padding: 24px; border-top: 3px solid var(--gold); }
.guide-card h3 { font-family: 'Playfair Display', serif; color: var(--white); font-size: 1.05rem; margin-bottom: 10px; }
.guide-card p { color: #7a9db0; font-size: 0.875rem; margin-bottom: 14px; }
.guide-link { font-size: 0.82rem; color: var(--gold); font-weight: 600; }
.guide-link:hover { text-decoration: underline; }

/* FOOTER */
footer { background: var(--ink); padding: 48px 24px 28px; color: #7a9db0; }
.footer-inner { max-width: 1180px; margin: 0 auto; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-col h4 { color: var(--white); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 16px; font-family: 'JetBrains Mono', monospace; }
.footer-col p { font-size: 0.875rem; line-height: 1.65; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-col ul li a { font-size: 0.875rem; color: #7a9db0; transition: color .2s; }
.footer-col ul li a:hover { color: var(--gold); }
.footer-bottom { border-top: 1px solid #1f3040; padding-top: 24px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; font-size: 0.8rem; }
.footer-legal { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-legal a { color: #7a9db0; transition: color .2s; }
.footer-legal a:hover { color: var(--white); }
.disclaimer { background: #0a141c; padding: 16px 24px; font-size: 0.75rem; color: #4a6070; text-align: center; border-top: 1px solid #1a2c3a; }
.disclaimer a { color: #6a8090; text-decoration: underline; }

/* RESPONSIVE */
@media (max-width: 900px) {
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .two-col { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
}
@media (max-width: 540px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; transform: none !important; } }
