
/* ========================================
   LOCALLY HOSTED FONTS
   ======================================== */

@font-face {
  font-family: "DM Sans";
  src: url("assets/fonts/dm-sans-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "DM Sans";
  src: url("assets/fonts/dm-sans-latin-500-normal.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "DM Sans";
  src: url("assets/fonts/dm-sans-latin-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "DM Sans";
  src: url("assets/fonts/dm-sans-latin-700-normal.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "DM Serif Display";
  src: url("assets/fonts/dm-serif-display-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "DM Serif Display";
  src: url("assets/fonts/dm-serif-display-latin-400-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}



/* =========================================
   THE HORMONE HANDBOOK FOR WOMEN
   MAIN STYLESHEET
   ========================================= */

/* COLORS AND FONTS */

:root {
  --cream: #F7F9F8;
  --paper: #FFFFFF;
  --aqua: #D7EBEA;
  --blue: #CBD9E8;
  --deep-blue: #526E8B;
  --blue-dark: #304454;
  --ink: #303B45;
  --muted: #65747A;
  --line: #DCE6E8;

  --serif: 'DM Serif Display', Georgia, serif;
  --sans: 'DM Sans', Arial, sans-serif;
}

/* RESET */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 2px solid var(--deep-blue);
  outline-offset: 4px;
}

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

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-weight: 400;
}

h1,
h2,
h3,
.footer-brand {
  font-family: var(--serif);
}

.container {
  width: min(100% - 80px, 1192px);
  margin: 0 auto;
}

.section-pad {
  padding: 110px 0;
}

.center {
  text-align: center;
}

.sr-only,
.skip-link:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.skip-link:focus {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 999;
  background: white;
  padding: 12px;
}

section {
  scroll-margin-top: 40px;
}

/* =========================================
   HEADER
   ========================================= */

.site-header {
  background: var(--cream);
  border-bottom: 1px solid var(--line);
  position: relative;
  z-index: 20;
}

.header-inner {
  min-height: 105px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
}

.wordmark {
  display: flex;
  flex-direction: column;
  width: 195px;
  color: var(--blue-dark);
}

.wordmark-top {
  font-size: 9px;
  letter-spacing: 3px;
}

.wordmark-main {
  font-family: var(--serif);
  font-size: 25px;
  line-height: 1;
  margin: 3px 0 7px;
}

.wordmark-bottom {
  font-size: 9px;
  letter-spacing: 3px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav a {
  font-size: 12px;
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav a:hover {
  color: var(--deep-blue);
}

.nav .nav-button {
  background: var(--deep-blue);
  color: white;
  padding: 15px 21px;
}

.nav .nav-button:hover {
  background: var(--blue-dark);
  color: white;
}

.menu-toggle {
  display: none;
}

/* =========================================
   HERO
   ========================================= */

.hero {
  background: radial-gradient(
    ellipse at 77% 47%,
    #E0EAF3 0%,
    #F7F9F8 48%,
    #F7F9F8 100%
  );
  overflow: hidden;
}

.hero-inner {
  display: grid;
  grid-template-columns: 55% 45%;
  align-items: center;
  min-height: 670px;
}

.hero-copy {
  padding: 80px 0;
  position: relative;
  z-index: 2;
}

.eyebrow {
  color: var(--deep-blue);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  margin-bottom: 27px;
}

.eyebrow-line {
  display: inline-block;
  width: 26px;
  height: 1px;
  background: currentColor;
  vertical-align: middle;
  margin-right: 9px;
}

.hero h1 {
  font-size: clamp(52px, 5.5vw, 82px);
  line-height: 1.08;
  letter-spacing: -1.5px;
  margin-bottom: 30px;
}

.hero h1 em,
.book-copy h2 em,
.topics-section h2 em,
.authors-section h2 em {
  color: var(--deep-blue);
  font-weight: 400;
}

.hero-description {
  max-width: 445px;
  font-size: 14px;
  line-height: 1.95;
  color: var(--muted);
  margin-bottom: 30px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 23px;
  min-height: 48px;
  font-size: 12px;
  font-weight: 700;
  transition: all 0.2s ease;
}

.btn-filled {
  background: var(--deep-blue);
  color: white;
}

.btn-filled:hover {
  background: var(--blue-dark);
}

.btn-outline {
  border: 1px solid var(--deep-blue);
  color: var(--blue-dark);
}

.btn-outline:hover {
  background: var(--aqua);
}

.hero-note {
  margin-top: 38px;
  font-size: 11px;
  color: var(--muted);
}

.note-symbol {
  color: var(--deep-blue);
  margin-right: 9px;
}

.hero-art {
  height: 630px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-art-halo {
  position: absolute;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  background: var(--aqua);
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.hero-illustration {
  position: relative;
  z-index: 1;
  width: 100%;
  max-height: 610px;
  object-fit: contain;
  transform: translate(16px, 22px);
}

.hero-art-caption {
  position: absolute;
  z-index: 2;
  right: 0;
  bottom: 45px;
  font-size: 9px;
  letter-spacing: 2px;
  color: var(--deep-blue);
}

/* =========================================
   BENEFITS
   ========================================= */

.benefits {
  background: #E3EFEE;
  border-bottom: 1px solid #D0E4E5;
}

.benefit-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 34px 0;
}

.benefit {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 5px 25px;
  border-right: 1px solid #C7DCDF;
}

.benefit:first-child {
  padding-left: 0;
}

.benefit:last-child {
  border: 0;
}

.benefit-icon {
  font-size: 29px;
  color: var(--deep-blue);
}

.benefit strong {
  font-size: 12px;
}

.benefit p {
  font-size: 11px;
  color: var(--muted);
  margin: 8px 0 0;
}

/* =========================================
   BOOK SECTION
   ========================================= */

.book-section {
  background: white;
}

.book-grid {
  display: grid;
  grid-template-columns: 48% 52%;
  align-items: center;
  gap: 35px;
}

.book-image-area {
  position: relative;
  min-height: 540px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.book-halo {
  position: absolute;
  width: 430px;
  height: 430px;
  border-radius: 50%;
  background: #DFEAEC;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.book-cover {
  position: relative;
  z-index: 2;
  width: 320px;
  max-width: 75%;
  height: auto;
  object-fit: contain;
  transform: rotate(-3deg);
  filter: drop-shadow(15px 20px 18px rgba(48, 59, 69, 0.18));
  transition: transform 0.3s ease;
}

.book-cover:hover {
  transform: rotate(0deg) translateY(-5px);
}

.book-copy {
  padding: 25px 20px;
}

.book-copy h2,
.topics-section h2,
.authors-section h2 {
  font-size: clamp(38px, 4.2vw, 60px);
  line-height: 1.17;
  margin-bottom: 25px;
}

.book-copy p:not(.eyebrow) {
  font-size: 14px;
  line-height: 1.95;
  color: var(--muted);
  max-width: 510px;
}

.book-copy strong {
  color: var(--ink);
}

.tiny-divider {
  width: 40px;
  height: 2px;
  background: var(--deep-blue);
  margin-bottom: 25px;
}

.text-link {
  display: inline-block;
  margin-top: 18px;
  padding-bottom: 9px;
  font-size: 12px;
  font-weight: 700;
  color: var(--blue-dark);
  border-bottom: 1px solid var(--deep-blue);
}

/* =========================================
   TOPICS
   ========================================= */

.topics-section {
  background: #F0F6F6;
}

.section-intro {
  max-width: 570px;
  margin: -5px auto 45px;
  font-size: 14px;
  line-height: 1.9;
  color: var(--muted);
}

.topic-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.topic-card {
  background: white;
  border: 1px solid var(--line);
  padding: 30px 25px;
  min-height: 270px;
  transition: transform 0.3s, box-shadow 0.3s;
}

.topic-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(37, 56, 74, 0.07);
}

.topic-number {
  font-size: 10px;
  color: var(--deep-blue);
  letter-spacing: 1px;
}

.topic-icon {
  font-size: 37px;
  color: var(--deep-blue);
  margin: 25px 0 15px;
}

.topic-card h3 {
  font-size: 23px;
  margin-bottom: 12px;
}

.topic-card p {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.85;
}

/* =========================================
   NEWSLETTER
   ========================================= */

.newsletter-section {
  background: var(--deep-blue);
  color: white;
}

.newsletter-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 55px;
  padding: 80px 0;
}

.eyebrow.light {
  color: #DAE7F1;
}

.newsletter-copy h2 {
  font-size: clamp(45px, 5vw, 68px);
  line-height: 1.1;
  margin-bottom: 23px;
}

.newsletter-copy h2 em {
  color: var(--aqua);
}

.newsletter-copy p:not(.eyebrow) {
  font-size: 14px;
  line-height: 1.9;
  max-width: 440px;
  color: #F1F7F8;
}

.newsletter-signup {
  background: white;
  color: var(--ink);
  padding: 40px;
  box-shadow: 0 15px 40px rgba(28, 57, 68, 0.12);
}

.newsletter-signup h3 {
  font-size: 31px;
  margin-bottom: 12px;
}

.newsletter-signup > p {
  font-size: 12px;
  color: var(--muted);
}

.input-row {
  display: flex;
  border: 1px solid #CFDEE4;
  min-height: 53px;
  margin-top: 28px;
}

.input-row input {
  flex: 1;
  min-width: 0;
  border: none;
  padding: 0 16px;
  background: transparent;
  font-size: 12px;
}

.input-row button {
  border: none;
  padding: 0 20px;
  background: var(--deep-blue);
  color: white;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.input-row button:hover {
  background: var(--blue-dark);
}

.input-row button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.newsletter-signup small {
  display: block;
  margin-top: 12px;
  font-size: 10px;
  line-height: 1.8;
  color: var(--muted);
}

.newsletter-signup small a {
  text-decoration: underline;
}

.form-message {
  font-size: 12px;
  line-height: 1.6;
  color: var(--blue-dark);
  min-height: 18px;
  margin: 10px 0 0;
}

/* =========================================
   AUTHORS
   ========================================= */

.authors-section {
  background: white;
}

.authors-grid {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 45px 1fr;
  align-items: start;
  gap: 35px;
}

.author {
  text-align: center;
  padding: 15px 25px;
}

.author-avatar {
  width: 125px;
  height: 125px;
  margin: 0 auto 23px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--aqua));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-size: 40px;
  color: var(--deep-blue);
}

.author h3 {
  font-size: 28px;
  margin-bottom: 8px;
}

.author span {
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--deep-blue);
}

.author p {
  margin-top: 16px;
  font-size: 12px;
  line-height: 1.9;
  color: var(--muted);
}

.author-separator {
  color: var(--deep-blue);
  font-size: 28px;
  padding-top: 70px;
  text-align: center;
}

/* =========================================
   CLOSING SECTION
   ========================================= */

.closing {
  background: #DBECEB;
  text-align: center;
  padding: 65px 0;
}

.closing-flower {
  font-size: 32px;
  color: var(--deep-blue);
}

.closing p {
  max-width: 670px;
  margin: 16px auto 22px;
  font-family: var(--serif);
  font-size: 31px;
  font-style: italic;
  line-height: 1.4;
}

.closing a {
  font-size: 12px;
  font-weight: 700;
  color: var(--blue-dark);
  border-bottom: 1px solid var(--deep-blue);
  padding-bottom: 6px;
}

/* =========================================
   FOOTER
   ========================================= */

.site-footer {
  background: #E3EFEE;
  color: var(--blue-dark);
  padding: 55px 20px 35px;
  text-align: center;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.footer-brand {
  color: var(--blue-dark);
  font-size: 19px;
  letter-spacing: 1px;
  line-height: 1.4;
}

.footer-brand span {
  display: block;
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 3px;
  margin-top: 5px;
}

.footer-legal-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px 30px;
  margin-top: 10px;
}

.footer-legal-links a {
  font-size: 13px;
  color: #526579;
}

.footer-legal-links a:hover {
  color: var(--blue-dark);
  text-decoration: underline;
}

.footer-legal-links a[aria-current="page"] {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.footer-divider {
  width: 100%;
  max-width: 650px;
  height: 1px;
  background: #C6DADA;
  margin: 12px auto;
}

.footer-copyright,
.footer-note {
  font-size: 12px;
  color: #526579;
  line-height: 1.7;
  margin: 0;
}

/* =========================================
   PRIVACY & DISCLAIMER PAGES
   ========================================= */

.legal-page-header {
  background: var(--cream);
  border-bottom: 1px solid var(--line);
}

.legal-header-inner {
  min-height: 105px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 25px;
}

.legal-page-logo {
  font-family: var(--serif);
  font-size: 18px;
  letter-spacing: 1px;
  color: var(--blue-dark);
}

.legal-page-logo span {
  display: block;
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 3px;
  margin-top: 5px;
}

.legal-home-link {
  font-size: 13px;
  color: var(--deep-blue);
}

.legal-home-link:hover {
  text-decoration: underline;
}

.legal-page {
  min-height: 70vh;
  background: white;
  padding: 85px 24px 105px;
}

.legal-page-inner {
  width: 100%;
  max-width: 740px;
  margin: 0 auto;
}

.legal-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2.5px;
  color: var(--deep-blue);
  text-transform: uppercase;
  margin-bottom: 20px;
}

.legal-page h1 {
  font-size: clamp(40px, 5vw, 58px);
  line-height: 1.2;
  margin-bottom: 22px;
}

.legal-page h1 em {
  color: var(--deep-blue);
}

.legal-page h2 {
  font-size: 25px;
  margin: 38px 0 13px;
  color: var(--blue-dark);
}

.legal-page p,
.legal-page li {
  color: var(--muted);
  font-size: 14px;
  line-height: 2;
  margin-bottom: 17px;
}

.legal-page ul {
  padding-left: 25px;
  margin-bottom: 25px;
}

.legal-page .legal-date {
  font-size: 12px;
  margin-bottom: 35px;
}

.legal-page a {
  color: var(--deep-blue);
}

.legal-page a:hover {
  text-decoration: underline;
}

.legal-return {
  display: inline-block;
  margin-top: 40px;
  font-size: 13px;
  text-underline-offset: 4px;
}

/* =========================================
   TABLET
   ========================================= */

@media (max-width: 1000px) {

  .container {
    width: calc(100% - 55px);
  }

  .nav {
    gap: 17px;
  }

  .hero-inner {
    grid-template-columns: 55% 45%;
  }

  .hero-art-halo {
    width: 380px;
    height: 380px;
  }

  .topic-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .book-halo {
    width: 360px;
    height: 360px;
  }

  .newsletter-inner {
    gap: 30px;
  }

}

/* =========================================
   MOBILE
   ========================================= */

@media (max-width: 760px) {

  .container {
    width: calc(100% - 42px);
  }

  .section-pad {
    padding: 75px 0;
  }

  .header-inner {
    min-height: 84px;
  }

  .wordmark {
    width: 150px;
  }

  .wordmark-main {
    font-size: 20px;
  }

  .menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: 0;
    padding: 10px;
    cursor: pointer;
  }

  .menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--ink);
  }

  .nav {
    position: absolute;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    top: 84px;
    left: 0;
    right: 0;
    padding: 16px 22px 24px;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 25px rgba(39, 63, 80, 0.08);
  }

  .nav.is-open {
    display: flex;
  }

  .nav a {
    padding: 13px 8px;
    font-size: 14px;
  }

  .nav .nav-button {
    text-align: center;
    margin-top: 8px;
  }

  .hero-inner {
    display: flex;
    flex-direction: column;
    min-height: auto;
  }

  .hero-copy {
    width: 100%;
    padding: 70px 0 0;
  }

  .hero h1 {
    font-size: clamp(47px, 10vw, 72px);
  }

  .hero-art {
    width: 100%;
    height: 380px;
  }

  .hero-art-halo {
    width: 330px;
    height: 330px;
  }

  .hero-illustration {
    height: 360px;
    transform: none;
  }

  .hero-art-caption {
    right: 0;
    bottom: 20px;
  }

  .benefit-grid {
    grid-template-columns: 1fr;
    padding: 18px 0;
  }

  .benefit,
  .benefit:first-child {
    padding: 17px 0;
    border-right: 0;
    border-bottom: 1px solid #C7DCDF;
  }

  .benefit:last-child {
    border-bottom: 0;
  }

  .book-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .book-image-area {
    min-height: 420px;
  }

  .book-halo {
    width: 330px;
    height: 330px;
  }

  .book-cover {
    width: 245px;
  }

  .book-copy {
    padding: 0;
  }

  .book-copy h2,
  .topics-section h2,
  .authors-section h2 {
    font-size: 43px;
  }

  .newsletter-inner {
    grid-template-columns: 1fr;
    padding: 65px 0;
  }

  .newsletter-signup {
    padding: 32px 24px;
  }

  .authors-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .author-separator {
    padding: 0;
  }

  .legal-header-inner {
    min-height: 85px;
  }

  .legal-page {
    padding: 65px 20px 85px;
  }

  .legal-page-logo {
    font-size: 14px;
  }

}

/* =========================================
   SMALL PHONES
   ========================================= */

@media (max-width: 440px) {

  .hero h1 {
    font-size: 46px;
  }

  .actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .topic-grid {
    grid-template-columns: 1fr;
  }

  .topic-card {
    min-height: 0;
  }

  .input-row {
    flex-direction: column;
  }

  .input-row input {
    min-height: 50px;
  }

  .input-row button {
    min-height: 45px;
  }

  .closing p {
    font-size: 27px;
  }

  .footer-legal-links {
    gap: 14px 20px;
  }

  .legal-home-link {
    font-size: 11px;
  }

}


/* ========================================
   AUTHOR PHOTOGRAPHS
   ======================================== */

.author-avatar {
  width: 160px;
  height: 160px;
  margin: 0 auto 25px;
  padding: 5px;
  border-radius: 50%;
  background: #D7EBEA;
  overflow: hidden;
}

.author-photo {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 30%;
  transition: transform 0.3s ease;
}

.author-avatar:hover .author-photo {
  transform: scale(1.05);
}

@media (max-width: 760px) {
  .author-avatar {
    width: 145px;
    height: 145px;
  }
}



/* Newsletter coming soon */

.newsletter-coming-soon {
  padding: 20px 0;
}

.newsletter-coming-soon .newsletter-status {
  color: #526E8B;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  margin-bottom: 14px;
}

.newsletter-coming-soon p {
  color: #65747A;
  font-size: 13px;
  line-height: 1.9;
}
