/* uncoupled.life — shared styles */
@import url('https://api.fontshare.com/v2/css?f[]=erode@400,500,600,700&f[]=general-sans@300,400,500,600,700&display=swap');

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

:root {
  --bg: #FAF8F5;
  --text: #555;
  --accent: #5A8A6A;
  --accent-dark: #3d6b4f;
  --heading: #2c2c2c;
  --border: #e5e0d8;
  --card-bg: #fff;
  --max-w: 780px;
}

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'General Sans', system-ui, sans-serif;
  font-weight: 400;
  line-height: 1.75;
  min-height: 100vh;
}

a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
a:hover { color: var(--accent-dark); }

/* NAV */
nav {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 0 1.5rem;
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}
.nav-logo {
  font-family: 'Erode', Georgia, serif;
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--heading);
  text-decoration: none;
  letter-spacing: -0.02em;
}
.nav-links {
  display: flex;
  gap: 1.8rem;
  list-style: none;
}
.nav-links a {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  letter-spacing: 0.01em;
}
.nav-links a:hover { color: var(--accent); }

/* HERO */
.hero {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 5rem 1.5rem 3.5rem;
  text-align: center;
}
.hero h1 {
  font-family: 'Erode', Georgia, serif;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 600;
  color: var(--heading);
  line-height: 1.2;
  letter-spacing: -0.03em;
  margin-bottom: 1.2rem;
}
.hero p {
  font-size: 1.1rem;
  max-width: 560px;
  margin: 0 auto 2rem;
  color: #6b6b6b;
  font-weight: 400;
}
.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.75rem 1.8rem;
  border-radius: 6px;
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: background 0.2s;
}
.btn:hover { background: var(--accent-dark); color: #fff; }
.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
}
.btn-outline:hover { background: var(--accent); color: #fff; }

/* SECTIONS */
.section {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 3rem 1.5rem;
}
.section + .section { border-top: 1px solid var(--border); }
.section-wide {
  max-width: 1100px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}
.section h2 {
  font-family: 'Erode', Georgia, serif;
  font-size: 1.7rem;
  font-weight: 600;
  color: var(--heading);
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}
.section h3 {
  font-family: 'Erode', Georgia, serif;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--heading);
  margin-bottom: 0.5rem;
}

/* ABOUT STRIP */
.about-strip {
  background: #f0ece6;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

/* ARTICLE CARDS GRID */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}
.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  transition: box-shadow 0.2s, transform 0.2s;
}
.card:hover { box-shadow: 0 4px 18px rgba(0,0,0,0.07); transform: translateY(-2px); }
.card-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}
.card h3 { font-size: 1.05rem; margin-bottom: 0; }
.card p { font-size: 0.9rem; color: #777; flex: 1; }
.card a.card-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  margin-top: auto;
}
.card a.card-link:hover { text-decoration: underline; }

/* CALLOUT BOX */
.callout {
  background: #eef4f0;
  border-left: 4px solid var(--accent);
  border-radius: 8px;
  padding: 1.5rem 1.8rem;
  margin: 2.5rem 0;
}
.callout p { margin: 0; font-size: 0.97rem; }
.callout strong { color: var(--heading); }

/* ARTICLE PAGE */
.article-header {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 4rem 1.5rem 2rem;
}
.article-header .tag {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: 0.75rem;
}
.article-header h1 {
  font-family: 'Erode', Georgia, serif;
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  font-weight: 600;
  color: var(--heading);
  line-height: 1.25;
  letter-spacing: -0.025em;
  margin-bottom: 1rem;
}
.article-header .deck {
  font-size: 1.08rem;
  color: #6b6b6b;
  line-height: 1.65;
  max-width: 640px;
}
.article-meta {
  margin-top: 1.2rem;
  font-size: 0.82rem;
  color: #999;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.article-body {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem 4rem;
}
.article-body h2 {
  font-family: 'Erode', Georgia, serif;
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--heading);
  letter-spacing: -0.02em;
  margin: 2.2rem 0 0.8rem;
}
.article-body h3 {
  font-family: 'General Sans', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--heading);
  margin: 1.8rem 0 0.5rem;
}
.article-body p { margin-bottom: 1.2rem; }
.article-body ul, .article-body ol {
  padding-left: 1.4rem;
  margin-bottom: 1.2rem;
}
.article-body li { margin-bottom: 0.4rem; }

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.85rem;
  color: var(--text);
  text-decoration: none;
  margin-bottom: 1.5rem;
}
.back-link:hover { color: var(--accent); }

/* RESOURCES PAGE */
.resources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.2rem;
  margin-top: 1rem;
}
.resource-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.2rem 1.4rem;
}
.resource-card .type {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.3rem;
}
.resource-card h3 { font-size: 0.98rem; margin-bottom: 0.25rem; }
.resource-card p { font-size: 0.87rem; color: #777; margin: 0; }

/* FOOTER */
footer {
  border-top: 1px solid var(--border);
  padding: 2rem 1.5rem;
  text-align: center;
  font-size: 0.82rem;
  color: #999;
}
footer a { color: #999; }
footer .footer-nav {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}

/* RESPONSIVE */
@media (max-width: 640px) {
  .nav-links { display: none; }
  .hero { padding: 3rem 1.2rem 2.5rem; }
  .cards-grid { grid-template-columns: 1fr; }
  .resources-grid { grid-template-columns: 1fr; }
}
