/* ============================================
   Donna Pahel — design tokens
   Palette verified against the actual shipped launch
   assets (OG card, LinkedIn carousel), not an earlier draft.
   Fraunces + Source Sans 3.
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300;0,9..144,400;0,9..144,500;0,9..144,600;1,9..144,400;1,9..144,500&family=Source+Sans+3:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap');

:root {
  --ivory: #F5F1EA;
  --ivory-deep: #EFE7D9;
  --espresso: #2E2A27;
  --terracotta: #B5502A;
  --terracotta-deep: #8F3E20;
  --sand: #C8B39B;
  --parchment: #EAE1D2;
  --ink-soft: #6B6459;
  --line: #DED2BC;

  --display: 'Fraunces', Georgia, serif;
  --body: 'Source Sans 3', -apple-system, Helvetica, Arial, sans-serif;

  --max: 1120px;
  --gutter: clamp(1.5rem, 5vw, 4rem);
}

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

body {
  margin: 0;
  background: var(--ivory);
  color: var(--espresso);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--terracotta); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--terracotta-deep); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--terracotta);
  outline-offset: 3px;
}

::selection { background: var(--terracotta); color: var(--ivory); }

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

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--espresso); color: var(--ivory);
  padding: 0.8rem 1.2rem; font-family: var(--body); font-weight: 600;
}
.skip-link:focus { left: 1rem; top: 1rem; }

.sampaguita-mark { width: 26px; height: 26px; color: var(--terracotta); flex-shrink: 0; }

/* ---------- layout shells ---------- */
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.wrap-narrow { max-width: 720px; margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- nav ---------- */
.site-nav {
  position: sticky; top: 0; z-index: 40;
  background: rgba(245, 241, 234, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-nav .wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 78px;
}
.nav-brand { display: flex; align-items: center; gap: 0.65rem; text-decoration: none; color: var(--espresso); }
.nav-brand .name { font-family: var(--display); font-weight: 500; font-size: 1.15rem; letter-spacing: 0.01em; }
.nav-links { display: flex; gap: 2.2rem; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  color: var(--espresso); text-decoration: none; font-size: 0.95rem; font-weight: 600;
  letter-spacing: 0.02em;
  padding-bottom: 4px; border-bottom: 2px solid transparent;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { border-bottom-color: var(--terracotta); color: var(--terracotta); }

@media (max-width: 720px) {
  .site-nav .wrap { height: auto; flex-wrap: wrap; padding-top: 1rem; padding-bottom: 1rem; gap: 0.7rem; }
  .nav-links { flex-wrap: wrap; gap: 0.5rem 1.3rem; width: 100%; }
  .nav-links a { font-size: 0.92rem; }
}

/* ---------- eyebrow / labels ---------- */
.eyebrow {
  font-family: var(--body); font-weight: 700; font-size: 0.78rem;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--terracotta);
  display: inline-flex; align-items: center; gap: 0.5rem;
}
.eyebrow .sampaguita-mark { width: 15px; height: 15px; }

/* ---------- headings ---------- */
h1, h2, h3 { font-family: var(--display); font-weight: 500; color: var(--espresso); line-height: 1.12; margin: 0; }
h1 { font-size: clamp(2.3rem, 4.6vw, 3.6rem); font-weight: 500; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.25rem; }
.italic-serif { font-style: italic; }

p { margin: 0 0 1.1em; color: var(--espresso); }
.lede { font-size: 1.18rem; color: var(--ink-soft); font-weight: 400; }
.muted { color: var(--ink-soft); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--body); font-weight: 700; font-size: 0.95rem;
  padding: 0.85rem 1.6rem; border-radius: 3px;
  text-decoration: none; letter-spacing: 0.01em;
  transition: transform 0.15s ease, background 0.15s ease;
  border: none; cursor: pointer;
}
.btn-primary { background: var(--terracotta); color: var(--ivory); }
.btn-primary:hover { background: var(--terracotta-deep); color: var(--ivory); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--espresso); border: 1.5px solid var(--espresso); }
.btn-ghost:hover { border-color: var(--terracotta); color: var(--terracotta); }

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: 5rem 0 4rem;
  border-bottom: 1px solid var(--line);
}
.hero-mark {
  position: absolute; top: -50px; right: -50px;
  width: 440px; height: 440px; color: var(--terracotta); opacity: 0.06;
  transform: rotate(14deg);
}
.hero .wrap { position: relative; z-index: 1; }
.hero h1 { max-width: 16ch; margin-top: 1.1rem; }
.hero .lede { max-width: 48ch; margin-top: 1.3rem; }
.hero-cta { margin-top: 2rem; display: flex; gap: 1rem; flex-wrap: wrap; }

