:root {
  color-scheme: light;
  --paper: #f7f0e6;
  --paper-soft: #fffaf2;
  --ink: #15120f;
  --muted: #6d6259;
  --copper: #b46d3b;
  --green: #214f49;
  --line: rgba(21, 18, 15, 0.12);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--paper);
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(255, 250, 242, 0.9), rgba(247, 240, 230, 0.78)),
    radial-gradient(circle at 50% 42%, rgba(180, 109, 59, 0.18), transparent 42%),
    var(--paper);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background-image:
    linear-gradient(rgba(21, 18, 15, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(21, 18, 15, 0.03) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.65), transparent 85%);
}

.page-shell {
  display: grid;
  min-height: 100vh;
  padding: clamp(22px, 5vw, 56px);
  place-items: center;
}

.hero {
  display: grid;
  width: min(100%, 980px);
  min-height: calc(100vh - clamp(44px, 10vw, 112px));
  align-content: center;
  justify-items: center;
  gap: clamp(20px, 4vh, 36px);
  text-align: center;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 0;
  background: transparent;
}

.brand-logo {
  width: clamp(34px, 7vw, 48px);
  aspect-ratio: 1;
  object-fit: contain;
}

.brand-name {
  margin: 0;
  color: var(--green);
  font-size: clamp(0.95rem, 2vw, 1.08rem);
  font-weight: 700;
}

.hero-art {
  position: relative;
  display: grid;
  width: min(42vw, 260px);
  aspect-ratio: 1;
  place-items: center;
}

.handpan {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.hero-copy {
  display: grid;
  justify-items: center;
  gap: clamp(12px, 2vh, 18px);
}

h1 {
  max-width: 900px;
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 3.15rem);
  font-weight: 700;
  line-height: 0.94;
  text-wrap: balance;
  white-space: nowrap;
}

.status {
  position: relative;
  margin: 0;
  padding-top: 18px;
  color: var(--copper);
  font-size: clamp(1rem, 3.3vw, 1.7rem);
  font-weight: 700;
  text-transform: uppercase;
}

.status::before {
  position: absolute;
  top: 0;
  left: 50%;
  width: min(160px, 36vw);
  height: 1px;
  content: "";
  background: linear-gradient(90deg, transparent, var(--green), transparent);
  transform: translateX(-50%);
}

.legal-links,
.document-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.legal-links a,
.document-links a,
.home-link {
  min-height: 42px;
  padding: 11px 16px;
  border: 1px solid var(--line);
  color: var(--ink);
  background: rgba(255, 250, 242, 0.68);
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
  transition:
    border-color 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.legal-links a:hover,
.document-links a:hover,
.home-link:hover {
  border-color: rgba(33, 79, 73, 0.42);
  color: var(--green);
  transform: translateY(-1px);
}

.document-shell {
  width: min(100%, 980px);
  margin: 0 auto;
  padding: clamp(22px, 5vw, 56px);
}

.document-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: clamp(34px, 7vw, 72px);
}

.legal-document {
  width: min(100%, 760px);
  margin: 0 auto;
  padding-bottom: clamp(42px, 8vw, 90px);
}

.legal-document h1 {
  max-width: none;
  margin-bottom: 24px;
  font-size: clamp(2.4rem, 8vw, 5.4rem);
}

.legal-document h2 {
  margin: 42px 0 14px;
  color: var(--green);
  font-size: clamp(1.45rem, 3vw, 2rem);
  line-height: 1.15;
}

.legal-document h3 {
  margin: 26px 0 10px;
  color: var(--copper);
  font-size: 1.08rem;
  line-height: 1.25;
}

.legal-document p,
.legal-document li,
.legal-document address {
  color: var(--muted);
  font-size: 1.02rem;
  font-style: normal;
  line-height: 1.72;
}

.legal-document a {
  color: var(--green);
  font-weight: 700;
}

.legal-document ul {
  display: grid;
  gap: 8px;
  margin: 14px 0 0;
  padding-left: 22px;
}

@media (max-width: 620px) {
  .page-shell {
    padding: 20px;
  }

  .hero {
    min-height: calc(100vh - 40px);
    gap: 22px;
  }

  .hero-art {
    width: min(58vw, 190px);
  }

  h1 {
    font-size: clamp(1.18rem, 6vw, 2.2rem);
  }

  .document-shell {
    padding: 20px;
  }

  .document-nav {
    align-items: stretch;
    flex-direction: column;
  }

  .home-link,
  .document-links a {
    text-align: center;
  }
}
