/* A Manifesto for Men — Scott Aloha
   Palette from his own three sites: royal blue #1407AB, electric cyan #00F0FF,
   "Defined" callout #0711F2 on #0CE7F5, button blue #040BC2, gold #D4AF37. */

:root {
  /* REPLACEABLE IMAGES */
  /* (all photos are <img> elements in index.html; see assets/manifest.json) */

  --blue: #1407AB;
  --blue-deep: #0E0583;
  --blue-ink: #09035C;
  --blue-raised: #1D10C2;
  --blue-line: #3A2FD0;
  --button-blue: #040BC2;
  --cyan: #00F0FF;
  --cyan-soft: #0CFAFA;
  --cyan-callout: #0CE7F5;
  --callout-ink: #0711F2;
  --cyan-hover: #18F0E3;
  --gold: #D4AF37;
  --white: #FFFFFF;
  --text-muted: #D3D1F2;
  --glow: 0 0 0 3px var(--cyan), 0 0 28px rgba(0, 240, 255, .45);

  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --measure: 35em;
  --header-h: 64px;
  --radius: 10px;
  --space-1: .5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2.5rem;
  --space-5: 4rem;
  --space-6: 6rem;
}

@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("assets/fonts/inter-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: italic; font-weight: 400; font-display: swap; src: url("assets/fonts/inter-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 700; font-display: swap; src: url("assets/fonts/inter-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 800; font-display: swap; src: url("assets/fonts/inter-latin-800-normal.woff2") format("woff2"); }

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1.25rem);
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

body {
  margin: 0;
  background: var(--blue);
  color: var(--white);
  font-family: var(--font);
  font-size: 1.125rem;
  line-height: 1.7;
  font-kerning: normal;
  text-rendering: optimizeLegibility;
}
@media (min-width: 900px) { body { font-size: 1.25rem; } }

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

a { color: var(--cyan); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { font-weight: 800; line-height: 1.15; letter-spacing: -.015em; margin: 0; text-wrap: balance; }
p { margin: 0 0 1.1em; }

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

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--cyan); color: var(--button-blue); padding: .6rem 1rem; border-radius: 6px; font-weight: 700;
}
.skip-link:focus { top: .75rem; }

.wrap { width: min(100% - 2.5rem, 1180px); margin-inline: auto; }

