:root {
  color-scheme: light;
  --paper: #eff4ed;
  --ink: #173e31;
  --muted: #466452;
  --accent: #247a47;
  --line: #cbdccc;
  --green: #22583b;
  --heading-font: 'Trebuchet MS', 'Segoe UI', Arial, sans-serif;
  --surface: #fbfdf9;
  --button-ink: #fff;
  --content-width: 1200px;
  --gutter: 5%;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #10261e;
  --ink: #e5f0e2;
  --muted: #b4cbb7;
  --accent: #9cdaaa;
  --line: #335342;
  --green: #9cdaaa;
  --surface: #19362a;
  --button-ink: #10261e;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --paper: #10261e;
    --ink: #e5f0e2;
    --muted: #b4cbb7;
    --accent: #9cdaaa;
    --line: #335342;
    --green: #9cdaaa;
    --surface: #19362a;
    --button-ink: #10261e;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 6rem; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: 'Segoe UI', Arial, Helvetica, sans-serif; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: .3em; }
button { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 6px; }
figure, p { margin: 0; }
[hidden] { display: none !important; }
.skip-link { position: fixed; top: 1rem; left: 1rem; padding: 1rem; transform: translateY(-180%); background: var(--surface); z-index: 20; }
.skip-link:focus { transform: none; }
.site-header { border-bottom: 1px solid var(--line); }
.header-inner { max-width: var(--content-width); margin: auto; min-height: 104px; padding: 1rem 5%; display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.brand { display: flex; align-items: center; gap: .65rem; text-decoration: none; font-family: var(--heading-font); font-size: 1.9rem; font-weight: bold; letter-spacing: -.04em; white-space: nowrap; }
.brand img { width: 50px; height: 50px; background: #eff4ed; border-radius: 12px; padding: 3px; }
.brand-accent { color: var(--accent); }
.brand-domain { font-size: .75em; font-weight: normal; }
.main-nav { display: flex; align-items: center; gap: 2.4rem; }
.main-nav a { padding: .7rem 0; font-size: .875rem; text-decoration: none; }
.main-nav a:hover, .text-link:hover { color: var(--accent); }
.main-nav .nav-contact { display: flex; gap: .7rem; }
.menu-toggle { min-height: 44px; padding: .5rem; border: 0; background: transparent; display: none; align-items: center; gap: .75rem; cursor: pointer; }
.menu-icon { width: 24px; display: grid; gap: 6px; }
.menu-icon span { width: 24px; height: 2px; background: var(--ink); }
.hero { max-width: var(--content-width); margin: auto; padding: 5.5rem 5% 0; }
.hero-introduction { display: grid; grid-template-columns: minmax(0, 1fr) minmax(180px, .28fr); gap: 4%; align-items: center; }
.hero-text { max-width: 1060px; }
.hello-photo { position: relative; padding: 10px 10px 1.2rem; margin: 1.5rem 0 3rem; background: var(--surface); transform: rotate(5deg); box-shadow: 0 8px 24px #06130f30; }
.hello-portrait { width: 100%; }
.hello-photo figcaption { font-family: var(--heading-font); font-style: italic; font-size: .9rem; text-align: center; margin-top: .9rem; line-height: 1.5; }
.eyebrow { font-size: .75rem; line-height: 1.7; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; color: var(--muted); display: flex; align-items: center; gap: .8rem; }
.eyebrow-rule { width: 30px; height: 1px; background: var(--accent); flex-shrink: 0; }
h1 { font-family: var(--heading-font); font-weight: 600; font-size: clamp(2.8rem, 5.2vw, 4.7rem); line-height: 1.13; letter-spacing: -.045em; margin: 1.9rem 0 1.65rem; text-wrap: balance; }
h1 em { color: var(--accent); font-weight: normal; display: inline-block; position: relative; }
h1 em::after { content: ''; position: absolute; left: 3%; right: 0; bottom: -.07em; height: .13em; border-bottom: 3px solid var(--accent); border-radius: 50%; transform: rotate(-3deg); opacity: .55; }
.hero-description { color: var(--muted); font-size: 1.15rem; line-height: 1.6; }
.button { display: inline-flex; align-items: center; justify-content: space-between; gap: 2rem; padding: 1rem 1.4rem; font-size: .9rem; text-decoration: none; border-radius: 30px; min-height: 50px; }
.button-primary { background: var(--accent); color: var(--button-ink); }
.button-primary:hover { filter: brightness(.92); }
.text-link { display: inline-flex; align-items: center; gap: 1rem; font-size: .9rem; min-height: 44px; }
.hero-image { position: relative; overflow: hidden; border-radius: 8px 40px 8px 8px; }
.hero-image img { width: 100%; height: clamp(300px, 42vw, 600px); object-fit: cover; object-position: 40% 25%; }
.contact-section { max-width: var(--content-width); margin: auto; display: grid; grid-template-columns: .85fr 1fr; gap: 10%; align-items: center; padding: 7rem 9%; }
h2 { font-family: var(--heading-font); font-weight: normal; font-size: clamp(2.4rem, 4vw, 3.5rem); letter-spacing: -.04em; line-height: 1.13; margin: 1rem 0 1.6rem; text-wrap: balance; }
.contact-description { color: var(--muted); font-size: 1rem; line-height: 1.85; max-width: 33rem; }
.contact-list { margin: 1.7rem 0; }
.contact-list > div { border-bottom: 1px solid var(--line); padding: .85rem 0; }
.contact-list dt { font-size: .65rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: .25rem; color: var(--muted); }
.contact-list dd { margin: 0; }
.contact-list a { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 44px; text-decoration: none; font-size: clamp(.9rem, 1.8vw, 1.15rem); overflow-wrap: anywhere; }
.contact-list a:hover { color: var(--accent); }
.contact-list a span { flex-shrink: 0; }
.site-footer { margin: 0 auto; max-width: var(--content-width); border-top: 1px solid var(--line); padding: 2rem 5%; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; font-size: .75rem; color: var(--muted); flex-wrap: wrap; }
.footer-brand { color: var(--ink); font-family: var(--heading-font); font-size: 1.4rem; text-decoration: none; }
.site-footer > a:last-child { min-height: 44px; display: flex; align-items: center; }

@media (max-width: 850px) {
  .header-inner { min-height: 88px; flex-wrap: wrap; gap: 0; }
  .brand { font-size: 1.6rem; }
  .brand img { width: 42px; height: 42px; }
  .main-nav { flex: 1 0 100%; padding-top: .5rem; justify-content: space-between; gap: .5rem; flex-wrap: wrap; }
  .js .menu-toggle { display: flex; }
  .js .main-nav { display: none; }
  .js .main-nav.is-open { display: flex; }
  .main-nav a { font-size: .8rem; min-height: 44px; display: flex; align-items: center; }
  .main-nav .nav-contact { gap: .5rem; padding: .5rem .7rem; }
  .hero { padding-top: 3.3rem; }
  .hero-introduction { grid-template-columns: minmax(0, 1fr) 170px; gap: 4%; }
  .contact-section { padding: 4.5rem 5%; gap: 6%; }
}

@media (max-width: 580px) {
  html { scroll-padding-top: 1.5rem; }
  .header-inner { padding: .8rem 6%; }
  .main-nav { flex-direction: column; align-items: stretch; padding-top: 1rem; }
  .main-nav a { padding: .6rem .2rem; font-size: .9rem; border-bottom: 1px solid var(--line); }
  .main-nav .nav-contact { margin: .5rem 0; padding: .8rem; justify-content: space-between; }
  .hero { padding: 2.8rem 6% 0; }
  .hero-introduction { grid-template-columns: 1fr; gap: 0; }
  .hello-photo { width: 190px; justify-self: center; margin: .6rem 0 2.3rem; }
  .eyebrow { font-size: .62rem; letter-spacing: .08em; }
  h1 { margin-top: 1.5rem; font-size: clamp(2.65rem, 10.5vw, 3.8rem); line-height: 1.12; }
  .desktop-break { display: none; }
  .hero-description { font-size: 1rem; max-width: 19rem; }
  .button { padding: .95rem 1.1rem; gap: 1.2rem; }
  .hero-image img { height: 290px; object-position: 35% 35%; }
  .contact-section { grid-template-columns: 1fr; padding: 3.5rem 6%; gap: 2rem; }
  .contact-list a { font-size: 1rem; }
  .contact-description { font-size: .95rem; }
  .site-footer { padding: 1.7rem 6%; gap: .8rem; }
  .site-footer p { flex-basis: 100%; order: 3; line-height: 1.6; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* Shared pages and reading layouts. */
.header-tools { display: flex; align-items: center; gap: .75rem; order: 3; }
.main-nav { margin-left: auto; }
.theme-toggle { width: 44px; min-height: 44px; border: 1px solid var(--line); border-radius: 50%; color: var(--ink); background: transparent; cursor: pointer; font-size: 1.35rem; }
.theme-toggle:hover { background: var(--surface); }
.main-nav a[aria-current="page"] { color: var(--accent); text-decoration: underline; }
.page-heading { max-width: var(--content-width); margin: auto; padding: 4rem 5% 2rem; }
.page-heading h1 { margin: 1rem 0 0; }
.prose { font-size: 1.1rem; line-height: 1.85; overflow-wrap: break-word; }
.prose p { margin: 0 0 1.3rem; }
.prose h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); margin: 2.5rem 0 1.1rem; }
.prose h3 { font-family: var(--heading-font); font-size: 1.35rem; margin: 2rem 0 .75rem; line-height: 1.4; }
.prose em { font-style: italic; }
.prose a:hover { color: var(--accent); }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }
.prose-page { max-width: var(--content-width); margin: auto; padding: 1rem 5% 5rem; }
.about-introduction { max-width: var(--content-width); margin: auto; padding: 0 5% 2rem; display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 7%; align-items: start; }
.about-introduction .hello-photo { margin: 1rem 0 2rem; }
.personal-gallery { max-width: var(--content-width); padding: 1rem 5% 4rem; margin: auto; display: grid; grid-template-columns: 1.4fr .65fr 1fr; gap: 2rem; align-items: center; }
.personal-gallery img { width: 100%; max-height: 450px; object-fit: contain; border: 8px solid var(--surface); border-radius: 5px; }
.personal-gallery figure:nth-child(2) { transform: rotate(-3deg); }
.credentials { max-width: var(--content-width); margin: auto; padding: 2rem 5% 5rem; border-top: 1px solid var(--line); }
.credentials > h2 { max-width: 650px; }
.certificate-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem; }
.certificate-grid a { display: block; align-self: center; border: 8px solid var(--surface); border-radius: 5px; }
.certificate-grid img { width: 100%; height: auto; }
.coaching-image img { width: 100%; height: auto; border-radius: 8px 40px 8px 8px; }
.page-action { padding-top: 1.2rem; }
.articles-section { max-width: var(--content-width); margin: auto; padding: 0 5% 5rem; }
.article-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; }
.article-card { background: var(--surface); border: 1px solid var(--line); border-radius: 8px 25px 8px 8px; overflow: hidden; }
.article-card > a { display: block; text-decoration: none; height: 100%; }
.article-card > a:hover h2 { color: var(--accent); text-decoration: underline; }
.article-card img { width: 100%; height: 205px; object-fit: cover; }
.card-text { padding: 1.5rem; }
.card-text time, .article-meta { font-size: .85rem; color: var(--muted); }
.card-text h2 { font-size: 1.65rem; margin: .75rem 0 1rem; line-height: 1.3; letter-spacing: -.025em; }
.card-text p { color: var(--muted); line-height: 1.65; font-size: .95rem; }
.card-read { display: flex; justify-content: space-between; padding-top: 1.3rem; font-size: .9rem; }
.reading-page { max-width: var(--content-width); margin: auto; padding: 3rem 5% 4rem; }
.reading-page h1 { font-size: clamp(2.3rem, 4.3vw, 3.7rem); line-height: 1.18; }
.article-image { margin: 2rem 0; }
.article-image img { width: 100%; max-height: 520px; object-fit: contain; border-radius: 6px; }
.related-articles { max-width: 980px; margin: auto; padding: 1rem 5% 5rem; border-top: 1px solid var(--line); }
.related-articles .article-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.consent-settings { border: 0; background: transparent; color: inherit; padding: .5rem 0; min-height: 44px; text-decoration: underline; cursor: pointer; }
.modal-open { overflow: hidden; }
.certificate-lightbox { width: min(96vw, 1200px); max-width: none; height: calc(100dvh - 2rem); max-height: none; margin: auto; padding: 1rem 1.5rem; background: var(--paper); color: var(--ink); border: 1px solid var(--line); border-radius: 12px; }
.certificate-lightbox[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; gap: .7rem; }
.certificate-lightbox::backdrop { background: #03120cdd; }
.lightbox-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.lightbox-heading h2 { font-size: 1.1rem; margin: 0; letter-spacing: 0; }
.certificate-lightbox button { min-width: 48px; min-height: 48px; border: 1px solid var(--line); border-radius: 25px; padding: .5rem 1rem; background: var(--surface); color: var(--ink); cursor: pointer; flex-shrink: 0; }
.certificate-lightbox button:hover { border-color: var(--accent); }
.lightbox-close { display: flex; align-items: center; gap: .7rem; }
.lightbox-close span { font-size: 1.4rem; }
.lightbox-image { display: flex; justify-content: center; align-items: center; min-height: 0; }
.lightbox-image img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.lightbox-controls { display: flex; align-items: center; justify-content: center; gap: 2rem; }
.lightbox-counter { font-size: .9rem; color: var(--muted); }
.coaching-overview { max-width: var(--content-width); margin: auto; padding: .5rem 5% 2rem; display: grid; grid-template-columns: 1.1fr 1fr; gap: 5%; align-items: start; }
.coaching-overview .prose { font-size: 1.05rem; line-height: 1.8; }
.coaching-overview .prose > h2:first-child { margin-top: 0; font-size: clamp(1.8rem, 2.6vw, 2.4rem); }
.coaching-overview .coaching-image { padding: 0; margin: .4rem 0 0; width: 100%; max-width: 390px; justify-self: center; position: static; }
.coaching-details { max-width: var(--content-width); margin: auto; padding: 0 5% 3rem; }
.coaching-details > h2 { margin-top: 0; }
.coaching-aspects { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
.coaching-aspect { background: var(--surface); padding: 1.5rem 1.7rem; border: 1px solid var(--line); border-radius: 8px 24px 8px 8px; }
.coaching-aspect h3 { margin: 0 0 .6rem; color: var(--ink); }
.coaching-aspect p { margin: 0; color: var(--muted); font-size: 1rem; }
@media (max-width: 850px) {
  .coaching-overview { grid-template-columns: 1fr; gap: 1rem; }
  .coaching-overview .coaching-image { position: static; margin: 0 0 1.5rem; }
}
@media (max-width: 580px) {
  .certificate-lightbox { padding: .8rem; width: calc(100vw - 1rem); height: calc(100dvh - 1rem); }
  .lightbox-heading h2 { font-size: .85rem; line-height: 1.4; }
  .lightbox-controls { gap: 1rem; }
  .coaching-overview { padding: .5rem 6% 1rem; }
  .coaching-details { padding: 0 6% 2rem; }
  .coaching-aspects { grid-template-columns: 1fr; gap: 1rem; }
  .coaching-aspect { padding: 1.3rem; }
}

/* One outer grid on every page. Reading text stays comfortably short inside it. */
.header-inner, .hero, .contact-section, .site-footer, .page-heading,
.prose-page, .about-introduction, .personal-gallery, .credentials,
.articles-section, .reading-page, .related-articles,
.coaching-overview, .coaching-details {
  max-width: var(--content-width);
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}
.reading-page > header, .reading-page > .prose { max-width: 78ch; }
.reading-page > .article-image { max-width: 78ch; }
@media (max-width: 580px) {
  :root { --gutter: 6%; }
}

@media (max-width: 850px) {
  .header-tools { order: 0; }
  .main-nav { order: 3; margin-left: 0; }
  .header-inner { column-gap: .5rem; }
  .about-introduction { grid-template-columns: minmax(0, 1fr) 190px; gap: 6%; }
  .personal-gallery { gap: 1rem; }
  .article-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
}
@media (max-width: 580px) {
  .header-inner { flex-wrap: wrap; }
  .brand { font-size: 1.3rem; gap: .35rem; }
  .brand img { width: 36px; height: 36px; }
  .header-tools { gap: .25rem; }
  .menu-toggle { padding: .4rem; font-size: .9rem; }
  .menu-icon { display: none; }
  .page-heading { padding: 2.5rem 6% 1.5rem; }
  .page-heading h1 { font-size: 2.7rem; }
  .prose { font-size: 1.05rem; line-height: 1.8; }
  .about-introduction { grid-template-columns: 1fr; padding: 0 6% 1rem; }
  .about-introduction .hello-photo { width: 190px; justify-self: center; margin: 1rem 0 2rem; }
  .personal-gallery { grid-template-columns: 1fr; padding: 1rem 6% 3rem; gap: 2rem; }
  .personal-gallery img { max-height: 460px; }
  .certificate-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .credentials { padding: 2rem 6% 3rem; }
  .prose-page { padding: 1rem 6% 3rem; }
  .articles-section { padding: 0 6% 3rem; }
  .article-grid, .related-articles .article-grid { grid-template-columns: 1fr; }
  .reading-page { padding: 2rem 6% 3rem; }
  .reading-page h1 { font-size: 2.5rem; }
  .related-articles { padding: 1rem 6% 3rem; }
}
