/* ------------------------------------------------------------------
   The 5Q Method — Developed by Hannum Advisory
   Shared by index.html, advisory.html, thank-you.html
   Tokens
------------------------------------------------------------------ */
:root {
  --paper: #fcfbf8;
  --ink: #142647;
  --ink-2: #4a5670;
  --rule: #d9dee7;
  --ice: #eef2f7;
  --gold: #c9a227;

  --serif: "Fraunces", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;

  --wrap: 1120px;
  --gutter: 20px;
  --prose: 62ch;
  --header-h: 7.75rem;
}

@media (min-width: 640px) {
  :root { --gutter: 32px; }
}
@media (min-width: 720px) {
  :root { --header-h: 5rem; }
}
@media (min-width: 1024px) {
  :root { --gutter: 40px; }
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
@media (min-width: 768px) {
  body { font-size: 1.125rem; }
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.1;
  margin: 0;
  letter-spacing: -0.01em;
}
h1 {
  font-size: clamp(2.75rem, 8.5vw, 5.25rem);
  max-width: 14ch;
  line-height: 1.02;
  letter-spacing: -0.02em;
}
h2 {
  font-size: clamp(1.85rem, 4vw, 2.6rem);
  max-width: 22ch;
}
h3 {
  font-size: 1.25rem;
}

p { margin: 0; }
p + p { margin-top: 1rem; }

a { color: inherit; }

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.prose {
  max-width: var(--prose);
  margin-top: 1.25rem;
}
.prose p + p { margin-top: 1.1rem; }
.prose-after { margin-top: 2.75rem; }

.section {
  padding: 4rem 0;
  border-top: 1px solid var(--rule);
}
@media (min-width: 768px) {
  .section { padding: 6rem 0; }
}

.k {
  font-family: var(--serif);
  font-size: 1rem;
  color: var(--ink-2);
  white-space: nowrap;
}

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -3rem;
  background: var(--ink);
  color: #fff;
  padding: 0.5rem 0.75rem;
  z-index: 20;
  text-decoration: none;
}
.skip:focus { top: 1rem; }

/* ------------------------------------------------------------------
   Header
------------------------------------------------------------------ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(252, 251, 248, 0.92);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--rule);
}
.header-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
  padding-top: 0.9rem;
  padding-bottom: 0.9rem;
}
.brand {
  display: flex;
  flex-direction: column;
}
.logotype {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.logotype span,
.footer-brand span { color: var(--gold); }
.brand-sub {
  display: none;
  font-size: 0.78rem;
  line-height: 1.3;
  color: var(--ink-2);
  margin-top: 0.15rem;
}
.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.5rem;
}
.site-nav a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink-2);
  text-decoration: none;
  padding: 0.15rem 0;
}
.site-nav a:hover,
.site-nav a[aria-current="page"] { color: var(--ink); }

@media (min-width: 720px) {
  .header-inner {
    flex-direction: row;
    align-items: baseline;
    justify-content: space-between;
    padding-top: 1.1rem;
    padding-bottom: 1rem;
  }
  .brand-sub { display: block; }
  .site-nav { flex-wrap: nowrap; gap: 1.5rem; }
}
@media (min-width: 900px) {
  .site-nav { gap: 2rem; }
}

/* ------------------------------------------------------------------
   Hero
------------------------------------------------------------------ */
.hero {
  padding: 4rem 0 3.5rem;
}
@media (min-width: 768px) {
  .hero { padding: 7.5rem 0 5.5rem; }
}
.lede {
  font-size: clamp(1.15rem, 2.2vw, 1.4rem);
  line-height: 1.45;
  max-width: 36ch;
  margin-top: 1.5rem;
}
.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 2rem;
  margin-top: 2.25rem;
}
.hero-note {
  margin-top: 2rem;
  font-size: 0.95rem;
  color: var(--ink-2);
}

