@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Playfair+Display:ital,wght@0,500;0,600;0,700;1,500;1,600&display=swap');

:root {
  color-scheme: light;
  --ink: #253b3a;
  --ink-soft: #526461;
  --deep: #1d3a42;
  --deep-hover: #294c51;
  --sage: #dce8df;
  --sage-dark: #779487;
  --cream: #f8f6ef;
  --paper: #fffdf8;
  --line: #dce3dc;
  --lavender: #eeedf5;
  --gold: #b28c5b;
  --shadow: 0 18px 50px rgba(35, 59, 57, 0.09);
  --shadow-small: 0 8px 24px rgba(35, 59, 57, 0.08);
  --radius: 1.25rem;
  --radius-large: 1.75rem;
  --content: 74rem;
  --gutter: clamp(1.2rem, 5vw, 4.5rem);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "DM Sans", "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
svg {
  display: block;
  max-width: 100%;
}

img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--deep-hover);
}

:focus-visible {
  outline: 3px solid #bd9c6d;
  outline-offset: 4px;
  border-radius: 4px;
}

::selection {
  background: #d5e5d9;
  color: var(--deep);
}

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

h1,
h2,
h3 {
  color: var(--deep);
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 600;
  line-height: 1.12;
  text-wrap: balance;
}

h1 {
  margin-bottom: 1.2rem;
  font-size: clamp(2.65rem, 8vw, 5.6rem);
  letter-spacing: -0.045em;
}

h2 {
  margin-bottom: 1.1rem;
  font-size: clamp(2rem, 4vw, 3.35rem);
  letter-spacing: -0.035em;
}

h3 {
  margin-bottom: 0.65rem;
  font-size: clamp(1.45rem, 2.3vw, 1.9rem);
  letter-spacing: -0.025em;
}

p {
  margin-bottom: 1rem;
}

main {
  overflow: clip;
}

section {
  scroll-margin-top: 5rem;
}

.eyebrow {
  margin-bottom: 0.85rem;
  color: #758c7e;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  line-height: 1.4;
  text-transform: uppercase;
}

.site-header {
  position: relative;
  z-index: 10;
  display: flex;
  min-height: 5.2rem;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem var(--gutter);
  background: rgba(255, 253, 248, 0.96);
  border-bottom: 1px solid rgba(220, 227, 220, 0.8);
}

.brand {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 0.62rem;
  color: var(--deep);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  text-decoration: none;
}

.brand span {
  overflow-wrap: anywhere;
}

.brand-mark {
  width: 2.25rem;
  height: 2.25rem;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.brand-mark circle {
  fill: currentColor;
  stroke: none;
}

.menu-toggle {
  display: inline-flex;
  width: 2.75rem;
  height: 2.75rem;
  flex: 0 0 auto;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0.5rem;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--paper);
  color: var(--deep);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 1.1rem;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}

.primary-nav {
  position: absolute;
  top: calc(100% - 1px);
  right: 0;
  left: 0;
  display: none;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.7rem var(--gutter) 1.2rem;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-small);
}

.site-header:has(.menu-toggle[aria-expanded="true"]) .primary-nav,
.primary-nav.is-open {
  display: flex;
}

.primary-nav a {
  padding: 0.75rem 0.5rem;
  border-radius: 0.55rem;
  color: var(--ink-soft);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
}

.primary-nav a:hover,
.primary-nav a[aria-current="page"] {
  background: #eef3ed;
  color: var(--deep);
}

.primary-nav .nav-cta {
  margin-top: 0.35rem;
  padding: 0.7rem 1rem;
  background: var(--deep);
  color: white;
  text-align: center;
}

.primary-nav .nav-cta:hover {
  background: var(--deep-hover);
  color: white;
}

.hero,
.page-hero {
  width: min(100%, var(--content));
  margin-inline: auto;
  padding: clamp(2.6rem, 7vw, 6.4rem) var(--gutter);
}

