/* mydevsolution.com — site styles
   Companion to tokens.css (brand-locked). Every value here is carried over
   verbatim from the Claude Design prototypes in ../../../project/. */

/* ---------------------------------------------------------------- fonts -- */

@font-face {
  font-family: "Space Grotesk";
  src: url("../fonts/SpaceGrotesk-Medium.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Space Grotesk";
  src: url("../fonts/SpaceGrotesk-Bold.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("../fonts/IBMPlexMono-Regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("../fonts/IBMPlexMono-Medium.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}

/* --------------------------------------------------------------- shell --- */

/* Not a brand token: the faint hairline inside rule headings. */
:root { --hairline: #1F1F1F; }

html, body { margin: 0; padding: 0; background: var(--ink); }
a { color: var(--phosphor); }

.page {
  min-height: 100vh;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  display: flex;
  flex-direction: column;
}

.shell {
  width: 100%;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 56px);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
}

.main { flex: 1 1 auto; }

/* 404 centers its single block vertically. */
.main--center {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(64px, 10vh, 120px) 0;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--phosphor);
  font-family: var(--font-mono);
  font-size: 14px;
  padding: 12px 16px;
  border: 1px solid var(--gray-800);
  border-radius: var(--radius);
  z-index: 10;
}
.skip-link:focus { left: clamp(20px, 5vw, 56px); top: 12px; }

/* ------------------------------------------------------------------ nav -- */

.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  padding: clamp(20px, 3vw, 36px) 0;
}

.nav__brand {
  color: var(--paper);
  text-decoration: none;
  font-weight: 500;
  font-size: 26px;
  display: inline-block;
  padding: 5px 0;
}

.nav__links { display: flex; gap: clamp(18px, 3vw, 32px); }

.nav__link {
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

/* The current page reads white rather than phosphor. */
.nav__link[aria-current="page"] { color: var(--paper); }

/* -------------------------------------------------------------- sections -- */

/* Vertical rhythm is driven by --pt / --pb so each section keeps the exact
   clamp() the prototype specified without a class per permutation. */
.section { padding: var(--pt, 0) 0 var(--pb, 0); }

.section--hero {
  --pt: clamp(64px, 14vh, 168px);
  background: radial-gradient(65% 130% at 0% 0%, rgba(74, 227, 112, 0.09), transparent 70%);
}
.section--header {
  --pt: clamp(48px, 9vh, 104px);
  background: radial-gradient(60% 130% at 0% 0%, rgba(74, 227, 112, 0.07), transparent 70%);
}
.section--now      { --pt: clamp(72px, 12vh, 136px); }
.section--lg       { --pt: clamp(88px, 16vh, 176px); }
.section--page     { --pt: clamp(56px, 9vh, 104px); }
.section--connect  { --pt: clamp(56px, 10vh, 112px); }
.section--chapter  { --pt: clamp(64px, 10vh, 112px); }
.section--offclock { --pt: clamp(72px, 12vh, 128px); }

.section--closer      { --pt: clamp(72px, 12vh, 128px); --pb: clamp(64px, 10vh, 120px); }
.section--closer-home { --pt: clamp(88px, 16vh, 176px); --pb: clamp(64px, 10vh, 120px); }

.section--pad-bottom { --pb: clamp(64px, 10vh, 120px); }

/* -------------------------------------------------------------- headings -- */

.hero__title {
  margin: 0;
  font-weight: 700;
  font-size: clamp(44px, 8.5vw, 96px);
  line-height: 1.05;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.hero__sub {
  margin: clamp(20px, 3vw, 32px) 0 0;
  color: var(--gray-400);
  font-weight: 500;
  font-size: clamp(19px, 2.6vw, 26px);
  line-height: 1.45;
  max-width: 34em;
  text-wrap: pretty;
}

.page-title {
  margin: 0;
  font-weight: 700;
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.1;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.page-title--404 { font-size: clamp(40px, 7vw, 80px); }

.page-sub {
  margin: clamp(16px, 2.5vw, 24px) 0 0;
  color: var(--gray-400);
  font-weight: 500;
  font-size: clamp(18px, 2.2vw, 22px);
  line-height: 1.5;
  max-width: 38em;
  text-wrap: pretty;
}

/* Mono kicker above a chapter title. */
.eyebrow {
  margin: 0 0 14px;
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.04em;
  color: var(--gray-400);
}

/* Bare mono date line (no tag chrome). */
.date {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.04em;
  color: var(--gray-400);
}

/* "// SECTION NAME ————————" */
.rule {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.1em;
  color: var(--gray-400);
}
.rule__slash { color: var(--phosphor); }
.rule__line { flex: 1 1 auto; height: 1px; background: var(--hairline); }

.chapter__title {
  margin: clamp(20px, 3vw, 28px) 0 12px;
  font-weight: 700;
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.2;
  text-wrap: balance;
}

/* Standalone closing headline (home). */
.closer__title {
  margin: 0;
  font-weight: 700;
  font-size: clamp(26px, 3.6vw, 38px);
  line-height: 1.2;
  text-wrap: balance;
}

/* ----------------------------------------------------------------- text -- */

.prose { margin: 0 0 16px; max-width: 42em; text-wrap: pretty; }
.prose:last-child { margin-bottom: 0; }

.section__lead {
  margin: clamp(20px, 3vw, 28px) 0 0;
  max-width: 42em;
  text-wrap: pretty;
}
.section__lead--lg { font-size: clamp(18px, 2.2vw, 21px); line-height: 1.55; }
.section__lead--spaced { margin-top: clamp(28px, 4vw, 40px); }

.meta {
  margin: 12px 0 0;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--gray-400);
}

.note {
  margin: clamp(56px, 10vh, 104px) 0 0;
  color: var(--gray-400);
  max-width: 38em;
  text-wrap: pretty;
}

/* Uppercase mono label above a block. */
.label {
  margin: 0 0 var(--label-mb, 12px);
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.1em;
  color: var(--gray-400);
}

/* Group divider inside the shelf. */
.group-label {
  margin: clamp(44px, 6vw, 60px) 0 0;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--gray-400);
}

/* ---------------------------------------------------------------- stack -- */

/* Generic vertical stack; callers set --gap. */
.stack { display: grid; gap: var(--gap, clamp(28px, 4vw, 36px)); }
.stack--mt { margin-top: var(--mt, clamp(24px, 3.5vw, 32px)); }

/* ---------------------------------------------------------- grid + cards -- */

/* Hairline grid: 1px gaps over an ink background read as internal rules,
   and each cell's outline keeps the border crisp at any wrap point. */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(var(--min, 280px), 100%), 1fr));
  gap: 1px;
  background: var(--ink);
  border: 1px solid var(--gray-800);
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: var(--mt, clamp(28px, 4vw, 44px));
}
.grid--mono { font-family: var(--font-mono); }

