/* Show Up design system for the web. Mirrors Theme.swift in the iOS app. */
:root {
  --ink-base: #000000;
  --ink-surface: #161618;
  --ink-raised: #1C1C1F;
  --ink-inset: #262629;
  --ink-line: #26262A;
  --text-primary: #F4F4F6;
  --text-secondary: #A0A0A8;
  --text-tertiary: #8C8C95;
  --signal-blue: #2B55FF;
  --signal-tint: #10173A;
  --signal-soft: #B7C6FF;
  --ember: #FF9F43;
  --ember-ink: #1A0E00;
  --ember-tint: #2A1A08;
  --ember-soft: #FFD2A6;
  --chalk: #F4F4F6;

  --display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --body: "Albert Sans", "Helvetica Neue", Arial, sans-serif;

  --r-card: 24px;
  --r-sheet: 30px;
  --r-tile: 20px;

  --max: 1160px;
  --gutter: clamp(20px, 5vw, 48px);
}

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

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

body {
  margin: 0;
  background: var(--ink-base);
  color: var(--text-primary);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.5;
  font-weight: 500;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; }

h1, h2, h3 { font-family: var(--display); margin: 0; line-height: 1; letter-spacing: -0.02em; }
h1 { font-weight: 900; font-size: clamp(56px, 11vw, 136px); line-height: 0.92; }
h2 { font-weight: 800; font-size: clamp(32px, 5vw, 56px); line-height: 1; }
h3 { font-weight: 800; font-size: 20px; line-height: 1.2; }
p { margin: 0; }

.lede { font-size: clamp(18px, 2vw, 22px); color: var(--text-secondary); max-width: 34ch; }
.caption { font-size: 13px; font-weight: 600; color: var(--text-tertiary); }

.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
.section { padding-block: clamp(72px, 10vw, 140px); }

:focus-visible { outline: 3px solid var(--signal-soft); outline-offset: 3px; border-radius: 999px; }

/* Pills (buttons) */
.pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 0 26px; border-radius: 999px;
  font-family: var(--body); font-weight: 700; font-size: 16px;
  text-decoration: none; border: 0; cursor: pointer;
  transition: transform 160ms cubic-bezier(.2,.8,.2,1.2), background 160ms;
  white-space: nowrap;
}
.pill:active { transform: scale(.96); }
.pill-primary { background: var(--signal-blue); color: #fff; min-height: 58px; }
.pill-primary:hover { background: #3A62FF; }
.pill-white { background: var(--chalk); color: #000; }
.pill-white:hover { background: #fff; }
.pill-dark { background: var(--ink-raised); color: var(--text-primary); min-height: 54px; }
.pill-dark:hover { background: var(--ink-inset); }
.pill-ghost { background: transparent; color: var(--signal-soft); padding-inline: 12px; }
.pill-sm { min-height: 44px; padding-inline: 18px; font-size: 15px; }

/* Tags and status pills */
.tag {
  display: inline-flex; align-items: center; gap: 6px;
  height: 36px; padding: 0 14px; border-radius: 999px;
  background: var(--ink-raised); color: var(--text-primary);
  font-size: 14px; font-weight: 600;
}
.tag-ember { background: var(--ember); color: var(--ember-ink); font-weight: 700; }
.tag-blue { background: var(--signal-blue); color: #fff; font-weight: 700; }
.tag-chalk { background: var(--chalk); color: #000; font-weight: 700; }
.tag-tint { background: var(--signal-tint); color: var(--signal-soft); }
.tag-embertint { background: var(--ember-tint); color: var(--ember-soft); }

/* Cards */
.card { background: var(--ink-surface); border-radius: var(--r-card); padding: 24px; }
.card-tile { background: var(--ink-inset); border-radius: var(--r-tile); }
.notice-info { background: var(--signal-tint); color: var(--signal-soft); border-radius: var(--r-tile); padding: 16px 20px; }
.notice-warn { background: var(--ember-tint); color: var(--ember-soft); border-radius: var(--r-tile); padding: 16px 20px; }

/* Date block */
.dateblock {
  width: 72px; height: 72px; border-radius: 20px; flex: none;
  display: grid; place-items: center; text-align: center;
  font-family: var(--display); font-weight: 900; font-size: 22px; line-height: 1;
  background: var(--ink-inset); color: var(--text-primary);
}
.dateblock small { display: block; font-family: var(--body); font-weight: 700; font-size: 12px; margin-top: 4px; }
.dateblock-ember { background: var(--ember); color: var(--ember-ink); }
.dateblock-chalk { background: var(--chalk); color: #000; }
.dateblock-blue { background: var(--signal-blue); color: #fff; }

/* Avatars */
.avatar {
  width: 40px; height: 40px; border-radius: 50%; flex: none;
  display: grid; place-items: center;
  font-family: var(--display); font-weight: 800; font-size: 14px;
  box-shadow: 0 0 0 2px var(--ink-surface);
}
.avatar-chalk { background: var(--chalk); color: #000; }
.avatar-ember { background: var(--ember); color: var(--ember-ink); }
.avatar-blue { background: var(--signal-blue); color: #fff; }
.avatar-inset { background: var(--ink-inset); color: var(--text-primary); }
.avatar-stack { display: flex; }
.avatar-stack .avatar + .avatar { margin-left: -10px; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  padding: 14px 0;
  background: rgba(0,0,0,.72);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--ink-line);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.wordmark {
  font-family: var(--display); font-weight: 900; font-size: 22px; letter-spacing: -0.03em;
  text-decoration: none; display: inline-flex; align-items: center; gap: 10px;
}
.wordmark .loop { width: 26px; height: 26px; }
.nav-links { display: flex; gap: 6px; align-items: center; }
.nav-links a { text-decoration: none; color: var(--text-secondary); font-weight: 600; font-size: 15px; padding: 10px 14px; border-radius: 999px; }
.nav-links a:hover { color: var(--text-primary); background: var(--ink-raised); }
@media (max-width: 760px) { .nav-links a:not(.pill) { display: none; } }

/* Footer */
.footer { border-top: 1px solid var(--ink-line); padding: 48px 0 40px; color: var(--text-tertiary); font-size: 14px; }
.footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; align-items: flex-start; }
.footer nav { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.footer a { color: var(--text-secondary); text-decoration: none; }
.footer a:hover { color: var(--text-primary); }

/* Legal pages */
.doc { max-width: 68ch; padding-block: 64px 120px; }
.doc h1 { font-size: clamp(40px, 7vw, 72px); margin-bottom: 12px; }
.doc h2 { font-size: 24px; margin: 48px 0 12px; }
.doc p, .doc li { color: var(--text-secondary); margin-bottom: 14px; }
.doc li { margin-bottom: 8px; }
.doc .updated { color: var(--text-tertiary); font-size: 14px; margin-bottom: 40px; }
.doc strong { color: var(--text-primary); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
