/* So You Sew — public site. Brand palette mirrors theme/colors.ts */
:root {
  --cream: #faf6f0;
  --cream-50: #fdfbf7;
  --cream-200: #f2ebde;
  --cream-300: #e8ddc9;
  --terracotta: #c17b5c;
  --terracotta-500: #a86546;
  --terracotta-600: #864f37;
  --terracotta-50: #f6e8e0;
  --sage: #7a9177;
  --sage-500: #5f7559;
  --charcoal: #2c2a26;
  --muted: #6e6a63;
  --border: #e8ddc9;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Georgia, 'Times New Roman', serif;
  background: var(--cream-50);
  color: var(--charcoal);
  line-height: 1.65;
}
h1, h2, h3, h4, .brand, nav, .btn, .site-footer {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
}

a { color: var(--terracotta-500); }
a:hover { color: var(--terracotta-600); }

.site-header {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 0.5rem;
  padding: 1rem 1.5rem;
  background: var(--cream);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0;
}
.brand { font-weight: 700; font-size: 1.25rem; color: var(--terracotta-600); text-decoration: none; display: flex; align-items: center; }
.brand-mark { height: 22px; width: auto; display: block; }
.app-icon { width: 96px; height: 96px; border-radius: 22px; box-shadow: 0 6px 24px rgba(44, 42, 38, 0.18); margin-bottom: 1.25rem; }
.hero-mark { width: min(420px, 80vw); height: auto; display: block; margin: 0 auto 0.75rem; }
.site-header nav a { margin-left: 1rem; color: var(--charcoal); text-decoration: none; font-size: 0.95rem; }
.site-header nav a:hover { color: var(--terracotta-500); }

.hero {
  text-align: center;
  padding: 4.5rem 1.5rem 3.5rem;
  background: linear-gradient(var(--cream), var(--cream-50));
}
.hero h1 { font-size: 2.6rem; margin: 0 0 0.5rem; color: var(--charcoal); }
.hero .tagline { font-size: 1.3rem; color: var(--terracotta-500); margin: 0 0 1rem; font-style: italic; }
.hero p { max-width: 620px; margin: 0 auto 1.5rem; color: var(--muted); }
.badge {
  display: inline-block; background: var(--sage); color: #fff;
  border-radius: 999px; padding: 0.3rem 1rem; font-size: 0.85rem; letter-spacing: 0.03em;
}

section { max-width: 880px; margin: 0 auto; padding: 2.5rem 1.5rem; }
section h2 { font-size: 1.7rem; border-bottom: 2px solid var(--cream-300); padding-bottom: 0.4rem; }

.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; padding: 0; list-style: none; }
.features li {
  background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 1.1rem 1.2rem;
}
.features li strong { display: block; color: var(--terracotta-600); margin-bottom: 0.3rem; }

.policy-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0.75rem; padding: 0; list-style: none; }
.policy-grid a {
  display: block; background: #fff; border: 1px solid var(--border); border-radius: 10px;
  padding: 0.85rem 1rem; text-decoration: none; font-weight: 600;
}
.policy-grid a:hover { border-color: var(--terracotta); }

.contact-list { list-style: none; padding: 0; }
.contact-list li { margin-bottom: 0.4rem; }

.doc { max-width: 760px; margin: 0 auto; padding: 2.5rem 1.5rem 4rem; }
.doc h1 { font-size: 2rem; }
.doc h2 { font-size: 1.35rem; margin-top: 2rem; }
.doc h3 { font-size: 1.1rem; margin-top: 1.5rem; }
.doc table { border-collapse: collapse; width: 100%; margin: 1rem 0; font-size: 0.95rem; }
.doc th, .doc td { border: 1px solid var(--border); padding: 0.5rem 0.7rem; text-align: left; vertical-align: top; }
.doc th { background: var(--cream-200); }
.doc blockquote {
  margin: 1rem 0; padding: 0.75rem 1rem; background: var(--terracotta-50);
  border-left: 4px solid var(--terracotta); border-radius: 0 8px 8px 0;
}
.doc code { background: var(--cream-200); border-radius: 4px; padding: 0.1rem 0.35rem; font-size: 0.9em; }
.doc hr { border: none; border-top: 1px solid var(--border); margin: 2rem 0; }

.site-footer {
  text-align: center; padding: 2rem 1.5rem 3rem; color: var(--muted);
  border-top: 1px solid var(--border); background: var(--cream); font-size: 0.85rem;
}
.footer-links a { color: var(--muted); margin: 0 0.15rem; }
