/* ============================================
   STOPOVER MAGAZINE — Main Stylesheet
   Navy: #1B2A4A | Gold: #C9A84C | Cream: #F8F5EE
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400;1,600&family=DM+Sans:wght@300;400;500;600&family=DM+Mono:wght@400&display=swap');

:root {
  --navy: #1B2A4A;
  --gold: #C9A84C;
  --gold-light: #E2C97A;
  --cream: #F8F5EE;
  --text: #1A1A1A;
  --muted: #6B7280;
  --border: #E8E4DD;
  --white: #FFFFFF;
}

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

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

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--white);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

/* ============================================
   HEADER
   ============================================ */

.site-header {
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 20px rgba(0,0,0,0.15);
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.logo-link {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex-shrink: 0;
}

.logo-text {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 400;
  color: var(--white);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  line-height: 1;
}

.logo-rule {
  width: 100%;
  height: 1px;
  background: var(--gold);
  margin-top: 5px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.main-nav a {
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  transition: color 0.2s;
}

.main-nav a:hover { color: var(--gold); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 22px;
  cursor: pointer;
  padding: 4px;
}

.mobile-nav {
  display: none;
  flex-direction: column;
  background: var(--navy);
  padding: 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.mobile-nav.open {
  display: flex;
  max-height: 300px;
  padding: 16px 0;
}

.mobile-nav a {
  padding: 12px 40px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.mobile-nav a:hover { color: var(--gold); background: rgba(255,255,255,0.05); }

/* ============================================
   HERO
   ============================================ */

.hero-section {
  position: relative;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 40px;
  background: url('/images/hero.png') center/cover no-repeat;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(27,42,74,0.85) 0%, rgba(27,42,74,0.65) 100%);
}

.hero-section::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 2px;
  background: var(--gold);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 760px;
}

.hero-eyebrow {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 28px;
  opacity: 0.9;
}

.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 400;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 20px;
}

.hero-sub {
  font-family: 'DM Sans', sans-serif;
  font-size: 18px;
  color: rgba(255,255,255,0.65);
  font-weight: 300;
  margin-bottom: 40px;
  letter-spacing: 0.02em;
}

.hero-cta {
  display: inline-block;
  padding: 13px 36px;
  border: 1px solid var(--gold);
  color: var(--gold);
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 500;
  transition: all 0.2s;
}

.hero-cta:hover {
  background: var(--gold);
  color: var(--navy);
}

/* ============================================
   SECTIONS
   ============================================ */

.site-main { min-height: 60vh; }

.latest-section,
.rubric-section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 64px 40px;
}

.section-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 40px;
}

.section-label {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--navy);
  font-weight: 400;
  white-space: nowrap;
}

.section-line {
  flex: 1;
  height: 1px;
  background: var(--border);
}

.section-divider {
  height: 1px;
  background: var(--border);
  max-width: 1280px;
  margin: 0 auto;
}

/* ============================================
   ARTICLE CARDS
   ============================================ */

.articles-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 36px;
  align-items: start;
}

.articles-grid.small {
  grid-template-columns: repeat(3, 1fr);
}

.articles-grid.single {
  grid-template-columns: 1fr;
  max-width: 600px;
}

.article-card { cursor: pointer; }
.article-card.coming-soon { opacity: 0.6; }

.card-link { display: block; }

.card-img {
  width: 100%;
  aspect-ratio: 16/10;
  overflow: hidden;
  margin-bottom: 16px;
  background: #e8e4dd;
}

.articles-grid .article-card:first-child .card-img {
  aspect-ratio: 4/3;
}

.articles-grid.small .article-card .card-img {
  aspect-ratio: 3/2;
}

.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.card-link:hover .card-img img { transform: scale(1.03); }

.card-img-placeholder {
  width: 100%;
  height: 100%;
}

