:root {
  --paper: #ffffff;
  --mist: #f3f5f7;
  --wash: #f7f7e4;
  --ink: #1c2531;
  --slate-mid: #273342;
  --body: #46505c;
  --muted: #5d6875;
  --line: #dce2e8;
  --line-dark: #334254;
  --line-wash: #e2e1c2;
  --chartreuse: #c8c600;
  --chartreuse-hover: #b5b300;
  --chartreuse-mark: #eae86b;
  --olive: #595800;
  --olive-hover: #3f3e00;
  --on-dark: #cfd8e3;
  --radius: 8px;
  --display: "Bricolage Grotesque", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --sans: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Type scale for text. Display headings (h1, h2) stay fluid. */
  --step--2: 0.82rem;   /* labels, meta, footer */
  --step--1: 0.95rem;   /* card and secondary copy */
  --step-0: 1.0625rem;  /* body */
  --step-1: 1.1875rem;  /* lead, h3, article body */
  --step-2: 1.45rem;    /* small headings */
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 6rem; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--body);
  font: 400 var(--step-0)/1.68 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, figure, dl { margin: 0; }

h1, h2, h3 {
  font-family: var(--display);
  color: var(--ink);
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.15rem, 4.5vw, 3.7rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.08;
}

h2 {
  font-size: clamp(1.85rem, 3.2vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.12;
}

h3 {
  font-size: var(--step-1);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.32;
}

p + p { margin-top: 1rem; }
strong { color: var(--ink); font-weight: 600; }

a {
  color: var(--olive);
  text-underline-offset: 0.24em;
  text-decoration-thickness: 1px;
}
a:hover { color: var(--olive-hover); text-decoration-thickness: 2px; }

:focus-visible {
  outline: 3px solid var(--olive);
  outline-offset: 4px;
  border-radius: 2px;
}

::selection {
  background: var(--chartreuse-mark);
  color: var(--ink);
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -6rem;
  z-index: 30;
  padding: 0.85rem 1.2rem;
  background: var(--ink);
  color: var(--chartreuse);
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius);
}
.skip-link:focus { top: 1rem; }
.skip-link:hover { color: var(--chartreuse); }

/* Layout primitives */
.wrap {
  width: min(100% - 3rem, 72rem);
  margin-inline: auto;
}

.section {
  padding-block: clamp(4rem, 7vw, 6rem);
}

/* A narrow column beside a wide one; stacks when there is no room for both. */
.sidebar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 1.75rem 4rem;
}
.sidebar > :first-child { flex: 1 1 14rem; }
.sidebar > :last-child { flex: 1.7 1 26rem; min-width: 0; }

/* Two equal halves; stacks when there is no room for both. */
.split {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem 4rem;
}
.split > * { flex: 1 1 20rem; min-width: 0; }

.lead {
  font-size: var(--step-1);
  line-height: 1.65;
}

.section-heading {
  max-width: 42rem;
  margin-bottom: 3rem;
}
.section-heading > p { margin-top: 1rem; }
.sidebar > .section-heading { margin-bottom: 0; }


/* Buttons */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 0.9rem 1.55rem;
  background: var(--chartreuse);
  color: var(--ink);
  border: 1px solid var(--chartreuse);
  border-radius: var(--radius);
  font-family: var(--sans);
  font-size: var(--step--1);
  font-weight: 600;
  text-decoration: none;
  line-height: 1.2;
  transition: background-color 140ms ease, border-color 140ms ease;
}
.button:hover {
  background: var(--chartreuse-hover);
  border-color: var(--chartreuse-hover);
  color: var(--ink);
}

.button-ink {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
  padding: 0.62rem 1.1rem;
  font-size: var(--step--2);
}
.button-ink:hover {
  background: var(--slate-mid);
  border-color: var(--slate-mid);
  color: var(--paper);
}

