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

:root {
  --bg:         #f5f4f0;
  --surface:    #ffffff;
  --ink:        #16161a;
  --body-c:     #4a4a52;
  --muted:      #8a8a96;
  --rule:       #e4e2db;
  --rule-dark:  #cbc9c0;

  --accent:     #1a3a2a;
  --accent-mid: #2d6a4f;
  --accent-lt:  #eef4f0;
  --accent-line:#3d8b6a;

  --warn:       #92400e;
  --warn-lt:    #fef3c7;
  --done-lt:    #eff6ff;
  --done-c:     #1e40af;

  --shadow-xs:  0 1px 2px rgba(22,22,26,.05);
  --shadow-sm:  0 2px 8px rgba(22,22,26,.06), 0 1px 2px rgba(22,22,26,.04);
  --shadow-md:  0 8px 28px rgba(22,22,26,.08), 0 2px 6px rgba(22,22,26,.04);

  --ff-serif:   'Cormorant', Georgia, serif;
  --ff-sans:    'Manrope', system-ui, sans-serif;

  --r:          7px;
  --max-w:      1060px;
  --nav-h:      60px;
}

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

body {
  background: var(--bg);
  color: var(--body-c);
  font-family: var(--ff-sans);
  font-weight: 400;
  font-size: 15px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

::-webkit-scrollbar { width: 3px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--rule-dark); border-radius: 2px; }

/* NAV */
nav {
  position: sticky; top: 0; z-index: 200;
  height: var(--nav-h);
  background: rgba(245,244,240,0.94);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--rule);
}
.nav-inner {
  max-width: var(--max-w); margin: 0 auto; padding: 0 2.5rem;
  height: 100%; display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
  font-family: var(--ff-serif); font-size: 1.25rem; font-weight: 600;
  color: var(--ink); text-decoration: none; letter-spacing: .02em; line-height: 1;
}
.nav-logo span { color: var(--accent-mid); }
.nav-links { display: flex; align-items: center; gap: .15rem; list-style: none; }
.nav-links a {
  font-family: var(--ff-sans); font-size: .71rem; font-weight: 500;
  letter-spacing: .04em; color: var(--muted); text-decoration: none;
  padding: .38rem .82rem; border-radius: 5px; transition: color .18s, background .18s;
}
.nav-links a:hover  { color: var(--ink); background: var(--rule); }
.nav-links a.active { color: var(--accent); background: var(--accent-lt); font-weight: 600; }

/* PAGE */
.page { max-width: var(--max-w); margin: 0 auto; padding: 5.5rem 2.5rem 7rem; }

/* TYPOGRAPHY */
.eyebrow {
  font-family: var(--ff-sans); font-size: .67rem; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase; color: var(--accent-mid); margin-bottom: .8rem;
}
h1.display {
  font-family: var(--ff-serif); font-size: clamp(2.8rem, 6vw, 5.2rem);
  font-weight: 600; line-height: 1.05; color: var(--ink); letter-spacing: -.01em;
}
h1.display em { font-style: italic; color: var(--accent-mid); }
h2.section-title {
  font-family: var(--ff-serif); font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 600; color: var(--ink); letter-spacing: -.01em; line-height: 1.15;
}
h3.card-title {
  font-family: var(--ff-sans); font-size: .94rem; font-weight: 700;
  color: var(--ink); letter-spacing: -.01em; line-height: 1.35;
}
.rule-line { width: 36px; height: 1.5px; background: var(--accent-line); margin: 1.4rem 0 3rem; }
p.lead { font-size: 1rem; color: var(--body-c); line-height: 1.82; max-width: 600px; }

/* TAGS */
.tag {
  display: inline-block; font-family: var(--ff-sans); font-size: .63rem;
  font-weight: 600; letter-spacing: .04em; padding: .18rem .58rem;
  border-radius: 4px; border: 1px solid var(--rule-dark); color: var(--body-c); background: var(--surface);
}
.tag-accent  { background: var(--accent-lt);  color: var(--accent);  border-color: #b2d4c3; }
.tag-done    { background: var(--done-lt);     color: var(--done-c);  border-color: #bfdbfe; }
.tag-warm    { background: var(--warn-lt);     color: var(--warn);    border-color: #fde68a; }
.tag-neutral { background: #f1f1ee;            color: var(--body-c);  border-color: var(--rule-dark); }

/* BUTTONS */
.btn {
  display: inline-block; font-family: var(--ff-sans); font-size: .73rem;
  font-weight: 600; letter-spacing: .05em; padding: .7rem 1.7rem;
  border-radius: var(--r); text-decoration: none; border: 1.5px solid transparent;
  cursor: pointer; transition: all .18s ease; line-height: 1;
}
.btn-fill  { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn-fill:hover { background: var(--accent-mid); border-color: var(--accent-mid); box-shadow: 0 4px 16px rgba(26,58,42,.22); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--rule-dark); }
.btn-ghost:hover { border-color: var(--accent-line); color: var(--accent); background: var(--accent-lt); }

/* CARD */
.card { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r); box-shadow: var(--shadow-sm); }
.card-hover { transition: box-shadow .22s, transform .22s, border-color .22s; }
.card-hover:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); border-color: var(--rule-dark); }

/* BADGES */
.badge { font-family: var(--ff-sans); font-size: .6rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: .22rem .7rem; border-radius: 4px; white-space: nowrap; }
.badge-live    { background: #dcfce7; color: #166534; border: 1px solid #bbf7d0; }
.badge-done    { background: var(--done-lt);  color: var(--done-c);  border: 1px solid #bfdbfe; }
.badge-ongoing { background: var(--warn-lt);  color: var(--warn);    border: 1px solid #fde68a; }
.badge-dev     { background: #faf5ff; color: #6b21a8; border: 1px solid #e9d5ff; }

/* STAT GRID */
.stat-grid {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: .8rem;
  margin-top: 3.5rem; padding-top: 3.5rem; border-top: 1px solid var(--rule);
}
.stat-val { font-family: var(--ff-serif); font-size: 2.1rem; font-weight: 600; color: var(--ink); line-height: 1; display: block; }
.stat-lbl { font-size: .67rem; font-weight: 500; color: var(--muted); margin-top: .35rem; letter-spacing: .03em; line-height: 1.4; }

/* FOOTER */
footer {
  border-top: 1px solid var(--rule); padding: 1.8rem 2.5rem;
  font-size: .71rem; color: var(--muted); background: var(--surface);
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .5rem;
}
footer a { color: var(--body-c); text-decoration: none; transition: color .15s; }
footer a:hover { color: var(--accent); }

/* REVEAL */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .5s ease, transform .5s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.d1 { transition-delay: .08s; } .d2 { transition-delay: .16s; } .d3 { transition-delay: .24s; } .d4 { transition-delay: .32s; }

/* MOBILE */
@media (max-width: 720px) {
  .page { padding: 3.5rem 1.4rem 5rem; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .nav-links a { padding: .32rem .56rem; font-size: .67rem; }
}
