:root {
  --color-graphite: #25282A;
  --color-paper: #F9F2E5;
  --color-linen: #C3BAAD;
  --color-copper: #A16243;
  --color-copper-text: #A56238;
  --color-stone: #867D76;
  --color-text-primary: #282828;
  --color-text-secondary: #756B5E;
  --color-hover: #4290C6;
  --line-soft: rgba(134, 125, 118, 0.42);
  --shadow-soft: 0 18px 64px rgba(37, 40, 42, 0.08);

  --font-sans: "loos-normal", "Loos", "Helvetica Neue", Arial, sans-serif;
  --font-serif: "freight-text-pro", "Freight Text Pro", Garamond, Georgia, serif;
  --font-mono: "gemeli-mono", "Gemeli Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --page-x: clamp(1.5rem, 4.6vw, 4.75rem);
  --site-max: 90rem;
  --header-y: clamp(1.4rem, 3vw, 3rem);
}

* {
  box-sizing: border-box;
}

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

body {
  min-height: 100%;
  margin: 0;
  color: var(--color-text-primary);
  font-family: var(--font-sans);
  background:
    radial-gradient(circle at 18% 12%, rgba(255, 255, 255, 0.72), transparent 34rem),
    linear-gradient(180deg, #fbf5ea 0%, var(--color-paper) 56%, #f6eee2 100%);
  text-rendering: geometricPrecision;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
  transition: color 160ms ease, text-decoration-color 160ms ease;
}

a:hover,
a:focus-visible {
  color: var(--color-hover);
}

.page-shell {
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
}

.site-header {
  width: min(calc(100% - (var(--page-x) * 2)), var(--site-max));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: var(--header-y) 0 clamp(1.25rem, 2.6vw, 2.6rem);
}

.brand {
  display: inline-flex;
  align-items: center;
  width: clamp(11.25rem, 18vw, 16.8rem);
  line-height: 0;
  text-decoration: none;
}

.brand img {
  width: 100%;
  height: auto;
}

.legal-nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.2vw, 2rem);
  color: var(--color-graphite);
  font-size: clamp(0.95rem, 1.3vw, 1.16rem);
  line-height: 1;
  letter-spacing: 0.005em;
}

.legal-nav a {
  text-decoration: none;
}

.legal-nav span {
  width: 1px;
  height: 1.7rem;
  background: var(--line-soft);
}

.hero {
  position: relative;
  width: min(calc(100% - (var(--page-x) * 2)), var(--site-max));
  min-height: clamp(38rem, 70vh, 52rem);
  margin: 0 auto;
  overflow: hidden;
  isolation: isolate;
  box-shadow: var(--shadow-soft);
}

.hero-media {
  position: absolute;
  inset: 0 0 0 auto;
  width: min(64%, 62rem);
  z-index: -3;
}

.hero-media picture,
.hero-media img {
  width: 100%;
  height: 100%;
}

.hero-media img {
  object-fit: cover;
  object-position: center right;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    linear-gradient(90deg,
      var(--color-paper) 0%,
      rgba(249, 242, 229, 0.98) 25%,
      rgba(249, 242, 229, 0.83) 43%,
      rgba(249, 242, 229, 0.28) 61%,
      rgba(249, 242, 229, 0.06) 78%),
    linear-gradient(180deg,
      rgba(249, 242, 229, 0.18) 0%,
      rgba(249, 242, 229, 0) 25%,
      rgba(249, 242, 229, 0) 72%,
      rgba(249, 242, 229, 0.18) 100%);
}

.hero-wash {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 5% 52%, rgba(255,255,255,0.58), transparent 26rem),
    linear-gradient(90deg, rgba(255,255,255,0.18), transparent 68%);
  mix-blend-mode: soft-light;
}

.hero-content {
  width: min(50rem, 55%);
  min-height: inherit;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(3.8rem, 8vw, 7.5rem) 0 clamp(3.8rem, 8vw, 7.5rem) clamp(1.2rem, 3vw, 2.75rem);
}

.hero h1 {
  max-width: 47rem;
  margin: 0;
  color: var(--color-text-primary);
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: clamp(2.75rem, 5.25vw, 5.05rem);
  line-height: 0.99;
  letter-spacing: -0.045em;
}

.hero h1 span {
  display: block;
}

.accent-line {
  width: clamp(4.1rem, 6vw, 6rem);
  height: 3px;
  margin: clamp(1.7rem, 3vw, 2.55rem) 0 clamp(1.75rem, 3.2vw, 2.8rem);
  background: var(--color-copper-text);
}

.hero p {
  max-width: 42rem;
  margin: 0;
  color: var(--color-text-primary);
  font-family: var(--font-serif);
  font-size: clamp(1.42rem, 2vw, 1.9rem);
  font-style: italic;
  line-height: 1.7;
  letter-spacing: -0.01em;
}

.hero-copy a {
  color: var(--color-copper-text);
  text-decoration: none;
}

.hero-copy a:hover,
.hero-copy a:focus-visible {
  color: var(--color-hover);
}

.hero p strong {
  font-weight: 700;
}

.site-footer {
  width: min(calc(100% - (var(--page-x) * 2)), var(--site-max));
  margin-inline: auto;
  padding: clamp(1.15rem, 2.1vw, 1.65rem) 0 clamp(1.4rem, 2.8vw, 2.1rem);
  color: var(--color-graphite);
  font-family: var(--font-sans);
  font-size: clamp(0.82rem, 1vw, 0.96rem);
}

