/* About page only. Everything else (colours, type, header, footer, buttons, page banner) comes from styles.css */

.page-hero .portrait-fig { max-width: 440px; gap: 16px; justify-self: end; }
.page-hero .portrait { outline: none; } /* no ring around the photo on this page */

/* Claire's story: a short sticky aside beside a comfortable reading column */
.story-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.story-side { position: sticky; top: 110px; display: grid; gap: 16px; }
.story-aside { display: grid; gap: 22px; padding: 28px; border-radius: var(--radius); background: var(--surface); }
.story-aside blockquote { margin: 0; font-family: var(--display); font-size: 1.35rem; line-height: 1.35; color: var(--ink); text-wrap: balance; }
.story-aside blockquote::before { content: "“"; display: block; font-size: 3rem; line-height: .6; color: var(--clay); margin-bottom: 6px; }
.story-aside .btn { justify-self: start; }
.story { display: grid; gap: 22px; max-width: 68ch; }
.story p { color: var(--text); }
.story p:first-child { font-size: 1.2rem; color: var(--ink); }
.story p:first-child::first-letter { float: left; font-family: var(--display); font-size: 3.6em; line-height: .85; margin: 0.06em 0.1em 0 0; color: var(--clay); }

/* Neuro-affirming note: its own paragraph, set apart as a soft lilac callout with an infinity mark */
.callout { display: grid; gap: 12px; padding: 24px 28px; border-radius: var(--radius); background: var(--lilac); border-left: 4px solid var(--heather); font-family: var(--display); font-size: 1.1rem; line-height: 1.45; color: var(--ink); text-wrap: pretty; }
.callout-icon { width: 40px; height: 40px; fill: none; stroke: var(--heather); stroke-width: 2.2; stroke-linecap: round; }

/* At a glance: four credential cards, 1, 2 or 4 per row so rows are always full */
.creds-title { margin: clamp(56px, 8vw, 96px) 0 18px; }
.creds-grid { display: grid; grid-template-columns: 1fr; gap: 16px; list-style: none; padding: 0; margin: 0; }
@media (min-width: 600px) { .creds-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .creds-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
/* Four hues 90° apart round the colour wheel (a square set), matching the help cards and format pills on the home page */
.cred { --h: 30; --accent: oklch(50% calc(0.11 * var(--k, 1)) var(--h)); --wash: oklch(95.5% calc(0.028 * var(--k, 1)) var(--h));
  position: relative; overflow: hidden; display: grid; gap: 10px; align-content: start;
  padding: 30px 26px 28px; border-radius: var(--radius); background: var(--wash);
  border-top: 4px solid var(--accent);
  transition: transform .25s cubic-bezier(.2,.7,.2,1), box-shadow .25s ease; }
.cred:nth-child(2) { --h: 120; }  /* fresh green */
.cred:nth-child(3) { --h: 210; --k: .55; }  /* lake teal */
.cred:nth-child(4) { --h: 300; --k: .55; }  /* soft violet */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .cred { --accent: oklch(78% calc(0.1 * var(--k, 1)) var(--h)); --wash: oklch(26% calc(0.03 * var(--k, 1)) var(--h)); }
}
:root[data-theme="dark"] .cred { --accent: oklch(78% calc(0.1 * var(--k, 1)) var(--h)); --wash: oklch(26% calc(0.03 * var(--k, 1)) var(--h)); }
.cred:hover { transform: translateY(-4px); box-shadow: 0 18px 34px -22px color-mix(in srgb, var(--ink) 45%, transparent); }
/* a large faint leaf in the corner of each card */
.cred::after { content: ""; position: absolute; right: -28px; bottom: -34px; width: 150px; height: 150px; background: var(--accent); opacity: .08; border-radius: 0 100% 0 100%; transform: rotate(-12deg); pointer-events: none; }
.cred-icon { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--ground); color: var(--accent); margin-bottom: 8px; box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 35%, transparent); }
.cred-icon svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.cred h3 { font-family: var(--body); font-size: 0.8rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.cred .cred-main { font-family: var(--display); font-size: 1.3rem; line-height: 1.3; color: var(--ink); text-wrap: balance; }
.cred p { color: var(--ink-soft); font-size: 0.95rem; position: relative; z-index: 1; }
.quals { display: grid; position: relative; z-index: 1; margin-top: 2px; }
.qual { display: grid; gap: 4px; padding-block: 14px; }
.qual:first-child { padding-top: 0; }
.qual + .qual { border-top: 1px dashed color-mix(in srgb, var(--accent) 35%, transparent); }
.qual-abbr { font-family: var(--display); font-size: 1.9rem; line-height: 1; color: var(--accent); margin-bottom: 4px; }
.cred .qual-name { font-weight: 500; font-size: 1rem; line-height: 1.35; color: var(--ink); }
.cred .qual-where { font-size: 0.9rem; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.qual-level { font-size: 0.75rem; font-weight: 500; letter-spacing: .04em; color: var(--accent); background: var(--ground); border-radius: 999px; padding: 3px 10px; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 40%, transparent); }
.specs { display: grid; list-style: none; padding: 0; margin: 2px 0 0; counter-reset: spec; position: relative; z-index: 1; }
.specs li { counter-increment: spec; display: grid; grid-template-columns: 2.1em minmax(0, 1fr); align-items: baseline; gap: 8px; padding-block: 10px; font-weight: 500; font-size: 0.98rem; line-height: 1.35; color: var(--ink); }
.specs li:first-child { padding-top: 0; }
.specs li + li { border-top: 1px dashed color-mix(in srgb, var(--accent) 35%, transparent); }
.specs li::before { content: counter(spec, decimal-leading-zero); font-family: var(--display); font-size: 1.35rem; line-height: 1; color: var(--accent); }
.ticks { display: grid; gap: 10px; list-style: none; padding: 0; margin: 4px 0 0; position: relative; z-index: 1; }
.ticks li { display: flex; gap: 10px; align-items: baseline; color: var(--ink); font-weight: 400; }
.ticks li::before { content: ""; flex: none; width: 14px; height: 8px; border: solid var(--accent); border-width: 0 0 2px 2px; transform: rotate(-45deg) translateY(-2px); }

/* Closing call to action on the sage band */
.cta { display: grid; justify-items: center; text-align: center; gap: 18px; }
.cta .lede { max-width: 52ch; }

@media (max-width: 860px) {
  .story-grid { grid-template-columns: 1fr; }
  .page-hero .portrait-fig { justify-self: center; width: 340px; max-width: 100%; }
  .story-side { position: static; order: 2; }
}
