/* ==========================================================================
   Reclaim Your Discipline — shared stylesheet · v1.2 — 2 August 2026

   This ONE file controls how EVERY page looks.
   Change a colour here and it changes everywhere.

   You almost never need to touch this file to change words on the site.
   Words live in the .html files. Looks live here.
   ========================================================================== */


/* --------------------------------------------------------------------------
   1. COLOURS AND FONTS
   Want a different accent colour? Change --blue on the line below.
   -------------------------------------------------------------------------- */

:root {
  --bg:       #0a0a0c;   /* page background, near-black          */
  --surface:  #121215;   /* cards and boxes, slightly lighter    */
  --line:     rgba(255,255,255,.09);  /* thin divider lines      */
  --fg:       #ffffff;   /* main text                            */
  --muted:    #9aa0aa;   /* secondary / grey text                */
  --blue:     #2f6bff;   /* the accent colour                    */
  --blue-dim: #1a2a52;   /* dark blue pill background            */

  --display: 'Anton', 'Oswald', 'Arial Narrow', Impact, sans-serif;
  --body:    'Inter', ui-sans-serif, -apple-system, 'Segoe UI', Helvetica, Arial, sans-serif;
}


/* --------------------------------------------------------------------------
   2. FOUNDATIONS
   -------------------------------------------------------------------------- */

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background-color: var(--bg);
  background-image: radial-gradient(rgba(255,255,255,.055) 1px, transparent 1px);
  background-size: 26px 26px;
  color: var(--fg);
  font-family: var(--body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

.wrap {
  max-width: 76rem;
  margin: 0 auto;
  padding: 0 2rem;
}

.wrap-narrow {
  max-width: 44rem;
  margin: 0 auto;
  padding: 0 2rem;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}


/* --------------------------------------------------------------------------
   3. HEADER / NAVIGATION
   -------------------------------------------------------------------------- */

header {
  border-bottom: 1px solid var(--line);
  background: rgba(10,10,12,.85);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 20;
}

.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: .75rem;
  text-decoration: none;
}

.badge-r {
  width: 2rem;
  height: 2rem;
  flex: none;
  border-radius: 50%;
  background: var(--blue);
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-size: 1.05rem;
  line-height: 1;
  padding-top: 2px;
}

.wordmark {
  font-family: var(--display);
  font-size: 1.15rem;
  letter-spacing: .02em;
  text-transform: uppercase;
  white-space: nowrap;
}

.wordmark span { color: var(--blue); }

nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

nav a {
  text-decoration: none;
  color: var(--muted);
  font-size: 1rem;
  font-weight: 500;
  transition: color .16s ease;
}

nav a:hover,
nav a[aria-current="page"] { color: var(--fg); }

.cta {
  background: var(--blue);
  color: #fff !important;
  padding: .7rem 1.4rem;
  border-radius: 999px;
  font-weight: 600;
  transition: background .16s ease;
}

.cta:hover { background: #4d81ff; }


/* --------------------------------------------------------------------------
   4. HOMEPAGE HERO
   -------------------------------------------------------------------------- */

.hero {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 4rem;
  align-items: center;
  padding: 6.5rem 0 7rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  background: var(--blue-dim);
  color: #7ea3ff;
  border-radius: 999px;
  padding: .55rem 1.2rem;
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue);
}

h1 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2.75rem, 7vw, 5.25rem);
  line-height: .95;
  letter-spacing: .005em;
  text-transform: uppercase;
  margin: 2rem 0 1.75rem;
}

h1 span { color: var(--blue); }

.lede {
  font-size: 1.3rem;
  color: #c8ccd3;
  max-width: 34rem;
  margin: 0 0 1.5rem;
}

.sub {
  font-size: 1.125rem;
  color: var(--muted);
  max-width: 34rem;
  margin: 0;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2.5rem;
}

