/* ============================================================
   Negative Split Running: additional pages
   Notes index, note articles, Marathon page.
   Loads after style.css and reuses its colour tokens.
   ============================================================ */

/* Anchor links land below the sticky header rather than under it */
section[id], [id] { scroll-margin-top: 96px; }

/* Current page in the nav */
.nav-list a[aria-current="page"] {
  border-bottom: 1.5px solid var(--ink);
  padding-bottom: 3px;
}

/* Keyboard focus that is actually visible */
a:focus-visible, summary:focus-visible, .btn:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 4px;
}

/* ============================================================
   NOTES INDEX
   ============================================================ */
.notes-hero {
  padding: 6rem 2.5rem 3rem;
  background: var(--cream);
}
.notes-hero-inner { max-width: 1200px; margin: 0 auto; }

.notes-heading {
  font-family: 'Inter', sans-serif;
  font-weight: 900;
  font-size: clamp(5rem, 19vw, 16rem);
  line-height: 0.82;
  letter-spacing: -0.055em;
  text-transform: uppercase;
  color: var(--ink);
  margin-left: -0.04em;
}

.notes-intro {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: clamp(1.35rem, 2.4vw, 1.9rem);
  line-height: 1.3;
  color: var(--ink);
  max-width: 34ch;
  margin-top: 2rem;
}

.notes-index {
  padding: 1rem 2.5rem 7rem;
  background: var(--cream);
}

.notes-list {
  list-style: none;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0;
  border-top: 2px solid var(--ink);
}

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

.notes-list a {
  display: grid;
  grid-template-columns: 9rem 1fr;
  grid-template-areas:
    "topic title"
    "topic standfirst";
  column-gap: 2.5rem;
  row-gap: 0.5rem;
  padding: 2rem 0;
  text-decoration: none;
  color: var(--ink);
}

.nl-topic {
  grid-area: topic;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding-top: 0.45rem;
}

.nl-title {
  grid-area: title;
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: clamp(1.25rem, 2.4vw, 1.9rem);
  line-height: 1.12;
  letter-spacing: -0.015em;
  text-transform: uppercase;
  max-width: 30ch;
}

.nl-standfirst {
  grid-area: standfirst;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.2rem;
  line-height: 1.4;
  color: var(--ink-soft);
  max-width: 60ch;
}

.notes-list a:hover .nl-title {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

/* Compact variant for "more notes" and further reading */
.notes-list.compact { border-top: 1px solid var(--ink); }
.notes-list.compact a { padding: 1.4rem 0; }
.notes-list.compact .nl-title { font-size: 1.05rem; max-width: none; }
.notes-list.compact .nl-standfirst { font-size: 1.05rem; }

/* ============================================================
   NOTE ARTICLE
   ============================================================ */
.note {
  background: var(--cream);
  padding: 5rem 2.5rem 4rem;
}

.note-head,
.note-body,
.note-coach {
  max-width: 44rem;
  margin-left: auto;
  margin-right: auto;
}

.note-head { margin-bottom: 3.5rem; }

.note-back {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  border-bottom: 1.5px solid var(--ink);
  padding-bottom: 3px;
  margin-bottom: 3rem;
}
.note-back::before { content: '\2190\00a0'; }

.note-topic {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 1rem;
}

.note-title {
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1.02;
  letter-spacing: -0.025em;
  text-transform: uppercase;
  color: var(--ink);
}

.note-standfirst {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: clamp(1.3rem, 2.4vw, 1.65rem);
  line-height: 1.35;
  color: var(--ink);
  margin-top: 1.5rem;
}

.note-byline {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--rule);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* Long-form body: sized for reading, around 70 characters a line */
.note-body {
  font-size: 1.1rem;
  line-height: 1.75;
  color: var(--ink);
}
.note-body > * + * { margin-top: 1.4rem; }
.note-body a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.note-body a:hover { text-decoration-thickness: 2px; }

.note-body h2 {
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-top: 3.2rem;
}

.note-body ul,
.note-body ol { padding-left: 1.3rem; }
.note-body li + li { margin-top: 0.5rem; }

.note-body blockquote {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.6rem;
  line-height: 1.35;
  border-left: 3px solid var(--ink);
  padding-left: 1.5rem;
  margin-top: 2rem;
  margin-bottom: 2rem;
}

/* Glossary definition lists */
.note-body dl { margin-top: 2.5rem; }
.note-body dt {
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding-top: 1.4rem;
  border-top: 1px solid var(--rule);
}
.note-body dd {
  margin: 0.5rem 0 1.4rem;
  color: var(--ink-soft);
}

.note-figure { margin: 2.5rem 0; }
.note-figure img { width: 100%; height: auto; }
.note-figure figcaption {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.05rem;
  color: var(--ink-soft);
  margin-top: 0.7rem;
}

.note-coach {
  margin-top: 4.5rem;
  padding: 2.5rem;
  background: var(--ink);
  color: var(--cream);
}
.note-coach p {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.45rem;
  line-height: 1.35;
  margin-bottom: 1.5rem;
}
.note-coach .btn {
  background: var(--cream);
  color: var(--ink);
  border-color: var(--cream);
}
.note-coach .btn:hover { background: transparent; color: var(--cream); }

.note-more {
  background: var(--cream-deep);
  padding: 5rem 2.5rem;
}
.note-more-inner { max-width: 1200px; margin: 0 auto; }
.note-more-title {
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

/* ============================================================
   MARATHON PAGE
   ============================================================ */
.m-hero {
  background: var(--cream);
  padding: 5.5rem 2.5rem 6rem;
}
.m-hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 5rem;
  align-items: start;
}

.m-hero .tag {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 2rem;
}

.m-hero h1 { margin-bottom: 3rem; }
.m-h1-main {
  display: block;
  font-family: 'Inter', sans-serif;
  font-weight: 900;
  font-size: clamp(2.8rem, 7vw, 5.8rem);
  line-height: 0.9;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  color: var(--ink);
}
.m-hero h1 .accent {
  display: block;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.7rem, 3.4vw, 2.7rem);
  line-height: 1.1;
  margin-top: 0.8rem;
  color: var(--ink);
}

