/* The Cool Table — legal and support pages. Same paper, ink and faces as the
   app: Space Mono for prose, Doto Ticket for the page title, dashed pixel
   rules. No build step, no dependencies. */

@font-face {
  font-family: "Doto Ticket";
  src: url("/fonts/DotoTicket-Black.ttf") format("truetype");
  font-weight: 900;
  font-display: swap;
}

@font-face {
  font-family: "Space Mono";
  src: url("/fonts/SpaceMono-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Space Mono";
  src: url("/fonts/SpaceMono-Bold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}

:root {
  --paper: #f2ece1;
  --ink: #1a1714;
  --ink-soft: #5c574d;
  --rule: repeating-linear-gradient(90deg, rgba(26, 23, 20, 0.35) 0 2px, transparent 2px 4px);
  --rule-ink: repeating-linear-gradient(90deg, #1a1714 0 2px, transparent 2px 4px);
  --link: #1a1714;
  --measure: 680px;
  --gutter: 16px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Space Mono", ui-monospace, Menlo, monospace;
  font-size: 15px;
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.site-header,
main,
.site-footer {
  width: 100%;
  max-width: var(--measure);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.site-header {
  padding-top: 20px;
  padding-bottom: 14px;
  background: var(--rule-ink) bottom center / calc(100% - 2 * var(--gutter)) 2px no-repeat;
}

.site-name {
  font-weight: 400;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-size: 13px;
  color: var(--ink);
  text-decoration: none;
}

main {
  flex: 1;
  padding-top: 24px;
  padding-bottom: 40px;
}

h1,
h2,
h3 {
  line-height: 1.25;
  margin: 1.6em 0 0.5em;
}

h1 {
  font-family: "Doto Ticket", "Space Mono", ui-monospace, monospace;
  font-weight: 900;
  font-size: 30px;
  line-height: 32px;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-top: 0.4em;
}

h2 {
  font-family: "Doto Ticket", "Space Mono", ui-monospace, monospace;
  font-weight: 900;
  font-size: 20px;
  line-height: 22px;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding-top: 1em;
  background: var(--rule) top left / 100% 2px no-repeat;
}

h3 {
  font-size: 15px;
  font-weight: 700;
}

p,
ul,
ol {
  margin: 0 0 1em;
}

ul,
ol {
  padding-left: 1.4em;
}

li {
  margin-bottom: 0.35em;
}

a {
  color: var(--link);
  text-decoration: underline;
  text-underline-offset: 2px;
  overflow-wrap: anywhere;
}

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

.landing {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.landing h1 {
  font-size: 36px;
  margin-bottom: 0.3em;
}

.lede {
  font-size: 20px;
  color: var(--ink-soft);
}

.badge {
  display: inline-block;
  align-self: flex-start;
  padding: 4px 12px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-decoration: none;
}

.landing-links {
  list-style: none;
  padding: 0;
  margin-top: 1.5em;
}

.site-footer {
  padding-top: 16px;
  padding-bottom: 32px;
  background: var(--rule) top center / calc(100% - 2 * var(--gutter)) 2px no-repeat;
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}
