/* =========================================================
   Meryl Harrell — personal & consulting site
   Shared stylesheet
   Palette: pine green, canyon rust, meadow gold, sky, cream
   ========================================================= */

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

:root {
  --pine:      #2f5138;   /* deep forest green */
  --pine-dark: #21382a;
  --moss:      #6b8f5e;   /* meadow green */
  --rust:      #c15a34;   /* canyon terracotta */
  --gold:      #e0a63c;   /* meadow gold / sunlight */
  --sky:       #6ba8c9;   /* soft sky blue */
  --cream:     #faf5ea;   /* warm paper */
  --cream-2:   #f2e9d5;
  --ink:       #2b2a26;   /* near-black text */
  --ink-soft:  #55524a;

  --shadow: 0 14px 40px rgba(33, 56, 42, 0.18);
  --shadow-sm: 0 6px 18px rgba(33, 56, 42, 0.12);
  --radius: 22px;

  --display: 'Fraunces', Georgia, serif;
  --hand: 'Caveat', 'Fraunces', cursive;
  --body: 'Nunito Sans', 'Segoe UI', system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  font-size: 18px;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--rust); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 { font-family: var(--display); line-height: 1.1; margin: 0 0 0.4em; }
h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); font-weight: 700; }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 600; }
h3 { font-size: 1.4rem; font-weight: 600; }

p { margin: 0 0 1.1em; }

.wrap { width: min(1120px, 92vw); margin: 0 auto; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 245, 234, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(47, 81, 56, 0.12);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 0;
}
.brand {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--pine);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.brand:hover { text-decoration: none; }
.brand .mark { font-size: 1.4rem; }
.nav-links { display: flex; gap: 0.4rem; align-items: center; flex-wrap: wrap; }
.nav-links a {
  color: var(--ink);
  font-weight: 600;
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  transition: background 0.2s, color 0.2s;
}
.nav-links a:hover { text-decoration: none; background: var(--cream-2); }
.nav-links a.active { background: var(--pine); color: #fff; }
.nav-links a.cta { background: var(--rust); color: #fff; }
.nav-links a.cta:hover { background: #a94a28; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 82vh;
  display: flex;
  align-items: flex-end;
  color: #fff;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
}
.hero-bg::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(33,56,42,0.15) 0%, rgba(33,56,42,0.15) 45%, rgba(33,56,42,0.78) 100%);
}
.hero-inner {
  position: relative;
  padding: 0 0 4rem;
  max-width: 760px;
}
.hero .kicker {
  font-family: var(--hand);
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
  color: var(--gold);
  display: inline-block;
  transform: rotate(-2deg);
  margin-bottom: 0.2rem;
}
.hero h1 { color: #fff; text-shadow: 0 3px 24px rgba(0,0,0,0.35); }
.hero .lede {
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  max-width: 640px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.4);
  margin-bottom: 1.6rem;
}
.hero-btns { display: flex; gap: 0.8rem; flex-wrap: wrap; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--body);
  font-weight: 700;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s;
  border: 2px solid transparent;
  cursor: pointer;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-primary { background: var(--gold); color: var(--pine-dark); box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: #f0b64c; }
.btn-ghost { background: rgba(255,255,255,0.12); color: #fff; border-color: rgba(255,255,255,0.6); }
.btn-ghost:hover { background: rgba(255,255,255,0.22); }
.btn-pine { background: var(--pine); color:#fff; box-shadow: var(--shadow-sm); }
.btn-pine:hover { background: var(--pine-dark); }

/* ---------- Sections ---------- */
section { padding: clamp(3rem, 7vw, 6rem) 0; }
.section-tint { background: var(--cream-2); }
.section-pine { background: var(--pine); color: var(--cream); }
.section-pine h2, .section-pine h3 { color: #fff; }

.eyebrow {
  font-family: var(--hand);
  font-size: 1.7rem;
  color: var(--rust);
  transform: rotate(-1.5deg);
  display: inline-block;
  margin-bottom: 0.2rem;
}
.section-pine .eyebrow { color: var(--gold); }

/* intro / feature cards */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.6rem;
  margin-top: 2.4rem;
}
.card {
  background: var(--cream);
  border-radius: var(--radius);
  padding: 1.8rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(47,81,56,0.08);
  transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card .icon { font-size: 2rem; margin-bottom: 0.5rem; }
.card h3 { color: var(--pine); }
.card p { color: var(--ink-soft); margin-bottom: 0; }

/* split image + text */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
}
.split.reverse .split-media { order: 2; }
.split-media img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.tilt { transform: rotate(-1.6deg); }
.tilt-r { transform: rotate(1.6deg); }

/* photo strip / gallery */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}
.gallery figure { margin: 0; }
.gallery img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
}
.gallery figcaption {
  font-family: var(--hand);
  font-size: 1.15rem;
  color: var(--ink-soft);
  padding: 0.35rem 0.2rem 0;
}

/* timeline */
.timeline { margin-top: 2.4rem; position: relative; }
.timeline::before {
  content: "";
  position: absolute;
  left: 12px; top: 6px; bottom: 6px;
  width: 3px;
  background: repeating-linear-gradient(var(--moss) 0 8px, transparent 8px 16px);
}
.tl-item { position: relative; padding: 0 0 2rem 3rem; }
.tl-item::before {
  content: "";
  position: absolute;
  left: 4px; top: 6px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--gold);
  border: 3px solid var(--cream);
  box-shadow: 0 0 0 3px var(--moss);
}
.tl-item .role { font-family: var(--display); font-weight: 600; font-size: 1.25rem; color: var(--pine); }
.tl-item .org { font-weight: 700; color: var(--rust); }
.tl-item p { margin: 0.3rem 0 0; color: var(--ink-soft); }

