/* ==========================================================================
   pages.css — Page-specific composition (hero, page headers, about,
   services, contact, CTA, 404). Anything reusable belongs in components.css.
   ========================================================================== */

/* ==========================================================================
   Home hero
   ========================================================================== */

.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(2rem, 1.5rem + 2.4vw, 3.5rem) clamp(2.75rem, 2rem + 4vw, 5rem);
  background: var(--grad-veil);
  isolation: isolate;
}

/* One soft blue bloom, top right. */
.hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 44vw;
  height: 44vw;
  max-width: 560px;
  max-height: 560px;
  top: -20%;
  right: -8%;
  border-radius: 50%;
  background: radial-gradient(circle, rgb(var(--brand-rgb) / 0.2), transparent 68%);
  filter: blur(60px);
  pointer-events: none;
}

.hero__inner {
  display: grid;
  gap: clamp(2.25rem, 1.5rem + 3.5vw, 4rem);
  align-items: center;
}

@media (min-width: 1140px) {
  .hero__inner {
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  }
}

.hero__title {
  font-size: var(--fs-display);
  letter-spacing: -0.02em;
}

.hero__title em {
  font-style: normal;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__lead {
  margin-top: var(--sp-5);
  max-width: 52ch;
  font-size: var(--fs-lead);
  line-height: var(--lh-loose);
  color: var(--text-soft);
}

.hero__actions {
  margin-top: var(--sp-7);
}

/* The third action, kept as a text link rather than a third button: three
   full-size CTAs cannot sit on one line in this column at any width, and a
   wrapped button reads as a mistake where a demoted link reads as rank. */
.hero__note {
  margin-top: var(--sp-5);
  font-size: var(--fs-sm);
  color: var(--text-mute);
}

/* Intro card ("I'm Dr. Diane Simpson Brown …") */

.hero__card {
  position: relative;
  padding: clamp(1.5rem, 1.3rem + 1.2vw, 2.25rem);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-xl);
  box-shadow: var(--sh-md);
}

.hero__card-head {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  padding-bottom: var(--sp-5);
  margin-bottom: var(--sp-5);
  border-bottom: 1px solid var(--line);
}

.hero__card-mark {
  width: 54px;
  height: 54px;
  object-fit: contain;
  flex-shrink: 0;
}

.hero__card-name {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--heading);
  line-height: 1.25;
}

.hero__card-role {
  margin-top: 0.3rem;
  font-size: var(--fs-xs);
  font-weight: 550;
  letter-spacing: 0.02em;
  color: var(--blue-700);
  line-height: 1.5;
}

.hero__card-body {
  color: var(--text-soft);
  line-height: var(--lh-loose);
}

/* ==========================================================================
   Interior page header
   ========================================================================== */

.page-header {
  position: relative;
  overflow: hidden;
  padding-block: clamp(2.25rem, 1.8rem + 3vw, 4rem) clamp(2rem, 1.6rem + 2.5vw, 3.25rem);
  background: var(--grad-veil);
  border-bottom: 1px solid var(--line);
  isolation: isolate;
}

.page-header::after {
  content: "";
  position: absolute;
  z-index: -1;
  top: -45%;
  right: -6%;
  width: 38vw;
  height: 38vw;
  max-width: 480px;
  max-height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, rgb(var(--brand-rgb) / 0.16), transparent 70%);
  filter: blur(60px);
  pointer-events: none;
}

.page-header__inner {
  max-width: 62ch;
}

.page-header__lead {
  margin-top: var(--sp-4);
  font-size: var(--fs-lead);
  line-height: var(--lh-loose);
  color: var(--text-soft);
}

/* Breadcrumb */

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: var(--sp-4);
  padding: 0;
  list-style: none;
  font-size: var(--fs-xs);
  color: var(--text-mute);
}

.breadcrumb li + li {
  margin-top: 0;
}

.breadcrumb li + li::before {
  content: "/";
  margin-right: 0.5rem;
  color: var(--n-600);
}

.breadcrumb a {
  color: var(--text-mute);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--brand);
}

/* ==========================================================================
   About page
   ========================================================================== */

.about-card {
  position: relative;
  padding: clamp(1.5rem, 1.3rem + 1.2vw, 2.25rem);
  border-radius: var(--r-xl);
  border: 1px solid rgb(var(--brand-rgb) / 0.22);
  background: linear-gradient(150deg, rgb(var(--brand-rgb) / 0.1), rgb(var(--brand-rgb) / 0.03));
}

.about-card__mark {
  width: clamp(96px, 14vw, 128px);
  height: auto;
  margin-bottom: var(--sp-5);
}

.about-card__name {
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  font-weight: 600;
  color: var(--heading);
}

.about-card__role {
  margin-top: var(--sp-2);
  font-size: var(--fs-sm);
  font-weight: 550;
  color: var(--blue-700);
  line-height: 1.6;
}