.m-statement {
  max-width: 38rem;
  border-left: 3px solid var(--ink);
  padding-left: 1.8rem;
}
.m-statement p {
  font-size: 1.08rem;
  line-height: 1.75;
  color: var(--ink);
}
.m-statement p + p { margin-top: 1.2rem; }
.m-statement .m-lead {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: clamp(1.45rem, 2.3vw, 1.8rem);
  line-height: 1.3;
}

.m-hero-actions { margin-top: 2.5rem; }

.m-hero-photo {
  aspect-ratio: 4 / 5.4;
  background-image: url('/assets/images/about-tom.jpg');
  background-size: cover;
  background-position: center top;
  position: sticky;
  top: 110px;
}

/* The block: five stages, a real sequence */
.m-phases {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 2px solid var(--ink);
}
.m-phases li {
  display: grid;
  grid-template-columns: 8rem 1fr;
  gap: 2rem;
  padding: 2.4rem 0;
  border-bottom: 1px solid var(--rule);
}
.m-phase-num {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 3.4rem;
  line-height: 0.9;
  color: var(--ink);
}
.m-phases h3 {
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin-bottom: 0.8rem;
}
.m-phases p {
  font-size: 1.02rem;
  line-height: 1.7;
  color: var(--ink-soft);
  max-width: 44rem;
}

/* Who it's for */
.m-audience {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
}
.m-audience h3 {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 500;
  font-size: 2rem;
  line-height: 1.1;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--ink);
}
.m-audience p {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink-soft);
}
.m-audience a { color: var(--ink); text-underline-offset: 3px; }

/* When to start */
.m-when {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 4rem;
  align-items: start;
}
.m-when-text p {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--ink);
}
.m-when-text p + p { margin-top: 1.2rem; }

.m-months {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 4px;
  align-items: end;
}
.m-month {
  height: 150px;
  display: flex;
  align-items: flex-end;
  padding: 0.6rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.m-month.talk  { background: transparent; border: 1.5px solid var(--ink); color: var(--ink); }
.m-month.base  { background: rgba(26, 26, 26, 0.18); color: var(--ink); }
.m-month.block { background: var(--ink-soft); color: var(--cream); }
.m-month.race  { background: var(--ink); color: var(--cream); height: 190px; }

.m-months-key {
  grid-column: 1 / -1;
  align-self: start;
  display: flex;
  flex-wrap: wrap;
  gap: 1.4rem;
  margin-top: 1.2rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.m-months-key .k::before {
  content: '';
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-right: 0.5rem;
  vertical-align: -1px;
}
.m-months-key .k.talk::before  { border: 1.5px solid var(--ink); }
.m-months-key .k.base::before  { background: rgba(26, 26, 26, 0.18); }
.m-months-key .k.block::before { background: var(--ink-soft); }
.m-months-key .k.race::before  { background: var(--ink); }

/* Two-up offering cards */
.offerings.two { grid-template-columns: repeat(2, 1fr); }

.m-reading { padding-top: 0; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 960px) {
  .notes-hero { padding: 4rem 1.5rem 2rem; }
  .notes-index { padding: 0.5rem 1.5rem 5rem; }
  .note { padding: 3.5rem 1.5rem 3rem; }
  .note-more { padding: 4rem 1.5rem; }

  .m-hero { padding: 4rem 1.5rem 4.5rem; }
  .m-hero-inner { grid-template-columns: 1fr; gap: 3rem; }
  .m-hero-photo { position: static; max-width: 480px; width: 100%; aspect-ratio: 4 / 5; }
  .m-audience { grid-template-columns: 1fr; gap: 2.5rem; }
  .m-when { grid-template-columns: 1fr; gap: 2.5rem; }
  .offerings.two { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .notes-list a {
    grid-template-columns: 1fr;
    grid-template-areas: "topic" "title" "standfirst";
    row-gap: 0.4rem;
    padding: 1.6rem 0;
  }
  .nl-topic { padding-top: 0; }

  .note-body { font-size: 1.04rem; }
  .note-coach { padding: 1.8rem; }

  .m-statement { padding-left: 1.2rem; }
  .m-phases li { grid-template-columns: 1fr; gap: 0.6rem; padding: 2rem 0; }
  .m-phase-num { font-size: 2.6rem; }
  .m-month { height: 110px; padding: 0.35rem; font-size: 0.58rem; letter-spacing: 0.08em; }
  .m-month.race { height: 140px; }
}

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

/* Tables in notes (e.g. training weeks) */
.note-body table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  line-height: 1.45;
  margin: 2.2rem 0;
  border-top: 2px solid var(--ink);
}
.note-body th,
.note-body td {
  text-align: left;
  vertical-align: top;
  padding: 0.75rem 1rem 0.75rem 0;
  border-bottom: 1px solid var(--rule);
}
.note-body th {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.note-body td:first-child { font-weight: 600; white-space: nowrap; }
.note-body tr:last-child td { border-bottom: 2px solid var(--ink); }

@media (max-width: 600px) {
  .note-body table { display: block; overflow-x: auto; font-size: 0.88rem; }
  .note-body td { min-width: 9rem; }
  .note-body td:first-child { min-width: 0; }
}
