/* ============================================================
   KellieAdkins.com — shared stylesheet
   Editorial, restrained. Instrument Serif + Poppins.
   ============================================================ */

/* ---------- design tokens ---------- */
:root {
  /* color */
  --wine: #5E1834;
  --wine-dark: #3D0E22;
  --burgundy: #7A1F40;
  --magenta: #960357;
  --magenta-soft: #B23A78;
  --gold: #C7A85F;
  --gold-light: #E8D49A;
  --bone: #F4F1E8;
  --bone-dark: #E8E3D2;
  --ink: #1A1A1A;
  --ink-muted: #5A4A50;

  /* fonts */
  --font-serif: "Instrument Serif", "Cormorant Garamond", Georgia, serif;
  --font-body: "Poppins", -apple-system, "Helvetica Neue", Arial, sans-serif;

  /* layout */
  --maxw: 1240px;
  --maxw-prose: 65ch;
  --section-pad: clamp(3rem, 8vw, 8rem);
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --radius: 4px;

  /* type scale */
  --text-hero: clamp(2.5rem, 6vw, 5rem);
  --text-display: clamp(2rem, 4.5vw, 3.5rem);
  --text-h2: clamp(1.75rem, 3.4vw, 2.5rem);
  --text-h3: clamp(1.25rem, 2vw, 1.5rem);
  --text-body: clamp(1rem, 1.05vw, 1.125rem);
  --text-small: 0.875rem;
  --text-eyebrow: 0.75rem;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; }