.about-card__list {
  margin-top: var(--sp-5);
  padding: var(--sp-5) 0 0;
  border-top: 1px solid rgb(var(--brand-rgb) / 0.22);
  list-style: none;
  font-size: var(--fs-sm);
  color: var(--text-soft);
}

.about-card__list li {
  display: flex;
  gap: 0.65rem;
  line-height: 1.65;
}

.about-card__list li::before {
  content: "";
  flex-shrink: 0;
  width: 5px;
  height: 5px;
  margin-top: 0.72em;
  border-radius: 50%;
  background: var(--blue-600);
}

/* ==========================================================================
   Services page
   ========================================================================== */

.service {
  scroll-margin-top: calc(var(--header-h) + 2rem);
}

.service + .service {
  margin-top: clamp(2.75rem, 2rem + 3.5vw, 4.5rem);
  padding-top: clamp(2.75rem, 2rem + 3.5vw, 4.5rem);
  border-top: 1px solid var(--line);
}

/* ---- Service heading -----------------------------------------------------
   Every service opens the same way — number, name, status — so the page has
   a rhythm you can follow while scrolling rather than three differently
   shaped blocks.
   ------------------------------------------------------------------------- */

.service__head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: baseline;
  gap: var(--sp-4);
  margin-bottom: var(--sp-4);
}

.service__number {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.3rem);
  font-weight: 600;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  /* A 35% tint measured 1.59:1 — decorative or not, this is a site about
     access and nothing visible on it should be that faint. */
  color: var(--blue-600);
}

.service__title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-3) var(--sp-4);
}

.service__lead {
  max-width: var(--max-prose);
  font-size: var(--fs-lead);
  line-height: var(--lh-loose);
  color: var(--text-soft);
}

.service__subhead {
  margin-top: var(--sp-7);
  margin-bottom: var(--sp-4);
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: 640;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-mute);
}

.service__actions {
  margin-top: var(--sp-7);
}

/* ---- At a glance ---------------------------------------------------------
   Was a sidebar. Beside a short section it left a column of white space, so
   it now runs as a strip under the lead and reads the same at every length.
   ------------------------------------------------------------------------- */

.spec {
  display: grid;
  gap: var(--sp-4);
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: var(--fs-sm);
}

.spec > li + li {
  margin-top: 0;
  padding-top: var(--sp-4);
  border-top: 1px solid var(--line);
}

.spec--strip {
  margin-top: var(--sp-6);
  padding: clamp(1.1rem, 0.9rem + 0.8vw, 1.5rem);
  gap: var(--sp-5);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr));
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
}

/* The grid already separates the cells once they sit side by side. */
.spec--strip > li + li {
  padding-top: 0;
  border-top: 0;
}

@media (max-width: 620px) {
  .spec--strip > li + li {
    padding-top: var(--sp-4);
    border-top: 1px solid var(--line);
  }
}

.spec__term {
  font-size: var(--fs-xs);
  font-weight: 620;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-mute);
}

.spec__desc {
  margin-top: 0.3rem;
  color: var(--text);
  font-weight: 520;
  line-height: 1.55;
}

/* ---- Service index -------------------------------------------------------
   Three cards under the page title: what is on this page, in what order, and
   what is actually bookable today.
   ------------------------------------------------------------------------- */

.service-index {
  display: grid;
  gap: var(--sp-3);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr));
  list-style: none;
  margin: var(--sp-6) 0 0;
  padding: 0;
}

.service-index > li + li {
  margin-top: 0;
}

.service-index__card {
  display: grid;
  align-content: start;
  gap: 0.3rem;
  height: 100%;
  padding: var(--sp-4) var(--sp-5) var(--sp-5);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--sh-xs);
  text-decoration: none;
  transition: transform var(--dur) var(--ease-out),
    border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.service-index__card:hover {
  transform: translateY(-2px);
  border-color: rgb(var(--brand-rgb) / 0.34);
  box-shadow: var(--sh-md);
}

.service-index__num {
  font-size: var(--fs-xs);
  font-weight: 620;
  letter-spacing: 0.14em;
  color: var(--text-mute);
  font-variant-numeric: tabular-nums;
}

.service-index__name {
  font-family: var(--font-display);
  font-size: 1.16rem;
  font-weight: 600;
  line-height: var(--lh-snug);
  color: var(--heading);
}

.service-index__desc {
  font-size: var(--fs-sm);
  line-height: 1.5;
  color: var(--text-soft);
}

.service-index__status {
  margin-top: var(--sp-3);
  font-size: var(--fs-xs);
  font-weight: 640;
  letter-spacing: 0.04em;
  color: var(--blue-700);
}

.service-index__status--soon {
  color: var(--accent-700);
}

/* Clients strip */

.clients {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  list-style: none;
  padding: 0;
  margin: 0;
}

.clients > li + li {
  margin-top: 0;
}

.client-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.45em 0.95em;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-pill);
  font-size: var(--fs-sm);
  font-weight: 520;
  color: var(--text-soft);
}

