/* richardstockley.coach
   Brand: teal #62c0bf and slate #345168, with the black disc of the logo.
   Raleway for text; Gochi Hand, sparingly, for the handwritten strapline.
   All styles live here: the site's content-security-policy doesn't allow inline styles. */

@font-face { font-family: "Raleway"; src: url("/fonts/raleway-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Raleway"; src: url("/fonts/raleway-latin-400-italic.woff2") format("woff2"); font-weight: 400 500; font-style: italic; font-display: swap; }
@font-face { font-family: "Raleway"; src: url("/fonts/raleway-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Raleway"; src: url("/fonts/raleway-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Gochi Hand"; src: url("/fonts/gochi-hand-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }

:root {
  --teal: #62c0bf;         /* the brand teal: backgrounds and accents, never small text on white */
  --teal-wash: #e7f5f5;    /* teal at about 15%, for quiet backgrounds */
  --slate: #345168;        /* the brand slate: headings, links, buttons, the footer */
  --slate-deep: #1f3344;   /* slate, darker: text on teal */
  --black: #000000;        /* the logo's disc */
  --text: #3e4a54;
  --line: #d5dfe5;
  --grey: #f5f5f5;
  --white: #ffffff;
  --error: #a3271f;
  --slant: clamp(1.75rem, 5vw, 5rem);  /* the drop of the angled edges */
  --sans: "Raleway", "Helvetica Neue", Arial, sans-serif;
  --hand: "Gochi Hand", "Segoe Print", "Bradley Hand", cursive;
  color-scheme: light;
}

/* ---------- Base ---------- */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 1.5rem; }
body { margin: 0; background: var(--white); color: var(--text); font-family: var(--sans); font-weight: 500; font-size: 1.0625rem; line-height: 1.65; font-variant-numeric: lining-nums; }
img, svg { max-width: 100%; height: auto; }
[hidden] { display: none !important; }
h1, h2, h3 { margin: 0; color: var(--slate); font-weight: 700; line-height: 1.15; text-wrap: balance; }
h1 { font-size: clamp(2.25rem, 6vw, 3.75rem); letter-spacing: -0.02em; line-height: 1.05; }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.25rem); letter-spacing: -0.01em; }
h3 { font-size: 1.25rem; }
p, ul, ol, dl, blockquote, figure { margin: 0; }
a { color: var(--slate); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; text-decoration-color: var(--teal); }
strong { font-weight: 700; color: var(--slate-deep); }
:focus-visible { outline: 3px solid var(--black); outline-offset: 3px; border-radius: 2px; }

.skip-link { position: absolute; left: 16px; top: -100px; z-index: 10; padding: 10px 16px; background: var(--black); color: var(--white); font-weight: 700; text-decoration: none; border-radius: 4px; }
.skip-link:focus { top: 12px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.wrap { max-width: 72rem; margin-inline: auto; padding-inline: max(1.25rem, env(safe-area-inset-left, 0px)) max(1.25rem, env(safe-area-inset-right, 0px)); }
.wrap--narrow { max-width: 46rem; }
@media (min-width: 720px) { .wrap { padding-inline: 2rem; } }
.icon { width: 22px; height: 22px; fill: currentColor; display: block; }
.hand { font-family: var(--hand); font-weight: 400; line-height: 1.15; }

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

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0.7rem 1.5rem; border: 2px solid var(--slate); border-radius: 999px; background: var(--slate); color: var(--white); font: 700 1rem/1.2 var(--sans); text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--black); border-color: var(--black); }
.btn--small { min-height: 40px; padding: 0.45rem 1.1rem; font-size: 0.95rem; }
.btn--dark { background: var(--black); border-color: var(--black); }
.btn--dark:hover { background: var(--slate); border-color: var(--slate); }
.btn--outline { background: transparent; color: var(--slate); }
.btn--outline:hover { background: var(--slate); border-color: var(--slate); color: var(--white); }
.btn:disabled { opacity: 0.6; cursor: progress; }

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

.site-header { background: var(--white); border-bottom: 1px solid var(--line); }
.header-inner { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 0.5rem 1.5rem; padding-block: 0.8rem; }
.brand { display: inline-flex; align-items: center; gap: 0.7rem; color: var(--black); text-decoration: none; font-weight: 700; font-size: 1.15rem; line-height: 1.1; letter-spacing: -0.01em; }
.brand img { width: 44px; height: 44px; flex: none; border-radius: 50%; }
.brand-kind { font-weight: 400; color: var(--slate); }
.site-nav { grid-column: 1 / -1; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.1rem 1.4rem; }
.site-nav a { display: inline-block; padding-block: 0.35rem; color: var(--slate-deep); font-weight: 700; font-size: 0.98rem; text-decoration: none; border-bottom: 3px solid transparent; }
.site-nav a:hover, .site-nav a[aria-current] { border-bottom-color: var(--teal); }
@media (min-width: 900px) {
  .header-inner { grid-template-columns: auto 1fr auto; }
  .site-nav { grid-column: auto; grid-row: 1; grid-column-start: 2; justify-self: end; }
  .header-cta { grid-column-start: 3; }
}

/* ---------- Home: the opening ---------- */

.hero { background: var(--teal); color: var(--slate-deep); clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--slant)), 0 100%); }
.hero-inner { display: grid; gap: 2rem; align-items: center; padding-block: clamp(2.5rem, 7vw, 5rem) calc(var(--slant) + clamp(2rem, 5vw, 3.5rem)); }
.hero h1 { color: var(--black); font-size: clamp(2.6rem, 7.5vw, 4.75rem); line-height: 0.98; letter-spacing: -0.03em; max-width: 9em; }
.hero-tagline { margin-top: 2rem; font-size: clamp(1.6rem, 4.2vw, 2.4rem); color: var(--slate); transform: rotate(-2deg); transform-origin: left center; }
.hero-lede { margin-top: 1.4rem; max-width: 32rem; font-size: 1.2rem; line-height: 1.5; }
.hero-actions { margin-top: 1.8rem; display: flex; flex-wrap: wrap; align-items: center; gap: 0.9rem 1.5rem; }
.hero-actions a:not(.btn) { color: var(--slate-deep); font-weight: 700; }
.hero-photo { justify-self: center; width: min(100%, 23rem); }
.hero-photo img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 50%; border: 8px solid var(--white); }
@media (min-width: 820px) {
  .hero-inner { grid-template-columns: 1.25fr 0.75fr; gap: 3rem; }
  .hero-photo { justify-self: end; width: 100%; max-width: 25rem; }
}

