/* Perpetual Learning Academy — PLA Friends
   Dyslexia-friendly: left-aligned, generous spacing, high contrast, no italics. */

:root {
  /* Brand palette v2 (phoenix and book logo) */
  --cream: #FBF6EA;
  --paper: #FFFDF7;
  --ink: #22313F;
  --soft: #56636F;
  --navy: #253A63;
  --teal: #0B6E6E;
  --teal-deep: #084F4F;
  --teal-tint: #E1EFEC;
  --gold: #D9A632;
  --gold-text: #8A6416;
  --gold-light: #F2D27A;
  --goldt: #FBEFD0;
  --plum: #77527A;
  --burgundy: #7A3A4E;
  --orange: #C8683A;
  --orange-text: #A3502A;
  --line: #D9D2C1;
  --zova: #0E6E70;
  --zova-mid: #1A9C9E;
  --zova-tint: #DDF3F2;
  --mira: #A8336B;
  --mira-mid: #D9578F;
  --mira-tint: #FBE4EE;
  --luna: #AE4C0E;
  --luna-mid: #E37526;
  --luna-tint: #FDEBDD;
  --ollie: #2F6E22;
  --ollie-mid: #5C9E3C;
  --ollie-tint: #E5F2DC;
  --jax: #1A5FA8;
  --jax-mid: #3481D4;
  --jax-tint: #DEEBFA;
  --willow: #63399A;
  --willow-mid: #8A5CC4;
  --willow-tint: #EEE5F8;
  --shadow: 0 10px 30px rgba(8, 79, 79, 0.09);
  --radius: 18px;
  --max: 70rem;
  --text: 40rem;
  --space: clamp(1.25rem, 4vw, 2rem);
  --focus: 0 0 0 3px var(--cream), 0 0 0 6px var(--teal-deep);
}