/* ==========================================================================
   Contact page
   ========================================================================== */

.contact-panel {
  padding: clamp(1.5rem, 1.3rem + 1.4vw, 2.5rem);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  box-shadow: var(--sh-sm);
}

.contact-details {
  display: grid;
  gap: var(--sp-3);
  list-style: none;
  padding: 0;
  margin: 0;
}

.contact-details > li + li {
  margin-top: 0;
}

.contact-detail {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: var(--sp-4);
  align-items: center;
  padding: var(--sp-4) var(--sp-5);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--sh-xs);
  transition: border-color var(--dur) var(--ease),
    background-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.contact-detail:hover {
  border-color: rgb(var(--brand-rgb) / 0.34);
  background: var(--surface-raised);
}

.contact-detail__icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: var(--r-sm);
  border: 1px solid rgb(var(--brand-rgb) / 0.26);
  background: rgb(var(--brand-rgb) / 0.08);
  color: var(--blue-700);
}

.contact-detail__icon svg {
  width: 20px;
  height: 20px;
}

.contact-detail__label {
  font-size: var(--fs-xs);
  font-weight: 620;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-mute);
}

.contact-detail__value {
  margin-top: 0.2rem;
  font-weight: 550;
  color: var(--text);
  overflow-wrap: anywhere;
}

.contact-detail__value a {
  color: var(--text);
  text-decoration: none;
}

.contact-detail__value a:hover {
  color: var(--brand);
  text-decoration: underline;
}

/* ==========================================================================
   Final CTA band
   ========================================================================== */

.cta-band {
  position: relative;
  overflow: hidden;
  padding-block: clamp(2.75rem, 2rem + 4vw, 4.75rem);
  background: var(--grad-deep);
  border-top: 1px solid var(--line);
  isolation: isolate;
}

.cta-band::after {
  content: "";
  position: absolute;
  z-index: -1;
  right: -6%;
  bottom: -60%;
  width: 44vw;
  height: 44vw;
  max-width: 560px;
  max-height: 560px;
  border-radius: 50%;
  background: radial-gradient(circle, rgb(var(--brand-rgb) / 0.2), transparent 68%);
  filter: blur(55px);
  pointer-events: none;
}

.cta-band__inner {
  display: grid;
  gap: var(--sp-6);
  align-items: center;
}

@media (min-width: 860px) {
  .cta-band__inner {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: var(--sp-8);
  }
}

.cta-band__lead {
  margin-top: var(--sp-3);
  max-width: 52ch;
  font-size: var(--fs-lead);
  line-height: var(--lh-loose);
  color: var(--text-soft);
}

/* ==========================================================================
   404
   ========================================================================== */

.error-page {
  display: grid;
  place-items: center;
  min-height: 60vh;
  text-align: center;
  padding-block: var(--sp-10);
}

.error-page__code {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 2.5rem + 7vw, 7rem);
  font-weight: 600;
  line-height: 1;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ==========================================================================
   Writing page
   ========================================================================== */

.writing-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  margin-bottom: clamp(1.5rem, 1.2rem + 1.2vw, 2.25rem);
}

.writing-search {
  position: relative;
  flex: 1 1 240px;
  max-width: 360px;
}

.writing-search__icon {
  position: absolute;
  top: 50%;
  left: 0.9rem;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--text-mute);
  pointer-events: none;
}

.writing-search__input {
  padding-left: 2.6rem;
}

/* Chrome and Safari draw their own clear button; the field already has one
   affordance and two reads as clutter. */
.writing-search__input::-webkit-search-cancel-button {
  -webkit-appearance: none;
  appearance: none;
}

.writing-bar__count {
  font-size: var(--fs-sm);
  font-weight: 550;
  color: var(--text-mute);
  font-variant-numeric: tabular-nums;
}

.writing-status {
  padding-block: var(--sp-6);
  font-size: var(--fs-sm);
  color: var(--text-mute);
}

.writing-status[hidden] {
  display: none;
}

/* ---- Subscribe band ------------------------------------------------------ */

.subscribe-band {
  display: grid;
  gap: var(--sp-6);
  align-items: center;
}

@media (min-width: 860px) {
  .subscribe-band {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: var(--sp-8);
  }
}

.subscribe-band__lead {
  margin-top: var(--sp-3);
  max-width: 52ch;
  font-size: var(--fs-lead);
  line-height: var(--lh-loose);
  color: var(--text-soft);
}

/* ---- Home page strip ----------------------------------------------------- */

.writing-teaser__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--sp-4);
  margin-bottom: clamp(1.75rem, 1.25rem + 1.8vw, 2.75rem);
}

.writing-teaser__head .section-head {
  margin-bottom: 0;
}

/* Sits under the page lead where a section needs an immediate action —
   the Writing page puts its Substack links here. */
.page-header__actions {
  margin-top: var(--sp-5);
}