body {
  margin: 0;
  background: var(--bone);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: var(--text-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
ul, ol { padding-left: 1.25rem; }
hr { border: 0; height: 1px; background: var(--gold); opacity: 0.5; margin: 2rem 0; }
:focus-visible { outline: 2px solid var(--magenta); outline-offset: 3px; border-radius: 2px; }

/* ---------- type ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.08;
  margin: 0 0 0.6em;
  color: var(--wine);
}
h1 { font-size: var(--text-hero); }
h2 { font-size: var(--text-display); }
h3 { font-size: var(--text-h2); }
h4 { font-size: var(--text-h3); font-style: italic; }
p { margin: 0 0 1.1em; max-width: var(--maxw-prose); }
.prose p { max-width: var(--maxw-prose); }
em, .italic { font-family: var(--font-serif); font-style: italic; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: var(--text-eyebrow);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 1.4rem;
}
.tagline {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  color: var(--burgundy);
  line-height: 1.3;
  margin: 0 0 1.5rem;
  max-width: 32ch;
}
.pull {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  color: var(--wine);
  line-height: 1.25;
  max-width: 22ch;
  margin: 2.5rem auto;
  text-align: center;
}
.lede { font-size: clamp(1.1rem, 1.4vw, 1.25rem); color: var(--ink-muted); }

/* tones inside dark sections */
.on-wine, .on-wine h1, .on-wine h2, .on-wine h3, .on-wine h4 { color: var(--bone); }
.on-wine .eyebrow { color: var(--gold-light); }
.on-wine .tagline { color: var(--gold-light); }
.on-wine .pull { color: var(--bone); }
.on-wine a { color: var(--gold-light); border-bottom: 1px solid rgba(199,168,95,0.4); }
.on-wine a:hover { color: var(--bone); border-color: var(--gold); }
.on-wine hr { background: var(--gold); opacity: 0.4; }

/* ---------- layout ---------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}
section { padding-top: var(--section-pad); padding-bottom: var(--section-pad); }
section.tight { padding-top: clamp(2rem, 4vw, 4rem); padding-bottom: clamp(2rem, 4vw, 4rem); }
section.wine { background: var(--wine); }
section.wine-dark { background: var(--wine-dark); }
section.bone-dark { background: var(--bone-dark); }
.grid { display: grid; gap: clamp(1.5rem, 3vw, 3rem); }
.two-col { grid-template-columns: 1fr; }
@media (min-width: 880px) { .two-col { grid-template-columns: 1.05fr 0.95fr; align-items: center; } }
.two-col.text-img { grid-template-columns: 1fr; }
@media (min-width: 880px) { .two-col.text-img { grid-template-columns: 1fr 1fr; } }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.95em 1.6em;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease, transform 180ms ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--magenta);
  color: var(--bone);
}
.btn-primary:hover { background: #7d024a; }
.btn-secondary {
  background: transparent;
  color: var(--wine);
  border-color: var(--gold);
}
.btn-secondary:hover { background: var(--gold); color: var(--wine-dark); }
.on-wine .btn-secondary { color: var(--bone); border-color: var(--gold); }
.on-wine .btn-secondary:hover { background: var(--gold); color: var(--wine-dark); }
.btn-link {
  display: inline-flex;
  align-items: baseline;
  gap: 0.35rem;
  color: var(--wine);
  border-bottom: 1px solid var(--gold);
  padding-bottom: 2px;
  font-weight: 500;
  transition: color 150ms ease, border-color 150ms ease;
}
.btn-link:hover { color: var(--magenta); border-color: var(--magenta); }
.on-wine .btn-link { color: var(--gold-light); border-color: var(--gold); }
.on-wine .btn-link:hover { color: var(--bone); border-color: var(--bone); }
.cta-row { display: flex; flex-wrap: wrap; gap: 0.9rem; align-items: center; }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(244, 241, 232, 0.86);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid rgba(199, 168, 95, 0.25);
  transition: box-shadow 200ms ease, background 200ms ease;
}
.site-header.scrolled { box-shadow: 0 2px 20px -10px rgba(61, 14, 34, 0.25); }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem var(--gutter);
  max-width: var(--maxw);
  margin: 0 auto;
  gap: 1rem;
}
.brand-logo { display: inline-flex; align-items: center; flex: 0 0 auto; }
.brand-logo img { height: 38px; width: auto; }
.nav-primary {
  display: flex;
  align-items: center;
  gap: clamp(0.7rem, 1.2vw, 1.35rem);
  font-size: 0.9rem;
  min-width: 0;
}
.nav-primary a {
  color: var(--wine);
  padding: 0.4rem 0;
  border-bottom: 1px solid transparent;
  transition: border-color 150ms ease, color 150ms ease;
}
.nav-primary a:hover, .nav-primary a[aria-current="page"] {
  border-color: var(--gold);
}
.nav-item { position: relative; }
.has-sub > a::after { content: " ▾"; font-size: 0.7em; color: var(--gold); }
.sub {
  position: absolute;
  top: 100%;
  left: -1rem;
  background: var(--bone);
  border: 1px solid rgba(199,168,95,0.4);
  padding: 0.5rem 0;
  min-width: 220px;
  border-radius: var(--radius);
  box-shadow: 0 8px 24px -12px rgba(61,14,34,0.3);
  opacity: 0;
  visibility: hidden;
  transform: translateY(4px);
  transition: opacity 160ms ease, transform 160ms ease, visibility 160ms;
}
.has-sub:hover .sub, .has-sub:focus-within .sub {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.sub a {
  display: block;
  padding: 0.5rem 1rem;
  font-size: 0.88rem;
  color: var(--wine);
  border: 0 !important;
}
.sub a:hover { background: var(--bone-dark); color: var(--magenta); }
.nav-primary a.nav-cta {
  display: inline-flex;
  align-items: center;
  padding: 0.6em 1.05em;
  background: var(--magenta);
  color: var(--bone);
  border: 0;
  border-radius: var(--radius);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  white-space: nowrap;
  flex: 0 0 auto;
}
.nav-primary a.nav-cta:hover { background: #7d024a; border-color: transparent; }
.nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  color: var(--wine);
  font-size: 1.6rem;
  line-height: 1;
  padding: 0.25rem 0.4rem;
}
@media (max-width: 1080px) {
  .nav-toggle { display: inline-flex; }
  .nav-primary {
    position: fixed;
    top: 64px;
    bottom: 0;
    right: 0;
    left: auto;
    width: min(86vw, 360px);
    background: var(--bone);
    flex-direction: column;
    align-items: flex-start;
    padding: 1.5rem var(--gutter) 3rem;
    gap: 0.9rem;
    overflow-y: auto;
    border-top: 1px solid rgba(199,168,95,0.4);
    border-left: 1px solid rgba(199,168,95,0.4);
    box-shadow: -16px 0 28px -22px rgba(61,14,34,0.4);
    display: none;
  }
  .nav-primary.open { display: flex; }
  .nav-primary a { font-size: 1.05rem; padding: 0.4rem 0; }
  .sub {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: 0;
    padding: 0.2rem 0 0.4rem 0.75rem;
    min-width: 0;
    background: transparent;
  }
  .has-sub > a::after { content: ""; }
  .nav-cta { margin-top: 0.5rem; }
}

/* ---------- hero patterns ---------- */
.hero {
  background: var(--wine);
  color: var(--bone);
  padding: clamp(3.5rem, 9vw, 7rem) 0 clamp(3rem, 7vw, 6rem);
  position: relative;
  overflow: hidden;
}
.hero h1 { color: var(--bone); margin-bottom: 1rem; }
.hero .lede { color: rgba(244, 241, 232, 0.82); max-width: 56ch; font-size: clamp(1.05rem, 1.4vw, 1.2rem); }
.hero-grid {
  display: grid;
  gap: clamp(1.5rem, 4vw, 3rem);
  grid-template-columns: 1fr;
  align-items: center;
}
@media (min-width: 880px) {
  .hero-grid.with-image { grid-template-columns: 1.1fr 0.9fr; }
}
.hero-image {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 20px 60px -30px rgba(0,0,0,0.5);
}
.hero-image img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/5; }

/* simple page hero (compact) */
.page-hero {
  background: var(--wine);
  color: var(--bone);
  padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(2.5rem, 5vw, 4.5rem);
}
.page-hero h1 { color: var(--bone); }
.page-hero .lede { color: rgba(244,241,232,0.82); max-width: 60ch; }

/* ---------- footer ---------- */
.site-footer {
  background: var(--wine-dark);
  color: rgba(244, 241, 232, 0.78);
  padding: clamp(3rem, 6vw, 5rem) 0 2rem;
  font-size: 0.92rem;
  margin-top: clamp(3rem, 6vw, 5rem);
}
.footer-grid {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.site-footer h4 {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 1rem;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.55rem; }
.site-footer a {
  color: rgba(244,241,232,0.86);
  border-bottom: 1px solid transparent;
  padding-bottom: 1px;
  transition: color 150ms ease, border-color 150ms ease;
}
.site-footer a:hover { color: var(--bone); border-color: var(--gold); }
.footer-logo img { height: 56px; width: auto; margin-bottom: 1rem; }
.footer-rule {
  height: 1px;
  background: rgba(199,168,95,0.3);
  margin: clamp(2rem, 4vw, 3rem) 0 1.5rem;
}
.footer-legal {
  font-size: 0.78rem;
  color: rgba(244,241,232,0.6);
  line-height: 1.6;
  max-width: 100%;
}
.footer-legal p { margin: 0; max-width: none; }

/* ---------- cards / lists ---------- */
.card {
  background: var(--bone);
  border: 1px solid rgba(199,168,95,0.4);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 2.4vw, 2.2rem);
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -28px rgba(61,14,34,0.45); border-color: var(--gold); }
.card .card-eyebrow {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.4rem;
}
.card h3 { font-size: clamp(1.5rem, 2.4vw, 2rem); margin-bottom: 0.2rem; color: var(--wine); }
.card .one-liner { font-family: var(--font-serif); font-style: italic; color: var(--burgundy); margin: 0 0 0.4rem; }
.card .meta { font-size: 0.82rem; color: var(--ink-muted); margin: 0 0 0.7rem; }
.card .price { font-family: var(--font-serif); font-size: 1.4rem; color: var(--wine); margin: 0.2rem 0 0.8rem; }
.card .btn-link { margin-top: auto; align-self: flex-start; }

.cards-grid { display: grid; gap: clamp(1.25rem, 2vw, 2rem); grid-template-columns: 1fr; }
@media (min-width: 720px) { .cards-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .cards-grid.three { grid-template-columns: repeat(3, 1fr); } }

/* ---------- path / steps ---------- */
.path-list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: clamp(1.4rem, 2.4vw, 2rem); margin: 0; }
.path-item {
  display: grid;
  grid-template-columns: clamp(56px, 8vw, 84px) 1fr;
  gap: clamp(1rem, 2.4vw, 2rem);
  align-items: baseline;
  padding-bottom: clamp(1.4rem, 2.4vw, 2rem);
  border-bottom: 1px solid rgba(199,168,95,0.35);
}
.path-item:last-child { border-bottom: 0; }
.path-num {
  font-family: var(--font-serif);
  font-size: clamp(2.6rem, 5vw, 4rem);
  color: var(--gold);
  line-height: 1;
}
.path-body h3 {
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 2.2vw, 1.9rem);
  margin: 0 0 0.4rem;
  color: var(--wine);
}
.on-wine .path-body h3 { color: var(--bone); }
.path-body p { margin: 0; color: var(--ink-muted); max-width: 60ch; }
.on-wine .path-body p { color: rgba(244,241,232,0.82); }