/* ---------- Buttons: one vocabulary ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 48px; padding: .75rem 1.4rem;
  border-radius: 999px; border: 2px solid transparent;
  font: 700 1rem/1.2 var(--font); text-decoration: none; cursor: pointer;
  transition: background-color .18s, color .18s, box-shadow .18s, transform .18s;
}
.btn:hover { transform: translateY(-1px); text-decoration: none; }
.btn--primary { background: var(--cyan); color: var(--button-blue); box-shadow: 0 0 22px rgba(0, 240, 255, .35); }
.btn--primary:hover { background: var(--white); box-shadow: 0 0 30px rgba(0, 240, 255, .6); }
.btn--secondary { background: var(--button-blue); color: var(--white); border-color: var(--cyan); }
.btn--secondary:hover { background: var(--cyan-hover); color: var(--button-blue); }
.btn--small { min-height: 40px; padding: .5rem 1.05rem; font-size: .9375rem; }
.btn svg { width: 1.1em; height: 1.1em; flex: none; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(20, 7, 171, .94);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--blue-line);
}
.site-header__inner { display: flex; align-items: center; gap: 1.25rem; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; flex: none; }
.brand img { width: 132px; height: auto; }
@media (min-width: 600px) { .brand img { width: 158px; } }
.site-nav { display: none; margin-left: auto; }
.site-nav ul { list-style: none; display: flex; gap: 1.6rem; margin: 0; padding: 0; }
.site-nav a { color: var(--white); text-decoration: none; font-size: .9375rem; font-weight: 700; }
.site-nav a:hover { color: var(--cyan); }
.site-header .btn { margin-left: auto; }
@media (min-width: 960px) {
  .site-nav { display: block; }
  .site-header .btn { margin-left: .5rem; }
}
.progress { position: absolute; left: 0; bottom: -1px; height: 3px; width: 100%; transform-origin: 0 50%; transform: scaleX(0); background: var(--cyan); box-shadow: 0 0 10px rgba(0, 240, 255, .7); }

/* ---------- Hero ---------- */
.hero { padding: var(--space-4) 0 var(--space-5); }
.hero__grid { display: grid; gap: var(--space-4); align-items: center; }
@media (min-width: 900px) {
  .hero { padding: var(--space-5) 0 var(--space-6); }
  .hero__grid { grid-template-columns: 1.25fr .85fr; gap: var(--space-5); }
}
.hero__question { color: var(--cyan-soft); font-weight: 700; font-size: clamp(1.05rem, .95rem + .5vw, 1.3rem); margin-bottom: .9rem; }
.hero h1 { font-size: clamp(2.6rem, 1.4rem + 5.2vw, 5rem); letter-spacing: -.03em; line-height: 1.02; margin-bottom: 1.4rem; }
.hero__for { font-size: clamp(1.2rem, 1.05rem + .7vw, 1.5rem); font-weight: 700; line-height: 1.4; margin-bottom: .5rem; max-width: 30ch; }
.hero__principle { color: var(--text-muted); font-size: clamp(1.05rem, 1rem + .3vw, 1.2rem); margin-bottom: 1.4rem; }
.hero__tagline {
  color: var(--cyan); font-weight: 800; letter-spacing: -.01em;
  font-size: clamp(1.45rem, 1.1rem + 1.6vw, 2.15rem); line-height: 1.2;
  margin-bottom: 2rem; max-width: 28ch;
}
.hero__tagline span { display: block; text-wrap: balance; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .8rem 1rem; align-items: center; margin-bottom: 1.6rem; }
.hero__byline { font-size: .9375rem; color: var(--text-muted); margin: 0; }
.hero__byline strong { color: var(--white); }
.readtime { font-family: var(--mono); font-size: .875rem; color: var(--text-muted); letter-spacing: .01em; }

.hero__figure { margin: 0 auto; max-width: 420px; width: 100%; }
.hero__figure picture, .frame { display: block; border-radius: 6px; box-shadow: var(--glow); overflow: hidden; }
.hero__figure figcaption { text-align: center; margin-top: 1.25rem; color: var(--cyan-soft); font-weight: 700; font-size: 1rem; line-height: 1.35; }
.hero__figure figcaption span { display: block; color: var(--text-muted); font-weight: 400; font-size: .875rem; margin-top: .25rem; }

.blueprint {
  background: var(--blue-deep); border-block: 1px solid var(--blue-line);
  padding: 1.1rem 0; text-align: center; font-weight: 700; font-size: clamp(.95rem, .9rem + .3vw, 1.1rem);
}
.blueprint p { margin: 0; }
.blueprint .dot { color: var(--cyan); padding: 0 .1em; }

/* ---------- Manifesto layout ---------- */
.manifesto { padding: var(--space-5) 0 var(--space-6); }
.manifesto__grid { display: grid; gap: var(--space-4); }
@media (min-width: 1100px) {
  .manifesto__grid { grid-template-columns: 250px minmax(0, var(--measure)); gap: var(--space-5); justify-content: center; }
}
.toc { display: none; }
@media (min-width: 1100px) {
  .toc { display: block; position: sticky; top: calc(var(--header-h) + 2rem); align-self: start; max-height: calc(100vh - var(--header-h) - 4rem); overflow: auto; }
  .toc-mobile { display: none; }
}
.toc__title { font-size: .8125rem; font-weight: 700; color: var(--text-muted); margin-bottom: .8rem; }
.toc ol, .toc-mobile ol { list-style: none; margin: 0; padding: 0; counter-reset: toc; }
.toc li, .toc-mobile li { counter-increment: toc; }
.toc ol a, .toc-mobile a {
  display: grid; grid-template-columns: 1.9em 1fr; gap: .2em; padding: .42rem .6rem; margin-left: -.6rem;
  color: var(--text-muted); text-decoration: none; font-size: .875rem; line-height: 1.35; border-radius: 6px;
}
.toc ol a::before, .toc-mobile a::before { content: counter(toc, decimal-leading-zero); color: var(--cyan); font-family: var(--mono); font-size: .78rem; padding-top: .1em; }
.toc ol a:hover, .toc-mobile a:hover { color: var(--white); background: var(--blue-raised); }
.toc ol a[aria-current="true"] { color: var(--white); background: var(--blue-raised); box-shadow: inset 3px 0 0 var(--cyan); }
.toc__cta { margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid var(--blue-line); font-size: .875rem; color: var(--text-muted); }
.toc__cta p { margin-bottom: .7rem; }

