/* Wick: shared styles for every page. */

@font-face {
  font-family: "Die Grotesk A";
  src: url(fonts/die-grotesk-a-400.otf) format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Die Grotesk A";
  src: url(fonts/die-grotesk-a-500.otf) format("opentype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Die Grotesk A";
  src: url(fonts/die-grotesk-a-700.otf) format("opentype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
/* Arial tuned to Die Grotesk's metrics so text doesn't jump while the font loads. */
@font-face {
  font-family: "Die Grotesk A Fallback";
  src: local("Arial");
  ascent-override: 104.53%;
  descent-override: 23.56%;
  line-gap-override: 0%;
  size-adjust: 101.88%;
}

:root {
  --font: "Die Grotesk A", "Die Grotesk A Fallback", sans-serif;
  --ink: #000;
  --ink-body: rgba(0, 0, 0, 0.76);
  --ink-muted: rgba(0, 0, 0, 0.44);
  --paper: #fff;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-size: inherit;
  outline: none;
}

html,
body {
  width: 100%;
  height: 100%;
  font-family: var(--font);
  font-weight: 400;
  font-feature-settings: "kern" 1, "ss01" on;
  color: var(--ink);
  background: var(--paper);
  cursor: default;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  -webkit-text-size-adjust: none;
  text-size-adjust: none;
}

body {
  position: relative;
  overflow-x: hidden;
}

::selection {
  background: rgba(72, 158, 250, 0.2);
}

a {
  color: var(--ink);
  text-decoration: none;
  cursor: pointer;
}

img,
svg {
  vertical-align: middle;
}

/* Layout */

.page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.section {
  position: relative;
  z-index: 2;
  background: var(--paper);
}

.container {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 480px;
  margin: 0 auto;
  padding: 0 40px;
}

.content {
  padding-top: 120px;
}

/* Home page copy */

.title,
.subtitle,
.body {
  color: var(--ink-body);
  font-feature-settings: "ss02" on, "ss01" on;
}

.title {
  font-size: 20px;
  font-weight: 500;
  line-height: 28px;
}

.subtitle {
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
}

.body {
  font-size: 16px;
  line-height: 24px;
}

.body a {
  text-decoration: underline;
}

/* Legal pages */

.legal {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 600px;
}

.legal h1 {
  font-size: 24px;
}

.legal h2 {
  font-size: 18px;
}

.legal h3,
.legal p,
.legal ul {
  font-size: 15px;
}

.legal ul {
  padding-left: 30px;
}

.legal li {
  margin: 6px 0;
}

.legal a {
  text-decoration: underline;
}

.legal-section,
.legal-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Footer */

/* margin-top: auto keeps the copyright line at the bottom of short pages. */
.footer {
  position: relative;
  z-index: 999;
  margin-top: auto;
  padding-top: 96px;
  background: var(--paper);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  max-width: 480px;
  margin: auto auto 0;
  padding: 0 40px 40px;
}

.footer-row {
  display: flex;
  justify-content: space-between;
  gap: 24px;
}

.footer-links {
  display: flex;
  gap: 14px;
}

.footer-links.small {
  gap: 9px;
}

.footer-meta {
  color: var(--ink-muted);
  font-size: 13px;
  line-height: 18px;
  letter-spacing: 0.35px;
}
