/* Colors are the mark's own, read from brands/angelcaptain/mark.svg in the
   angel-captain repository. There is no palette to import: brand.ts carries
   names only, so the SVG is the only place these values are written down.
   Links use the ink rather than the brass: brass on the light ground is under
   3:1 contrast, too faint for text. */
:root {
  color-scheme: light dark;
  --ground: #f7f5f2;
  --ink: #14263a;
  --muted: #55606b;
  --rule: #d9d4cc;
  --brass: #c4922f;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ground: #14263a;
    --ink: #e6ecf1;
    --muted: #a9b4bf;
    --rule: #2c3f55;
  }
}

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

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--ground);
  color: var(--ink);
  font: 17px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

main {
  box-sizing: border-box;
  width: 100%;
  max-width: 40rem;
  margin: 0 auto;
  padding: 3rem 1rem 2rem;
  flex: 1;
}

a {
  color: inherit;
  text-underline-offset: 0.2em;
}

h1,
h2,
h3 {
  line-height: 1.2;
}

ul {
  padding-left: 1.25rem;
}

li + li {
  margin-top: 0.4rem;
}

code {
  font-size: 0.9em;
}

/* Home. Tokens are the app's own (apps/web/src/app.css in the angel-captain
   repository), set on the page's body so privacy and terms keep the mark's
   colors. The two screenshots swap by the same scheme the tokens follow. */

.landing {
  --ground: #f5f6f8;
  --surface: #ffffff;
  --ink: #18202b;
  --muted: #5a6473;
  --rule: #dfe3e8;
  --accent: #1f5a8a;
  --shadow: rgb(0 0 0 / 12%);
  --shot-dark: none;
  --shot-light: block;
}

@media (prefers-color-scheme: dark) {
  .landing {
    --ground: #0f1319;
    --surface: #161c24;
    --ink: #e6eaf0;
    --muted: #9aa4b2;
    --rule: #28313d;
    --accent: #5a9bd0;
    --shadow: rgb(0 0 0 / 50%);
    --shot-dark: block;
    --shot-light: none;
  }
}

.landing {
  display: block;
  padding: 48px max(16px, env(safe-area-inset-right, 0px)) 48px max(16px, env(safe-area-inset-left, 0px));
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
}

.landing main {
  display: flex;
  flex-direction: column;
  gap: 40px;
  max-width: 960px;
  padding: 0;
}

.landing header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.landing header span {
  font-size: 20px;
  font-weight: 650;
}

.landing h1 {
  max-width: 20ch;
  margin: 0;
  font-size: clamp(28px, 5vw, 40px);
  line-height: 1.15;
  text-wrap: balance;
}

.landing .lede {
  max-width: 60ch;
  margin: 16px 0 0;
  font-size: 18px;
  color: var(--muted);
}

.landing .beta {
  margin: 24px 0 0;
  font-size: 14px;
  color: var(--muted);
}

.landing figure {
  margin: 0;
}

.shot {
  overflow: hidden;
  border: 1px solid var(--rule);
  border-radius: 4px;
  background: var(--surface);
  box-shadow: 0 8px 24px var(--shadow);
}

.shot img {
  display: block;
  width: 100%;
  height: auto;
}

.shot .dark {
  display: var(--shot-dark);
}

.shot .light {
  display: var(--shot-light);
}

.landing figcaption {
  margin-top: 8px;
  font-size: 14px;
  color: var(--muted);
}

.points {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px 40px;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 560px) {
  .points {
    grid-template-columns: repeat(2, 1fr);
  }
}

.points li {
  min-width: 0;
  padding-top: 16px;
  border-top: 2px solid var(--rule);
}

.points li + li {
  margin-top: 0;
}

.points h2 {
  margin: 0 0 8px;
  font-size: 17px;
  line-height: 1.3;
  text-wrap: balance;
}

.points p {
  margin: 0;
  font-size: 15px;
  color: var(--muted);
}

.landing footer {
  max-width: 960px;
  margin: 40px auto 0;
  padding: 16px 0 0;
  justify-content: flex-start;
  gap: 16px;
  font-size: 14px;
}

.landing footer a {
  color: var(--accent);
}

.landing a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Privacy and terms */

.back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  text-decoration: none;
}

.doc h1 {
  margin: 1.5rem 0 0.25rem;
  font-size: 2rem;
}

.doc h2 {
  margin-top: 2rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--rule);
  font-size: 1.25rem;
}

.doc h3 {
  font-size: 1.05rem;
  margin-bottom: 0.25rem;
}

.meta {
  margin-top: 0;
  color: var(--muted);
}

footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.5rem;
  padding: 1.5rem 1rem 2rem;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 0.9rem;
}
