/* variables */
:root {
  --max-section-height: 1400px;

  --font-family-main: futura-pt, sans-serif;
  --font-family-serif: freight-text-pro, "Iowan Old Style", "Hoefler Text", Georgia, serif;
  --font-family-display-serif: adobe-caslon-pro, "Adobe Caslon Pro", "Garamond", "Hoefler Text", Georgia, serif;

  --font-size-biggest: 64px;
  --font-size-small: 16px;
  --font-size-normal: 18px;
  --font-size-larger: 24px;
  --font-size-tiny: 14px;
  --font-size-title: 32px;

  --color-1-black: #050807;
  --color-2-grey: #707070;
  --color-3-grey: #424746;
  --color-4-dark-green: #72827F;
  --color-5-light-green: #D5E1DF;
  --color-6-white: #F2F2F2;
  --color-7-white: #FFFFFF;
  --color-8-deep-green: #122E28;
  --color-8-deep-green-hl: #256053;
  --color-9-grey: #888888;
  --color-10-red-op: rgba(255, 128, 128, 0.8);
  --color-11-red: rgb(255, 128, 128);
  --color-12-dark-green: #414947;
  --color-13-dark-green: #313736;
  --color-14-lighter-green: #E7EEED;
  --color-15-lighter-green: #DEE8E6;
  --color-16-another-green: #5BA494;

  --margin-top: 5em;
  --margin-bottom-short: 3em;
  --margin-top-cards: 4em;
  --margin-left: 5em;

  --media-query-size: 900px; /* doesn't work */

  --card1-size: 420px;
  --card1-img-height: 256px;
  --card1-border-radius: 16px;
  --card1-shadow: 0px 3px 6px #bdbdbd;

  --card2-size: 300px;
  --card2-img-height: 200px;
  --card2-border-radius: 16px;
  --card2-shadow: 0px 3px 6px #bdbdbd;

  --header-height: 4em;
}

/* font style */
* {
  font-family: var(--font-family-main);
  font-size: var(--font-size-normal);
  font-weight: 300; 
}

.hidden {
  display: none;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
strong {
  font-weight: bold;
}
.bold {
  font-weight: 500;
}

/* Shared CTA box — used at the bottom of pillar guide, condition pages,
   About Me, and any long-form page that closes with the discovery-call ask.
   Pages opt in by rendering: <div class="cta-box"><h3>...</h3><p>...</p>
   <div class="cta-buttons"><a class="bookInBtn">...</a><a class="quizBtn">...</a></div></div> */
.cta-box {
  background: linear-gradient(135deg, var(--color-8-deep-green) 0%, #2d7a35 100%);
  color: var(--color-7-white);
  padding: 2em;
  border-radius: 8px;
  text-align: center;
}
.cta-box h3 {
  color: var(--color-7-white);
  margin-top: 0;
  margin-bottom: 0.5em;
  font-size: var(--font-size-larger);
  font-weight: 400;
  letter-spacing: 0.01em;
  border-bottom: 0;
}
.cta-box p {
  margin-bottom: 1.5em;
  opacity: 0.9;
}
.cta-buttons {
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 1em;
  flex-wrap: wrap;
}
.cta-buttons a.bookInBtn,
.cta-buttons a.quizBtn {
  display: inline-block;
  text-decoration: none;
  padding: 12px 24px;
  border-radius: 4px;
  font-weight: 500;
  letter-spacing: 0.02em;
  cursor: pointer;
  margin-top: 0;
  transition: background 0.25s ease, color 0.25s ease;
}
.cta-buttons a.bookInBtn {
  background: var(--color-7-white);
  color: var(--color-8-deep-green);
  box-shadow: none;
}
.cta-buttons a.bookInBtn:hover {
  background: #f0f0f0;
}
.cta-buttons a.quizBtn {
  background: transparent;
  color: var(--color-7-white);
  border: 2px solid var(--color-7-white);
}
.cta-buttons a.quizBtn:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* Shared pull-quote — large display callout used in long-form pages.
   Insert in markdown via: <aside class="pull-quote">…<cite>—source</cite></aside>
   Lives here (not in a per-page CSS) so blog posts and pillar/condition pages
   render it identically. */
.pull-quote {
  margin: 2.4em -1em 2.4em;
  padding: 1.4em 1em;
  border-top: 1px solid var(--color-4-dark-green);
  border-bottom: 1px solid var(--color-4-dark-green);
  border-color: rgba(114, 130, 127, 0.4);
  font-family: var(--font-family-display-serif);
  font-size: 1.6rem;
  line-height: 1.4;
  font-style: italic;
  color: var(--color-3-grey);
  text-align: center;
}
.pull-quote cite {
  display: block;
  margin-top: 0.7em;
  font-family: var(--font-family-main);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-style: normal;
  color: var(--color-4-dark-green);
}
@media (max-width: 768px) {
  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }
  .cta-buttons a.bookInBtn,
  .cta-buttons a.quizBtn {
    width: 100%;
    max-width: 250px;
  }
}

/* ────────────────────────────────────────────────────────
   SHARED HEADER — single source of truth used by every page
   ────────────────────────────────────────────────────────
   Previously each page-type stylesheet (index.css, quiz.css,
   blog.css) carried its own copy of the header rules and they
   drifted. The result on quiz/blog/guide was an unstyled MENU
   button visible at desktop, an ugly default-blue Skip-to-Content
   link, and the Start Here CTA rendering as a plain text link.
   These rules live here so any page that loads base.css gets
   the same header regardless of which other stylesheets follow. */

/* Skip-to-content — visible only on focus */
.skip-link {
  position: fixed;
  top: 0;
  left: 0;
  background: var(--color-8-deep-green);
  color: var(--color-7-white);
  padding: 0.6em 1.2em;
  text-decoration: none;
  z-index: 1000;
  transform: translateY(-150%);
  transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1);
}
.skip-link:focus {
  transform: translateY(0);
  outline: 2px solid var(--color-5-light-green);
  outline-offset: 2px;
}

