/* ============================================================
   RAHIF EL CHAAR — Personal Website
   css/style.css

   DESIGN TOKENS (colours, fonts) are in :root below.
   To change the gold accent: find --gold and update the hex.
   To change fonts: update --font-serif and --font-sans.
   ============================================================ */

/* --- 1. DESIGN TOKENS ---------------------------------------- */
:root {
  --bg:          #1a1714;        /* Warm dark — FT-inspired brown undertone */
  --bg-surface:  #221e19;
  --bg-card:     #2a2520;
  --border:      #3d3830;
  --border-dim:  #302c25;

  --gold:        #c8a050;        /* Slightly warmer gold */
  --gold-hover:  #d9b468;
  --gold-dim:    rgba(200, 160, 80, 0.12);

  --text:        #ede8df;        /* Warm cream — closer to FT */
  --text-sub:    #a89f94;        /* Warm secondary */
  --text-muted:  #6e6558;       /* Warm muted */

  --font-serif:  'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-sans:   'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --nav-h:       72px;
  --max-w:       1100px;
  --max-article: 720px;

  --ease:        cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- 2. RESET ------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-weight: 400;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img    { display: block; max-width: 100%; }
a      { color: inherit; text-decoration: none; }
ul     { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }
input, textarea, select { font: inherit; }

/* --- 3. TYPOGRAPHY -------------------------------------------- */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.label {
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}

/* --- 4. LAYOUT ------------------------------------------------ */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
}

.section { padding: 6rem 0; }

.section-header { margin-bottom: 3rem; }
.section-header .label { display: block; margin-bottom: 0.75rem; }

.divider {
  width: 36px;
  height: 1px;
  background: var(--gold);
  margin-top: 1rem;
}

/* --- 5. NAVIGATION -------------------------------------------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}

.nav.scrolled {
  background: rgba(26, 23, 20, 0.96);
  border-bottom-color: var(--border-dim);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.nav .container {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text);
  transition: color 0.2s;
}
.nav-logo:hover { color: var(--gold); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.nav-links a {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-sub);
  transition: color 0.2s;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0; right: 0;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}

.nav-links a:hover,
.nav-links a.active { color: var(--text); }

.nav-links a:hover::after,
.nav-links a.active::after { transform: scaleX(1); }

/* Hamburger (mobile) */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 24px;
  padding: 2px 0;
}
.nav-toggle span {
  display: block;
  height: 1px;
  background: var(--text);
  transition: all 0.3s var(--ease);
}

/* --- 6. HERO -------------------------------------------------- */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: calc(var(--nav-h) + 2rem) 2rem 5rem;
  position: relative;
  overflow: hidden;
}

/* Full-screen satellite image — given a filter to evoke a night-from-space feel */
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 38%;
  background-repeat: no-repeat;
  filter: saturate(0.65) brightness(0.82) hue-rotate(-8deg);
  z-index: 0;
  transform: scale(1.02); /* slight oversize prevents filter edge artifacts */
}

/* Dark gradient overlay — deep navy tint simulates night atmosphere */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(3, 7, 18, 0.62) 0%,
    rgba(3, 7, 18, 0.28) 35%,
    rgba(3, 7, 18, 0.46) 65%,
    rgba(3, 7, 18, 0.88) 100%
  );
  z-index: 1;
}

/* All hero content floats above the overlay */
.hero-eyebrow,
.hero-name,
.hero-tagline,
.hero-intro,
.hero-cta,
.hero-scroll {
  position: relative;
  z-index: 2;
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
  color: var(--text-muted);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.hero-eyebrow::before,
.hero-eyebrow::after {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--gold);
  opacity: 0.4;
}

.hero-name {
  font-family: var(--font-serif);
  font-size: clamp(3.5rem, 9vw, 7.5rem);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 1.5rem;
  color: var(--text);
}

.hero-tagline {
  font-family: var(--font-serif);
  font-size: clamp(1rem, 2vw, 1.3rem);
  font-weight: 400;
  font-style: italic;
  color: var(--gold);
  letter-spacing: 0.02em;
  margin-bottom: 2.5rem;
}

.hero-intro {
  max-width: 500px;
  color: var(--text-sub);
  font-size: 0.98rem;
  line-height: 1.85;
  margin-bottom: 3rem;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

/* Animated scroll indicator */
.hero-scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  animation: scroll-fade 2.5s ease-in-out infinite;
}
.hero-scroll-line {
  width: 1px;
  height: 28px;
  background: linear-gradient(to bottom, var(--gold), transparent);
}
@keyframes scroll-fade {
  0%, 100% { opacity: 0.35; transform: translateX(-50%) translateY(0); }
  50%       { opacity: 0.7;  transform: translateX(-50%) translateY(5px); }
}