@font-face {
  font-family: "Alegreya";
  src: url("/fonts/alegreya-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Lexend";
  src: url("/fonts/lexend-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Lexend";
  src: url("/fonts/lexend-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Lexend";
  src: url("/fonts/lexend-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Atkinson Hyperlegible";
  src: url("/fonts/atkinson-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Atkinson Hyperlegible";
  src: url("/fonts/atkinson-bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Andika";
  src: url("/fonts/andika-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Andika";
  src: url("/fonts/andika-bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

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

html {
  scroll-behavior: smooth;
}

html:focus-within {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html, html:focus-within { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  font-family: "Atkinson Hyperlegible", "Segoe UI", sans-serif;
  font-size: 1.125rem;
  line-height: 1.65;
  letter-spacing: 0.01em;
  color: var(--ink);
  background: var(--cream);
  text-align: left;
  font-style: normal;
  overflow-wrap: break-word;
}

img { max-width: 100%; height: auto; display: block; }
svg { display: block; }
a { color: var(--teal); text-decoration-thickness: 1.5px; text-underline-offset: 0.18em; }
a:hover { color: var(--burgundy); }
em, i, cite, dfn, var, address, h1, h2, h3, h4, h5, h6, p, li, blockquote, figcaption {
  font-style: normal;
}

:focus-visible {
  outline: 3px solid var(--orange-text);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 0.75rem;
  top: -4rem;
  z-index: 200;
  background: var(--navy);
  color: var(--cream);
  padding: 0.6rem 1rem;
  border-radius: 8px;
  text-decoration: none;
}
.skip:focus { top: 0.75rem; color: var(--cream); }

.wrap {
  width: min(var(--max), 100% - 2 * var(--space));
  margin-inline: auto;
}

.measure { max-width: var(--text); }

/* Header */
.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
}
.header-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 0.75rem;
  row-gap: 0.2rem;
  padding: 0.65rem 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--navy);
  min-width: 0;
}
.brand img {
  width: 48px;
  height: 56px;
  flex-shrink: 0;
}
.brand-text { min-width: 0; display: flex; flex-direction: column; gap: 0.12rem; }
.brand-name, .brand-tag { display: block; }
.brand-name {
  font-family: "Alegreya", "Lexend", serif;
  font-weight: 700;
  font-size: 1.12rem;
  line-height: 1.15;
  color: var(--teal);
}
.brand-tag {
  font-family: "Lexend", sans-serif;
  font-weight: 600;
  font-size: 0.78rem;
  color: var(--gold-text);
  margin-top: 0.1rem;
}

.nav-toggle {
  margin-left: auto;
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 1.5px solid var(--navy);
  border-radius: 10px;
  background: var(--paper);
  color: var(--navy);
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav-toggle span { transition: transform 0.15s ease, opacity 0.15s ease; }

.site-nav { display: none; grid-column: 1 / -1; }
.site-nav.is-open { display: block; }
.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0 0 1rem;
}
.site-nav a {
  display: block;
  padding: 0.7rem 0.2rem;
  color: var(--navy);
  text-decoration: none;
  font-family: "Lexend", sans-serif;
  font-weight: 600;
  font-size: 1.05rem;
  border-bottom: 1px solid var(--line);
}
.site-nav a[aria-current="page"] { color: var(--teal); }
.site-nav a:hover { color: var(--teal); }
.site-nav a.nav-cta {
  margin-top: 0.6rem;
  border: 0;
  background: var(--teal);
  color: var(--cream);
  text-align: left;
  border-radius: 999px;
  padding: 0.7rem 1.15rem;
}
.site-nav a.nav-cta:hover { background: var(--teal-deep); color: var(--cream); }

@media (min-width: 880px) {
  .header-inner {
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
    gap: 1rem;
  }
  .nav-toggle { display: none; }
  .brand-name { font-size: 1.32rem; }
  .brand-tag { font-size: 0.85rem; }
  .brand img { width: 55px; height: 64px; }
  .site-nav {
    display: block;
    grid-column: auto;
    flex-basis: auto;
    margin-left: auto;
    width: auto;
  }
  .site-nav ul {
    display: flex;
    align-items: center;
    gap: 0.2rem 1.25rem;
    padding: 0;
  }
  .site-nav a {
    border: 0;
    padding: 0.4rem 0.15rem;
    font-size: 0.98rem;
  }
  .site-nav a.nav-cta {
    margin-top: 0;
    padding: 0.5rem 1rem;
  }
}

/* Hero */
.hero {
  padding: 2.2rem 0 1.5rem;
}
.eyebrow {
  font-family: "Lexend", sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--plum);
  margin: 0 0 0.7rem;
}
h1, h2, h3, h4 {
  font-family: "Lexend", sans-serif;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.25;
  letter-spacing: 0;
  text-wrap: balance;
  margin: 0 0 0.7rem;
}
h1 { font-size: clamp(2rem, 5vw, 3.15rem); }
h2 { font-size: clamp(1.55rem, 3.4vw, 2.15rem); }
h3 { font-size: 1.25rem; }
.lead {
  font-size: 1.2rem;
  line-height: 1.6;
  color: var(--ink);
  margin: 0 0 1.4rem;
  max-width: 42rem;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-bottom: 1.2rem;
}
.tagline-row {
  color: var(--soft);
  font-family: "Lexend", sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  margin: 0 0 1.5rem;
}
.tagline-row .heart { color: var(--burgundy); }

.hero-art {
  margin: 0.5rem 0 0;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 0.6rem;
  box-shadow: var(--shadow);
  overflow: visible;
}
.hero-art img {
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 16px;
}

/* Buttons */
.btn {
  display: inline-block;
  font-family: "Lexend", sans-serif;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  border-radius: 999px;
  padding: 0.8rem 1.3rem;
  min-height: 44px;
  border: 2px solid transparent;
  cursor: pointer;
}
.btn-primary {
  background: var(--teal);
  color: #FFFFFF;
  border-color: var(--teal);
}
.btn-primary:hover { background: var(--teal-deep); border-color: var(--teal-deep); color: #FFFFFF; }
.btn-ghost {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn-ghost:hover { background: var(--goldt); color: var(--navy); }

/* Sections */
section { padding: 2.6rem 0; }
.section-head { margin-bottom: 1.5rem; }
.section-head p { margin: 0; max-width: var(--text); color: var(--ink); }
.band-paper { background: var(--paper); }
.band-goldt { background: var(--goldt); }
.rule {
  height: 4px;
  width: 4rem;
  background: var(--gold);
  border: 0;
  margin: 0 0 1.1rem;
  border-radius: 2px;
}

/* How it works */
.steps {
  display: grid;
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
@media (min-width: 700px) {
  .steps { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1080px) {
  .steps { grid-template-columns: repeat(4, 1fr); }
}
.step {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.15rem 1.15rem 1.3rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.4rem;
}
.step img {
  width: auto;
  height: 110px;
  max-width: 100%;
  object-fit: contain;
  object-position: center bottom;
  margin: 0 0 0.4rem;
}
.step .num {
  font-family: "Lexend", sans-serif;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--orange-text);
}
.step h3 { margin: 0; }
.step p { margin: 0; color: var(--ink); }

.step-blend { border-top: 6px solid var(--jax-mid); }
.step-sort { border-top: 6px solid var(--luna-mid); }
.step-review { border-top: 6px solid var(--zova-mid); }
.step-glow { border-top: 6px solid var(--ollie-mid); }

/* Friends grid */
.friends-grid {
  display: grid;
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
@media (min-width: 600px) {
  .friends-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1000px) {
  .friends-grid { grid-template-columns: repeat(3, 1fr); }
}
.friend-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem 1.1rem 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  text-decoration: none;
  color: inherit;
  height: 100%;
}
a.friend-card:hover { border-color: var(--navy); box-shadow: var(--shadow); }
.friend-card .portrait {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  min-height: 200px;
  padding: 0.6rem 0.4rem 0.2rem;
  border-radius: 14px;
  margin-bottom: 0.85rem;
  overflow: visible;
}
.friend-card .portrait img {
  width: auto;
  height: 190px;
  max-width: 100%;
  object-fit: contain;
  object-position: center bottom;
}
.friend-card h3 { margin: 0 0 0.15rem; }
.friend-card .role {
  font-family: "Lexend", sans-serif;
  font-weight: 600;
  color: var(--navy);
  margin: 0 0 0.5rem;
}
.friend-card .animal { color: var(--soft); font-size: 1rem; margin: 0 0 0.15rem; }
.quote {
  font-family: "Andika", "Atkinson Hyperlegible", sans-serif;
  margin: 0.4rem 0 0;
  color: var(--ink);
}
.friend-zova .portrait { background: var(--zova-tint); }
.friend-mira .portrait { background: var(--mira-tint); }
.friend-luna .portrait { background: var(--luna-tint); }
.friend-ollie .portrait { background: var(--ollie-tint); }
.friend-jax .portrait { background: var(--jax-tint); }
.friend-willow .portrait { background: var(--willow-tint); }
.friend-zova h3, .friend-zova .role { color: var(--zova); }
.friend-mira h3, .friend-mira .role { color: var(--mira); }
.friend-luna h3, .friend-luna .role { color: var(--luna); }
.friend-ollie h3, .friend-ollie .role { color: var(--ollie); }
.friend-jax h3, .friend-jax .role { color: var(--jax); }
.friend-willow h3, .friend-willow .role { color: var(--willow); }

/* Sample pages */
.samples {
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 800px) {
  .samples { grid-template-columns: 1fr 1fr; }
}
.sample figure { margin: 0; }
.sample img {
  width: 100%;
  height: auto;
  object-fit: contain;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
}
.sample figcaption {
  margin-top: 0.7rem;
  color: var(--soft);
  font-size: 1rem;
}

/* Join / forms */
.join-box {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 1.5rem 1.3rem;
  box-shadow: var(--shadow);
  max-width: 40rem;
}
@media (min-width: 700px) {
  .join-box { padding: 2rem 2.1rem; }
}
.form-row { margin-bottom: 1rem; }
label {
  display: block;
  font-family: "Lexend", sans-serif;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.35rem;
}
.hint { display: block; color: var(--soft); font-size: 0.95rem; font-weight: 400; margin-top: 0.15rem; }
input[type="text"],
input[type="email"],
textarea {
  width: 100%;
  font: inherit;
  font-size: 1.05rem;
  color: var(--ink);
  background: var(--cream);
  border: 1.5px solid var(--line);
  border-radius: 10px;
  padding: 0.7rem 0.85rem;
  min-height: 48px;
}
textarea { min-height: 8rem; resize: vertical; }
input:focus-visible, textarea:focus-visible {
  border-color: var(--navy);
  background: var(--paper);
}
.form-status {
  margin: 0.8rem 0 0;
  color: var(--navy);
}
.note {
  margin: 1rem 0 0;
  color: var(--soft);
  font-size: 1rem;
}

/* About / prose */
.prose p { margin: 0 0 1rem; max-width: var(--text); }
.prose p:last-child { margin-bottom: 0; }
.callout {
  max-width: var(--text);
  background: var(--goldt);
  border-left: 6px solid var(--gold);
  border-radius: 0 12px 12px 0;
  padding: 1rem 1.15rem;
  margin: 1.3rem 0;
  font-family: "Lexend", sans-serif;
  font-weight: 600;
  color: var(--navy);
}

/* Friends detail page */
.friend-block {
  display: grid;
  gap: 1.3rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--line);
  align-items: center;
}
@media (min-width: 800px) {
  .friend-block {
    grid-template-columns: minmax(220px, 320px) 1fr;
    gap: 2.2rem;
    padding: 2rem 0;
  }
}
.friend-block .portrait {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 1.2rem 1rem 0.6rem;
  border-radius: 20px;
  overflow: visible;
}
.friend-block .portrait img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 340px;
  object-fit: contain;
  object-position: center bottom;
}
.friend-block p { margin: 0 0 0.8rem; }
.friend-block .quote { font-size: 1.2rem; margin-top: 0.6rem; }

/* Contact list */
.contact-list { list-style: none; margin: 0 0 1.5rem; padding: 0; }
.contact-list li { margin: 0 0 0.6rem; }

/* Footer */
.site-footer {
  background: var(--teal-deep);
  color: #F3EFE4;
  border-top: 5px solid var(--gold);
  padding: 2.2rem 0 1.6rem;
  margin-top: 2rem;
}
.site-footer a { color: var(--gold-light); }
.site-footer a:hover { color: #FFFFFF; }
.site-footer :focus-visible { outline-color: var(--gold-light); }
.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 0.8rem;
}
.footer-brand img { width: 56px; height: 56px; }
.footer-brand p {
  margin: 0;
  font-size: 1.25rem;
  font-family: "Alegreya", "Lexend", serif;
  font-weight: 700;
  color: var(--cream);
}
.footer-tag { color: var(--gold-light); font-weight: 600; }
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.2rem;
  margin: 1rem 0;
}
.footer-links a { text-decoration: none; font-family: "Lexend", sans-serif; font-weight: 600; }
.legal {
  margin: 1rem 0 0;
  font-size: 0.95rem;
  color: #D5E3E0;
  max-width: 46rem;
}
.legal p { margin: 0 0 0.4rem; }

/* 404 */
.page-404 { padding: 2.5rem 0 3rem; }
.page-404 .portrait {
  max-width: 280px;
  margin: 1.2rem 0 1.4rem;
}
.page-404 .portrait img {
  width: auto;
  max-height: 260px;
  object-fit: contain;
}


/* Mission */
#mission,
#mission-teaser {
  scroll-margin-top: 5.5rem;
}
.mission-statement > p:first-child {
  font-size: 1.2rem;
  line-height: 1.6;
  max-width: 42rem;
}
.mission-tagline {
  font-family: "Lexend", sans-serif;
  font-weight: 700;
  font-size: clamp(1.15rem, 2.6vw, 1.5rem);
  line-height: 1.45;
  margin: 1.5rem 0 0;
  padding-top: 1.1rem;
  border-top: 4px solid var(--gold);
  width: fit-content;
  max-width: 100%;
}
.mission-tagline .life { color: var(--teal); }
.mission-tagline .belong { color: var(--burgundy); }
.mission-strength {
  font-family: "Lexend", sans-serif;
  font-weight: 600;
  color: var(--navy);
  font-size: 1.15rem;
  max-width: 42rem;
}
.mission-teaser .center-actions,
.mission .center-actions {
  margin-top: 1.2rem;
}

/* Utilities */
.mt-0 { margin-top: 0; }
.center-actions { margin-top: 1.4rem; }

.visually-hidden,
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
code {
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 0.92em;
  background: var(--goldt);
  padding: 0.05em 0.35em;
  border-radius: 4px;
}
.friend-block .role {
  font-family: "Lexend", sans-serif;
  font-weight: 600;
  margin: 0 0 0.7rem;
}
.friend-block .animal { margin: 0; color: var(--soft); }
.center-actions { display: flex; flex-wrap: wrap; gap: 0.7rem; }
.center-actions .btn { margin-right: 0; }

.site-footer a, .note a {
  overflow-wrap: anywhere;
}
.site-nav a[aria-current="page"] {
  box-shadow: inset 0 -3px 0 var(--gold);
}
@media (min-width: 880px) {
  .site-nav a.nav-cta[aria-current="page"],
  .site-nav a.nav-cta {
    box-shadow: none;
  }
}
