
/*
Theme Name: Axiogenics
Theme URI: https://www.axiogenics.com/
Author: Axiogenics
Description: Small custom theme for axiogenics.com. One stylesheet, header and footer in the theme, page bodies written as plain HTML.
Version: 0.1.0
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: axiogenics
*/

/* ==========================================================================
   AXIOGENICS — the one shared stylesheet
   Change a brand value here and it changes everywhere.
   Layout idea: black bands carry the brand; white bands carry the reading.
   Left-aligned, one statement per band, gold as the only accent.
   Single theme by choice: the brand is black, white and gold.
   ========================================================================== */
:root {
  color-scheme: light;

  /* Brand */
  --black: #000000;
  --white: #ffffff;
  --gold: #FFC000;          /* A-Game. The one accent. */
  --grey: #7F7F7F;          /* B-Game. */
  --ink: #1c1b1a;           /* reading text on white */
  --paper: #f6f4ee;         /* quiet band, biased slightly toward the gold */
  --navy: #201F88;          /* links on white, science band */

  /* Palette colors with jobs: one per starting point */
  --door-self: #289E2E;
  --door-coach: #214DFF;
  --door-care: #C01FC9;
  --door-lead: #00B0F0;

  /* Held in reserve */
  --red: #CC0000;
  --lavender: #D7A3E0;

  /* Type */
  --display: "Marcellus", "Trajan Pro", "Cinzel", Georgia, "Times New Roman", serif;
  --body: "Hanken Grotesk", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Scale (1.25) */
  --t-small: 0.9rem;
  --t-body: 1.125rem;
  --t-lead: 1.3rem;
  --t-h3: 1.5rem;
  --t-h2: clamp(1.9rem, 1.2rem + 2.6vw, 2.9rem);
  --t-h1: clamp(2.3rem, 1.1rem + 5.2vw, 4.4rem);

  /* Space */
  --gutter: clamp(1.1rem, 4vw, 2.5rem);
  --band: clamp(3.5rem, 8vw, 6.5rem);
  --wide: 72rem;
  --measure: 38rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--body);
  font-size: var(--t-body);
  line-height: 1.6;
}
img { max-width: 100%; height: auto; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.12; margin: 0; text-wrap: balance; }
h1 { font-size: var(--t-h1); letter-spacing: -0.01em; }
h2 { font-size: var(--t-h2); }
h3 { font-size: var(--t-h3); line-height: 1.2; }
p { margin: 0; }
a { color: var(--navy); text-underline-offset: 0.18em; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.on-dark :focus-visible { outline-color: var(--white); }

.wrap { max-width: var(--wide); margin-inline: auto; padding-inline: var(--gutter); }
.band { padding-block: var(--band); }
.on-dark { background: var(--black); color: var(--white); }
.on-dark a { color: var(--white); }
.on-paper { background: var(--paper); }
.on-navy { background: var(--navy); color: var(--white); }
.stack { display: flex; flex-direction: column; gap: 1.25rem; }
.lead { font-size: var(--t-lead); line-height: 1.5; max-width: var(--measure); }
.measure { max-width: var(--measure); }

.btn {
  display: inline-block;
  font: 600 1.05rem/1 var(--body);
  padding: 1rem 1.5rem;
  border-radius: 4px;
  text-decoration: none;
  border: 2px solid transparent;
}
.btn-gold { background: var(--gold); color: var(--black); }
.btn-gold:hover { background: var(--white); }
.on-dark .btn-gold { color: var(--black); }
.btn-line { border-color: currentColor; color: inherit; }
.btn-line:hover { background: var(--white); color: var(--black); border-color: var(--white); }
.btn-ink { background: var(--black); color: var(--white); }
.btn-ink:hover { background: var(--navy); }
.actions { display: flex; flex-wrap: wrap; gap: 0.9rem; }

/* ---------- Header (theme: header.php) ---------- */
.site-header { background: var(--black); color: var(--white); position: sticky; top: 0; z-index: 10; border-bottom: 1px solid #2a2a2a; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding-block: 0.85rem; flex-wrap: wrap; }
.brand { display: inline-flex; flex-direction: column; text-decoration: none; line-height: 1; }
.brand img { display: block; height: 3.6rem; width: auto; }
.brand-foot img { height: 4.5rem; }
.brand-name { font-family: var(--display); font-size: 1.75rem; letter-spacing: 0.06em; color: var(--white); }
.brand-name b { font-weight: 400; color: var(--gold); }
.brand-tag { font-family: var(--display); font-size: 0.82rem; letter-spacing: 0.04em; color: var(--white); margin-top: 0.3rem; }
.nav-toggle { display: none; background: none; border: 2px solid var(--white); color: var(--white); font: 600 1rem var(--body); padding: 0.5rem 0.9rem; border-radius: 4px; cursor: pointer; }
.menu, .sub { list-style: none; margin: 0; padding: 0; }
.menu { display: flex; align-items: center; gap: 0.35rem; }
.menu > li { position: relative; }
.sub-toggle, .menu > li > a {
  display: flex; align-items: center; gap: 0.45rem;
  background: none; border: 0; cursor: pointer;
  color: var(--white); font: 500 1rem/1.2 var(--body); text-decoration: none;
  padding: 0.75rem 0.8rem; border-radius: 4px;
}
.sub-toggle::after { content: ""; width: 0.42rem; height: 0.42rem; border-right: 2px solid var(--gold); border-bottom: 2px solid var(--gold); transform: translateY(-0.12rem) rotate(45deg); transition: transform 0.15s; }
.has-sub.open > .sub-toggle::after { transform: translateY(0.1rem) rotate(-135deg); }
.sub-toggle:hover, .has-sub.open > .sub-toggle, .menu > li > a:hover { background: #1c1c1c; }
.menu a.login { color: var(--black); background: var(--gold); font-weight: 600; margin-left: 0.6rem; padding-inline: 1rem; }
.menu a.login:hover { background: var(--white); }
.sub { display: none; position: absolute; left: 0; top: calc(100% + 0.6rem); min-width: 17rem; background: #161616; border: 1px solid #333; border-top: 3px solid var(--gold); padding: 0.5rem 0; box-shadow: 0 14px 30px rgba(0,0,0,0.35); }
.menu > li:nth-last-child(-n+3) > .sub { left: auto; right: 0; }
.has-sub.open > .sub { display: block; }
.sub a { display: block; color: var(--white); text-decoration: none; padding: 0.7rem 1.1rem; font-size: 1rem; line-height: 1.3; }
.sub a:hover { background: #262626; color: var(--gold); }
@media (prefers-reduced-motion: reduce) { .sub-toggle::after { transition: none; } }
@media (max-width: 68rem) {
  .nav-toggle { display: inline-block; }
  .site-nav { display: none; flex-basis: 100%; }
  .site-nav.open { display: block; }
  .menu { flex-direction: column; align-items: stretch; gap: 0; padding-bottom: 0.75rem; }
  .menu > li { border-top: 1px solid #2a2a2a; }
  .sub-toggle, .menu > li > a { width: 100%; justify-content: space-between; padding: 1rem 0.25rem; font-size: 1.1rem; border-radius: 0; }
  .sub-toggle:hover, .has-sub.open > .sub-toggle { background: none; }
  .sub, .menu > li:nth-last-child(-n+3) > .sub { position: static; min-width: 0; border-top: 0; box-shadow: none; padding: 0 0 0.6rem; }
  .sub a { padding: 0.65rem 0.25rem 0.65rem 1.1rem; border-left: 3px solid var(--gold); margin-left: 0.25rem; }
  .menu > li.util { border-top: 1px solid #2a2a2a; padding-top: 1rem; }
  .menu a.login { margin: 0; justify-content: center; border-radius: 4px; }
}

/* ---------- Hero ---------- */
.hero { padding-block: clamp(3rem, 7vw, 5.5rem) clamp(3rem, 7vw, 5rem); }
.hero .stack { gap: 1.75rem; }
.hero h1 { max-width: 18ch; }
.hero h1 span { color: var(--gold); }

/* The signature: how much of the time each game is in play */
.split { margin-top: 0.75rem; max-width: 52rem; }
.split-bar { display: flex; height: 1.6rem; border-radius: 3px; overflow: hidden; background: var(--grey); }
.split-a { width: 15%; background: var(--gold); transform-origin: left center; animation: grow 1.1s 0.25s cubic-bezier(.2,.7,.2,1) both; }
@keyframes grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@media (prefers-reduced-motion: reduce) { .split-a { animation: none; } html { scroll-behavior: auto; } }
.split-key { display: flex; flex-wrap: wrap; gap: 0.4rem 2rem; margin: 0.8rem 0 0; padding: 0; list-style: none; font-size: 1rem; }
.split-key li { display: flex; align-items: baseline; gap: 0.55rem; }
.split-key i { display: inline-block; width: 0.8rem; height: 0.8rem; border-radius: 2px; flex: none; transform: translateY(0.05rem); }
.key-a i { background: var(--gold); }
.key-b i { background: var(--grey); }
.split-key strong { font-weight: 700; }

/* ---------- Starting points ---------- */
.doors { list-style: none; margin: 2.5rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; border-top: 1px solid #d9d6cd; }
.doors li { border-bottom: 1px solid #d9d6cd; }
.doors li:nth-child(odd) { border-right: 1px solid #d9d6cd; }
.doors a { display: flex; flex-direction: column; gap: 0.6rem; height: 100%; padding: 1.75rem 1.5rem 1.9rem; color: var(--ink); text-decoration: none; border-left: 6px solid var(--door); }
.doors a:hover { background: var(--paper); }
.doors a:hover h3 { text-decoration: underline; text-decoration-color: var(--door); text-decoration-thickness: 3px; text-underline-offset: 0.2em; }
.doors p { max-width: 30rem; }
.doors .go { font-weight: 600; color: var(--navy); margin-top: auto; padding-top: 0.4rem; }
@media (max-width: 46rem) {
  .doors { grid-template-columns: 1fr; }
  .doors li:nth-child(odd) { border-right: 0; }
  .doors a { padding-inline: 1.1rem; }
}

/* ---------- How it works (a real sequence, so it is numbered) ---------- */
.steps { list-style: none; counter-reset: step; margin: 2.5rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.5rem; }
.steps li { counter-increment: step; display: flex; flex-direction: column; gap: 0.7rem; border-top: 3px solid var(--black); padding-top: 1.1rem; }
.steps li::before { content: counter(step); font-family: var(--display); font-size: 2.6rem; line-height: 1; }
@media (max-width: 54rem) { .steps { grid-template-columns: 1fr; gap: 2rem; } }

/* ---------- Science ---------- */
.science .wrap { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.science blockquote { margin: 0; padding: 0 0 0 1.5rem; border-left: 4px solid var(--gold); }
.science blockquote p { font-family: var(--display); font-size: clamp(1.45rem, 1rem + 1.6vw, 2rem); line-height: 1.3; }
.science blockquote footer { margin-top: 1rem; font-size: var(--t-small); opacity: 0.85; }
.science a { color: var(--gold); }
@media (max-width: 54rem) { .science .wrap { grid-template-columns: 1fr; } }

/* ---------- Cohort ---------- */
.cohort .wrap { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2rem 4rem; align-items: end; }
@media (max-width: 54rem) { .cohort .wrap { grid-template-columns: 1fr; } }

/* ---------- Questions (seed of the Q&A library) ---------- */
.qa { margin-top: 2rem; max-width: 46rem; border-top: 1px solid #d9d6cd; }
.qa details { border-bottom: 1px solid #d9d6cd; }
.qa summary { cursor: pointer; list-style: none; padding: 1.15rem 2.5rem 1.15rem 0; font-weight: 600; font-size: 1.2rem; position: relative; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "+"; position: absolute; right: 0.4rem; top: 50%; transform: translateY(-50%); font: 400 1.7rem/1 var(--body); }
.qa details[open] summary::after { content: "\2212"; }
.qa details p { padding: 0 0 1.4rem; max-width: var(--measure); }

/* ---------- Footer (theme: footer.php) ---------- */
.site-footer { padding-block: 3.5rem 2.5rem; font-size: 1rem; }
.site-footer .wrap { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr)); gap: 2.5rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.55rem; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; text-decoration-color: var(--gold); }
.site-footer h2 { font-family: var(--body); font-size: 1rem; font-weight: 700; margin-bottom: 0.9rem; color: var(--gold); }
.legal { grid-column: 1 / -1; border-top: 1px solid #2a2a2a; padding-top: 1.5rem; font-size: var(--t-small); color: #bdbdbd; }
@media (max-width: 46rem) { .site-footer .wrap { grid-template-columns: 1fr; } }

/* ---------- WordPress specifics ---------- */
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .site-header { top: 0; } }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link:focus { position: fixed; left: 1rem; top: 1rem; width: auto; height: auto; clip: auto; z-index: 100; background: var(--gold); color: var(--black); padding: 0.75rem 1rem; font-weight: 600; }

/* Plain pages and posts that do not bring their own bands */
.prose { max-width: var(--measure); }
.prose > * + * { margin-top: 1.15rem; }
.prose h1 { font-size: var(--t-h2); }
.prose h2 { font-size: var(--t-h3); margin-top: 2.2rem; }
.prose ul, .prose ol { padding-left: 1.3rem; }
