/* ==========================================================================
   Your Anthesis, shared stylesheet
   Palette: green-tinted paper, deep evergreen ink, marigold/rose/violet
   Type:    Newsreader (display, italic as emphasis) + Karla (body, utility)
   ========================================================================== */

:root {
  --paper:      #edf0e8;
  --paper-deep: #e1e7db;
  --paper-warm: #f5f6f0;
  --ink:        #12291f;
  --ink-soft:   #3c5347;
  --green:      #2f5d46;
  --sage:       #7e9784;
  --marigold:   #dfa13c;
  --rose:       #c4738a;
  --violet:     #6b5c93;
  --rule:       #c7d1c2;

  --display: "Newsreader", Georgia, "Times New Roman", serif;
  --body: "Karla", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --measure: 62ch;
  --gutter: clamp(1.25rem, 5vw, 5rem);
  --shell: 1180px;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

/* ---------- Type ---------------------------------------------------------- */

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.015em;
  margin: 0 0 0.6em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.35rem, 1.5rem + 3.6vw, 4.15rem); }
h2 { font-size: clamp(1.75rem, 1.25rem + 2vw, 2.6rem); }
h3 { font-size: clamp(1.2rem, 1.05rem + 0.6vw, 1.45rem); line-height: 1.25; }
h4 { font-size: 1.05rem; line-height: 1.3; }

h1 em, h2 em, h3 em { font-style: italic; color: var(--green); }

p { margin: 0 0 1.15em; max-width: var(--measure); }
p:last-child { margin-bottom: 0; }

a { color: var(--green); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--ink); }

strong { font-weight: 700; }

.lede {
  font-size: clamp(1.1rem, 1rem + 0.55vw, 1.35rem);
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 54ch;
}

.eyebrow {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sage);
  margin: 0 0 1.1rem;
  display: block;
}

.small { font-size: 0.875rem; color: var(--ink-soft); }

/* ---------- Shell & sections ---------------------------------------------- */

.shell {
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.band { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.band--tight { padding-block: clamp(2.5rem, 5vw, 4rem); }
.band--deep { background: var(--paper-deep); }
.band--ink { background: var(--ink); color: var(--paper); }
.band--ink h2, .band--ink h3 { color: var(--paper); }
.band--ink h2 em { color: var(--marigold); }
.band--ink p { color: #cfdac9; }
.band--ink .eyebrow { color: var(--sage); }
.band--ink a { color: var(--marigold); }

/* Spectrum hairline: the one queer-affirming signal, used as a divider */
.spectrum {
  height: 2px;
  border: 0;
  margin: 0;
  background: linear-gradient(90deg,
    var(--violet) 0%, var(--rose) 32%, var(--marigold) 62%, var(--green) 100%);
  opacity: 0.9;
}

/* ---------- Preview notice ------------------------------------------------ */

.notice {
  background: var(--marigold);
  color: var(--ink);
  padding: 0.65rem clamp(1rem, 4vw, 2rem);
  text-align: center;
  font-size: 0.85rem;
  line-height: 1.45;
}
.notice p { margin: 0; max-width: none; }

/* ---------- Header -------------------------------------------------------- */

.site-head {
  padding-block: 1.15rem;
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
  position: sticky;
  top: 0;
  z-index: 20;
}

.head-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.wordmark {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--display);
  font-size: 1.2rem;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
  flex-shrink: 0;
}
.wordmark img { width: 34px; height: 34px; border-radius: 50%; }
.wordmark span em { font-style: italic; color: var(--green); }

.nav { display: flex; align-items: center; gap: clamp(0.9rem, 2vw, 1.75rem); flex-wrap: wrap; }
.nav a {
  font-size: 0.875rem;
  color: var(--ink-soft);
  text-decoration: none;
  padding-block: 0.2rem;
  border-bottom: 1px solid transparent;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--marigold); }

/* ---------- Buttons ------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--body);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  padding: 0.72rem 1.4rem;
  border-radius: 999px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}
.btn:hover { background: var(--green); border-color: var(--green); color: var(--paper); transform: translateY(-1px); }

.btn--ghost { background: transparent; color: var(--ink); border-color: var(--rule); }
.btn--ghost:hover { background: transparent; border-color: var(--ink); color: var(--ink); }

.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }

/* ---------- Hero ---------------------------------------------------------- */

.hero { padding-block: clamp(3rem, 7vw, 5.5rem) clamp(2rem, 4vw, 3rem); }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}
.hero-grid--bottom { align-items: end; }