.hero-home {
  display: grid;
  gap: 2.2rem;
  align-items: center;
}

.hero-copy {
  max-width: 41rem;
}

.hero-copy h1 {
  max-width: 12ch;
}

.hero-copy h1 em {
  color: #779487;
  font-weight: 500;
}

.hero-copy > p:not(.eyebrow, .hero-note) {
  max-width: 38rem;
  color: var(--ink-soft);
  font-size: clamp(1.02rem, 2vw, 1.15rem);
}

.hero-image {
  aspect-ratio: 1.2;
  max-height: 35rem;
  border-radius: var(--radius-large);
  object-position: center;
  box-shadow: var(--shadow);
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.65rem;
}

.button {
  display: inline-flex;
  min-height: 2.9rem;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.15rem;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

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

.button-primary {
  background: var(--deep);
  color: white;
}

.button-primary:hover {
  background: var(--deep-hover);
  color: white;
}

.button-secondary {
  border-color: #cbd7ce;
  background: transparent;
  color: var(--deep);
}

.button-secondary:hover {
  border-color: var(--sage-dark);
  background: #eff3ed;
  color: var(--deep);
}

.button-light {
  background: var(--paper);
  color: var(--deep);
}

.button-light:hover {
  background: #e8eee8;
  color: var(--deep);
}

.hero-note {
  margin: 1rem 0 0;
  color: #829087;
  font-size: 0.84rem;
}

.page-hero {
  display: grid;
  gap: 2rem;
  align-items: center;
  padding-top: clamp(2.5rem, 6vw, 5rem);
  padding-bottom: clamp(2.8rem, 6vw, 5rem);
}

.page-hero-copy {
  max-width: 42rem;
}

.page-hero h1 {
  max-width: 15ch;
  font-size: clamp(2.7rem, 7vw, 5rem);
}

.page-hero-copy > p:last-child {
  max-width: 39rem;
  margin-bottom: 0;
  color: var(--ink-soft);
  font-size: clamp(1.03rem, 2vw, 1.17rem);
}

.page-hero > img {
  aspect-ratio: 1.4;
  max-height: 32rem;
  border-radius: var(--radius-large);
  box-shadow: var(--shadow);
}

.section {
  width: min(100%, var(--content));
  margin-inline: auto;
  padding: clamp(3.5rem, 8vw, 6.5rem) var(--gutter);
}

.intro-grid {
  display: grid;
  gap: 1rem;
  padding-top: clamp(2.5rem, 6vw, 4.5rem);
  padding-bottom: clamp(3rem, 7vw, 5rem);
}

.intro-grid > div:first-child {
  max-width: 30rem;
}

.intro-grid > div:last-child {
  max-width: 45rem;
  color: var(--ink-soft);
}

.intro-grid > div:last-child p:last-child {
  margin-bottom: 0;
}

.section-tint {
  width: 100%;
  max-width: none;
  padding-right: var(--gutter);
  padding-left: var(--gutter);
  background: var(--cream);
}

.section-tint > * {
  width: min(100%, calc(var(--content) - 2 * var(--gutter)));
  margin-right: auto;
  margin-left: auto;
}

.section-heading {
  display: grid;
  gap: 0.7rem;
  align-items: end;
  margin-bottom: 2rem;
}

.section-heading h2 {
  max-width: 17ch;
  margin-bottom: 0;
}

.section-heading > p {
  max-width: 32rem;
  margin-bottom: 0.1rem;
  color: var(--ink-soft);
}

.split-list {
  display: grid;
  gap: 1.15rem;
}

.split-card {
  overflow: hidden;
  background: var(--paper);
  border: 1px solid rgba(215, 225, 217, 0.9);
  border-radius: var(--radius);
  box-shadow: var(--shadow-small);
}

.split-card > img {
  aspect-ratio: 1.55;
  object-position: center;
}

.split-content {
  padding: 1.35rem 1.35rem 1.5rem;
}

.split-content .eyebrow {
  margin-bottom: 0.6rem;
}

.split-content h3 {
  margin-bottom: 0.6rem;
}

.split-content > p:not(.eyebrow) {
  margin-bottom: 1rem;
  color: var(--ink-soft);
  font-size: 0.94rem;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: #416d62;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
}

.text-link:hover {
  color: var(--deep);
  text-decoration: underline;
  text-underline-offset: 0.25em;
}

.architecture {
  display: grid;
  gap: 2.2rem;
  align-items: center;
}

.architecture-copy {
  max-width: 42rem;
}

.architecture-copy p:not(.eyebrow) {
  color: var(--ink-soft);
}

.architecture-copy .text-link {
  margin-top: 0.4rem;
}

.diagram-card {
  min-width: 0;
  padding: clamp(0.75rem, 2vw, 1.25rem);
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-small);
}

