/* specialed.guide, the book site. Same color family as specialed.app (and the book cover),
   but a darker, book-first look so the two sites are not confused.
   System fonts only, so nothing loads from other sites. */
:root {
  --sky: #4197e2;
  --slate: #406b96;
  --navy: #22384f;
  --navy-2: #2c4864;
  --yellow: #ecde39;
  --sign-green: #2f7d46;
  --green-light: #e4f2e8;
  --cream-text: #f6e7b4;
  --link: #1f6fb8;
  --link-pressed: #164f85;
  --paper: #fbf6e9;
  --white: #ffffff;
  --ink: #1f1f1c;
  --ink-soft: #3d3b36;
  --muted: #5c5a53;
  --border: #ddd4bc;
  --serif: Georgia, "Merriweather", "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Lato, Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.65;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); }
a:hover { color: var(--link-pressed); }
a:focus-visible, summary:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }

/* Read aloud by screen readers, hidden on screen. */
.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; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--yellow); color: var(--ink); padding: 8px 12px; border-radius: 6px; z-index: 10; }
.skip:focus { left: 8px; }

/* Header */
/* Author (2026-10-20): bright blue header, like the app site and the book cover. */
header.top { background: var(--sky); color: var(--white); border-bottom: 4px solid var(--yellow); }
header.top .wrap { display: flex; align-items: center; gap: 12px; padding-top: 14px; padding-bottom: 14px; }
header.top img { width: 40px; height: 40px; flex: none; }
header.top .name { font-family: var(--serif); font-weight: 700; font-size: 20px; color: var(--white); text-decoration: none; letter-spacing: 0.2px; }
/* Dark text on yellow, like a road sign, so the small label passes contrast checks. */
header.top .name span { display: table; margin-top: 4px; font-family: var(--sans); font-weight: 800; font-size: 13px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--ink); background: var(--yellow); border-radius: 4px; padding: 1px 8px; }
nav { margin-left: auto; display: flex; gap: 20px; flex-wrap: wrap; justify-content: flex-end; }
/* 19px bold white counts as large text, which passes contrast on the bright blue. */
nav a { color: var(--white); font-weight: 700; font-size: 19px; text-decoration: none; }
nav a:hover { color: var(--white); text-decoration: underline; }

/* Hero */
.hero { background: linear-gradient(160deg, var(--navy-2) 0%, var(--slate) 100%); color: var(--white); padding: 56px 0 64px; }
.hero .wrap { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: center; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--cream-text); margin: 0 0 14px; }
.hero h1 { font-family: var(--serif); font-size: 50px; line-height: 1.1; margin: 0 0 10px; font-weight: 700; }
.hero .subtitle { font-family: var(--serif); font-size: 24px; color: var(--cream-text); margin: 0 0 22px; }
.hero .lead { font-size: 20px; margin: 0 0 28px; max-width: 34em; }
.hero .byline { font-size: 16px; margin: 22px 0 0; opacity: 0.92; }
.cover { justify-self: center; max-width: 300px; width: 100%; filter: drop-shadow(0 22px 30px rgba(0, 0, 0, 0.35)); }
.cover.flat { max-width: 330px; border-radius: 4px; }
nav a.lang { border: 2px solid var(--white); border-radius: 999px; padding: 0 12px; }
.note-es { margin-top: 28px; background: var(--green-light); border-left: 5px solid var(--sign-green); border-radius: 6px; padding: 14px 18px; max-width: 46em; }

.buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.button {
  display: inline-flex; align-items: center; min-height: 48px; padding: 12px 22px; border-radius: 10px;
  background: var(--yellow); color: var(--ink); font-weight: 800; text-decoration: none; border: 2px solid var(--yellow);
}
.button:hover { background: #f4e85e; color: var(--ink); }
.button.ghost { background: transparent; color: var(--white); border-color: rgba(255, 255, 255, 0.7); }
.button.ghost:hover { background: rgba(255, 255, 255, 0.12); color: var(--white); }
.button.blue { background: var(--link); border-color: var(--link); color: var(--white); }
.button.blue:hover { background: var(--link-pressed); border-color: var(--link-pressed); color: var(--white); }

/* Sections */
section.block { padding: 64px 0; }
section.alt { background: var(--white); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.sign {
  display: inline-block; background: var(--sign-green); color: var(--white); font-size: 13px; font-weight: 800;
  letter-spacing: 1.5px; text-transform: uppercase; padding: 5px 12px; border-radius: 6px; border: 2px solid var(--white);
  box-shadow: 0 0 0 2px var(--sign-green); margin: 0 0 16px;
}
h2 { font-family: var(--serif); font-size: 36px; line-height: 1.2; margin: 0 0 16px; color: var(--navy); }
h3 { font-size: 20px; margin: 0 0 8px; color: var(--navy); }
p { margin: 0 0 14px; }
.page-title { font-family: var(--serif); font-size: 40px; line-height: 1.2; margin: 0 0 16px; color: var(--navy); }
main h2 + p, main h2 + ul { margin-top: 0; }
.narrow h2 { font-size: 26px; margin-top: 32px; }
.small { font-size: 15px; color: var(--muted); }
ul.plain { padding-left: 22px; margin: 0 0 14px; }
ul.plain li { margin-bottom: 8px; }
.intro { font-size: 20px; color: var(--ink-soft); max-width: 40em; margin-bottom: 32px; }

.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { background: var(--white); border: 1px solid var(--border); border-radius: 14px; padding: 26px 24px; border-top: 5px solid var(--sky); }
.card p { margin: 0; color: var(--ink-soft); }

/* Table of contents. Author's rule: sections start closed, with a count badge. */
.toc { display: grid; gap: 12px; max-width: 820px; }
details { background: var(--paper); border: 1px solid var(--border); border-radius: 12px; }
details summary {
  list-style: none; cursor: pointer; padding: 16px 20px; display: flex; align-items: center; gap: 12px;
  font-weight: 800; font-size: 19px; color: var(--navy);
}
details summary::-webkit-details-marker { display: none; }
details summary::after { content: "+"; margin-left: auto; font-size: 26px; line-height: 1; color: var(--slate); }
details[open] summary::after { content: "\2212"; }
.count { background: var(--slate); color: var(--white); font-size: 14px; font-weight: 700; border-radius: 999px; padding: 2px 10px; }
.toc-body { padding: 0 20px 18px; }
.toc-body ol, .toc-body ul { margin: 0; padding-left: 0; list-style: none; }
.toc-body > ol > li { padding: 12px 0; border-top: 1px solid var(--border); }
.toc-body .ch { font-weight: 700; color: var(--ink); }
.toc-body .ch span { color: var(--slate); font-weight: 800; margin-right: 6px; }
.toc-body li ul { margin-top: 4px; color: var(--ink-soft); font-size: 16px; }
.toc-body li ul li { padding: 1px 0 1px 18px; position: relative; }
.toc-body li ul li::before { content: ""; position: absolute; left: 4px; top: 0.75em; width: 6px; height: 6px; border-radius: 50%; background: var(--sky); }

/* App band */
/* Author (2026-10-20): light sky blue, not dark. */
.app-band { background: #e3effb; color: var(--ink); padding: 64px 0; border-top: 1px solid #c4dcf3; border-bottom: 1px solid #c4dcf3; }
.app-band .wrap { display: grid; grid-template-columns: auto 1fr; gap: 40px; align-items: center; }
.app-band img { width: 150px; height: 150px; }
.app-band .button { background: var(--link); border-color: var(--link); color: var(--white); }
.app-band .button:hover { background: var(--link-pressed); border-color: var(--link-pressed); }
.app-band .soon { color: var(--ink-soft); }
.app-band p { font-size: 19px; max-width: 36em; }
.app-band ul { margin: 0 0 22px; padding-left: 22px; }
.app-band li { margin-bottom: 6px; }
.app-band .soon { display: inline-block; font-weight: 700; font-size: 15px; margin-left: 4px; }

/* Author */
/* Author (2026-10-20): family photo only, no headshot. */
/* Photo on the right so its tilt leans toward the text (Dana). */
/* Floated so the bio wraps under the photo instead of leaving blank space (Dana). */
.author .family { float: right; width: 420px; margin: 8px 0 24px 40px; }
.author::after { content: ""; display: block; clear: both; }

/* Contact */
.contact { text-align: center; }
.contact .intro { margin-left: auto; margin-right: auto; }
.contact .buttons { justify-content: center; }

/* Footer */
footer { background: var(--navy); color: var(--white); padding: 36px 0 44px; font-size: 15px; }
footer .legal { border-left: 4px solid var(--yellow); padding-left: 14px; margin-bottom: 20px; max-width: 760px; }
footer .links a { color: var(--white); font-weight: 700; margin-right: 18px; }
footer a:hover { color: var(--yellow); }

@media (max-width: 860px) {
  .hero .wrap, .app-band .wrap { grid-template-columns: 1fr; }
  .hero { padding: 40px 0 48px; }
  .hero h1 { font-size: 38px; }
  .cover { max-width: 260px; order: -1; }
  .grid3 { grid-template-columns: 1fr; }
  .author .family { float: none; width: 100%; max-width: 480px; margin: 0 0 24px; }
  .app-band img { width: 110px; height: 110px; }
}
@media (max-width: 560px) {
  body { font-size: 17px; }
  header.top .wrap { flex-wrap: wrap; }
  nav { margin-left: 0; width: 100%; justify-content: flex-start; gap: 16px; }
  h2 { font-size: 30px; }
  section.block, .app-band { padding: 48px 0; }
}
