/* Vise ABA Therapy. Placeholder palette taken from the live-oak greens in Mailande's photo,
   until she sends brand colours. Change the tokens below and the whole site follows. */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/assets/fonts/bricolage-grotesque.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: "Atkinson Hyperlegible Next";
  src: url("/assets/fonts/atkinson-hyperlegible-next.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Atkinson Hyperlegible Next";
  src: url("/assets/fonts/atkinson-hyperlegible-next-italic.woff2") format("woff2");
  font-weight: 200 800;
  font-style: italic;
  font-display: swap;
}

:root {
  --oak: #1f3b2d;
  --oak-deep: #162b20;
  --oak-hover: #2c5440;
  --leaf: #e3edda;
  --paper: #fafbf7;
  --ink: #1a241e;
  --muted: #4c5a51;
  --line: #cfdac6;
  --sun: #f0c04a;
  --focus: var(--oak);

  --display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --text: "Atkinson Hyperlegible Next", "Segoe UI", system-ui, sans-serif;

  --measure: 40rem;
  --gutter: 1rem;
  color-scheme: light;
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--text);
  font-size: 1.0625rem;
  line-height: 1.6;
}

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

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.012em;
  margin: 0 0 0.6em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.1rem, 1.4rem + 3.2vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 1.3rem + 1.4vw, 2.3rem); }
h3 { font-size: 1.3rem; line-height: 1.25; }

p, ul { margin: 0 0 1em; }

a { color: var(--oak); text-decoration-thickness: 0.09em; text-underline-offset: 0.18em; }
a:hover { color: var(--oak-hover); }

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

.wrap { max-width: 72rem; margin: 0 auto; padding: 0 var(--gutter); }

.skip { position: absolute; left: -999px; top: 0.5rem; background: var(--paper); padding: 0.5rem 1rem; z-index: 10; }
.skip:focus { left: 0.5rem; }

.test-banner {
  margin: 0;
  padding: 0.45rem var(--gutter);
  background: var(--sun);
  color: var(--ink);
  font-size: 0.9rem;
  text-align: center;
}

/* Header */
.site-header { border-bottom: 1px solid var(--line); }
.header-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1.5rem;
  padding-top: 1rem;
  padding-bottom: 1rem;
}
.wordmark {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.6rem;
  letter-spacing: -0.02em;
  color: var(--oak);
  text-decoration: none;
  margin-right: auto;
}
.wordmark span { font-weight: 400; }
.nav { display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; list-style: none; margin: 0; padding: 0; }
.nav a { text-decoration: none; color: var(--ink); padding: 0.25rem 0; }
.nav a:hover { color: var(--oak-hover); text-decoration: underline; }
.nav a[aria-current="page"] { color: var(--oak); text-decoration: underline; text-decoration-thickness: 0.12em; }
.header-call {
  font-family: var(--display);
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

/* Buttons */
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }
.button {
  display: inline-block;
  font-family: var(--display);
  background: var(--oak);
  color: var(--paper);
  font-weight: 700;
  text-decoration: none;
  padding: 0.8rem 1.25rem;
  border-radius: 10px;
  border: 2px solid var(--oak);
}
.button:hover { background: var(--oak-hover); border-color: var(--oak-hover); color: var(--paper); }
.button-quiet { background: transparent; color: var(--oak); }
.button-quiet:hover { background: var(--leaf); color: var(--oak); }

/* Home: hero */
.hero { padding: 2.5rem 0 3rem; }
.hero-grid { display: grid; gap: 2rem; align-items: center; }
.lede { font-size: 1.2rem; color: var(--muted); max-width: 34rem; }
.hero-photo { margin: 0; max-width: 22rem; }
.hero-photo img { border-radius: 14px; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 30%; }
.hero-photo figcaption { margin-top: 0.5rem; font-size: 0.95rem; color: var(--muted); }

