/* josephmaronlpc.com — one stylesheet for every page.
   Colors live in the tokens below. Change a color here, not on individual elements. */

@font-face {
  font-family: "Literata";
  src: url("fonts/literata.woff2") format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Atkinson Hyperlegible Next";
  src: url("fonts/atkinson-400-normal.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Atkinson Hyperlegible Next";
  src: url("fonts/atkinson-400-italic.woff2") format("woff2");
  font-weight: 400; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "Atkinson Hyperlegible Next";
  src: url("fonts/atkinson-600-normal.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Atkinson Hyperlegible Next";
  src: url("fonts/atkinson-700-normal.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}

:root {
  --ground: #FAF9FC;
  --surface: #FFFFFF;
  --ink: #1F1D2B;
  --muted: #545166;
  --line: #DAD7E4;
  --accent: #4A3F9C;
  --accent-hover: #3A3080;
  --accent-ink: #FFFFFF;
  --soft: #E9E6F4;
  --todo-bg: #FFF0B3;
  --todo-ink: #4D3A00;

  --serif: "Literata", Georgia, "Times New Roman", serif;
  --sans: "Atkinson Hyperlegible Next", "Atkinson Hyperlegible", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --measure: 40rem;
  --wide: 68rem;
  --gutter: clamp(1rem, 4vw, 2rem);
  --radius: 10px;
}

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

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

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.125rem;
  line-height: 1.65;
}

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

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

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.2;
  text-wrap: balance;
  margin: 0;
}
h1 { font-size: clamp(2.1rem, 1.5rem + 2.6vw, 3.1rem); letter-spacing: -0.015em; }
h2 { font-size: clamp(1.45rem, 1.25rem + 0.8vw, 1.8rem); letter-spacing: -0.01em; }
h3 { font-size: 1.25rem; }

p, ul, ol { margin: 0; }
p, li { text-wrap: pretty; }

/* ---------- layout ---------- */

.wrap {
  width: 100%;
  max-width: var(--wide);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.prose {
  max-width: var(--measure);
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}
.prose ul, .prose ol { padding-left: 1.25rem; display: flex; flex-direction: column; gap: 0.5rem; }
.prose li::marker { color: var(--muted); }

main { display: block; }

.page-head {
  padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(1.5rem, 3vw, 2.25rem);
}
.page-head .prose { gap: 0.9rem; }
.subhead {
  font-size: clamp(1.15rem, 1.05rem + 0.4vw, 1.35rem);
  color: var(--muted);
  max-width: 36rem;
}

.page-body { padding-block: 0 clamp(3rem, 7vw, 5rem); }

.section { display: flex; flex-direction: column; gap: 1.1rem; }
.page-body .prose > .section + .section,
.page-body .prose > p + .section,
.page-body .prose > ul + .section,
.page-body .prose > ol + .section { margin-top: 1.6rem; }

/* ---------- header ---------- */

.skip {
  position: absolute; left: 0.75rem; top: -3rem;
  background: var(--surface); color: var(--ink);
  padding: 0.5rem 0.9rem; border-radius: 6px; z-index: 10;
}
.skip:focus { top: 0.75rem; }

.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--ground);
}
.header-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  padding-block: 1rem;
  position: relative;
}
.wordmark {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
.wordmark span { color: var(--muted); }
.wordmark:hover { color: var(--ink); }

.nav {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 1.4rem;
  font-size: 1rem;
}
.nav a, .nav summary {
  color: var(--ink);
  text-decoration: none;
  cursor: pointer;
}
.nav a:hover, .nav summary:hover { color: var(--accent); }
.nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; }

.services-menu { position: relative; }
.services-menu summary {
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.services-menu summary::-webkit-details-marker { display: none; }
.services-menu summary::after {
  content: "";
  width: 0.45em; height: 0.45em;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-0.15em) rotate(45deg);
}
.services-menu[open] summary::after { transform: translateY(0.1em) rotate(-135deg); }
.services-menu.is-current summary { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 0.18em; }

.menu-panel {
  position: absolute;
  top: calc(100% + 0.6rem);
  left: -1rem;
  z-index: 5;
  list-style: none;
  margin: 0;
  padding: 0.5rem;
  min-width: 17rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 12px 32px -12px rgb(20 16 50 / 0.25);
  display: flex;
  flex-direction: column;
}
.menu-panel a {
  display: block;
  padding: 0.55rem 0.75rem;
  border-radius: 6px;
}
.menu-panel a:hover { background: var(--soft); color: var(--ink); }
.menu-panel a[aria-current="page"] { background: var(--soft); text-decoration: none; }

.nav-cta {
  display: inline-block;
  padding: 0.4rem 0.95rem;
  border: 1.5px solid var(--accent);
  border-radius: 999px;
  color: var(--accent) !important;
}
.nav-cta:hover { background: var(--accent); color: var(--accent-ink) !important; }

