/* Silent Lab — shared site styles (header, footer, base type, buttons)
   Used by /guides/ pages. Keep in sync with the inline <style> in index.html. */

:root {
  --cream: #F5F2EE;
  --cream-soft: #EFEAE3;
  --cream-deep: #E8E1D5;
  --charcoal: #1C1A18;
  --charcoal-soft: #2A2724;
  --charcoal-mid: #4A453E;
  --sage: #8FA896;
  --sage-deep: #6B8474;
  --sage-soft: #B8C9BC;
  --rule: #D9D2C8;
  --rule-soft: #E5DFD3;
  --muted: #6F6A62;
  --shadow-sm: 0 1px 2px rgba(28, 26, 24, 0.04);
  --shadow-md: 0 4px 16px rgba(28, 26, 24, 0.06);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--cream);
  color: var(--charcoal);
  font-family: 'DM Sans', sans-serif;
  font-weight: 400;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-image:
    radial-gradient(circle at 25% 15%, rgba(143, 168, 150, 0.025) 0%, transparent 40%),
    radial-gradient(circle at 75% 75%, rgba(28, 26, 24, 0.012) 0%, transparent 40%);
  background-attachment: fixed;
}

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

/* TYPOGRAPHY */
h1, h2, h3, .display {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  letter-spacing: -0.012em;
  color: var(--charcoal);
}
h1 { font-size: clamp(2.6rem, 5.6vw, 4.2rem); line-height: 1.02; font-weight: 500; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); line-height: 1.15; font-weight: 500; }
h3 { font-size: 1.25rem; line-height: 1.25; font-weight: 600; font-family: 'DM Sans', sans-serif; letter-spacing: -0.005em; }

p { font-size: 1rem; line-height: 1.6; color: var(--charcoal-soft); }

.eyebrow {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--sage-deep);
  font-weight: 600;
}

/* LAYOUT */
.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
@media (min-width: 720px) { .container { padding: 0 2rem; } }

section { padding: 4.5rem 0; position: relative; }
@media (min-width: 720px) { section { padding: 5.5rem 0; } }

/* HEADER */
.site-header {
  position: sticky;
  top: 0;
  background: rgba(245, 242, 238, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule-soft);
  z-index: 50;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.1rem;
  padding-bottom: 1.1rem;
  gap: 1rem;
}
.logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.65rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--charcoal);
  text-decoration: none;
  line-height: 1;
  flex-shrink: 0;
}
.logo .accent { color: var(--sage-deep); font-style: italic; }
nav.primary { display: none; gap: 2rem; }
@media (min-width: 820px) { nav.primary { display: flex; } }
nav.primary a {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.88rem;
  color: var(--charcoal-mid);
  text-decoration: none;
  transition: color 0.15s ease;
  font-weight: 400;
}
nav.primary a:hover { color: var(--charcoal); }
nav.primary a.current { color: var(--sage-deep); font-weight: 500; }
.header-cta {
  display: inline-block;
  background: var(--charcoal);
  color: var(--cream);
  padding: 0.55rem 1rem;
  font-size: 0.82rem;
  font-weight: 500;
  text-decoration: none;
  border-radius: 2px;
  transition: background 0.15s ease;
  white-space: nowrap;
  flex-shrink: 0;
}
@media (min-width: 720px) {
  .header-cta {
    padding: 0.55rem 1.1rem;
    font-size: 0.85rem;
  }
}
.header-cta:hover { background: var(--sage-deep); }
@media (max-width: 540px) {
  .site-header .container {
    padding-top: 0.9rem;
    padding-bottom: 0.9rem;
  }
  .logo { font-size: 1.45rem; }
  .header-cta { padding: 0.5rem 0.85rem; font-size: 0.78rem; }
}

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.85rem 1.6rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.15s ease;
  border-radius: 2px;
  line-height: 1;
}
.btn-primary {
  background: var(--charcoal);
  color: var(--cream);
  border-color: var(--charcoal);
}
.btn-primary:hover {
  background: var(--sage-deep);
  border-color: var(--sage-deep);
}
.btn-ghost {
  background: transparent;
  color: var(--charcoal);
  border-color: var(--rule);
}
.btn-ghost:hover {
  background: var(--charcoal);
  color: var(--cream);
  border-color: var(--charcoal);
}
.arrow {
  display: inline-block;
  transition: transform 0.2s ease;
}
.btn:hover .arrow { transform: translateX(3px); }