.text-link {
  font-size: var(--step--1);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

/* Header & Wordmark */
.wordmark {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: none;
}

.header-bar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.site-header {
  padding-block: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.site-header nav {
  display: flex;
  gap: 1.75rem;
  align-items: center;
  font-size: var(--step--1);
  font-weight: 500;
  margin-left: auto;
}
.site-header nav a {
  color: var(--body);
  text-decoration: none;
}
.site-header nav a:hover {
  color: var(--ink);
  text-decoration: underline;
}

/* Hero */
.hero-surface {
  background: radial-gradient(ellipse 65% 70% at 88% 20%, var(--wash), transparent 72%), var(--paper);
  border-bottom: 1px solid var(--line);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.38fr) minmax(0, 0.92fr);
  align-items: center;
  gap: 3.5rem;
  padding-block: clamp(3.5rem, 6.5vw, 5.5rem);
}

.typepad {
  display: block;
  min-height: 1.22em;
  margin-top: 0.06em;
  white-space: nowrap;
}

.typepad-highlight {
  display: inline;
  color: var(--ink);
  box-shadow: inset 0 -0.34em 0 var(--chartreuse-mark);
  padding-inline: 0.04em;
}

/* The hero's highlighter, reused only on the owner's signature lines */
.mark {
  background: linear-gradient(transparent calc(100% - 0.34em), var(--chartreuse-mark) 0);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  padding-inline: 0.04em;
  color: var(--ink);
}

.typed-cursor {
  color: var(--olive);
  font-weight: 400;
}

.hero .lead {
  margin-top: 1.75rem;
  max-width: 33rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem;
  margin-top: 2rem;
}

/* Compact profile panel */
.profile-panel {
  width: 100%;
  max-width: 26rem;
  justify-self: end;
  padding-left: 2.25rem;
  border-left: 2px solid var(--ink);
}

.profile-identity {
  display: grid;
  grid-template-columns: 5.25rem minmax(0, 1fr);
  gap: 1.15rem;
  align-items: center;
}

.profile-identity img {
  width: 5.25rem;
  height: 5.25rem;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--paper);
  box-shadow: 0 0 0 1px var(--line);
}

.profile-identity h2 {
  font-size: var(--step-2);
  letter-spacing: -0.025em;
  text-wrap: initial;
}

.profile-identity p {
  margin-top: 0.3rem;
  font-size: var(--step--1);
  line-height: 1.45;
  color: var(--muted);
}

.profile-facts { margin-top: 1.5rem; }

.profile-facts > div {
  display: grid;
  grid-template-columns: 5.25rem minmax(0, 1fr);
  gap: 0.85rem;
  padding-block: 0.7rem;
  border-top: 1px solid var(--line);
}

.profile-facts dt {
  font-size: var(--step--2);
  font-weight: 600;
  color: var(--muted);
  padding-top: 0.1rem;
}

.profile-facts dd {
  margin: 0;
  color: var(--ink);
  font-size: var(--step--1);
  line-height: 1.55;
}

.profile-footer {
  border-top: 1px solid var(--line);
  padding-top: 0.9rem;
  margin-top: 0.15rem;
}

.profile-footer p {
  color: var(--muted);
  font-size: var(--step--2);
}

.profile-links {
  display: flex;
  gap: 1.25rem;
  margin-top: 0.35rem;
}

.profile-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 44px;
  font-size: var(--step--2);
  font-weight: 600;
}

.social-icon {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
}

/* Dark surfaces: shared contrast and focus */
.dark-band {
  background: var(--ink);
  color: var(--on-dark);
}
.dark-band h2,
.dark-band h3,
.dark-band strong {
  color: var(--paper);
}
.dark-band a:not(.button) { color: var(--chartreuse); }
.dark-band a:not(.button):hover { color: var(--chartreuse-mark); }
.dark-band :focus-visible { outline-color: var(--chartreuse); }