/* ---------- pillars (3 col) ---------- */
.pillars { display: grid; gap: clamp(1.4rem, 2.4vw, 2.4rem); grid-template-columns: 1fr; }
@media (min-width: 880px) { .pillars { grid-template-columns: repeat(3, 1fr); } }
.pillar h3 { font-size: clamp(1.3rem, 1.8vw, 1.55rem); margin-bottom: 0.5rem; }
.pillar p { color: var(--ink-muted); }
.on-wine .pillar p { color: rgba(244,241,232,0.82); }

/* ---------- forms ---------- */
.form-block {
  background: var(--bone);
  border: 1px solid rgba(199,168,95,0.4);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 3vw, 2.5rem);
  max-width: 540px;
}
.on-wine .form-block { background: rgba(244,241,232,0.04); border-color: rgba(199,168,95,0.45); }
.form-row { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: 1rem; }
label {
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
  font-weight: 500;
}
.on-wine label { color: var(--gold-light); }
input[type="text"], input[type="email"], select, textarea {
  font: inherit;
  font-size: 1rem;
  background: var(--bone);
  border: 1px solid rgba(122, 31, 64, 0.3);
  border-radius: var(--radius);
  padding: 0.75em 1em;
  color: var(--ink);
  width: 100%;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}
.on-wine input, .on-wine select, .on-wine textarea {
  background: rgba(244,241,232,0.95);
}
input:focus, select:focus, textarea:focus {
  outline: 0;
  border-color: var(--magenta);
  box-shadow: 0 0 0 3px rgba(150, 3, 87, 0.12);
}
textarea { min-height: 130px; resize: vertical; }
.microcopy { font-size: 0.85rem; color: var(--ink-muted); margin: 0.6rem 0 0; }
.on-wine .microcopy { color: rgba(244,241,232,0.7); }

