/* ============================================================
   angie brand — chronic pain coach
   shared design system
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Newsreader:ital,opsz,wght@0,6..72,400;0,6..72,500;0,6..72,600;1,6..72,400;1,6..72,500;1,6..72,600&family=Hanken+Grotesk:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap');

:root {
  /* palette — warm cream + earthy green */
  --paper:    #f1ece1;
  --paper-2:  #e9e1d3;
  --paper-3:  #ded4c1;
  --ink:      #2b2e26;
  --ink-2:    #5d5a4e;
  --ink-3:    #8d897b;
  --accent:   #5e7d54;
  --accent-d: #3f5a39;
  --accent-bright: #aac79b;
  --accent-soft: #d6e4c9;
  --line:     #d9cfbc;

  --display: 'Newsreader', Georgia, 'Times New Roman', serif;
  --body:    'Hanken Grotesk', system-ui, sans-serif;
  --mono:    'Hanken Grotesk', system-ui, sans-serif;

  --r:   18px;
  --r-s: 10px;
  --maxw: 1180px;
  --gut: clamp(20px, 5vw, 64px);
}

* { 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: 18px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

::selection { background: var(--accent); color: #fff; }

/* ---------- layout ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gut); }
section { position: relative; }
.section { padding-block: clamp(64px, 9vw, 130px); }
.section--tight { padding-block: clamp(48px, 6vw, 80px); }

.ink-section { background: var(--ink); color: var(--paper); }
.ink-section .eyebrow { color: var(--accent-bright); }
.ink-section .accent-txt { color: var(--accent-bright); }
.paper2-section { background: var(--paper-2); }

/* ---------- type ---------- */
h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -0.005em;
  margin: 0;
  text-wrap: balance;
}

.display {
  font-size: clamp(2.5rem, 6.6vw, 5.4rem);
  font-weight: 500;
  line-height: 1.0;
  letter-spacing: -0.012em;
}
.h-xl { font-size: clamp(2.1rem, 5vw, 4rem); }
.h-l  { font-size: clamp(1.7rem, 3.4vw, 2.9rem); }
.h-m  { font-size: clamp(1.35rem, 2.2vw, 1.9rem); }

p { margin: 0 0 1.1em; }
.lead { font-size: clamp(1.15rem, 1.7vw, 1.45rem); line-height: 1.5; color: var(--ink-2); }
.ink-section .lead { color: #d9d2c7; }

.lower { text-transform: lowercase; }

.eyebrow {
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  font-weight: 500;
  letter-spacing: 0;
  text-transform: lowercase;
  color: var(--accent-d);
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  margin: 0 0 1.4rem;
}
.eyebrow::before { content: ""; width: 1.6em; height: 1px; background: currentColor; opacity: 0.5; }

.muted { color: var(--ink-2); }
.ink-section .muted { color: #b7afa3; }

/* highlight mark behind a word */
.mark {
  background: var(--accent);
  color: #fff;
  padding: 0.02em 0.2em;
  border-radius: 6px;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}
.mark-soft {
  background: linear-gradient(transparent 58%, var(--accent-soft) 58%);
  padding: 0 0.05em;
}
.accent-txt { color: var(--accent-d); }
.mark-soft { background: linear-gradient(transparent 58%, var(--accent-soft) 58%); }

/* bracketed aside — angie's voice */
.aside { color: var(--ink-3); font-style: italic; }
.ink-section .aside { color: #9a9389; }

/* ---------- buttons ---------- */
.btn {
  font-family: var(--body);
  font-weight: 700;
  font-size: 1.02rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  padding: 0.9em 1.5em;
  border-radius: 100px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .14s ease, background .14s ease, color .14s ease, box-shadow .14s ease;
  line-height: 1;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-d); transform: translateY(-2px); box-shadow: 0 10px 22px -8px rgba(94,125,84,.5); }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink:hover { transform: translateY(-2px); box-shadow: 0 10px 22px -10px rgba(0,0,0,.5); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }
.ink-section .btn-ghost { color: var(--paper); border-color: rgba(255,255,255,.4); }
.ink-section .btn-ghost:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.btn .arr { transition: transform .14s ease; }
.btn:hover .arr { transform: translateX(3px); }

/* ---------- header ---------- */
.site-head {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 24px; }
.brand {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.32rem;
  letter-spacing: -0.04em;
  text-decoration: none;
  color: var(--ink);
  display: inline-flex; align-items: center; gap: 0.5em;
  white-space: nowrap;
}
.brand .dot { width: 11px; height: 11px; border-radius: 50%; background: var(--accent); display: inline-block; }
.nav { display: flex; align-items: center; gap: clamp(14px, 2vw, 30px); }
.nav a { text-decoration: none; color: var(--ink-2); font-weight: 600; font-size: 0.98rem; transition: color .12s; white-space: nowrap; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
.nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 5px; text-decoration-thickness: 2px; }
.head-cta { display: flex; align-items: center; gap: 14px; }
.menu-btn { display: none; }

@media (max-width: 860px) {
  .nav.links { display: none; }
  .menu-btn {
    display: inline-flex; background: var(--ink); color: var(--paper);
    border: none; border-radius: 100px; padding: 0.6em 1.1em; font-family: var(--body);
    font-weight: 700; cursor: pointer; font-size: 0.95rem;
  }
  .head-cta .btn-label-long { display: none; }
}
@media (max-width: 480px) {
  .site-head .wrap { gap: 10px; }
  .head-cta .btn-accent { font-size: 0.85rem; padding: 0.7em 1em; }
  .head-cta { gap: 8px; }
  .brand { font-size: 1.15rem; }
}

/* mobile menu sheet */
.mobile-nav {
  display: none; position: fixed; inset: 72px 0 0; z-index: 49;
  background: var(--paper); padding: 24px var(--gut);
  flex-direction: column; gap: 6px;
}
.mobile-nav.open { display: flex; }
.mobile-nav a { text-decoration: none; color: var(--ink); font-family: var(--display); font-weight: 700; font-size: 2rem; padding: 0.3em 0; border-bottom: 1px solid var(--line); }

/* ---------- image placeholders ---------- */
.ph {
  position: relative;
  background-color: var(--paper-3);
  background-image: repeating-linear-gradient(135deg, rgba(24,21,19,.05) 0 11px, transparent 11px 22px);
  border-radius: var(--r);
  display: flex; align-items: flex-end;
  overflow: hidden;
  border: 1px solid var(--line);
}
.ph::after {
  content: attr(data-label);
  font-family: var(--mono); font-size: 0.72rem; color: var(--ink-2);
  background: var(--paper); padding: 5px 9px; margin: 12px; border-radius: 6px;
  letter-spacing: 0.02em; max-width: 80%;
}
.ph.on-ink { background-color: #353b2d; background-image: repeating-linear-gradient(135deg, rgba(255,255,255,.05) 0 11px, transparent 11px 22px); border-color: #474e3c; }
.ph.on-ink::after { background: #272c20; color: #b7afa3; }

/* ---------- cards ---------- */
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: clamp(24px, 3vw, 38px);
}
.card-ink { background: var(--ink); color: var(--paper); border: none; }

/* ---------- footer ---------- */
.site-foot { background: var(--ink); color: var(--paper); padding-block: clamp(56px, 7vw, 90px) 40px; }
.site-foot a { color: var(--paper); }
.foot-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 40px; }
.foot-grid h4 { font-family: var(--mono); font-weight: 700; font-size: 0.8rem; text-transform: lowercase; letter-spacing: 0.04em; color: var(--accent); margin-bottom: 1.1em; }
.foot-grid ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.7em; }
.foot-grid a { text-decoration: none; color: #cfc8bd; font-weight: 500; }
.foot-grid a:hover { color: var(--paper); }
.foot-brand { font-family: var(--display); font-weight: 800; font-size: clamp(2rem,5vw,3.2rem); letter-spacing: -0.04em; line-height: 1; }
.foot-bottom { margin-top: 56px; padding-top: 24px; border-top: 1px solid #464c3b; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 0.85rem; color: #9a9389; font-family: var(--mono); }
@media (max-width: 720px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-brand-col { grid-column: 1 / -1; } }

/* ---------- utility ---------- */
.center { text-align: center; }
.stack > * + * { margin-top: 1.1em; }
.row { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.divider { height: 1px; background: var(--line); border: 0; margin: 0; }
.pill { font-family: var(--mono); font-size: 0.78rem; font-weight: 700; padding: 0.45em 0.9em; border-radius: 100px; border: 1px solid var(--line); color: var(--ink-2); display: inline-flex; align-items: center; gap: 0.5em; }
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* ---------- shared form components (assessment + contact) ---------- */
.form-wrap { background: var(--ink); color: var(--paper); border-radius: var(--r); padding: clamp(26px, 3vw, 40px); }
.form-wrap .eyebrow { color: var(--accent-bright); }
.field { display: block; margin-bottom: 1.2rem; }
.field-label { display: block; font-weight: 600; font-size: 0.95rem; margin-bottom: 0.5em; }
.form-wrap input, .form-wrap textarea {
  width: 100%; font-family: var(--body); font-size: 1rem; color: var(--paper);
  background: #353b2d; border: 1.5px solid #474e3c; border-radius: var(--r-s);
  padding: 0.8em 0.9em; transition: border-color .15s; resize: vertical;
}
.form-wrap input::placeholder, .form-wrap textarea::placeholder { color: #8f8a78; }
.form-wrap input:focus, .form-wrap textarea:focus { outline: none; border-color: var(--accent-bright); }
.field.invalid input, .field.invalid textarea { border-color: #c98a7a; }
.err { display: block; color: #e0b3a8; font-size: 0.85rem; margin-top: 0.4em; min-height: 0; }
.seg { display: flex; gap: 8px; flex-wrap: wrap; }
.seg-opt { font-family: var(--body); font-weight: 600; font-size: 0.92rem; color: #cfc8bd; background: #353b2d; border: 1.5px solid #474e3c; border-radius: 100px; padding: 0.55em 1em; cursor: pointer; transition: all .14s; }
.seg-opt:hover { border-color: #6a7158; }
.seg-opt.is-on { background: var(--accent); color: #fff; border-color: var(--accent); }
.form-fine { font-size: 0.82rem; color: #a8a392; margin: 1rem 0 0; text-align: center; }
.form-success { text-align: center; padding: 1rem 0; }
.success-tick { width: 64px; height: 64px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 2rem; display: flex; align-items: center; justify-content: center; margin: 0 auto 1.4rem; }
.form-success .lead { color: #d9d2c7; }
.form-success .btn-ghost { color: var(--paper); border-color: rgba(255,255,255,.4); }
.form-success .btn-ghost:hover { background: var(--paper); color: var(--ink); }
.mono-sm { display:block; font-size: 0.8rem; font-weight: 700; color: var(--accent-d); margin-bottom: 0.6em; letter-spacing: 0.02em; }