/* Header bar */
#header {
  position: fixed;
  height: var(--header-height);
  width: 100%;
  background: rgba(255, 255, 255);
  box-shadow: 0 1px 0 0 #eee, 0 0 1px 0 #eee;
  color: var(--color-9-grey);
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  z-index: 10;
}
.header__icon-cont {
  display: flex;
  align-items: center;
  cursor: pointer;
}
#logo-icon {
  display: inline-block;
  height: 32px;
  margin-left: 1em;
  margin-right: 0.5em;
}
#header a {
  color: var(--color-9-grey);
  cursor: pointer;
  text-decoration: none;
}
#header a:hover { color: var(--color-11-red); }
.header__nav {
  padding-right: 1em;
  display: flex;
  align-items: center;
  gap: 0.4em;
}
.header__nav a {
  display: inline-block;
  margin-right: 0.6em;
  font-size: 14px;
}
/* Decorative inline icons inside nav links — sized small, dimmed.
   Covers the stars next to "Take the Quiz" and the cross next to
   "About Me". Without this rule the SVGs render at intrinsic size. */
.header__nav img {
  height: 0.7em;
  position: relative;
  top: -2px;
  opacity: 0.55;
}
#header a:hover img { opacity: 0.85; }
.header__nav img.star1-1 {
  height: 0.6em;
  top: 4px;
  left: -2px;
}

/* Start Here CTA — closed plate, fills on hover */
.header__nav a.header__cta {
  display: inline-block;
  padding: 8px 14px 7px;
  margin-right: 1em;
  font-family: var(--font-family-main);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  line-height: 1;
  color: var(--color-8-deep-green);
  background: transparent;
  border: 1px solid var(--color-8-deep-green);
  border-radius: 0;
  transition:
    letter-spacing 280ms cubic-bezier(0.22, 1, 0.36, 1),
    color 200ms ease,
    border-color 200ms ease,
    background 200ms ease;
  white-space: nowrap;
}
.header__nav a.header__cta:hover,
#header .header__nav a.header__cta:hover {
  color: var(--color-7-white);
  background: var(--color-8-deep-green);
  border-color: var(--color-8-deep-green);
  letter-spacing: 0.22em;
}
.header__nav a.header__cta:focus-visible {
  outline: 2px solid var(--color-8-deep-green-hl);
  outline-offset: 4px;
}

/* MENU toggle — hidden on desktop, only appears in mobile drawer mode */
.header__toggle { display: none; }

/* Mobile drawer — at ≤960px the inline nav can't fit beside the brand mark */
@media (max-width: 960px) {
  #header {
    flex-wrap: wrap;
    position: relative;
    padding: 0.5em 0;
  }
  .header__icon-cont { flex: 1; align-items: center; }
  #logo-icon { height: 28px; }

  .header__toggle {
    display: inline-flex;
    align-items: center;
    background: transparent;
    border: 0;
    border-top: 1px solid var(--color-8-deep-green);
    border-bottom: 1px solid var(--color-8-deep-green);
    padding: 8px 4px 7px;
    margin-right: 1em;
    cursor: pointer;
    font-family: var(--font-family-main);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.20em;
    text-transform: uppercase;
    color: var(--color-8-deep-green);
    white-space: nowrap;
    transition:
      letter-spacing 280ms cubic-bezier(0.22, 1, 0.36, 1),
      color 200ms ease,
      border-color 200ms ease;
  }
  .header__toggle:hover,
  #header .header__toggle:hover {
    color: var(--color-8-deep-green-hl);
    border-top-color: var(--color-8-deep-green-hl);
    border-bottom-color: var(--color-8-deep-green-hl);
  }
  .header__toggle:focus-visible {
    outline: 2px solid var(--color-8-deep-green-hl);
    outline-offset: 4px;
  }

  .header__nav {
    order: 3;
    width: 100%;
    margin: 0;
    padding: 0 1.5em;
    background: var(--color-7-white);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    transition:
      max-height 380ms cubic-bezier(0.22, 1, 0.36, 1),
      opacity 240ms ease,
      padding 240ms cubic-bezier(0.22, 1, 0.36, 1);
  }
  .header__nav.is-open {
    max-height: 600px;
    opacity: 1;
    padding: 0.4em 1.5em 1.4em;
    border-top: 1px solid rgba(18, 46, 40, 0.12);
    border-bottom: 1px solid var(--color-8-deep-green);
  }
  .header__nav a:not(.header__cta) {
    display: block;
    margin: 0;
    padding: 16px 0 14px;
    font-family: var(--font-family-serif);
    font-size: 18px;
    font-weight: 400;
    letter-spacing: 0.01em;
    color: var(--color-12-dark-green);
    text-align: left;
    border-bottom: 1px solid rgba(18, 46, 40, 0.10);
    transition: color 200ms ease;
  }
  #header .header__nav a:not(.header__cta):hover { color: var(--color-8-deep-green); }

  .header__nav a.header__cta {
    display: block;
    text-align: center;
    margin: 22px auto 4px;
    padding: 15px 28px 13px;
    font-size: 11px;
    letter-spacing: 0.22em;
    color: var(--color-7-white);
    background: var(--color-8-deep-green);
    border: 1px solid var(--color-8-deep-green);
  }
  #header .header__nav a.header__cta:hover {
    color: var(--color-7-white);
    background: var(--color-8-deep-green-hl);
    border-color: var(--color-8-deep-green-hl);
  }
}
