/* ASG Coaching — shared stylesheet
   Layout concept: a coach's own information pages. White paper, navy ink,
   one readable column, thin rules between sections, prices in plain tables.
   Colours: edit the three token blocks below and nothing else. */

:root {
  --paper: #FFFFFF;
  --wash: #F4F7FA;
  --ink: #102A43;
  --ink-soft: #486581;
  --accent: #486581;
  --line: #D9E2EC;
  --todo: #7A5200;
  --todo-bg: #FFF6E0;
  --todo-line: #D9B15A;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Source Sans 3", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --radius: 4px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0F1B2A;
    --wash: #15253A;
    --ink: #E8EEF4;
    --ink-soft: #A9BBCD;
    --accent: #A9BBCD;
    --line: #2B4058;
    --todo: #F2D08A;
    --todo-bg: #2B2516;
    --todo-line: #7D6427;
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --paper: #0F1B2A;
  --wash: #15253A;
  --ink: #E8EEF4;
  --ink-soft: #A9BBCD;
  --accent: #A9BBCD;
  --line: #2B4058;
  --todo: #F2D08A;
  --todo-bg: #2B2516;
  --todo-line: #7D6427;
  color-scheme: dark;
}

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.125rem;
  line-height: 1.65;
}

body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px);
  background: var(--paper);
  z-index: 10;
}

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

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.005em;
  text-wrap: balance;
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2rem, 4.5vw, 2.75rem); }
h2 { font-size: clamp(1.5rem, 3vw, 1.875rem); }
h3 { font-size: 1.1875rem; }
p, ul, ol, dl { margin: 0 0 1em; }
p:last-child, ul:last-child, ol:last-child, dl:last-child { margin-bottom: 0; }
a { color: var(--ink); text-decoration-color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { text-decoration-thickness: 2px; }
strong { font-weight: 600; }

:where(a, button, summary, input, select, textarea):focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.wrap {
  max-width: 980px;
  margin-inline: auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}
.measure { max-width: 40rem; }
.lede { font-size: 1.25rem; line-height: 1.55; }
.soft { color: var(--ink-soft); }
.small { font-size: 1rem; }

.skip { position: absolute; left: -9999px; top: 0; }
.skip:focus { left: max(16px, env(safe-area-inset-left, 0px)); top: calc(env(safe-area-inset-top, 0px) + .5rem); z-index: 40; background: var(--paper); border: 1px solid var(--ink); padding: .4rem .8rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 20;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .5rem 1.5rem;
  padding-block: .9rem;
}
.lockup { display: flex; align-items: baseline; flex-wrap: wrap; gap: .1rem .6rem; text-decoration: none; margin-right: auto; color: var(--ink); }
.lockup .name { font-family: var(--serif); font-weight: 700; font-size: 1.25rem; }
.lockup .tag { font-size: .9375rem; color: var(--ink-soft); }
.nav-toggle {
  display: none;
  font: 600 .9375rem var(--sans);
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: .4rem .8rem;
  cursor: pointer;
}
.site-nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: .2rem 1.1rem; margin: 0; padding: 0; }
.site-nav a { font-size: .9688rem; color: var(--ink-soft); text-decoration: none; padding-block: .2rem; border-bottom: 1px solid transparent; }
.site-nav a:hover { color: var(--ink); }
.site-nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--ink); }

/* ---------- Page structure ---------- */
.page-intro { padding-block: clamp(2.25rem, 5vw, 3.5rem) clamp(1.5rem, 3vw, 2rem); }
.page-intro .kicker { font-size: .9375rem; color: var(--ink-soft); margin-bottom: .6rem; }
.page-intro p { max-width: 40rem; }

.intro-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
.intro-grid > * { min-width: 0; }
.photo { margin: 0; }
.photo img { width: 100%; border-radius: var(--radius); aspect-ratio: 4 / 3; object-fit: cover; object-position: 55% 35%; }
.photo figcaption { font-size: .875rem; color: var(--ink-soft); margin-top: .45rem; }

.section { padding-block: clamp(2rem, 4.5vw, 3rem); border-top: 1px solid var(--line); }
.section h2 { margin-bottom: .6em; }
.section .sub { color: var(--ink-soft); max-width: 40rem; margin-top: -.25rem; }

.two-col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem 2.5rem; }
.two-col > * { min-width: 0; }

