/* Terrathink: the Homeschool and About pages. Loaded after styles.css and notes.css
   (the homeschool page also loads tools.css and teachers.css for its cards and table). */

/* ---------- homeschool: the four-week unit, photo beside the plan ---------- */
.hs-unit {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 4vw, 72px); align-items: center;
  margin: 0 var(--gutter); padding: clamp(18px, 2.2vw, 30px); border-radius: 24px;
  background: var(--night); color: var(--paper);
}
.hs-unit-media { margin: 0; aspect-ratio: 1; border-radius: 16px; overflow: hidden; }
.hs-unit-media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.hs-unit-body { padding: clamp(8px, 1.6vw, 24px) clamp(4px, 2vw, 28px) clamp(8px, 1.6vw, 24px) 0; }
.hs-unit h2 { color: var(--paper); font-size: clamp(2.1rem, 3.6vw, 3.25rem); line-height: 1.02; letter-spacing: -0.01em; }
.hs-lede { margin-top: 16px; max-width: 52ch; color: var(--cream-soft); font-size: clamp(1.0625rem, 1.25vw, 1.2rem); line-height: 1.55; }
.hs-weeks { list-style: none; margin: clamp(22px, 2.4vw, 30px) 0 0; padding: 0; }
.hs-weeks li { display: grid; grid-template-columns: 8.5rem minmax(0, 1fr); column-gap: 20px; padding: 16px 0; border-top: 1px solid rgba(255, 237, 213, 0.2); }
.hs-when { grid-row: 1 / 3; padding-top: 5px; font-size: 0.9375rem; font-weight: 500; color: var(--cream-soft); }
.hs-weeks h3 { color: var(--paper); font-size: clamp(1.3rem, 1.6vw, 1.5rem); line-height: 1.15; }
.hs-weeks p:not(.hs-when) { margin-top: 6px; color: var(--cream-soft); line-height: 1.5; }
.hs-cta {
  display: inline-flex; align-items: center; gap: 8px; min-height: 48px; margin-top: 20px; padding: 0 24px;
  border-radius: var(--radius-pill); background: var(--paper); color: var(--night); font-weight: 500; text-decoration: none;
  transition: background-color .2s ease;
}
.hs-cta::after { content: "\2192"; }
.hs-cta:hover { background: #FFF8EE; }

/* What you need: six short items, ruled like a supply list. */
.hs-needs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: clamp(24px, 3vw, 48px); margin: 0; padding: 0 var(--gutter); list-style: none; }
.hs-needs li { padding: 18px 0 22px; border-top: 1px solid var(--ink-line); }
.hs-needs li:nth-child(-n+3) { border-top-color: var(--ink); }
.hs-needs h3 { font-size: clamp(1.3rem, 1.6vw, 1.5rem); line-height: 1.1; }
.hs-needs p { margin-top: 8px; max-width: 38ch; color: var(--ink-soft); line-height: 1.5; }

.hs-by { margin-top: 14px; }
.hs-standards { margin-top: 6px; max-width: 60ch; font-size: 0.9375rem; line-height: 1.5; color: var(--ink-soft); }
.hs-standards a { color: var(--ink); font-weight: 500; text-underline-offset: 3px; text-decoration-thickness: 1px; white-space: nowrap; }
.hs-standards a::after { content: " \2192"; }
.hs-standards + .filters { margin-top: 20px; }
.hs-ages tbody th { white-space: normal; }
.hs-band { margin-top: clamp(56px, 6vw, 88px); }

/* ---------- about ---------- */
.ab-hero {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(40px, 5vw, 88px); align-items: end;
  padding: clamp(20px, 3vw, 48px) var(--gutter) clamp(40px, 4.5vw, 64px);
}
.ab-hero h1 { font-size: clamp(2.8rem, 6vw, 5.5rem); line-height: 0.98; letter-spacing: -0.02em; }
.ab-lede { max-width: 44ch; padding-bottom: 0.4em; font-size: clamp(1.125rem, 1.4vw, 1.35rem); line-height: 1.5; color: var(--ink-soft); }

.ab-band {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 4vw, 72px); align-items: center;
  margin: 0 var(--gutter); padding: clamp(18px, 2.2vw, 30px); border-radius: 24px;
  background: var(--night); color: var(--paper);
}
.ab-photo { margin: 0; aspect-ratio: 11 / 9; border-radius: 16px; overflow: hidden; }
.ab-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ab-band-body { padding: clamp(8px, 1.6vw, 24px) clamp(4px, 2vw, 28px) clamp(8px, 1.6vw, 24px) 0; }
.ab-band h2 { color: var(--paper); font-size: clamp(2.2rem, 3.8vw, 3.6rem); line-height: 1.04; letter-spacing: -0.012em; }
.ab-band h2 span { display: block; }
.ab-band p { margin-top: 22px; max-width: 48ch; color: var(--cream-soft); font-size: clamp(1.0625rem, 1.25vw, 1.2rem); line-height: 1.6; }