/* FOOTER */
.site-footer {
  background: var(--charcoal);
  color: rgba(245, 242, 238, 0.72);
  padding: 3.5rem 0 2rem;
}
.site-footer .container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}
@media (min-width: 720px) {
  .site-footer .container { grid-template-columns: 1.4fr 1fr 1fr; gap: 3rem; }
}
.site-footer .logo { color: var(--cream); }
.site-footer p {
  font-size: 0.86rem;
  color: rgba(245, 242, 238, 0.6);
  line-height: 1.6;
  margin-top: 0.6rem;
  max-width: 32ch;
}
.footer-col h4 {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--sage);
  font-weight: 600;
  margin-bottom: 1rem;
}
.footer-col a {
  display: block;
  color: rgba(245, 242, 238, 0.72);
  text-decoration: none;
  font-size: 0.9rem;
  padding: 0.25rem 0;
  transition: color 0.15s ease;
}
.footer-col a:hover { color: var(--cream); }
.footer-col p { margin-top: 0.4rem; }
.colophon {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(245, 242, 238, 0.10);
  font-size: 0.78rem;
  color: rgba(245, 242, 238, 0.42);
  text-align: center;
}
@media (max-width: 540px) {
  .site-footer { padding: 2.8rem 0 1.6rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* ============ GUIDES SECTION ============ */

.guides-hero {
  padding: 3.5rem 0 3rem;
  border-bottom: 1px solid var(--rule-soft);
  text-align: center;
}
@media (min-width: 720px) { .guides-hero { padding: 4.5rem 0 4rem; } }
.guides-hero .eyebrow { display: block; margin-bottom: 0.9rem; }
.guides-hero h1 { max-width: 26ch; margin: 0 auto; }
.guides-hero .lead {
  margin: 1.2rem auto 0;
  max-width: 56ch;
  font-size: 1.05rem;
  color: var(--charcoal-mid);
}

.guides-list {
  padding: 3.5rem 0 5rem;
}
.guides-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.4rem;
}
@media (min-width: 720px) {
  .guides-grid { grid-template-columns: repeat(2, 1fr); gap: 1.6rem; }
}
.guide-card {
  display: flex;
  flex-direction: column;
  background: var(--cream);
  border: 1px solid var(--rule-soft);
  border-radius: 4px;
  padding: 2rem 1.8rem;
  text-decoration: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.guide-card:hover {
  border-color: var(--sage-deep);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.guide-card .g-eyebrow {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.9rem;
}
.guide-card .g-eyebrow .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--sage-deep);
  flex-shrink: 0;
}
.guide-card .g-eyebrow span.cat {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
  font-weight: 600;
}
.guide-card h2 {
  font-size: 1.5rem;
  margin-bottom: 0.7rem;
  line-height: 1.2;
}
.guide-card p.excerpt {
  font-size: 0.94rem;
  color: var(--charcoal-mid);
  line-height: 1.6;
  flex-grow: 1;
}
.guide-card .g-read {
  margin-top: 1.4rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--sage-deep);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.guide-card:hover .g-read .arrow { transform: translateX(3px); }

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

.article-header {
  padding: 3rem 0 2.5rem;
  border-bottom: 1px solid var(--rule-soft);
}
@media (min-width: 720px) { .article-header { padding: 4rem 0 3rem; } }
.article-header .container { max-width: 720px; }
.article-crumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 1.6rem;
}
.article-crumb a { color: var(--muted); text-decoration: none; }
.article-crumb a:hover { color: var(--sage-deep); }
.article-header .eyebrow { display: block; margin-bottom: 1rem; }
.article-header h1 { line-height: 1.08; }
.article-dek {
  margin-top: 1.3rem;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.2rem;
  color: var(--charcoal-mid);
  line-height: 1.5;
}
.article-meta {
  margin-top: 1.6rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.82rem;
  color: var(--muted);
}
.article-meta .sep { width: 3px; height: 3px; border-radius: 50%; background: var(--rule); }

