/* Hearthwood Academy of Virginia
   Brand: navy #3A3D5D, lavender #878BB5, white #FFFFFF
   Headings: Poppins (matches the logo wordmark). Text: Public Sans. */

:root {
  --navy: #3A3D5D;
  --navy-deep: #2E3150;
  --navy-soft: #464A6E;
  --lavender: #878BB5;
  --lavender-light: #C9CBE1;
  --tint: #F0F1F7;
  --tint-strong: #E4E5F0;
  --white: #FFFFFF;
  --ink: #2B2D45;
  --ink-soft: #55587A;

  --font-head: "Poppins", "Segoe UI", system-ui, sans-serif;
  --font-text: "Public Sans", "Segoe UI", system-ui, sans-serif;

  --wrap: 1200px;
  --gutter: clamp(20px, 4vw, 40px);
  --section: clamp(72px, 9vw, 128px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: 18px;
  line-height: 1.6;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--navy); text-decoration-thickness: 2px; text-underline-offset: 3px; text-decoration-color: var(--lavender); }
a:hover { text-decoration-color: var(--navy); }
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 3px solid var(--lavender);
  outline-offset: 3px;
}

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--navy);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: clamp(2.25rem, 4.6vw, 3.75rem); }
h2 { font-size: clamp(1.75rem, 2.8vw, 2.5rem); }
h3 { font-size: 1.25rem; letter-spacing: -0.01em; line-height: 1.3; }
p { margin: 0 0 1em; max-width: 68ch; }
p:last-child { margin-bottom: 0; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

.skip {
  position: absolute; left: -999px; top: 8px;
  background: var(--white); color: var(--navy); padding: 10px 16px; z-index: 10;
}
.skip:focus { left: 8px; }

/* Draft notice and placeholder marks. Delete both blocks before launch. */
.draft-note {
  background: var(--lavender-light);
  color: var(--navy-deep);
  font-size: 15px;
  padding: 10px 0;
}
.ph {
  background: #E6E7F3;
  box-shadow: inset 0 -2px 0 var(--lavender); /* taste-skill-ignore: solid 2px divider or brand crescent, not a drop shadow */
  padding: 0 3px;
}

/* Header */
.site-header { background: var(--navy); color: var(--white); }
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; min-height: 92px;
}
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--white); }
.brand img { width: 168px; }
.brand span {
  font-family: var(--font-head); font-size: 15px; font-weight: 500;
  color: var(--lavender-light); padding-left: 14px; margin-left: 2px;
  border-left: 2px solid var(--navy-soft); line-height: 1.2;
}
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; align-items: center; }
.site-nav a {
  display: block; color: var(--white); text-decoration: none;
  font-family: var(--font-head); font-weight: 500; font-size: 16px;
  padding: 10px 14px; position: relative; white-space: nowrap;
}
.site-nav a:hover { color: var(--lavender-light); }
.site-nav a[aria-current="page"]::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px;
  height: 3px; background: var(--lavender);
}
.site-nav .nav-action a {
  background: var(--white); color: var(--navy); margin-left: 10px; padding: 10px 18px;
}
.site-nav .nav-action a:hover { background: var(--lavender-light); color: var(--navy-deep); }

/* Page heading band */
.masthead { background: var(--navy); color: var(--white); position: relative; overflow: hidden; }
.masthead::before {
  /* The crescent from the Hearthwood mark, enlarged */
  content: ""; position: absolute; width: 780px; height: 780px; border-radius: 50%;
  right: -300px; top: -180px;
  box-shadow: -46px 0 0 0 var(--navy-soft); /* taste-skill-ignore: solid 2px divider or brand crescent, not a drop shadow */
  pointer-events: none;
}
.masthead .wrap { position: relative; padding-top: clamp(56px, 7vw, 96px); padding-bottom: clamp(56px, 7vw, 96px); }
.masthead h1 { color: var(--white); max-width: 16ch; }
.masthead .lede { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: #E3E4F0; margin-top: 24px; max-width: 46ch; }
.masthead .ph { background: var(--navy-soft); box-shadow: inset 0 -2px 0 var(--lavender); color: var(--white); }

.masthead-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: end; }