.ab-section {
  display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(24px, 4vw, 64px);
  padding: clamp(56px, 6vw, 96px) var(--gutter) 0;
}
.ab-h2 { font-size: clamp(2rem, 3.4vw, 3rem); line-height: 1.02; letter-spacing: -0.01em; }
.ab-sub { margin-top: 14px; max-width: 30ch; color: var(--ink-soft); line-height: 1.5; }
.ab-sub a { text-underline-offset: 3px; text-decoration-thickness: 1px; }
.ab-stats, .ab-how { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 2.4vw, 36px); margin: 0; padding: 0; list-style: none; }
.ab-stats li, .ab-how li { position: relative; padding-top: 18px; border-top: 1px solid var(--ink); }
.ab-how li { border-top-color: var(--ink-line); }
.ab-num { display: block; margin-bottom: 12px; font: 400 clamp(3rem, 5vw, 4.5rem)/1 var(--display); letter-spacing: -0.02em; }
.ab-stats h3, .ab-how h3 { font-size: clamp(1.3rem, 1.6vw, 1.5rem); line-height: 1.12; }
.ab-stats h3 a { text-decoration: none; }
.ab-stats h3 a::after { content: ""; position: absolute; inset: 0; }
.ab-stats h3 a:focus-visible { outline: none; }
.ab-stats li:has(a:focus-visible) { outline: 2px solid var(--leaf); outline-offset: 6px; border-radius: 4px; }
.ab-stats li:hover .ab-name { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.ab-stats p:not(.ab-num), .ab-how p { margin-top: 8px; color: var(--ink-soft); line-height: 1.5; }
.ab-stats .ab-go { margin-top: 14px; color: var(--ink); font-size: 0.9375rem; font-weight: 500; }
.ab-go::after { content: " \2192"; }

.ab-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2vw, 24px); padding: clamp(56px, 6vw, 96px) var(--gutter) 0; }
/* Nate's photo: small, whole (no cropping, Nate Nov 17), tucked into the corner of the "Who's behind it" box. */
.ab-founder { float: right; width: clamp(112px, 32%, 200px); margin: 0 0 14px 20px; overflow: hidden; border-radius: 14px; }
.ab-founder img { display: block; width: 100%; height: auto; }
.ab-card { padding: clamp(24px, 3vw, 44px); border-radius: 20px; background: var(--paper-deep); }
.ab-card h2 { font-size: clamp(1.8rem, 2.6vw, 2.4rem); line-height: 1.05; letter-spacing: -0.01em; }
.ab-card p { margin-top: 14px; max-width: 46ch; font-size: clamp(1.0625rem, 1.25vw, 1.2rem); line-height: 1.6; }

.ab-contact {
  display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(20px, 4vw, 64px); align-items: end;
  margin: clamp(56px, 6vw, 96px) var(--gutter) clamp(64px, 7vw, 112px); padding-top: 28px; border-top: 1px solid var(--ink);
}
.ab-contact h2 { font-size: clamp(2rem, 3.4vw, 3rem); line-height: 1.02; letter-spacing: -0.01em; }
.ab-contact p { margin-top: 10px; color: var(--ink-soft); }
.ab-mail { font: 400 clamp(1.6rem, 3vw, 2.6rem)/1.1 var(--display); text-decoration-thickness: 1px; text-underline-offset: 6px; overflow-wrap: anywhere; }
.ab-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.ab-chip {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 22px;
  border: 1px solid rgba(30, 61, 81, 0.38); border-radius: var(--radius-pill);
  font-weight: 500; text-decoration: none; transition: border-color .2s ease;
}
.ab-chip:hover { border-color: var(--ink); }

/* ---------- smaller screens ---------- */
@media (max-width: 900px) {
  .hs-unit, .ab-band, .ab-hero, .ab-section, .ab-pair, .ab-contact { grid-template-columns: minmax(0, 1fr); }
  .hs-unit-media { aspect-ratio: 4 / 3; }
  .hs-unit-body, .ab-band-body { padding: 4px 6px 10px; }
  .hs-needs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hs-needs li:nth-child(3) { border-top-color: var(--ink-line); }
  .ab-lede { margin-top: 18px; padding-bottom: 0; }
}
@media (max-width: 640px) {
  .hs-unit, .ab-band { margin-inline: calc(var(--gutter) * 0.5); border-radius: 20px; }
  .hs-weeks li { grid-template-columns: minmax(0, 1fr); }
  .hs-when { grid-row: auto; padding-top: 0; margin-bottom: 4px; }
  .hs-needs, .ab-stats, .ab-how { grid-template-columns: minmax(0, 1fr); }
  .hs-needs li:nth-child(2) { border-top-color: var(--ink-line); }
  .hs-ages td[data-label]::before { content: attr(data-label); display: block; margin-bottom: 2px; font-size: 0.8125rem; font-weight: 500; color: var(--ink-soft); }
  .ab-mail { font-size: clamp(1.4rem, 7vw, 1.8rem); }
  .ab-founder { float: none; width: 136px; margin: 0 0 18px; }
}
