/* Cross Stitch Tracker — coming soon
   Plain CSS. Light + dark via prefers-color-scheme. System fonts only. */

:root {
  --bg: #fbfaf8;
  --surface: #ffffff;
  --text: #1c1b19;
  --text-muted: #55524d;
  --border: #e8e4dd;
  --accent: #2f6f5e;      /* muted sage-teal — calm, not craft-cute */
  --accent-text: #245747;

  --maxw: 40rem;
  --space: clamp(1.5rem, 5vw, 3rem);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141311;
    --surface: #1c1b19;
    --text: #f2efe9;
    --text-muted: #a8a29a;
    --border: #2c2a27;
    --accent: #6fb8a4;
    --accent-text: #8fccbb;
  }
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: var(--accent-text);
  text-decoration: underline;
  text-underline-offset: 0.15em;
  text-decoration-thickness: 1px;
}

a:hover {
  text-decoration-thickness: 2px;
}

.page {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(3rem, 12vh, 7rem) var(--space) 3rem;
  display: flex;
  flex-direction: column;
  gap: clamp(2.75rem, 8vw, 4.5rem);
}

/* Hero */
.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 6vw, 3rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  font-weight: 680;
}

/* Forced headline break only on wider screens; let it flow on phones */
.br-wide {
  display: none;
}

@media (min-width: 34rem) {
  .br-wide {
    display: inline;
  }
}

.subline {
  margin: 0;
  font-size: clamp(1.1rem, 2.5vw, 1.3rem);
  line-height: 1.5;
  color: var(--text-muted);
  max-width: 34rem;
}

/* Features */
.features ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.features li {
  position: relative;
  padding-left: 1.75rem;
  color: var(--text);
  font-size: 1.0625rem;
}

.features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--accent);
}

/* Capture */
.capture {
  padding: clamp(1.75rem, 5vw, 2.5rem);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
}

.capture h2 {
  margin: 0 0 0.5rem;
  font-size: 1.5rem;
  letter-spacing: -0.01em;
  font-weight: 640;
}

.capture-copy {
  margin: 0 0 1.5rem;
  color: var(--text-muted);
}

.fallback {
  margin: 1.25rem 0 0;
  font-size: 0.9375rem;
  color: var(--text-muted);
}

/* Footer */
.site-footer {
  margin-top: 1rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  font-size: 0.875rem;
  color: var(--text-muted);
}

.site-footer p {
  margin: 0 0 0.35rem;
}

.site-footer a {
  color: var(--text-muted);
}

/* Respect reduced motion for anything the Kit embed may add */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
