/* The Still Network — site styles. Mirrors the app: warm off-white,
   deep charcoal in dark mode, muted sage, serif type, lots of space. */

:root {
  --bg: #F6F3EC;
  --surface: #FCFAF5;
  --ink: #2E2F2B;
  --muted: #72736D;
  --sage: #75876B;
  --sage-soft: #D9DFD1;
  --line: rgba(46, 47, 43, 0.10);
  --serif: "New York", ui-serif, "Iowan Old Style", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1C1D1B;
    --surface: #282927;
    --ink: #EAE8E2;
    --muted: #A2A29C;
    --sage: #9DB290;
    --sage-soft: #3C4538;
    --line: rgba(234, 232, 226, 0.10);
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration-color: var(--sage); text-underline-offset: 3px; }
a:hover { color: var(--sage); }

.wrap {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.site-header {
  padding: 28px 0;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--sage);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.22em;
}
.wordmark svg { width: 22px; height: 22px; flex: none; }
.wordmark { white-space: nowrap; }
@media (max-width: 430px) {
  .wordmark { font-size: 11.5px; letter-spacing: 0.16em; gap: 8px; }
  .site-header nav { gap: 14px; font-size: 14px; }
}
.site-header nav { display: flex; gap: 20px; font-size: 15px; }
.site-header nav a { text-decoration: none; color: var(--muted); }
.site-header nav a:hover { color: var(--ink); }

/* Hero */
.hero {
  text-align: center;
  padding: 56px 0 72px;
}
.ring {
  width: min(240px, 62vw);
  height: auto;
  display: block;
  margin: 0 auto 48px;
}
.ring .track { stroke: var(--sage-soft); }
.ring .arc { stroke: var(--sage); }
.ring .dot { fill: var(--sage); }

@media (prefers-reduced-motion: no-preference) {
  .ring .dot { animation: breathe 8s ease-in-out infinite; transform-origin: 50% 50%; transform-box: fill-box; }
  @keyframes breathe {
    0%, 100% { transform: scale(1); opacity: 0.9; }
    50% { transform: scale(1.35); opacity: 1; }
  }
}

.eyebrow {
  color: var(--sage);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.28em;
  margin: 0 0 14px;
}
h1 {
  font-weight: 400;
  font-style: italic;
  font-size: clamp(34px, 7vw, 52px);
  line-height: 1.15;
  margin: 0 0 20px;
}
.lede {
  color: var(--muted);
  max-width: 30em;
  margin: 0 auto 36px;
}

/* Download */
.download { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 30px;
  border-radius: 999px;
  background: var(--sage);
  color: var(--bg);
  text-decoration: none;
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 600;
  transition: opacity 0.15s ease;
}
.button:hover { color: var(--bg); opacity: 0.88; }
.button svg { width: 18px; height: 18px; fill: currentColor; }
.button.is-disabled {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--line);
  cursor: default;
}
.download-note { font-size: 14px; color: var(--muted); margin: 0; }

/* Principles */
.principles {
  border-top: 1px solid var(--line);
  padding: 64px 0 24px;
  display: grid;
  gap: 40px;
}
.principle h2 {
  font-size: 22px;
  font-weight: 600;
  margin: 0 0 6px;
}
.principle p { margin: 0; color: var(--muted); }

.motto {
  text-align: center;
  font-style: italic;
  color: var(--muted);
  padding: 48px 0 72px;
  margin: 0;
}

/* Text pages */
.page { padding-top: 32px; padding-bottom: 72px; }
.page h1 { font-style: normal; font-size: clamp(32px, 6vw, 42px); margin-bottom: 6px; }
.page .meta { color: var(--muted); font-size: 15px; margin: 0 0 40px; }
.page h2 { font-size: 21px; font-weight: 600; margin: 40px 0 8px; }
.page p, .page li { color: var(--ink); }
.page ul { padding-left: 1.2em; }
.page li { margin: 6px 0; }
.card {
  background: var(--surface);
  border-radius: 20px;
  padding: 22px 24px;
  margin: 28px 0;
}
.card p { margin: 0; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 28px 0 40px;
  font-size: 14px;
  color: var(--muted);
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  justify-content: space-between;
}
.site-footer nav { display: flex; gap: 20px; }
.site-footer a { text-decoration: none; }

@media (min-width: 720px) {
  .principles { grid-template-columns: repeat(3, 1fr); gap: 32px; }
}