/* Situations */
.situations {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr));
  gap: 2.5rem 3.5rem;
  border-top: 1px solid var(--line-dark);
  padding-top: 2.5rem;
}

.situations article {
  position: relative;
  padding-top: 1.1rem;
}

.situations article::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 2.25rem;
  height: 3px;
  background: var(--chartreuse);
}

.situations h3 { margin-bottom: 0.7rem; }
.situations p { max-width: 34rem; font-size: var(--step--1); }

/* How I help: three offers and the SportsKey proof */
.offers {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.offer {
  flex: 1 1 16rem;
  display: flex;
  flex-direction: column;
  padding: 1.85rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: var(--step--1);
}

.offer-illustration {
  width: min(100%, 9.75rem);
  height: auto;
  margin-bottom: 1.4rem;
}

.offer-tag {
  font-size: var(--step--2);
  font-weight: 600;
  color: var(--olive);
  margin-bottom: 0.35rem;
}

.offer h3 { margin-bottom: 0.85rem; }
.offer h3 + p { margin-bottom: 1.5rem; }

.offer .deliverable {
  padding-top: 1rem;
  margin-top: auto;
  border-top: 1px solid var(--line);
}

.deliverable strong {
  display: block;
  margin-bottom: 0.2rem;
}

.offer.ongoing {
  background: var(--ink);
  color: var(--on-dark);
  border-color: var(--ink);
}
.offer.ongoing .offer-tag { color: var(--chartreuse); }
.offer.ongoing h3,
.offer.ongoing strong { color: var(--paper); }
.offer.ongoing .deliverable { border-color: var(--line-dark); }

.audit-proof {
  max-width: 48rem;
  margin-top: 2.5rem;
  padding: 1.25rem 1.5rem;
  background: var(--wash);
  border-left: 4px solid var(--chartreuse);
  color: var(--ink);
  font-size: var(--step--1);
}

.offer-contact { margin-top: 1rem; }

/* Working together */
.working-together {
  background: var(--mist);
  border-block: 1px solid var(--line);
}

.working-steps {
  list-style: none;
  margin: 0;
  padding: 2rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
  border-top: 1px solid var(--line);
}

.working-steps li { flex: 1 1 15rem; }

.step-number {
  display: inline-block;
  font-family: var(--display);
  font-size: 1.9rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--olive);
  margin-bottom: 0.85rem;
}

.working-steps h3 { margin-bottom: 0.6rem; }
.working-steps p { font-size: var(--step--1); max-width: 24rem; }

.handover {
  padding-top: 2.75rem;
  margin-top: 3rem;
  border-top: 1px solid var(--line);
}

.handover h3 {
  font-size: clamp(1.55rem, 2.5vw, 2.05rem);
  line-height: 1.18;
  letter-spacing: -0.03em;
}

.handover p { max-width: 36rem; }

.ai-note {
  margin-top: 2.5rem;
  padding: 1.75rem 2rem;
  background: var(--paper);
  border-left: 4px solid var(--ink);
}

.ai-note p { font-size: var(--step--1); max-width: 38rem; }

/* Ownership */
.ownership {
  background: var(--wash);
  border-bottom: 1px solid var(--line-wash);
}

.ownership h2 { margin-bottom: 1.5rem; }

.ownership .lead {
  color: var(--ink);
  font-weight: 500;
}

.ownership-copy p { max-width: 34rem; }

.ownership-record {
  background: var(--paper);
  border: 1px solid var(--line-wash);
  border-top: 4px solid var(--ink);
  border-radius: var(--radius);
  padding: 1.85rem 2rem;
}

.record-heading { padding-bottom: 1rem; }

.ownership-record dl > div {
  border-top: 1px solid var(--line);
  padding-block: 1rem;
}

.ownership-record dt {
  color: var(--ink);
  font-weight: 600;
}

.ownership-record dd {
  margin: 0.3rem 0 0;
  font-size: var(--step--1);
  line-height: 1.62;
}

