/* Kord legal documents · landing Press Proof system */

@font-face {
  font-family: "Kord Display";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("/fonts/space-grotesk-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Kord Text";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("/fonts/ibm-plex-sans-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Kord Data";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("/fonts/ibm-plex-mono-latin.woff2") format("woff2");
}

:root {
  --color-paper: oklch(94.6% 0.018 83);
  --color-paper-bright: oklch(97.2% 0.012 83);
  --color-ink: oklch(17.8% 0.018 67);
  --color-ink-soft: oklch(31% 0.02 67);
  --color-ink-muted: oklch(43% 0.018 67);
  --color-rule: oklch(68% 0.02 75);
  --color-cobalt: oklch(43% 0.205 265);
  --color-focus: oklch(55% 0.18 265);
  --color-selection: oklch(79% 0.09 265);
  --font-display: "Kord Display", "Arial Narrow", sans-serif;
  --font-body: "Kord Text", "Helvetica Neue", sans-serif;
  --font-data: "Kord Data", "SFMono-Regular", monospace;
  --gutter: clamp(1.25rem, 4vw, 4rem);
  --rule: 1px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  overflow-x: clip;
}

html {
  background: var(--color-paper);
}

body {
  margin: 0;
  border-top: 3px solid var(--color-cobalt);
  color: var(--color-ink);
  background: var(--color-paper);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

::selection {
  color: var(--color-ink);
  background: var(--color-selection);
}

a {
  color: var(--color-cobalt);
  text-underline-offset: 0.24em;
  text-decoration-thickness: var(--rule);
}

a:hover {
  text-decoration-thickness: 2px;
}

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

.doc {
  width: min(100%, 78rem);
  margin: 0 auto;
  padding: var(--gutter) var(--gutter) 7rem;
}

.doc-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: var(--rule) solid var(--color-rule);
}

.doc-head a {
  color: var(--color-ink);
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 650;
  letter-spacing: 0.16em;
  text-decoration: none;
  white-space: nowrap;
}

.doc-head span,
.effective {
  color: var(--color-ink-muted);
  font-family: var(--font-data);
  font-size: 0.72rem;
  letter-spacing: 0.035em;
}

h1,
h2 {
  font-family: var(--font-display);
  font-style: normal;
  letter-spacing: -0.035em;
  overflow-wrap: anywhere;
}

h1 {
  max-width: 10ch;
  margin: clamp(4rem, 10vw, 8rem) 0 1rem;
  font-size: clamp(3.2rem, 8vw, 6rem);
  font-weight: 560;
  line-height: 0.94;
}

.effective {
  margin: 0 0 clamp(4rem, 9vw, 7rem);
}

.doc > p:not(.effective):not(.doc-foot),
.doc > ul,
.doc > h2 {
  width: min(100%, 45rem);
  margin-left: clamp(0rem, 20vw, 15rem);
}

.doc > p:not(.effective):not(.doc-foot) {
  margin-top: 0;
  margin-bottom: 1rem;
  color: var(--color-ink-soft);
}

h2 {
  margin-top: 4.5rem;
  margin-bottom: 1rem;
  padding-top: 1.1rem;
  border-top: 2px solid var(--color-ink);
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  font-weight: 540;
  line-height: 1.08;
}

ul {
  margin-top: 0;
  margin-bottom: 1.5rem;
  padding-left: 1.25rem;
}

li {
  margin-bottom: 0.65rem;
  padding-left: 0.25rem;
  color: var(--color-ink-soft);
}

b,
strong {
  color: var(--color-ink);
  font-weight: 600;
}

code {
  color: var(--color-ink);
  font-family: var(--font-data);
  font-size: 0.9em;
}

hr {
  width: min(100%, 45rem);
  margin: 5rem 0 0 auto;
  border: 0;
  border-top: var(--rule) solid var(--color-rule);
}

.doc-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.8rem;
  width: min(100%, 45rem);
  margin: 1.5rem 0 0 auto;
  color: var(--color-ink-muted);
  font-family: var(--font-data);
  font-size: 0.72rem;
}

.doc-foot a {
  color: var(--color-ink-soft);
  white-space: nowrap;
}

@media (max-width: 720px) {
  .doc {
    padding-bottom: 5rem;
  }

  .doc > p:not(.effective):not(.doc-foot),
  .doc > ul,
  .doc > h2 {
    margin-left: 0;
  }

  h1 {
    margin-top: 4rem;
  }

  .effective {
    margin-bottom: 4rem;
  }

  h2 {
    margin-top: 3.5rem;
  }
}

@media (max-width: 420px) {
  .doc-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.25rem;
  }

  h1 {
    font-size: clamp(2.8rem, 15vw, 4rem);
  }
}