.button {
  display: inline-block;
  background: var(--ink);
  color: #fff;
  font-weight: 500;
  font-size: 1rem;
  line-height: 1.2;
  padding: 0.95rem 1.5rem;
  border-radius: 3px;
  text-decoration: none;
  border: 0;
  cursor: pointer;
}
.button:hover { background: #0e1b36; }
.button-quiet {
  font-weight: 500;
  font-size: 1rem;
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.25em;
  padding: 0.95rem 0;
}
.button-quiet:hover { text-decoration-thickness: 2px; }

/* One-line creed under the hero */
.creed {
  border-top: 1px solid var(--rule);
  padding: 2.25rem 0;
}
.creed p {
  font-family: var(--serif);
  font-size: clamp(1.25rem, 2.3vw, 1.6rem);
  line-height: 1.45;
  max-width: 64ch;
}
.creed span { display: block; }
@media (min-width: 768px) {
  .creed { padding: 3rem 0; }
  .creed span { display: inline; }
  .creed-stack span { display: block; }
}

/* ------------------------------------------------------------------
   Pull line
------------------------------------------------------------------ */
.pull {
  font-family: var(--serif);
  font-size: clamp(1.4rem, 3vw, 2rem);
  line-height: 1.25;
  max-width: 28ch;
  margin-top: 2.75rem;
  padding-left: 1.25rem;
  border-left: 3px solid var(--gold);
}

/* ------------------------------------------------------------------
   The five questions
------------------------------------------------------------------ */
.questions {
  list-style: none;
  margin: 2.75rem 0 0;
  padding: 0;
  border-top: 1px solid var(--rule);
}
.questions li {
  display: grid;
  grid-template-columns: 3.25rem 1fr;
  column-gap: 0.75rem;
  padding: 1.4rem 0;
  border-bottom: 1px solid var(--rule);
}
.q-num {
  font-family: var(--serif);
  font-size: 1.3rem;
  line-height: 1.25;
  padding-top: 0.2rem;
}
.q-title {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 3.2vw, 2rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
}
.q-desc {
  grid-column: 2;
  margin-top: 0.5rem;
  color: var(--ink-2);
  max-width: 52ch;
}
@media (min-width: 900px) {
  .questions li {
    grid-template-columns: 5rem minmax(0, 15ch) 1fr;
    column-gap: 2rem;
    padding: 1.75rem 0;
  }
  .q-num { font-size: 1.5rem; padding-top: 0.35rem; }
  .q-desc { grid-column: 3; margin-top: 0; padding-top: 0.45rem; }
}

/* Loop diagram */
.loop {
  margin: 3.5rem 0 0;
}
.loop-wide { display: none; }
.loop-tall {
  display: block;
  width: 100%;
  height: auto;
  max-width: 420px;
  margin: 0 auto;
}
@media (min-width: 768px) {
  .loop-wide { display: block; width: 100%; height: auto; }
  .loop-tall { display: none; }
}
.loop-caption {
  margin-top: 1.25rem;
  text-align: center;
  font-size: 0.95rem;
  color: var(--ink-2);
  max-width: 52ch;
  margin-left: auto;
  margin-right: auto;
}

.loop text { font-family: var(--sans); fill: var(--ink); }
.loop .num { font-family: var(--serif); font-size: 20px; font-weight: 500; }
.loop .q { font-size: 18px; font-weight: 500; }
.loop .lbl { font-size: 14px; text-anchor: middle; fill: var(--ink-2); }
.loop .lbl-l { font-size: 15px; fill: var(--ink-2); }
.loop .small { font-size: 12.5px; fill: var(--ink-2); }
.loop .node { fill: var(--paper); stroke: var(--ink); stroke-width: 1.5; }
.loop .bar { fill: var(--paper); stroke: var(--ink); stroke-width: 1.5; }
.loop .bar-accent { fill: var(--gold); }
.loop .panel { fill: var(--ice); }
.loop .ln { stroke: var(--ink); stroke-width: 1.5; fill: none; }
.loop .ln-gold { stroke: var(--gold); stroke-width: 2.5; fill: none; }
.loop .mk-ink { fill: var(--ink); }
.loop .mk-gold { fill: var(--gold); }
.loop-tall .num { font-size: 17px; }
.loop-tall .q { font-size: 17px; }

/* ------------------------------------------------------------------
   Rhythm (How the loop works)
------------------------------------------------------------------ */
.rhythm {
  list-style: none;
  margin: 2.75rem 0 0;
  padding: 0;
  position: relative;
}
.rhythm li {
  position: relative;
  padding: 0 0 2rem 2rem;
}
.rhythm li::after {
  content: "";
  position: absolute;
  left: 5px;
  top: calc(0.5rem + 11px);
  bottom: -0.5rem;
  width: 1px;
  background: var(--rule);
}
.rhythm li:last-child { padding-bottom: 0; }
.rhythm li:last-child::after { display: none; }
.rhythm li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5rem;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--paper);
  border: 1.5px solid var(--ink);
}
.rhythm li.is-review::before { background: var(--ink); }
.step-q {
  display: block;
  font-family: var(--serif);
  font-size: 1.05rem;
  color: var(--ink-2);
  margin-bottom: 0.1rem;
}
.rhythm strong {
  display: block;
  font-weight: 600;
}
.rhythm span:last-child {
  display: block;
  color: var(--ink-2);
  font-size: 0.95rem;
  margin-top: 0.15rem;
}
@media (min-width: 900px) {
  .rhythm {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 2rem;
    padding-top: 2.25rem;
    margin-top: 3.25rem;
  }
  .rhythm::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 5px;
    height: 1px;
    background: var(--rule);
  }
  .rhythm li { padding: 0; }
  .rhythm li::after { display: none; }
  .rhythm li::before { top: -2.25rem; left: 0; }
}