.card {
  background: var(--ink);
  outline: 1px solid var(--gray-800);
  padding: clamp(24px, 4vw, 36px);
}
.card--stat  { padding: clamp(22px, 3.5vw, 32px); }
.card--tight { padding: clamp(18px, 3vw, 26px); }

.card__num {
  margin: 0 0 18px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--phosphor);
}

.card__title {
  margin: 0 0 10px;
  font-weight: 700;
  font-size: clamp(20px, 2.4vw, 24px);
  line-height: 1.25;
  text-wrap: balance;
}

.card__body { margin: 0; max-width: 42em; text-wrap: pretty; }

.card__kicker {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--gray-400);
}

.card__lead { margin: 10px 0 0; font-weight: 500; line-height: 1.55; text-wrap: pretty; }

/* ---------------------------------------------------------------- stats -- */

.stat__value {
  margin: 0;
  font-weight: 700;
  font-size: clamp(32px, 4vw, 44px);
  line-height: 1.1;
  color: var(--paper);
}
.stat__value--accent { color: var(--phosphor); }

.stat__label {
  margin: 10px 0 0;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--gray-400);
  line-height: 1.5;
}

/* Smaller mono stat row (Moxie). */
.ministat__value {
  margin: 0;
  font-size: clamp(24px, 3.2vw, 32px);
  font-weight: 500;
  color: var(--paper);
}
.ministat__value--accent { color: var(--phosphor); }
.ministat__label { margin: 6px 0 0; font-size: 13px; color: var(--gray-400); line-height: 1.5; }

/* ---------------------------------------------------------------- panel -- */

.panel {
  border: 1px solid var(--gray-800);
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: var(--mt, clamp(32px, 5vw, 48px));
}
.panel--narrow { max-width: 760px; }