/* --- 7. BUTTONS ----------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.78rem 1.75rem;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: all 0.22s var(--ease);
  border-radius: 2px;
}

.btn-primary {
  background: var(--gold);
  color: #080808;
  border: 1px solid var(--gold);
}
.btn-primary:hover {
  background: var(--gold-hover);
  border-color: var(--gold-hover);
  transform: translateY(-1px);
  box-shadow: 0 8px 28px rgba(196, 163, 90, 0.2);
}

.btn-outline {
  background: transparent;
  color: var(--text-sub);
  border: 1px solid var(--border);
}
.btn-outline:hover {
  border-color: var(--text-sub);
  color: var(--text);
  transform: translateY(-1px);
}

/* --- 8. ARTICLE CARDS ---------------------------------------- */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  border: 1px solid var(--border-dim);
}

.article-card {
  background: var(--bg-card);
  padding: 2.5rem;
  transition: background 0.22s var(--ease);
  border: 1px solid var(--border-dim);
  display: flex;
  flex-direction: column;
}
.article-card:hover { background: var(--bg-surface); }
.article-card:hover .article-card-title { color: var(--gold); }

.article-card-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.article-card-category {
  font-size: 0.63rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
}

.article-card-date {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.article-card-title {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 500;
  line-height: 1.35;
  margin-bottom: 1rem;
  transition: color 0.2s;
  flex: 1;
}

.article-card-preview {
  font-size: 0.86rem;
  color: var(--text-sub);
  line-height: 1.75;
  margin-bottom: 1.75rem;
}

.article-card-link {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: color 0.2s, gap 0.2s;
  margin-top: auto;
}
.article-card:hover .article-card-link { color: var(--gold); gap: 0.7rem; }

/* --- 9. FEATURED SECTION ------------------------------------- */
.featured-section { border-top: 1px solid var(--border-dim); }

/* --- 10. NEWSLETTER ------------------------------------------ */
.newsletter-section {
  border-top: 1px solid var(--border-dim);
  background: var(--bg-surface);
}

.newsletter-inner {
  max-width: 500px;
  margin: 0 auto;
  text-align: center;
}
.newsletter-inner h2 { font-size: clamp(1.5rem, 2.5vw, 2rem); margin-bottom: 0.75rem; }
.newsletter-inner p  { color: var(--text-sub); font-size: 0.9rem; margin-bottom: 2rem; line-height: 1.75; }

.newsletter-form {
  display: flex;
  border: 1px solid var(--border);
  background: var(--bg-card);
  transition: border-color 0.2s;
  border-radius: 2px;
}
.newsletter-form:focus-within { border-color: var(--gold); }

.newsletter-form input {
  flex: 1;
  padding: 0.9rem 1.2rem;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text);
  font-size: 0.9rem;
}
.newsletter-form input::placeholder { color: var(--text-muted); }

.newsletter-form button {
  padding: 0.9rem 1.4rem;
  background: var(--gold);
  color: #080808;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: background 0.2s;
  white-space: nowrap;
}
.newsletter-form button:hover { background: var(--gold-hover); }

.newsletter-note {
  display: block;
  margin-top: 0.75rem;
  font-size: 0.7rem;
  color: var(--text-muted);
}

/* --- 11. BLOG LIST ------------------------------------------- */
.blog-list { display: flex; flex-direction: column; }

.blog-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2.5rem;
  align-items: start;
  padding: 2.25rem 0;
  border-bottom: 1px solid var(--border-dim);
  transition: opacity 0.2s;
}
.blog-item:first-child { border-top: 1px solid var(--border-dim); }
.blog-item:hover .blog-item-title { color: var(--gold); }

.blog-item-category {
  font-size: 0.63rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.blog-item-title {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 500;
  margin-bottom: 0.6rem;
  transition: color 0.2s;
  line-height: 1.3;
}

.blog-item-preview {
  font-size: 0.88rem;
  color: var(--text-sub);
  line-height: 1.75;
}

.blog-item-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.4rem;
  padding-top: 0.15rem;
}

.blog-item-date {
  font-size: 0.72rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.blog-item-readtime {
  font-size: 0.68rem;
  color: var(--text-muted);
  white-space: nowrap;
}

/* --- 12. ARTICLE PAGE ---------------------------------------- */
.article-page {
  max-width: var(--max-article);
  margin: 0 auto;
  padding: calc(var(--nav-h) + 4rem) 2rem 8rem;
}

.article-back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 3rem;
  transition: color 0.2s, gap 0.2s;
}
.article-back:hover { color: var(--gold); gap: 0.75rem; }

