@font-face {
  font-family: "Libre Baskerville";
  src: url("assets/fonts/LibreBaskerville-wght.ttf") format("truetype");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Poppins";
  src: url("assets/fonts/Poppins-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Poppins";
  src: url("assets/fonts/Poppins-SemiBold.ttf") format("truetype");
  font-weight: 600 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #21211e;
  --soft-ink: #4c4a43;
  --paper: #f6f7f2;
  --surface: #ffffff;
  --sage: #65735f;
  --clay: #9b5f48;
  --blue-gray: #536b72;
  --line: #d9ded2;
  --shadow: 0 24px 60px rgba(28, 31, 26, 0.12);
  --heading: "Libre Baskerville", Georgia, serif;
  --body: "Poppins", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.65;
}

body.nav-open {
  overflow: hidden;
}

.layout-3-only,
.layout-3-inline {
  display: none;
}

body.wmh-layout-3 .layout-3-only {
  display: block;
}

body.wmh-layout-3 .layout-3-inline {
  display: inline;
}

body.wmh-layout-3 .layout-3-hide {
  display: none;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

h1,
h2,
h3 {
  font-family: var(--heading);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: 0;
  margin: 0;
}

h1 {
  font-size: clamp(3.8rem, 6.8vw, 8.7rem);
  max-width: 100%;
  white-space: nowrap;
}

h2 {
  font-size: clamp(2rem, 5vw, 4.2rem);
}

h3 {
  font-size: 1.35rem;
}

p {
  margin: 0;
  color: var(--soft-ink);
}

p + p {
  margin-top: 1.1rem;
}

.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;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1rem clamp(1rem, 3vw, 2.5rem);
  color: #fff;
  transition: background 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.site-header.is-scrolled,
.site-header.nav-active {
  color: var(--ink);
  background: rgba(246, 247, 242, 0.96);
  box-shadow: 0 1px 0 var(--line);
  backdrop-filter: blur(12px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-family: var(--heading);
  font-size: 0.75rem;
  letter-spacing: 0;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(0.35rem, 1vw, 0.75rem);
  font-size: clamp(0.9rem, 0.78vw, 0.98rem);
  font-weight: 600;
}

.site-nav a {
  position: relative;
  padding: 0.55rem 0.75rem;
  border-radius: 999px;
  text-decoration: none;
  transition: color 160ms ease, background 160ms ease;
}

.site-nav a::after {
  position: absolute;
  right: 0.75rem;
  bottom: 0.25rem;
  left: 0.75rem;
  height: 2px;
  content: "";
  background: var(--clay);
  border-radius: 999px;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 180ms ease;
}

.site-nav a.is-active {
  color: #fff;
}

.site-header.is-scrolled .site-nav a.is-active,
.site-header.nav-active .site-nav a.is-active {
  color: var(--clay);
}

.site-nav a.is-active::after {
  transform: scaleX(1);
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--clay);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid currentColor;
  border-radius: 50%;
  color: inherit;
  background: transparent;
}

.nav-toggle-line {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
}

.dev-layout-switcher {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 30;
  display: inline-flex;
  gap: 0.35rem;
  padding: 0.35rem;
  background: rgba(33, 33, 30, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(10px);
}

.dev-layout-switcher button {
  min-height: 34px;
  padding: 0.35rem 0.65rem;
  color: rgba(255, 255, 255, 0.76);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 6px;
  font: 700 0.74rem var(--body);
  cursor: pointer;
}

.dev-layout-switcher button.is-active {
  color: #fff;
  background: var(--clay);
  border-color: var(--clay);
}

.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  align-items: end;
  overflow: hidden;
  color: #fff;
}

.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-media {
  background-image: url("assets/hero-journal-room.png");
  background-position: center;
  background-size: cover;
  transform: scale(1.02);
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(22, 24, 22, 0.82), rgba(22, 24, 22, 0.48) 45%, rgba(22, 24, 22, 0.16)),
    linear-gradient(0deg, rgba(22, 24, 22, 0.42), rgba(22, 24, 22, 0));
}

.hero-content {
  position: relative;
  width: 90%;
  margin: 0 auto;
  padding: 10rem 0 clamp(5.5rem, 8vh, 7.5rem);
}

.hero-copy {
  max-width: 880px;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1.1rem, 1.35vw, 1.55rem);
  line-height: 1.55;
}

