/* amos — shared stylesheet for the public pages (landing, terms, privacy,
   community rules, safety tips). Dark only, same tokens as the app. */

:root {
  --ink: #0C0C10;
  --card: #1C1C24;
  --line: #3A3A48;
  --mist: #B4B4C4;
  --lime: #C8FF2E;
  --white: #FFFFFF;
  --display: 'Bricolage Grotesque', 'Arial Black', 'Helvetica Neue', Arial, sans-serif;
  --body: 'DM Sans', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color-scheme: dark;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 20px;
  background: var(--ink);
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--white);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-wrap: break-word;
}

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

/* 680px of text plus the 20px side padding */
.wrap {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- links ---------- */

a {
  color: var(--lime);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

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

a:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- header ---------- */

.top {
  padding: 20px 0 0;
}

.mark {
  display: inline-block;
  font-family: var(--display);
  font-weight: 800;
  font-size: 32px;
  line-height: 1;
  letter-spacing: -0.03em;
  text-transform: lowercase;
  color: var(--lime);
  text-decoration: none;
}

.mark:hover {
  text-decoration: none;
  opacity: 0.85;
}

/* ---------- headings ---------- */

h1,
h2 {
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: -0.03em;
  text-transform: lowercase;
  margin: 0;
}

h1 {
  font-size: 44px;
  line-height: 0.95;
  margin-top: 36px;
}

h2 {
  font-size: 28px;
  line-height: 1.05;
}

h2 .num {
  color: var(--lime);
  margin-right: 6px;
}

h3 {
  font-family: var(--body);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.35;
  margin: 24px 0 0;
}

.updated {
  margin: 14px 0 0;
  color: var(--mist);
  font-size: 15px;
}

.lede {
  margin: 20px 0 0;
  font-size: 18px;
  font-weight: 500;
}

/* ---------- text ---------- */

p {
  margin: 14px 0 0;
}

ul,
ol {
  margin: 14px 0 0;
  padding-left: 22px;
}

li {
  margin-top: 8px;
  padding-left: 2px;
}

li::marker {
  color: var(--lime);
  font-weight: 700;
}

strong,
b {
  font-weight: 700;
}

.mist {
  color: var(--mist);
}

.small {
  font-size: 15px;
}

/* ---------- sections ---------- */

section {
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}

section > h2 + p,
section > h2 + ul,
section > h2 + ol {
  margin-top: 16px;
}

/* ---------- cards ---------- */

.card {
  background: var(--card);
  border-radius: 24px;
  padding: 20px;
  margin-top: 28px;
}

.card > :first-child {
  margin-top: 0;
}

section .card {
  margin-top: 20px;
}

.lb {
  margin: 0;
  color: var(--mist);
  font-size: 13px;
  font-weight: 700;
}

.card .lb + ul,
.card .lb + ol,
.card .lb + p {
  margin-top: 10px;
}

/* table of contents */
.toc ol {
  list-style: none;
  padding-left: 0;
  columns: 1;
  column-gap: 28px;
}

.toc li {
  margin-top: 6px;
  padding-left: 0;
  break-inside: avoid;
  font-size: 16px;
}

.toc li:first-child {
  margin-top: 0;
}

.toc a {
  color: var(--white);
  text-decoration-color: var(--line);
}

.toc a:hover {
  color: var(--lime);
  text-decoration-color: var(--lime);
}

.toc .num {
  display: inline-block;
  min-width: 26px;
  color: var(--lime);
  font-weight: 700;
}

/* the one tilted sticker a page may carry */
.sticker {
  display: inline-block;
  height: 32px;
  padding: 0 14px;
  border-radius: 8px;
  background: var(--lime);
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  line-height: 32px;
  transform: rotate(-4deg);
}

/* ---------- footer ---------- */

.foot {
  margin-top: 64px;
  padding: 28px 0 48px;
  border-top: 1px solid var(--line);
  color: var(--mist);
  font-size: 15px;
}

.foot nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
}

.foot nav a {
  font-weight: 700;
}

.foot nav a[aria-current="page"] {
  color: var(--white);
  text-decoration: none;
}

.foot p {
  margin: 16px 0 0;
}

.foot .fine {
  font-size: 13px;
}

.foot .wrap > :first-child {
  margin-top: 0;
}

/* ---------- landing page ---------- */

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

.home main {
  flex: 1;
  padding-top: 56px;
}

.home h1 {
  margin: 14px 0 0;
  font-size: 104px;
  line-height: 0.85;
  color: var(--lime);
}

.home .tag {
  margin: 20px 0 0;
  font-family: var(--display);
  font-weight: 800;
  font-size: 28px;
  line-height: 1;
  letter-spacing: -0.03em;
  text-transform: lowercase;
}

.home .about {
  margin: 16px 0 0;
  color: var(--mist);
  font-size: 16px;
  max-width: 440px;
}

.rows {
  list-style: none;
  margin: 36px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.rows li {
  margin: 0;
  padding: 0;
}

.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  padding: 14px 20px;
  border-radius: 24px;
  background: var(--card);
  color: var(--white);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
  text-decoration: none;
}

.row small {
  display: block;
  margin-top: 2px;
  color: var(--mist);
  font-size: 14px;
  font-weight: 400;
}

.row::after {
  content: "\2192";
  color: var(--lime);
  font-size: 22px;
  line-height: 1;
  flex-shrink: 0;
}

.row:hover {
  text-decoration: none;
  box-shadow: inset 0 0 0 2px var(--line);
}

.help {
  margin: 28px 0 0;
  color: var(--mist);
}

/* ---------- wider screens ---------- */

@media (min-width: 720px) {
  body {
    font-size: 18px;
  }

  .top {
    padding-top: 32px;
  }

  h1 {
    font-size: 72px;
    margin-top: 56px;
  }

  .lede {
    font-size: 20px;
  }

  h3 {
    font-size: 18px;
  }

  .card {
    padding: 24px;
  }

  .toc ol {
    columns: 2;
  }

  .home main {
    padding-top: 96px;
  }

  .home h1 {
    font-size: 168px;
  }

  .home .tag {
    font-size: 44px;
  }

  .rows {
    grid-template-columns: 1fr 1fr;
  }
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

@media print {
  html,
  body {
    background: #fff;
    color: #000;
  }

  a,
  .mark,
  h2 .num,
  .toc .num,
  li::marker {
    color: #000;
  }

  .card {
    background: none;
    border: 1px solid #999;
  }

  .mist,
  .updated,
  .lb,
  .foot {
    color: #444;
  }
}
