:root {
  --ink: #172016;
  --forest: #1f3324;
  --moss: #64754f;
  --sage: #aab78b;
  --paper: #f3ece0;
  --bone: #fbf8f1;
  --clay: #a56a43;
  --line: rgba(23, 32, 22, .14);
  --shadow: 0 28px 80px rgba(23, 32, 22, .16);
  --container: min(1160px, calc(100vw - 40px));
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--paper);
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 0%, rgba(170, 183, 139, .3), transparent 32rem),
    linear-gradient(145deg, #f7f0e4 0%, #e8ddcc 52%, #f3ece0 100%);
  font-family: "Poppins", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: .45;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.84' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.035'/%3E%3C/svg%3E");
}

a {
  color: inherit;
  text-decoration: none;
}

.site-shell {
  position: relative;
  z-index: 1;
  min-height: 100vh;
}

.ethics-nav {
  width: var(--container);
  margin: 0 auto;
  padding: 28px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(23, 32, 22, .2);
  border-radius: 50%;
  color: var(--forest);
  flex: 0 0 auto;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: -.04em;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  border-radius: 50%;
}

.brand-lockup strong {
  display: block;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.brand-lockup > span:not(.brand-mark) {
  display: block;
  min-width: 0;
}

.brand-lockup > span:not(.brand-mark) > span {
  display: block;
  margin-top: 3px;
  color: rgba(23, 32, 22, .56);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.nav-links a,
.text-link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 15px;
  border: 1px solid rgba(23, 32, 22, .16);
  border-radius: 999px;
  background: rgba(251, 248, 241, .45);
  color: var(--ink);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
  transition: transform .22s ease, background .22s ease, border-color .22s ease;
}

.nav-links a.is-primary,
.text-link.is-primary {
  border-color: rgba(31, 51, 36, .32);
  background: var(--forest);
  color: var(--bone);
}

.nav-links a:hover,
.text-link:hover,
.resource-card:hover {
  transform: translateY(-3px);
  border-color: rgba(23, 32, 22, .28);
  background: rgba(251, 248, 241, .72);
}

.hero {
  width: var(--container);
  margin: 0 auto;
  min-height: clamp(480px, 72vh, 720px);
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(280px, .72fr);
  gap: clamp(32px, 6vw, 82px);
  align-items: center;
  padding: 28px 0 76px;
}

.kicker {
  margin-bottom: 18px;
  color: var(--clay);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .22em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 11ch;
  color: var(--forest);
  font-size: clamp(54px, 9vw, 122px);
  font-weight: 900;
  line-height: .9;
  letter-spacing: 0;
  text-wrap: balance;
}

.hero-copy {
  max-width: 720px;
  margin-top: 28px;
  color: rgba(23, 32, 22, .74);
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.7;
}

.hero-panel,
.page-panel {
  border: 1px solid rgba(23, 32, 22, .12);
  border-radius: 34px 10px 34px 10px;
  background: rgba(251, 248, 241, .62);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.hero-panel {
  padding: clamp(24px, 4vw, 38px);
}

.hero-panel strong {
  display: block;
  margin-bottom: 16px;
  color: var(--forest);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.hero-panel p {
  color: rgba(23, 32, 22, .7);
  font-size: 15px;
  line-height: 1.72;
}

.hero-panel .text-link {
  margin-top: 22px;
}

.overview-section,
.content-section {
  width: var(--container);
  margin: 0 auto;
  padding: 40px 0 92px;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(280px, .8fr);
  gap: 28px;
  align-items: end;
  margin-bottom: 30px;
}

.section-heading h2 {
  color: var(--forest);
  font-size: clamp(36px, 5vw, 68px);
  font-weight: 900;
  line-height: 1;
  text-wrap: balance;
}

.section-heading p {
  color: rgba(23, 32, 22, .68);
  font-size: 16px;
  line-height: 1.75;
}

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

.resource-card {
  min-width: 0;
  min-height: 238px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px;
  border: 1px solid rgba(23, 32, 22, .12);
  border-radius: 28px 8px 28px 8px;
  background: rgba(251, 248, 241, .58);
  box-shadow: 0 16px 50px rgba(23, 32, 22, .08);
  transition: transform .22s ease, background .22s ease, border-color .22s ease;
}

.resource-card:nth-child(even) {
  border-radius: 8px 28px 8px 28px;
}

.resource-card > span,
.resource-card > span > span {
  color: var(--clay);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.resource-card h3 {
  margin-top: 18px;
  color: #10140f;
  max-width: 100%;
  font-size: clamp(25px, 2.75vw, 36px);
  font-weight: 900;
  line-height: 1.08;
  text-wrap: balance;
  overflow-wrap: anywhere;
  word-break: normal;
}

.resource-card h3 span {
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  line-height: inherit;
  text-transform: inherit;
}

.resource-card p {
  margin-top: 16px;
  color: rgba(23, 32, 22, .64);
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.68;
  text-transform: none;
}

.resource-card p span {
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  line-height: inherit;
  text-transform: inherit;
}

.resource-card em {
  margin-top: 28px;
  color: var(--moss);
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.page-hero {
  width: var(--container);
  margin: 0 auto;
  padding: clamp(70px, 12vw, 132px) 0 48px;
}

.page-hero h1 {
  max-width: 13ch;
  font-size: clamp(44px, 7vw, 92px);
}

.page-hero p {
  max-width: 760px;
  margin-top: 24px;
  color: rgba(23, 32, 22, .72);
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.72;
}

.page-panel {
  width: min(860px, 100%);
  padding: clamp(28px, 5vw, 54px);
}

.page-panel h2 {
  color: var(--forest);
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.08;
}

.page-panel p {
  margin-top: 18px;
  color: rgba(23, 32, 22, .7);
  font-size: 16px;
  line-height: 1.75;
}

.charter-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 320px);
  gap: clamp(24px, 5vw, 56px);
  align-items: start;
}

.charter-document {
  padding: clamp(26px, 5vw, 58px);
}

.charter-document > p {
  font-size: 18px;
  line-height: 1.75;
}

.charter-list {
  display: grid;
  gap: 22px;
  margin-top: 34px;
}

.charter-point {
  padding: 24px 0 0;
  border-top: 1px solid rgba(23, 32, 22, .14);
}

.charter-point h2 {
  display: flex;
  gap: 14px;
  align-items: baseline;
  color: var(--forest);
  font-size: clamp(23px, 3vw, 34px);
  line-height: 1.12;
}

.charter-point h2 span {
  color: var(--clay);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .18em;
}

.charter-point p {
  margin-top: 12px;
}

.charter-point ul {
  margin: 14px 0 0;
  padding-left: 1.15rem;
  color: rgba(23, 32, 22, .7);
  font-size: 16px;
  line-height: 1.75;
}

.charter-point li + li {
  margin-top: 5px;
}

.charter-closing {
  margin-top: 34px;
  padding: clamp(22px, 4vw, 34px);
  border-radius: 26px 8px 26px 8px;
  background: rgba(31, 51, 36, .08);
}

.charter-closing p {
  color: rgba(23, 32, 22, .78);
  font-size: 18px;
  line-height: 1.7;
}

.download-panel {
  position: sticky;
  top: 24px;
  padding: 24px;
  border: 1px solid rgba(23, 32, 22, .12);
  border-radius: 28px 8px 28px 8px;
  background: rgba(251, 248, 241, .68);
  box-shadow: 0 18px 60px rgba(23, 32, 22, .1);
}

.download-panel h2 {
  color: var(--forest);
  font-size: 24px;
  line-height: 1.1;
}

.download-panel p {
  margin-top: 12px;
  color: rgba(23, 32, 22, .66);
  font-size: 14px;
  line-height: 1.6;
}

.download-panel .text-link {
  margin-top: 18px;
}

.subpage-links {
  margin-top: 30px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.footer-note {
  width: var(--container);
  margin: 0 auto;
  padding: 32px 0 44px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  border-top: 1px solid var(--line);
  color: rgba(23, 32, 22, .56);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
}

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

  .hero {
    min-height: auto;
    padding-top: 50px;
  }

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

  .charter-layout {
    grid-template-columns: 1fr;
  }

  .download-panel {
    position: relative;
    top: auto;
    order: -1;
  }
}

@media (max-width: 640px) {
  .ethics-nav {
    align-items: flex-start;
    flex-direction: column;
  }

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

  h1 {
    max-width: 100%;
    font-size: clamp(42px, 13vw, 64px);
    line-height: .98;
  }

  .page-hero h1 {
    font-size: clamp(34px, 10.5vw, 44px);
    overflow-wrap: anywhere;
  }

  .hero-copy {
    font-size: 16px;
  }

  .resource-grid {
    grid-template-columns: 1fr;
  }

  .resource-card {
    min-height: 210px;
  }

  .footer-note {
    flex-direction: column;
  }
}

@media print {
  @page {
    margin: 18mm;
  }

  body {
    background: #fff;
    color: #172016;
  }

  body::before,
  .ethics-nav,
  .download-panel,
  .footer-note,
  .subpage-links {
    display: none !important;
  }

  .site-shell,
  .content-section,
  .page-hero,
  .page-panel,
  .charter-document {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    box-shadow: none !important;
    border: 0 !important;
    background: transparent !important;
  }

  .page-hero {
    padding-bottom: 18mm !important;
  }

  h1 {
    max-width: 100%;
    font-size: 42pt;
    line-height: .95;
  }

  .page-hero p,
  .charter-document > p,
  .charter-point p,
  .charter-closing p {
    color: #283127;
    font-size: 11pt;
    line-height: 1.55;
  }

  .charter-layout {
    display: block;
  }

  .charter-list {
    gap: 0;
  }

  .charter-point {
    break-inside: avoid;
    page-break-inside: avoid;
    padding-top: 12pt;
    margin-top: 12pt;
  }

  .charter-point h2 {
    font-size: 15pt;
  }
}
