/* ========================================
   THE OBSERVABLE — Core Styles
   Palette: Bej (#F5F0E8) + Koyu Yeşil (#2D4A3E)
   ======================================== */

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

:root {
  --bg: #F5F0E8;
  --green: #2D4A3E;
  --green-light: #3d6b5a;
  --ink: #1a1a1a;
  --muted: #7a7a6e;
  --border: #ddd8cc;
  --white: #ffffff;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.7;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--green); }

img { max-width: 100%; display: block; }

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

header {
  background: var(--green);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--bg);
  letter-spacing: 0.02em;
}

.nav-logo span {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 0.6rem;
  font-weight: 300;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(245,240,232,0.6);
  margin-top: -2px;
}

nav {
  display: flex;
  gap: 2rem;
  align-items: center;
}

nav a {
  color: rgba(245,240,232,0.75);
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 0.2s;
}

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

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--bg);
}

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

.hero {
  background: var(--green);
  color: var(--bg);
  padding: 6rem 2rem 5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 300px; height: 300px;
  border-radius: 50%;
  border: 1px solid rgba(245,240,232,0.08);
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -80px; left: -40px;
  width: 200px; height: 200px;
  border-radius: 50%;
  border: 1px solid rgba(245,240,232,0.06);
}

.hero-inner { max-width: 700px; margin: 0 auto; position: relative; z-index: 1; }

.hero-eyebrow {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(245,240,232,0.5);
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  letter-spacing: -0.01em;
}

.hero-desc {
  font-size: 1rem;
  font-weight: 300;
  color: rgba(245,240,232,0.7);
  max-width: 480px;
  margin: 0 auto;
  line-height: 1.8;
}

/* ========================================
   SECTION LAYOUT
   ======================================== */

.section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 5rem 2rem;
}

.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 2.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--green);
}

.section-link {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
  padding-bottom: 1px;
  transition: color 0.2s, border-color 0.2s;
}

.section-link:hover {
  color: var(--green);
  border-color: var(--green);
}

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

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

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(45,74,62,0.1);
}

.card-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-tag {
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 0.75rem;
}

.card-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 0.75rem;
  color: var(--ink);
}

.card-excerpt {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.65;
  flex: 1;
}

.card-meta {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--muted);
}

.card-author { font-weight: 500; }

/* ========================================
   FEATURED ARTICLE
   ======================================== */

.featured {
  background: var(--green);
  color: var(--bg);
  border-radius: 4px;
  padding: 3rem;
  margin-bottom: 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.featured-tag {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(245,240,232,0.5);
  margin-bottom: 1rem;
}

.featured-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 1rem;
}

.featured-excerpt {
  font-size: 0.9rem;
  color: rgba(245,240,232,0.7);
  line-height: 1.75;
  margin-bottom: 1.5rem;
}

.featured-meta {
  font-size: 0.75rem;
  color: rgba(245,240,232,0.5);
}

.btn {
  display: inline-block;
  padding: 0.6rem 1.4rem;
  border: 1px solid var(--bg);
  color: var(--bg);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 2px;
  transition: background 0.2s, color 0.2s;
}

.btn:hover {
  background: var(--bg);
  color: var(--green);
}

/* ========================================
   ABOUT PAGE
   ======================================== */

.page-hero {
  background: var(--green);
  color: var(--bg);
  padding: 5rem 2rem 4rem;
  text-align: center;
}

.page-hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
}

.page-content {
  max-width: 720px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

.page-content h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  color: var(--green);
  margin: 2.5rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.page-content p {
  margin-bottom: 1.25rem;
  color: #333;
  line-height: 1.8;
}

.contact-block {
  background: var(--green);
  color: var(--bg);
  border-radius: 4px;
  padding: 2rem 2.5rem;
  margin-top: 3rem;
}

.contact-block h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  margin-bottom: 1rem;
  color: var(--bg);
  border: none;
  padding: 0;
}

.contact-block a {
  color: rgba(245,240,232,0.8);
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.contact-block a:hover { color: var(--bg); }

/* ========================================
   DIVIDER
   ======================================== */

.divider {
  border: none;
  border-top: 1px solid var(--border);
  max-width: 1100px;
  margin: 0 auto;
}

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

footer {
  background: var(--green);
  color: rgba(245,240,232,0.6);
  padding: 3rem 2rem;
  text-align: center;
}

.footer-inner { max-width: 1100px; margin: 0 auto; }

.footer-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  color: var(--bg);
  margin-bottom: 0.5rem;
}

.footer-sub {
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: rgba(245,240,232,0.6);
  font-size: 0.8rem;
  transition: color 0.2s;
}

.footer-links a:hover { color: var(--bg); }

.footer-copy {
  font-size: 0.72rem;
  color: rgba(245,240,232,0.35);
}

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

@media (max-width: 768px) {
  .nav-toggle { display: flex; }

  nav {
    display: none;
    position: absolute;
    top: 64px; left: 0; right: 0;
    background: var(--green);
    flex-direction: column;
    padding: 1.5rem 2rem;
    gap: 1.25rem;
    border-top: 1px solid rgba(255,255,255,0.1);
  }

  nav.open { display: flex; }

  .featured {
    grid-template-columns: 1fr;
    padding: 2rem;
    gap: 1.5rem;
  }

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