/* The design kit, as a stylesheet. Same palette and the same restraint as the app:
   dark, typographic, nothing flashing, nothing that reads casino. */
:root {
  --base: #090B0D;
  --surface: #15181B;
  --cloud: #F0EEE9;
  --text2: #B8B5AE;
  --gray: #8E9296;
  --muted: #5E6368;
  --emerald: #19E68C;
  --hairline: rgba(255, 255, 255, 0.12);
  --hairline2: rgba(255, 255, 255, 0.07);
  --gutter: 16px;
}

/* Raleway ExtraBold is only ever the wordmark, so only its five letters are shipped. */
@font-face {
  font-family: "Raleway Wordmark";
  src: url("/fonts/raleway-extrabold-wordmark.woff2") format("woff2");
  font-weight: 800;
  font-display: block;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--base);
  color: var(--cloud);
  font: 400 17px/1.55 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--cloud); text-decoration: none; }
a:hover { text-decoration: underline; text-decoration-color: var(--muted); }

.wordmark {
  font-family: "Raleway Wordmark", -apple-system, sans-serif;
  font-weight: 800;
  letter-spacing: -0.045em;
  color: var(--cloud);
  display: inline-block;
}

/* ---------------------------------------------------------------- landing */
/* One screen: the felt behind, the wordmark, the line, and the two links out. */
.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 48px var(--gutter) 28px;
  position: relative;
  overflow: hidden;
}

/* The block sits in the middle of whatever is left over once the footer has the bottom.
   Two auto margins rather than justify-content, which an auto margin would fight. */
.hero-inner {
  margin: auto 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

/* The green felt, the same radial the table is drawn on, turned almost all the way down. */
.hero::before {
  content: "";
  position: absolute;
  inset: -22% -10% auto -10%;
  height: 100%;
  /* Sized in percentages rather than by corner, so the last stop reaches transparent inside the
     box. A circle keyword leaves the fade clipped by the element's edge, which reads as a seam. */
  background: radial-gradient(ellipse 110% 86% at 50% 26%, #2E7A52 0%, #1C4A33 30%, #0F2A1D 52%, rgba(9, 11, 13, 0) 76%);
  opacity: 0.24;
  pointer-events: none;
}

.hero > * { position: relative; }

.hero .wordmark { font-size: 68px; line-height: 1; margin-bottom: 22px; }

h1 {
  font: 700 27px/1.28 -apple-system, BlinkMacSystemFont, "SF Pro Display", sans-serif;
  margin: 0 0 14px;
  letter-spacing: -0.015em;
  max-width: min(16em, 100%);
}

.sub {
  margin: 0;
  color: var(--gray);
  font-size: 16px;
  max-width: min(34em, 100%);
}

.actions { margin: 36px 0 0; display: flex; flex-direction: column; gap: 12px; width: 100%; max-width: 320px; }

.btn {
  display: block;
  padding: 14px 20px;
  border-radius: 999px;
  background: var(--cloud);
  color: #0B0D0F;
  font-weight: 600;
  font-size: 16px;
}
.btn:hover { text-decoration: none; opacity: 0.92; }
.btn.ghost {
  background: transparent;
  color: var(--cloud);
  border: 1px solid var(--hairline);
}

.note {
  margin: 30px auto 0;
  max-width: min(30em, 100%);
  color: var(--muted);
  font-size: 13px;
}

footer {
  margin-top: auto;
  padding-top: 34px;
  color: var(--muted);
  font-size: 13px;
}
footer nav { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 10px; }
footer a { color: var(--gray); text-decoration: underline; text-decoration-color: var(--muted); }

/* ---------------------------------------------------------------- documents */
.doc { max-width: 680px; margin: 0 auto; padding: 28px var(--gutter) 90px; }

.doc header { padding: 16px 0 34px; display: flex; align-items: baseline; gap: 14px; }
.doc header .wordmark { font-size: 20px; }
.doc header .back { color: var(--gray); font-size: 14px; }

.doc h1 { font-size: 30px; max-width: none; margin-bottom: 6px; }
.doc .updated { color: var(--muted); font-size: 13px; margin: 0 0 34px; }

.doc h2 {
  font: 600 19px/1.35 -apple-system, BlinkMacSystemFont, "SF Pro Display", sans-serif;
  margin: 38px 0 10px;
  letter-spacing: -0.01em;
}

.doc p, .doc li { color: var(--text2); font-size: 16px; }
.doc ul { padding-left: 1.2em; }
.doc li { margin-bottom: 7px; }
.doc strong { color: var(--cloud); font-weight: 600; }

/* The one thing on a legal page that has to be impossible to skim past. */
.callout {
  border: 1px solid var(--hairline);
  background: var(--surface);
  border-radius: 16px;
  padding: 18px 20px;
  margin: 26px 0;
}
.callout p { margin: 0; color: var(--cloud); }
.callout p + p { margin-top: 10px; color: var(--text2); }

.doc footer { margin-top: 56px; border-top: 1px solid var(--hairline2); padding-top: 22px; }
.doc footer nav { justify-content: flex-start; }

/* ---------------------------------------------------------------- open in app */
.open { min-height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 48px var(--gutter); }
.open .wordmark { font-size: 40px; margin-bottom: 20px; }
.open h1, .open .sub { max-width: min(28em, 100%); }
.open .code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--cloud); letter-spacing: 0.08em; }

@media (max-width: 380px) {
  .hero .wordmark { font-size: 56px; }
  h1 { font-size: 24px; }
}

/* The site is dark on purpose, in both schemes: it is the app's own colour. */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
