:root {
  --bg: #f7f5f9;
  --surface: #fff;
  --surface-muted: #f1edf5;
  --text: #211a2b;
  --muted: #645a73;
  --primary: #6a4c93;
  --secondary: #8464ab;
  --accent: #d9cbe9;
  --border: #ddd4e7;
  color-scheme: light;
  font-family: Aptos, "Segoe UI", "Helvetica Neue", sans-serif;
}

* { box-sizing: border-box; }

body {
  min-height: 100vh;
  margin: 0;
  display: flex;
  flex-direction: column;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

a { color: var(--primary); }
a:hover { color: var(--secondary); }
a:focus-visible { outline: 2px solid var(--primary); outline-offset: 4px; }

.site-header {
  position: sticky;
  z-index: 2;
  top: 0;
  display: flex;
  min-height: 4.25rem;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .65rem max(1.25rem, calc((100vw - 1120px) / 2));
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.brand, .site-header nav, .site-footer { display: flex; align-items: center; }
.brand { gap: .55rem; color: var(--text); font-weight: 700; text-decoration: none; white-space: nowrap; }
.brand img { flex: none; }
.brand-light { color: var(--muted); font-weight: 400; }
.site-header nav { gap: clamp(.7rem, 2.5vw, 1.6rem); flex-wrap: wrap; justify-content: end; }
.site-header nav a, .site-footer a { color: var(--muted); font-size: .875rem; text-decoration: none; }
.site-header nav a:hover, .site-footer a:hover { color: var(--primary); }
.site-header .back-link { color: var(--primary); font-weight: 600; }

main { width: min(100% - 2.5rem, 1120px); margin: 0 auto; flex: 1; }
.hero { max-width: 740px; padding: clamp(4rem, 10vw, 8rem) 0 3.2rem; }
.eyebrow, .resource-number { margin: 0; color: var(--primary); font-size: .74rem; font-weight: 700; letter-spacing: .12em; }
h1, h2 { font-family: "Aptos Display", Aptos, "Segoe UI", sans-serif; line-height: 1.2; letter-spacing: -.025em; }
h1 { margin: .85rem 0; font-size: clamp(2.6rem, 7vw, 4.8rem); }
.intro { max-width: 600px; margin: 0 0 1.4rem; color: var(--muted); font-size: clamp(1.08rem, 2.2vw, 1.35rem); }
.text-link, .card-link { font-weight: 600; text-decoration: none; }
.resources { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.resource-card { display: flex; min-height: 250px; flex-direction: column; padding: clamp(1.25rem, 3vw, 2rem); border: 1px solid var(--border); background: var(--surface); color: inherit; text-decoration: none; transition: border-color .15s, transform .15s; }
.resource-card:hover { transform: translateY(-2px); border-color: var(--primary); }
.resource-card h2 { margin: 1.2rem 0 .5rem; font-size: 1.55rem; }
.resource-card p { max-width: 440px; margin: 0 0 1.5rem; color: var(--muted); }
.card-link { margin-top: auto; color: var(--primary); }
.note { display: flex; gap: .9rem; align-items: center; margin: 2rem 0 4rem; padding: 1rem 1.15rem; border-left: 3px solid var(--accent); background: var(--surface-muted); }
.note p { margin: 0; color: var(--muted); }
.note-mark { color: var(--primary); font-size: 1.4rem; }
.site-footer { min-height: 4.5rem; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding: 1rem max(1.25rem, calc((100vw - 1120px) / 2)); border-top: 1px solid var(--border); background: var(--surface); color: var(--muted); font-size: .82rem; }
.site-footer .footer-brand { color: var(--text); font-weight: 700; }

@media (max-width: 640px) {
  .site-header { align-items: flex-start; flex-direction: column; }
  .site-header nav { justify-content: flex-start; }
  main { width: min(100% - 2rem, 1120px); }
  .hero { padding-top: 4rem; }
  .resources { grid-template-columns: 1fr; }
  .resource-card { min-height: 210px; }
  .site-footer { align-items: flex-start; flex-direction: column; }
}