@media (max-width: 40rem) {
  .header-row { flex-direction: column; align-items: flex-start; }
  .nav { gap: 0.4rem 1.1rem; }
  .services-menu { position: static; }
  .menu-panel { left: var(--gutter); right: var(--gutter); min-width: 0; }
}

/* ---------- buttons ---------- */

.button {
  display: inline-block;
  align-self: flex-start;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 600;
  text-decoration: none;
  padding: 0.85rem 1.4rem;
  border-radius: 999px;
  line-height: 1.3;
}
.button:hover { background: var(--accent-hover); color: var(--accent-ink); text-decoration: none; }

/* ---------- home ---------- */

.hero { padding-block: clamp(3rem, 9vw, 6.5rem) clamp(2.5rem, 6vw, 4rem); }
.hero-inner { max-width: 50rem; display: flex; flex-direction: column; gap: 1.4rem; }
.hero h1 {
  font-size: clamp(2.4rem, 1.4rem + 4.4vw, 4.4rem);
  line-height: 1.08;
  letter-spacing: -0.025em;
  font-variation-settings: "opsz" 72;
}
.hero .subhead { max-width: 34rem; }

.opening { padding-block: 0 clamp(2.5rem, 6vw, 4rem); }
.opening p {
  font-family: var(--serif);
  font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
  line-height: 1.5;
  max-width: 38rem;
}

.doors { padding-block: 0 clamp(3rem, 7vw, 5rem); }
.door-grid {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 1rem;
}
.door {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  height: 100%;
  padding: 1.5rem 1.4rem 1.4rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  text-decoration: none;
}
.door h2 { font-size: 1.35rem; }
.door p { color: var(--muted); }
.door .more { margin-top: auto; padding-top: 0.4rem; color: var(--accent); font-weight: 600; font-size: 1rem; }
.door:hover { border-color: var(--accent); color: var(--ink); }
.door:hover .more { text-decoration: underline; }

.band { padding-block: clamp(2.5rem, 6vw, 4rem); border-top: 1px solid var(--line); }
.band-inner { display: flex; flex-direction: column; gap: 1.2rem; }

.plain-list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 0.7rem; max-width: var(--measure); }
.plain-list li { padding-left: 1.2rem; position: relative; }
.plain-list li::before {
  content: ""; position: absolute; left: 0; top: 0.72em;
  width: 0.45rem; height: 2px; background: var(--accent);
}

.logistics {
  list-style: none;
  padding: 1.1rem 1.3rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2rem;
  background: var(--soft);
  border-radius: var(--radius);
  font-size: 1rem;
}
.logistics li { font-variant-numeric: tabular-nums; }
.logistics strong { font-weight: 700; }

.bio {
  display: grid;
  grid-template-columns: minmax(0, 13rem) minmax(0, 1fr);
  gap: clamp(1.25rem, 4vw, 2.5rem);
  align-items: start;
}
@media (max-width: 36rem) { .bio { grid-template-columns: minmax(0, 1fr); } .bio .photo { max-width: 12rem; } }

.photo {
  aspect-ratio: 4 / 5;
  width: 100%;
  max-width: 100%;
  border-radius: var(--radius);
  object-fit: cover;
}
.photo-placeholder {
  display: grid;
  place-items: center;
  text-align: center;
  padding: 1rem;
  border: 2px dashed var(--line);
  background: var(--surface);
  color: var(--muted);
  font-size: 0.9rem;
}

.also { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 0.6rem 2rem; list-style: none; padding: 0; }
.also a { font-weight: 600; }
.also p { color: var(--muted); font-size: 1rem; }

/* ---------- inner pages ---------- */

.aside-note {
  padding: 1.1rem 1.3rem;
  background: var(--soft);
  border-radius: var(--radius);
}

.steps { list-style: none; padding: 0 !important; counter-reset: step; gap: 1.1rem !important; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 2.2rem 1fr; gap: 0 0.8rem; }
.steps li::before {
  content: counter(step);
  font-family: var(--serif);
  font-size: 1.1rem;
  width: 2.1rem; height: 2.1rem;
  display: grid; place-items: center;
  border: 1.5px solid var(--accent);
  color: var(--accent);
  border-radius: 50%;
}

.credentials { font-size: 1rem; color: var(--muted); }

.cta-band {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  padding: clamp(1.4rem, 4vw, 2rem);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  max-width: var(--measure);
}
.cta-band p { color: var(--muted); font-size: 1rem; }

.widget-slot {
  padding: 1.4rem;
  border: 2px dashed var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--muted);
  font-size: 1rem;
}

.crisis-line { font-size: 1rem; }

/* Placeholders Joey still needs to fill in. Search the site for class="todo" before launch. */
.todo {
  background: var(--todo-bg);
  color: var(--todo-ink);
  padding: 0.05em 0.35em;
  border-radius: 4px;
  font-style: normal;
}