/* Home: service settings band (the one bold element on the site) */
.settings { background: var(--oak); color: var(--paper); padding: 3rem 0 2.5rem; --focus: var(--sun); }
.settings h2 { color: var(--leaf); font-size: 1.15rem; font-family: var(--text); font-weight: 700; letter-spacing: 0; }
.settings-list { list-style: none; margin: 0; padding: 0; }
.settings-list li {
  display: grid;
  gap: 0.35rem;
  padding: 1.1rem 0;
  border-top: 1px solid rgba(227, 237, 218, 0.25);
}
.setting-name {
  font-family: var(--display);
  font-weight: 650;
  font-size: clamp(1.7rem, 1.1rem + 2.8vw, 3.1rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.setting-note { color: var(--leaf); max-width: 30rem; }
.settings-more { margin: 1.25rem 0 0; }
.settings a { color: var(--sun); }
.settings a:hover { color: var(--paper); }

/* Home: services and area */
.services-intro { padding: 3rem 0 1.5rem; }
.service-cols { display: grid; gap: 1.75rem; }
.service-cols h3 a { text-decoration: none; }
.service-cols h3 a:hover { text-decoration: underline; }
.area { background: var(--leaf); padding: 2rem 0; }
.area-row { display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center; justify-content: space-between; }
.area-row p { margin: 0; max-width: 44rem; }

/* Inner pages */
.page-head { padding-top: 2.5rem; padding-bottom: 1rem; }
.page-head .lede { max-width: var(--measure); }
.page-index { list-style: none; padding: 0; margin: 1rem 0 0; display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; }

.service:last-child { padding-bottom: 3.5rem; }
.service { padding-top: 2.5rem; padding-bottom: 1.5rem; border-top: 1px solid var(--line); margin-top: 1.5rem; scroll-margin-top: 1rem; }
.prose { max-width: var(--measure); }
.prose h2 { font-size: 1.6rem; margin-top: 1.6em; }
.prose h3 { margin-top: 1.6em; }
.prose ul { padding-left: 1.2rem; }
.prose li { margin-bottom: 0.35em; }
.prose li::marker { color: var(--oak); }

.service-area { padding-bottom: 1rem; }
.service-area p { max-width: var(--measure); }
.locations { padding-top: 1rem; padding-bottom: 3rem; }
.location-grid { display: grid; gap: 1.5rem 2.5rem; }
.location { border-top: 3px solid var(--oak); padding-top: 1rem; }
.location ul { padding-left: 1.2rem; }
.locations-cta { margin-top: 2rem; font-size: 1.15rem; }

.contact { padding-bottom: 1.5rem; }
.contact-list { margin: 1rem 0 2rem; display: grid; gap: 1.25rem; }
.contact-list dt { color: var(--muted); font-size: 0.95rem; }
.contact-list dd { margin: 0; font-family: var(--display); font-weight: 650; font-size: clamp(1.3rem, 1rem + 1.6vw, 2rem); overflow-wrap: anywhere; }
.contact-area { max-width: var(--measure); color: var(--muted); }

/* Articles */
.article-list { list-style: none; padding: 0; margin: 0 0 3rem; max-width: 46rem; }
.article-list li { border-top: 1px solid var(--line); }
.article-list a { display: grid; gap: 0.2rem; padding: 1.1rem 0; text-decoration: none; color: var(--ink); }
.article-list-title { font-family: var(--display); font-weight: 700; font-size: 1.35rem; color: var(--oak); }
.article-list a:hover .article-list-title { text-decoration: underline; }
.article-list time { color: var(--muted); font-size: 0.95rem; }
.article { padding-top: 2rem; padding-bottom: 3.5rem; }
.article-head { max-width: var(--measure); }
.article-head h1 { font-size: clamp(1.9rem, 1.4rem + 2vw, 2.8rem); }
.article-back { margin-bottom: 1.5rem; }
.article-date { color: var(--muted); }
.article-image { border-radius: 12px; margin: 1rem 0 2rem; max-width: var(--measure); }

/* Footer */
.site-footer { background: var(--oak-deep); color: var(--leaf); padding: 2.5rem 0 1rem; --focus: var(--sun); }
.site-footer a { color: var(--paper); }
.footer-grid { display: grid; gap: 1.5rem; }
.footer-name { font-family: var(--display); font-weight: 800; font-size: 1.3rem; color: var(--paper); margin-bottom: 0.4rem; }
.footer-contact { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 0.3rem 1rem; }
.footer-contact dt { color: var(--leaf); }
.footer-contact dd { margin: 0; overflow-wrap: anywhere; font-family: var(--display); }
.footer-base { border-top: 1px solid rgba(227, 237, 218, 0.2); margin-top: 2rem; padding-top: 1rem; font-size: 0.9rem; }
.footer-base p { margin: 0; }

@media (min-width: 48rem) {
  :root { --gutter: 2rem; }
  .hero { padding: 4rem 0 4.5rem; }
  .hero-grid { grid-template-columns: 1.35fr 0.65fr; gap: 3rem; }
  .hero-photo { justify-self: end; }
  .settings-list li { grid-template-columns: 1.1fr 0.9fr; align-items: baseline; gap: 2rem; }
  .service-cols { grid-template-columns: repeat(3, 1fr); gap: 2.5rem; }
  .location-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1.3fr 1fr; }
}

/* EmDash version: latest articles on the home page, pager, pictures inside articles, 404 */
.latest { padding: 1rem 0 2.5rem; }
.article-list-summary { color: var(--ink); }
.articles-page { padding-bottom: 3rem; }
.pager { display: flex; gap: 1.5rem; margin-top: 1rem; }
.article-image { margin: 1rem 0 2rem; max-width: var(--measure); }
.article-image img, .prose img { border-radius: 12px; max-width: 100%; height: auto; }
.prose figure { margin: 1.5rem 0; }
.prose figcaption { color: var(--muted); font-size: 0.95rem; margin-top: 0.4rem; }
.prose blockquote { margin: 1.5rem 0; padding-left: 1rem; border-left: 3px solid var(--oak); color: var(--muted); }
.not-found { padding-bottom: 4rem; }
/* Call-back form: Microsoft Form shown in the page (answers go straight to Microsoft) */
.callback { padding-top: 0.5rem; padding-bottom: 3.5rem; }
.callback-note { color: var(--muted); max-width: var(--measure); }
.callback-frame { display: block; width: 100%; max-width: 46rem; height: 1140px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