/* ------------------------------------------------------------------
   Three active 5Qs
------------------------------------------------------------------ */
.slots {
  list-style: none;
  margin: 2.5rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}
.slot {
  display: grid;
  grid-template-columns: 2rem 1fr;
  gap: 1rem;
  align-items: start;
  border: 1.5px solid var(--ink);
  border-radius: 3px;
  padding: 1.1rem 1.25rem 1.2rem;
}
.slot.is-open {
  border-style: dashed;
  border-color: var(--ink-2);
  color: var(--ink-2);
}
.slot-n {
  font-family: var(--serif);
  font-size: 1.5rem;
  line-height: 1;
  padding-top: 0.15rem;
}
.slot-k {
  display: block;
  font-family: var(--serif);
  font-size: 0.95rem;
  color: var(--ink-2);
  margin-bottom: 0.2rem;
}
.slot p {
  font-family: var(--serif);
  font-size: 1.2rem;
  line-height: 1.3;
}
@media (min-width: 900px) {
  .slots { grid-template-columns: repeat(3, 1fr); gap: 1rem; }
}

.q1-more {
  margin-top: 3rem;
  max-width: 62ch;
}
.q1-more-lead { color: var(--ink-2); }
.q1-list {
  list-style: none;
  margin: 0.75rem 0 0;
  padding: 0;
  border-top: 1px solid var(--rule);
}
.q1-list li {
  font-family: var(--serif);
  font-size: 1.15rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--rule);
}
.q1-note {
  margin-top: 1.25rem;
  font-size: 0.95rem;
  color: var(--ink-2);
  max-width: 62ch;
}
@media (min-width: 900px) {
  .q1-more { max-width: none; }
  .q1-more-lead { max-width: 62ch; }
  .q1-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 3rem;
  }
}

/* ------------------------------------------------------------------
   Example
------------------------------------------------------------------ */
.example {
  margin-top: 2.5rem;
  border-top: 1px solid var(--rule);
}
.ex-q1 {
  display: flex;
  gap: 1rem;
  align-items: baseline;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--rule);
}
.ex-q1 p {
  font-family: var(--serif);
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.ex-q2 { padding: 1.5rem 0 1.75rem; }
.example h3 {
  display: flex;
  gap: 0.6rem;
  align-items: baseline;
  font-size: 1.3rem;
  margin-bottom: 0.9rem;
}
.scoreboard, .status {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 52ch;
}
.scoreboard li, .status li {
  position: relative;
  padding: 0.35rem 0 0.35rem 1.5rem;
}
.scoreboard li::before, .status li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.85em;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1.5px solid var(--ink);
  background: var(--paper);
}
.status .done::before { background: var(--ink); }
.status .part::before { background: linear-gradient(90deg, var(--ink) 50%, var(--paper) 50%); }
.legend {
  margin-top: 0.9rem;
  font-size: 0.85rem;
  color: var(--ink-2);
}
.ex-marker {
  font-family: var(--serif);
  font-size: 1.15rem;
  color: var(--ink-2);
  padding: 1.5rem 0 0.25rem;
  border-top: 1px solid var(--rule);
}
.ex-review {
  display: grid;
  gap: 2.25rem;
  padding-top: 1.25rem;
}
.ex-review p { max-width: 42ch; }

/* Worked example: Q3 reports the commitments, Q4 reports the result */
.ex-sub {
  font-family: var(--serif);
  font-size: 0.95rem;
  color: var(--ink-2);
}
.ex-sub + p { margin-top: 0.2rem; }
.ex-result {
  font-family: var(--serif);
  font-size: 1.25rem;
  line-height: 1.3;
  padding-bottom: 1.1rem;
  margin-bottom: 1.1rem;
  border-bottom: 1px solid var(--rule);
}
.ex-result + .ex-sub { margin-top: 0; }

.ex-next {
  margin-top: 1.1rem;
  padding-left: 0.9rem;
  border-left: 3px solid var(--gold);
  font-size: 0.95rem;
  color: var(--ink-2);
}
@media (min-width: 900px) {
  .ex-review {
    grid-template-columns: 1.15fr 1fr 1.15fr;
    gap: 3rem;
  }
}

