/* littletimes.app. The app's own look (DESIGN.md §4): black, white and greys,
   the system font, one corner family, light or dark by the visitor's device. */
:root {
  color-scheme: light dark;
  --background: #ffffff;
  --surface: #f4f4f5;
  --hairline: #e4e4e7;
  --text: #18181b;
  --text-secondary: #52525b;
  --text-tertiary: #6b6b73;
  --on-fill: #ffffff;
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: #0e0e10;
    --surface: #18181b;
    --hairline: #2c2c31;
    --text: #f4f4f5;
    --text-secondary: #a1a1aa;
    --text-tertiary: #8b8b94;
    --on-fill: #0e0e10;
  }
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font: 17px/1.5 -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.page {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 20px;
}

a {
  color: inherit;
  text-underline-offset: 3px;
}

/* The bird and the name, at the top of every page. */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 24px 0;
  font-weight: 600;
  text-decoration: none;
}

.bird {
  display: block;
  width: 34px;
  aspect-ratio: 397 / 320;
  background: var(--text);
  -webkit-mask: url(/bird.png) center / contain no-repeat;
  mask: url(/bird.png) center / contain no-repeat;
}

.hero {
  padding: 56px 0 64px;
}

.hero .bird {
  width: 96px;
  margin-bottom: 28px;
}

.name {
  margin: 0 0 12px;
  font-weight: 600;
  color: var(--text-secondary);
}

h1 {
  margin: 0;
  font-size: clamp(34px, 8vw, 48px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  font-weight: 700;
  text-wrap: balance;
}

.lede {
  margin: 16px 0 0;
  font-size: 20px;
  line-height: 1.4;
  color: var(--text-secondary);
  text-wrap: pretty;
}

.button {
  display: inline-block;
  margin-top: 32px;
  padding: 14px 22px;
  border-radius: 14px;
  background: var(--text);
  color: var(--on-fill);
  font-weight: 600;
  text-decoration: none;
}

.note {
  margin: 12px 0 0;
  font-size: 15px;
  color: var(--text-tertiary);
}

/* What it does: an icon, a short heading, one line. */
.features {
  margin: 0;
  padding: 8px 0;
  list-style: none;
  border-top: 1px solid var(--hairline);
}

.features li {
  display: grid;
  grid-template-columns: 40px 1fr;
  column-gap: 16px;
  padding: 24px 0;
  border-bottom: 1px solid var(--hairline);
}

.features svg {
  grid-row: span 2;
  width: 40px;
  height: 40px;
  padding: 9px;
  border-radius: 10px;
  background: var(--surface);
  fill: none;
  stroke: var(--text);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

h2 {
  margin: 0;
  font-size: 19px;
  line-height: 1.3;
  font-weight: 600;
}

.features p {
  margin: 4px 0 0;
  color: var(--text-secondary);
}

footer {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  padding: 32px 0 48px;
  font-size: 15px;
  color: var(--text-tertiary);
}

footer span {
  margin-right: auto;
}

/* The privacy page, and any other page of plain reading. */
.prose {
  padding: 24px 0 32px;
}

.prose h1 {
  font-size: 34px;
}

.prose .updated {
  margin: 8px 0 0;
  font-size: 15px;
  color: var(--text-tertiary);
}

.prose h2 {
  margin: 40px 0 8px;
  font-size: 22px;
}

.prose p,
.prose ul {
  margin: 0 0 12px;
  color: var(--text-secondary);
}

.prose ul {
  padding-left: 20px;
}

.prose li {
  margin-bottom: 6px;
}

.prose strong {
  color: var(--text);
  font-weight: 600;
}

.prose .summary {
  margin: 28px 0 0;
  padding: 8px 20px;
  list-style: none;
  border-radius: 14px;
  background: var(--surface);
}

.prose .summary li {
  display: grid;
  grid-template-columns: 22px 1fr;
  column-gap: 12px;
  margin: 0;
  padding: 12px 0;
  color: var(--text);
}

.summary li + li {
  border-top: 1px solid var(--hairline);
}

.summary svg {
  width: 22px;
  height: 22px;
  margin-top: 2px;
  fill: none;
  stroke: var(--text);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
