/* Keira Haley consulting site
   Palette: navy #2A3457, mauve #B48278, cream #EDE5D1
   Display: Spectral. Body + utility: Jost. */

:root {
  --navy: #232B4A;
  --navy-deep: #1A2039;
  --mauve: #C99A90;
  --mauve-deep: #2B1610;
  --cream: #F4EFE4;
  --cream-dim: #BFC4D4;
  --rule: rgba(244, 239, 228, 0.20);
  --measure: 34rem;
  --gutter: clamp(1.25rem, 5vw, 4rem);
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  background: var(--navy);
  color: var(--cream);
  font-family: 'Jost', system-ui, sans-serif;
  font-weight: 300;
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.09rem);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: 'Spectral', Georgia, serif;
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0 0 0.6em;
}

h1 { font-size: clamp(2.1rem, 1.4rem + 3.1vw, 3.9rem); }
h2 { font-size: clamp(1.55rem, 1.2rem + 1.5vw, 2.3rem); }
h3 { font-size: clamp(1.1rem, 1rem + 0.5vw, 1.35rem); }

p { margin: 0 0 1.15em; max-width: var(--measure); }
a { color: var(--cream); text-decoration-color: var(--mauve); text-underline-offset: 0.22em; }
a:hover { color: var(--mauve); }
:focus-visible { outline: 2px solid var(--mauve); outline-offset: 3px; }

/* ---------- structure ---------- */

.wrap { width: min(72rem, 100%); margin-inline: auto; padding-inline: var(--gutter); }

header.site {
  position: sticky; top: 0; z-index: 20;
  background: rgba(35, 43, 74, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--rule);
}
.bar { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding-block: 1rem; flex-wrap: wrap; }
.wordmark {
  font-weight: 300; letter-spacing: 0.28em; text-transform: uppercase;
  font-size: 0.82rem; text-decoration: none; white-space: nowrap;
}
nav.site ul { display: flex; gap: clamp(0.9rem, 2vw, 1.9rem); list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
nav.site a {
  font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase;
  text-decoration: none; padding-bottom: 2px; border-bottom: 1px solid transparent;
}
nav.site a:hover, nav.site a[aria-current="page"] { border-bottom-color: var(--mauve); }

section { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
section + section { border-top: 1px solid var(--rule); }

.eyebrow {
  font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--mauve); margin: 0 0 1.5rem; font-weight: 400;
}

.lede { font-size: clamp(1.15rem, 1.05rem + 0.5vw, 1.4rem); line-height: 1.5; }

/* ---------- signature: the four pillars ---------- */
/* Four supports of unequal height under one lintel. The mark is the model. */

.pillars { display: block; width: min(20rem, 60%); height: auto; margin: 2.5rem 0 0; }
.pillars .lintel { stroke: var(--cream); stroke-width: 2.5; }
.pillars .support { stroke: var(--cream); stroke-width: 2.5; }
.pillars .support.short { stroke: var(--mauve); stroke-dasharray: 5 5; }

/* ---------- hero ---------- */

.hero { padding-block: clamp(4rem, 10vw, 8rem) clamp(3rem, 7vw, 5.5rem); }
.hero h1 { max-width: 22ch; }
.hero .lede { max-width: 42ch; }

.cta-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2.4rem; }
.btn {
  display: inline-block; padding: 0.75rem 1.4rem;
  font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase;
  text-decoration: none; border: 1px solid var(--cream); border-radius: 0;
  transition: background 0.18s ease, color 0.18s ease;
  background: transparent; color: var(--cream); cursor: pointer;
  font-family: inherit; font-weight: 400;
}
.btn:hover { background: var(--cream); color: var(--navy); }
.btn.solid { background: var(--mauve); border-color: var(--mauve); color: var(--mauve-deep); }
.btn.solid:hover { background: var(--cream); border-color: var(--cream); color: var(--navy); }

/* ---------- pillar grid ---------- */

.pillar-grid { display: grid; gap: 0; margin-top: 2.5rem; border-top: 1px solid var(--rule); }
@media (min-width: 46rem) { .pillar-grid { grid-template-columns: repeat(2, 1fr); } }
.pillar {
  padding: 1.9rem 0; border-bottom: 1px solid var(--rule);
  position: relative;
}
@media (min-width: 46rem) {
  .pillar { padding: 2.1rem 2.4rem 2.1rem 0; }
  .pillar:nth-child(even) { padding-left: 2.4rem; border-left: 1px solid var(--rule); }
}
.pillar h3 { margin-bottom: 0.35em; }
.pillar h3 span { color: var(--mauve); font-family: 'Jost', sans-serif; font-weight: 300; font-size: 0.7em; letter-spacing: 0.12em; margin-right: 0.6em; }
.pillar p { margin-bottom: 0; max-width: 40ch; }

/* ---------- steps ---------- */

.steps { list-style: none; margin: 2.5rem 0 0; padding: 0; counter-reset: step; }
.steps li {
  counter-increment: step; position: relative;
  padding: 1.5rem 0 1.5rem 3.4rem; border-bottom: 1px solid var(--rule);
}
.steps li:first-child { border-top: 1px solid var(--rule); }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: 1.5rem;
  font-size: 0.78rem; letter-spacing: 0.1em; color: var(--mauve);
  border: 1px solid var(--mauve); width: 2rem; height: 2rem;
  display: grid; place-items: center;
}
.steps h3 { margin-bottom: 0.3em; }
.steps p { margin-bottom: 0; }

/* ---------- expectations ---------- */

