/* ==========================================================================
   Coritas Strategies - shared stylesheet
   Modern, minimal. Brand navy, brick red, white space.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Spectral:ital,wght@0,300;0,400;0,500;0,600;1,400&family=Archivo:wght@400;500;600;700&display=swap');

:root {
  --paper:   #ffffff;
  --mist:    #f5f7fa;
  --navy:    #2a3a66;
  --navy-deep: #1a2547;
  --ink:     #1c2540;
  --muted:   #5b6478;
  --brick:   #9e4a38;
  --brick-deep: #843b2c;
  --line:    #e5e8ef;
  --card:    #ffffff;

  --serif: 'Spectral', Georgia, serif;
  --sans:  'Archivo', system-ui, sans-serif;

  --wrap: 1140px;
  --gutter: clamp(20px, 5vw, 64px);
}

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

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }

/* ---------- header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand {
  font-family: var(--serif); font-weight: 500; font-size: 22px;
  letter-spacing: 0.02em; text-decoration: none; color: var(--navy-deep);
}
.brand span { color: var(--brick); }
.nav-links { display: flex; gap: 34px; align-items: center; list-style: none; }
.nav-links a {
  text-decoration: none; font-size: 15px; font-weight: 500;
  letter-spacing: 0.01em; color: var(--muted); transition: color 0.2s ease;
}
.nav-links a:hover, .nav-links a.active { color: var(--navy); }
.nav-cta {
  text-decoration: none; font-size: 14px; font-weight: 600;
  color: #fff; background: var(--navy); padding: 11px 22px;
  border-radius: 6px; transition: background 0.25s ease;
}
.nav-cta:hover { background: var(--brick); }
.nav-toggle { display: none; background: none; border: 0; font-size: 26px; color: var(--navy-deep); cursor: pointer; }

@media (max-width: 760px) {
  .nav-links {
    position: absolute; top: 76px; left: 0; right: 0; flex-direction: column; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    max-height: 0; overflow: hidden; transition: max-height 0.3s ease;
  }
  .nav-links.open { max-height: 380px; }
  .nav-links li { width: 100%; border-top: 1px solid var(--line); }
  .nav-links li:first-child { border-top: 0; }
  .nav-links a, .nav-links .nav-cta { display: block; padding: 17px var(--gutter); border-radius: 0; background: none; color: var(--navy-deep); }
  .nav-toggle { display: block; }
}

/* ---------- type ---------- */
.eyebrow {
  font-size: 13px; font-weight: 600; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--brick);
}
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.1; letter-spacing: -0.01em; color: var(--navy-deep); }
h1 { font-size: clamp(40px, 6.5vw, 76px); font-weight: 400; }
h2 { font-size: clamp(28px, 4vw, 44px); }
h3 { font-size: clamp(19px, 2.2vw, 24px); }
p.lead { font-size: clamp(18px, 1.9vw, 21px); color: var(--muted); line-height: 1.6; }

/* ---------- buttons ---------- */
.btn {
  display: inline-block; text-decoration: none; font-weight: 600;
  font-size: 15px; letter-spacing: 0.01em; padding: 14px 28px;
  border-radius: 6px; cursor: pointer; border: 1px solid transparent;
  transition: background 0.25s ease, color 0.25s ease, transform 0.2s ease, border-color 0.25s ease;
}
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--brick); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--navy); }

/* ---------- hero ---------- */
.hero { padding: clamp(72px, 13vw, 168px) 0 clamp(48px, 8vw, 96px); }
.hero .eyebrow { margin-bottom: 26px; }
.hero h1 { max-width: 15ch; margin-bottom: 32px; }
.hero p.lead { max-width: 50ch; margin-bottom: 40px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-rule { margin-top: clamp(56px, 9vw, 104px); height: 1px; background: var(--line); }

/* ---------- sections ---------- */
.section { padding: clamp(64px, 10vw, 128px) 0; }
.section-head { max-width: 58ch; margin-bottom: clamp(44px, 6vw, 76px); }
.section-head .eyebrow { display: block; margin-bottom: 22px; }
.section-head p { color: var(--muted); margin-top: 20px; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 7vw, 96px); align-items: center; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; gap: 28px; } }

.tint { background: var(--mist); }

/* ---------- open card grid (minimal) ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: clamp(32px, 4vw, 56px); }
.cell { padding-top: 28px; border-top: 2px solid var(--navy); }
.cell .num { font-family: var(--serif); color: var(--brick); font-size: 15px; display: block; margin-bottom: 18px; letter-spacing: 0.05em; }
.cell h3 { margin-bottom: 12px; }
.cell p { color: var(--muted); font-size: 16px; }

/* ---------- program list ---------- */
.program { border-top: 1px solid var(--line); padding: clamp(30px, 4vw, 48px) 0; display: grid; grid-template-columns: 170px 1fr auto; gap: 30px; align-items: start; }
.program:last-child { border-bottom: 1px solid var(--line); }
.program .kicker { font-family: var(--serif); font-size: 18px; color: var(--brick); }
.program h3 { margin-bottom: 10px; }
.program p { color: var(--muted); max-width: 60ch; }
.program .meta { font-size: 14px; color: var(--muted); white-space: nowrap; }
@media (max-width: 760px) { .program { grid-template-columns: 1fr; gap: 10px; } .program .meta { white-space: normal; } }

