/* ============================================================
   Caroline Motley, LCSW — Shared Stylesheet
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300..600;1,9..144,400..500&family=Inter:wght@400;500;600&family=IBM+Plex+Mono:wght@500&display=swap');

:root {
  --stone:      #F5EDE3;
  --stone-deep: #EDE2D4;
  --ink:        #2A1F1A;
  --ink-soft:   #5C4A3E;
  --wine:       #C2603A;
  --wine-soft:  #D4956A;
  --brass:      #B87A4A;
  --petal:      #C8969E;
  --line:       rgba(42,31,26,0.14);
  --max:        700px;
  --pad:        clamp(24px, 6vw, 64px);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

/* spinning spiral cursor — JS div overlay */
body, a, button { cursor: none; }

.cursor-follow {
  position: fixed;
  pointer-events: none;
  z-index: 99999;
  width: 32px; height: 32px;
  top: 0; left: 0;
  margin: -16px 0 0 -16px;
  animation: cursor-spin 2.2s linear infinite;
  opacity: 0;
  transition: opacity 0.15s;
}
.cursor-follow.visible { opacity: 1; }

@keyframes cursor-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

body {
  background: var(--stone);
  color: var(--ink);
  font-family: 'Inter', sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

/* ---- layout ---- */
.wrap { max-width: var(--max); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }
section { padding: 88px 0; }
section + section { border-top: 1px solid var(--line); }

/* ---- typography ---- */
h1, h2, h3 { font-family: 'Fraunces', serif; font-weight: 500; letter-spacing: -0.01em; color: var(--ink); }
p a { color: var(--wine); }
p a:hover { color: var(--ink); }

/* ---- nav ---- */
nav {
  border-bottom: 1px solid var(--line);
  padding: 22px var(--pad);
  display: flex; justify-content: space-between; align-items: center;
  position: sticky; top: 0;
  background: rgba(245,237,227,0.93);
  backdrop-filter: blur(6px);
  z-index: 10;
}
.wordmark {
  font-family: 'Fraunces', serif;
  font-weight: 500; font-size: 1.05rem; letter-spacing: 0.01em;
  text-decoration: none; color: var(--ink);
}
.navlinks { display: flex; gap: 28px; align-items: center; }
.navlinks a {
  color: var(--ink-soft); text-decoration: none;
  font-size: 0.86rem; font-weight: 500;
}
.navlinks a:hover, .navlinks a:focus-visible { color: var(--wine); }
.navcta {
  border: 1px solid var(--ink); padding: 8px 16px; border-radius: 2px;
  color: var(--ink) !important; font-size: 0.82rem !important;
}
.navcta:hover { background: var(--ink); color: var(--stone) !important; }
@media (max-width: 640px) { .navlinks a:not(.navcta) { display: none; } }

/* ---- eyebrow / tag ---- */
.tag {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--wine);
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 18px;
}
.tag::before { content: "✦"; color: var(--petal); font-size: 0.72rem; }

/* ---- buttons ---- */
.btn {
  display: inline-block;
  background: var(--wine); color: var(--stone);
  font-family: 'Inter'; font-weight: 600; font-size: 0.92rem;
  padding: 13px 26px; border-radius: 2px; text-decoration: none;
  transition: background 0.15s ease;
}
.btn:hover, .btn:focus-visible { background: var(--ink); }
.btn.ghost {
  background: transparent; color: var(--ink); border: 1px solid var(--ink);
}
.btn.ghost:hover { background: var(--ink); color: var(--stone); }

/* ---- patterns ---- */
.pattern {
  display: grid; grid-template-columns: 130px 1fr; gap: 20px;
  padding: 26px 0; border-top: 1px solid var(--line);
}
.pattern:first-of-type { border-top: none; }
.pattern .label {
  font-family: 'IBM Plex Mono', monospace; font-size: 0.72rem; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--brass); padding-top: 4px;
}
.pattern p { color: var(--ink-soft); }
@media (max-width: 560px) { .pattern { grid-template-columns: 1fr; gap: 8px; } }

/* ---- pull quote ---- */
.pullquote { background: var(--stone-deep); }
.pullquote blockquote {
  font-family: 'Fraunces', serif; font-style: italic; font-weight: 400;
  font-size: clamp(1.5rem, 4vw, 2.1rem); line-height: 1.35; color: var(--ink);
  max-width: 560px;
}
.pullquote a {
  display: inline-block; margin-top: 26px; color: var(--wine); text-decoration: none;
  font-family: 'IBM Plex Mono', monospace; font-size: 0.82rem; letter-spacing: 0.04em;
  border-bottom: 1px solid var(--wine); padding-bottom: 2px;
}
.pullquote a:hover { color: var(--ink); border-color: var(--ink); }

/* ---- about photos ---- */
.about-photos { display: flex; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; align-items: flex-start; }
.about-photo {
  width: 200px; height: 280px; object-fit: cover; object-position: top;
  display: block; border-radius: 2px; border: 1px solid var(--line);
}

/* ---- approach prose ---- */
.approach p { color: var(--ink-soft); margin-bottom: 20px; max-width: 600px; }
.approach .close { color: var(--ink); font-weight: 500; font-family: 'Fraunces', serif; font-size: 1.1rem; font-style: italic; }

/* ---- focus index ---- */
.index-row {
  display: flex; justify-content: space-between; align-items: baseline; gap: 24px;
  padding: 22px 0; border-top: 1px solid var(--line); text-decoration: none; color: var(--ink);
}
.index-row:first-of-type { border-top: none; }
.index-row:hover .index-title, .index-row:focus-visible .index-title { color: var(--wine); }
.index-title { font-family: 'Fraunces', serif; font-size: 1.2rem; transition: color 0.15s ease; }
.index-desc { color: var(--ink-soft); font-size: 0.92rem; max-width: 340px; text-align: right; }
.index-arrow { font-family: 'IBM Plex Mono', monospace; color: var(--brass); flex-shrink: 0; }
@media (max-width: 600px) {
  .index-row { flex-direction: column; align-items: flex-start; }
  .index-desc { text-align: left; }
}

/* ---- fees ---- */
.fee-row {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 18px 0; border-top: 1px solid var(--line);
}
.fee-row:first-of-type { border-top: none; }
.fee-label { font-family: 'Fraunces', serif; font-size: 1.08rem; }
.fee-amount { font-family: 'IBM Plex Mono', monospace; color: var(--brass); font-size: 0.92rem; flex-shrink: 0; padding-left: 20px; }

/* ---- pay / dark card ---- */
.pay-card {
  background: var(--ink); color: var(--stone);
  padding: 48px clamp(24px, 6vw, 40px); border-radius: 3px;
}
.pay-card .tag { color: var(--brass); }
.pay-card .tag::before { color: var(--wine-soft); }
.pay-card h2 { color: var(--stone); font-size: 1.6rem; margin-bottom: 18px; }
.pay-card p { color: #C9C5BC; margin-bottom: 16px; max-width: 560px; }
.pay-card a.btn { background: var(--stone); color: var(--ink); margin-top: 10px; }
.pay-card a.btn:hover { background: var(--wine-soft); color: var(--stone); }
.pay-card a.textlink {
  color: var(--brass); text-decoration: none; border-bottom: 1px solid var(--brass);
  font-size: 0.9rem;
}

/* ---- practical grid ---- */
.practical-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 32px; margin-top: 32px; }
.practical-grid div { border-top: 1px solid var(--line); padding-top: 16px; }
.practical-grid h3 { font-size: 0.95rem; font-family: 'Inter'; font-weight: 600; margin-bottom: 8px; }
.practical-grid p { color: var(--ink-soft); font-size: 0.94rem; }
@media (max-width: 560px) { .practical-grid { grid-template-columns: 1fr; } }

/* ---- contact form ---- */
.contact-form { display: flex; flex-direction: column; gap: 20px; max-width: 520px; margin-top: 8px; }
.contact-form label {
  display: flex; flex-direction: column; gap: 7px;
  font-family: 'IBM Plex Mono', monospace; font-size: 0.72rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--ink-soft);
}
.contact-form input,
.contact-form select,
.contact-form textarea {
  font-family: 'Inter', sans-serif; font-size: 0.96rem; color: var(--ink);
  background: var(--stone-deep); border: 1px solid var(--line); border-radius: 2px;
  padding: 12px 14px; text-transform: none; letter-spacing: normal; resize: vertical;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus { outline: 2px solid var(--wine); outline-offset: 1px; }
.contact-form button { align-self: flex-start; margin-top: 4px; border: none; cursor: pointer; }
.form-note { font-size: 0.82rem; color: var(--ink-soft); max-width: 480px; margin-top: 14px; }
.form-success {
  display: none; background: var(--stone-deep); border: 1px solid var(--line);
  border-radius: 2px; padding: 24px 28px; max-width: 520px; margin-top: 16px;
}
.form-success p { color: var(--ink-soft); font-size: 0.96rem; }

/* ---- inner page hero ---- */
.page-hero h1 {
  font-size: clamp(1.8rem, 4.5vw, 2.5rem);
  line-height: 1.18; font-weight: 400; margin-bottom: 28px;
}
.page-hero p { font-size: 1.05rem; color: var(--ink-soft); margin-bottom: 18px; max-width: 580px; }
.page-hero .btn { margin-top: 16px; }

/* ---- inner page body prose ---- */
.page-body h2 {
  font-family: 'Fraunces', serif; font-size: 1.25rem;
  margin-top: 40px; margin-bottom: 14px; color: var(--ink);
}
.page-body p { color: var(--ink-soft); margin-bottom: 18px; max-width: 600px; }
.page-body p:last-child { margin-bottom: 0; }
.page-body .btn { margin-top: 28px; }

/* ---- doodle overlays ---- */
.doodle { position: absolute; pointer-events: none; opacity: 0.18; }
.doodle svg { display: block; }
.doodle-star { animation: star-drift 22s linear infinite; transform-origin: center center; }

@keyframes star-drift {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* ---- footer ---- */
footer { padding: 48px var(--pad); border-top: 1px solid var(--line); }
footer .wrap { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 16px; }
footer p { font-size: 0.82rem; color: var(--ink-soft); }
.footer-legal { margin-top: 12px; font-size: 0.76rem; color: var(--ink-soft); max-width: 640px; line-height: 1.7; }
.footer-licenses { font-size: 0.78rem; color: var(--ink-soft); line-height: 1.8; margin-top: 12px; }

/* ---- hero (homepage) ---- */
.hero h1 {
  font-size: clamp(2rem, 5vw, 2.7rem);
  line-height: 1.18; font-weight: 400; margin-bottom: 28px;
}
.hero p { font-size: 1.05rem; color: var(--ink-soft); margin-bottom: 18px; max-width: 580px; }
.hero p:last-of-type { margin-bottom: 0; }