.pact { display: grid; gap: 0; margin-top: 2.5rem; }
@media (min-width: 52rem) { .pact { grid-template-columns: repeat(3, 1fr); gap: 0 2.5rem; } }
.pact > div { padding-top: 1.4rem; border-top: 2px solid var(--cream); }
.pact h3 { font-family: 'Jost', sans-serif; font-weight: 400; font-size: 0.76rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--mauve); }
.pact p { margin-bottom: 0; }

/* ---------- portrait ---------- */

.bio { display: grid; gap: 2.5rem; align-items: start; }
@media (min-width: 52rem) { .bio { grid-template-columns: 15rem 1fr; gap: 3.5rem; } }
.portrait {
  width: 100%; max-width: 15rem; aspect-ratio: 1 / 1; object-fit: cover;
  display: block; border-radius: 0; background: var(--navy);
}
.portrait-placeholder {
  width: 100%; max-width: 15rem; aspect-ratio: 4 / 5;
  border: 1px dashed var(--mauve); display: grid; place-items: center;
  text-align: center; padding: 1rem; font-size: 0.75rem; color: var(--mauve);
  letter-spacing: 0.08em; text-transform: uppercase;
}

/* ---------- results ---------- */

.case { padding: 2.2rem 0; border-bottom: 1px solid var(--rule); }
.case:first-of-type { border-top: 1px solid var(--rule); }
.case dl { display: grid; gap: 0.9rem 2rem; margin: 1.2rem 0 0; }
@media (min-width: 46rem) { .case dl { grid-template-columns: 9rem 1fr; } }
.case dt { font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--mauve); padding-top: 0.35em; }
.case dd { margin: 0; max-width: 46ch; }

/* ---------- assessment ---------- */

.q { padding: 1.7rem 0; border-bottom: 1px solid var(--rule); }
.q:first-of-type { border-top: 1px solid var(--rule); }
.q legend, .q .qtext { font-family: 'Spectral', serif; font-size: 1.08rem; font-weight: 600; margin-bottom: 0.9rem; display: block; max-width: 46ch; }
.q fieldset { border: 0; margin: 0; padding: 0; }
.scale { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.scale label {
  border: 1px solid var(--rule); padding: 0.5rem 0.95rem; cursor: pointer;
  font-size: 0.82rem; transition: all 0.15s ease; user-select: none;
}
.scale label:hover { border-color: var(--mauve); }
.scale input { position: absolute; opacity: 0; width: 0; height: 0; }
.scale input:checked + span { color: var(--mauve-deep); }
.scale label:has(input:checked) { background: var(--mauve); border-color: var(--mauve); color: var(--mauve-deep); }
.scale label:has(input:focus-visible) { outline: 2px solid var(--mauve); outline-offset: 2px; }

#result { margin-top: 3rem; padding-top: 2.5rem; border-top: 2px solid var(--cream); }
#result[hidden] { display: none; }
.bars { display: grid; gap: 1.2rem; margin: 2rem 0; }
.bar-row { display: grid; grid-template-columns: 8.5rem 1fr; gap: 1rem; align-items: center; }
@media (max-width: 34rem) { .bar-row { grid-template-columns: 1fr; gap: 0.35rem; } }
.bar-label { font-size: 0.76rem; letter-spacing: 0.14em; text-transform: uppercase; }
.bar-track { height: 0.65rem; background: rgba(244,239,228,0.14); position: relative; }
.bar-fill { height: 100%; background: var(--mauve); width: 0; transition: width 0.6s cubic-bezier(0.4,0,0.2,1); }
.bar-fill.weak { background: var(--cream); }

/* ---------- articles ---------- */

.article-list { list-style: none; margin: 2.5rem 0 0; padding: 0; }
.article-list li { border-top: 1px solid var(--rule); }
.article-list li:last-child { border-bottom: 1px solid var(--rule); }
.article-list a { display: block; padding: 1.8rem 0; text-decoration: none; transition: padding-left 0.2s ease; }
.article-list a:hover { padding-left: 0.8rem; }
.article-list h3 { margin-bottom: 0.3em; }
.article-list p { margin: 0; font-size: 0.94rem; color: var(--cream-dim); }

article.essay { max-width: var(--measure); }
article.essay h2 { margin-top: 2.2em; }
article.essay p { max-width: none; }
article.essay ul { max-width: none; padding-left: 1.2rem; }
article.essay li { margin-bottom: 0.5em; }

.back { font-size: 0.76rem; letter-spacing: 0.14em; text-transform: uppercase; text-decoration: none; display: inline-block; margin-bottom: 2.5rem; }

/* ---------- contact ---------- */

.contact-block { border-top: 2px solid var(--cream); padding-top: 2rem; margin-top: 2.5rem; }
.email {
  font-family: 'Spectral', serif; font-size: clamp(1.2rem, 1rem + 1.2vw, 1.85rem);
  font-weight: 600; text-decoration: none; border-bottom: 2px solid var(--mauve);
  display: inline-block; word-break: break-word;
}

/* ---------- footer ---------- */

footer.site {
  border-top: 1px solid var(--rule); padding-block: 2.8rem;
  font-size: 0.82rem;
}
footer.site .bar { align-items: flex-start; }
footer.site p { margin: 0; max-width: 34ch; color: var(--cream-dim); }
footer.site nav ul { display: flex; flex-direction: column; gap: 0.5rem; list-style: none; margin: 0; padding: 0; }
footer.site nav a { font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; text-decoration: none; }
footer.site nav a:hover { color: var(--mauve); }
