/* Tinygram web — same voice as the app (docs/DESIGN.md §3):
   paper, ink, one red. No frameworks, no trackers, no cookies. */

:root {
  --bg: #FAF7F2;
  --raised: #FFFFFF;
  --ink: #26221E;
  --ink-soft: #8A8378;
  --border: rgba(38, 34, 30, 0.12);
  --red: #E2543C;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

[hidden] { display: none !important; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI",
    "Apple SD Gothic Neo", sans-serif;
  -webkit-font-smoothing: antialiased;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.rounded {
  font-family: ui-rounded, -apple-system, BlinkMacSystemFont,
    "Apple SD Gothic Neo", sans-serif;
}

main {
  width: 100%;
  max-width: 430px;
  padding: 48px 26px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
}

.cans { margin: 28px 0 6px; }

.wordmark {
  color: var(--red);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.2px;
  margin-top: 14px;
}

h1 {
  font-size: 32px;
  font-weight: 700;
  text-align: center;
  line-height: 1.2;
  margin-top: 18px;
}

.sub {
  color: var(--ink-soft);
  font-size: 15px;
  text-align: center;
  line-height: 1.55;
  margin-top: 14px;
}

.card {
  background: var(--raised);
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.07);
  padding: 34px 28px;
  width: 100%;
  text-align: center;
  margin-top: 26px;
}

.card .kicker {
  color: #6E7F5C;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
}

.card h2 { font-size: 28px; margin-top: 12px; }

.card .meta {
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 500;
  margin-top: 8px;
}

.manifesto {
  color: var(--red);
  font-size: 12px;
  font-weight: 600;
  margin-top: 16px;
}

.btn {
  display: block;
  width: 100%;
  padding: 15px;
  border: none;
  border-radius: 16px;
  background: var(--red);
  color: #fff;
  font-size: 17px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  margin-top: 26px;
}

.btn.secondary {
  background: transparent;
  color: var(--ink-soft);
  font-size: 15px;
  font-weight: 500;
  margin-top: 4px;
}

.field {
  width: 100%;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--raised);
  font-size: 16px;
  color: var(--ink);
  margin-top: 12px;
}

.note {
  color: var(--ink-soft);
  font-size: 13px;
  text-align: center;
  line-height: 1.5;
  margin-top: 16px;
}

footer {
  padding: 22px;
  color: var(--ink-soft);
  font-size: 12px;
  display: flex;
  gap: 16px;
}

footer a { color: var(--ink-soft); }

.prose {
  max-width: 640px;
  padding: 44px 26px 64px;
  line-height: 1.65;
}

.prose h1 { text-align: left; font-size: 26px; }
.prose h2 { font-size: 17px; margin-top: 28px; }
.prose p, .prose li { color: var(--ink); font-size: 15px; margin-top: 10px; }
.prose .updated { color: var(--ink-soft); font-size: 13px; margin-top: 6px; }