.hero h1 { margin-bottom: 0.5em; }

.hero-note {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-top: 2rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--rule);
  max-width: 40ch;
}
.hero-note img {
  width: 52px; height: 52px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
  filter: grayscale(1) contrast(1.05);
  flex-shrink: 0;
}
.hero-note p { font-size: 0.875rem; color: var(--ink-soft); margin: 0; }

/* ---------- Phase sequence (signature) ------------------------------------ */

.phases { width: 100%; height: auto; }

.illo { display: block; width: 100%; height: auto; margin-bottom: 1.4rem; }

.phase-caption {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
  margin-top: 0.9rem;
}
.phase-caption span {
  text-align: center;
  font-size: 0.65rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--sage);
  font-weight: 700;
}

.draw path, .draw circle, .draw ellipse {
  stroke-dasharray: 1200;
  stroke-dashoffset: 1200;
  animation: draw 1.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
.draw g:nth-child(1) * { animation-delay: 0.1s; }
.draw g:nth-child(2) * { animation-delay: 0.45s; }
.draw g:nth-child(3) * { animation-delay: 0.8s; }
.draw g:nth-child(4) * { animation-delay: 1.15s; }

@keyframes draw { to { stroke-dashoffset: 0; } }

/* Perpetual gentle sway, rooted at the base of each stem */
.sway-part {
  transform-box: fill-box;
  transform-origin: 50% 100%;
  animation: sway var(--dur, 9s) ease-in-out var(--del, 2.4s) infinite;
}
@keyframes sway {
  0%, 100% { transform: rotate(0deg); }
  30% { transform: rotate(-0.9deg); }
  70% { transform: rotate(0.9deg); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .draw path, .draw circle, .draw ellipse {
    stroke-dashoffset: 0;
    animation: none;
  }
  .sway-part { animation: none; }
  .btn:hover { transform: none; }
}

/* ---------- Editorial two-column ------------------------------------------ */

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.34fr) minmax(0, 0.66fr);
  gap: clamp(1.5rem, 5vw, 4rem);
  align-items: start;
}
.split--even { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.split-head h2 { margin-bottom: 0.4em; }

/* ---------- Numbered stage list ------------------------------------------- */

.stages { list-style: none; margin: 0; padding: 0; counter-reset: stage; }
.stages > li {
  counter-increment: stage;
  display: grid;
  grid-template-columns: 3.25rem minmax(0, 1fr);
  gap: 1.25rem;
  padding-block: 1.5rem;
  border-top: 1px solid var(--rule);
}
.stages > li:last-child { border-bottom: 1px solid var(--rule); }
.stages > li::before {
  content: "0" counter(stage);
  font-family: var(--display);
  font-size: 1.15rem;
  color: var(--sage);
  line-height: 1.5;
}
.stages h3 { margin-bottom: 0.35em; }
.stages p { font-size: 0.95rem; color: var(--ink-soft); margin: 0; }

/* ---------- Attitude cards (approach) ------------------------------------- */

.attitudes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}
.attitude { background: var(--paper); padding: 1.75rem 1.5rem; }
.attitude .mark {
  width: 26px; height: 2px;
  display: block;
  margin-bottom: 1.1rem;
}
.attitude:nth-child(1) .mark { background: var(--violet); }
.attitude:nth-child(2) .mark { background: var(--rose); }
.attitude:nth-child(3) .mark { background: var(--marigold); }
.attitude:nth-child(4) .mark { background: var(--green); }
.attitude h3 { font-size: 1.15rem; margin-bottom: 0.4em; }
.attitude p { font-size: 0.9rem; color: var(--ink-soft); margin: 0; }

/* ---------- Package cards ------------------------------------------------- */

