/* Welbeck Street Therapy. One stylesheet for every page.
   Look: a quiet consulting room and good writing paper. Laid cotton paper (a texture tile
   multiplied onto each background colour), blue-black ink, sage and a brass hairline;
   Cormorant Garamond for headings and quotes, Jost for reading and labels. */

@font-face {
  font-family: "Cormorant Garamond";
  src: url("/assets/fonts/cormorant-garamond.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("/assets/fonts/cormorant-garamond-italic.woff2") format("woff2");
  font-weight: 300 700;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Jost";
  src: url("/assets/fonts/jost.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #f7f1e4;
  --paper-deep: #eee5d2;
  --card: #fdf9f1;
  --texture: url("/assets/img/paper.webp");
  --ink-blue: #22344f;
  --ink: #1f2c39;
  --ink-soft: #4b5561;
  --navy: #243b52;
  --navy-deep: #1a2d40;
  --sage: #56695a;
  --sage-pale: #c8d2c4;
  --brass: #a8834e;
  --brass-pale: #d9c29b;
  --line: rgba(31, 44, 57, 0.16);
  --serif: "Cormorant Garamond", "Cormorant", Garamond, "Times New Roman", serif;
  --sans: "Jost", "Futura", "Avenir Next", "Helvetica Neue", Arial, sans-serif;
  --wrap: 72rem;
  --gutter: clamp(1.25rem, 5vw, 3rem);
  --section: clamp(4.5rem, 10vw, 8.5rem);
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  background: var(--paper) var(--texture);
  background-blend-mode: multiply;
  color: var(--ink);
  font: 400 1.0625rem/1.75 var(--sans);
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.22em; }
a:hover { color: var(--navy); text-decoration-color: var(--brass); }
:focus-visible { outline: 2px solid var(--navy); outline-offset: 3px; border-radius: 2px; }
.reach :focus-visible, .away-note :focus-visible { outline-color: var(--brass-pale); }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.005em;
  color: var(--navy-deep);
  margin: 0 0 0.5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.25rem, 1.2rem + 6vw, 5rem); }
h1, h2, h3 { overflow-wrap: break-word; hyphens: auto; }
h2 { font-size: clamp(2.1rem, 4.4vw, 3.25rem); }
h3 { font-size: clamp(1.5rem, 2.4vw, 1.85rem); line-height: 1.2; }
h1 em, h2 em, h3 em { font-style: italic; color: var(--sage); }
p { margin: 0 0 1.1em; text-wrap: pretty; }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.measure { max-width: 34rem; }

.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 10;
  background: var(--navy); color: var(--paper); padding: 0.6rem 1rem; text-decoration: none;
}
.skip:focus { top: 1rem; color: var(--paper); }

/* Small spaced capitals, as on the old logo */
.eyebrow {
  font: 500 0.75rem/1.4 var(--sans);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--sage);
  margin: 0 0 1.4rem;
  display: flex;
  align-items: center;
  gap: 0.9rem;
}
.eyebrow::before { content: ""; width: 2.25rem; height: 1px; background: var(--brass); flex: none; align-self: flex-start; margin-top: 0.52rem; }

.lede { font-size: clamp(1.125rem, 1.6vw, 1.25rem); color: var(--ink-soft); max-width: 34rem; }

/* ---------- Header ---------- */

.site-header { border-bottom: 1px solid var(--line); }
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem 2rem;
  flex-wrap: wrap; padding-block: 1.35rem;
}
.mark { display: inline-flex; flex-direction: column; text-decoration: none; color: var(--navy-deep); line-height: 1; }
.mark:hover { color: var(--navy-deep); }
.mark-name { font: 500 1.7rem/1 var(--serif); letter-spacing: 0.01em; }
.mark-sub { font: 500 0.72rem/1 var(--sans); letter-spacing: 0.52em; text-transform: uppercase; color: var(--sage); margin-top: 0.45rem; }

