/* ================================================
   YeahDev — Main Stylesheet
   Aesthetic: Editorial / Raw-Ink / High-contrast
   ================================================ */

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

:root {
  --ink:      #0e0e0e;
  --ink-soft: #3a3a3a;
  --ink-muted:#888;
  --paper:    #f5f2ec;
  --paper-off:#ede9e0;
  --accent:   #d4500a;
  --accent2:  #1a6b3c;
  --line:     #d0cabf;
  --white:    #ffffff;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'DM Sans', system-ui, sans-serif;
  --font-mono:    'DM Mono', monospace;

  --max-w: 1160px;
  --gap: clamp(1.5rem, 4vw, 3rem);
}

html { scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: clamp(15px, 1.05vw, 17px);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* ---- Utilities ---- */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 clamp(1.25rem, 4vw, 2.5rem); }

/* ---- Header ---- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--ink);
  border-bottom: 2px solid var(--accent);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 58px;
}
.logo {
  font-family: var(--font-mono);
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--paper);
  text-decoration: none;
  letter-spacing: -0.03em;
}
.logo span { color: var(--accent); }

.nav { display: flex; gap: 2rem; }
.nav a {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
  text-decoration: none;
  transition: color 0.2s;
}
.nav a:hover { color: var(--paper); }

/* ---- Hero ---- */
.hero {
  padding: clamp(4rem, 8vw, 7rem) 0 0;
  overflow: hidden;
  position: relative;
}
.hero-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.25rem;
}
.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6vw, 5.5rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 1.25rem;
}
.hero-headline em {
  font-style: italic;
  color: var(--accent);
}
.hero-sub {
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  color: var(--ink-soft);
  max-width: 520px;
  font-weight: 300;
  margin-bottom: 3.5rem;
}
.hero-rule {
  height: 3px;
  background: linear-gradient(90deg, var(--accent) 0%, var(--ink) 40%, transparent 100%);
  margin-top: 0;
}

/* ---- Section label ---- */
.section-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-muted);
  padding: clamp(2.5rem, 5vw, 4rem) 0 1.25rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 2rem;
}

/* ---- Articles Grid ---- */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
  gap: 0;
  border: 1px solid var(--line);
}

.card {
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--white);
  transition: background 0.25s;
  display: flex; flex-direction: column; gap: 0.75rem;
}
.card:hover { background: var(--paper-off); }

.card--featured {
  grid-column: span 2;
  background: var(--ink);
  color: var(--paper);
}
.card--featured:hover { background: #1c1c1c; }
.card--featured .card-title a { color: var(--paper); }
.card--featured .card-excerpt { color: #a09990; }
.card--featured .date { color: #666; }
.card--featured .read-more { color: var(--accent); }
.card--featured .read-more:hover { color: #ff7a3a; }

.card--placeholder { opacity: 0.7; }

@media (max-width: 700px) { .card--featured { grid-column: span 1; } }

.card-meta { display: flex; align-items: center; gap: 0.75rem; }

.tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--accent);
  color: var(--white);
  padding: 0.2em 0.6em;
  border-radius: 2px;
}
.date {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--ink-muted);
}

.card-title {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 1.8vw, 1.45rem);
  font-weight: 700;
  line-height: 1.25;
  margin-top: 0.25rem;
}
.card-title a { color: var(--ink); text-decoration: none; }
.card-title a:hover { text-decoration: underline; text-underline-offset: 3px; }

.card-excerpt {
  font-size: 0.92rem;
  color: var(--ink-soft);
  line-height: 1.6;
  flex: 1;
}

.read-more {
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--accent);
  text-decoration: none;
  margin-top: auto;
  display: inline-block;
  transition: letter-spacing 0.2s;
}
.read-more:hover { letter-spacing: 0.08em; }
.read-more.muted { color: var(--ink-muted); pointer-events: none; }

/* ---- Topics ---- */
.topics-section { padding: clamp(3rem, 6vw, 5rem) 0; }
.topics-grid {
  display: flex; flex-wrap: wrap; gap: 0.75rem;
  margin-top: 1.5rem;
}
.topic {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.55em 1.1em;
  border: 1.5px solid var(--line);
  border-radius: 100px;
  background: var(--white);
  color: var(--ink-soft);
  transition: all 0.2s;
  cursor: default;
}
.topic:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: #fff5f0;
}

/* ---- Footer ---- */
.site-footer {
  background: var(--ink);
  color: var(--paper);
  margin-top: clamp(4rem, 8vw, 6rem);
  padding-top: 3rem;
}
.footer-inner {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 2rem; padding-bottom: 2.5rem;
  border-bottom: 1px solid #2a2a2a;
}
.footer-brand .logo { display: inline-block; margin-bottom: 0.75rem; }
.footer-brand p {
  font-size: 0.87rem;
  color: #666;
  line-height: 1.6;
}
.footer-links {
  display: flex; flex-direction: column; gap: 0.6rem; text-align: right;
}
.footer-links a {
  font-size: 0.85rem;
  color: #888;
  text-decoration: none;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--paper); }
.footer-bottom {
  padding: 1.25rem 0;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: #555;
}

@media (max-width: 600px) {
  .footer-inner { flex-direction: column; }
  .footer-links { text-align: left; }
}