.toc-mobile { border: 1px solid var(--blue-line); background: var(--blue-deep); border-radius: var(--radius); padding: .25rem 1rem; margin-bottom: var(--space-4); }
.toc-mobile summary { cursor: pointer; font-weight: 700; padding: .8rem 0; font-size: 1rem; list-style-position: inside; }
.toc-mobile summary::marker { color: var(--cyan); }
.toc-mobile ol { padding-bottom: .8rem; }

.essay { min-width: 0; max-width: var(--measure); margin-inline: auto; }
.essay__kicker { font-weight: 700; font-size: .9375rem; color: var(--text-muted); margin-bottom: .6rem; }
.essay section { margin-bottom: var(--space-5); }
.essay section:last-of-type { margin-bottom: var(--space-4); }
.essay h2 { color: var(--cyan); font-size: clamp(1.6rem, 1.2rem + 1.5vw, 2.25rem); margin-bottom: 1.1rem; }
.essay strong { font-weight: 700; }
.essay em { font-style: italic; }
.essay .quote-inline { color: var(--cyan-soft); }

.defined {
  background: var(--cyan-callout); color: var(--callout-ink);
  border-radius: var(--radius); padding: 1.25rem 1.4rem 1.3rem; margin: 2rem 0;
  box-shadow: 0 10px 30px rgba(4, 2, 70, .35);
}
@media (min-width: 700px) { .defined { padding: 1.5rem 1.9rem 1.6rem; margin: 2.4rem -1.9rem; } }
.defined p { margin: 0 0 .5em; }
.defined p:last-child { margin-bottom: 0; }
.defined__term { font-weight: 800; font-size: 1.1em; letter-spacing: -.01em; }

.aside-note { font-style: italic; color: var(--text-muted); border-left: 3px solid var(--cyan); padding-left: 1.1rem; }
.aside-note strong { color: var(--white); }

.pull {
  margin: 2.2rem 0; padding: .2rem 0 .2rem 1.3rem; border-left: 4px solid var(--cyan);
  font-size: 1.3em; font-weight: 700; line-height: 1.4; color: var(--white);
}
.pull p { margin: 0; }

.sequence-lead { font-size: 1.15em; }
.sequence-lead strong { color: var(--cyan); }
.follows { list-style: none; margin: 1.4rem 0 1.8rem; padding: 0; display: grid; gap: .9rem; }
.follows li { position: relative; padding: 1rem 1.2rem 1rem 3rem; background: var(--blue-deep); border: 1px solid var(--blue-line); border-radius: var(--radius); line-height: 1.55; }
.follows li::before { content: ""; position: absolute; left: 1.2rem; top: 1.45rem; width: .8rem; height: .8rem; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 10px rgba(0, 240, 255, .7); }
.follows strong { color: var(--cyan); }

.result { font-size: 1.25em; font-weight: 800; line-height: 1.35; color: var(--cyan); }
.result span { display: block; color: var(--white); }

.essay-break { border: 0; height: 1px; margin: 2.6rem auto; width: 40%; background: linear-gradient(90deg, transparent, var(--cyan), transparent); }

