:root {
  --ink: #17312d;
  --muted: #5a6b66;
  --paper: #f7faf4;
  --surface: #ffffff;
  --line: #dce8df;
  --teal: #08737a;
  --teal-dark: #063d3b;
  --aqua: #18a7a8;
  --orange: #f29d38;
  --rose: #d95763;
  --green: #4b9b52;
  --shadow: 0 24px 70px rgba(19, 48, 43, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(180deg, #fbfdf8 0, var(--paper) 36rem),
    var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

img,
svg {
  display: block;
}

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

a {
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 100;
  transform: translateY(-160%);
  padding: 0.7rem 1rem;
  color: #fff;
  background: var(--teal-dark);
  border-radius: 8px;
}

.skip-link:focus {
  transform: translateY(0);
}

.access-gate {
  display: grid;
  min-height: 100svh;
  place-items: center;
  padding: clamp(1rem, 4vw, 3rem);
  background:
    linear-gradient(180deg, rgba(24, 167, 168, 0.18), rgba(247, 250, 244, 0.86) 52%),
    var(--paper);
}

.access-panel {
  width: min(100%, 34rem);
  padding: clamp(1.4rem, 4vw, 2.4rem);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.access-mark {
  display: grid;
  width: 3rem;
  height: 3rem;
  place-items: center;
  margin-bottom: 1.1rem;
  color: #fff;
  background: linear-gradient(135deg, var(--teal) 0 45%, var(--orange) 45% 63%, var(--rose) 63% 100%);
  border-radius: 8px;
  font-size: 0.86rem;
  font-weight: 950;
}

.access-panel h1 {
  margin-bottom: 1rem;
  font-size: clamp(2.1rem, 7vw, 3.75rem);
}

.access-copy,
.access-note,
.access-message {
  color: var(--muted);
}

.access-form {
  display: grid;
  gap: 0.65rem;
  margin-top: 1.35rem;
}

.access-form label {
  color: var(--teal-dark);
  font-weight: 850;
}

.access-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.65rem;
}

.access-field input {
  width: 100%;
  min-height: 3.25rem;
  padding: 0.75rem 0.9rem;
  color: var(--ink);
  background: #fff;
  border: 2px solid var(--line);
  border-radius: 8px;
  font: inherit;
}

.access-field input:focus {
  border-color: var(--teal);
  outline: none;
}

.access-message {
  min-height: 1.4rem;
  margin: 0;
  font-size: 0.94rem;
  font-weight: 760;
}

.access-note {
  margin: 1rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem max(1rem, 5vw);
  background: rgba(251, 253, 248, 0.92);
  border-bottom: 1px solid rgba(8, 115, 122, 0.14);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 0;
  color: var(--teal-dark);
  font-weight: 850;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 2.35rem;
  height: 2.35rem;
  place-items: center;
  flex: 0 0 auto;
  color: #fff;
  background: linear-gradient(135deg, var(--teal) 0 45%, var(--orange) 45% 63%, var(--rose) 63% 100%);
  border-radius: 8px;
  font-size: 0.78rem;
}

.brand-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  overflow-x: auto;
  color: var(--teal-dark);
  font-size: 0.94rem;
  font-weight: 760;
}

.site-nav a,
.nav-report-button {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.55rem 0.75rem;
  border-radius: 8px;
  color: inherit;
  background: transparent;
  border: 0;
  font: inherit;
  font-weight: inherit;
  text-decoration: none;
  white-space: nowrap;
}

.nav-report-button {
  cursor: pointer;
}

.nav-report-button svg {
  width: 1rem;
  height: 1rem;
  flex: 0 0 auto;
  fill: currentColor;
}

.site-nav a:hover,
.nav-report-button:hover {
  background: rgba(8, 115, 122, 0.1);
}

.hero,
.download-panel,
.inside-section,
.topics-section {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(360px, 1.08fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
  min-height: calc(100svh - 4.1rem);
  padding: clamp(3rem, 6vw, 6rem) 0 4rem;
}

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

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

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 1.05rem;
  color: var(--teal-dark);
  font-size: clamp(3rem, 6.6vw, 5.7rem);
  line-height: 0.98;
}

h2 {
  margin-bottom: 0;
  color: var(--teal-dark);
  font-size: clamp(2rem, 4.2vw, 3.35rem);
  line-height: 1.04;
}

h3 {
  margin-bottom: 0.55rem;
  color: var(--teal-dark);
  font-size: 1.35rem;
  line-height: 1.15;
}

.lede {
  margin-bottom: 1.45rem;
  max-width: 560px;
  color: #334b45;
  font-size: clamp(1.08rem, 1.4vw, 1.28rem);
}

.edition {
  margin: -0.6rem 0 1.25rem;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 720;
}

.text-companion-link {
  margin-top: 0.8rem;
  color: var(--teal-dark);
  font-weight: 760;
}

.privacy-note {
  max-width: 72ch;
  margin: 1rem auto 0;
  font-size: 0.82rem;
  line-height: 1.5;
}

.byline {
  margin: -0.5rem 0 1rem;
  padding-left: 0.75rem;
  border-left: 4px solid var(--orange);
  color: #254842;
  font-size: clamp(1.02rem, 1.2vw, 1.12rem);
  font-weight: 850;
  line-height: 1.25;
}

.byline a {
  color: var(--teal-dark);
  font-weight: 950;
  text-decoration-color: rgba(242, 157, 56, 0.72);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.22em;
}

.collaboration-lockup {
  display: inline-flex;
  flex-direction: column;
  gap: 0.35rem;
  align-items: flex-start;
  margin: 0 0 1.45rem;
  color: var(--muted);
  font-size: 0.93rem;
  font-weight: 760;
}

.collaboration-lockup img {
  display: block;
  width: clamp(8.5rem, 12vw, 10.5rem);
  height: auto;
}

.note {
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.hero-media {
  position: relative;
}

.hero-media img {
  width: 100%;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.75rem;
  scroll-margin-top: 7rem;
}

.download-choice {
  display: grid;
  gap: 0.4rem;
  min-width: 0;
}

.download-choice label {
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 750;
}

.download-choice select {
  width: 100%;
  min-height: 3.25rem;
  padding: 0.7rem 0.8rem;
  border: 2px solid var(--line);
  border-radius: 8px;
  color: var(--teal-dark);
  background: #fff;
  font: inherit;
  cursor: pointer;
}

.download-choice select:focus-visible,
#downloadPdf:focus-visible {
  outline: 3px solid var(--teal-dark);
  outline-offset: 4px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  min-height: 3.25rem;
  padding: 0.85rem 1rem;
  border: 2px solid transparent;
  border-radius: 8px;
  font-weight: 850;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

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

.button svg {
  width: 1.15rem;
  height: 1.15rem;
  flex: 0 0 auto;
  fill: currentColor;
}

.button-primary {
  color: #18302c;
  background: var(--orange);
  box-shadow: 0 14px 32px rgba(242, 157, 56, 0.28);
}

.button-quiet {
  color: var(--teal-dark);
  background: #fff;
  border-color: var(--line);
}

.button-dark {
  color: #fff;
  background: var(--teal-dark);
}

.button-outline {
  color: var(--teal-dark);
  background: #fff;
  border-color: rgba(8, 115, 122, 0.28);
}

.download-panel,
.inside-section,
.topics-section {
  scroll-margin-top: 5.5rem;
}

.download-panel {
  padding: clamp(3rem, 6vw, 5.5rem) 0;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.58fr) minmax(0, 1fr);
  gap: 1.25rem;
  align-items: end;
  margin-bottom: 1.35rem;
}

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

.edition-card {
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
  min-height: 100%;
  padding: clamp(1.1rem, 2vw, 1.45rem);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 14px 34px rgba(19, 48, 43, 0.06);
}

.edition-card.preferred {
  background:
    linear-gradient(180deg, rgba(24, 167, 168, 0.11), rgba(255, 255, 255, 0) 74%),
    #fff;
  border-color: rgba(8, 115, 122, 0.34);
}

.edition-top {
  display: flex;
  justify-content: space-between;
  gap: 0.7rem;
  align-items: center;
  color: var(--teal-dark);
  font-size: 0.86rem;
  font-weight: 850;
}

.edition-top span,
.edition-top strong {
  display: inline-flex;
  min-height: 2rem;
  align-items: center;
  padding: 0.35rem 0.65rem;
  border-radius: 8px;
}

.edition-top span {
  color: #fff;
  background: var(--teal);
}

.edition-top strong {
  background: #ffe2b4;
}

.edition-card:not(.preferred) .edition-top span {
  color: var(--teal-dark);
  background: rgba(8, 115, 122, 0.1);
}

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

.edition-card ul {
  display: grid;
  gap: 0.35rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.edition-card li {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  color: #334b45;
}

.edition-card li::before {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  margin-top: 0.5rem;
  flex: 0 0 auto;
  background: var(--green);
  border-radius: 50%;
}

.edition-card .button {
  width: fit-content;
  margin-top: auto;
}

.inside-section {
  display: grid;
  grid-template-columns: minmax(0, 0.48fr) minmax(0, 0.96fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
  padding: clamp(3rem, 6vw, 5.5rem) 0;
  border-top: 1px solid var(--line);
}

.inside-copy p:last-child {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.sample-frame {
  overflow: hidden;
  padding: 0.45rem;
  background: var(--teal-dark);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.sample-frame img {
  width: 100%;
  border-radius: 6px;
}

.topics-section {
  padding: clamp(3rem, 6vw, 5.5rem) 0;
  border-top: 1px solid var(--line);
}

.topics-section + .download-panel {
  border-top: 1px solid var(--line);
}

.topic-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.65rem;
}

.topic-grid article {
  min-height: 8.3rem;
  padding: 0.82rem;
  background: #fff;
  border: 1px solid var(--line);
  border-top: 0.35rem solid var(--accent);
  border-radius: 8px;
}

.topic-grid span {
  display: inline-flex;
  width: 2rem;
  height: 2rem;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: var(--accent);
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 900;
}

.topic-grid strong,
.topic-grid em {
  display: block;
}

.topic-grid strong {
  margin-top: 0.65rem;
  color: var(--teal-dark);
  font-size: 0.93rem;
  line-height: 1.18;
}

.topic-grid em {
  margin-top: 0.35rem;
  color: var(--muted);
  font-size: 0.84rem;
  font-style: normal;
  font-weight: 760;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.35rem max(1rem, 5vw);
  color: #dff7f1;
  background: #052f2e;
}

.site-footer p {
  margin: 0;
  font-size: 0.92rem;
}

.site-footer a {
  color: #fff;
  font-weight: 850;
  text-decoration-color: rgba(255, 255, 255, 0.35);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.22em;
}

.report-fab {
  position: fixed;
  right: max(1rem, 5vw);
  bottom: 1rem;
  z-index: 35;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 3rem;
  padding: 0.72rem 0.95rem;
  color: #fff;
  background: var(--rose);
  border: 0;
  border-radius: 8px;
  box-shadow: 0 16px 38px rgba(217, 87, 99, 0.28);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.report-fab svg {
  width: 1.05rem;
  height: 1.05rem;
  flex: 0 0 auto;
  fill: currentColor;
}

.report-dialog[hidden] {
  display: none;
}

.report-dialog {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.report-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 61, 59, 0.62);
}

.report-panel {
  position: relative;
  width: min(100%, 38rem);
  max-height: calc(100svh - 2rem);
  overflow: auto;
  padding: clamp(1.15rem, 3vw, 1.8rem);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 28px 80px rgba(5, 47, 46, 0.28);
}

.report-panel h2 {
  margin-bottom: 1rem;
  font-size: clamp(1.8rem, 5vw, 2.6rem);
}

.report-close {
  position: absolute;
  top: 0.9rem;
  right: 0.9rem;
  display: grid;
  width: 2.4rem;
  height: 2.4rem;
  place-items: center;
  color: var(--teal-dark);
  background: rgba(8, 115, 122, 0.08);
  border: 0;
  border-radius: 8px;
  cursor: pointer;
}

.report-close svg {
  width: 1.2rem;
  height: 1.2rem;
  fill: currentColor;
}

.report-form {
  display: grid;
  gap: 0.95rem;
}

.report-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.report-field {
  display: grid;
  gap: 0.38rem;
}

.report-field label {
  color: var(--teal-dark);
  font-size: 0.92rem;
  font-weight: 850;
}

.report-field input,
.report-field select,
.report-field textarea {
  width: 100%;
  padding: 0.75rem 0.85rem;
  color: var(--ink);
  background: #fff;
  border: 2px solid var(--line);
  border-radius: 8px;
  font: inherit;
}

.report-field textarea {
  min-height: 8rem;
  resize: vertical;
}

.report-field input:focus,
.report-field select:focus,
.report-field textarea:focus {
  border-color: var(--teal);
  outline: none;
}

.report-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  align-items: center;
}

.report-actions .button:disabled {
  opacity: 0.66;
  cursor: progress;
  transform: none;
}

.report-status {
  min-height: 1.35rem;
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 760;
}

.report-trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

body.report-open {
  overflow: hidden;
}

@media (max-width: 1080px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

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

  .hero-media {
    max-width: 760px;
  }

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

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

@media (max-width: 760px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    padding: 0.75rem 1rem;
  }

  .site-nav {
    width: 100%;
  }

  .hero,
  .download-panel,
  .inside-section,
  .topics-section {
    width: min(100% - 1.25rem, 1180px);
  }

  .hero {
    padding-top: 2.35rem;
  }

  .hero-actions .button,
  .download-choice,
  .edition-card .button {
    width: 100%;
  }

  .section-heading,
  .download-grid,
  .inside-section {
    grid-template-columns: 1fr;
  }

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

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

  .report-grid,
  .access-field {
    grid-template-columns: 1fr;
  }

  .report-actions .button,
  .access-field .button {
    width: 100%;
  }

  .report-fab {
    right: 0.75rem;
    bottom: 0.75rem;
  }
}

@media (max-width: 430px) {
  h1 {
    font-size: 2.8rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .button {
    transition: none;
  }

  .button:hover {
    transform: none;
  }
}