.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: clamp(1.1rem, 3vw, 2.25rem); }
.site-nav a {
  display: inline-block;
  font: 500 0.8rem/1 var(--sans); letter-spacing: 0.18em; text-transform: uppercase;
  text-decoration: none; padding-block: 0.9rem; border-bottom: 1px solid transparent;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { border-bottom-color: var(--brass); color: var(--navy-deep); }
.site-nav .nav-cta a {
  border: 1px solid var(--navy); padding: 0.75rem 1.1rem; color: var(--navy);
}
.site-nav .nav-cta a:hover { background: var(--navy); color: var(--paper); }

/* Away mode: <html class="is-away"> shows the note and hides every invitation to get in touch */
.away-note { display: none; background: var(--navy-deep) var(--texture); background-blend-mode: multiply; color: var(--paper); }
.away-note .wrap { padding-block: 1rem; text-align: center; }
.away-note p { margin: 0; font-size: 1rem; }
.away-note strong { font: italic 500 1.3rem/1.3 var(--serif); color: var(--brass-pale); margin-right: 0.4rem; }
.is-away .away-note { display: block; }
.is-away [data-enquiry] { display: none !important; }

/* ---------- Buttons ---------- */

.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.85rem 1.25rem; margin-top: 2.25rem; }
.button {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font: 500 0.82rem/1 var(--sans); letter-spacing: 0.16em; text-transform: uppercase;
  text-decoration: none; padding: 1.05rem 1.5rem; border: 1px solid var(--navy);
  line-height: 1.25; text-align: center; justify-content: center;
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.button-primary { background: var(--navy); color: var(--paper); }
.button-primary:hover { background: var(--navy-deep); color: var(--paper); border-color: var(--navy-deep); }
.button-quiet { color: var(--navy); }
.button-quiet:hover { background: var(--navy); color: var(--paper); }
.text-link {
  font: 500 0.82rem/1 var(--sans); letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--navy); text-decoration: underline; text-decoration-color: var(--brass);
}

/* ---------- Home: hero ---------- */

.hero { padding-block: clamp(3rem, 8vw, 6.5rem) var(--section); }
.hero .wrap { display: grid; gap: clamp(3rem, 7vw, 6rem); align-items: center; }
@media (min-width: 52rem) { .hero .wrap { grid-template-columns: 1.15fr 0.85fr; } }
.hero h1 { margin-bottom: 0.4em; }
.hero h1 em { display: block; }
.swash { display: block; width: min(100%, 22rem); height: auto; margin: -0.4rem 0 1.6rem; }
.places {
  margin: 2.25rem 0 0; padding-top: 1.4rem; border-top: 1px solid var(--line);
  font-size: 0.95rem; color: var(--ink-soft); display: flex; flex-wrap: wrap; gap: 0.35rem 1.4rem;
}
.places span { display: inline-flex; align-items: center; gap: 0.6rem; }
.places span::before { content: ""; width: 5px; height: 5px; transform: rotate(45deg); background: var(--brass); }

.hero-text { animation: rise 0.9s ease-out both; }
.portrait { animation: rise 0.9s 0.15s ease-out both; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* The portrait sits in an arch, echoing the arches behind Ian in the photograph */
.portrait { margin: 0 auto; width: min(100% - 1rem, 26rem); }
.arch { position: relative; }
.arch::before {
  content: ""; position: absolute; inset: -0.75rem;
  border: 1px solid var(--brass); border-radius: 100vmax 100vmax 0 0; pointer-events: none;
}
.arch picture, .arch img { border-radius: 100vmax 100vmax 0 0; overflow: hidden; }
.arch picture { position: relative; z-index: 1; }
.arch img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: var(--paper-deep); }
.portrait figcaption {
  margin-top: 1.6rem; align-items: baseline; display: flex; justify-content: space-between; gap: 1rem;
  font: italic 500 1.2rem/1.3 var(--serif); color: var(--navy-deep);
}
.portrait figcaption span { font: 500 0.7rem/1.9 var(--sans); font-style: normal; letter-spacing: 0.2em; text-transform: uppercase; color: var(--sage); }

/* ---------- Sections ---------- */

.section { padding-block: var(--section); }
.section + .section { border-top: 1px solid var(--line); }
.section-deep { background: var(--paper-deep) var(--texture); background-blend-mode: multiply; border-top: 0 !important; }

/* Cards are sheets of notepaper lying on the desk */
.place, .quotes figure, .ways > li > a, .ways .phone {
  background: var(--card) var(--texture);
  background-blend-mode: multiply;
  border: 1px solid rgba(31, 44, 57, 0.1);
  box-shadow: 0 1px 1px rgba(70, 50, 25, 0.05), 0 10px 26px -14px rgba(70, 50, 25, 0.28);
}