/* ---------- bio ---------- */
.bio-card { background: var(--mist); border-radius: 10px; padding: clamp(30px, 4vw, 52px); }
.bio-card .role { color: var(--brick); font-weight: 600; font-size: 13px; letter-spacing: 0.05em; text-transform: uppercase; }
.bio-card h3 { margin: 10px 0 20px; font-size: clamp(24px, 3vw, 32px); }
.bio-card p { color: var(--muted); margin-bottom: 16px; }

/* ---------- blog ---------- */
.post-list { display: grid; gap: 0; border-top: 1px solid var(--line); }
.post-row { padding: clamp(26px, 4vw, 38px) 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: baseline; text-decoration: none; transition: opacity 0.2s ease; }
.post-row:hover { opacity: 0.62; }
.post-row .pr-inner { padding: 0 var(--gutter); }
.post-row h3 { margin-bottom: 8px; }
.post-row p { color: var(--muted); font-size: 16px; max-width: 64ch; }
.post-row .date { padding-right: var(--gutter); color: var(--muted); font-size: 14px; white-space: nowrap; }
@media (max-width: 640px) { .post-row { grid-template-columns: 1fr; } .post-row .date { padding-left: var(--gutter); } }

/* article (single post) */
.article { padding: clamp(64px, 10vw, 120px) 0; }
.article-head { max-width: 62ch; margin: 0 auto clamp(40px, 5vw, 60px); }
.article-head .date { color: var(--brick); font-size: 14px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 18px; display: block; }
.article-head h1 { font-size: clamp(32px, 5vw, 56px); margin-bottom: 20px; }
.article-head .by { color: var(--muted); font-weight: 600; }
.prose { max-width: 62ch; margin: 0 auto; font-size: 18px; line-height: 1.78; }
.prose h2 { font-size: clamp(24px, 3vw, 32px); margin: 1.6em 0 0.5em; }
.prose h3 { font-size: clamp(20px, 2.2vw, 24px); margin: 1.4em 0 0.4em; }
.prose p { margin: 0 0 1.1em; color: #2c3142; }
.prose a { color: var(--brick); text-decoration: underline; text-underline-offset: 3px; }
.prose ul, .prose ol { margin: 0 0 1.1em 1.3em; }
.prose li { margin-bottom: 0.5em; }
.prose blockquote { border-left: 3px solid var(--brick); padding-left: 24px; margin: 1.5em 0; font-family: var(--serif); font-size: 1.18em; font-style: italic; color: var(--navy-deep); }
.prose code { background: var(--mist); padding: 2px 6px; border-radius: 4px; font-size: 0.9em; }
.prose pre { background: var(--navy-deep); color: #eef1f7; padding: 20px; border-radius: 8px; overflow-x: auto; margin: 1.5em 0; }
.prose pre code { background: none; padding: 0; }

/* ---------- forms ---------- */
.form { display: grid; gap: 18px; max-width: 540px; }
.field label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 7px; color: var(--navy-deep); }
.field input, .field textarea, .field select {
  width: 100%; font-family: var(--sans); font-size: 16px; color: var(--ink);
  background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 13px 15px;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--navy); }
.field textarea { min-height: 150px; resize: vertical; }
.form-note { font-size: 14px; color: var(--muted); }
.form-status { font-size: 15px; font-weight: 600; min-height: 1.4em; }
.form-status.ok { color: var(--navy); }
.form-status.err { color: #b23b2e; }

/* ---------- admin ---------- */
.admin-shell { max-width: 880px; margin: 0 auto; padding: 40px var(--gutter) 100px; }
.admin-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 30px; }
.admin-list { border-top: 1px solid var(--line); margin-bottom: 40px; }
.admin-item { border-bottom: 1px solid var(--line); padding: 16px 0; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.admin-item .ttl { font-family: var(--serif); font-size: 19px; color: var(--navy-deep); }
.tag { font-size: 12px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; }
.tag.published { background: #e6ede4; color: #2f5d3a; }
.tag.draft { background: #f0e6da; color: #8a6a3a; }
.linkbtn { background: none; border: 0; color: var(--brick); font-weight: 600; cursor: pointer; font-size: 14px; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: clamp(48px, 7vw, 76px) 0 40px; margin-top: 40px; }
.footer-grid { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 30px; }
.site-footer .brand { font-size: 20px; margin-bottom: 12px; display: inline-block; }
.site-footer p { color: var(--muted); font-size: 15px; max-width: 36ch; }
.footer-links { display: flex; gap: 26px; flex-wrap: wrap; list-style: none; }
.footer-links a { text-decoration: none; color: var(--muted); font-size: 15px; }
.footer-links a:hover { color: var(--navy); }
.footer-base { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }
