/* ==========================================================================
   Lorena Ruci Psychology — site.css
   Built low-glare on purpose: many visitors arrive with post-concussion
   light sensitivity and reading fatigue. No pure white, no pure black,
   no scroll-triggered motion, generous leading, large tap targets.
   ========================================================================== */

/* --- Tokens --------------------------------------------------------------- */

:root {
  /* Surfaces: cool low-glare stock, not cream, not #fff */
  --paper:        #f2f4f3;
  --paper-raised: #fbfcfb;
  --paper-sunk:   #e7ebe9;

  /* Ink: deep petrol rather than black — softer on strained vision */
  --ink:      #1b2a2c;
  --ink-soft: #55666a;
  --ink-faint:#849699;

  /* Accent: moss. Calm hue, and the colour of clearance-to-play. */
  --moss:      #4a6b52;
  --moss-deep: #2f4a37;
  --moss-wash: #e2eae3;

  --rule: #d3dbd9;

  /* Type */
  --display: "Newsreader", Georgia, "Times New Roman", serif;
  --body:    "Public Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --step--1: 0.875rem;
  --step-0:  1.0625rem;
  --step-1:  1.25rem;
  --step-2:  clamp(1.5rem, 2.4vw, 1.85rem);
  --step-3:  clamp(1.9rem, 3.4vw, 2.5rem);
  --step-4:  clamp(2.4rem, 5.6vw, 3.9rem);

  --leading: 1.7;
  --measure: 62ch;

  /* Space */
  --gap:  1rem;
  --band: clamp(3.5rem, 8vw, 6.5rem);
  --shell: 68rem;

  --focus: #1d4ed8;
}

/* Comfort mode: dimmed surface, larger type, wider leading.
   Toggled by the reading-comfort control in the header. */
:root[data-comfort="dim"] {
  --paper:        #1e2628;
  --paper-raised: #26302f;
  --paper-sunk:   #182022;

  --ink:      #d5dedc;
  --ink-soft: #9fb0ad;
  --ink-faint:#7c8d8b;

  --moss:      #9dc2a5;
  --moss-deep: #b9d6bf;
  --moss-wash: #2a3833;

  --rule: #384545;

  --step-0:  1.1875rem;
  --leading: 1.85;
  --measure: 58ch;

  --focus: #93b8ff;
}

/* --- Reset ---------------------------------------------------------------- */

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

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: var(--step-0);
  line-height: var(--leading);
  -webkit-font-smoothing: antialiased;
  transition: background-color 240ms ease, color 240ms ease;
}

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

a { color: var(--moss-deep); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ink); }

:where(a, button, input, textarea, select, summary):focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  border-radius: 2px;
}

/* --- Shell ---------------------------------------------------------------- */

.shell {
  width: min(100% - 2.5rem, var(--shell));
  margin-inline: auto;
}

.skip {
  position: absolute;
  left: -9999px;
  background: var(--moss-deep);
  color: #fff;
  padding: 0.75rem 1.25rem;
  z-index: 100;
}
.skip:focus { left: 1rem; top: 1rem; }

/* --- Masthead ------------------------------------------------------------- */

.masthead {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--rule);
}

.masthead__inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: 4.25rem;
  flex-wrap: wrap;
}

.wordmark {
  font-family: var(--display);
  font-size: 1.125rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--ink);
  text-decoration: none;
  margin-right: auto;
  line-height: 1.2;
}
.wordmark span {
  display: block;
  font-family: var(--body);
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-top: 0.15rem;
}

.nav {
  display: flex;
  gap: 1.35rem;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav a {
  font-size: 0.8125rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink-soft);
  padding-block: 0.65rem;
  display: inline-block;
}
.nav a:hover,
.nav a[aria-current="page"] { color: var(--ink); }
.nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--moss); }

/* Reading-comfort control — the one thing this site does that a template
   would not. Named for what the visitor controls, not how it's built. */
.comfort {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  border: 1px solid var(--rule);
  border-radius: 999px;
  padding: 0.45rem 0.85rem;
  font: inherit;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
  cursor: pointer;
  transition: border-color 160ms ease, color 160ms ease;
}
.comfort:hover { border-color: var(--moss); color: var(--ink); }
.comfort__dot {
  width: 0.6rem; height: 0.6rem;
  border-radius: 50%;
  border: 1.5px solid currentColor;
  background: linear-gradient(90deg, currentColor 50%, transparent 50%);
}
.comfort[aria-pressed="true"] {
  border-color: var(--moss);
  color: var(--moss-deep);
}
.comfort[aria-pressed="true"] .comfort__dot { background: currentColor; }

/* --- Section rules -------------------------------------------------------- */
/* Ruled sections with the label sitting on the rule — borrowed from the
   visual language of a clinical intake form. */

.band { padding-block: var(--band); }
.band + .band { padding-top: 0; }

.rule {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  border-top: 1px solid var(--rule);
  padding-top: 0.9rem;
  margin-bottom: 2.25rem;
}
.rule__label {
  font-size: 0.6875rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--moss-deep);
  white-space: nowrap;
  font-weight: 600;
}
.rule__note {
  font-size: var(--step--1);
  color: var(--ink-faint);
  margin-left: auto;
  text-align: right;
}

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

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 0 0 0.6em;
  text-wrap: balance;
}
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-2); }

p { margin: 0 0 1.15em; max-width: var(--measure); }
.lede { font-size: var(--step-1); color: var(--ink-soft); line-height: 1.6; }

.eyebrow {
  font-size: 0.6875rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--moss-deep);
  font-weight: 600;
  margin: 0 0 1.25rem;
}

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

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

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

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

.portrait {
  border-radius: 3px;
  border: 1px solid var(--rule);
  background: var(--paper-sunk);
  aspect-ratio: 3 / 4;
  object-fit: cover;
  width: 100%;
}
.portrait__caption {
  font-size: var(--step--1);
  color: var(--ink-faint);
  margin-top: 0.75rem;
  line-height: 1.5;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.75rem 1.6rem;
  border-radius: 2px;
  border: 1px solid var(--moss-deep);
  background: var(--moss-deep);
  color: #f4f8f5;
  font: inherit;
  font-size: 0.9375rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 160ms ease, border-color 160ms ease;
}
.btn:hover { background: var(--ink); border-color: var(--ink); color: #f4f8f5; }

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

/* --- Status strip --------------------------------------------------------- */
/* Wait times are the single most useful fact for a prospective client,
   so they get structural prominence rather than burial in a paragraph. */

.status {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding-block: 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
  font-size: var(--step--1);
  color: var(--ink-soft);
}
.status__pip {
  width: 0.5rem; height: 0.5rem;
  border-radius: 50%;
  background: var(--moss);
  flex: none;
}
.status strong { color: var(--ink); font-weight: 600; }
.status__sep { color: var(--ink-faint); }

/* --- Practice areas ------------------------------------------------------- */

.areas {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}
.area {
  background: var(--paper);
  padding: clamp(1.5rem, 3vw, 2.25rem);
}
.area h3 { font-size: var(--step-1); margin-bottom: 0.55em; }
.area p { font-size: var(--step--1); color: var(--ink-soft); margin-bottom: 0; }
.area__tag {
  font-size: 0.625rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--moss-deep);
  font-weight: 600;
  display: block;
  margin-bottom: 0.9rem;
}

/* --- Two-column prose ----------------------------------------------------- */

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: start;
}
.split__aside h3 {
  font-family: var(--body);
  font-size: 0.6875rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--moss-deep);
  font-weight: 600;
}

/* --- Credential lists ----------------------------------------------------- */

.creds { list-style: none; margin: 0; padding: 0; }
.creds li {
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--rule);
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  align-items: baseline;
  font-size: var(--step--1);
  flex-wrap: wrap;
}
.creds li:last-child { border-bottom: 0; }
.creds .creds__where { color: var(--ink-faint); text-align: right; }

.pills { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.pills li {
  border: 1px solid var(--rule);
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
  font-size: var(--step--1);
  color: var(--ink-soft);
  background: var(--paper-raised);
}

/* --- Callout -------------------------------------------------------------- */

.callout {
  background: var(--moss-wash);
  border-left: 3px solid var(--moss);
  padding: clamp(1.25rem, 3vw, 1.75rem);
  border-radius: 0 3px 3px 0;
}
.callout p:last-child { margin-bottom: 0; }
.callout h3 { font-size: var(--step-1); }

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

.faq { border-top: 1px solid var(--rule); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary {
  cursor: pointer;
  padding: 1.35rem 2.5rem 1.35rem 0;
  font-family: var(--display);
  font-size: var(--step-1);
  line-height: 1.35;
  position: relative;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  position: absolute;
  right: 0.4rem;
  top: 50%;
  width: 0.65rem; height: 0.65rem;
  border-right: 1.5px solid var(--moss);
  border-bottom: 1.5px solid var(--moss);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 180ms ease;
}
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq__body { padding-bottom: 1.5rem; }
.faq__body p:last-child { margin-bottom: 0; }

/* --- Article list --------------------------------------------------------- */

.entries { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.entries li { border-bottom: 1px solid var(--rule); }
.entries a {
  display: block;
  padding: 1.6rem 0;
  text-decoration: none;
  color: inherit;
}
.entries a:hover h3 { color: var(--moss-deep); }
.entries h3 { font-size: var(--step-2); margin-bottom: 0.35em; }
.entries p { color: var(--ink-soft); font-size: var(--step--1); margin-bottom: 0; }
.entries__meta {
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
  display: block;
  margin-bottom: 0.7rem;
}

/* --- Long-form article ---------------------------------------------------- */

.prose { max-width: var(--measure); }
.prose h2 { font-size: var(--step-2); margin-top: 2.2em; }
.prose h3 { font-size: var(--step-1); margin-top: 1.8em; }
.prose ul, .prose ol { padding-left: 1.35rem; max-width: var(--measure); }
.prose li { margin-bottom: 0.55em; }
.prose blockquote {
  margin: 2rem 0;
  padding-left: 1.25rem;
  border-left: 2px solid var(--moss);
  color: var(--ink-soft);
  font-family: var(--display);
  font-size: var(--step-1);
}

/* --- Form ----------------------------------------------------------------- */

.form { max-width: 34rem; }
.field { margin-bottom: 1.35rem; }
.field label {
  display: block;
  font-size: var(--step--1);
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--ink);
}
.field .hint { font-weight: 400; color: var(--ink-faint); }
.field input,
.field textarea,
.field select {
  width: 100%;
  min-height: 3rem;
  padding: 0.7rem 0.85rem;
  font: inherit;
  color: var(--ink);
  background: var(--paper-raised);
  border: 1px solid var(--rule);
  border-radius: 2px;
}
.field textarea { min-height: 9rem; resize: vertical; line-height: 1.6; }
.field input:focus, .field textarea:focus { border-color: var(--moss); }
.hp { position: absolute; left: -9999px; }

/* --- Contact block -------------------------------------------------------- */

.contact-card {
  border: 1px solid var(--rule);
  background: var(--paper-raised);
  padding: clamp(1.5rem, 3vw, 2rem);
  border-radius: 3px;
  font-size: var(--step--1);
}
.contact-card dt {
  font-size: 0.625rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
  font-weight: 600;
  margin-top: 1.25rem;
}
.contact-card dt:first-of-type { margin-top: 0; }
.contact-card dd { margin: 0.3rem 0 0; }
.contact-card address { font-style: normal; line-height: 1.6; }

/* --- Crisis notice -------------------------------------------------------- */
/* Anyone in acute distress needs a real number, not a contact form. */

.crisis {
  border: 1px solid var(--rule);
  border-left: 3px solid #a8564b;
  background: var(--paper-raised);
  padding: 1.1rem 1.35rem;
  border-radius: 0 3px 3px 0;
  font-size: var(--step--1);
  color: var(--ink-soft);
}
.crisis strong { color: var(--ink); }
.crisis p:last-child { margin-bottom: 0; }

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

.foot {
  border-top: 1px solid var(--rule);
  margin-top: var(--band);
  padding-block: 2.5rem 3.5rem;
  font-size: var(--step--1);
  color: var(--ink-faint);
}
.foot__grid {
  display: flex;
  gap: 1.5rem 2.5rem;
  flex-wrap: wrap;
  align-items: flex-start;
}
.foot ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 1.25rem; flex-wrap: wrap; }
.foot a { color: var(--ink-soft); text-decoration: none; }
.foot a:hover { color: var(--ink); text-decoration: underline; }
.foot__legal { margin-left: auto; text-align: right; }

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

@media (max-width: 56rem) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__figure { max-width: 20rem; }
  .split { grid-template-columns: 1fr; }
  .foot__legal { margin-left: 0; text-align: left; }
}

@media (max-width: 40rem) {
  .masthead__inner { min-height: 0; padding-block: 0.75rem; }
  .nav { gap: 0.9rem; order: 3; width: 100%; }
  .nav a { padding-block: 0.4rem; }
  .rule__note { margin-left: 0; width: 100%; text-align: left; }
  .rule { flex-wrap: wrap; }
}

@media print {
  .masthead, .comfort, .foot, .actions { display: none; }
  body { background: #fff; color: #000; }
}