.record-footer {
  color: var(--olive);
  border-top: 1px solid var(--line);
  padding-top: 1rem;
  font-size: var(--step--2);
  font-weight: 600;
}

/* Guides */
.guides-section {
  background: var(--mist);
  border-block: 1px solid var(--line);
}

.guide-list {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid var(--line);
}

.guide-list li { border-bottom: 1px solid var(--line); }

.guide-list a {
  display: block;
  padding-block: 1.35rem;
  color: var(--body);
  text-decoration: none;
}

.guide-list h3 {
  text-decoration: underline;
  text-decoration-color: var(--chartreuse);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.22em;
  transition: color 120ms ease;
}

.guide-list a:hover h3 { color: var(--olive); }

.guide-list p {
  margin-top: 0.45rem;
  font-size: var(--step--1);
  max-width: 40rem;
}

/* Readable line length for text beside a heading */
.prose > * { max-width: 38rem; }

/* FAQ */
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list details:first-child { border-top: 1px solid var(--line); }

.faq-list summary {
  cursor: pointer;
  color: var(--ink);
  font-weight: 600;
  padding: 1.15rem 2.25rem 1.15rem 0;
  position: relative;
  list-style: none;
  line-height: 1.5;
}

.faq-list summary::-webkit-details-marker { display: none; }

.faq-list summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 0.95rem;
  font-family: var(--display);
  font-size: var(--step-2);
  font-weight: 600;
  color: var(--olive);
  line-height: 1;
}

.faq-list details[open] summary::after { content: "\2212"; }

.faq-list details p {
  padding-bottom: 1.35rem;
  max-width: 40rem;
}

/* Contact */
.contact-layout { align-items: center; justify-content: space-between; }
.contact-layout h2 { margin-bottom: 1.15rem; }
.contact-layout p { max-width: 33rem; }

.contact-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.85rem;
}
.split > .contact-actions { flex: 0 0 auto; }

/* Footer */
.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1.25rem 2rem;
  padding-block: 2.5rem;
}

.site-footer p {
  margin-top: 0.5rem;
  font-size: var(--step--2);
  color: var(--muted);
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  font-size: var(--step--2);
}

.site-footer nav a {
  color: var(--body);
  text-decoration: none;
}
.site-footer nav a:hover {
  color: var(--ink);
  text-decoration: underline;
}

/* Responsive: only what intrinsic layout can't handle */
@media (max-width: 62rem) {
  .site-header { gap: 1rem; }
  .site-header nav { gap: 1.2rem; }
  .hero { gap: 2.5rem; grid-template-columns: 1.25fr 1fr; }
  .profile-panel { padding-left: 1.5rem; }
  .offer { padding: 1.4rem; }
}

@media (max-width: 48rem) {
  html { scroll-padding-top: 8.5rem; }
  .wrap { width: min(100% - 2.25rem, 72rem); }

  .site-header {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.45rem 1rem;
    padding-block: 0.85rem 0.45rem;
  }
  .site-header nav {
    grid-column: 1 / -1;
    grid-row: 2;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.25rem;
    width: 100%;
    margin-left: 0;
    font-size: var(--step--2);
  }
  .site-header nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    text-align: center;
  }
  .site-header > .button-ink {
    grid-column: 2;
    grid-row: 1;
    min-height: 44px;
    white-space: nowrap;
  }

  .hero {
    grid-template-columns: 1fr;
    padding-block: 2.75rem 3.25rem;
  }


  .profile-panel {
    justify-self: start;
    max-width: 100%;
    padding-left: 0;
    padding-top: 1.75rem;
    border-left: 0;
    border-top: 2px solid var(--ink);
  }

  .section-heading { margin-bottom: 2rem; }

  .situations { gap: 2rem; padding-top: 2rem; }
  .working-steps { gap: 1.75rem; }
  .working-steps li {
    display: grid;
    grid-template-columns: 2.75rem minmax(0, 1fr);
    gap: 0.75rem;
  }
  .step-number { margin-bottom: 0; font-size: 1.5rem; }
  .handover { padding-top: 2rem; margin-top: 2rem; }
  .ai-note { padding: 1.4rem; }
  .ownership-record { padding: 1.4rem; }
}

