/* Heather Powell — heather-powell.com */

:root {
  --ink: #16233b;
  --slate: #55647d;
  --paper: #ffffff;
  --mist: #edf2f8;
  --line: #dee6f0;
  --cobalt: #2856c4;
  --cobalt-dark: #1f4498;
  --serif: "Source Serif 4", Georgia, serif;
  --sans: "Public Sans", -apple-system, "Segoe UI", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

:root { color-scheme: light dark; }

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--cobalt);
  color: #fff;
  padding: 10px 18px;
  border-radius: 0 0 12px 0;
  z-index: 100;
  font-weight: 600;
}
.skip:focus { left: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

a { color: var(--cobalt); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--cobalt);
  outline-offset: 3px;
  border-radius: 2px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  z-index: 10;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.wordmark {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 0.9375rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
}
.wordmark:hover { text-decoration: none; color: var(--cobalt); }

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

.site-nav a {
  color: var(--ink);
  font-weight: 500;
  font-size: 0.9375rem;
}
.site-nav a:hover { color: var(--cobalt); text-decoration: none; }
.site-nav a[aria-current="page"] {
  color: var(--cobalt);
  font-weight: 600;
}

.nav-cta {
  background: var(--cobalt);
  color: #fff !important;
  padding: 9px 18px;
  border-radius: 999px;
  font-weight: 600;
}
.nav-cta:hover { background: var(--cobalt-dark); }

/* Hero */
.hero { padding: 64px 0 0; }

.hero .wrap {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: center;
}

.hero h1 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(3rem, 7.5vw, 5.5rem);
  line-height: 1.04;
  letter-spacing: -0.015em;
  margin-bottom: 22px;
}

.hero .tagline {
  font-size: clamp(1.125rem, 2vw, 1.375rem);
  color: var(--slate);
  max-width: 24em;
  margin-bottom: 34px;
}

.btn-row { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 56px; }

.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
}
.btn:hover { text-decoration: none; }

.btn-primary { background: var(--cobalt); color: #fff; }
.btn-primary:hover { background: var(--cobalt-dark); }

.btn-ghost {
  color: var(--ink);
  border: 1.5px solid var(--ink);
}
.btn-ghost:hover { background: var(--ink); color: #fff; }

.portrait {
  position: relative;
  width: min(100%, 500px);
  aspect-ratio: 4 / 5;
  justify-self: end;
}

.portrait::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background: var(--mist);
}

.portrait img {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 96%;
  height: auto;
}

/* Intro */
.intro { padding: 72px 0 30px; }
.intro p {
  max-width: 680px;
  margin: 0 auto;
  font-size: 1.1875rem;
  line-height: 1.75;
  text-align: center;
  color: var(--ink);
}

/* Credentials strip */
.creds { padding: 0 0 72px; }
.cred-line {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  row-gap: 8px;
  font-size: 0.9375rem;
  color: var(--slate);
  font-weight: 500;
}
.ci { white-space: nowrap; }
.cs { color: var(--cobalt); padding: 0 14px; font-weight: 700; }

/* Arc divider */
.arc { color: var(--mist); line-height: 0; margin-bottom: -1px; }
.arc svg { display: block; width: 100%; height: 56px; }

/* Pillars */
.pillars { background: var(--mist); padding: 80px 0; }

.pillars h2, .section-heading {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.75rem, 3.5vw, 2.375rem);
  margin-bottom: 40px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.card {
  background: var(--paper);
  border-radius: 18px;
  padding: 32px 28px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(22, 35, 59, 0.09);
}

.card-icon { display: block; margin-bottom: 18px; }

.card .dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--cobalt);
  margin-bottom: 18px;
}

.card h3 {
  font-family: var(--serif);
  font-size: 1.3125rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.card p { color: var(--slate); font-size: 1rem; }

/* Closing band / CTA */
.band { padding: 84px 0; text-align: center; }

.band h2 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.75rem, 3.5vw, 2.375rem);
  margin-bottom: 14px;
}

.band p {
  color: var(--slate);
  max-width: 34em;
  margin: 0 auto 30px;
}

/* Inner pages */
.page { padding: 72px 0 40px; }

.page h1 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2.5rem, 5.5vw, 3.75rem);
  margin-bottom: 28px;
}

.prose { max-width: 680px; }
.prose p { margin-bottom: 1.35em; }
.prose p:last-child { margin-bottom: 0; }