/* ---------- Home: sections ---------- */

.home > :not(.hero) { padding-block: clamp(2.75rem, 7vw, 4.75rem); }
.home > :not(.hero) > .wrap { display: flex; flex-direction: column; gap: 1.5rem; }
.home .band--tint { background: var(--teal-wash); }
.home .band--grey { background: var(--grey); }
.section-intro { max-width: 44rem; font-size: 1.15rem; }

/* Two things side by side, each under its own rule */
.pair { display: grid; gap: 2rem; }
.pair > div { display: flex; flex-direction: column; gap: 0.8rem; padding-top: 1.25rem; border-top: 4px solid var(--teal); }
.pair h2 { font-size: clamp(1.5rem, 3vw, 1.9rem); }
@media (min-width: 720px) { .pair { grid-template-columns: 1fr 1fr; gap: 3rem; } }

/* A short list of headed points */
.points { list-style: none; padding: 0; display: grid; gap: 1.75rem 3rem; }
.points li { display: flex; flex-direction: column; gap: 0.45rem; padding-left: 1.1rem; border-left: 4px solid var(--teal); }
@media (min-width: 720px) { .points { grid-template-columns: 1fr 1fr; } .points--three { grid-template-columns: repeat(3, 1fr); } }

/* The session journey: a real sequence, so it's numbered */
.journey { list-style: none; padding: 0; counter-reset: step; display: grid; gap: 1.5rem; }
.journey li { counter-increment: step; position: relative; padding-left: 3.6rem; min-height: 2.75rem; display: flex; flex-direction: column; justify-content: center; gap: 0.15rem; }
.journey li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 2.75rem; height: 2.75rem; border-radius: 50%; background: var(--black); color: var(--white); font-weight: 700; display: grid; place-items: center; }
.journey strong { color: var(--slate); font-size: 1.08rem; line-height: 1.25; }
.journey span { font-size: 0.95rem; }
@media (min-width: 900px) {
  .journey { grid-template-columns: repeat(5, 1fr); gap: 1.25rem; }
  .journey li { padding: 3.6rem 0 0; justify-content: flex-start; }
  .journey li::after { content: ""; position: absolute; left: 3.25rem; right: -0.75rem; top: 1.375rem; border-top: 2px solid var(--slate); }
  .journey li:last-child::after { display: none; }
}