/* ---------- footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  padding-block: 2.5rem 2rem;
  font-size: 0.95rem;
  color: var(--muted);
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1.75rem 3rem;
}
.footer-name { font-family: var(--serif); font-size: 1.15rem; color: var(--ink); margin-bottom: 0.35rem; }
.footer-links { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 0.3rem; }
.footer-links a { color: var(--ink); }
.footer-base { margin-top: 2rem; font-size: 0.85rem; }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

/* Referral-focused draft: shared refinements, September 2026. */
html { scroll-padding-block: 1rem; }
body { overflow-wrap: break-word; }
button, input, select, textarea { font: inherit; }
:root { color-scheme: light; }
.header-row > nav { min-width: 0; }
.nav { column-gap: 1rem; }
.nav > li > a, .nav > li > details > summary { min-height: 44px; display: inline-flex; align-items: center; }
.nav > li > details > summary { padding-block: 0.45rem; }
.nav-cta { font-weight: 600; }
.menu-panel a { min-height: 44px; }
.menu-panel { width: max-content; max-width: min(24rem, calc(100vw - 2 * var(--gutter))); }
.services-menu:not([open]) > .menu-panel { display: none; }
.eyebrow { font-size: 0.95rem; font-weight: 600; color: var(--accent); letter-spacing: 0.015em; }
.hero-inner { max-width: 54rem; }
.hero .subhead { max-width: 42rem; }
.section-heading { display: flex; flex-direction: column; gap: 0.7rem; margin-bottom: 1.5rem; }
.section-heading p, .service-note, .small { color: var(--muted); }
.door-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.door { padding: 1.7rem; transition: border-color 120ms ease; }
.door h3 { font-size: 1.45rem; }
.service-note { margin-top: 1.4rem; max-width: var(--measure); }
.measure { max-width: var(--measure); }
.small { font-size: 1rem; }
.text-action { font-weight: 600; display: inline-flex; align-items: center; min-height: 44px; align-self: flex-start; }
.about-intro { max-width: 13rem; margin-bottom: 0.5rem; }
.page-links { display: flex; flex-wrap: wrap; gap: 0.35rem 1rem; padding-block: 0.3rem 1.2rem; border-bottom: 1px solid var(--line); }
.page-links a { display: inline-flex; align-items: center; min-height: 44px; font-size: 1rem; }
.related { margin-top: 1.6rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.related h2 { font-size: 1.25rem; margin-bottom: 0.6rem; }
.related li a { display: inline-block; padding-block: 0.25rem; }
.related ul { gap: 0.2rem; }
.referral-topics { display: grid; gap: 1.6rem; }
.referral-topics > div { display: flex; flex-direction: column; gap: 0.7rem; padding-left: 1.25rem; border-left: 3px solid var(--accent); }
.practice-facts { margin: 0; display: grid; gap: 0; }
.practice-facts > div { display: grid; grid-template-columns: 7rem minmax(0, 1fr); gap: 1rem; border-bottom: 1px solid var(--line); padding-block: 0.8rem; }
.practice-facts dt { font-weight: 600; }
.practice-facts dd { margin: 0; }
.share-note { margin: 0; padding: 1.4rem; background: var(--soft); border-left: 3px solid var(--accent); border-radius: 0 var(--radius) var(--radius) 0; }
.steps h3 { margin-block: 0 0.45rem; }
.action-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 1.5rem; }
.widget-slot p + p { margin-top: 0.8rem; }
.site-footer .footer-links a { display: inline-block; padding-block: 0.2rem; }
@media (max-width: 40rem) {
 .menu-panel { width: auto; max-width: none; }
 .hero { padding-top: 2.5rem; }
 .nav { gap: 0.2rem 1rem; }
 .door-grid { grid-template-columns: minmax(0, 1fr); }
 .door { padding: 1.4rem; }
 .practice-facts > div { grid-template-columns: minmax(0, 1fr); gap: 0.2rem; }
}
@media (max-width: 22rem) {
 .nav { gap: 0.15rem 0.7rem; }
 .wordmark { white-space: normal; }
 .button { padding-inline: 1rem; }
 .steps li { grid-template-columns: 1.8rem minmax(0, 1fr); gap: 0.6rem; }
 .steps li::before { width: 1.7rem; height: 1.7rem; }
}
@media (prefers-reduced-motion: reduce) { .door { transition: none; } }
@media print {
 .site-header, .site-footer, .skip, .page-links, .cta-band, .related { display: none; }
 :root { --ground: #FFFFFF; --surface: #FFFFFF; --ink: #1F1D2B; --muted: #545166; --accent: #4A3F9C; --soft: #F5F4F8; --line: #DAD7E4; color-scheme: light; }
 body { font-size: 11pt; }
 .page-head { padding-block: 0 1rem; }
 .page-body { padding-bottom: 0; }
 .prose { max-width: none; }
 h2, h3 { break-after: avoid; }
 .practice-facts > div, .referral-topics > div, .steps li { break-inside: avoid; }
}

/* Keep the supplied headshot’s original square framing. */
.photo-headshot { aspect-ratio: 1 / 1; height: auto; }

.hero-phone { font-size: 1rem; color: var(--muted); }
