:root {
  --ink: #17212b;
  --muted: #617080;
  --line: #d9e4ea;
  --paper: #fbfcf8;
  --surface: #ffffff;
  --teal: #0f8b8d;
  --green: #77b255;
  --coral: #f26a4b;
  --yellow: #f2c94c;
  --blue: #315f9c;
  --shadow: 0 18px 55px rgba(23, 33, 43, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 18px;
  line-height: 1.58;
}

body {
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 14px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid rgba(217, 228, 234, 0.85);
  background: rgba(251, 252, 248, 0.92);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: var(--yellow);
  font-size: 0.82rem;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.nav a {
  border-radius: 999px;
  padding: 8px 12px;
  color: var(--muted);
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
}

.nav a:hover {
  background: #eaf4f3;
  color: var(--teal);
}

.hero {
  display: grid;
  grid-template-columns: minmax(300px, 0.82fr) minmax(420px, 1.18fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
  min-height: calc(100vh - 72px);
  padding: clamp(36px, 6vw, 72px) clamp(18px, 4vw, 56px);
  background:
    radial-gradient(circle at 18% 24%, rgba(242, 201, 76, 0.32), transparent 24%),
    linear-gradient(135deg, #fbfcf8 0%, #eef8f5 55%, #fef6ec 100%);
}

.hero-copy {
  max-width: 660px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(3.2rem, 9vw, 7.5rem);
  line-height: 0.92;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin: 0;
  font-size: 1.28rem;
  line-height: 1.25;
}

.hero-text,
.section-heading p {
  max-width: 680px;
  color: var(--muted);
  font-size: 1.2rem;
}

.hero-text {
  margin: 22px 0 0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border: 0;
  border-radius: 8px;
  padding: 0 18px;
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.button.primary {
  background: var(--ink);
  color: #ffffff;
}

.button.secondary {
  background: #ffffff;
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line);
}

.button:hover {
  transform: translateY(-1px);
}

.inline-link {
  justify-self: start;
  color: var(--teal);
  font-weight: 900;
  text-decoration: none;
}

.hero-panel {
  position: relative;
  display: grid;
  gap: 16px;
  min-height: min(74vh, 760px);
  padding: clamp(18px, 3vw, 34px);
  border: 1px solid rgba(23, 33, 43, 0.08);
  border-radius: 24px;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.62)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='640' height='640' viewBox='0 0 640 640'%3E%3Crect width='640' height='640' fill='%23f8fbf8'/%3E%3Cpath d='M97 127h158v210H97z' fill='%23ffffff' stroke='%2317212b' stroke-width='8'/%3E%3Cpath d='M134 178h82M134 216h62M134 254h88' stroke='%230f8b8d' stroke-width='12' stroke-linecap='round'/%3E%3Cpath d='M322 98h183c22 0 40 18 40 40v286c0 22-18 40-40 40H322c-22 0-40-18-40-40V138c0-22 18-40 40-40z' fill='%23f2c94c' stroke='%2317212b' stroke-width='8'/%3E%3Cpath d='M330 174h166M330 226h128M330 278h148M330 330h84' stroke='%2317212b' stroke-width='13' stroke-linecap='round'/%3E%3Ccircle cx='184' cy='442' r='66' fill='%23f26a4b' stroke='%2317212b' stroke-width='8'/%3E%3Cpath d='M157 444l21 21 39-48' fill='none' stroke='%23ffffff' stroke-width='14' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-position: center;
  background-size: min(120%, 860px);
  background-repeat: no-repeat;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.study-card,
.score-strip {
  align-self: end;
  display: flex;
  align-items: center;
  gap: 14px;
  width: min(100%, 360px);
  min-height: 86px;
  padding: 18px;
  border: 1px solid rgba(217, 228, 234, 0.88);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 34px rgba(23, 33, 43, 0.12);
}

.main-card {
  margin-top: auto;
}

.study-card strong,
.study-card span,
.score-strip strong,
.score-strip span {
  display: block;
}

.study-card div span,
.score-strip span {
  color: var(--muted);
  font-size: 1rem;
}

.card-icon {
  display: grid;
  flex: 0 0 46px;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 12px;
  background: #e8f5f1;
  color: var(--teal);
  font-weight: 900;
}

.card-icon.accent {
  background: #fff1df;
  color: var(--coral);
}

.score-strip {
  width: 100%;
  justify-content: space-between;
  gap: 8px;
}

.score-strip div {
  min-width: 0;
}

.section {
  padding: clamp(64px, 8vw, 108px) clamp(18px, 5vw, 72px);
}

.section-heading {
  display: grid;
  gap: 12px;
  margin-bottom: 28px;
}

.section-heading p {
  margin: 0;
}

.support-limit {
  max-width: 720px;
  border-left: 5px solid var(--coral);
  padding: 12px 16px;
  background: #fff1df;
  color: var(--ink);
  font-weight: 800;
}

.compact {
  max-width: 800px;
}

.resource-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.resource-card,
.blog-card,
.book-list,
.request-form,
.request-side {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 12px 32px rgba(23, 33, 43, 0.06);
}

.resource-card {
  display: grid;
  gap: 12px;
  align-content: start;
  min-height: 260px;
  padding: 26px;
}

.blog-section {
  background: #f7fbff;
}

.blog-page-hero {
  min-height: 340px;
  padding: 70px clamp(48px, 9vw, 140px) 56px;
  background-size: min(72vw, 760px);
}

.blog-page-hero .page-hero-copy {
  width: min(100%, 620px);
  max-width: 620px;
  margin: 0;
}

.blog-page-hero h1 {
  font-size: clamp(1.6rem, 2.4vw, 2.5rem);
  line-height: 1.12;
  max-width: 520px;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.blog-card {
  display: grid;
  gap: 12px;
  align-content: start;
  min-height: 280px;
  padding: 26px;
}

.blog-card p {
  margin: 0;
  color: var(--muted);
}

.blog-card a {
  align-self: end;
  justify-self: start;
  color: var(--teal);
  font: inherit;
  font-weight: 900;
  text-decoration: none;
}

.post-meta {
  color: var(--muted);
  font-size: 1.02rem;
  font-weight: 700;
}

.post-body {
  display: grid;
  gap: 16px;
  margin-top: 26px;
  color: #26323d;
  font-size: 1.18rem;
  line-height: 1.72;
}

.page-hero {
  display: grid;
  align-items: end;
  min-height: min(56vh, 560px);
  padding: clamp(56px, 8vw, 96px) clamp(18px, 5vw, 72px);
  background:
    linear-gradient(120deg, rgba(251, 252, 248, 0.84), rgba(247, 251, 255, 0.54)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='960' height='540' viewBox='0 0 960 540'%3E%3Crect width='960' height='540' fill='%23eaf6f3'/%3E%3Cpath d='M98 110h260v336H98z' fill='%23fff' stroke='%2317212b' stroke-width='10'/%3E%3Cpath d='M150 174h150M150 226h110M150 278h170M150 330h130' stroke='%230f8b8d' stroke-width='17' stroke-linecap='round'/%3E%3Cpath d='M455 80h310c36 0 65 29 65 65v250c0 36-29 65-65 65H455c-36 0-65-29-65-65V145c0-36 29-65 65-65z' fill='%23f2c94c' stroke='%2317212b' stroke-width='10'/%3E%3Cpath d='M462 166h270M462 232h208M462 298h246M462 364h148' stroke='%2317212b' stroke-width='18' stroke-linecap='round'/%3E%3Ccircle cx='746' cy='128' r='62' fill='%23f26a4b' stroke='%2317212b' stroke-width='10'/%3E%3C/svg%3E");
  background-position: right center;
  background-repeat: no-repeat;
  background-size: min(88vw, 980px);
}

.page-hero-copy {
  width: min(100%, 1160px);
  max-width: 1160px;
  margin: 0 auto;
  padding-left: 0;
}

.page-hero h1 {
  font-size: clamp(1.9rem, 3.2vw, 3.25rem);
  line-height: 1.08;
  max-width: 560px;
}

.blog-post-page {
  width: min(880px, calc(100vw - 36px));
  margin: 0 auto;
  padding: clamp(54px, 8vw, 104px) 0;
}

.blog-post-page h1 {
  font-size: clamp(2.4rem, 6vw, 5.6rem);
}

.wide-blog-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.post-body h2,
.post-body h3 {
  margin-top: 14px;
}

.post-body p,
.post-body ul,
.post-body ol {
  margin: 0;
}

.post-body ul,
.post-body ol {
  padding-left: 22px;
}

.resource-card p {
  margin: 0;
  color: var(--muted);
}

.resource-card a {
  align-self: end;
  color: var(--teal);
  font-weight: 900;
  text-decoration: none;
}

.tag {
  justify-self: start;
  border-radius: 999px;
  padding: 5px 9px;
  background: #f1f4f2;
  color: var(--blue);
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.tag.official {
  background: #e7f6f0;
  color: var(--teal);
}

.split-section {
  background: #edf6f1;
}

.pdf-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: 18px;
  align-items: start;
}

.pdf-list {
  display: grid;
  gap: 10px;
}

.pdf-row {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  min-height: 76px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  text-decoration: none;
}

.pdf-row span {
  display: grid;
  width: 48px;
  height: 38px;
  place-items: center;
  border-radius: 6px;
  background: var(--coral);
  color: #ffffff;
  font-size: 0.74rem;
  font-weight: 900;
}

.book-list {
  padding: 26px;
}

.book-list ul,
.request-side ul {
  display: grid;
  gap: 10px;
  margin: 14px 0 0;
  padding-left: 20px;
  color: var(--muted);
}

.request-section {
  background: #fffaf0;
}

.request-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: 18px;
  align-items: start;
}

.request-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: 26px;
}

label {
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  font: inherit;
  padding: 14px 15px;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  outline: 3px solid rgba(15, 139, 141, 0.18);
  border-color: var(--teal);
}

.full-span {
  grid-column: 1 / -1;
}

.request-side {
  padding: 26px;
}

.status-box {
  margin-top: 18px;
  min-height: 150px;
  border: 1px dashed #b9c8ce;
  border-radius: 8px;
  padding: 16px;
  background: #fbfcf8;
  color: var(--muted);
  white-space: pre-wrap;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  padding: 28px clamp(18px, 5vw, 72px);
  border-top: 1px solid var(--line);
  background: var(--ink);
  color: #ffffff;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  font-weight: 900;
  text-decoration: none;
}

@media (max-width: 900px) {
  .hero,
  .pdf-layout,
  .request-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-panel {
    min-height: 480px;
  }

  .resource-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .blog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .wide-blog-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 17px;
  }

  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav {
    justify-content: flex-start;
  }

  .hero {
    padding-top: 42px;
  }

  .blog-page-hero {
    padding: 46px 28px 42px;
    min-height: 280px;
    background-size: 680px;
  }

  h1 {
    font-size: 3.25rem;
  }

  .blog-page-hero h1 {
    font-size: 1.9rem;
  }

  .hero-panel {
    min-height: 420px;
    padding: 16px;
    border-radius: 16px;
    background-size: 760px;
  }

  .resource-grid,
  .blog-grid,
  .request-form {
    grid-template-columns: 1fr;
  }

  .resource-card {
    min-height: auto;
  }

  .pdf-row {
    grid-template-columns: 54px minmax(0, 1fr);
  }
}