/* pill list */
.pills { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.2rem; }
.pill {
  background: rgba(107,143,94,0.16);
  color: var(--pine);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.4rem 1rem;
  border-radius: 999px;
}
.section-pine .pill { background: rgba(255,255,255,0.14); color: var(--cream); }

/* quote */
.quote {
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(1.3rem, 3vw, 1.9rem);
  line-height: 1.35;
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
}
.quote .attr { display:block; font-style: normal; font-family: var(--hand); font-size: 1.4rem; margin-top: 0.8rem; color: var(--gold); }

/* ---------- Contact ---------- */
.contact-card {
  background: var(--cream);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(2rem, 5vw, 3.2rem);
  text-align: center;
  max-width: 640px;
  margin: 2rem auto 0;
  border: 1px solid rgba(47,81,56,0.08);
}
.email-btn {
  font-family: var(--display);
  font-size: clamp(1.1rem, 3vw, 1.6rem);
  font-weight: 600;
  word-break: break-word;
}
.contact-ways { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px,1fr)); gap: 1.2rem; margin-top: 2rem; }
.contact-ways .card { text-align: center; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--pine-dark);
  color: var(--cream);
  padding: 2.6rem 0;
  text-align: center;
}
.site-footer a { color: var(--gold); }
.site-footer .foot-links { display:flex; gap:1.2rem; justify-content:center; flex-wrap:wrap; margin-bottom: 0.8rem; }
.site-footer .foot-links a { color: var(--cream); font-weight: 600; }
.site-footer small { color: rgba(250,245,234,0.65); }

/* page intro banner (about/contact) */
.page-hero {
  position: relative;
  color: #fff;
  padding: clamp(3.5rem, 8vw, 6rem) 0;
  display: flex; align-items: center; min-height: 42vh;
}
.page-hero .page-hero-bg { position:absolute; inset:0; background-size:cover; background-position:center; }
.page-hero .page-hero-bg::after { content:""; position:absolute; inset:0; background: linear-gradient(120deg, rgba(33,56,42,0.82), rgba(33,56,42,0.45)); }
.page-hero .wrap { position: relative; }
.page-hero h1 { color:#fff; text-shadow: 0 3px 20px rgba(0,0,0,0.35); }
.page-hero .lede { max-width: 620px; font-size: 1.2rem; text-shadow: 0 2px 12px rgba(0,0,0,0.4); }

.lead-para { font-size: 1.22rem; max-width: 760px; }

/* ---------- Responsive ---------- */
@media (max-width: 780px) {
  .split { grid-template-columns: 1fr; }
  .split.reverse .split-media { order: 0; }
  .tilt, .tilt-r { transform: none; }
  .nav-links { gap: 0.15rem; }
  .nav-links a { padding: 0.4rem 0.7rem; font-size: 0.95rem; }
  .brand span.brand-text { display: none; }
}