/* Labelled rows: offers, credentials, contact details */
.rows { margin: 0; border-top: 1px solid var(--line); }
.rows > div { display: grid; grid-template-columns: minmax(0, 14rem) minmax(0, 1fr); gap: .25rem 2rem; padding: .9rem 0; border-bottom: 1px solid var(--line); }
.rows dt { font-weight: 600; }
.rows dd { margin: 0; }
.rows dd .soft { display: block; font-size: 1rem; }

/* Plain lists */
.list { padding-left: 1.2rem; }
.list li { margin-bottom: .35rem; }
.list li::marker { color: var(--ink-soft); }
ol.list li::marker { font-weight: 600; color: var(--ink); }

/* Tables */
.table-scroll { overflow-x: auto; margin-bottom: 1rem; }
.table { width: 100%; border-collapse: collapse; font-size: 1.0625rem; font-variant-numeric: tabular-nums; }
.table caption { text-align: left; font-weight: 600; padding-bottom: .5rem; }
.table th, .table td { text-align: left; vertical-align: top; padding: .7rem 1.25rem .7rem 0; border-bottom: 1px solid var(--line); }
.table thead th { font-size: .9375rem; font-weight: 600; color: var(--ink-soft); border-bottom: 1px solid var(--ink-soft); }
.table tbody th { font-weight: 600; }
.table td.num, .table th.num { text-align: right; white-space: nowrap; }
.table td:last-child, .table th:last-child { padding-right: 0; }

.note { background: var(--wash); border-radius: var(--radius); padding: .9rem 1.1rem; font-size: 1.0625rem; max-width: 46rem; }

/* FAQ */
.faq { border-top: 1px solid var(--line); max-width: 46rem; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 600; padding: .85rem 0; }
.faq details > div { padding: 0 0 1rem 1.1rem; color: var(--ink-soft); }

/* Quiet button: used for form submits and one contact action per page */
.btn {
  display: inline-block;
  font: 600 1rem/1.2 var(--sans);
  padding: .7rem 1.15rem;
  border-radius: var(--radius);
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
  cursor: pointer;
}
.btn:hover { background: var(--paper); color: var(--ink); }
.btn--plain { background: var(--paper); color: var(--ink); }
.btn--plain:hover { background: var(--wash); }
.links { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; margin-top: 1rem; }