.split { display: grid; gap: 2.5rem clamp(3rem, 7vw, 6rem); }
@media (min-width: 52rem) { .split { grid-template-columns: 0.9fr 1.1fr; } }
.statement { font: 500 clamp(1.85rem, 3.4vw, 2.6rem)/1.22 var(--serif); color: var(--navy-deep); margin: 0; text-wrap: balance; }
.statement em { color: var(--sage); }

/* Areas of expertise: roman numerals between hairlines */
.areas { list-style: none; counter-reset: area; margin: 3rem 0 0; padding: 0; display: grid; border-top: 1px solid var(--line); }
@media (min-width: 44rem) { .areas { grid-template-columns: 1fr 1fr; column-gap: clamp(2rem, 5vw, 4.5rem); } }
.areas li {
  counter-increment: area; display: grid; grid-template-columns: 3.25rem 1fr; align-items: baseline;
  padding-block: 1.35rem; border-bottom: 1px solid var(--line);
  font: 500 clamp(1.35rem, 2.2vw, 1.6rem)/1.3 var(--serif); color: var(--navy-deep);
}
.areas li::before { content: counter(area, upper-roman) "."; font: italic 500 1.05rem/1 var(--serif); color: var(--brass); }

/* ---------- Testimonials ---------- */

.featured-quote { margin: 0 auto 4.5rem; max-width: 52rem; text-align: center; }
.featured-quote blockquote { margin: 0; }
.featured-quote blockquote::before {
  content: "\201C"; display: block; font: 500 6rem/0.6 var(--serif); color: var(--ink-blue); opacity: 0.85; margin-bottom: 1.25rem;
}
.featured-quote p { font: italic 500 clamp(1.6rem, 3.2vw, 2.4rem)/1.3 var(--serif); color: var(--navy-deep); }
.featured-quote figcaption { margin-top: 1.5rem; }

.quotes { columns: 1; column-gap: clamp(1.5rem, 4vw, 3rem); }
@media (min-width: 44rem) { .quotes { columns: 2; } }
@media (min-width: 68rem) { .quotes { columns: 3; } }
.quotes figure {
  break-inside: avoid; margin: 0 0 clamp(1.5rem, 4vw, 3rem); padding: 2rem 1.9rem 1.7rem;
  position: relative;
}
.quotes figure::before { content: ""; position: absolute; left: 1.9rem; top: -1px; width: 2.5rem; height: 2px; background: var(--brass); }
.quotes blockquote { margin: 0; }
.quotes p { font: 500 1.28rem/1.45 var(--serif); color: var(--ink); margin: 0; }
.quote-by { display: block; margin-top: 1.4rem; font: 500 0.78rem/1.5 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--navy); }
.quote-by span { display: block; margin-top: 0.2rem; font-size: 0.82rem; letter-spacing: 0.08em; text-transform: none; color: var(--ink-soft); font-weight: 400; }
.featured-quote .quote-by span { letter-spacing: 0.04em; font-size: 0.9rem; }

/* ---------- Credentials ---------- */

