/* ─── Reset & Base ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:       #F4EFE6;
  --card:     #FDFAF5;
  --text:     #1C1409;
  --subtext:  #6B5C4A;
  --meta:     #9E8C7A;
  --border:   #DDD3C4;
  --accent:   #004225;
  --brown:    #7C5533;
  --radius:   14px;
  --shadow:   0 2px 16px rgba(28,20,9,.07);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.2;
  letter-spacing: -0.5px;
  margin-top: 10px;
  margin-bottom: 16px;
}

p { color: var(--subtext); line-height: 1.75; }

a { text-decoration: none; color: inherit; }

/* ─── Label ────────────────────────────────────────────────────── */
.label {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--accent);
}

/* ─── Buttons ──────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.2px;
  transition: opacity .15s, transform .15s;
  cursor: pointer;
}
.btn:hover { opacity: .88; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary { background: var(--accent); color: #fff; }
.btn-ghost {
  background: transparent;
  color: var(--accent);
  border: 1.5px solid var(--border);
}

/* ─── Nav ──────────────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  height: 60px;
  background: rgba(244,239,230,.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 22px;
  color: var(--text);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--subtext);
  transition: color .15s;
}
.nav-links a:hover { color: var(--text); }

.nav-cta {
  background: var(--accent);
  color: #fff !important;
  padding: 8px 18px;
  border-radius: 8px;
  font-size: 14px !important;
  font-weight: 600 !important;
  transition: opacity .15s !important;
}
.nav-cta:hover { opacity: .88; color: #fff !important; }

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .2s;
}

.nav-mobile {
  display: none;
  flex-direction: column;
  background: var(--card);
  border-bottom: 1px solid var(--border);
  padding: 12px 24px 20px;
  gap: 18px;
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  font-size: 16px;
  font-weight: 500;
  color: var(--subtext);
}

/* ─── Hero ─────────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: calc(100vh - 60px);
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--accent);
  padding: 80px 32px 80px;
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 600px;
  margin-left: max(32px, calc(50vw - 540px));
}

.hero-eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(244,239,230,.65);
  margin-bottom: 16px;
}

.hero-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(72px, 12vw, 112px);
  line-height: 1;
  letter-spacing: -2px;
  color: #F4EFE6;
  margin-bottom: 16px;
}

.hero-tagline {
  font-size: clamp(15px, 2vw, 18px);
  font-style: italic;
  color: rgba(244,239,230,.75);
  margin-bottom: 28px;
}

.hero-body {
  font-size: 16px;
  line-height: 1.7;
  color: rgba(244,239,230,.8);
  max-width: 480px;
  margin-bottom: 40px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero .btn-primary {
  background: #F4EFE6;
  color: var(--accent);
}
.hero .btn-ghost {
  color: rgba(244,239,230,.9);
  border-color: rgba(244,239,230,.35);
}

/* decorative rings */
.hero-decoration {
  position: absolute;
  right: -120px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1;
  pointer-events: none;
}
.decoration-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(244,239,230,.1);
}
.ring-1 {
  width: 560px;
  height: 560px;
  top: -280px;
  left: -280px;
}
.ring-2 {
  width: 820px;
  height: 820px;
  top: -410px;
  left: -410px;
}

/* ─── About ────────────────────────────────────────────────────── */
.about {
  padding: 96px 0;
  background: var(--card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 64px;
  align-items: start;
}

.about-text h2 { margin-bottom: 24px; }
.about-text p { margin-bottom: 18px; font-size: 16px; }
.about-text p:last-child { margin-bottom: 0; }

.pullquote {
  background: var(--bg);
  border-left: 3px solid var(--accent);
  padding: 24px 24px 24px 28px;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 20px;
  line-height: 1.45;
  color: var(--text);
  margin-bottom: 12px;
}

.pullquote-caption {
  font-size: 13px;
  font-style: italic;
  text-align: center;
  color: var(--meta);
}

/* ─── Topics ───────────────────────────────────────────────────── */
.topics {
  padding: 96px 0;
}

.section-sub {
  font-size: 16px;
  max-width: 520px;
  margin-bottom: 48px;
  margin-top: 4px;
}

.topics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.topic-card {
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: transform .18s, box-shadow .18s, border-color .18s;
}
.topic-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: var(--color);
}

.topic-icon {
  font-size: 28px;
  margin-bottom: 14px;
}

