/* Spruce (spruceapp.fm) — Ultra-minimal single-column stylesheet */

:root {
  --bg: #FFFFFF;
  --text: #161E1A;
  --muted: #526059;
  --subtle: #73827A;
  --rule: #E6ECE9;
  --accent: #1B8746;
  --accent-hover: #146E38;
  --btn-bg: #F6F9F7;
  --btn-border: #D5E0DA;
  --btn-hover: #EAF2ED;
  --font: -apple-system, system-ui, "SF Pro Text", "Segoe UI", Verdana, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0B1B13;
    --text: #F0F6F2;
    --muted: #A9BEB2;
    --subtle: #7E9A8B;
    --rule: #1A3527;
    --accent: #1DB954;
    --accent-hover: #28CC62;
    --btn-bg: #112A1D;
    --btn-border: #204231;
    --btn-hover: #173827;
  }
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.58;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

.page {
  max-width: 600px;
  margin: 0 auto;
  padding: clamp(3.25rem, 9vw, 6rem) 1.5rem 3.5rem;
}

/* Centered Minimal Hero */
.hero {
  text-align: center;
  padding-bottom: 3rem;
}

.app-icon {
  display: block;
  width: 76px;
  height: 76px;
  margin: 0 auto 1.15rem;
  border-radius: 17px;
  box-shadow: 0 2px 10px rgba(13, 43, 29, 0.14);
}

.hero h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(2.05rem, 5vw, 2.5rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.tagline {
  margin: 0 auto 1.75rem;
  max-width: 34ch;
  font-size: clamp(1.06rem, 2.4vw, 1.18rem);
  font-weight: 400;
  color: var(--muted);
  line-height: 1.5;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.55rem;
  margin-bottom: 1.15rem;
}

.action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.52rem 1rem;
  border-radius: 9px;
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--text);
  background: var(--btn-bg);
  border: 1px solid var(--btn-border);
  text-decoration: none;
  transition: background-color 140ms ease, border-color 140ms ease;
}

.action:hover {
  text-decoration: none;
  background: var(--btn-hover);
  border-color: var(--accent);
}

.action-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #FFFFFF;
}

@media (prefers-color-scheme: dark) {
  .action-primary {
    color: #062112;
  }
}

.action-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}

.note {
  margin: 0;
  font-size: 0.88rem;
  color: var(--subtle);
}

/* Single-Column Pillars */
.pillars {
  padding: 2.75rem 0 2.5rem;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.pillar + .pillar {
  margin-top: 2rem;
}

.pillar h2 {
  margin: 0 0 0.3rem;
  font-size: 1.08rem;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--text);
}

.pillar p {
  margin: 0;
  font-size: 0.97rem;
  color: var(--muted);
}

.also {
  margin: 2.25rem 0 0;
  font-size: 0.9rem;
  color: var(--subtle);
}

/* Calm Footer */
.footer {
  padding-top: 2rem;
  text-align: center;
  font-size: 0.86rem;
  color: var(--subtle);
}

.footer p {
  margin: 0;
}