.panel__inner { display: grid; gap: clamp(32px, 5vw, 44px); padding: clamp(24px, 4vw, 40px); }

/* Key/value run-down ("the short version"). */
.facts {
  padding: clamp(20px, 3vw, 28px);
  display: grid;
  gap: 14px;
  font-family: var(--font-mono);
  font-size: 15px;
  line-height: 1.55;
}
.fact { display: flex; flex-wrap: wrap; gap: 4px 28px; }
.fact__key { color: var(--gray-400); flex: 0 0 10ch; }
.fact__val { flex: 1 1 24ch; min-width: 16ch; }

/* ------------------------------------------------------------- numbered -- */

.numbered { display: flex; gap: clamp(16px, 3vw, 28px); }

.numbered__num {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--gray-400);
  flex: 0 0 3ch;
  padding-top: var(--num-pt, 6px);
}

.numbered__title {
  margin: 0 0 8px;
  font-weight: 700;
  font-size: clamp(19px, 2.5vw, 24px);
  line-height: 1.25;
  text-wrap: balance;
}

.numbered__body { margin: 0; max-width: 40em; text-wrap: pretty; }

/* Shelf entries sit on a smaller title, so the number rides 2px higher. */
.numbered--book { --num-pt: 4px; }

/* ---------------------------------------------------------------- books -- */

.book__title {
  margin: 0 0 4px;
  font-weight: 700;
  font-size: clamp(18px, 2.4vw, 21px);
  line-height: 1.3;
}

.book__author {
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--gray-400);
}

.book__body {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  color: var(--gray-400);
  max-width: 40em;
  text-wrap: pretty;
}

/* Featured book cards at the top of the shelf. */
.card__meta {
  margin: 0 0 6px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--gray-400);
}
.card__book-title {
  margin: 0 0 10px;
  font-weight: 700;
  font-size: clamp(19px, 2.5vw, 23px);
  line-height: 1.25;
}

/* ------------------------------------------------------------- timeline -- */

.timeline {
  display: grid;
  gap: clamp(44px, 7vw, 64px);
  border-left: 1px solid var(--gray-800);
  padding-left: clamp(24px, 4vw, 40px);
}

.timeline__item { position: relative; }

/* Pulled back onto the rail: half the dot's width past the padding. */
.timeline__dot {
  position: absolute;
  left: calc(-1 * clamp(24px, 4vw, 40px) - 5px);
  top: 8px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--ink);
  border: 1px solid var(--gray-800);
  box-sizing: border-box;
}
.timeline__dot--current { border-color: var(--phosphor); }

.tag {
  margin: 0;
  display: inline-block;
  border: 1px solid var(--gray-800);
  border-radius: var(--radius);
  padding: 3px 10px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--gray-400);
}

.timeline__role {
  margin: 8px 0 10px;
  font-weight: 500;
  font-size: clamp(20px, 2.6vw, 24px);
  line-height: 1.25;
}

.entry__title {
  margin: 0 0 8px;
  font-weight: 500;
  font-size: clamp(19px, 2.4vw, 22px);
  line-height: 1.25;
}
.entry__title--dated { margin-top: 8px; }

/* -------------------------------------------------------------- beliefs -- */

.belief {
  display: grid;
  grid-template-columns: clamp(44px, 6vw, 72px) 1fr;
  gap: clamp(14px, 3vw, 24px);
}

.belief__num {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.15;
  color: var(--gray-800);
}

.belief__title {
  margin: 0 0 12px;
  font-weight: 700;
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.2;
  text-wrap: balance;
}

.belief__body { margin: 0; max-width: 42em; text-wrap: pretty; }

/* --------------------------------------------------------------- actions -- */

.action { font-size: 16px; display: inline-flex; align-items: center; min-height: 44px; }
.action--sm { font-size: 15px; }
.action--lg { font-size: clamp(16px, 2.4vw, 20px); overflow-wrap: anywhere; }

.action-row { margin-top: var(--mt, clamp(20px, 3vw, 28px)); }
.actions { display: flex; flex-wrap: wrap; gap: 8px clamp(28px, 4vw, 44px); }

/* ----------------------------------------------------------------- form -- */

.form { display: grid; gap: 20px; max-width: 560px; }
.field { display: grid; gap: 8px; }

.field__label {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--gray-400);
}