.topic-card h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--color);
  margin-bottom: 8px;
}

.topic-card p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--subtext);
}

/* ─── Team ─────────────────────────────────────────────────────── */
.team {
  padding: 96px 0;
  background: var(--card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 8px;
}

.team-card {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 20px;
  transition: box-shadow .18s;
}
.team-card:hover { box-shadow: var(--shadow); }

.team-avatar {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--color) 15%, transparent);
  color: var(--color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  font-weight: 700;
}

.team-info h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 3px;
}

.team-role {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.3px;
  color: var(--accent);
  margin-bottom: 8px;
}

.team-info p {
  font-size: 14px;
  line-height: 1.6;
}

/* ─── Contact ──────────────────────────────────────────────────── */
.contact {
  padding: 96px 0;
  background: var(--card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.contact-text h2 { margin-bottom: 12px; }
.contact-text > p { margin-bottom: 28px; font-size: 16px; }

.contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.contact-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 26px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contact-card-icon {
  font-size: 30px;
}

.contact-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin: 0;
}

.contact-card p {
  font-size: 15px;
  line-height: 1.7;
  margin: 0;
}

/* ─── Download ─────────────────────────────────────────────────── */
.download {
  padding: 96px 0;
  background: var(--accent);
}

.download-inner {
  text-align: center;
}

.download h2 {
  color: #F4EFE6;
  margin-bottom: 12px;
}

.download p {
  color: rgba(244,239,230,.75);
  font-size: 16px;
  max-width: 440px;
  margin: 0 auto 40px;
}

.download-badges {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
}

.badge-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  background: rgba(244,239,230,.12);
  border: 1.5px solid rgba(244,239,230,.25);
  border-radius: 10px;
  color: #F4EFE6;
  font-size: 15px;
  font-weight: 600;
  transition: background .15s;
}
.badge-btn:hover { background: rgba(244,239,230,.2); }

/* ─── Privacy Policy page ──────────────────────────────────────── */
.policy-hero {
  background: var(--accent);
  padding: 64px 0 48px;
}
.policy-hero h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(32px, 5vw, 48px);
  color: #F4EFE6;
  margin-top: 10px;
  margin-bottom: 0;
}
.policy-updated {
  font-size: 14px;
  font-style: italic;
  color: rgba(244,239,230,.6);
  margin-top: 8px;
}
.policy-body {
  padding: 64px 0 80px;
}
.policy-container {
  max-width: 720px;
}
.policy-section {
  margin-bottom: 40px;
}
.policy-section h2 {
  font-size: 18px;
  font-weight: 700;
  font-family: 'Inter', sans-serif;
  color: var(--text);
  margin-bottom: 12px;
  margin-top: 0;
  letter-spacing: 0;
}
.policy-section p {
  font-size: 15px;
  line-height: 1.75;
  color: var(--subtext);
  margin-bottom: 12px;
}
.policy-section p:last-child { margin-bottom: 0; }
.policy-section ul {
  padding-left: 20px;
  margin: 12px 0;
}
.policy-section li {
  font-size: 15px;
  line-height: 1.75;
  color: var(--subtext);
  margin-bottom: 4px;
}
.policy-section a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ─── Footer ───────────────────────────────────────────────────── */
.footer {
  padding: 40px 0;
  background: #0A1A10;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.footer-logo {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 22px;
  color: rgba(244,239,230,.85);
}

.footer-tag {
  font-size: 13px;
  font-style: italic;
  color: rgba(244,239,230,.4);
}

.footer-copy {
  font-size: 12px;
  color: rgba(244,239,230,.3);
  margin-top: 8px;
}
.footer-privacy {
  font-size: 12px;
  color: rgba(244,239,230,.3);
  text-decoration: underline;
  text-underline-offset: 3px;
  margin-top: 4px;
  transition: color .15s;
}
.footer-privacy:hover { color: rgba(244,239,230,.6); }

/* ─── Articles section ──────────────────────────────────────────── */
.articles {
  padding: 96px 0;
}

.articles-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 36px;
}
.articles-header h2 { margin: 0; }

