:root {
  color-scheme: light;
  --teal: #003d4d;
  --teal-deep: #002f3b;
  --champagne: #f7e7ce;
  --paper: #fff8ec;
  --ink: #12343d;
  --muted: #476970;
  --gold: #9b762f;
  --rule: rgba(0, 61, 77, 0.22);
  --focus: #9b762f;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  background: var(--champagne);
  color: var(--ink);
  font-family: "Source Sans 3", "Segoe UI", sans-serif;
  font-size: 18px;
  line-height: 1.6;
}

a { color: inherit; }
a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 5px;
}

.skip-link {
  position: fixed;
  inset: 14px auto auto 14px;
  z-index: 20;
  transform: translateY(-180%);
  padding: 10px 14px;
  background: var(--teal);
  color: var(--champagne);
  font-weight: 800;
}
.skip-link:focus { transform: translateY(0); }

.site-header,
.site-footer,
main {
  width: min(1040px, calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 24px 18px;
  border-bottom: 1px solid var(--rule);
}

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

.studio-brand,
.product-brand {
  display: inline-flex;
  align-items: center;
  color: var(--teal);
  text-decoration: none;
}

.studio-brand img {
  display: block;
  width: clamp(150px, 18vw, 190px);
  height: auto;
}

.brand-divider {
  width: 1px;
  height: 42px;
  background: var(--rule);
  flex: 0 0 auto;
}

.product-brand {
  gap: 10px;
  font-family: Fraunces, Georgia, serif;
  font-size: 1rem;
  font-weight: 900;
  line-height: 1;
}

.product-brand img {
  display: block;
  width: 42px;
  height: 42px;
  border-radius: 11px;
  box-shadow: 0 8px 20px rgba(0, 61, 77, 0.14);
}

.site-nav,
.legal-nav,
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
}

.site-nav a,
.legal-nav a,
.footer-links a {
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-underline-offset: 6px;
  text-transform: uppercase;
}

.site-nav a[aria-current="page"] {
  color: var(--gold);
  text-decoration-thickness: 2px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(260px, 0.7fr);
  gap: clamp(34px, 7vw, 82px);
  align-items: end;
  padding-block: clamp(64px, 10vw, 120px);
}

.eyebrow,
.document-label,
.legal-kicker {
  margin: 0;
  color: var(--gold);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--teal);
  font-family: Fraunces, Georgia, serif;
  line-height: 1;
}

h1 {
  margin-top: 16px;
  font-size: clamp(3.4rem, 9vw, 7.8rem);
  line-height: 0.9;
}

h2 { font-size: clamp(2rem, 4vw, 3.4rem); }
h3 { font-size: clamp(1.35rem, 2vw, 1.75rem); }

.hero-copy > p:not(.eyebrow) {
  max-width: 650px;
  margin: 26px 0 0;
  color: var(--muted);
  font-size: clamp(1.08rem, 1.8vw, 1.35rem);
}

.treaty-note {
  position: relative;
  padding: clamp(28px, 5vw, 48px);
  background: var(--teal);
  color: var(--champagne);
  box-shadow: 0 28px 70px rgba(0, 61, 77, 0.16);
}

.treaty-note::before {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(247, 231, 206, 0.34);
  pointer-events: none;
}

.treaty-note p {
  position: relative;
  margin: 16px 0 0;
  font-family: Fraunces, Georgia, serif;
  font-size: clamp(1.55rem, 3vw, 2.5rem);
  line-height: 1.05;
}

.treaty-mark {
  position: relative;
  display: block;
  width: 72px;
  height: 72px;
  margin-bottom: 28px;
  border-radius: 18px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.2);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 13px 18px;
  border: 2px solid var(--teal);
  background: var(--teal);
  color: var(--champagne);
  font-weight: 900;
  letter-spacing: 0.05em;
  text-decoration: none;
  text-transform: uppercase;
}

.button.secondary {
  background: transparent;
  color: var(--teal);
}

.principles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-block: 1px solid var(--rule);
}

.principles article {
  padding: clamp(26px, 4vw, 42px);
  border-inline-end: 1px solid var(--rule);
}
.principles article:last-child { border-inline-end: 0; }
.principles p { margin-bottom: 0; color: var(--muted); }

.legal-shell { padding-block: clamp(48px, 8vw, 92px); }
.legal-header { max-width: 800px; }
.legal-header h1 { font-size: clamp(3rem, 7vw, 6.2rem); }
.legal-intro { color: var(--muted); font-size: 1.18rem; }
.legal-meta { color: var(--muted); font-size: 0.92rem; }

.legal-nav {
  margin-block: 34px 48px;
  padding-block: 18px;
  border-block: 1px solid var(--rule);
}

.legal-document {
  max-width: 820px;
  padding: clamp(28px, 5vw, 56px);
  background: var(--paper);
  border: 1px solid var(--rule);
  box-shadow: 0 24px 60px rgba(0, 61, 77, 0.1);
}

.legal-document section + section {
  margin-top: 36px;
  padding-top: 32px;
  border-top: 1px solid var(--rule);
}

.legal-document h2 { font-size: clamp(1.55rem, 3vw, 2.2rem); }
.legal-document p,
.legal-document li { color: var(--muted); }
.legal-document a { color: var(--teal); font-weight: 750; }
.legal-document a.button { color: var(--champagne); }
.legal-document ul,
.legal-document ol { padding-inline-start: 1.3em; }
.request-panel {
  margin-top: 28px;
  padding: 24px;
  border-block: 2px solid var(--teal);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 22px;
  padding-block: 26px 42px;
  border-top: 2px solid var(--teal);
  font-size: 0.92rem;
}
.site-footer p { margin: 0; }

@media (max-width: 760px) {
  .site-header,
  .site-footer { align-items: flex-start; flex-direction: column; }
  .hero { grid-template-columns: 1fr; }
  .principles { grid-template-columns: 1fr; }
  .principles article { border-inline-end: 0; border-bottom: 1px solid var(--rule); }
  .principles article:last-child { border-bottom: 0; }
}

@media (max-width: 480px) {
  .site-header,
  .site-footer,
  main { width: min(100% - 28px, 1040px); }
  .brand-lockup { gap: 10px; }
  .studio-brand img { width: 126px; }
  .brand-divider { height: 34px; }
  .product-brand { gap: 7px; font-size: 0.84rem; }
  .product-brand img { width: 34px; height: 34px; border-radius: 9px; }
  .site-nav { gap: 10px 14px; }
  .button { width: 100%; }
  .legal-document { padding-inline: 20px; }
}

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