.facts { background: var(--navy-deep); padding: 32px 32px 28px; margin: 0; }
.facts h2 { color: var(--white); font-size: 1.25rem; margin-bottom: 18px; }
.facts dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 12px 24px; font-size: 16px; }
.facts dt { color: var(--lavender-light); font-weight: 600; }
.facts dd { margin: 0; color: var(--white); }

.actions { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; margin-top: 36px; }
.btn {
  display: inline-block; font-family: var(--font-head); font-weight: 600; font-size: 16px;
  padding: 14px 24px; text-decoration: none; transition: background-color .15s ease, transform .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-light { background: var(--white); color: var(--navy); }
.btn-light:hover { background: var(--lavender-light); }
.btn-dark { background: var(--navy); color: var(--white); }
.btn-dark:hover { background: var(--navy-deep); }
.text-link { color: var(--white); font-family: var(--font-head); font-weight: 500; text-decoration-color: var(--lavender); }
.text-link:hover { color: var(--lavender-light); }

/* Sections */
.section { padding: var(--section) 0; }
.section + .section { padding-top: 0; }
.masthead + .section { padding-top: clamp(48px, 6vw, 80px); }
.section.tinted { background: var(--tint); padding-top: var(--section); }
.split { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 96px); }
.split > div > p:first-child { margin-top: 6px; }
.big-p { font-size: clamp(1.15rem, 1.7vw, 1.35rem); line-height: 1.55; color: var(--ink); }

.reqs { display: grid; grid-template-columns: 1fr 1fr; gap: 40px 56px; margin-top: 48px; }
.reqs h3 { margin-bottom: 10px; }
.reqs p { font-size: 17px; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); margin-top: 48px; }
.panel { background: var(--white); padding: clamp(28px, 3.4vw, 44px); }
.panel h3 { font-size: 1.4rem; margin-bottom: 16px; }
.panel ul { margin: 0; padding-left: 1.1em; }
.panel li { margin-bottom: 12px; }
.panel li::marker { color: var(--lavender); }