.filter-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.filter-tab {
  padding: 7px 16px;
  border-radius: 20px;
  border: 1.5px solid var(--border);
  background: transparent;
  font-size: 13px;
  font-weight: 600;
  color: var(--subtext);
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
  font-family: 'Inter', sans-serif;
}
.filter-tab:hover { border-color: var(--accent); color: var(--accent); }
.filter-tab.active { background: var(--accent); border-color: var(--accent); color: #fff; }

.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.article-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 20px 18px;
  cursor: pointer;
  transition: transform .18s, box-shadow .18s, border-color .18s;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.article-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: color-mix(in srgb, var(--accent) 40%, var(--border));
}

.article-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.article-tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--color);
  background: color-mix(in srgb, var(--color) 12%, transparent);
  padding: 3px 9px;
  border-radius: 20px;
}

.article-date {
  font-size: 12px;
  color: var(--meta);
  white-space: nowrap;
}

.article-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.35;
  flex-grow: 1;
}

.article-summary {
  font-size: 14px;
  line-height: 1.6;
  color: var(--subtext);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 4px;
}

.article-author {
  font-size: 12px;
  font-weight: 600;
  color: var(--meta);
}

.article-read {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
}

.article-skeleton {
  height: 180px;
  background: linear-gradient(90deg, var(--card) 25%, var(--border) 50%, var(--card) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
@keyframes shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.articles-empty {
  color: var(--meta);
  font-style: italic;
  text-align: center;
  padding: 48px 0;
}
.articles-error {
  color: #8B3A3A;
  text-align: center;
  padding: 48px 0;
}

/* ─── Modal ─────────────────────────────────────────────────────── */
.modal-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(28,20,9,.45);
  backdrop-filter: blur(4px);
  z-index: 200;
}
.modal-backdrop.open { display: block; }

.modal {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -48%);
  width: min(680px, calc(100vw - 32px));
  max-height: 85vh;
  overflow-y: auto;
  background: var(--card);
  border-radius: 18px;
  padding: 36px 36px 40px;
  z-index: 201;
  box-shadow: 0 24px 80px rgba(0,0,0,.22);
  opacity: 0;
  transition: opacity .2s, transform .2s;
}
.modal.open {
  display: block;
  opacity: 1;
  transform: translate(-50%, -50%);
}

.modal-close {
  position: sticky;
  float: right;
  top: 0;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  font-size: 18px;
  line-height: 1;
  color: var(--subtext);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  margin-left: auto;
  transition: background .15s;
}
.modal-close:hover { background: var(--border); }

.modal-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.modal-category {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--color, var(--accent));
  background: color-mix(in srgb, var(--color, var(--accent)) 12%, transparent);
  padding: 3px 10px;
  border-radius: 20px;
}

.modal-date {
  font-size: 13px;
  color: var(--meta);
}

.modal-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.25;
  color: var(--text);
  margin-bottom: 8px;
  margin-top: 0;
}

.modal-author {
  font-size: 13px;
  font-weight: 600;
  color: var(--meta);
  margin-bottom: 16px;
}

.modal-summary {
  font-size: 16px;
  line-height: 1.7;
  color: var(--subtext);
  font-style: italic;
  margin-bottom: 0;
}

.modal-divider {
  height: 1px;
  background: var(--border);
  margin: 24px 0;
}

.modal-share-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 28px;
  padding: 10px 20px;
  border-radius: 8px;
  border: 1.5px solid var(--border);
  background: transparent;
  font-size: 14px;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  color: var(--subtext);
  cursor: pointer;
  transition: border-color .15s, color .15s;
}
.modal-share-btn:hover { border-color: var(--accent); color: var(--accent); }

.modal-body p {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text);
  margin-bottom: 18px;
}
.modal-body p:last-child { margin-bottom: 0; }

/* ─── Animations ───────────────────────────────────────────────── */
.fade-in {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .5s ease, transform .5s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── Responsive ───────────────────────────────────────────────── */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .nav { padding: 0 20px; }

  .hero { padding: 64px 24px 72px; min-height: auto; }
  .hero-inner { margin-left: 0; }
  .hero-decoration { display: none; }

  .about { padding: 64px 0; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-aside { order: -1; }

  .articles { padding: 64px 0; }
  .contact { padding: 64px 0; }
  .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .articles-header { flex-direction: column; align-items: flex-start; }
  .topics { padding: 64px 0; }
  .team { padding: 64px 0; }
  .download { padding: 64px 0; }
  .modal { padding: 24px 20px 28px; }

  .team-grid { grid-template-columns: 1fr; }
  .topics-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .topics-grid { grid-template-columns: 1fr; }
  .hero-title { font-size: 64px; }
}