.article-header {
  margin-bottom: 3rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--border-dim);
}
.article-header .label { margin-bottom: 1rem; display: block; }

.article-title {
  font-family: var(--font-serif);
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  font-weight: 500;
  line-height: 1.2;
  margin-bottom: 1.25rem;
}

.article-header-meta {
  display: flex;
  gap: 1.5rem;
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* Article body — long-form reading typography */
.article-body {
  font-size: 1.05rem;
  line-height: 1.9;
  color: var(--text-sub);
}
.article-body p          { margin-bottom: 1.5rem; }
.article-body h2         { font-family: var(--font-serif); font-size: 1.5rem; color: var(--text); margin: 3rem 0 1rem; }
.article-body h3         { font-family: var(--font-serif); font-size: 1.15rem; color: var(--text); margin: 2rem 0 0.75rem; }
.article-body blockquote {
  border-left: 2px solid var(--gold);
  padding: 0.5rem 0 0.5rem 1.5rem;
  margin: 2.5rem 0;
  font-style: italic;
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: var(--text);
  line-height: 1.65;
}
.article-body a {
  color: var(--gold);
  text-decoration: underline;
  text-decoration-color: rgba(196, 163, 90, 0.3);
  transition: text-decoration-color 0.2s;
}
.article-body a:hover { text-decoration-color: var(--gold); }

/* --- 13. ABOUT PAGE ------------------------------------------ */

/* Main two-column hero: text left, photo right */
.about-hero {
  padding: calc(var(--nav-h) + 4rem) 0 0;
}

.about-hero-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 7rem;
  align-items: start;
  padding-bottom: 5rem;
  border-bottom: 1px solid var(--border-dim);
}

/* Left column — all text */
.about-hero-text .label { margin-bottom: 1rem; display: block; }
.about-hero-text h1 {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  margin-bottom: 2rem;
}
.about-hero-text p {
  font-size: 1rem;
  color: var(--text-sub);
  line-height: 1.92;
  margin-bottom: 1.35rem;
}
.about-hero-text p:last-child { margin-bottom: 0; }
.about-hero-text strong { color: var(--text); font-weight: 500; }

/* Right column — photo + facts stacked below */
.about-photo-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  padding-top: 3.5rem;
}

/* Facts listed below the photo in the right column */
.about-profile-facts {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-dim);
}

.about-photo-wrap {
  position: relative;
  width: 240px;
  height: 240px;
  flex-shrink: 0;
}

/* Outer decorative ring */
.about-photo-wrap::before {
  content: '';
  position: absolute;
  inset: -14px;
  border-radius: 50%;
  border: 1px solid rgba(196, 163, 90, 0.18);
  pointer-events: none;
  z-index: 0;
}

/* Soft gold background glow */
.about-photo-wrap::after {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(196,163,90,0.08) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.about-photo-wrap img {
  width: 240px;
  height: 240px;
  object-fit: cover;
  object-position: center top;
  border-radius: 50%;
  display: block;
  border: 2px solid rgba(196, 163, 90, 0.22);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255,255,255,0.03);
  position: relative;
  z-index: 1;
  filter: grayscale(5%);
}

/* Facts strip — not used (facts now in right column below photo) */

/* Reused for both sidebar and facts grid */
.about-body {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 5rem;
  padding: 5rem 0 7rem;
}

.about-text p {
  font-size: 1rem;
  line-height: 1.9;
  color: var(--text-sub);
  margin-bottom: 1.5rem;
}
.about-text p:last-child { margin-bottom: 0; }
.about-text strong { color: var(--text); font-weight: 500; }

.about-aside { display: flex; flex-direction: column; gap: 2.25rem; padding-top: 0.25rem; }

.about-aside-block h4 {
  font-size: 0.63rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
  font-family: var(--font-sans);
}

.about-aside-block ul  { display: flex; flex-direction: column; gap: 0.45rem; }
.about-aside-block li  {
  font-size: 0.84rem;
  color: var(--text-sub);
  padding-left: 0.8rem;
  position: relative;
  line-height: 1.5;
}
.about-aside-block li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.56em;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--gold);
  opacity: 0.5;
}

