:root {
  color-scheme: dark;
  --bg: #12160f;
  --bg-2: #1a2a33;
  --bg-3: #1d2a1a;
  --surface: rgba(236, 231, 218, .035);
  --text: #ece7da;
  --muted: #b2b29f;
  --line: rgba(236, 231, 218, .12);
  --sage: #9fb27f;
  --accent: #c2d1a4;
  --tag: rgba(159, 178, 127, .14);
  --btn: #a9bc88;
  --btn-text: #12160f;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: Mulish, system-ui, -apple-system, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; background: #141a30; }
body {
  margin: 0;
  color: var(--text);
  font: 300 17px/1.75 var(--sans);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
::selection { background: var(--tag); }

.nav {
  position: sticky; top: 0; z-index: 10;
  display: flex; justify-content: space-between; align-items: center;
  padding: 20px max(24px, calc((100% - 998px) / 2));
  background: color-mix(in srgb, #121a33 55%, transparent);
  backdrop-filter: blur(10px);
}
.logo { font: italic 500 24px/1 var(--serif); text-decoration: none; color: var(--accent); }
.nav nav { display: flex; gap: 26px; }
.nav nav a {
  text-decoration: none; color: var(--muted);
  font-size: 12px; letter-spacing: .16em; text-transform: uppercase; font-weight: 400;
}
.nav nav a:hover { color: var(--accent); }

main { max-width: 1046px; margin: 0 auto; padding: 0 24px 0 190px; position: relative; }
main > section { position: relative; z-index: 1; }
section { padding: 80px 0; border-top: 1px solid var(--line); position: relative; }
section.hero { border-top: 0; padding: 176px 0 100px; }


.eyebrow { font: italic 400 22px/1 var(--serif); color: var(--accent); margin: 0 0 10px; }
h1 {
  font: 500 clamp(52px, 9vw, 88px)/1 var(--serif);
  letter-spacing: -.01em; margin: 0 0 26px;
}
h2 {
  font: 400 40px/1.1 var(--serif); margin: 0 0 40px; color: var(--text);
  display: flex; align-items: center; gap: 14px;
}
h3 { font: 500 25px/1.25 var(--serif); margin: 0 0 4px; }
.lede { font-size: 19px; color: var(--muted); max-width: 38ch; margin: 0; }

.actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 40px; }
.btn {
  display: inline-block; padding: 12px 26px; border-radius: 999px;
  background: var(--btn); color: var(--btn-text); text-decoration: none;
  font-size: 13px; letter-spacing: .1em; text-transform: uppercase; font-weight: 500;
  transition: opacity .15s, background .15s;
}
.btn.ghost { background: transparent; color: var(--accent); border: 1px solid var(--sage); }
.btn:hover { opacity: .85; }

.cols { display: grid; grid-template-columns: 1.5fr 1fr; gap: 56px; }
.cols > p { margin: 0; }
.cols h3 { font-size: 21px; margin-bottom: 14px; color: var(--accent); font-style: italic; font-weight: 400; }
.tags { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { background: var(--tag); border-radius: 999px; padding: 4px 14px; font-size: 14px; color: var(--accent); }

.interests { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; }
.interests li {
  font: 400 22px/1.3 var(--serif); color: var(--text);
  padding-left: 18px; border-left: 2px solid var(--sage);
}

.timeline { list-style: none; padding: 0; margin: 0; display: grid; gap: 44px; }
.timeline li { display: grid; grid-template-columns: 150px 1fr; gap: 24px; }
.when { color: var(--muted); font: italic 400 19px/1.4 var(--serif); padding-top: 4px; }
.timeline p { margin: 0; color: var(--muted); }
.timeline .org { color: var(--accent); font-size: 13px; letter-spacing: .1em; text-transform: uppercase; margin: 0 0 12px; font-weight: 400; }
.timeline p + p { margin-top: 12px; }
.more {
  display: inline-block; margin-top: 14px;
  font: italic 400 19px/1.3 var(--serif); color: var(--accent);
  text-decoration: none; border-bottom: 1px solid var(--sage);
}
.more:hover { color: var(--text); }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.card {
  display: flex; flex-direction: column; gap: 6px;
  padding: 28px; border: 1px solid var(--line); border-radius: 16px;
  background: var(--surface); text-decoration: none;
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.card:hover { border-color: var(--sage); transform: translateY(-3px); box-shadow: 0 10px 30px -18px var(--accent); }
.card p { margin: 0 0 14px; color: var(--muted); font-size: 16px; }
.meta { margin-top: auto; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }

.email {
  display: inline-block; margin-top: 28px;
  font: italic 400 clamp(28px, 5vw, 40px)/1.2 var(--serif); color: var(--accent);
  text-decoration: none; border-bottom: 1px solid var(--sage); padding-bottom: 4px;
  word-break: break-all;
}
.email:hover { color: var(--text); }

body { position: relative; }
.site-footer {
  position: absolute; left: 0; right: 0; bottom: 14px; z-index: 3; text-align: center;
  color: #e6e8f0; font: italic 400 17px/1 var(--serif); text-shadow: 0 1px 8px rgba(10, 20, 40, .9);
}
#contact { padding-bottom: 36px; }

@media (max-width: 640px) {
  .nav nav { gap: 14px; }
  .nav nav a { font-size: 11px; letter-spacing: .1em; }
  section { padding: 60px 0; }
  section.hero { padding: 104px 0 64px; }
  h2 { font-size: 34px; }
  .cols { grid-template-columns: 1fr; gap: 36px; }
  .timeline li { grid-template-columns: 1fr; gap: 2px; }
}

/* ---------- Canvas texture ---------- */
.btn { box-shadow: inset 0 -2px 0 rgba(0,0,0,.15); }

/* ---------- Sunset sections: dark ink while the background is light ---------- */
#about, #work {
  --text: #21141b; --muted: #34242b; --accent: #47271b;
  --line: rgba(33, 20, 27, .25); --sage: rgba(71, 39, 27, .5); --tag: rgba(71, 39, 27, .12);
  color: var(--text);
}
#elsewhere { --surface: rgba(20, 16, 36, .28); --line: rgba(236, 231, 218, .16); }

/* ---------- Painted sunrise sky ---------- */
.sky { position: absolute; top: 0; left: 0; z-index: 0; pointer-events: none; opacity: 0; transition: opacity 1.6s ease; }
.sky.risen { opacity: 1; }
.sky .sun { transform: translateY(46px); transition: transform 4.5s cubic-bezier(.2,.7,.2,1) .3s; }
.sky.risen .sun { transform: translateY(0); }
.hero h1, .hero .lede, .hero .eyebrow { text-shadow: 0 1px 18px rgba(14, 16, 30, .55); }
.hero .lede { color: #e6dfd2; }
.hero .btn.ghost { background: rgba(18, 20, 42, .45); color: var(--text); border-color: rgba(236, 231, 218, .45); backdrop-filter: blur(4px); }

/* ---------- Hanging canopy ---------- */
.canopy { position: absolute; top: 0; left: 0; z-index: 2; pointer-events: none; overflow: visible; }
.canopy .draw { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 2s cubic-bezier(.4,0,.2,1); }
.canopy .bark { opacity: 0; transition: opacity 1.2s ease; }
.canopy.grown .bark { opacity: 1; }
.canopy.grown .draw { stroke-dashoffset: 0; }
.canopy .node { transform: scale(.1); opacity: 0; transition: transform 1s cubic-bezier(.2,.8,.2,1), opacity .6s ease; }
.canopy.grown .node { transform: scale(1); opacity: 1; }

/* ---------- Painted plant ---------- */
.pond { position: absolute; left: 0; width: 100%; z-index: 0; pointer-events: none; }
.pond svg { position: absolute; top: 0; left: 0; overflow: visible; }
.pond .water {
  will-change: transform;
  clip-path: circle(0 at var(--ex) var(--ey));
  transition: clip-path 2.6s cubic-bezier(.4,0,.2,1);
}
.pond.grown .water { clip-path: circle(150% at var(--ex) var(--ey)); }
.pond .node { transform: scale(.15); opacity: 0; transition: transform 1.2s cubic-bezier(.2,.8,.2,1), opacity .7s ease; }
.pond.grown .node { transform: scale(1); opacity: 1; }
.stem-wrap { position: absolute; top: 0; left: 0; width: 190px; overflow: hidden; pointer-events: none; z-index: 0; }
.stem-wrap svg { display: block; will-change: transform; }
.plant { position: absolute; top: 0; left: 0; pointer-events: none; overflow: visible; z-index: 0; }
.plant .node {
  transform: scale(.15); opacity: 0;
  transition: transform 1.3s cubic-bezier(.2,.8,.2,1), opacity .7s ease;
}
.plant .node.grown { transform: scale(1); opacity: 1; }
@media (prefers-reduced-motion: reduce) {
.canopy .draw, .canopy .node, .canopy .bark,
  .plant .node, .pond .water, .pond .node, .sky, .sky .sun { transition: none; }
}
@media (max-width: 640px) {
  main { padding-left: 20px; padding-right: 20px; }
  .stem-wrap, .plant, .canopy { display: none; }   /* no vines on phones */
  .pond .water { clip-path: none; opacity: 0; transition: opacity 1.4s ease; }
  .pond.grown .water { opacity: 1; }
}