/* ---------- sections ---------- */
.section { padding: 4.2rem 0; }
.section-tight { padding: 2.8rem 0; }
.section-parchment { background: var(--parchment); }
.section-border-top { border-top: 1px solid var(--line); }

/* ---------- featured piece card ---------- */
.featured-card {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 3rem; align-items: center;
  background: var(--ivory-deep); border: 1px solid var(--line);
  padding: 2.5rem; margin-top: 2rem;
}
.featured-card img { border: 1px solid var(--line); }
.featured-meta { font-size: 0.85rem; color: var(--ink-soft); margin-bottom: 0.6rem; }
@media (max-width: 860px) { .featured-card { grid-template-columns: 1fr; } }

/* ---------- point-of-view list ---------- */
.pov-list { list-style: none; margin: 1.8rem 0 0; padding: 0; display: grid; gap: 1.7rem; }
.pov-list li { display: flex; gap: 1rem; align-items: flex-start; }
.pov-list .sampaguita-mark { width: 19px; height: 19px; margin-top: 0.3rem; }
.pov-list p { margin: 0; font-size: 1.06rem; }
.pov-list strong { color: var(--espresso); }

/* ---------- bio / about ---------- */
.bio-grid { display: grid; grid-template-columns: 210px 1fr; gap: 2.8rem; align-items: start; }
.bio-photo { width: 100%; border: 1px solid var(--line); }
@media (max-width: 720px) { .bio-grid { grid-template-columns: 1fr; } .bio-photo { max-width: 210px; } }

.credentials { list-style: none; padding: 0; margin: 1.5rem 0; columns: 2; column-gap: 2rem; }
.credentials li { font-size: 0.97rem; padding: 0.4rem 0; break-inside: avoid; }
@media (max-width: 600px) { .credentials { columns: 1; } }

/* ---------- insights index ---------- */
.insight-row {
  display: grid; grid-template-columns: 1fr; gap: 0.5rem;
  padding: 2rem 0; border-bottom: 1px solid var(--line);
}
.insight-row h3 { margin-bottom: 0.3rem; }
.insight-row .featured-meta { margin-bottom: 0; }
.more-soon {
  margin-top: 2.5rem; padding: 1.6rem; background: var(--parchment);
  border: 1px dashed var(--sand); color: var(--ink-soft); font-size: 0.95rem;
}

/* ---------- footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 2.8rem 0 2.4rem;
  background: var(--espresso);
  color: var(--ivory-deep);
}
.site-footer a { color: var(--ivory-deep); }
.site-footer .wrap { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 1.5rem; }
.footer-links { display: flex; gap: 1.6rem; list-style: none; margin: 0; padding: 0; font-size: 0.92rem; flex-wrap: wrap; }
.footer-fine { font-size: 0.82rem; color: #AFA491; margin-top: 1.2rem; max-width: 42ch; line-height: 1.5; }

/* ---------- article (flagship brief) ---------- */
.article-head { padding: 3.2rem 0 2rem; border-bottom: 1px solid var(--line); }
.article-head .eyebrow { margin-bottom: 1rem; }
.article-head h1 { max-width: 21ch; }
.article-meta { margin-top: 1.3rem; display: flex; gap: 1.2rem; align-items: center; font-size: 0.92rem; color: var(--ink-soft); flex-wrap: wrap; }
.article-meta img { width: 40px; height: 40px; border-radius: 50%; }
.article-actions { margin-top: 1.6rem; display: flex; gap: 0.9rem; flex-wrap: wrap; }

