:root {
  --red: #e8261c;
  --red-dark: #c41f17;
  --text: #1a1a1a;
  --muted: #6b7280;
  --bg: #ffffff;
  --bg-alt: #f7f7f7;
  --border: #e5e7eb;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

.container {
  max-width: 720px;
  margin: 0 auto;
  padding: 2rem 1.25rem 4rem;
}

header.site {
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}

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

header.site .brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
}

header.site .brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: linear-gradient(135deg, var(--red) 0%, var(--red-dark) 100%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 18px;
  line-height: 1;
}

header.site nav {
  margin-left: auto;
  display: flex;
  gap: 1.25rem;
  font-size: 0.95rem;
}

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

header.site nav a:hover {
  color: var(--text);
}

.hero {
  padding: 2.5rem 0 1.5rem;
}

.hero h1 {
  font-size: 2.1rem;
  line-height: 1.2;
  margin: 0 0 0.5rem;
}

.hero .tagline {
  font-size: 1.15rem;
  color: var(--muted);
  margin: 0 0 1.5rem;
}

.hero .ctas {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 0.7rem 1.1rem;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  font-size: 0.95rem;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--red);
  color: white;
}

.btn-primary:hover {
  background: var(--red-dark);
}

.btn-secondary {
  background: white;
  color: var(--text);
  border-color: var(--border);
}

.btn-secondary:hover {
  background: var(--bg-alt);
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}

.feature {
  padding: 1rem;
  background: var(--bg-alt);
  border-radius: 8px;
  border: 1px solid var(--border);
}

.feature h3 {
  font-size: 1rem;
  margin: 0 0 0.35rem;
}

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

article h1 {
  font-size: 1.9rem;
  margin: 0 0 0.5rem;
}

article h2 {
  font-size: 1.3rem;
  margin: 2rem 0 0.6rem;
}

article h3 {
  font-size: 1.05rem;
  margin: 1.4rem 0 0.4rem;
}

article p,
article ul,
article ol {
  margin: 0.75rem 0;
}

article ul,
article ol {
  padding-left: 1.4rem;
}

article li {
  margin: 0.25rem 0;
}

article code {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.1rem 0.4rem;
  font-size: 0.92em;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

article blockquote {
  margin: 1rem 0;
  padding: 0.5rem 1rem;
  border-left: 4px solid var(--red);
  background: var(--bg-alt);
  color: var(--text);
}

article blockquote p:first-child {
  margin-top: 0;
}

article blockquote p:last-child {
  margin-bottom: 0;
}

article hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 2rem 0;
}

article a {
  color: var(--red-dark);
}

.meta {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0 0 1.5rem;
}

.footer-note {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--muted);
  font-style: italic;
}

/* Blog post styles */
.cta-box {
  background: linear-gradient(135deg, rgba(232, 38, 28, 0.06) 0%, rgba(196, 31, 23, 0.04) 100%);
  border: 1px solid rgba(232, 38, 28, 0.2);
  border-left: 4px solid var(--red);
  border-radius: 8px;
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
}

.cta-box p {
  margin: 0;
}

.cta-box a {
  font-weight: 600;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  font-size: 0.95rem;
}

.data-table th,
.data-table td {
  text-align: left;
  padding: 0.6rem 0.75rem;
  border-bottom: 1px solid var(--border);
}

.data-table th {
  background: var(--bg-alt);
  font-weight: 600;
}

.post-list {
  list-style: none;
  padding: 0;
}

.post-summary {
  border-bottom: 1px solid var(--border);
  padding: 1.25rem 0;
}

.post-summary:last-child {
  border-bottom: none;
}

.post-summary h2 {
  margin: 0 0 0.25rem;
  font-size: 1.25rem;
}

.post-summary h2 a {
  color: var(--text);
  text-decoration: none;
}

.post-summary h2 a:hover {
  color: var(--red-dark);
}

/* Waitlist email capture */
.waitlist {
  margin: 2.5rem 0;
  padding: 1.75rem;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 10px;
}

.waitlist h2 {
  margin: 0 0 0.5rem;
  font-size: 1.3rem;
}

.waitlist p {
  margin: 0 0 1rem;
  color: var(--muted);
}

.waitlist form {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.waitlist input[type="email"] {
  flex: 1 1 240px;
  min-width: 0;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: inherit;
  background: white;
}

.waitlist input[type="email"]:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(232, 38, 28, 0.12);
}

.waitlist button {
  padding: 0.7rem 1.25rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  font-family: inherit;
  border: 0;
  background: var(--red);
  color: white;
  cursor: pointer;
}

.waitlist button:hover {
  background: var(--red-dark);
}

.waitlist .fine-print {
  margin-top: 0.75rem;
  font-size: 0.8rem;
  color: var(--muted);
}

footer.site {
  border-top: 1px solid var(--border);
  margin-top: 4rem;
  padding: 1.5rem 0;
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
}

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

@media (max-width: 600px) {
  .hero h1 {
    font-size: 1.7rem;
  }
  .container {
    padding: 1.25rem 1rem 3rem;
  }
}