.diagram-card svg {
  width: 100%;
  height: auto;
}

.diagram-card figcaption,
.diagram-caption {
  margin: 0.75rem 0 0;
  color: #6e7d75;
  font-size: 0.8rem;
  line-height: 1.5;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow-small);
  -webkit-overflow-scrolling: touch;
}

table {
  width: 100%;
  min-width: 42rem;
  border-collapse: collapse;
  text-align: left;
}

th,
td {
  padding: 1rem 1.15rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

thead th {
  background: #edf2ec;
  color: var(--deep);
  font-size: 0.84rem;
  font-weight: 700;
}

tbody th {
  width: 18%;
  color: var(--deep);
  font-size: 0.9rem;
  font-weight: 700;
}

tbody td {
  color: var(--ink-soft);
  font-size: 0.9rem;
}

tbody tr:last-child th,
tbody tr:last-child td {
  border-bottom: 0;
}

.closing-cta {
  padding: clamp(3.4rem, 8vw, 6rem) var(--gutter);
  background: var(--deep);
  color: #e8efe9;
  text-align: center;
}

.closing-cta > * {
  width: min(100%, 48rem);
  margin-right: auto;
  margin-left: auto;
}

.closing-cta .eyebrow {
  color: #b8cdbf;
}

.closing-cta h2 {
  color: white;
  font-size: clamp(2.25rem, 5vw, 3.8rem);
}

.closing-cta > p:not(.eyebrow) {
  color: #d2dfd7;
}

.closing-cta .button {
  margin-top: 0.7rem;
}

.article-layout {
  display: grid;
  width: min(100%, var(--content));
  grid-template-columns: minmax(0, 1fr);
  gap: 2rem;
  margin-inline: auto;
  padding: 0 var(--gutter) clamp(4rem, 8vw, 6.5rem);
  align-items: start;
}

.prose {
  min-width: 0;
  max-width: 51rem;
}

.prose h2 {
  margin-top: 2.25rem;
  margin-bottom: 0.8rem;
  font-size: clamp(1.75rem, 3.2vw, 2.25rem);
}

.prose h2:first-child {
  margin-top: 0;
}

.prose p {
  margin-bottom: 1.1rem;
  color: #53635f;
  font-size: 0.98rem;
  line-height: 1.82;
}

.prose a {
  color: #416d62;
  font-weight: 600;
  text-decoration-color: #a8bdb1;
}

.prose a:hover {
  color: var(--deep);
  text-decoration-color: currentColor;
}

.article-aside {
  display: grid;
  gap: 1.25rem;
}

.aside-card > img {
  aspect-ratio: 1.5;
}

.aside-card .split-content {
  padding: 1.25rem;
}

.article-aside .diagram-card {
  padding: 0.8rem;
}

.site-footer {
  padding: clamp(3rem, 7vw, 5rem) var(--gutter) 1.4rem;
  background: #203d42;
  color: #dbe5de;
}

.footer-main {
  display: grid;
  width: min(100%, var(--content));
  grid-template-columns: 1fr;
  gap: 2.3rem;
  margin-inline: auto;
}

.footer-main h2 {
  margin-bottom: 0.9rem;
  color: #f7f6ef;
  font-family: "DM Sans", "Segoe UI", sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.brand-footer {
  margin-bottom: 1rem;
  color: white;
}

.footer-brand p {
  margin: 0 0 0.35rem;
  color: #c2d0c9;
  font-size: 0.86rem;
  line-height: 1.55;
}

.footer-brand p a {
  color: #e5eee7;
  text-decoration-color: #80978b;
}

.footer-main ul {
  display: grid;
  gap: 0.45rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-main li a,
.footer-preferences {
  color: #c7d5cd;
  font-size: 0.88rem;
  text-decoration: none;
}

.footer-main li a:hover,
.footer-preferences:hover,
.footer-brand p a:hover {
  color: white;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.footer-preferences {
  margin-top: 1rem;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  font-family: inherit;
}

.footer-bottom {
  display: flex;
  width: min(100%, var(--content));
  flex-direction: column;
  gap: 0.4rem;
  margin: 2.8rem auto 0;
  padding-top: 1.15rem;
  border-top: 1px solid rgba(220, 232, 223, 0.2);
  color: #b4c4bb;
  font-size: 0.78rem;
}

.cookie-banner {
  position: fixed;
  z-index: 30;
  right: 1rem;
  bottom: 1rem;
  left: 1rem;
  display: grid;
  gap: 1rem;
  max-width: 54rem;
  margin-inline: auto;
  padding: 1.1rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 20px 70px rgba(23, 44, 43, 0.22);
}

.cookie-copy strong {
  display: block;
  margin-bottom: 0.2rem;
  color: var(--deep);
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.25rem;
}

.cookie-copy p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.86rem;
  line-height: 1.55;
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
}

.cookie-actions .button {
  min-height: 2.55rem;
  padding: 0.62rem 0.9rem;
  font-size: 0.8rem;
}

.cookie-link {
  padding: 0.55rem 0.65rem;
  border: 0;
  background: transparent;
  color: #416d62;
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 700;
}

.cookie-link:hover {
  text-decoration: underline;
}

.preferences-panel {
  position: fixed;
  z-index: 40;
  top: 50%;
  left: 50%;
  width: min(calc(100% - 2rem), 34rem);
  max-height: min(88vh, 46rem);
  overflow-y: auto;
  padding: clamp(1.2rem, 4vw, 2rem);
  transform: translate(-50%, -50%);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-large);
  box-shadow: 0 24px 90px rgba(23, 44, 43, 0.28);
}

.preferences-panel::before {
  position: fixed;
  z-index: -1;
  inset: -100vh -100vw;
  background: rgba(20, 37, 38, 0.48);
  content: "";
}

.preferences-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.preferences-head .eyebrow {
  margin-bottom: 0.4rem;
}

.preferences-head h2 {
  margin-bottom: 1rem;
  font-size: clamp(1.7rem, 5vw, 2.2rem);
}

.preferences-panel > p {
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.icon-button {
  display: inline-grid;
  width: 2.5rem;
  height: 2.5rem;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--paper);
  color: var(--deep);
  cursor: pointer;
  font-size: 1.4rem;
  line-height: 1;
}

.preference-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.65rem;
  padding: 0.9rem 1rem;
  background: #f3f5ef;
  border: 1px solid var(--line);
  border-radius: 0.85rem;
}

.preference-option span {
  display: grid;
  gap: 0.12rem;
}

.preference-option strong {
  color: var(--deep);
  font-size: 0.9rem;
}

.preference-option small {
  color: var(--ink-soft);
  font-size: 0.78rem;
  line-height: 1.4;
}

.preference-option input {
  width: 1.2rem;
  height: 1.2rem;
  accent-color: var(--deep);
}

.preferences-panel .cookie-actions {
  margin-top: 1.2rem;
}

[hidden] {
  display: none !important;
}

@media (min-width: 42rem) {
  .brand {
    font-size: 0.96rem;
  }

  .hero-home {
    grid-template-columns: minmax(0, 1fr) minmax(18rem, 0.92fr);
    gap: clamp(2rem, 5vw, 4.5rem);
  }

  .hero-image {
    aspect-ratio: 1.05;
  }

  .page-hero {
    grid-template-columns: minmax(0, 1fr) minmax(18rem, 0.9fr);
    gap: clamp(2rem, 5vw, 4rem);
  }

  .page-hero > img {
    aspect-ratio: 1.08;
  }

  .intro-grid {
    grid-template-columns: minmax(14rem, 0.82fr) minmax(0, 1.18fr);
    gap: clamp(2rem, 6vw, 5rem);
  }

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

  .split-card {
    display: flex;
    flex-direction: column;
  }

  .split-card > img {
    flex: 0 0 auto;
  }

  .split-content {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: flex-start;
  }

  .split-content .text-link {
    margin-top: auto;
    padding-top: 0.2rem;
  }

  .architecture {
    grid-template-columns: minmax(0, 1fr) minmax(20rem, 1fr);
    gap: clamp(2rem, 5vw, 4rem);
  }

  .footer-main {
    grid-template-columns: 1.4fr 1fr 0.8fr;
    gap: 2rem;
  }

  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }

  .cookie-banner {
    right: 1.5rem;
    bottom: 1.5rem;
    left: auto;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    padding: 1.25rem 1.4rem;
  }
}

