/* Cornelia Cove LLC — site styles */

:root {
  --bg: #fbfaf7;
  --surface: #ffffff;
  --text: #1f2a33;
  --text-muted: #5a6b78;
  --accent: #0f6f8c;
  --accent-deep: #0a4f66;
  --border: #e3e0d8;
  --radius: 12px;
  --max-width: 68rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #10181d;
    --surface: #182229;
    --text: #e8edf0;
    --text-muted: #9fb0bb;
    --accent: #4fb3d1;
    --accent-deep: #7fcbe2;
    --border: #263440;
  }
}

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

html {
  scroll-behavior: smooth;
}

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

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header */
.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.01em;
}

.brand svg {
  flex-shrink: 0;
}

.site-nav {
  display: flex;
  gap: 1.5rem;
}

.site-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--accent);
}

/* Hero */
.hero {
  padding: 5rem 0 4rem;
  text-align: center;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.hero p.tagline {
  font-size: 1.25rem;
  color: var(--text-muted);
  max-width: 42rem;
  margin: 0 auto 2rem;
}

.button {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  padding: 0.75rem 1.6rem;
  border-radius: 999px;
  transition: background 0.15s ease;
}

.button:hover {
  background: var(--accent-deep);
}

@media (prefers-color-scheme: dark) {
  .button {
    color: #0e161b;
  }
}

/* Sections */
section {
  padding: 3.5rem 0;
}

section + section {
  border-top: 1px solid var(--border);
}

h2 {
  font-size: 1.75rem;
  letter-spacing: -0.01em;
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

p + p {
  margin-top: 1rem;
}

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

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.card h3 {
  color: var(--accent-deep);
}

@media (prefers-color-scheme: dark) {
  .card h3 {
    color: var(--accent);
  }
}

/* Prose pages (privacy, support) */
.prose {
  max-width: 46rem;
  padding: 3.5rem 0 4.5rem;
}

.prose h1 {
  font-size: 2.25rem;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.prose .updated {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 2rem;
}

.prose h2 {
  font-size: 1.4rem;
  margin-top: 2.25rem;
}

.prose ul {
  margin: 0.75rem 0 0.75rem 1.4rem;
}

.prose a {
  color: var(--accent);
}

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

.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
}

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

.site-footer a:hover {
  color: var(--accent);
}
