/* Reclaiming Manhood — site styles
   Palette and type from /workspace/brand/BRAND.md
   Font files are not bundled; Satoshi is loaded from Fontshare. */

:root {
  --black: #000000;
  --charcoal: #1C1F22;
  --charcoal-2: #262A2E;
  --teal: #00E5D4;
  --teal-dim: #00b8ab;
  --white: #FFFFFF;
  --ink: #E8EAEA;
  --muted: #9AA1A6;
  --danger: #ff6b6b;
  --ok: #00E5D4;
  --max: 70rem;
  --prose: 42rem;
  --header-h: 4.25rem;
  --radius: 0.5rem;
  --font: "Satoshi", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--black);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--white); }
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 0.75rem;
  top: -3rem;
  background: var(--teal);
  color: var(--black);
  padding: 0.5rem 0.85rem;
  font-weight: 700;
  z-index: 100;
}
.skip:focus { top: 0.75rem; }

/* Masthead + header */
.masthead {
  display: block;
  background: #000;
  line-height: 0;
}
.masthead img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 1128 / 191;
  object-fit: cover;
  object-position: center;
}
@media (max-width: 720px) {
  .masthead img {
    aspect-ratio: 2350 / 1090;
  }
}

.site-header {
  background: #000;
}
.nav-bar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(0,0,0,0.92);
  border-bottom: 1px solid #22262a;
  border-top: 1px solid #1a1d20;
  backdrop-filter: blur(8px);
}
.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.7rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
}
.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex: 0 1 auto;
}
.logo img {
  height: 2.6rem;
  width: auto;
}
.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid #333;
  color: var(--white);
  padding: 0.4rem 0.65rem;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 0.25rem;
}
.nav-toggle[aria-expanded="true"] { border-color: var(--teal); color: var(--teal); }
.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1.5rem;
}
.site-nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  padding-bottom: 0.15rem;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover { color: var(--teal); }
.site-nav a[aria-current="page"] {
  color: var(--white);
  border-bottom-color: var(--teal);
}

@media (max-width: 720px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    display: none;
    position: absolute;
    left: 0; right: 0;
    top: 100%;
    background: #0a0b0c;
    border-bottom: 1px solid #22262a;
    padding: 0.5rem 0 1rem;
  }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; gap: 0; padding: 0 1.25rem; }
  .site-nav a { display: block; padding: 0.7rem 0; border-bottom: 1px solid #222; }
  .site-nav a[aria-current="page"] { border-bottom-color: var(--teal); }
}

/* Layout */
main { flex: 1 0 auto; }
.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2.5rem 1.25rem 4rem;
}
.prose { max-width: var(--prose); }
.kicker {
  color: var(--teal);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 0 0 0.75rem;
}
h1, h2, h3 {
  color: var(--white);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
h1 { font-size: clamp(2rem, 5vw, 3.25rem); margin: 0 0 1rem; }
h2 { font-size: clamp(1.4rem, 3vw, 1.85rem); margin: 2.25rem 0 0.85rem; }
h3 { font-size: 1.15rem; margin: 1.5rem 0 0.5rem; }
.lede {
  font-size: 1.2rem;
  color: var(--ink);
  margin: 0 0 1.5rem;
}
.muted { color: var(--muted); }
hr.rule {
  border: 0;
  border-top: 1px solid #2a2f33;
  margin: 2.5rem 0;
}

/* Hero */
.hero {
  padding: 3.25rem 1.25rem 2.5rem;
  border-bottom: 1px solid #1a1d20;
  background:
    radial-gradient(800px 280px at 80% -40px, rgba(0,229,212,0.08), transparent 60%),
    #000;
}
.hero-inner { max-width: var(--max); margin: 0 auto; }
.hero h1 { max-width: 18ch; }
.hero .word-teal { color: var(--teal); }
.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr;
  gap: 2.5rem;
  align-items: start;
}
@media (max-width: 860px) {
  .hero { padding-top: 2rem; }
  .hero-grid { grid-template-columns: 1fr; gap: 2rem; }
}