.btn {
  display: inline-block;
  text-decoration: none;
  padding: .95rem 1.9rem;
  border-radius: .65rem;
  font-weight: 600;
  font-size: 1.0625rem;
  border: 1px solid transparent;
  transition: background .16s ease, border-color .16s ease;
}

.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: #4d81ff; }

.btn-ghost { border-color: rgba(255,255,255,.22); color: var(--fg); }
.btn-ghost:hover { border-color: rgba(255,255,255,.5); background: rgba(255,255,255,.04); }


/* --------------------------------------------------------------------------
   5. RESULTS CARD (and any other boxed panel)
   -------------------------------------------------------------------------- */

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 1.1rem;
  padding: 2.5rem;
}

.card-label {
  color: var(--muted);
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin: 0 0 1.5rem;
}

.big {
  font-family: var(--display);
  font-size: clamp(3.5rem, 8vw, 5rem);
  line-height: .9;
  letter-spacing: .01em;
  margin: 0;
}

.big em {
  font-style: normal;
  font-size: .4em;
  color: var(--blue);
  margin-left: .05em;
}

.big-caption {
  color: var(--muted);
  margin: .85rem 0 0;
  font-size: 1.0625rem;
}

.card hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 2rem 0;
}

.stat {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.5rem;
  padding: .6rem 0;
}

.stat dt {
  color: var(--muted);
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.stat dd {
  margin: 0;
  font-weight: 700;
  font-size: 1.15rem;
  white-space: nowrap;
}

.arrow { color: var(--muted); font-weight: 400; margin: 0 .35rem; }
.to    { color: var(--blue); }

dl { margin: 0; }


/* --------------------------------------------------------------------------
   6. INTERIOR PAGE HEADERS (About, Blog, individual posts)
   -------------------------------------------------------------------------- */

.page-head {
  padding: 4.5rem 0 2.5rem;
}

.page-head h1 {
  font-size: clamp(2.25rem, 6vw, 3.75rem);
  margin: 1.25rem 0 0;
}

.page-head .kicker {
  color: var(--blue);
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin: 0;
}

.page-head .standfirst {
  color: var(--muted);
  font-size: 1.1875rem;
  margin: 1.25rem 0 0;
  max-width: 40rem;
}


/* --------------------------------------------------------------------------
   7. ARTICLE TEXT
   Wrap any long-form writing in <div class="prose"> ... </div>
   -------------------------------------------------------------------------- */

.prose {
  font-size: 1.125rem;
  color: #ccd0d7;
  padding-bottom: 4rem;
}

.prose p { margin: 0 0 1.5rem; }

.prose h2 {
  font-family: var(--display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: .01em;
  color: var(--fg);
  font-size: 1.9rem;
  line-height: 1.1;
  margin: 3rem 0 1.25rem;
}

.prose h3 {
  color: var(--fg);
  font-size: 1.25rem;
  font-weight: 700;
  margin: 2.25rem 0 .75rem;
}

.prose ul, .prose ol { margin: 0 0 1.5rem; padding-left: 1.35rem; }
.prose li { margin-bottom: .6rem; }

.prose strong { color: var(--fg); font-weight: 600; }

.prose a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.prose a:hover { color: #6f97ff; }

.prose blockquote {
  margin: 2rem 0;
  padding: .25rem 0 .25rem 1.5rem;
  border-left: 3px solid var(--blue);
  color: var(--fg);
  font-size: 1.2rem;
}

.prose hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 3rem 0;
}

.prose img {
  max-width: 100%;
  height: auto;
  border-radius: .65rem;
  margin: 2rem 0;
}

/* simple data table for bloodwork etc. */
.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  font-size: 1rem;
}

.prose th {
  text-align: left;
  color: var(--muted);
  font-size: .75rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .75rem 0;
  border-bottom: 1px solid var(--line);
}

.prose td {
  padding: .85rem 0;
  border-bottom: 1px solid var(--line);
}

/* wide tables scroll sideways on phones instead of squashing */
.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 2rem 0;
}