.cat-world { background: #d4dde8; }
.cat-culture { background: #e8dfd4; }
.cat-expat-life { background: #d4e8d6; }
.cat-field-notes { background: #e8e4d4; }
.cat-essentials { background: #ddd4e8; }

.card-cat {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}

.card-title {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 400;
  line-height: 1.3;
  color: var(--text);
  margin-bottom: 10px;
  transition: color 0.2s;
}

.articles-grid .article-card:first-child .card-title { font-size: 26px; }
.articles-grid.small .card-title { font-size: 18px; }

.card-link:hover .card-title { color: var(--navy); }

.card-excerpt {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.65;
  font-weight: 300;
  margin-bottom: 12px;
}

.card-meta {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  color: #aaa;
}

.no-posts {
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  color: var(--muted);
  grid-column: 1/-1;
  padding: 40px 0;
}

/* ============================================
   ARTICLE PAGE
   ============================================ */

.article-hero {
  background: var(--navy);
  padding: 72px 40px 64px;
  text-align: center;
}

.article-cat {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
  display: block;
  opacity: 0.9;
}

.article-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(28px, 4vw, 52px);
  font-weight: 400;
  color: var(--white);
  line-height: 1.15;
  max-width: 820px;
  margin: 0 auto 24px;
}

.article-rule {
  width: 48px;
  height: 1px;
  background: var(--gold);
  margin: 0 auto 20px;
}

.article-meta {
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.05em;
}

.article-featured-img {
  max-width: 1000px;
  margin: 0 auto;
}

.article-featured-img img {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
}

.article-body {
  max-width: 740px;
  margin: 0 auto;
  padding: 64px 40px 80px;
}

.back-link {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: 48px;
  transition: opacity 0.2s;
}

.back-link:hover { opacity: 0.7; }

.article-body p {
  font-family: 'DM Sans', sans-serif;
  font-size: 17px;
  line-height: 1.9;
  color: #222;
  margin-bottom: 28px;
  font-weight: 300;
}

.article-body p:first-of-type {
  font-family: 'DM Sans', sans-serif;
  font-size: 18px;
  font-style: italic;
  color: #444;
  border-left: 3px solid var(--gold);
  padding-left: 28px;
  margin-bottom: 48px;
  line-height: 1.8;
  font-weight: 300;
}

.article-body h2 {
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--navy);
  margin: 56px 0 20px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
  line-height: 1.4;
}

.article-body h3 {
  font-family: 'DM Sans', sans-serif;
  font-size: 18px;
  color: var(--navy);
  font-weight: 600;
  margin: 36px 0 16px;
}

.article-body a {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.article-body a:hover { color: var(--navy); }

.article-body strong { font-weight: 500; color: var(--text); }
.article-body em { font-style: italic; color: #555; }

.article-body hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 48px 0;
}

.article-body blockquote {
  border-left: 2px solid var(--gold);
  padding: 4px 0 4px 24px;
  margin: 40px 0;
}

.article-body blockquote p {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 20px;
  color: #444;
  border: none;
  padding: 0;
  margin: 0;
}

/* ============================================
   CATEGORY PAGE
   ============================================ */

.category-hero {
  background: var(--navy);
  padding: 64px 40px 56px;
  text-align: center;
}

.cat-eyebrow {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
  opacity: 0.8;
}

.cat-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 400;
  color: var(--white);
  margin-bottom: 20px;
}

/* ============================================
   NEWSLETTER
   ============================================ */

.newsletter-section {
  background: var(--navy);
  padding: 72px 40px;
  text-align: center;
}

.nl-label {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
  opacity: 0.8;
}

.nl-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 400;
  color: var(--white);
  margin-bottom: 12px;
}

.nl-sub {
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  color: rgba(255,255,255,0.5);
  font-weight: 300;
  margin-bottom: 36px;
}

.nl-form {
  display: flex;
  max-width: 460px;
  margin: 0 auto;
}

.nl-form input {
  flex: 1;
  padding: 14px 20px;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.07);
  color: var(--white);
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  outline: none;
  border-radius: 0;
}

.nl-form input::placeholder { color: rgba(255,255,255,0.35); }

.nl-form input:focus {
  border-color: rgba(201,168,76,0.5);
  background: rgba(255,255,255,0.1);
}

.nl-form button {
  padding: 14px 28px;
  background: var(--gold);
  color: var(--navy);
  border: none;
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 600;
  cursor: pointer;
  border-radius: 0;
  transition: background 0.2s;
}

.nl-form button:hover { background: var(--gold-light); }

/* ============================================
   FOOTER
   ============================================ */

.site-footer {
  background: #111922;
  padding: 56px 40px 40px;
  border-top: 1px solid rgba(201,168,76,0.2);
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  text-align: center;
}

.footer-logo {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 20px;
}

.footer-logo .logo-text {
  font-size: 18px;
}

.footer-tagline {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 14px;
  color: rgba(255,255,255,0.3);
  margin-bottom: 28px;
}

.footer-nav {
  display: flex;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.footer-nav a {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  transition: color 0.2s;
}

.footer-nav a:hover { color: var(--gold); }

.footer-copy {
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  color: rgba(255,255,255,0.2);
}

.footer-copy a { color: rgba(255,255,255,0.3); }
.footer-copy a:hover { color: var(--gold); }

/* ============================================
   NOT FOUND
   ============================================ */

.not-found {
  text-align: center;
  padding: 120px 40px;
}

.not-found h1 {
  font-family: 'Playfair Display', serif;
  font-size: 36px;
  color: var(--navy);
  margin-bottom: 24px;
}

.not-found a {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1024px) {
  .articles-grid {
    grid-template-columns: 1fr 1fr;
  }
  .articles-grid .article-card:first-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 768px) {
  .header-inner { padding: 0 24px; }
  .main-nav { display: none; }
  .nav-toggle { display: block; }
  
  .hero-section { padding: 60px 24px; min-height: 480px; }
  
  .latest-section, .rubric-section { padding: 48px 24px; }
  
  .articles-grid,
  .articles-grid.small {
    grid-template-columns: 1fr;
  }
  
  .articles-grid .article-card:first-child {
    grid-column: auto;
  }
  
  .article-hero { padding: 56px 24px 48px; }
  .article-body { padding: 48px 24px 60px; }
  
  .newsletter-section { padding: 56px 24px; }
  
  .nl-form { flex-direction: column; }
  .nl-form input, .nl-form button { width: 100%; }
  
  .footer-nav { gap: 20px; }
  .site-footer { padding: 48px 24px 32px; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 32px; }
  .article-title { font-size: 26px; }
}

/* ============================================
   STOPOVER v2 — ADDITIONS
   Categories: Dispatches, The Handbook, Off Hours, Long Form
   Features: transparency banners, static pages, See all link
   ============================================ */

/* Placeholder colour tokens for new categories */
.cat-dispatches    { background: #d4dde8; }
.cat-the-handbook  { background: #e8dfd4; }
.cat-off-hours     { background: #ddd4e8; }
.cat-long-form     { background: #d4e8d6; }

/* Sponsored badge on article cards */
.card-cat-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.card-cat-row .card-cat {
  margin-bottom: 0;
}

.card-sponsored {
  font-family: 'DM Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 2px 8px;
  border: 1px solid var(--border);
  border-radius: 2px;
}

/* "See all" link in section headers */
.section-more {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.2s;
  white-space: nowrap;
}

.section-more:hover {
  color: var(--navy);
}

/* Category page description */
.cat-description {
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  color: var(--muted);
  font-weight: 300;
  max-width: 620px;
  margin: 24px auto 0;
  text-align: center;
  line-height: 1.6;
}

/* Transparency banners at top of articles */
.article-banner {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  line-height: 1.55;
  padding: 14px 20px;
  margin-bottom: 32px;
  border-radius: 2px;
  color: var(--text);
}

.article-banner a {
  color: var(--navy);
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-underline-offset: 3px;
}

.banner-sponsored {
  background: #FDF6E3;
  border-left: 3px solid var(--gold);
}

.banner-affiliate {
  background: #F4F1EA;
  border-left: 3px solid var(--border);
  color: var(--muted);
}

/* Static pages (About, Ethics) */
.page-hero {
  background: var(--cream);
  padding: 64px 40px 48px;
  text-align: center;
}

.page-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 400;
  color: var(--navy);
  line-height: 1.2;
  max-width: 820px;
  margin: 0 auto;
}

.page-body {
  max-width: 720px;
}

.page-body h2 {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 500;
  color: var(--navy);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin: 48px 0 20px;
}

.page-body p {
  margin-bottom: 20px;
}

/* "About" nav link subtle differentiation */
.nav-about {
  opacity: 0.85;
}

@media (max-width: 768px) {
  .page-hero { padding: 48px 24px 40px; }
  .section-more { display: none; }
}