/* About, with the accreditations */
.about-teaser { display: grid; gap: 2rem; }
.about-teaser > div { display: flex; flex-direction: column; gap: 1rem; }
@media (min-width: 820px) { .about-teaser { grid-template-columns: 1.2fr 0.8fr; gap: 4rem; align-items: start; } }
.badges { list-style: none; padding: 0; display: flex; flex-wrap: wrap; align-items: stretch; gap: 1rem; }
.badges li { display: grid; place-items: center; padding: 0.75rem 1rem; background: var(--white); border: 1px solid var(--line); border-radius: 8px; }
.badges img { display: block; height: 80px; width: auto; }
.badges a { display: block; }
.facts { display: grid; gap: 0.9rem; }
.facts div { padding-top: 0.9rem; border-top: 1px solid var(--line); }
.facts dt { font-weight: 700; color: var(--slate); }
.facts dd { margin: 0.15rem 0 0; }

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

.page-head { background: var(--teal-wash); clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--slant)), 0 100%); }
.page-head .wrap { display: flex; flex-direction: column; gap: 1rem; padding-block: clamp(2.25rem, 6vw, 4rem) calc(var(--slant) + clamp(1.5rem, 4vw, 2.5rem)); }
.page-head h1 { max-width: 14em; }
.lede { max-width: 42rem; font-size: 1.25rem; line-height: 1.5; color: var(--slate-deep); }
.page-body { display: flex; flex-direction: column; gap: clamp(2.5rem, 6vw, 4rem); padding-block: clamp(2rem, 5vw, 3rem) clamp(3rem, 8vw, 5rem); }
.page-body > section { display: flex; flex-direction: column; gap: 1.1rem; }
.page-body > section > p, .page-body > section > ul:not([class]), .page-body > section > ol:not([class]), .page-body > p { max-width: 44rem; }
.page-body ul:not([class]), .page-body ol:not([class]) { padding-left: 1.25rem; display: flex; flex-direction: column; gap: 0.4rem; }
.page-body ul:not([class]) li::marker { color: var(--teal); }
.meta { font-size: 0.95rem; }

/* A list in columns, for the "topics we can explore" lists */
.ticks { list-style: none; padding: 0; display: grid; gap: 0.55rem 2.5rem; max-width: 52rem; }
.ticks li { position: relative; padding-left: 1.5rem; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 0.5em; width: 0.7rem; height: 0.7rem; border-radius: 50%; background: var(--teal); }
@media (min-width: 640px) { .ticks { grid-template-columns: 1fr 1fr; } }

/* The three services */
.services { list-style: none; padding: 0; display: grid; gap: 2rem; }
.services li { display: flex; flex-direction: column; gap: 0.8rem; padding: 1.5rem; background: var(--grey); border-top: 4px solid var(--slate); border-radius: 0 0 8px 8px; }
.services .btn { align-self: flex-start; margin-top: auto; }
@media (min-width: 820px) { .services { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; } }
.note { max-width: 44rem; padding: 1rem 1.25rem; background: var(--teal-wash); border-left: 4px solid var(--teal); }

/* About page: text beside the portrait */
.page-body > .with-photo { display: grid; gap: 2rem; }
.with-photo > div { display: flex; flex-direction: column; gap: 1.1rem; }
.with-photo img { display: block; width: min(100%, 20rem); aspect-ratio: 1; object-fit: cover; border-radius: 50%; }
@media (min-width: 820px) { .page-body > .with-photo { grid-template-columns: 1fr 20rem; gap: 4rem; align-items: start; } }