/* ---------- dividers / botanical ---------- */
.botanical-divider {
  width: 100%;
  height: clamp(80px, 12vw, 140px);
  background: var(--wine);
  background-image: url("assets/images/texture_botanical.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 1;
}
.rule-gold { height: 1px; background: var(--gold); opacity: 0.5; width: 80px; margin: 0 0 1.6rem; }
.on-wine .rule-gold { opacity: 0.7; }

/* ---------- motion ---------- */
.fade-up {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 700ms ease, transform 700ms ease;
}
.fade-up.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .fade-up { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- specific pieces ---------- */
.manifesto-lines {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: clamp(0.7rem, 1.2vw, 1rem);
  counter-reset: line;
}
.manifesto-lines li {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  line-height: 1.2;
  color: var(--bone);
  padding-left: 3rem;
  position: relative;
}
.manifesto-lines li::before {
  counter-increment: line;
  content: counter(line, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0.35em;
  font-size: 0.7rem;
  font-family: var(--font-body);
  letter-spacing: 0.18em;
  color: var(--gold);
}
.manifesto-poster {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 24px 60px -30px rgba(0,0,0,0.55);
}
.manifesto-poster img { display: block; width: 100%; }

.essay-body {
  max-width: 65ch;
  margin: 0 auto;
}
.essay-body h2 {
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
  margin-top: 2.5em;
  color: var(--wine);
}
.essay-body blockquote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.2rem, 1.8vw, 1.5rem);
  border-left: 2px solid var(--gold);
  padding-left: 1.25rem;
  margin: 2rem 0;
  color: var(--wine);
  line-height: 1.45;
}
.essay-body blockquote p { margin: 0.15em 0; max-width: none; }
.essay-meta {
  color: var(--ink-muted);
  font-size: 0.92rem;
  margin-bottom: 2rem;
}
.essay-meta span + span::before { content: " · "; color: var(--gold); margin: 0 0.4em; }

/* writing index card */
.feature-essay {
  display: grid;
  gap: clamp(1.5rem, 3vw, 3rem);
  align-items: center;
  grid-template-columns: 1fr;
  padding: clamp(2rem, 4vw, 3rem) 0;
  border-top: 1px solid rgba(199,168,95,0.4);
  border-bottom: 1px solid rgba(199,168,95,0.4);
}
@media (min-width: 880px) { .feature-essay { grid-template-columns: 1.1fr 0.9fr; } }
.feature-essay h3 { font-size: clamp(1.8rem, 3vw, 2.6rem); margin-bottom: 0.4rem; }
.feature-essay .meta-row {
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

/* values / lists */
.values-list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 1rem; }
.values-list li { padding-left: 1.5rem; position: relative; max-width: 60ch; }
.values-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.7em;
  width: 0.7rem;
  height: 1px;
  background: var(--gold);
}
.values-list strong { font-family: var(--font-serif); font-style: italic; font-weight: 400; color: var(--wine); font-size: 1.1em; margin-right: 0.4rem; }
.on-wine .values-list strong { color: var(--gold-light); }

/* service-page "inside" list */
.inside-list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 0.85rem; }
.inside-list li {
  padding-left: 1.7rem;
  position: relative;
  max-width: 60ch;
}
.inside-list li::before {
  content: "✦";
  position: absolute;
  left: 0; top: 0.05em;
  color: var(--gold);
  font-size: 0.9rem;
}

/* big numerals */
.numeral { font-family: var(--font-serif); color: var(--gold); }

/* skip link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--wine);
  color: var(--bone);
  padding: 0.6em 1em;
  z-index: 1000;
}
.skip-link:focus { left: 1rem; top: 1rem; }