.credentials { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
@media (min-width: 52rem) { .credentials { grid-template-columns: repeat(3, 1fr); } }
.credentials li { padding: 1.75rem 0; border-top: 1px solid var(--line); }
@media (min-width: 52rem) {
  .credentials li { padding: 0.25rem 2.25rem; border-top: 0; border-left: 1px solid var(--line); }
  .credentials li:first-child { padding-left: 0; border-left: 0; }
}
.credentials strong { display: block; font: 500 1.6rem/1.2 var(--serif); color: var(--navy-deep); margin-bottom: 0.45rem; }
.credentials p { margin: 0; color: var(--ink-soft); font-size: 0.98rem; }

/* ---------- Places ---------- */

.place-grid { display: grid; gap: 1.5rem; margin-top: 3rem; }
@media (min-width: 52rem) { .place-grid { grid-template-columns: repeat(3, 1fr); } }
.place { padding: 2.25rem 2rem; }
.place .eyebrow { margin-bottom: 1rem; }
.place h3 { margin-bottom: 0.6rem; }
.place p { margin: 0; color: var(--ink-soft); }

/* ---------- The closing invitation (navy) ---------- */

.reach { background: var(--navy-deep) var(--texture); background-blend-mode: multiply; color: #e9e3d6; padding-block: var(--section); position: relative; overflow: hidden; }
@media (max-width: 68rem) { .reach::after { display: none; } }
.reach::after {
  content: ""; position: absolute; right: -9rem; bottom: -14rem; width: 34rem; height: 40rem;
  border: 1px solid rgba(217, 194, 155, 0.22); border-radius: 100vmax 100vmax 0 0; pointer-events: none;
}
.reach .wrap { display: grid; gap: 3rem clamp(3rem, 7vw, 6rem); position: relative; z-index: 1; }
@media (min-width: 52rem) { .reach .wrap { grid-template-columns: 1.2fr 0.8fr; align-items: end; } }
.reach h2 { color: #fbf7ef; }
.reach h2 em { color: var(--brass-pale); }
.reach .eyebrow { color: var(--sage-pale); }
.reach p { color: #d8d2c4; max-width: 34rem; }
.reach .button-primary { background: var(--paper); color: var(--navy-deep); border-color: var(--paper); }
.reach .button-primary:hover { background: var(--brass-pale); border-color: var(--brass-pale); color: var(--navy-deep); }
.reach .button-quiet { color: var(--paper); border-color: rgba(247, 242, 232, 0.55); }
.reach .button-quiet:hover { background: var(--paper); color: var(--navy-deep); }
.reach a:not(.button) { color: #fbf7ef; }

.hours { margin: 0; border-top: 1px solid rgba(247, 242, 232, 0.2); }
.hours div { display: flex; justify-content: space-between; gap: 1rem; padding-block: 0.9rem; border-bottom: 1px solid rgba(247, 242, 232, 0.2); }
.hours dt { font: italic 500 1.25rem/1.4 var(--serif); color: #fbf7ef; }
.hours dd { margin: 0; color: #d8d2c4; }
.hours-note { font-size: 0.92rem; margin-top: 1.1rem; }

/* ---------- Inner pages ---------- */

.page-head { padding-block: clamp(3.5rem, 8vw, 6rem) clamp(2.5rem, 6vw, 4rem); }
.page-head h1 em { display: inline; }

.fee-list { margin: 0; border-top: 1px solid var(--navy); }
.fee-list div {
  display: flex; justify-content: space-between; align-items: baseline; gap: 1rem 2rem;
  padding-block: 1.6rem; border-bottom: 1px solid var(--line);
}
.fee-list dt { flex: 1; }
.fee-list dd { white-space: nowrap; }
.fee-list dt { font: 500 clamp(1.4rem, 2.4vw, 1.75rem)/1.25 var(--serif); color: var(--navy-deep); }
.fee-list dd { margin: 0; font: 500 0.8rem/1 var(--sans); letter-spacing: 0.18em; text-transform: uppercase; color: var(--sage); }

.notes { display: grid; gap: 2.5rem clamp(2rem, 5vw, 4rem); margin-top: var(--section); }
@media (min-width: 52rem) { .notes { grid-template-columns: repeat(3, 1fr); } }
.notes h2 { font-size: 1.75rem; }
.notes p { color: var(--ink-soft); }

.ways { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.25rem; align-self: start; }
.ways > li > a {
  display: block; height: 100%; padding: 1.9rem 1.9rem 1.7rem;
  text-decoration: none; transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}
.ways > li > a:hover { border-color: var(--brass); transform: translateY(-2px); color: inherit; box-shadow: 0 1px 1px rgba(70, 50, 25, 0.06), 0 16px 30px -14px rgba(70, 50, 25, 0.34); }
.ways .eyebrow { margin-bottom: 0.9rem; }
.ways strong { display: block; font: 500 1.65rem/1.2 var(--serif); color: var(--navy-deep); overflow-wrap: break-word; }
.ways .hint { display: block; margin-top: 0.5rem; color: var(--ink-soft); font-size: 0.95rem; }

.contact-aside { display: grid; gap: 2rem; align-content: start; }
.contact-aside .hours { border-top-color: var(--line); }
.contact-aside .hours div { border-bottom-color: var(--line); }
.contact-aside .hours dt { color: var(--navy-deep); }
.contact-aside .hours dd { color: var(--ink-soft); }

.prose { max-width: 36rem; }
.prose h2 { font-size: 2rem; margin-top: 2.5rem; }

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

.site-footer { padding-block: 4rem 3rem; font-size: 0.95rem; color: var(--ink-soft); }
.site-footer .wrap { display: grid; gap: 2.5rem; }
@media (min-width: 52rem) { .site-footer .wrap { grid-template-columns: 0.9fr 0.55fr 0.55fr; column-gap: clamp(3rem, 7vw, 6rem); } }
.site-footer h2 { font: 500 0.72rem/1.4 var(--sans); letter-spacing: 0.22em; text-transform: uppercase; color: var(--sage); margin-bottom: 1rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; }
.site-footer li a { display: inline-block; padding-block: 0.55rem; }
.site-footer a { text-decoration-color: var(--line); }
.footer-about p { max-width: 24rem; margin-top: 1.25rem; }
.footer-base { grid-column: 1 / -1; padding-top: 2rem; border-top: 1px solid var(--line); font-size: 0.85rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 2rem; }
.footer-base p { margin: 0; }

/* ---------- 404 ---------- */

.lost { min-height: 55vh; display: grid; align-content: center; }

/* ---------- Small helpers ---------- */

.statement + p { margin-top: 1.75rem; }
.eyebrow-center { justify-content: center; }
.eyebrow-center::after { content: ""; width: 2.25rem; height: 1px; background: var(--brass); flex: none; }
.heading-gap { margin-bottom: 2.5rem; }
.section-flush { padding-top: 0; }
@media (min-width: 52rem) { .split-contact { grid-template-columns: 1.3fr 0.7fr; } }
/* Cormorant's old-style figures make phone numbers look uneven */
.ways strong, .fee-list, .hours, .quotes p, .featured-quote p { font-variant-numeric: lining-nums; }
.ways .email strong { font-size: clamp(1.1rem, 5vw, 1.35rem); line-height: 1.5; }

/* Laptops with short screens: keep the contact buttons on the first screen */
@media (min-width: 52rem) and (max-height: 820px) { .hero { padding-top: 2.5rem; } }

/* Phones: a compact header, the nav on its own row */
@media (max-width: 30rem) {
  .site-header .wrap { padding-block: 1rem 0.75rem; row-gap: 0.5rem; }
  .mark-name { font-size: 1.45rem; }
  .site-nav { width: 100%; }
  .site-nav ul { gap: 1.5rem; }
  .site-nav .nav-cta { margin-left: auto; }
  .site-nav .nav-cta a { padding: 0.85rem 1rem; }
}

/* Links inside text: a taller target for fingers without changing the line */
main p a { padding-block: 0.6rem; }

/* The phone card: one number, three ways to use it */
.ways .phone { display: flex; flex-direction: column; height: 100%; padding: 1.9rem 1.9rem 1.7rem; }
.ways .phone strong { margin-bottom: 1.1rem; }
.phone-links { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.phone-links a {
  display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0.5rem 1rem;
  font: 500 0.75rem/1.2 var(--sans); letter-spacing: 0.14em; text-transform: uppercase;
  border: 1px solid var(--navy); color: var(--navy); text-decoration: none;
}
.phone-links a:first-child { background: var(--navy); color: var(--paper); }
.phone-links a:hover { background: var(--navy-deep); color: var(--paper); }

.crisis { margin: 0; font-size: 0.92rem; color: var(--ink-soft); }

@media print {
  .site-nav, .skip, .away-note, .reach::after, .swash { display: none !important; }
  body, .section-deep, .reach, .place, .quotes figure, .ways > li > a, .ways .phone { background: #fff !important; color: #000; }
  .reach h2, .reach p, .reach .hours dt, .reach .hours dd, .reach a { color: #000 !important; }
  .ways > li > a, .ways .phone, .place, .quotes figure { box-shadow: none; border: 1px solid #999; break-inside: avoid; }
  .section, .reach, .hero { padding-block: 1.5rem; }
  a[href^="mailto:"]::after, a[href^="tel:"]::after { content: " (" attr(href) ")"; font-size: 0.8em; }
  .portrait { width: 12rem; }
}
