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

:root {
  --cream: #FAF7F0;
  --ink: #1C1810;
  --ink-light: #6B5F4A;
  --ink-faint: #B8A99A;
  --bch: #2ECC71;
  --bch-dark: #1A8A4A;
  --wash-sage: rgba(46, 204, 113, 0.06);
  --wash-taupe: rgba(184, 155, 120, 0.10);
  --wash-warm: rgba(230, 210, 180, 0.15);
  --border: rgba(107, 95, 74, 0.15);
}

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

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

body {
  background-color: var(--cream);
  color: var(--ink);
  font-family: 'Lora', Georgia, serif;
  font-weight: 400;
  line-height: 1.75;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* Watercolor background wash */
body::before {
  content: '';
  position: fixed;
  top: -20%;
  right: -10%;
  width: 70vw;
  height: 70vw;
  background: radial-gradient(ellipse at 60% 40%,
    rgba(46,204,113,0.05) 0%,
    rgba(180,210,160,0.04) 30%,
    rgba(230,215,190,0.03) 60%,
    transparent 75%);
  filter: blur(40px);
  pointer-events: none;
  z-index: 0;
}

body::after {
  content: '';
  position: fixed;
  bottom: -10%;
  left: -5%;
  width: 55vw;
  height: 55vw;
  background: radial-gradient(ellipse at 40% 60%,
    rgba(184,155,120,0.08) 0%,
    rgba(230,210,180,0.05) 40%,
    transparent 70%);
  filter: blur(50px);
  pointer-events: none;
  z-index: 0;
}

/* Nav */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(250,247,240,0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  font-family: 'Lora', serif;
  font-size: 0.78rem;
  color: var(--ink-light);
  text-decoration: none;
  letter-spacing: 0.06em;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--ink); }
.nav-links a.active { color: var(--ink); border-bottom: 1px solid var(--bch); }

/* Main content wrapper */
main {
  position: relative;
  z-index: 1;
  max-width: 860px;
  margin: 0 auto;
  padding: 3rem 2rem 5rem;
}

/* Typography */
h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 300;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 1rem;
}

h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 400;
  line-height: 1.25;
  color: var(--ink);
  margin-bottom: 0.75rem;
}

h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 0.5rem;
}

p { margin-bottom: 1.25rem; color: var(--ink); }
p:last-child { margin-bottom: 0; }

a { color: var(--ink); transition: color 0.2s; }

.label {
  font-family: 'Lora', serif;
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.bch-accent { color: var(--bch-dark); }

/* Divider */
.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 3rem 0;
}

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.card {
  border: 1px solid var(--border);
  border-radius: 2px;
  padding: 1.75rem;
  text-decoration: none;
  color: var(--ink);
  transition: border-color 0.2s, box-shadow 0.2s;
  background: rgba(250,247,240,0.7);
  position: relative;
}

.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 2px; height: 100%;
  background: var(--bch);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.25s ease;
}

.card:hover { border-color: rgba(107,95,74,0.3); box-shadow: 0 4px 24px rgba(0,0,0,0.05); }
.card:hover::before { transform: scaleY(1); }

.card-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.25rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.card-desc {
  font-size: 0.82rem;
  color: var(--ink-light);
  line-height: 1.6;
}

.card-arrow {
  margin-top: 1.25rem;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--ink-faint);
}

/* Table */
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  margin: 1.5rem 0;
}

th {
  text-align: left;
  padding: 0.5rem 1rem;
  font-family: 'Lora', serif;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
  border-bottom: 1px solid var(--border);
}

td {
  padding: 0.6rem 1rem;
  border-bottom: 1px solid rgba(107,95,74,0.08);
  color: var(--ink-light);
}

tr:last-child td { border-bottom: none; font-weight: 500; color: var(--ink); }

/* Code block */
.code-block {
  background: rgba(28,24,16,0.04);
  border: 1px solid var(--border);
  border-left: 3px solid var(--bch);
  border-radius: 0 2px 2px 0;
  padding: 1.25rem 1.5rem;
  font-family: 'Courier New', monospace;
  font-size: 0.78rem;
  line-height: 1.7;
  color: var(--ink-light);
  overflow-x: auto;
  margin: 1.5rem 0;
}

/* Footer */
footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  padding: 2rem;
  text-align: center;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  list-style: none;
  margin-bottom: 1rem;
}

.footer-links a {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: var(--ink-faint);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover { color: var(--ink-light); }

.footer-copy {
  font-size: 0.72rem;
  color: var(--ink-faint);
}

/* Watercolor blob decoration */
.watercolor-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(35px);
  pointer-events: none;
  opacity: 0.5;
}

/* Video container */
.video-wrap {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  background: rgba(28,24,16,0.04);
  border: 1px solid var(--border);
  margin: 2.5rem 0;
  border-radius: 2px;
  overflow: hidden;
}

.video-wrap iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: none;
}

.video-placeholder {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Lora', serif;
  font-size: 0.8rem;
  color: var(--ink-faint);
  letter-spacing: 0.1em;
}

/* Watercolor wash behind video */
.video-section {
  position: relative;
  padding: 1rem 0;
}

.video-section::before {
  content: '';
  position: absolute;
  top: -30px; left: -60px; right: -60px; bottom: -30px;
  background: radial-gradient(ellipse at 50% 50%,
    rgba(46,204,113,0.06) 0%,
    rgba(46,204,113,0.03) 50%,
    transparent 75%);
  filter: blur(20px);
  z-index: -1;
}

/* Animations */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-up { animation: fadeUp 0.7s ease forwards; }
.fade-up-2 { animation: fadeUp 0.7s 0.15s ease both; }
.fade-up-3 { animation: fadeUp 0.7s 0.3s ease both; }
.fade-up-4 { animation: fadeUp 0.7s 0.45s ease both; }

/* Mobile */
@media (max-width: 640px) {
  nav { padding: 0.875rem 1.25rem; }
  .nav-links { gap: 1.25rem; }
  main { padding: 2rem 1.25rem 4rem; }
  .card-grid { grid-template-columns: 1fr; }
}