@media (max-width: 24rem) {
  .wrap { width: min(100% - 1.75rem, 72rem); }
  .typepad { white-space: normal; }
  .profile-identity { grid-template-columns: 4.25rem minmax(0, 1fr); gap: 0.9rem; }
  .profile-identity img { width: 4.25rem; height: 4.25rem; }
  .profile-facts > div { grid-template-columns: 1fr; gap: 0.2rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Article pages: guides, privacy policy, 404 */
.reading-width { width: min(100% - 3rem, 42rem); margin-inline: auto; }
.guide-header { padding-block: 3.5rem 2.5rem; margin-bottom: 2.5rem; border-bottom: 1px solid var(--line); }
.guide-back { display: inline-flex; align-items: center; gap: .4rem; min-height: 44px; margin-bottom: 1.25rem; font-size: var(--step--1); font-weight: 600; }
.guide-header h1 { font-size: clamp(2.15rem, 4.8vw, 3.4rem); }
.guide-byline { margin-top: 1.25rem; font-size: var(--step--1); color: var(--muted); }
.guide-body { color: var(--ink); font-size: var(--step-1); line-height: 1.8; overflow-wrap: anywhere; }
.guide-body > * + * { margin-top: 1.25rem; }
.guide-body h2 { font-size: clamp(1.5rem, 3vw, 1.95rem); line-height: 1.22; letter-spacing: -.025em; margin-top: 2.75rem; }
.guide-body ul, .guide-body ol { padding-left: 1.5rem; }
.guide-body li + li { margin-top: .65rem; }
.guide-body blockquote { margin-inline: 0; padding: 1.25rem 1.5rem; border-left: 4px solid var(--chartreuse); background: var(--wash); }
.guide-body table { width: 100%; border-collapse: collapse; font-size: var(--step--1); line-height: 1.6; }
.guide-body th, .guide-body td { padding: .85rem; border: 1px solid var(--line); vertical-align: top; text-align: left; }
.guide-body th:first-child, .guide-body td:first-child { width: 35%; }
.guide-body th { background: var(--mist); font-weight: 600; }
.guide-help { margin-top: 3.5rem; padding: 1.75rem 2rem; border-radius: var(--radius); }
.guide-help h2 { font-size: var(--step-2); line-height: 1.3; }
.guide-help p { margin-top: .6rem; }
.guide-related { padding-block: 3rem 4rem; }
.guide-related h2 { font-size: var(--step-2); margin-bottom: 1rem; }
.guide-related ul { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.guide-related li { border-bottom: 1px solid var(--line); }
.guide-related a { display: block; padding-block: .9rem; color: var(--ink); font-weight: 600; text-decoration-color: var(--chartreuse); text-decoration-thickness: 2px; }
.guide-related a:hover { color: var(--olive); }
.not-found { padding-block: 3.5rem 4rem; }
.not-found p { margin-top: 1.25rem; color: var(--muted); }
.article-page .site-footer { border-top: 1px solid var(--line); }

@media (max-width: 48rem) {
  .reading-width { width: min(100% - 2.25rem, 42rem); }
  .guide-header { padding-block: 2rem; margin-bottom: 2rem; }
  .guide-body { font-size: var(--step-0); }
  .guide-body th, .guide-body td { padding: .65rem; }
  .guide-help { padding: 1.5rem; }
}

@media print {
  .header-bar, .guide-back, .guide-help, .guide-related, .site-footer { display: none; }
  .reading-width { width: 100%; }
  .guide-header { padding-top: 0; }
  .guide-body { font-size: 11pt; }
  .guide-body h2 { break-after: avoid; }
}