.article-body {
  padding: 3rem 0 4rem;
}
.article-body .container { max-width: 720px; }
.article-body h2 {
  margin-top: 2.6rem;
  margin-bottom: 1rem;
  font-size: 1.6rem;
}
.article-body h2:first-child { margin-top: 0; }
.article-body p {
  margin-bottom: 1.3rem;
  font-size: 1.03rem;
  color: var(--charcoal-soft);
  line-height: 1.7;
}
.article-body ul {
  margin: 0 0 1.5rem 0;
  padding: 0;
  list-style: none;
}
.article-body ul li {
  position: relative;
  padding: 0.5rem 0 0.5rem 1.4rem;
  font-size: 1.01rem;
  line-height: 1.65;
  color: var(--charcoal-soft);
  border-bottom: 1px solid var(--rule-soft);
}
.article-body ul li:last-child { border-bottom: none; }
.article-body ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 1rem;
  width: 8px;
  height: 1px;
  background: var(--sage-deep);
}
.article-body ul li strong { color: var(--charcoal); font-weight: 600; }
.article-body em { font-style: italic; }
.article-body strong { color: var(--charcoal); font-weight: 600; }
.article-body a { color: var(--sage-deep); text-decoration: underline; text-decoration-color: var(--sage-soft); }
.article-body a:hover { color: var(--charcoal); }
.article-lede {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.35rem;
  color: var(--charcoal-mid);
  line-height: 1.5;
  padding: 1.6rem 0;
  border-top: 1px solid var(--rule-soft);
  border-bottom: 1px solid var(--rule-soft);
  margin-bottom: 2.4rem;
}
.article-divider {
  border: none;
  border-top: 1px solid var(--rule-soft);
  margin: 2.6rem 0;
}
.article-cta {
  margin: 2.5rem 0;
  padding: 1.8rem 1.8rem;
  background: var(--cream-soft);
  border: 1px solid var(--rule-soft);
  border-left: 2px solid var(--sage-deep);
  border-radius: 0 4px 4px 0;
}
.article-cta p { margin-bottom: 1.1rem; }
.article-cta p:last-child { margin-bottom: 0; }
.article-closing {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.15rem;
  color: var(--charcoal-mid);
  line-height: 1.6;
  padding-top: 1.8rem;
  border-top: 1px solid var(--rule-soft);
}
.article-signature {
  margin-top: 1.2rem;
  font-size: 0.9rem;
  color: var(--muted);
  font-style: normal;
}
.article-signature a { color: var(--sage-deep); text-decoration: none; }
.article-signature a:hover { text-decoration: underline; }

.article-footer-cta {
  background: var(--charcoal);
  padding: 3.5rem 0;
  text-align: center;
}
.article-footer-cta .container { max-width: 620px; }
.article-footer-cta h2 { color: var(--cream); margin-bottom: 1rem; }
.article-footer-cta p {
  color: rgba(245, 242, 238, 0.75);
  margin-bottom: 1.8rem;
  font-size: 1rem;
}
.article-footer-cta .cta-row {
  display: flex;
  gap: 0.8rem;
  justify-content: center;
  flex-wrap: wrap;
}
.article-footer-cta .btn-ghost {
  color: var(--cream);
  border-color: rgba(245, 242, 238, 0.3);
}
.article-footer-cta .btn-ghost:hover {
  background: var(--cream);
  color: var(--charcoal);
  border-color: var(--cream);
}

@media (max-width: 540px) {
  .article-body h2 { font-size: 1.35rem; margin-top: 2rem; }
  .article-lede { font-size: 1.15rem; }
  .article-cta { padding: 1.4rem 1.3rem; }
}
