:root {
  color-scheme: light;
  --ink: #151515;
  --muted: #64676f;
  --paper: #f7f8f3;
  --panel: #ffffff;
  --line: #d8ddd0;
  --green: #235b4e;
  --red: #b63f2f;
  --blue: #2b4c7e;
  --shadow: 0 24px 60px rgba(24, 31, 28, .14);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: "Avenir Next", Avenir, "Gill Sans", "Trebuchet MS", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  line-height: 1.72;
}

a { color: inherit; }

.skip-link {
  position: absolute;
  left: 1rem;
  top: .7rem;
  transform: translateY(-160%);
  background: var(--ink);
  color: #fff;
  padding: .55rem .8rem;
  border-radius: 999px;
  z-index: 20;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(247, 248, 243, .97);
  border-bottom: 1px solid rgba(21, 21, 21, .12);
}

.header-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .85rem clamp(1rem, 4vw, 2rem);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  width: 2.05rem;
  height: 2.05rem;
  display: block;
  object-fit: cover;
  border-radius: 7px;
  box-shadow: 0 10px 22px rgba(124, 197, 12, .18);
}

.brand-wordmark {
  display: block;
  width: 7.25rem;
  height: auto;
  max-height: 1.8rem;
}

.nav {
  display: flex;
  align-items: center;
  gap: .45rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 700;
  font-size: .92rem;
  padding: .48rem .72rem;
  border: 1px solid transparent;
  border-radius: 999px;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--ink);
  border-color: rgba(21, 21, 21, .18);
  background: rgba(255, 255, 255, .68);
}

.hero,
.home-hero {
  position: relative;
  isolation: isolate;
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(3rem, 8vw, 6.8rem) clamp(1rem, 4vw, 2rem) 2.2rem;
}

.hero::before,
.home-hero::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 100vw;
  z-index: -1;
  transform: translateX(-50%);
  background:
    linear-gradient(90deg, rgba(35, 91, 78, .08) 1px, transparent 1px),
    linear-gradient(180deg, rgba(35, 91, 78, .06) 1px, transparent 1px),
    radial-gradient(circle at 12% 8%, rgba(182, 63, 47, .14), transparent 28rem),
    radial-gradient(circle at 90% 18%, rgba(43, 76, 126, .12), transparent 30rem),
    var(--paper);
  background-size: 34px 34px, 34px 34px, auto, auto, auto;
}

.hero-grid,
.home-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(16rem, .42fr);
  gap: clamp(1.5rem, 5vw, 4rem);
  align-items: end;
}

.hero-grid > *,
.home-grid > * {
  min-width: 0;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  margin: 0 0 1rem;
  color: var(--green);
  font-size: .78rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.kicker::before {
  content: "";
  width: 2.4rem;
  height: 2px;
  background: var(--red);
}

h1,
h2,
h3 {
  font-family: var(--serif);
  line-height: 1.12;
  letter-spacing: 0;
}

.hero h1,
.home-hero h1 {
  max-width: 12ch;
  margin: 0;
  font-size: clamp(3rem, 8vw, 6.6rem);
}

.hero-copy {
  max-width: 22rem;
  margin: 1.1rem 0 0;
  color: var(--muted);
  font-size: clamp(1.02rem, 2vw, 1.18rem);
  overflow-wrap: anywhere;
}

.home-copy {
  max-width: 34rem;
  margin: 1.1rem 0 0;
  color: var(--muted);
  font-size: clamp(1.02rem, 2vw, 1.18rem);
  overflow-wrap: anywhere;
}

.doc-stamp {
  justify-self: end;
  width: min(100%, 20rem);
  padding: 1.2rem;
  border: 1px solid rgba(21, 21, 21, .16);
  background: rgba(255, 255, 255, .72);
  box-shadow: var(--shadow);
  border-radius: 8px;
}

.doc-stamp strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.6rem;
  line-height: 1.1;
}

.doc-stamp span {
  display: block;
  margin-top: .55rem;
  color: var(--muted);
  font-size: .9rem;
}

.page-shell {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2rem) clamp(4rem, 8vw, 7rem);
  display: grid;
  grid-template-columns: 16rem minmax(0, 1fr);
  gap: clamp(1.2rem, 4vw, 3rem);
  align-items: start;
}