/* --- 14. CONTACT PAGE ---------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 6rem;
  padding: calc(var(--nav-h) + 5rem) 0 8rem;
}

.contact-info .label        { display: block; margin-bottom: 1rem; }
.contact-info h1             { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 1.25rem; }
.contact-info .lead          { font-size: 0.95rem; color: var(--text-sub); line-height: 1.85; margin-bottom: 2.5rem; }

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--border-dim);
}

.contact-detail-label {
  font-size: 0.63rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.25rem;
}

.contact-detail-value {
  font-size: 0.9rem;
  color: var(--text-sub);
  transition: color 0.2s;
}
.contact-detail-value:hover { color: var(--text); }

.contact-social { display: flex; gap: 0.75rem; flex-wrap: wrap; }

.social-pill {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  border: 1px solid var(--border);
  padding: 0.5rem 1rem;
  border-radius: 2px;
  transition: all 0.2s;
}
.social-pill:hover { color: var(--gold); border-color: var(--gold); }

/* Contact form */
.contact-form { display: flex; flex-direction: column; gap: 1.4rem; }

.form-group { display: flex; flex-direction: column; gap: 0.45rem; }

.form-group label {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.form-group input,
.form-group textarea,
.form-group select {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.85rem 1rem;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s;
  border-radius: 2px;
  width: 100%;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus { border-color: var(--gold); }

.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-muted); }

.form-group textarea { resize: vertical; min-height: 140px; }

.form-group select  { appearance: none; cursor: pointer; }
.form-group select option { background: var(--bg-card); }

.form-note { font-size: 0.76rem; color: var(--text-muted); margin-top: 0.5rem; }
.form-note a { color: var(--gold); }

/* --- 15. PAGE HEADER (reusable) ------------------------------ */
.page-header {
  padding: calc(var(--nav-h) + 5rem) 0 4rem;
  border-bottom: 1px solid var(--border-dim);
}
.page-header .label { display: block; margin-bottom: 1rem; }
.page-header h1     { font-size: clamp(2.5rem, 5vw, 3.5rem); margin-bottom: 1rem; }
.page-header .lead  { max-width: 500px; font-size: 0.95rem; color: var(--text-sub); line-height: 1.8; }

/* --- 16. FOOTER ----------------------------------------------- */
.footer {
  border-top: 1px solid var(--border-dim);
  padding: 2.75rem 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer-name { font-family: var(--font-serif); font-size: 0.95rem; color: var(--text-sub); }
.footer-copy { font-size: 0.7rem; color: var(--text-muted); }

.footer-links { display: flex; gap: 1.5rem; }
.footer-links a {
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--gold); }

/* --- 17. PAGE BODY OFFSET (for fixed nav) -------------------- */
.page-body { padding-top: var(--nav-h); }

/* --- 18. FADE-IN ANIMATION ----------------------------------- */
.fade-in {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* --- 19. RESPONSIVE ------------------------------------------ */
@media (max-width: 960px) {
  .about-body        { grid-template-columns: 1fr; gap: 3rem; }
  .about-hero-grid   { grid-template-columns: 1fr; gap: 3rem; }
  .about-photo-col   { justify-content: flex-start; padding-top: 0; }
  .about-facts-grid  { grid-template-columns: repeat(3, 1fr); }
  .contact-grid      { grid-template-columns: 1fr; gap: 3.5rem; }

  .blog-item {
    grid-template-columns: 1fr;
    gap: 0.6rem;
  }
  .blog-item-right { align-items: flex-start; flex-direction: row; gap: 1rem; }

  .articles-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  :root { --nav-h: 60px; }

  .container { padding: 0 1.25rem; }
  .section   { padding: 4rem 0; }

  /* Mobile nav overlay */
  .nav-links {
    display: none;
    position: fixed;
    inset: 0;
    top: var(--nav-h);
    background: var(--bg);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2.5rem;
    z-index: 99;
  }
  .nav-links.open { display: flex; }
  .nav-links a    { font-size: 1.1rem; letter-spacing: 0.06em; }

  .nav-toggle { display: flex; }
  .nav-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(4px, 4px); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(4px, -4px); }

  .about-facts-grid  { grid-template-columns: repeat(2, 1fr); }
  .about-photo-wrap,
  .about-photo-wrap img { width: 200px; height: 200px; }
  .hero-cta          { flex-direction: column; align-items: center; }
  .footer-inner      { flex-direction: column; text-align: center; }
  .footer-links      { flex-wrap: wrap; justify-content: center; }
  .newsletter-form   { flex-direction: column; }

  .article-page {
    padding: calc(var(--nav-h) + 2.5rem) 1.25rem 5rem;
  }

  .about-hero { padding-top: calc(var(--nav-h) + 2.5rem); }
}
