/* about.css: styles for about.html (the colors and fonts are defined as variables in :root below) */

:root {
  --maroon: #593232;
  --tan: #8a6339;
  --cream: #f7f2ee;
  --blush: #ffd7ab;
  --paper: #ffffff;
  --text: #2b2320;
  --muted: #6f5e50;
}
* { box-sizing: border-box; }
html {
  background: var(--paper);
}
body {
  margin: 0;
  font-family: 'Schibsted Grotesk', Arial, sans-serif;
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  overflow-x: clip; /* clip (unlike hidden) keeps the sticky nav working */
}
a { text-decoration: none; color: inherit; }

::selection {
  background: var(--blush);
  color: var(--maroon);
}

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--cream); }
::-webkit-scrollbar-thumb { background: var(--tan); border-radius: 10px; border: 2px solid var(--cream); }
* { scrollbar-color: var(--tan) var(--cream); scrollbar-width: thin; }

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 48px;
  /* Sticky nav with a soft frosted-glass look */
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.82);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(89, 50, 50, 0.08);
}
nav .name {
  font-weight: 400;
  font-size: 15px;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--maroon);
}
nav .links { display: flex; gap: 40px; }
nav .links a {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--muted);
  padding-bottom: 4px;
  position: relative;
}
nav .links a.active { color: var(--maroon); font-weight: 600; }
nav .links a.active::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--tan);
  border-radius: 2px;
}
nav .links a:hover { color: var(--maroon); }

@media (max-width: 640px) {
  nav { padding: 24px 24px; flex-direction: column; gap: 18px; align-items: flex-start; }
}

.wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 40px 32px 140px;
}

.kicker {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--tan);
  margin-bottom: 18px;
}

h1.big {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 4.6em;
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -1px;
  color: var(--maroon);
  margin: 0 0 28px;
}

p.intro {
  font-size: 1.25em;
  line-height: 1.6;
  color: var(--muted);
  max-width: 560px;
  margin: 0 0 70px;
}

/* step tracker — horizontal, no boxes */
.tracker {
  display: flex;
  gap: 0;
  margin-bottom: 8px;
  border-top: 2px solid #f0e6db;
}
.step {
  flex: 1;
  padding-top: 16px;
  cursor: pointer;
  border: none;
  border-top: 2px solid transparent;
  margin-top: -2px;
  transition: border-color 0.2s;
  background: none;
  font-family: 'Schibsted Grotesk', Arial, sans-serif;
  text-align: left;
  display: flex;
  flex-direction: column;
}
.step:focus-visible {
  outline: 2px solid var(--tan);
  outline-offset: 3px;
}
.step.active, .step.done { border-top-color: var(--tan); }
.step .step-num {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.5px;
}
.step.active .step-num, .step.done .step-num { color: var(--tan); }
.step .step-label {
  font-size: 13px;
  font-weight: 600;
  margin-top: 4px;
  color: var(--muted);
  display: block;
}
.step.active .step-label { color: var(--maroon); }
@media (max-width: 640px) {
  .step .step-label { display: none; }
}

/* scroll-margin-top keeps the sticky nav from covering the heading when a module scrolls into view */
.panel { display: none; padding-top: 64px; scroll-margin-top: 90px; animation: fadeIn 0.4s ease; }
.panel.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px);} to {opacity:1; transform: translateY(0);} }

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

.panel h2 {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 2.7em;
  font-weight: 400;
  letter-spacing: -0.5px;
  color: var(--maroon);
  margin: 0 0 30px;
}
.panel p {
  font-size: 1.15em;
  line-height: 1.75;
  color: var(--text);
  margin: 0 0 24px;
  max-width: 600px;
}
.panel ul {
  padding-left: 0;
  list-style: none;
  margin: 0 0 30px;
}
.panel li {
  font-size: 1.15em;
  line-height: 1.7;
  padding-left: 28px;
  position: relative;
  margin-bottom: 10px;
  max-width: 580px;
}
.panel li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--tan);
}

/* Focus-area tags: pills that wrap neatly on any screen size */
.word-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 40px 0 10px;
}
.word-tags span {
  background: var(--cream);
  font-size: 1.05em;
  font-weight: 700;
  color: var(--maroon);
  padding: 8px 18px;
  border-radius: 24px;
}

.strength-list {
  margin-top: 40px;
  border-top: 1px solid #f0e6db;
}
.strength-item {
  display: flex;
  align-items: baseline;
  gap: 24px;
  padding: 22px 0;
  border-bottom: 1px solid #f0e6db;
}
.strength-item .idx {
  font-size: 1.4em;
  font-weight: 800;
  color: var(--blush);
  min-width: 44px;
}
.strength-item .name {
  font-size: 1.5em;
  font-weight: 700;
  color: var(--maroon);
}