.toc {
  position: relative;
  top: auto;
  align-self: start;
  max-height: none;
  overflow: auto;
  padding: 1rem;
  border-left: 4px solid var(--green);
  background: rgba(255, 255, 255, .62);
}

nav.toc > .toc {
  position: static;
  max-height: none;
  overflow: visible;
  padding: 0;
  border-left: 0;
  background: transparent;
}

.toc-title {
  margin: 0 0 .7rem;
  font-size: .76rem;
  font-weight: 900;
  color: var(--green);
  text-transform: uppercase;
  letter-spacing: .08em;
}

.toc ol,
.toc ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.toc li + li { margin-top: .45rem; }

.toc ul ul,
.toc ol ol,
.toc ul ol,
.toc ol ul {
  margin-top: .45rem;
  padding-left: .75rem;
  border-left: 1px solid rgba(21, 21, 21, .12);
}

.toc a {
  display: block;
  color: var(--muted);
  text-decoration: none;
  font-size: .9rem;
  line-height: 1.35;
}

.toc a:hover { color: var(--ink); }

.legal-card {
  min-width: 0;
  background: var(--panel);
  border: 1px solid rgba(21, 21, 21, .12);
  border-radius: 8px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.legal-doc {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(1.4rem, 5vw, 4rem);
}

.legal-doc h1 {
  margin: 0 0 1.4rem;
  font-size: clamp(2.35rem, 5vw, 4.2rem);
}

.legal-doc h2 {
  margin: 3rem 0 1rem;
  padding-top: .4rem;
  font-size: clamp(1.5rem, 3.2vw, 2.25rem);
  border-top: 1px solid var(--line);
}

.legal-doc h3 {
  margin: 2rem 0 .65rem;
  font-size: clamp(1.15rem, 2.5vw, 1.45rem);
}

.legal-doc p,
.legal-doc li {
  color: #24262b;
  font-size: 1rem;
}

.legal-doc a {
  overflow-wrap: anywhere;
}

.legal-doc p { margin: .85rem 0; }

.legal-doc strong {
  color: #0e0f11;
  font-weight: 900;
}

.legal-doc ul,
.legal-doc ol {
  padding-left: 1.25rem;
}

.legal-doc li + li { margin-top: .35rem; }

.home-main {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2rem) clamp(5rem, 10vw, 8rem);
}

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

.doc-link {
  position: relative;
  min-height: 17rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(1.2rem, 3vw, 1.7rem);
  color: var(--ink);
  text-decoration: none;
  border: 1px solid rgba(21, 21, 21, .14);
  border-radius: 8px;
  background: rgba(255, 255, 255, .78);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
}

.doc-link::after {
  content: "";
  position: absolute;
  inset: auto -18% -34% auto;
  width: 13rem;
  height: 13rem;
  background: color-mix(in srgb, var(--accent) 18%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 32%, transparent);
  transform: rotate(18deg);
}

.doc-link:hover {
  transform: translateY(-4px);
  box-shadow: 0 30px 72px rgba(24, 31, 28, .18);
}

.doc-link small {
  color: var(--accent);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.doc-link h2 {
  margin: .8rem 0 .6rem;
  font-size: clamp(1.9rem, 4vw, 3rem);
}

.doc-link p {
  max-width: 28rem;
  margin: 0;
  color: var(--muted);
}

.arrow {
  margin-top: 2rem;
  font-size: 2rem;
  line-height: 1;
}

.site-footer {
  border-top: 1px solid rgba(21, 21, 21, .12);
  background: rgba(255, 255, 255, .44);
}

.footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 1.2rem clamp(1rem, 4vw, 2rem);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: .9rem;
}

@media (max-width: 820px) {
  .header-inner { align-items: flex-start; }
  .hero-grid,
  .home-grid,
  .page-shell,
  .document-links { grid-template-columns: 1fr; }
  .doc-stamp { justify-self: start; }
  .toc {
    position: relative;
    top: auto;
    max-height: none;
  }
  .hero h1,
  .home-hero h1 { max-width: 10ch; }
}

@media (max-width: 560px) {
  .header-inner { flex-direction: column; }
  .nav { justify-content: flex-start; }
  .hero-copy,
  .home-copy {
    width: calc(100vw - 2rem);
    max-width: 22rem;
  }
  .legal-doc { padding: 1.1rem; }
}