.essay-figure { margin: 2.4rem auto; }
.essay-figure--paddle { max-width: 408px; }
.essay-figure--pike { max-width: 514px; }
.essay-figure figcaption { font-size: .875rem; color: var(--text-muted); margin-top: .9rem; text-align: center; line-height: 1.45; }

.inline-cta {
  display: flex; flex-wrap: wrap; gap: 1rem 1.5rem; align-items: center; justify-content: space-between;
  margin: 2.6rem 0; padding: 1.3rem 1.5rem; border: 1px solid var(--blue-line); border-radius: var(--radius); background: var(--blue-deep);
}
.inline-cta p { margin: 0; font-weight: 700; font-size: 1rem; line-height: 1.45; max-width: 34ch; }
.inline-cta p span { display: block; color: var(--text-muted); font-weight: 400; }

.closing { font-size: 1.4em; font-weight: 800; color: var(--cyan); line-height: 1.3; margin: 1.6rem 0; }
.signoff { margin-top: 2rem; }
.signoff img { width: 220px; }
.back-top { font-size: .9375rem; }

/* ---------- After the essay ---------- */
.band { padding: var(--space-5) 0; }
.band--deep { background: var(--blue-deep); }
.band--ink { background: var(--blue-ink); }
.band h2 { font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.5rem); margin-bottom: 1rem; }
.band .lead { font-size: 1.1em; }
.muted { color: var(--text-muted); }
.small { font-size: .9375rem; line-height: 1.6; }

.copy-grid { display: grid; gap: var(--space-4); align-items: start; }
@media (min-width: 900px) { .copy-grid { grid-template-columns: 1fr 1.05fr; gap: var(--space-5); } }
.copy-intro { display: grid; grid-template-columns: auto 1fr; gap: 1.4rem; align-items: start; }
.copy-intro .frame { width: 112px; }
@media (min-width: 600px) { .copy-intro .frame { width: 150px; } }
.copy-intro h2 { color: var(--cyan); }

.form-card { background: var(--blue); border: 1px solid var(--blue-line); border-radius: 14px; padding: 1.6rem; box-shadow: 0 18px 40px rgba(4, 2, 60, .4); }
@media (min-width: 600px) { .form-card { padding: 2rem 2.2rem; } }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-weight: 700; font-size: .9375rem; margin-bottom: .4rem; }
.field label span { font-weight: 400; color: var(--text-muted); }
.field input, .field textarea {
  width: 100%; font: 400 1rem/1.5 var(--font); color: var(--white);
  background: var(--blue-ink); border: 2px solid var(--blue-line); border-radius: 8px; padding: .7rem .9rem;
}
.field textarea { min-height: 6.5rem; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(0, 240, 255, .25); }
.cf-turnstile { margin: .4rem 0 1.1rem; min-height: 65px; }
.form-card .btn { width: 100%; }
.form-note { margin: 1rem 0 0; font-size: .875rem; color: var(--text-muted); line-height: 1.55; }
.form-status { margin-top: 1rem; padding: .9rem 1.1rem; border-radius: 8px; font-size: .9375rem; line-height: 1.5; }
.form-status[hidden] { display: none; }
.form-status--ok { background: var(--cyan-callout); color: var(--callout-ink); font-weight: 700; }
.form-status--error { background: var(--blue-ink); border: 1px solid var(--gold); }
.form-status a { color: inherit; }
.privacy { margin-top: 1.1rem; font-size: .875rem; color: var(--text-muted); line-height: 1.6; }
.privacy summary { cursor: pointer; color: var(--cyan); font-weight: 700; }
.privacy p { margin: .6rem 0 0; }

.start-here { display: grid; gap: 1.4rem; align-items: center; text-align: center; justify-items: center; }
.start-here h2 { margin-bottom: .4rem; }
.start-here p { margin: 0; }