.site-footer p {
  margin: 0;
}

.site-footer strong {
  font-weight: 700;
}



.document-main {
  width: min(calc(100% - (var(--page-x) * 2)), 74rem);
  margin: 0 auto;
  padding: clamp(2.8rem, 5.5vw, 5.5rem) 0 clamp(4rem, 7vw, 7rem);
}

.legal-document {
  color: var(--color-text-primary);
  background: rgba(255, 255, 255, 0.22);
  border: 1px solid rgba(134, 125, 118, 0.24);
  box-shadow: var(--shadow-soft);
  padding: clamp(2rem, 4.5vw, 4.8rem);
}

.legal-document .eyebrow {
  margin: 0 0 clamp(1rem, 1.8vw, 1.6rem);
  color: var(--color-copper-text);
  font-family: var(--font-mono);
  font-size: clamp(0.72rem, 0.95vw, 0.84rem);
  font-style: normal;
  font-weight: 400;
  letter-spacing: 0.14em;
  line-height: 1.4;
  text-transform: uppercase;
}

.legal-document h1,
.legal-document h2,
.legal-document h3 {
  color: var(--color-text-primary);
  font-family: var(--font-sans);
  font-weight: 400;
  letter-spacing: -0.025em;
}

.legal-document h1 {
  max-width: 48rem;
  margin: 0 0 clamp(2.1rem, 4vw, 3.6rem);
  font-size: clamp(2.45rem, 5.2vw, 5rem);
  line-height: 1;
}

.legal-document h2 {
  margin: clamp(2.2rem, 4vw, 3.8rem) 0 clamp(0.85rem, 1.4vw, 1.2rem);
  padding-top: clamp(1.1rem, 2vw, 1.8rem);
  border-top: 1px solid rgba(134, 125, 118, 0.28);
  font-size: clamp(1.32rem, 2.1vw, 1.85rem);
  line-height: 1.18;
}

.legal-document section:first-of-type h2 {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.legal-document h3 {
  margin: clamp(1.55rem, 2.2vw, 2rem) 0 0.4rem;
  color: var(--color-text-secondary);
  font-size: clamp(1.03rem, 1.45vw, 1.22rem);
  line-height: 1.3;
}

.legal-document p,
.legal-document li {
  max-width: 62rem;
  margin: 0.72rem 0 0;
  font-family: var(--font-serif);
  font-size: clamp(1.06rem, 1.45vw, 1.28rem);
  line-height: 1.62;
}

.legal-document a {
  color: var(--color-copper-text);
  text-decoration: none;
  overflow-wrap: anywhere;
}

.legal-document a:hover,
.legal-document a:focus-visible {
  color: var(--color-hover);
}

.legal-document strong {
  font-weight: 700;
}

.error-document {
  min-height: clamp(22rem, 46vh, 34rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

@media (max-width: 980px) {
  .site-header {
    align-items: flex-start;
  }

  .brand {
    width: clamp(10.5rem, 32vw, 14rem);
  }

  .hero {
    min-height: auto;
    display: flex;
    flex-direction: column;
  }

  .hero-media {
    position: relative;
    order: 2;
    width: 100%;
    height: clamp(20rem, 48vw, 34rem);
    inset: auto;
  }

  .hero::after {
    background:
      linear-gradient(180deg,
        var(--color-paper) 0%,
        rgba(249, 242, 229, 0.96) 40%,
        rgba(249, 242, 229, 0.18) 70%,
        rgba(249, 242, 229, 0) 100%);
  }

  .hero-content {
    width: 100%;
    min-height: 0;
    padding: clamp(3rem, 9vw, 5rem) clamp(1rem, 5vw, 3rem) clamp(2.4rem, 7vw, 4rem);
  }

  .hero h1 {
    font-size: clamp(2.25rem, 7.3vw, 4.25rem);
  }

  .hero p {
    max-width: 44rem;
    font-size: clamp(1.24rem, 3.6vw, 1.62rem);
    line-height: 1.62;
  }
}

@media (max-width: 680px) {
  :root {
    --page-x: clamp(1rem, 5vw, 1.4rem);
  }

  .site-header {
    flex-direction: column;
    gap: 1.35rem;
    padding-top: 1.35rem;
  }

  .legal-nav {
    width: 100%;
    justify-content: flex-start;
    font-size: 0.98rem;
  }

  .legal-nav span {
    height: 1.25rem;
  }

  .hero {
    width: 100%;
    margin: 0;
    border-left: 0;
    border-right: 0;
    box-shadow: none;
  }

  .hero-content {
    padding-left: var(--page-x);
    padding-right: var(--page-x);
  }

  .hero h1 {
    letter-spacing: -0.035em;
  }

  .hero h1 span {
    display: inline;
  }

  .accent-line {
    height: 2px;
  }

  .site-footer {
    padding-left: var(--page-x);
    padding-right: var(--page-x);
  }
}


@media (max-width: 680px) {
  .document-main {
    width: 100%;
    padding: 0 0 clamp(2.5rem, 8vw, 4rem);
  }

  .legal-document {
    border-left: 0;
    border-right: 0;
    box-shadow: none;
    padding: clamp(2.1rem, 8vw, 3rem) var(--page-x) clamp(2.7rem, 9vw, 4rem);
  }

  .legal-document h1 {
    font-size: clamp(2.2rem, 11vw, 3.4rem);
  }

  .legal-document p,
  .legal-document li {
    font-size: 1.06rem;
    line-height: 1.62;
  }
}