.hero-copy strong {
  color: #fff;
  font-weight: 700;
}

.why-men-hurt-intro {
  display: grid;
  grid-template-columns: minmax(0, 45%) minmax(0, 45%);
  gap: 10%;
  align-items: start;
  width: 100%;
  margin-top: clamp(1.25rem, 2vw, 2rem);
}

.why-men-hurt-intro .hero-copy {
  align-self: start;
  max-width: none;
  margin-top: 0;
}

.james-credit {
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(1rem, 1.2vw, 1.35rem);
  font-style: italic;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(0.9rem, 1.2vw, 1.25rem);
  margin-top: clamp(1.6rem, 2.4vw, 2.6rem);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0.95rem 1.35rem;
  border: 1px solid transparent;
  border-radius: 4px;
  font-family: var(--body);
  font-size: clamp(0.96rem, 0.95vw, 1.08rem);
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
}

.button-primary {
  color: #fff;
  background: var(--clay);
  border-color: var(--clay);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: #7f4937;
  border-color: #7f4937;
}

.button-secondary {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.58);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  background: rgba(255, 255, 255, 0.2);
}

body.wmh-layout-2 h1 {
  font-size: clamp(3.4rem, 5.9vw, 7.4rem);
}

body.wmh-layout-2 .hero-content {
  width: min(1480px, calc(100% - clamp(2rem, 8vw, 9rem)));
}

body.wmh-layout-2 .hero-primary {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(300px, 0.7fr);
  column-gap: clamp(3rem, 6vw, 6.5rem);
  row-gap: 1.25rem;
  align-items: end;
}

body.wmh-layout-2 .hero-primary::after {
  position: absolute;
  top: calc(100% - 12.5rem);
  bottom: 0.35rem;
  left: calc((100% - clamp(3rem, 6vw, 6.5rem)) * 0.576 + clamp(3rem, 6vw, 6.5rem) / 2);
  width: 2px;
  content: "";
  background: var(--clay);
  border-radius: 999px;
}

body.wmh-layout-2 .hero-primary > .eyebrow,
body.wmh-layout-2 .hero-primary > h1,
body.wmh-layout-2 .hero-actions {
  grid-column: 1;
}

body.wmh-layout-2 .why-men-hurt-intro {
  display: contents;
}

body.wmh-layout-2 .why-men-hurt-intro .hero-copy:not(.james-credit) {
  grid-column: 1;
  max-width: 780px;
}

body.wmh-layout-2 .james-credit {
  grid-column: 2;
  grid-row: 3 / span 2;
  max-width: 520px;
  padding-top: 0;
  color: rgba(255, 255, 255, 0.74);
  font-size: clamp(1rem, 1.15vw, 1.32rem);
  font-style: italic;
  line-height: 1.7;
}

body.wmh-layout-2 .hero-actions {
  margin-top: clamp(1.35rem, 2vw, 2rem);
}

.identity-strip {
  border-bottom: 1px solid var(--line);
}

.identity-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}

.identity-layout h2 {
  font-size: clamp(1.9rem, 3.8vw, 3.4rem);
}

.identity-details {
  display: grid;
  gap: 0.8rem;
  max-width: 680px;
}

.identity-details p:first-child {
  color: var(--ink);
  font-weight: 700;
}

.scope {
  background: var(--paper);
}

.scope-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
  gap: 1rem;
}

.scope-panel {
  padding: clamp(1.5rem, 3vw, 2.4rem);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 14px 36px rgba(28, 31, 26, 0.06);
}