@media (min-width: 58rem) {
  .site-header {
    min-height: 5.4rem;
    padding-inline: max(var(--gutter), calc((100vw - var(--content)) / 2));
  }

  .menu-toggle {
    display: none;
  }

  .primary-nav,
  .site-header:has(.menu-toggle[aria-expanded="true"]) .primary-nav {
    position: static;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    gap: 0.1rem;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
  }

  .primary-nav a {
    padding: 0.55rem 0.65rem;
    font-size: 0.78rem;
    white-space: nowrap;
  }

  .primary-nav .nav-cta {
    margin: 0 0 0 0.35rem;
    padding: 0.65rem 0.9rem;
  }

  .hero-home {
    min-height: 39rem;
  }

  .page-hero {
    min-height: 31rem;
  }

  .section-heading {
    grid-template-columns: minmax(0, 1fr) minmax(18rem, 0.7fr);
    gap: 2rem;
    margin-bottom: 2.5rem;
  }

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

  .split-card > img {
    aspect-ratio: 1.45;
  }

  .article-layout {
    grid-template-columns: minmax(0, 1.75fr) minmax(17rem, 0.85fr);
    gap: clamp(2.5rem, 6vw, 5rem);
  }

  .article-aside {
    position: sticky;
    top: 1.5rem;
  }

  .article-aside .diagram-card {
    padding: 0.8rem;
  }
}

@media (min-width: 76rem) {
  .primary-nav a {
    padding-inline: 0.7rem;
    font-size: 0.82rem;
  }

  .hero-home {
    grid-template-columns: 1.05fr 0.95fr;
  }
}

@media (max-width: 23rem) {
  .brand {
    gap: 0.4rem;
    font-size: 0.77rem;
  }

  .brand-mark {
    width: 1.9rem;
    height: 1.9rem;
  }

  .button-row {
    align-items: stretch;
    flex-direction: column;
  }

  .button-row .button {
    width: 100%;
  }

  .cookie-actions .button {
    flex: 1 1 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media print {
  .site-header,
  .site-footer,
  .menu-toggle,
  .cookie-banner,
  .preferences-panel {
    display: none !important;
  }

  body {
    background: white;
    color: black;
    font-size: 11pt;
  }

  .hero,
  .page-hero,
  .section,
  .article-layout {
    width: 100%;
    padding: 1rem 0;
  }

  .article-layout {
    display: block;
  }

  .article-aside {
    display: none;
  }

  a {
    color: black;
    text-decoration: underline;
  }
}