/* ------------------------------------------------------------------
   Advisory page: the five questions, compact
------------------------------------------------------------------ */
.qs {
  list-style: none;
  margin: 2.5rem 0 0;
  padding: 0;
  border-top: 1px solid var(--rule);
}
.qs li {
  display: grid;
  grid-template-columns: 3.25rem 1fr;
  align-items: baseline;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--rule);
}
.qs li span:last-child {
  font-family: var(--serif);
  font-size: 1.35rem;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
@media (min-width: 900px) {
  .qs {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 2.5rem;
    border-top: 0;
    margin-top: 3rem;
  }
  .qs li {
    display: block;
    padding: 1rem 0 0;
    border-bottom: 0;
    border-top: 1.5px solid var(--ink);
  }
  .qs .k { display: block; margin-bottom: 0.5rem; }
  .qs li span:last-child { font-size: 1.5rem; }
}

/* ------------------------------------------------------------------
   Advisory page: what the advisor adds
------------------------------------------------------------------ */
.adds {
  list-style: none;
  margin: 2.75rem 0 0;
  padding: 0;
  display: grid;
  gap: 0 3rem;
}
.adds li {
  padding: 1.4rem 0 1.5rem;
  border-top: 1px solid var(--rule);
}
.adds h3 {
  font-size: 1.45rem;
  margin-bottom: 0.5rem;
}
.adds p {
  color: var(--ink-2);
  max-width: 36ch;
}
@media (min-width: 640px) {
  .adds { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 900px) {
  .adds { grid-template-columns: repeat(3, 1fr); }
  .adds li { padding: 1.6rem 0 1.75rem; }
}

/* ------------------------------------------------------------------
   Advisory page: headed lists (engagement, fit)
------------------------------------------------------------------ */
.lists {
  display: grid;
  gap: 2.5rem;
  margin-top: 2.5rem;
}
.lists h3 {
  font-size: 1.4rem;
  padding-bottom: 0.6rem;
  border-bottom: 1.5px solid var(--ink);
  margin-bottom: 0.25rem;
}
.lists ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.lists li {
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--rule);
}
.lists li .k {
  display: inline-block;
  min-width: 2.4rem;
}
.lists .muted li { color: var(--ink-2); }
@media (min-width: 768px) {
  .lists-2 { grid-template-columns: 1fr 1fr; gap: 4rem; }
}
@media (min-width: 900px) {
  .lists-3 { grid-template-columns: repeat(3, 1fr); gap: 3rem; margin-top: 3rem; }
}

/* ------------------------------------------------------------------
   About (Method page and Advisory page)
------------------------------------------------------------------ */
.role {
  margin-top: 0.35rem;
  color: var(--ink-2);
}
.about-grid {
  display: grid;
  gap: 3rem;
  margin-top: 2rem;
}
.about-grid .prose { margin-top: 0; }
.bio {
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1.5px solid var(--ink);
  max-width: 44ch;
}
.bio-name {
  font-family: var(--serif);
  font-size: 1.35rem;
  line-height: 1.2;
}
.bio-role {
  margin-top: 0.15rem;
  margin-bottom: 0.75rem;
  color: var(--ink-2);
}
.bio p + p { margin-top: 0; }
.bio .bio-role + p { margin-top: 0.75rem; }
.names {
  margin: 0;
  align-self: start;
}
.names div {
  display: grid;
  grid-template-columns: 7rem 1fr;
  gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--rule);
}
.names div:first-child { border-top: 1px solid var(--rule); }
.names dt { color: var(--ink-2); font-size: 0.95rem; padding-top: 0.15rem; }
.names dd {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.15rem;
  line-height: 1.3;
}
@media (min-width: 900px) {
  .about-grid {
    grid-template-columns: 1.4fr 1fr;
    gap: 5rem;
    margin-top: 2.75rem;
  }
}

/* ------------------------------------------------------------------
   Navy closing section (home CTA, advisory contact form)
------------------------------------------------------------------ */
.contact {
  background: var(--ink);
  color: #fff;
  border-top: 0;
}
.contact h2 { color: #fff; }
.contact .prose { color: rgba(255, 255, 255, 0.82); }
.contact .button {
  background: var(--gold);
  color: var(--ink);
}
.contact .button:hover { background: #d8b23a; }
.contact .button-quiet { color: #fff; }
.contact :focus-visible { outline-color: #fff; }

.form {
  display: grid;
  gap: 1.25rem;
  max-width: 34rem;
  margin-top: 2.5rem;
}
.form label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.82);
}
.form input,
.form textarea {
  width: 100%;
  font: inherit;
  font-size: 1.05rem;
  color: #fff;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 0;
  padding: 0.55rem 0;
}
.form input:focus,
.form textarea:focus {
  outline: none;
  border-bottom-color: #fff;
}
.form textarea { min-height: 6.5rem; resize: vertical; }
.form .button {
  justify-self: start;
  margin-top: 0.5rem;
}
.hidden-field { display: none; }

/* ------------------------------------------------------------------
   Footer
------------------------------------------------------------------ */
.footer {
  padding: 1.75rem 0;
  font-size: 0.9rem;
  color: var(--ink-2);
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 2rem;
  justify-content: space-between;
}
.footer-brand {
  font-family: var(--serif);
  color: var(--ink);
}
.footer-brand a { text-decoration: none; }
.footer a {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}