.formula-grid { display: grid; gap: var(--space-4); align-items: center; }
@media (min-width: 900px) { .formula-grid { grid-template-columns: .9fr 1.1fr; gap: var(--space-5); align-items: start; } }
.formula-grid h2 { color: var(--cyan); }
.benefits { list-style: none; margin: 0; padding: 0; display: grid; gap: .25rem; }
.benefits li { position: relative; padding: .9rem 0 .9rem 2.4rem; border-bottom: 1px solid var(--blue-line); line-height: 1.55; }
.benefits li:last-child { border-bottom: 0; }
.benefits li::before {
  content: ""; position: absolute; left: .15rem; top: 1.15rem; width: 1.05rem; height: .55rem;
  border-left: 3px solid var(--cyan); border-bottom: 3px solid var(--cyan); transform: rotate(-45deg);
}

.try-grid { display: grid; gap: var(--space-4); align-items: center; }
@media (max-width: 899px) { .try-grid .video-link { order: 2; } }
@media (min-width: 900px) { .try-grid { grid-template-columns: 1fr 1fr; gap: var(--space-5); } }
.try-grid h2 { color: var(--gold); }
.video-link { position: relative; display: block; max-width: 480px; margin-inline: auto; text-decoration: none; }
.video-link__still { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 6px; box-shadow: var(--glow); overflow: hidden; background: #000; }
.video-link__still img { width: 100%; height: 100%; object-fit: cover; }
.video-link__play {
  position: absolute; left: 50%; top: 50%; width: 76px; height: 76px; margin: -38px 0 0 -38px; border-radius: 50%;
  background: var(--cyan); display: grid; place-items: center; box-shadow: 0 0 0 8px rgba(0, 240, 255, .25);
  transition: transform .18s;
}
.video-link__play svg { width: 30px; height: 30px; margin-left: 5px; fill: var(--button-blue); }
.video-link:hover .video-link__play { transform: scale(1.08); }
.video-link__label { display: block; margin-top: 1rem; font-size: .9375rem; font-weight: 700; line-height: 1.45; color: var(--cyan); text-align: center; }
.video-link:hover .video-link__label { text-decoration: underline; }
.safety { border: 2px solid var(--gold); border-radius: var(--radius); padding: 1rem 1.2rem; margin: 1.3rem 0; }
.safety p { margin: 0; }
.safety strong { color: var(--gold); }

.community { text-align: center; }
.community .wrap { max-width: 760px; }
.community h2 { color: var(--cyan); }
.community .btn { margin-top: .6rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--blue-ink); padding: var(--space-5) 0 var(--space-3); font-size: .9375rem; line-height: 1.6; border-top: 1px solid var(--blue-line); }
.footer-grid { display: grid; gap: var(--space-4); }
@media (min-width: 800px) { .footer-grid { grid-template-columns: 1.3fr 1fr 1fr; } }
.footer-brand img { width: 180px; margin-bottom: .9rem; }
.footer-brand p { color: var(--text-muted); margin-bottom: .6rem; }
.footer-brand .tag { color: var(--cyan); font-weight: 700; }
.site-footer h2 { font-size: 1rem; margin-bottom: .8rem; letter-spacing: 0; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.site-footer a { color: var(--white); text-decoration: none; }
.site-footer a:hover { color: var(--cyan); text-decoration: underline; }
.site-footer .btn--primary, .site-footer .btn--primary:hover { color: var(--button-blue); text-decoration: none; }
.social a { display: inline-flex; align-items: center; gap: .6rem; }
.social svg { width: 20px; height: 20px; flex: none; color: var(--cyan); }
.fine-print { margin-top: var(--space-4); padding-top: var(--space-3); border-top: 1px solid var(--blue-line); color: var(--text-muted); font-size: .8125rem; }
.fine-print p { margin: 0 0 .35rem; }
.fine-print a { color: var(--text-muted); text-decoration: underline; }

/* ---------- 404 ---------- */
.notfound { min-height: 60vh; padding: var(--space-6) 0; }
.notfound h1 { font-size: clamp(2.4rem, 1.6rem + 3vw, 4rem); margin-bottom: 1rem; }
.notfound .lead { color: var(--cyan); font-size: 1.3em; font-weight: 700; }
.notfound ul { padding-left: 1.2rem; }