.next-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 48px; background: var(--navy); }
.next-steps a {
  display: block; padding: 36px 32px 40px; color: var(--white); text-decoration: none;
  transition: background-color .15s ease;
}
.next-steps a + a { box-shadow: inset 2px 0 0 var(--navy-soft); /* taste-skill-ignore */ }
.next-steps a:hover { background: var(--navy-deep); }
.next-steps strong { display: block; font-family: var(--font-head); font-size: 1.35rem; font-weight: 600; margin-bottom: 8px; }
.next-steps span { display: block; color: #DCDDEB; font-size: 16px; }
.next-steps .go { display: block; margin-top: 18px; color: var(--lavender-light); font-family: var(--font-head); font-weight: 500; }

/* Course catalog */
.catalog-tools {
  display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: end; justify-content: space-between;
  background: var(--tint); padding: 24px 28px; margin-bottom: 56px;
}
.catalog-tools label { display: block; font-weight: 600; font-size: 15px; margin-bottom: 6px; color: var(--navy); }
.catalog-tools input {
  font: inherit; font-size: 17px; width: 100%; max-width: 380px; padding: 12px 14px;
  border: 2px solid var(--lavender-light); background: var(--white); color: var(--ink);
}
.catalog-tools input:focus { border-color: var(--navy); outline: none; }
.level-links { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 0; padding: 0; list-style: none; font-family: var(--font-head); font-weight: 500; }
.level { margin-bottom: 80px; scroll-margin-top: 24px; }
.level header { margin-bottom: 20px; }
.level header p { margin: 8px 0 0; color: var(--ink-soft); font-size: 16px; }

table.courses { width: 100%; border-collapse: collapse; font-size: 17px; }
table.courses th {
  text-align: left; font-family: var(--font-head); font-weight: 600; font-size: 15px;
  color: var(--white); background: var(--navy); padding: 12px 16px;
}
table.courses td { padding: 14px 16px; border-bottom: 1px solid var(--tint-strong); vertical-align: top; }
table.courses tbody tr:nth-child(even) td { background: #FAFAFD; }
table.courses td.course { font-weight: 600; color: var(--navy); }
table.courses td.syl a { white-space: nowrap; font-weight: 500; }
table.courses td.syl a + a { margin-left: 14px; }
.pdf { font-size: 13px; font-weight: 600; color: var(--ink-soft); margin-left: 4px; }
.no-match { display: none; padding: 20px 0; color: var(--ink-soft); }
.catalog-note { font-size: 16px; color: var(--ink-soft); margin-bottom: 40px; }
.catalog-tools > div { flex: 1 1 280px; min-width: 0; }

/* Calendar */
.with-aside { display: grid; grid-template-columns: 240px 1fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
.aside-nav { position: sticky; top: 24px; }
.aside-nav h2 { font-size: 1rem; margin-bottom: 12px; }
.aside-nav ul { list-style: none; margin: 0; padding: 0; }
.aside-nav a { display: block; padding: 8px 0 8px 16px; text-decoration: none; box-shadow: inset 3px 0 0 var(--tint-strong); font-weight: 500; }
.aside-nav a:hover { box-shadow: inset 3px 0 0 var(--lavender); /* taste-skill-ignore */ }
.cal-block { margin-bottom: 80px; scroll-margin-top: 24px; }
.cal-block > h2 { margin-bottom: 16px; }
.cal-block > p { margin-bottom: 24px; }
.cohorts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 28px 0 32px; }
.cohort { background: var(--tint); padding: 24px; }
.cohort h3 { margin-bottom: 8px; }
.cohort p { font-size: 16px; }
.policy { background: var(--navy); color: var(--white); padding: 28px 32px; margin-top: 28px; }
.policy h3 { color: var(--white); margin-bottom: 8px; }
.policy p { color: #E3E4F0; font-size: 17px; }
.policy .ph { background: var(--navy-soft); color: var(--white); }

/* Contact */
.audiences { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
.audience { padding: 0 clamp(20px, 3vw, 40px) 0 0; }
.audience + .audience { padding-left: clamp(20px, 3vw, 40px); box-shadow: inset 2px 0 0 var(--tint-strong); /* taste-skill-ignore */ }
.audience h2 { font-size: 1.6rem; margin-bottom: 8px; }
.audience > p { color: var(--ink-soft); font-size: 16px; margin-bottom: 28px; }
.contact-item { margin-bottom: 28px; }
.contact-item h3 { font-size: 1.1rem; margin-bottom: 6px; }
.contact-item p { font-size: 16px; margin: 0; }
.admin-band { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; margin-top: 40px; }
.admin-band h3 { font-size: 1.05rem; margin-bottom: 6px; }
.admin-band p { font-size: 16px; }

/* Footer */
.site-footer { background: var(--navy); color: #DCDDEB; padding: 72px 0 40px; font-size: 16px; }
.site-footer .ph { background: var(--navy-soft); color: var(--white); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
.site-footer img { width: 200px; margin-bottom: 18px; }
.site-footer h2 { color: var(--white); font-size: 1rem; margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: var(--white); text-decoration-color: var(--lavender); }
.site-footer a:hover { color: var(--lavender-light); }
.footer-base {
  margin-top: 56px; padding-top: 24px; box-shadow: inset 0 2px 0 var(--navy-soft); /* taste-skill-ignore: solid 2px divider or brand crescent, not a drop shadow */
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 14px; color: #C3C5DB;
}

/* Section entrance (content stays visible without script) */
.js .reveal { opacity: 0; transform: translateY(20px); transition: opacity .5s ease, transform .5s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* Tablet */
@media (max-width: 960px) {
  .site-header .wrap { flex-direction: column; align-items: flex-start; padding-top: 18px; padding-bottom: 8px; gap: 10px; }
  .site-nav ul { flex-wrap: wrap; margin-left: -14px; }
  .site-nav .nav-action a { margin-left: 4px; }
  .masthead-grid, .split, .two-col, .with-aside { grid-template-columns: 1fr; }
  .aside-nav { position: static; }
  .aside-nav ul { display: flex; flex-wrap: wrap; gap: 4px 20px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .admin-band { grid-template-columns: 1fr 1fr; }
  .audiences { grid-template-columns: 1fr; gap: 48px; }
  .audience, .audience + .audience { padding: 0; box-shadow: none; /* taste-skill-ignore */ }
  .next-steps { grid-template-columns: 1fr; }
  .next-steps a + a { box-shadow: inset 0 2px 0 var(--navy-soft); /* taste-skill-ignore */ }
  .cohorts { grid-template-columns: 1fr; }
}

/* Phone */
@media (max-width: 600px) {
  body { font-size: 17px; }
  .brand img { width: 140px; }
  .brand span { font-size: 13px; }
  .site-nav a { padding: 10px 8px; font-size: 15px; }
  .site-nav a[aria-current="page"]::after { left: 8px; right: 8px; }
  .site-nav .nav-action a { background: none; color: var(--white); margin-left: 0; padding: 10px 8px; }
  .site-nav ul { margin-left: -8px; gap: 0; }
  .masthead::before { width: 520px; height: 520px; right: -320px; top: -120px; }
  .facts { padding: 24px 22px; }
  .facts dl { grid-template-columns: 1fr; gap: 2px; }
  .facts dd { margin-bottom: 12px; }
  .reqs { grid-template-columns: 1fr; gap: 32px; }
  .footer-grid, .admin-band { grid-template-columns: 1fr; }
  .catalog-tools { padding: 20px; }

  /* Course tables become stacked rows */
  table.courses thead { position: absolute; left: -9999px; }
  table.courses, table.courses tbody, table.courses tr, table.courses td { display: block; width: 100%; }
  table.courses tr { padding: 14px 0; border-bottom: 2px solid var(--tint-strong); }
  table.courses tbody tr:nth-child(even) td { background: none; }
  table.courses td { border: 0; padding: 2px 0; }
  table.courses td[data-label]::before { content: attr(data-label) ": "; font-weight: 600; color: var(--ink-soft); }
  table.courses td.course { font-size: 18px; }
  table.courses td.syl { padding-top: 8px; }
  table.dates thead { position: absolute; left: -9999px; }
  table.dates, table.dates tbody, table.dates tr, table.dates td { display: block; width: 100%; }
  table.dates tr { padding: 14px 0; border-bottom: 2px solid var(--tint-strong); }
  table.dates td { border: 0; padding: 2px 0; }
  table.dates td[data-label]::before { content: attr(data-label) ": "; font-weight: 600; color: var(--ink-soft); }
}

/* Date tables share the course table look */
table.dates { width: 100%; border-collapse: collapse; font-size: 17px; }
table.dates th { text-align: left; font-family: var(--font-head); font-weight: 600; font-size: 15px; color: var(--white); background: var(--navy); padding: 12px 16px; }
table.dates td { padding: 14px 16px; border-bottom: 1px solid var(--tint-strong); vertical-align: top; }
table.dates td:first-child { font-weight: 600; color: var(--navy); }
@media (min-width: 961px) { table.dates td { white-space: nowrap; } table.dates td:first-child { white-space: normal; } }

@media print {
  .draft-note, .site-nav, .catalog-tools, .aside-nav { display: none; }
  .masthead, .site-header, .site-footer { background: none; color: #000; }
}
.masthead .lede a { color: #fff; text-decoration-color: var(--lavender-light); }