.article-body { padding: 2.8rem 0; }
.article-body h2 { margin-top: 2.8rem; margin-bottom: 1.05rem; }
.article-body p { font-size: 1.07rem; }
.article-body ul { padding-left: 1.3rem; }
.article-body li { margin-bottom: 0.6rem; font-size: 1.04rem; }
.article-body > .wrap-narrow > ol { padding-left: 1.3rem; }
.article-body ol li { margin-bottom: 1rem; font-size: 1.04rem; }

.idea-brief {
  background: var(--parchment); border: 1px solid var(--line);
  padding: 1.7rem 1.9rem; margin: 2rem 0;
}
.idea-brief h3 { font-family: var(--body); font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--terracotta); margin-bottom: 0.85rem; }
.idea-brief p { font-size: 0.97rem; margin-bottom: 0.65rem; }
.idea-brief p:last-child { margin-bottom: 0; }

.pull-quote {
  font-family: var(--display); font-style: italic; font-weight: 500;
  font-size: 1.42rem; color: var(--terracotta);
  border-left: 3px solid var(--terracotta);
  padding: 0.25rem 0 0.25rem 1.5rem;
  margin: 2.2rem 0;
  max-width: 36ch;
}

.excluded-note {
  background: transparent; border-left: 3px solid var(--sand);
  padding: 0.2rem 0 0.2rem 1.5rem; margin: 1.6rem 0;
  font-style: italic; color: var(--ink-soft); font-size: 0.98rem;
}

figure.article-figure { margin: 2.3rem 0; }
figure.article-figure img { border: 1px solid var(--line); }
figure.article-figure figcaption {
  font-size: 0.87rem; color: var(--ink-soft); font-style: italic;
  margin-top: 0.65rem; text-align: center;
}

.stat-list { list-style: none; padding: 0; margin: 1.5rem 0; }
.stat-list li {
  padding: 0.8rem 0; border-bottom: 1px solid var(--line);
  display: flex; gap: 1rem; font-size: 1rem;
}
.stat-list strong { color: var(--terracotta); min-width: 3.4rem; font-family: var(--display); font-size: 1.12rem; }

.role-table { width: 100%; border-collapse: collapse; margin: 1.6rem 0; font-size: 0.97rem; }
.role-table th, .role-table td { text-align: left; padding: 0.7rem 0.9rem 0.7rem 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.role-table th { font-family: var(--body); font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); font-weight: 700; }
.role-table td:first-child { font-weight: 700; white-space: nowrap; }

.day-block { margin-bottom: 1.5rem; }
.day-block strong { display: block; color: var(--espresso); margin-bottom: 0.3rem; }

.sources-list { padding-left: 0; list-style: none; font-size: 0.92rem; color: var(--ink-soft); }
.sources-list li { padding: 0.5rem 0; border-bottom: 1px solid var(--line); }

.article-close { text-align: center; padding: 3.2rem 0; border-top: 1px solid var(--line); }
.article-close .big-line { font-family: var(--display); font-size: 1.8rem; font-style: italic; color: var(--terracotta); margin-bottom: 1.7rem; }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3.2rem; }
@media (max-width: 780px) { .contact-grid { grid-template-columns: 1fr; } }

form.contact-form { display: grid; gap: 1.05rem; margin-top: 1.5rem; }
.form-field { display: grid; gap: 0.4rem; }
.form-field label { font-size: 0.88rem; font-weight: 600; color: var(--espresso); }
.form-field input, .form-field textarea {
  font-family: var(--body); font-size: 1rem;
  padding: 0.8rem 0.9rem; border: 1.5px solid var(--line);
  background: var(--ivory); color: var(--espresso); border-radius: 2px;
}
.form-field input:focus, .form-field textarea:focus { outline: none; border-color: var(--terracotta); }
.form-field textarea { resize: vertical; min-height: 130px; }

.contact-card { background: var(--parchment); border: 1px solid var(--line); padding: 1.9rem; }
.contact-card h3 { margin-bottom: 0.75rem; }
.contact-card p { font-size: 0.97rem; }

/* ---------- 404 ---------- */
.error-page { padding: 6rem 0; text-align: center; }
.error-page .sampaguita-mark { width: 48px; height: 48px; margin: 0 auto 1.5rem; opacity: 0.5; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