.packages {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}
.package {
  background: var(--paper-warm);
  border: 1px solid var(--rule);
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
}
.package--feature { border-color: var(--green); border-width: 1.5px; }
.package h3 { margin-bottom: 0.3em; }
.package .price {
  font-family: var(--display);
  font-size: 2rem;
  line-height: 1;
  margin: 1rem 0 0.15rem;
  display: block;
}
.package .per { font-size: 0.8rem; color: var(--sage); letter-spacing: 0.06em; text-transform: uppercase; font-weight: 700; }
.package ul { list-style: none; margin: 1.5rem 0 0; padding: 0; font-size: 0.92rem; }
.package ul li { padding-left: 1.3rem; position: relative; margin-bottom: 0.6rem; color: var(--ink-soft); }
.package ul li::before {
  content: "";
  position: absolute; left: 0; top: 0.75em;
  width: 8px; height: 1.5px;
  background: var(--marigold);
}
.package .btn { align-self: flex-start; }
.package .spacer { margin-top: auto; height: 1.5rem; }
.packages--four { grid-template-columns: repeat(auto-fit, minmax(235px, 1fr)); }

/* ---------- Quiet feature list -------------------------------------------- */

.plainlist { list-style: none; margin: 0; padding: 0; max-width: var(--measure); }
.plainlist li {
  padding: 0.9rem 0 0.9rem 1.5rem;
  border-bottom: 1px solid var(--rule);
  position: relative;
}
.plainlist li::before {
  content: "";
  position: absolute; left: 0; top: 1.7em;
  width: 9px; height: 1.5px;
  background: var(--sage);
}
.plainlist li:first-child { border-top: 1px solid var(--rule); }

/* ---------- FAQ ----------------------------------------------------------- */

.faq { border-top: 1px solid var(--rule); max-width: 68ch; }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 1.15rem 2rem 1.15rem 0;
  font-family: var(--display);
  font-size: 1.1rem;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute; right: 0; top: 1.05rem;
  color: var(--sage);
  font-size: 1.25rem;
}
.faq details[open] summary::after { content: "–"; }
.faq details > *:not(summary) { padding-bottom: 1.25rem; }
.faq p { font-size: 0.95rem; color: var(--ink-soft); }

/* ---------- Portrait block ------------------------------------------------ */

.portrait {
  width: 100%;
  max-width: 380px;
  filter: grayscale(1) contrast(1.04);
  border: 1px solid var(--rule);
}

/* ---------- About hero: portrait beside the text --------------------------- */

.about-hero { max-width: 56rem; }
.about-hero::after { content: ""; display: table; clear: both; }
.portrait--side {
  float: right;
  width: min(300px, 42%);
  margin: 0.4rem 0 1.25rem 2rem;
}
@media (max-width: 640px) {
  .portrait--side { width: 46%; margin: 0.3rem 0 0.9rem 1.1rem; }
}

/* ---------- Call to action band ------------------------------------------- */

.cta-band { text-align: left; }
.cta-band h2 { max-width: 18ch; }

/* ---------- Footer -------------------------------------------------------- */

.site-foot {
  background: var(--ink);
  color: #b7c6b1;
  padding-block: clamp(3rem, 6vw, 4.5rem) 2rem;
  font-size: 0.875rem;
}
.foot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid #2a4437;
}
.site-foot h4 {
  font-family: var(--body);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 1rem;
  font-weight: 700;
}
.site-foot a { color: #dfe7db; text-decoration: none; }
.site-foot a:hover { color: var(--marigold); text-decoration: underline; }
.site-foot ul { list-style: none; margin: 0; padding: 0; }
.site-foot ul li { margin-bottom: 0.55rem; }
.foot-base {
  padding-top: 1.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  font-size: 0.8rem;
  color: #85987f;
}
.foot-base p { margin: 0; max-width: none; }

/* ---------- Utilities ----------------------------------------------------- */

.skip {
  position: absolute; left: -9999px;
  background: var(--ink); color: var(--paper);
  padding: 0.75rem 1.25rem; z-index: 50;
}
.skip:focus { left: 1rem; top: 1rem; }

:focus-visible { outline: 2px solid var(--marigold); outline-offset: 3px; }

.stack > * + * { margin-top: 1.25rem; }
.mt-l { margin-top: clamp(2rem, 4vw, 3rem); }
.mt-m { margin-top: 1.75rem; }

/* ---------- Responsive ---------------------------------------------------- */

@media (max-width: 860px) {
  .hero-grid, .split, .split--even { grid-template-columns: 1fr; }
  .hero-grid { align-items: start; }
  .site-head { position: static; }
  .head-row { flex-direction: column; align-items: flex-start; gap: 0.9rem; }
  .nav { gap: 1rem; }
  .stages > li { grid-template-columns: 2.5rem minmax(0, 1fr); gap: 0.9rem; }
}