.quiz-block { margin-bottom: 44px; max-width: 600px; }
.quiz-block .q { font-size: 1.2em; font-weight: 700; color: var(--maroon); margin-bottom: 18px; }
.quiz-options { display: flex; flex-direction: column; gap: 10px; }
.quiz-option {
  text-align: left;
  background: none;
  border: none;
  border-bottom: 1.5px solid #eee1d3;
  padding: 14px 4px;
  cursor: pointer;
  font-family: 'Schibsted Grotesk', Arial, sans-serif;
  font-size: 1.05em;
  color: var(--text);
  transition: border-color 0.15s, color 0.15s;
}
.quiz-option:hover:not(:disabled) { border-color: var(--tan); color: var(--maroon); }
.quiz-option.correct { color: #4a7a3a; border-color: #4a7a3a; font-weight: 700; }
.quiz-option.incorrect { color: #b5564c; border-color: #b5564c; }

.cert {
  padding-top: 10px;
}
.cert .seal { font-size: 3em; margin-bottom: 14px; }
.cert p.eyebrow {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.8em;
  color: var(--muted);
  font-weight: 700;
  margin-bottom: 14px;
}

.panel-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 56px;
}
.btn {
  background: none;
  border: none;
  color: var(--maroon);
  font-family: 'Schibsted Grotesk', Arial, sans-serif;
  font-weight: 700;
  font-size: 1.05em;
  cursor: pointer;
  padding: 0;
}
.btn:hover { color: var(--tan); }
.btn:disabled { opacity: 0.25; cursor: default; }
.btn.fill {
  background: var(--maroon);
  color: white;
  padding: 15px 30px;
  border-radius: 30px;
  transition: opacity 0.15s;
}
.btn.fill:hover { opacity: 0.88; color: white; }
.btn.fill:disabled { opacity: 0.25; }

footer {
  text-align: center;
  color: var(--muted);
  font-size: 0.85em;
  padding: 24px 20px 40px;
}
footer a { font-weight: 600; color: var(--tan); }
.decor {
  position: absolute;
  pointer-events: none;
  z-index: 0;
}
.wrap { position: relative; }
.hero-decor {
  position: absolute;
  top: 8px;
  right: 12px;
  width: 64px;
  opacity: 0.9;
}
@media (max-width: 640px) {
  .hero-decor { width: 40px; top: 4px; right: 4px; }
}
.flourish-divider {
  display: flex;
  justify-content: center;
  margin: 8px 0 0;
  opacity: 0.6;
}
.cert-decor {
  display: flex;
  justify-content: center;
  margin-bottom: 6px;
}
.bg-blob {
  position: absolute;
  z-index: -1;
  pointer-events: none;
}
.blob-1 {
  top: -40px; left: -80px;
  width: 380px;
}
.blob-2 {
  bottom: -20px; right: -70px;
  width: 360px;
}
@media (max-width: 640px) {
  .blob-1 { width: 220px; left: -60px; }
  .blob-2 { width: 210px; right: -50px; }
}
html { position: relative; }
.connect-footer {
  text-align: center;
  padding: 50px 20px 20px;
}
.connect-footer h3 {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.6px;
  color: var(--tan);
  font-weight: 700;
  margin: 0 0 18px;
}
.connect-links {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}
.connect-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--cream);
  color: var(--maroon);
  font-size: 0.92em;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: 24px;
  transition: opacity 0.15s, transform 0.15s;
}
.connect-link:hover { opacity: 0.85; transform: translateY(-1px); }
.connect-link svg { flex-shrink: 0; }

footer.credit {
  text-align: center;
  color: var(--muted);
  font-size: 0.85em;
  padding: 24px 20px 40px;
}
footer.credit a { font-weight: 600; color: var(--tan); }

.skip-link {
  position: absolute;
  top: -100px;
  left: 12px;
  background: var(--maroon);
  color: white;
  padding: 12px 20px;
  border-radius: 8px;
  z-index: 10000;
  font-family: 'Schibsted Grotesk', Arial, sans-serif;
  font-weight: 600;
  font-size: 14px;
  transition: top 0.2s ease;
}
.skip-link:focus {
  top: 12px;
}

/* ============================================================
   MOBILE REFINEMENTS (phones, 640px and under)
   Added to make the page comfortable to read and tap on a phone.
   Desktop and tablet layouts above are unchanged.
   ============================================================ */
@media (max-width: 640px) {

  /* Compact one-row nav so the sticky bar stays slim on phones
     (the logo stays; the written name is hidden to make room) */
  nav { padding: 8px 20px; flex-direction: row; align-items: center; gap: 12px; }
  nav .name { display: none; }
  nav .links { gap: 20px; }
  .panel { scroll-margin-top: 70px; }

  /* Nav links: bigger tap area (at least 44px tall) */
  nav .links a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0;
  }
  nav .links a.active::after { bottom: 8px; }

  /* Tighter page padding so content gets more of the screen */
  .wrap { padding: 24px 24px 80px; }

  /* Headline scales with screen width so it never overflows at 375px */
  h1.big { font-size: clamp(2.6em, 14vw, 4.6em); margin-bottom: 20px; }
  p.intro { font-size: 1.1em; margin-bottom: 40px; }

  /* Step tracker buttons: at least 44px tall to tap */
  .step { min-height: 44px; padding-bottom: 8px; }

  /* Smaller panel headings and spacing */
  .panel { padding-top: 40px; }
  .panel h2 { font-size: clamp(1.9em, 8vw, 2.7em); margin-bottom: 20px; }

  /* Back / Next buttons: tappable and spaced apart */
  .panel-nav { margin-top: 40px; gap: 12px; }
  .btn { min-height: 44px; padding: 0 12px 0 0; }

  /* Tags: a little less space above on phones */
  .word-tags { margin-top: 28px; }

  /* Strengths list: slightly tighter */
  .strength-item { gap: 16px; padding: 18px 0; }
  .strength-item .name { font-size: 1.3em; }

  /* Footer pill links: 44px tall */
  .connect-link { min-height: 44px; }
}

/* ============================================================
   MAROON FOOTER BAND
   ============================================================ */
.connect-footer {
  background: var(--maroon);
  padding: 72px 24px 40px;
}
.connect-footer h3 {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 2.2em;
  font-weight: 400;
  text-transform: none;
  letter-spacing: -0.3px;
  color: var(--cream);
  margin: 0 0 24px;
}
.connect-link { background: var(--cream); color: var(--maroon); }
footer.credit {
  background: var(--maroon);
  color: #e0cfc0;
  padding: 0 20px 40px;
}
@media (max-width: 640px) {
  .connect-footer { padding: 56px 20px 32px; }
  .connect-footer h3 { font-size: 1.8em; }
}
