/* Copyright 2026 Phillip Cloud */
/* Licensed under the Apache License, Version 2.0 */

/* --- Reset & Base --- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --cream: #faf6f1;
  --linen: #f0ebe4;
  --charcoal: #2d2a26;
  --charcoal-soft: #4a4640;
  --terracotta: #c05e3c;
  --terracotta-dark: #a04e30;
  --sage: #6b8f71;
  --sage-light: #8aab8f;
  --warm-gray: #9e958a;
  --rule: #d9d2c9;
}

html {
  font-size: 18px;
  scroll-behavior: smooth;
}

body {
  font-family: "Source Serif 4", "Georgia", "Times New Roman", serif;
  color: var(--charcoal);
  background: var(--cream);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* --- Typography --- */
h1,
h2,
h3 {
  font-family: "DM Serif Display", "Georgia", serif;
  font-weight: 400;
  line-height: 1.2;
}

h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: var(--charcoal);
}

h2 .accent {
  color: var(--terracotta);
}

h2 .accent-alt {
  color: var(--sage);
}

/* --- Typewriter --- */
.typewriter {
  white-space: nowrap;
  font-family: "JetBrains Mono", "Fira Code", "Consolas", monospace;
  font-size: 0.85em;
}

.typewriter::after {
  content: "\2588";
  margin-left: 1px;
  opacity: 0.3;
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .typewriter::after {
    animation: none;
  }
}

a {
  color: var(--terracotta);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

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

code,
pre {
  font-family: "JetBrains Mono", "Fira Code", "Consolas", monospace;
}

code {
  font-size: 0.85em;
  background: var(--linen);
  padding: 0.15em 0.4em;
  border-radius: 4px;
}

pre {
  background: var(--charcoal);
  color: #e8e2da;
  padding: 1.25rem 1.5rem;
  border-radius: 8px;
  overflow-x: auto;
  font-size: 0.85rem;
  line-height: 1.6;
}

pre code {
  background: none;
  padding: 0;
  font-size: inherit;
  color: inherit;
}

/* --- Layout --- */
.container {
  max-width: 740px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

section {
  padding: 4rem 0;
}

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

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

.hero-house {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.9rem;
  line-height: 1.3;
  color: var(--terracotta);
  margin-bottom: 1.5rem;
  user-select: none;
}

.hero h1 {
  font-size: 3.5rem;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

.hero h1 .dot {
  color: var(--terracotta);
}

.tagline {
  font-size: 1.15rem;
  color: var(--charcoal-soft);
  max-width: 480px;
  margin: 0 auto 2rem;
}

.hero-cta {
  display: inline-flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.hero-cta a {
  display: inline-block;
  padding: 0.6rem 1.5rem;
  border-radius: 6px;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.85rem;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}

.btn-primary {
  background: var(--terracotta);
  color: var(--cream) !important;
}

.btn-primary:hover {
  background: var(--terracotta-dark);
  color: var(--cream) !important;
}

.btn-secondary {
  background: var(--linen);
  color: var(--charcoal) !important;
  border: 1px solid var(--rule);
}

.btn-secondary:hover {
  background: var(--rule);
  color: var(--charcoal) !important;
}

/* --- Pitch --- */
.brand {
  font-family: "JetBrains Mono", "Fira Code", "Consolas", monospace;
  font-size: 0.85em;
  font-style: normal;
  background: var(--linen);
  padding: 0.15em 0.4em;
  border-radius: 4px;
}

.pitch {
  font-size: 1.05rem;
  color: var(--charcoal-soft);
  text-align: center;
  max-width: 560px;
  margin: 0 auto;
  padding: 0 0 1rem;
  font-style: italic;
}

.pitch-follow {
  padding: 0;
  font-style: normal;
}

/* --- Features --- */
.features-grid {
  display: grid;
  gap: 2rem;
}

.feature {
}

.feature-q {
  font-family: "DM Serif Display", "Georgia", serif;
  font-size: 1.1rem;
  color: var(--charcoal);
  margin-bottom: 0.25rem;
}

.feature-q::before {
  content: "Q. ";
  color: var(--terracotta);
  font-weight: 700;
}

.feature-a {
  color: var(--charcoal-soft);
  padding-left: 1.75rem;
}

.feature-a::before {
  content: "A. ";
  color: var(--sage);
  font-weight: 700;
  margin-left: -1.75rem;
}

/* --- Section notes --- */
.section-note {
  color: var(--warm-gray);
  font-style: italic;
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

/* --- Install --- */
.install-steps {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.install-steps p {
  color: var(--charcoal-soft);
}

.install-or {
  text-align: center;
  color: var(--warm-gray);
  font-style: italic;
  font-size: 0.9rem;
}

.install-data {
  text-align: center;
  color: var(--warm-gray);
  font-size: 0.85rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
}

/* --- Keybindings --- */
.keys-modes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

@media (max-width: 600px) {
  .keys-modes {
    grid-template-columns: 1fr;
  }
}

.keys-modes h3 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  color: var(--charcoal);
}

.keys-modes h3 .mode-badge {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.2em 0.5em;
  border-radius: 4px;
  vertical-align: middle;
  margin-left: 0.5rem;
}

.mode-normal {
  background: var(--sage);
  color: var(--cream);
}

.mode-edit {
  background: var(--terracotta);
  color: var(--cream);
}

.key-list {
  list-style: none;
  font-size: 0.9rem;
}

.key-list li {
  display: flex;
  gap: 0.75rem;
  padding: 0.3rem 0;
  border-bottom: 1px solid var(--linen);
}

.key-list li:last-child {
  border-bottom: none;
}

.key-list kbd {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.8rem;
  min-width: 4.5rem;
  text-align: right;
  color: var(--terracotta);
  flex-shrink: 0;
}

.key-list .desc {
  color: var(--charcoal-soft);
}

/* --- Tech --- */
.tech-note {
  text-align: center;
  color: var(--warm-gray);
  font-size: 0.9rem;
}

/* --- Footer --- */
footer {
  padding: 3rem 0;
  border-top: 1px solid var(--rule);
  text-align: center;
  color: var(--warm-gray);
  font-size: 0.85rem;
}

footer a {
  color: var(--warm-gray);
}

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

.footer-links {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  margin-bottom: 0.75rem;
}

/* --- Responsive --- */
@media (max-width: 600px) {
  html {
    font-size: 16px;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  section {
    padding: 3rem 0;
  }

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