/* ARK Foundry — shared styles for /writing pages */

:root {
  --dark:    #0C090D;
  --crimson: #E01A4F;
  --coral:   #F15946;
  --yellow:  #F9C22E;
  --teal:    #53B3CB;
  --white:   #FFFFFF;
  --off:     #F7F5F8;
  --muted:   #6B6070;
  --radius:  16px;
  --radius-lg: 28px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', sans-serif;
  background: var(--white);
  color: var(--dark);
  overflow-x: hidden;
}
a { color: inherit; }

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 48px;
  height: 68px;
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(12,9,13,0.08);
  transition: box-shadow 0.3s;
}
nav.scrolled { box-shadow: 0 4px 32px rgba(12,9,13,0.10); }
.nav-logo {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  color: var(--dark);
  text-decoration: none;
  display: flex; align-items: center; gap: 10px;
}
.nav-logo .ark-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--coral);
  display: inline-block;
}
.nav-links {
  display: flex; align-items: center; gap: 36px;
  list-style: none;
}
.nav-links a {
  font-family: 'Montserrat', sans-serif;
  font-weight: 500; font-size: 0.78rem;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--dark); text-decoration: none;
  opacity: 0.65;
  transition: opacity 0.2s, color 0.2s;
}
.nav-links a:hover { opacity: 1; color: var(--teal); }
.nav-links a.active { opacity: 1; color: var(--teal); }
.nav-cta {
  background: var(--dark); color: var(--white) !important;
  opacity: 1 !important;
  padding: 9px 22px; border-radius: 100px;
  transition: background 0.2s !important;
}
.nav-cta:hover { background: var(--teal) !important; color: var(--white) !important; }

/* ── ARCHIVE HERO ── */
.writing-hero {
  padding: 160px 48px 80px;
  max-width: 1080px;
  margin: 0 auto;
}
.writing-label {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700; font-size: 0.7rem;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 16px;
}
.writing-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--dark);
  margin-bottom: 28px;
  max-width: 760px;
}
.writing-intro {
  font-family: 'DM Sans', sans-serif;
  font-size: 1.15rem;
  line-height: 1.6;
  color: var(--muted);
  max-width: 640px;
}

/* ── POST LIST (archive) ── */
.post-list {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 48px 120px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.post-card {
  background: var(--white);
  border: 1px solid rgba(12,9,13,0.10);
  border-radius: var(--radius-lg);
  padding: 36px 40px;
  text-decoration: none;
  color: var(--dark);
  display: block;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.post-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(12,9,13,0.08);
  border-color: rgba(83,179,203,0.4);
}
.post-meta {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.topic-chip {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600; font-size: 0.68rem;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--teal);
  background: rgba(83,179,203,0.12);
  padding: 5px 12px;
  border-radius: 100px;
}
.post-date {
  font-size: 0.82rem;
  color: var(--muted);
  font-family: 'DM Sans', sans-serif;
}
.post-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: clamp(1.3rem, 2.4vw, 1.7rem);
  line-height: 1.25;
  letter-spacing: -0.015em;
  margin-bottom: 14px;
  color: var(--dark);
}
.post-excerpt {
  font-size: 1rem;
  line-height: 1.65;
  color: #4A3F52;
  margin-bottom: 18px;
}
.post-read {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  color: var(--coral);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.2s;
}
.post-card:hover .post-read { gap: 10px; }

/* ── ARTICLE (individual post) ── */
.article {
  max-width: 720px;
  margin: 0 auto;
  padding: 140px 32px 60px;
}
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  margin-bottom: 36px;
  transition: color 0.2s, gap 0.2s;
}
.back-link:hover {
  color: var(--teal);
  gap: 10px;
}
.article-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.article-date {
  font-size: 0.85rem;
  color: var(--muted);
  font-family: 'DM Sans', sans-serif;
}
.article-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: clamp(2rem, 4.5vw, 3rem);
  line-height: 1.12;
  letter-spacing: -0.025em;
  color: var(--dark);
  margin-bottom: 48px;
}
.article-body {
  font-family: 'DM Sans', sans-serif;
  font-size: 1.15rem;
  line-height: 1.75;
  color: #2A1F32;
}
.article-body p {
  margin-bottom: 1.5em;
}
.article-body p:last-of-type {
  margin-bottom: 0;
}
.article-body strong {
  font-weight: 600;
  color: var(--dark);
}
.article-body em {
  font-style: italic;
  color: var(--dark);
}

/* ── ARTICLE FOOTER ── */
.article-footer {
  max-width: 720px;
  margin: 60px auto 0;
  padding: 40px 32px 80px;
  border-top: 1px solid rgba(12,9,13,0.10);
}
.article-footer p {
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--muted);
  margin-bottom: 16px;
}
.linkedin-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--coral);
  text-decoration: none;
  transition: gap 0.2s;
}
.linkedin-link:hover { gap: 12px; }

/* ── SITE FOOTER ── */
footer {
  background: #080608;
  color: rgba(255,255,255,0.4);
  text-align: center;
  padding: 28px 48px;
  font-size: 0.78rem;
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  letter-spacing: 0.04em;
}
footer span { color: rgba(255,255,255,0.15); margin: 0 10px; }
footer a { color: rgba(255,255,255,0.5); text-decoration: none; transition: color 0.2s; }
footer a:hover { color: var(--teal); }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  nav { padding: 0 20px; }
  .nav-links { display: none; }
  .writing-hero { padding: 120px 20px 60px; }
  .post-list { padding: 0 20px 80px; }
  .post-card { padding: 28px 24px; }
  .article { padding: 110px 20px 40px; }
  .article-footer { padding: 32px 20px 60px; }
  footer { padding: 24px 20px; }
}