.scope-panel h2 {
  margin-bottom: 1rem;
  font-size: clamp(1.6rem, 3.2vw, 2.8rem);
}

.scope-boundary {
  border-left: 3px solid var(--clay);
}

.section-inner {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
}

section:not(.hero) {
  padding: clamp(4rem, 8vw, 7rem) 0;
}

.band {
  background: var(--surface);
}

.split,
.feature-layout,
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}

.measure {
  max-width: 680px;
}

.about-portrait {
  width: min(100%, 320px);
  height: auto;
  margin-top: 1.75rem;
  border-radius: 8px;
}

.reflection-question {
  color: var(--ink);
  font-family: var(--heading);
  font-size: clamp(1.25rem, 2.2vw, 2rem);
  line-height: 1.25;
}

.eyebrow {
  margin-bottom: 0.9rem;
  color: var(--sage);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero .eyebrow {
  margin-bottom: clamp(1rem, 1.3vw, 1.45rem);
  color: rgba(194, 211, 184, 0.94);
  font-size: clamp(0.92rem, 0.92vw, 1.14rem);
  letter-spacing: 0.1em;
}

.section-heading {
  max-width: 780px;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.section-heading p:last-child {
  max-width: 680px;
  margin-top: 1rem;
}

.principle-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.principle-card,
.resource-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(1.25rem, 3vw, 2rem);
  box-shadow: 0 14px 36px rgba(28, 31, 26, 0.06);
}

.principle-card h3,
.resource-item h3 {
  margin-top: 1.2rem;
}

.principle-card p,
.resource-item p {
  margin-top: 0.75rem;
}

.card-index {
  color: var(--blue-gray);
  font-weight: 700;
  font-size: 0.8rem;
}

.feature-copy {
  max-width: 700px;
}

.feature-copy .button {
  margin-top: 2rem;
}

.quote-panel {
  min-height: 420px;
  display: flex;
  align-items: flex-end;
  padding: clamp(1.5rem, 4vw, 3rem);
  color: #fff;
  background:
    linear-gradient(135deg, rgba(83, 107, 114, 0.95), rgba(101, 115, 95, 0.92)),
    var(--blue-gray);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.quote-panel p {
  color: #fff;
  font-family: var(--heading);
  font-size: clamp(1.65rem, 4vw, 3.4rem);
  line-height: 1.18;
}

.prompt-list {
  display: grid;
  gap: 0.45rem;
  margin: 1.2rem 0;
  padding: 0;
  color: var(--soft-ink);
  list-style: none;
}

.prompt-list li {
  position: relative;
  padding-left: 1.1rem;
}

.prompt-list li::before {
  position: absolute;
  top: 0.74em;
  left: 0;
  width: 0.35rem;
  height: 0.35rem;
  content: "";
  background: var(--clay);
  border-radius: 50%;
  transform: translateY(-50%);
}

.resource-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.resource-link {
  display: inline-block;
  margin-top: 1.25rem;
  color: var(--clay);
  font-weight: 600;
  text-underline-offset: 0.2em;
}

.resource-link:hover,
.resource-link:focus-visible {
  color: #7f4937;
}

.contact-layout {
  align-items: stretch;
}

.privacy-note {
  margin-top: 1.5rem;
  padding-left: 1rem;
  color: var(--ink);
  border-left: 3px solid var(--clay);
  font-weight: 500;
}

.contact-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  padding: clamp(1.25rem, 3vw, 2rem);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.contact-link-card {
  grid-template-columns: minmax(0, 1fr);
  align-content: start;
}

.contact-link-card h3,
.contact-link-card p {
  margin: 0;
}

.contact-link-card .button {
  justify-self: start;
  max-width: 100%;
  text-align: center;
}

.contact-form label {
  display: grid;
  gap: 0.35rem;
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 700;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  min-height: 46px;
  padding: 0.75rem;
  color: var(--ink);
  background: #fff;
  border: 1px solid #c8cec1;
  border-radius: 4px;
  font: inherit;
}

.contact-form textarea {
  resize: vertical;
}

.contact-form :disabled {
  cursor: not-allowed;
}

.contact-form input:disabled,
.contact-form select:disabled,
.contact-form textarea:disabled {
  background: var(--paper);
}

.contact-form .button:disabled {
  color: #fff;
  background: var(--soft-ink);
  border-color: var(--soft-ink);
}

.contact-surface [hidden] {
  display: none !important;
}

.contact-state p,
.contact-form .contact-field-help,
.contact-form .contact-field-error,
.contact-form .contact-form-error {
  margin: 0;
}

.contact-state p {
  white-space: pre-line;
  overflow-wrap: anywhere;
}

.contact-field-help,
.contact-field-error {
  font-size: 0.78rem;
  font-weight: 400;
  line-height: 1.5;
}

.contact-field-help {
  color: var(--soft-ink);
}

.contact-form .contact-field-error,
.contact-form .contact-form-error,
.contact-state.is-error p {
  color: #8e2923;
}

.contact-form [aria-invalid="true"] {
  border-color: #8e2923;
}

.contact-form-error {
  font-size: 0.88rem;
  overflow-wrap: anywhere;
}

.contact-skeleton {
  min-height: 70px;
  border-radius: 4px;
  background: var(--line);
}

.contact-skeleton-message {
  min-height: 160px;
}

.full {
  grid-column: 1 / -1;
}

.site-footer {
  padding: 2rem 0;
  color: #fff;
  background: var(--ink);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.86rem;
}

.footer-inner > span:first-child {
  font-family: var(--heading);
  font-weight: 700;
}

.footer-note {
  display: grid;
  gap: 0.35rem;
  justify-items: start;
  text-align: left;
}

.footer-note span {
  color: rgba(255, 255, 255, 0.72);
}

.footer-note span:last-child {
  color: rgba(255, 255, 255, 0.54);
}

@media (max-width: 900px) {
  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: fixed;
    inset: 76px 1rem auto;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
    color: var(--ink);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
  }

  .site-header.nav-active .site-nav {
    display: flex;
  }

  .site-nav a {
    padding: 0.85rem 0.5rem;
  }

  .split,
  .feature-layout,
  .contact-layout,
  .identity-layout,
  .scope-grid,
  .principle-grid,
  .resource-list {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 86vh;
  }

  .hero-content {
    padding-top: 7rem;
    padding-bottom: 3rem;
  }

  .why-men-hurt-intro {
    grid-template-columns: 1fr;
    gap: 0.9rem;
    max-width: 720px;
  }

  h1 {
    white-space: normal;
  }

  .quote-panel {
    min-height: 300px;
  }
}

@media (max-width: 560px) {
  body {
    font-size: 15px;
  }

  .site-header {
    padding: 0.85rem 1rem;
  }

  .brand span:last-child {
    max-width: 160px;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .hero-actions {
    gap: 0.65rem;
    margin-top: 1.25rem;
  }

  .button {
    min-height: 52px;
    padding-inline: 0.9rem;
  }

  h1 {
    font-size: clamp(2.65rem, 18vw, 4.6rem);
  }

  .hero-copy {
    font-size: 1rem;
    line-height: 1.55;
  }

  .hero-content {
    padding-top: 6.25rem;
    padding-bottom: 2.25rem;
  }

  .hero-overlay {
    background:
      linear-gradient(90deg, rgba(22, 24, 22, 0.86), rgba(22, 24, 22, 0.58)),
      linear-gradient(0deg, rgba(22, 24, 22, 0.42), rgba(22, 24, 22, 0));
  }

  .contact-form {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-note {
    justify-items: start;
    text-align: left;
  }
}

@media (max-width: 360px) {
  h1 {
    font-size: 2.25rem;
  }

  .hero-content {
    padding-top: 5.75rem;
  }

  .hero-copy {
    font-size: 0.92rem;
    line-height: 1.45;
  }

  .button {
    min-height: 46px;
    font-size: 0.84rem;
  }

  .button-secondary {
    min-height: auto;
    padding: 0;
    justify-content: flex-start;
    color: #fff;
    background: transparent;
    border-color: transparent;
    text-decoration: underline;
    text-underline-offset: 0.25rem;
  }
}

@media print {
  @page {
    size: letter landscape;
    margin: 0;
  }

  html,
  body {
    width: 11in;
    min-height: 8.5in;
    background: var(--paper);
  }

  body.pdf-export {
    color: var(--ink);
    overflow: visible;
  }

  body.pdf-export .site-header,
  body.pdf-export .dev-layout-switcher {
    display: none !important;
  }

  body.pdf-export .site-footer[hidden] {
    display: none !important;
  }

  body.pdf-export [data-export-section][hidden] {
    display: none !important;
  }

  body.pdf-export [data-export-section] {
    width: 100%;
    min-height: 8.5in;
    page-break-after: avoid;
    break-after: avoid;
  }

  body.pdf-export .section-inner {
    width: min(10.2in, calc(100% - 0.6in));
  }

  body.pdf-export section:not(.hero) {
    display: grid;
    align-content: center;
    padding: 0.35in 0;
  }

  body.pdf-export section:not(.hero) p,
  body.pdf-export section:not(.hero) li,
  body.pdf-export .contact-form input,
  body.pdf-export .contact-form select,
  body.pdf-export .contact-form textarea {
    font-size: 9.4pt;
    line-height: 1.38;
  }

  body.pdf-export section:not(.hero) h2 {
    font-size: 27pt;
  }

  body.pdf-export section:not(.hero) h3 {
    font-size: 14pt;
  }

  body.pdf-export .eyebrow {
    font-size: 7.4pt;
  }

  body.pdf-export p + p {
    margin-top: 0.65rem;
  }

  body.pdf-export .hero {
    min-height: 8.5in;
  }

  body.pdf-export .hero-content {
    padding-top: 0;
    padding-bottom: 0.65in;
  }

  body.pdf-export .identity-strip,
  body.pdf-export .intro,
  body.pdf-export .about,
  body.pdf-export .contact {
    background: var(--surface);
  }

  body.pdf-export .about-portrait {
    width: 1.75in;
    margin-top: 0.2in;
  }

  body.pdf-export .principle-card,
  body.pdf-export .resource-item,
  body.pdf-export .scope-panel,
  body.pdf-export .contact-form {
    padding: 0.2in;
    box-shadow: none;
  }

  body.pdf-export .principle-grid,
  body.pdf-export .resource-list {
    gap: 0.14in;
  }

  body.pdf-export .feature-layout,
  body.pdf-export .contact-layout,
  body.pdf-export .split,
  body.pdf-export .identity-layout {
    gap: 0.45in;
  }

  body.pdf-export .feature-copy .button {
    margin-top: 0.65rem;
  }

  body.pdf-export .prompt-list {
    gap: 0.16rem;
    margin: 0.55rem 0;
  }

  body.pdf-export .quote-panel {
    min-height: 3.4in;
    padding: 0.3in;
  }

  body.pdf-export .quote-panel p {
    font-size: 27pt;
  }

  body.pdf-export .contact-form {
    gap: 0.12in;
  }

  body.pdf-export .contact-form input,
  body.pdf-export .contact-form select {
    min-height: 0.32in;
    padding: 0.04in 0.08in;
  }

  body.pdf-export .contact-form textarea {
    height: 0.78in;
    min-height: 0.78in;
    padding: 0.06in 0.08in;
  }

  body.pdf-export .site-footer {
    display: grid;
    min-height: 8.5in;
    align-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