.fact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin: 48px 0;
  max-width: 820px;
}

.fact {
  background: var(--mist);
  border-radius: 18px;
  padding: 30px 28px;
}

.fact h2 {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 14px;
}

.fact ul { list-style: none; }
.fact li {
  padding-left: 22px;
  position: relative;
  margin-bottom: 10px;
  color: var(--ink);
}
.fact li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--cobalt);
}
.fact p { color: var(--ink); }

/* Contact form */
.contact-form {
  max-width: 560px;
  margin-top: 36px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-weight: 600;
  font-size: 0.9375rem;
}

.contact-form input,
.contact-form textarea {
  font-family: var(--sans);
  font-size: 1rem;
  color: var(--ink);
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--cobalt);
  box-shadow: 0 0 0 3px rgba(40, 86, 196, 0.14);
}

.contact-form textarea { resize: vertical; }

.contact-form button {
  align-self: flex-start;
  border: none;
  cursor: pointer;
  font-family: var(--sans);
}

/* Pull quote */
.pull {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.4rem, 2.8vw, 1.875rem);
  line-height: 1.4;
  color: var(--ink);
  border-left: 4px solid var(--cobalt);
  padding-left: 26px;
  margin: 44px 0;
  max-width: 640px;
}

/* Bio blocks (Speaking page) */
.bio-block { max-width: 680px; margin-top: 44px; }
.bio-block h2 {
  font-family: var(--serif);
  font-size: 1.375rem;
  font-weight: 600;
  margin-bottom: 12px;
}
.bio-block p { margin-bottom: 1em; }
.bio-block p:last-child { margin-bottom: 0; }

/* Endorsements */
.quotes { padding: 0 0 72px; }
.quote-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.quote { background: var(--mist); border-radius: 18px; padding: 30px 28px; }
.quote blockquote {
  font-family: var(--serif);
  font-size: 1.1875rem;
  line-height: 1.55;
  margin-bottom: 14px;
}
.quote figcaption { color: var(--slate); font-size: 0.9375rem; font-weight: 600; }
@media (max-width: 820px) { .quote-grid { grid-template-columns: 1fr; } }

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 44px 0 52px;
  margin-top: 40px;
}

.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-id .name {
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.875rem;
  margin-bottom: 6px;
}

.footer-id p {
  color: var(--slate);
  font-size: 0.9375rem;
}

.footer-nav { display: flex; gap: 24px; }
.footer-nav a { color: var(--ink); font-size: 0.9375rem; font-weight: 500; }
.footer-nav a:hover { color: var(--cobalt); text-decoration: none; }

/* Motion */
@media (prefers-reduced-motion: no-preference) {
  .hero h1, .hero .tagline, .hero .btn-row, .portrait {
    animation: rise 0.7s ease-out both;
  }
  .hero .tagline { animation-delay: 0.08s; }
  .hero .btn-row { animation-delay: 0.16s; }
  .portrait { animation-delay: 0.1s; }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Responsive */
@media (max-width: 820px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 12px; }
  .portrait { justify-self: center; order: -1; width: min(82vw, 420px); }
  .hero { padding-top: 40px; text-align: center; }
  .hero .tagline { margin-left: auto; margin-right: auto; }
  .btn-row { justify-content: center; }
  .card-grid { grid-template-columns: 1fr; }
  .fact-grid { grid-template-columns: 1fr; }
  .site-nav { gap: 18px; }
}

@media (max-width: 640px) {
  .cred-line { flex-direction: column; }
  .cs { display: none; }
}

@media (max-width: 480px) {
  .site-nav a:not(.nav-cta) { font-size: 0.875rem; }
  .wordmark { font-size: 0.8125rem; }
}


/* Dark mode */
@media (prefers-color-scheme: dark) {
  :root {
    --ink: #e7edf7;
    --slate: #a3b2c9;
    --paper: #0f1826;
    --mist: #1a2540;
    --line: #27375a;
    --cobalt: #6b93ef;
    --cobalt-dark: #8aabf5;
  }
  .site-header { background: rgba(15, 24, 38, 0.92); }
  .btn-primary, .nav-cta { color: #0f1826 !important; }
  .btn-ghost:hover { color: var(--paper); }
  .skip { color: #0f1826; }
  .card:hover { box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45); }
  .contact-form input:focus,
  .contact-form textarea:focus { box-shadow: 0 0 0 3px rgba(107, 147, 239, 0.28); }
}
