/* Still Within - stillwithin.app */

:root {
  --bg: #faf6f1;
  --bg-card: #ffffff;
  --text: #3d2e23;
  --text-soft: #7a6a5c;
  --brown: #8b5e3c;
  --brown-deep: #6f4a2f;
  --green: #3e7d4f;
  --green-soft: #e6f2e9;
  --border: #e8ded2;
  --radius: 14px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1e1915;
    --bg-card: #2a231d;
    --text: #f0e8df;
    --text-soft: #b3a595;
    --brown: #c99b6f;
    --brown-deep: #dfb891;
    --green: #7cc08f;
    --green-soft: #263a2c;
    --border: #3d332a;
  }
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

/* Header / nav */
header {
  padding: 28px 0;
}

nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  font-size: 1.05rem;
}

.brand .mark {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--brown);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

nav .links a {
  color: var(--text-soft);
  text-decoration: none;
  font-size: 0.95rem;
  margin-left: 20px;
}

nav .links a:hover { color: var(--brown); }

/* Hero */
.hero {
  text-align: center;
  padding: 56px 0 40px;
}

.hero h1 {
  font-size: clamp(2rem, 6vw, 3rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.hero .tagline {
  font-size: 1.2rem;
  color: var(--text-soft);
  max-width: 480px;
  margin: 0 auto 28px;
}

.badge {
  display: inline-block;
  background: var(--text);
  color: var(--bg);
  text-decoration: none;
  font-weight: 600;
  padding: 13px 26px;
  border-radius: 12px;
  font-size: 1rem;
}

.badge:hover { opacity: 0.85; }

.badge.soon {
  background: var(--border);
  color: var(--text-soft);
  cursor: default;
}

/* Sections */
section { padding: 36px 0; }

h2 {
  font-size: 1.4rem;
  margin-bottom: 18px;
  letter-spacing: -0.01em;
}

h3 {
  font-size: 1.05rem;
  margin: 22px 0 6px;
}

p + p { margin-top: 12px; }

.muted { color: var(--text-soft); }

/* Feature cards */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}

.card .icon {
  display: inline-flex;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--green-soft);
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.card h3 { margin: 0 0 4px; }
.card p { color: var(--text-soft); font-size: 0.95rem; }

/* Callout */
.callout {
  background: var(--green-soft);
  border-radius: var(--radius);
  padding: 22px 24px;
}

.callout h2 { color: var(--green); }

/* FAQ */
details {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-bottom: 10px;
}

details summary {
  font-weight: 600;
  cursor: pointer;
}

details p { margin-top: 10px; color: var(--text-soft); }

/* Lists in text pages */
main ul { margin: 10px 0 10px 22px; }
main li { margin-bottom: 6px; }

a { color: var(--brown); }

/* Blog */
.article h1 {
  font-size: clamp(1.6rem, 5vw, 2.2rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.article .byline { margin-bottom: 28px; }

.article p { margin-bottom: 14px; }

.article h2 { margin-top: 34px; }

.post-card {
  display: block;
  text-decoration: none;
  color: var(--text);
  margin-bottom: 14px;
}

.post-card:hover { border-color: var(--brown); }

.post-card h3 { margin-top: 0; }

.small { font-size: 0.85rem; }

/* Footer */
footer {
  border-top: 1px solid var(--border);
  margin-top: 40px;
  padding: 28px 0 48px;
  font-size: 0.9rem;
  color: var(--text-soft);
}

footer .links { margin-bottom: 8px; }

footer a {
  color: var(--text-soft);
  margin-right: 18px;
}

footer a:hover { color: var(--brown); }