.input, .textarea {
  width: 100%;
  box-sizing: border-box;
  background: var(--ink);
  border: 1px solid var(--gray-800);
  border-radius: var(--radius);
  color: var(--paper);
  font-family: var(--font-sans);
  font-size: 17px;
  padding: 11px 14px;
  transition: border-color var(--transition);
}
.input { min-height: 44px; }
.textarea { line-height: 1.6; resize: vertical; }

.input:hover, .textarea:hover { border-color: var(--gray-400); }
.input[aria-invalid="true"], .textarea[aria-invalid="true"] { border-color: var(--phosphor); }

.btn {
  justify-self: start;
  background: transparent;
  border: 1px solid var(--gray-800);
  border-radius: var(--radius);
  color: var(--phosphor);
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 15px;
  padding: 11px 22px;
  min-height: 44px;
  cursor: pointer;
  transition: opacity var(--transition);
}
.btn:hover { opacity: 0.75; }
.btn[disabled] { opacity: 0.5; cursor: default; }

/* Submission feedback. Hidden until the script fills it in. */
.form__status {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 15px;
  line-height: 1.55;
  color: var(--phosphor);
}
.form__status:empty { display: none; }
.form__status--error { color: var(--paper); }

.field__error {
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.5;
  color: var(--phosphor);
}
.field__error:empty { display: none; }

/* --------------------------------------------------------------- footer -- */

.footer {
  border-top: 1px solid var(--gray-800);
  padding: clamp(24px, 4vw, 36px) 0 clamp(28px, 4vw, 44px);
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--paper);
}
.footer a { color: var(--paper); text-decoration: none; }
.footer a:hover { text-decoration: underline; }

/* "Manage cookies" reads as a footer link but is a real <button> — it triggers
   an action (reopen the consent banner), not navigation. */
.footer__cookies {
  background: none;
  border: 0;
  padding: 0;
  margin: 0;
  font: inherit;
  color: var(--paper);
  cursor: pointer;
}
.footer__cookies:hover { text-decoration: underline; }

/* ------------------------------------------------------------ consent bar -- */

/* Shown only to EU/EEA/UK visitors (see assets/js/analytics.js). Fixed to the
   bottom, brand-consistent: ink surface, hairline rule, mono copy. */
.consent {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding: clamp(14px, 2.5vw, 20px) clamp(20px, 5vw, 56px);
  background: var(--ink);
  border-top: 1px solid var(--gray-800);
}

.consent__text {
  margin: 0;
  max-width: 60ch;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.55;
  color: var(--gray-400);
}

.consent__actions { display: flex; gap: 12px; flex: 0 0 auto; }

.consent__btn {
  background: transparent;
  border: 1px solid var(--gray-800);
  border-radius: var(--radius);
  color: var(--paper);
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 13px;
  padding: 9px 18px;
  min-height: 44px;
  cursor: pointer;
  transition: opacity var(--transition);
}
.consent__btn:hover { opacity: 0.75; }
.consent__btn--accept { color: var(--phosphor); border-color: var(--phosphor); }

/* --------------------------------------------------------------- utilities -- */

/* Custom-property overrides, moved off inline style="" attributes so the strict
   CSP (style-src 'self', no 'unsafe-inline') never blocks them. Each sets one
   property the owning component reads via var(). */
.u-min-170 { --min: 170px; }
.u-min-220 { --min: 220px; }
.u-min-260 { --min: 260px; }
.u-min-280 { --min: 280px; }
.u-min-300 { --min: 300px; }
.u-min-400 { --min: 400px; }
.u-mt-16 { --mt: 16px; }
.u-mt-a { --mt: clamp(20px, 3vw, 28px); }
.u-mt-b { --mt: clamp(24px, 4vw, 36px); }
.u-mt-c { --mt: clamp(28px, 4vw, 44px); }
.u-mt-d { --mt: clamp(32px, 5vw, 44px); }
.u-mt-e { --mt: clamp(32px, 5vw, 48px); }
.u-mt-f { --mt: clamp(32px, 5vw, 56px); }
.u-mt-g { --mt: clamp(36px, 5vw, 52px); }
.u-gap-a { --gap: clamp(36px, 5vw, 48px); }
.u-gap-b { --gap: clamp(40px, 7vw, 64px); }
.u-gap-c { --gap: clamp(48px, 7vw, 64px); }
.u-label-mb-8 { --label-mb: 8px; }