/* FAQ */
.page-body details, .home details { max-width: 46rem; border-top: 1px solid var(--line); padding-block: 0.95rem; }
.page-body details:last-child, .home details:last-child { border-bottom: 1px solid var(--line); }
.page-body summary, .home summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.page-body summary::-webkit-details-marker, .home summary::-webkit-details-marker { display: none; }
.page-body summary::after, .home summary::after { content: "+"; flex: none; color: var(--slate); font-size: 1.4rem; font-weight: 700; line-height: 1.1; }
.page-body details[open] summary, .home details[open] summary { margin-bottom: 0.6rem; }
.page-body details[open] summary::after, .home details[open] summary::after { content: "\2212"; }
.home .faq h2 { margin-bottom: 1.5rem; }
.page-body > section:has(> details) { gap: 0; }
.page-body > section:has(> details) > h2 { margin-bottom: 1.25rem; }

.link-list { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 0.75rem 1.75rem; font-weight: 700; }

/* ---------- Articles: cards and topics ---------- */

.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 17.5rem), 1fr)); gap: 2.5rem 2rem; }
.card { display: flex; flex-direction: column; gap: 0.55rem; min-width: 0; }
.card-image { display: block; margin-bottom: 0.35rem; }
.card-image img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 8px; background: var(--grey); }
.card-title { font-size: 1.25rem; line-height: 1.2; }
.card-title a { color: var(--slate); text-decoration: none; }
.card-title a:hover { text-decoration: underline; text-decoration-color: var(--teal); text-decoration-thickness: 2px; }
.card-meta { font-size: 0.9rem; }
.card-summary { font-size: 0.98rem; line-height: 1.55; }

.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip { display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.3rem 0.85rem; border: 1px solid var(--slate); border-radius: 999px; color: var(--slate); font-size: 0.92rem; font-weight: 700; text-decoration: none; }
.chip:hover { background: var(--teal-wash); }
.chip[aria-current] { background: var(--slate); color: var(--white); }
.chip-count { font-weight: 500; opacity: 0.8; }

/* ---------- An article ---------- */

.post-head { padding-block: clamp(2rem, 5vw, 3.25rem) 1.75rem; }
.post-head .wrap { display: flex; flex-direction: column; gap: 1rem; }
.post-head h1 { font-size: clamp(2.1rem, 5.2vw, 3.25rem); }
.post-topics { display: flex; flex-wrap: wrap; gap: 0.4rem 1rem; font-size: 0.95rem; font-weight: 700; }
.post-meta { font-size: 0.98rem; }
.post-figure { max-width: 62rem; }
.post-figure img { display: block; width: 100%; border-radius: 10px; }

.prose { padding-block: 2.25rem 2.5rem; font-size: 1.125rem; line-height: 1.7; }
.prose > * + * { margin-top: 1.25rem; }
.prose h2 { margin-top: 2.75rem; font-size: clamp(1.45rem, 3vw, 1.8rem); }
.prose h3 { margin-top: 2rem; }
.prose h2 + *, .prose h3 + * { margin-top: 0.85rem; }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose li + li { margin-top: 0.45rem; }
.prose ul li::marker { color: var(--teal); }
.prose blockquote { padding: 0.25rem 0 0.25rem 1.25rem; border-left: 4px solid var(--teal); color: var(--slate-deep); }
.prose img { display: block; border-radius: 8px; }
.prose table { border-collapse: collapse; width: 100%; font-size: 1rem; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 0.6rem 0.75rem; border-bottom: 1px solid var(--line); }
.prose details { border-top: 1px solid var(--line); padding-block: 0.85rem; }
.prose summary { cursor: pointer; }
.toc { padding: 0.9rem 1.2rem; background: var(--grey); border: 0; border-radius: 8px; font-size: 1rem; }
.prose .toc { border-top: 0; }
.toc summary { font-weight: 700; color: var(--slate); }
.toc ol { margin-top: 0.75rem; padding-left: 1.3rem; }
.toc li + li { margin-top: 0.25rem; }