/* Cards */
.card {
  background: var(--charcoal);
  border: 1px solid #2a2f33;
  border-radius: var(--radius);
  padding: 1.5rem 1.4rem;
}
.pillars {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  margin: 2rem 0 0;
}
@media (max-width: 1100px) {
  .pillars { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 700px) {
  .pillars { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .pillars { grid-template-columns: 1fr; }
}
.pillar {
  background: var(--charcoal);
  border-top: 2px solid var(--teal);
  padding: 1.15rem 1.1rem 1.25rem;
  scroll-margin-top: 5.5rem;
}
.pillar h2, .pillar h3 { margin: 0 0 0.4rem; font-size: 1.05rem; }
.pillar p { margin: 0; color: var(--muted); font-size: 0.95rem; }

/* Archive list */
.issue-list { list-style: none; margin: 0; padding: 0; }
.issue-list li { border-top: 1px solid #2a2f33; }
.issue-list a {
  display: block;
  text-decoration: none;
  color: inherit;
  padding: 1.15rem 0;
}
.issue-list a:hover .issue-title { color: var(--teal); }
.issue-date {
  color: var(--teal);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.issue-title {
  color: var(--white);
  font-weight: 700;
  font-size: 1.2rem;
  margin: 0.2rem 0 0.35rem;
  letter-spacing: -0.02em;
}

/* Newsletter article */
.issue-header { margin-bottom: 2rem; }
.issue-header .subject { font-size: 1.15rem; color: var(--ink); margin: 0; }
.article {
  max-width: var(--prose);
}
.article p { margin: 0 0 1rem; }
.article ul, .article ol { margin: 0 0 1rem 1.2rem; padding: 0; }
.article li { margin: 0 0 0.35rem; }
.article strong { color: var(--white); font-weight: 700; }
.article h2 { margin-top: 2rem; }
.takeaway {
  background: var(--charcoal);
  border-left: 3px solid var(--teal);
  padding: 0.9rem 1.1rem;
  margin: 0 0 1.25rem;
}
.takeaway strong { color: var(--teal); }
.sources { font-size: 0.92rem; color: var(--muted); margin: 0 0 1.5rem; }
.signoff {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin: 2rem 0 0.75rem;
}
.signoff img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  object-position: center top;
  border-radius: 50%;
  background: var(--charcoal);
}
.signoff p { margin: 0; }
.lesson { font-style: italic; color: var(--muted); }
.follow { font-size: 0.95rem; }

/* Forms */
.signup-form, .contact-form {
  display: grid;
  gap: 0.85rem;
}
.signup-form label, .contact-form label {
  font-weight: 600;
  color: var(--white);
  font-size: 0.95rem;
}
.optional { color: var(--muted); font-weight: 500; }
.signup-form input[type="email"],
.signup-form input[type="text"],
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
  width: 100%;
  background: #0d0f11;
  color: var(--white);
  border: 1px solid #3a4046;
  border-radius: 0.35rem;
  padding: 0.7rem 0.8rem;
  font-family: inherit;
  font-size: 1rem;
}
.signup-form input:focus, .contact-form input:focus, .contact-form textarea:focus {
  border-color: var(--teal);
}
.consent {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  font-weight: 500;
  color: var(--ink);
  font-size: 0.92rem;
  line-height: 1.45;
}
.consent input { margin-top: 0.25rem; flex: 0 0 auto; accent-color: var(--teal); width: 1.05rem; height: 1.05rem; }
.btn, button[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--teal);
  color: var(--black);
  font-family: inherit;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.02em;
  border: 0;
  border-radius: 0.35rem;
  padding: 0.8rem 1.15rem;
  cursor: pointer;
  text-decoration: none;
}
.btn:hover, button[type="submit"]:hover { background: #4ff0e4; color: var(--black); }
.btn-block { width: 100%; }
.unsub-note, .form-note {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0;
}
.form-status {
  margin: 0;
  min-height: 1.3em;
  font-weight: 600;
  font-size: 0.95rem;
}
.form-status.is-ok { color: var(--ok); }
.form-status.is-err { color: var(--danger); }
.form-status.is-wait { color: var(--muted); }
.field-error { color: var(--danger); font-size: 0.85rem; margin: -0.4rem 0 0; }
.hp {
  position: absolute !important;
  left: -10000px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

/* About */
.bio {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  margin: 1.5rem 0 0;
}
.bio img {
  width: 140px;
  height: 140px;
  object-fit: cover;
  object-position: center 10%;
  border-radius: 50%;
  background: var(--charcoal);
  flex: 0 0 auto;
}
@media (max-width: 560px) {
  .bio { flex-direction: column; }
  .bio img { width: 120px; height: 120px; }
}

/* Footer */
.site-footer {
  background: #0a0b0c;
  border-top: 1px solid #1c2024;
  padding: 2rem 1.25rem 2.5rem;
  color: var(--muted);
  font-size: 0.92rem;
}
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  align-items: flex-start;
}
.site-footer a { color: var(--ink); text-decoration: none; }
.site-footer a:hover { color: var(--teal); }
.footer-links { display: flex; gap: 1.1rem; flex-wrap: wrap; }
.closer { color: var(--teal); font-style: italic; margin: 0 0 0.4rem; }

/* Contact socials */
.socials { list-style: none; padding: 0; margin: 0 0 2rem; }
.socials li { margin: 0 0 0.5rem; }

.watch-by-topic { margin: 2.5rem 0 0; }
.watch-by-topic .pillars { margin-top: 1rem; }
.watch-by-topic a { color: var(--teal); text-decoration: none; }
.watch-by-topic a:hover { text-decoration: underline; }

/* SEO / typography tweaks (2026-11-16) */
.h1-sub { display: block; margin-top: 0.5rem; }
.disclaimer { font-size: 0.875rem; margin-top: 0.5rem; }
h2.issue-title { font-size: 1.2rem; font-weight: 700; }
.issue-nav { margin-top: 2.5rem; }
.free-note { margin: 0 0 0.35rem; font-weight: 600; color: var(--white); }
.faq { margin-top: 3rem; }

/* Legal pages + forms added 16 Nov 2026 */
.legal .effective { color: var(--muted); font-size: 0.95rem; }
.legal .toc { background: var(--charcoal); border: 1px solid var(--charcoal-2); border-radius: var(--radius); padding: 1rem 1.25rem; margin: 1.25rem 0 0.5rem; }
.legal .toc p { margin: 0 0 0.4rem; }
.legal .toc ol { margin: 0; padding-left: 1.3rem; columns: 2; column-gap: 1.75rem; }
.legal .toc li { margin: 0.2rem 0; break-inside: avoid; }
.legal .toc a { text-decoration: none; }
.legal .toc a:hover { text-decoration: underline; }
.legal h2 { scroll-margin-top: 5rem; }
.legal .caps { font-size: 0.9rem; }
.legal .ptable { width: 100%; border-collapse: collapse; margin: 0.75rem 0 1rem; font-size: 0.95rem; }
.legal .ptable th, .legal .ptable td { border: 1px solid var(--charcoal-2); padding: 0.5rem 0.65rem; text-align: left; vertical-align: top; }
.legal .ptable th { background: var(--charcoal); color: var(--white); }
.contact-form textarea { resize: vertical; font-family: inherit; }
@media (max-width: 40rem) { .legal .toc ol { columns: 1; } }

.more-tools { flex-basis: 100%; margin: 0.85rem 0 0; color: var(--muted); }
.more-tools a { text-decoration: underline; }