/* Forms */
.form { display: grid; gap: 1rem; max-width: 40rem; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.field { display: grid; gap: .3rem; min-width: 0; }
.field > label, .fieldset legend { font-weight: 600; font-size: 1rem; }
input, select, textarea {
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: .6rem .7rem;
  width: 100%;
}
textarea { min-height: 7.5rem; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--ink-soft); outline: none; }
.fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.fieldset legend { padding: 0; margin-bottom: .4rem; }
.choices { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 14rem), 1fr)); gap: .3rem 1rem; }
.choice { display: flex; align-items: center; gap: .5rem; font-size: 1rem; cursor: pointer; }
.choice input { width: auto; margin: 0; accent-color: #102A43; }
.form-status { margin: 0; padding: .8rem 1rem; border-radius: var(--radius); font-weight: 600; background: var(--wash); }
.form-status.fail { background: var(--todo-bg); color: var(--todo); border: 1px solid var(--todo-line); }
.hp { position: absolute; left: -9999px; }

/* Placeholders: replace before publishing */
.todo {
  font-size: .92em;
  font-weight: 600;
  color: var(--todo);
  background: var(--todo-bg);
  border: 1px dashed var(--todo-line);
  border-radius: 3px;
  padding: .02em .35em;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}
.slot { border: 1px dashed var(--line); border-radius: var(--radius); padding: 1.25rem; color: var(--ink-soft); max-width: 46rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--wash); border-top: 1px solid var(--line); margin-top: clamp(2rem, 5vw, 3rem); padding-block: 2.25rem 1.75rem; font-size: 1rem; }
.site-footer .cols { display: grid; grid-template-columns: minmax(0, 1.3fr) repeat(2, minmax(0, 1fr)); gap: 1.5rem 2rem; }
.site-footer h2 { font-family: var(--sans); font-size: .9375rem; font-weight: 600; color: var(--ink-soft); margin-bottom: .5rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .3rem; }
.site-footer .fine { margin-top: 1.75rem; padding-top: 1rem; border-top: 1px solid var(--line); color: var(--ink-soft); font-size: .9375rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: .4rem 2rem; }
.site-footer .fine p { margin: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .js .nav-toggle { display: inline-block; }
  .js .site-nav { display: none; width: 100%; }
  .js .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; gap: 0; padding-bottom: .25rem; }
  .site-nav li { border-top: 1px solid var(--line); }
  .site-nav a { display: block; padding: .7rem 0; border-bottom: 0; font-size: 1.0625rem; }
  .site-nav a[aria-current="page"] { font-weight: 600; }
}
@media (max-width: 760px) {
  .intro-grid, .two-col, .site-footer .cols { grid-template-columns: minmax(0, 1fr); }
  .rows > div { grid-template-columns: minmax(0, 1fr); gap: .1rem; }
}
@media (max-width: 560px) {
  body { font-size: 1.0625rem; }
  .form-row { grid-template-columns: minmax(0, 1fr); }
  .lockup { flex-direction: column; gap: 0; }
  .lockup .tag { font-size: .875rem; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* ---------- About: photo collage and story ---------- */
.section--flush { border-top: 0; padding-top: 0; }
.collage {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: clamp(9rem, 17vw, 12.5rem);
  gap: .75rem;
}
.collage--small { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: clamp(8rem, 14vw, 10rem); align-self: start; }
.tile { margin: 0; position: relative; border-radius: var(--radius); overflow: hidden; background: var(--wash); min-width: 0; }
.tile.big { grid-column: span 2; grid-row: span 2; }
.tile.wide { grid-column: span 2; }
.tile img { width: 100%; height: 100%; object-fit: cover; object-position: 55% 35%; }
.tile figcaption {
  position: absolute;
  left: .5rem;
  bottom: .5rem;
  right: .5rem;
  width: fit-content;
  max-width: calc(100% - 1rem);
  background: var(--paper);
  color: var(--ink);
  font-size: .875rem;
  line-height: 1.35;
  padding: .3rem .55rem;
  border-radius: 3px;
}
.slot-tile { border: 1px dashed var(--line); }
.slot-tile > div { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .4rem; color: var(--ink-soft); padding-bottom: 2rem; font-size: .875rem; }
.story p { max-width: 42rem; }
.story p { font-size: 1.1875rem; }
.record { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.record summary { cursor: pointer; font-weight: 600; padding: 1rem 0; font-size: 1.125rem; }
.record > div { padding-bottom: 1.5rem; display: grid; gap: 1.5rem; }
@media (max-width: 760px) {
  .collage { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 9.5rem; }
}
.hello { display: flex; gap: 1.5rem; align-items: center; }
.hello img { width: 7.5rem; height: 7.5rem; object-fit: cover; object-position: 50% 25%; border-radius: 50%; flex: none; }
.hello > div { min-width: 0; }
@media (max-width: 560px) { .hello { flex-direction: column; align-items: flex-start; gap: 1rem; } .hello img { width: 6rem; height: 6rem; } }
.photo--portrait { max-width: 23rem; justify-self: end; width: 100%; }
.photo--portrait img { aspect-ratio: 340 / 410; object-position: 50% 30%; }
@media (max-width: 760px) { .photo--portrait { justify-self: start; } }
.tile.full { grid-column: 1 / -1; grid-row: span 2; }

/* ---------- Home hero with background photo ---------- */
.hero-bg { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); background: var(--paper); }
.hero-photo { position: absolute; inset: 0; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 30% 40%; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(to left, var(--paper) 0%, var(--paper) 40%, transparent 75%); }
.hero-bg .wrap { position: relative; display: flex; justify-content: flex-end; padding-block: clamp(3rem, 7vw, 5rem); }
.hero-text { max-width: 31rem; min-width: 0; }
@media (max-width: 760px) {
  .hero-photo { position: static; }
  .hero-photo img { height: auto; aspect-ratio: 16 / 8; object-position: 30% 40%; }
  .hero-shade { display: none; }
  .hero-bg .wrap { padding-block: 1.75rem 2.25rem; }
}

/* ---------- About collage: one colour portrait, four greyscale crops ---------- */
.collage--about { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: clamp(9rem, 18vw, 13.5rem); }
.tile.portrait { grid-row: span 2; }
@media (max-width: 760px) {
  .collage--about { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 9rem; }
}

/* ---------- Policies page ---------- */
.policy > * { max-width: 46rem; }
.policy > .table-scroll { max-width: 100%; }
.policy h3 { margin-top: 1.5rem; font-size: 1.125rem; }
.policy h2 + p { color: var(--ink-soft); }