.post-foot { display: flex; flex-direction: column; gap: 2rem; padding-block: 2rem 3.5rem; border-top: 1px solid var(--line); }
.share { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }
.share-label { margin-right: 0.4rem; font-weight: 700; color: var(--slate); }
.share-link { display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid var(--slate); border-radius: 50%; background: var(--white); color: var(--slate); cursor: pointer; }
.share-link:hover { background: var(--slate); color: var(--white); }
.share-status { font-size: 0.95rem; }
.byline { display: flex; align-items: center; gap: 1.25rem; padding: 1.25rem; background: var(--teal-wash); border-radius: 8px; }
.byline-photo { flex: none; width: 84px; height: 84px; border-radius: 50%; object-fit: cover; }
.neighbours { display: grid; gap: 1rem; }
.neighbour { display: flex; flex-direction: column; gap: 0.25rem; padding-top: 0.9rem; border-top: 4px solid var(--teal); text-decoration: none; }
.neighbour-label { font-size: 0.9rem; color: var(--text); }
.neighbour-title { font-weight: 700; font-size: 1.1rem; line-height: 1.25; }
.neighbour:hover .neighbour-title { text-decoration: underline; text-decoration-color: var(--teal); text-decoration-thickness: 2px; }
@media (min-width: 640px) { .neighbours { grid-template-columns: 1fr 1fr; gap: 2rem; } .neighbour--newer { grid-column: 2; text-align: right; } }
.related { display: flex; flex-direction: column; gap: 1.75rem; padding-block: clamp(2.5rem, 6vw, 4rem); border-top: 1px solid var(--line); }

/* ---------- Contact form ---------- */

.contact-layout { display: grid; gap: 2.5rem; }
.contact-layout aside { display: flex; flex-direction: column; gap: 1rem; }
@media (min-width: 900px) { .contact-layout { grid-template-columns: 1.3fr 0.7fr; gap: 4rem; align-items: start; } }
.form { display: flex; flex-direction: column; gap: 1.3rem; }
.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field label { font-weight: 700; color: var(--slate); }
.field input, .field select, .field textarea { width: 100%; min-height: 50px; padding: 0.7rem 0.9rem; border: 1px solid #7d93a3; border-radius: 6px; background: var(--white); color: var(--slate-deep); font: inherit; font-size: 1rem; line-height: 1.5; }
.field textarea { min-height: 12rem; resize: vertical; }
.field [aria-invalid="true"] { border-color: var(--error); box-shadow: 0 0 0 1px var(--error); }
.field-error { font-size: 0.92rem; color: var(--error); }
.honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.turnstile-box:empty { display: none; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.9rem 1.5rem; }
.form-note { max-width: 30rem; font-size: 0.9rem; }
.form-status { padding: 0.9rem 1.1rem; border-left: 4px solid var(--teal); background: var(--teal-wash); }
.form-status--error { border-left-color: var(--error); background: #fbeceb; color: var(--error); }
.form-thanks { display: flex; flex-direction: column; gap: 0.75rem; padding: 1.5rem; background: var(--teal-wash); border-left: 4px solid var(--teal); }
.form-thanks:focus { outline: none; }

/* ---------- The invitation above the footer ---------- */

.invite { background: var(--teal); color: var(--slate-deep); clip-path: polygon(0 var(--slant), 100% 0, 100% 100%, 0 100%); }
.invite-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem 3rem; padding-block: calc(var(--slant) + clamp(1.75rem, 4vw, 2.75rem)) clamp(2.25rem, 5vw, 3.25rem); }
.invite-inner > div { display: flex; flex-direction: column; gap: 0.6rem; max-width: 38rem; }
.invite h2 { color: var(--black); }

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

.site-footer { background: var(--slate); color: var(--white); }
.footer-inner { display: grid; gap: 2.5rem; padding-block: 3rem 2rem; }
.footer-brand { display: flex; flex-direction: column; align-items: flex-start; gap: 0.8rem; max-width: 22rem; }
.site-footer .brand, .site-footer .brand-kind { color: var(--white); }
.footer-brand .hand { font-size: 1.6rem; color: var(--teal); }
.footer-nav { display: grid; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); gap: 2rem; }
.footer-nav h2 { margin-bottom: 0.6rem; color: var(--teal); font-size: 1rem; letter-spacing: 0; }
.footer-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.35rem; }
.site-footer a { color: var(--white); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; text-decoration-color: var(--teal); }
.site-footer :focus-visible { outline-color: var(--white); }
.footer-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 2rem; padding-block: 1.25rem 2rem; border-top: 1px solid rgba(255, 255, 255, 0.25); font-size: 0.92rem; }
.footer-legal a { text-decoration: underline; }
@media (min-width: 900px) { .footer-inner { grid-template-columns: 0.8fr 1.6fr; gap: 4rem; } }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }
@media print { .site-header nav, .header-cta, .invite, .share, .site-footer { display: none; } .hero, .page-head { clip-path: none; } }