.table-scroll table { margin: 0; min-width: 30rem; }

.prose .table-scroll th,
.prose .table-scroll td { padding-right: 1.25rem; white-space: nowrap; }

.prose .table-scroll td:first-child { white-space: normal; }

/* small "H" chip the lab uses to flag a high result */
.flag {
  display: inline-block;
  font-size: .6875rem;
  font-weight: 700;
  line-height: 1;
  padding: .2rem .35rem;
  border-radius: .25rem;
  background: rgba(255,255,255,.09);
  color: var(--muted);
  vertical-align: middle;
}

/* improvement highlighted in the accent colour */
.prose .better { color: var(--blue); font-weight: 600; }

.prose .table-note {
  font-size: .875rem;
  color: var(--muted);
  margin-top: -.75rem;
}


/* --------------------------------------------------------------------------
   8. BLOG POST LIST
   -------------------------------------------------------------------------- */

.posts {
  list-style: none;
  margin: 0;
  padding: 0 0 4rem;
}

.posts li { border-top: 1px solid var(--line); }
.posts li:last-child { border-bottom: 1px solid var(--line); }

.post-link {
  display: block;
  text-decoration: none;
  padding: 2rem 0;
  transition: background .16s ease;
}

.post-link:hover { background: rgba(255,255,255,.025); }

.post-date {
  color: var(--muted);
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.post-title {
  font-family: var(--display);
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(1.5rem, 3.5vw, 2.1rem);
  line-height: 1.1;
  margin: .6rem 0 .65rem;
  color: var(--fg);
}

.post-link:hover .post-title { color: var(--blue); }

.post-excerpt {
  color: var(--muted);
  margin: 0;
  max-width: 44rem;
}

.empty {
  border: 1px dashed var(--line);
  border-radius: 1rem;
  padding: 3.5rem 2rem;
  text-align: center;
  color: var(--muted);
  margin-bottom: 4rem;
}


/* --------------------------------------------------------------------------
   9. BACK LINK
   -------------------------------------------------------------------------- */

.back {
  display: inline-block;
  color: var(--muted);
  text-decoration: none;
  font-size: .9375rem;
  font-weight: 500;
  margin-bottom: 2.5rem;
  transition: color .16s ease;
}

.back:hover { color: var(--fg); }


/* --------------------------------------------------------------------------
   10. FOOTER
   -------------------------------------------------------------------------- */

footer {
  border-top: 1px solid var(--line);
  padding: 2.5rem 0;
  color: var(--muted);
  font-size: .9375rem;
}

.foot {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  justify-content: space-between;
  align-items: center;
}

.disclaimer {
  max-width: 46rem;
  margin: 1.5rem 0 0;
  font-size: .8125rem;
  color: #6c727c;
  line-height: 1.6;
}

/* social icon row in the footer */
.socials {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.socials a {
  display: inline-flex;
  color: var(--muted);
  transition: color .16s ease, transform .16s ease;
}

.socials a:hover {
  color: var(--blue);
  transform: translateY(-1px);
}

.socials svg {
  width: 20px;
  height: 20px;
  display: block;
}


/* --------------------------------------------------------------------------
   11. SMALL SCREENS
   -------------------------------------------------------------------------- */

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 3rem;
    padding: 3.5rem 0 4rem;
  }
  .wrap, .wrap-narrow { padding: 0 1.25rem; }
  .bar { flex-wrap: wrap; }
  nav { gap: 1.25rem; font-size: .9375rem; }
  .cta { padding: .6rem 1.1rem; }
  .wordmark { font-size: 1rem; }
  .card { padding: 1.75rem; }
  .lede { font-size: 1.15rem; }
  .page-head { padding: 3rem 0 2rem; }
}

@media (max-width: 460px) {
  nav a:not(.cta) { font-size: .875rem; }
  .actions .btn { flex: 1 1 100%; text-align: center; }
}
