/* Small-web, lightweight styles (no external font imports) */

:root {
  /* Modern light palette with subtle gradients */
  --bg: linear-gradient(135deg, #fbf7ef 0%, #f8f4ec 100%);
  --bg-solid: #fbf7ef;
  --paper: linear-gradient(135deg, #fffdfa 0%, #fefcf8 100%);
  --paper-solid: #fffdfa;
  --ink: #1a1a1a;
  --ink-muted: #636363;
  --accent: #2a5d7a;
  --accent-light: #3d7a9a;
  --brand: #2a5d7a;
  --ring: rgba(42,93,122,0.15);
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 4px 6px rgba(0, 0, 0, 0.07), 0 2px 4px rgba(0, 0, 0, 0.06);
  --radius-lg: 12px;
  --radius-md: 8px;
  --radius-sm: 6px;

  /* Typography scale */
  --font-size-xs: 0.875rem;
  --font-size-sm: 1rem;
  --font-size-base: 1.125rem;
  --font-size-lg: 1.25rem;
  --font-size-xl: 1.5rem;
  --font-size-2xl: 2rem;
  --font-size-3xl: 2.5rem;

  /* Line heights */
  --leading-tight: 1.25;
  --leading-snug: 1.375;
  --leading-normal: 1.5;
  --leading-relaxed: 1.625;
  --leading-loose: 2;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, 'Roboto', 'Helvetica Neue', Arial, sans-serif;
  background: var(--bg-solid);
  background-image: var(--bg);
  color: var(--ink);
  margin: 0;
  padding: 0;
  font-size: var(--font-size-base);
  line-height: var(--leading-relaxed);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'kern' 1, 'liga' 1, 'calt' 1;
}

.container {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 16px;
}

.hero {
  background: transparent;
  padding: 40px 0 20px;
}

.letter-hero { padding-top: 30px; }

.content { padding: 10px 0 40px; }

h1 {
  font-family: Georgia, 'Times New Roman', Times, serif;
  font-size: var(--font-size-3xl);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: var(--leading-tight);
  margin: 0 0 12px 0;
  color: var(--ink);
}

h2 {
  font-family: Georgia, 'Times New Roman', Times, serif;
  font-size: var(--font-size-2xl);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: var(--leading-tight);
  margin: 0 0 8px 0;
  color: var(--ink);
}

h3 {
  font-family: Georgia, 'Times New Roman', Times, serif;
  font-size: var(--font-size-xl);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: var(--leading-snug);
  margin: 0 0 6px 0;
  color: var(--ink);
}

.hero .tagline {
  font-size: var(--font-size-lg);
  margin-bottom: 1.25em;
  font-weight: 500;
  color: var(--ink-muted);
  letter-spacing: -0.005em;
}

p {
  font-size: var(--font-size-base);
  margin: 0 0 1.25em 0;
  line-height: var(--leading-relaxed);
  color: var(--ink);
}

ul { padding-left: 1.2em; }
li {
  margin: 0.3em 0;
  font-family: Georgia, 'Times New Roman', Times, serif;
}

/* Navigation */
.nav-bar {
  background-color: transparent;
  padding: 10px 0;
  border-bottom: 1px solid #e8e2d6;
}

.nav-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: Georgia, 'Times New Roman', Times, serif;
  font-weight: 800;
  font-size: var(--font-size-xl);
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.nav-links { display: flex; gap: 24px; }
.nav-links a {
  color: var(--ink-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: var(--font-size-sm);
  transition: color 0.2s ease;
}
.nav-links a:hover, .nav-links a.active {
  text-decoration: none;
  color: var(--brand);
  font-weight: 600;
}

/* Links */
a { color: var(--brand); text-decoration: underline; text-underline-offset: 2px; }
a:hover { opacity: 0.9; }

/* Letter block */
.letter {
  background: var(--paper-solid);
  background-image: var(--paper);
  border: 1px solid #eadfcb;
  border-left: 4px solid var(--brand);
  border-radius: var(--radius-md);
  padding: 28px 26px;
  box-shadow: var(--shadow);
  transition: box-shadow 0.2s ease, transform 0.1s ease;
}
.letter:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-1px);
}
.letter h2 {
  font-size: var(--font-size-2xl);
  margin: 0 0 12px 0;
  font-weight: 700;
}
.letter p {
  max-width: 65ch;
  margin-bottom: 1.5em;
}
.letter p:last-child { margin-bottom: 0; }
.signature { margin-top: 1.2em; font-style: italic; color: var(--ink-muted); }

/* Email link appearance removed (using normal links) */

/* Blog styles */
.blog-intro { margin: 20px 0 10px; color: var(--ink-muted); }
.post-list { list-style: none; padding: 0; margin: 0; }
.post-item { padding: 10px 0; border-top: 1px solid #eee4d2; }
.post-item:first-child { border-top: 0; }
.post-title {
  margin: 0;
  font-size: var(--font-size-xl);
  font-weight: 600;
}
.post-meta {
  margin: 6px 0 0 0;
  color: var(--ink-muted);
  font-size: var(--font-size-sm);
  font-weight: 500;
}

.posts-container .letter { margin-bottom: 2rem; }
.posts-container .letter:last-child { margin-bottom: 0; }

/* Standalone posts (like individual post pages) */
article.post {
  background: var(--paper-solid);
  background-image: var(--paper);
  border: 1px solid #eadfcb;
  border-radius: var(--radius-md);
  padding: 24px 20px;
  box-shadow: var(--shadow);
}
article.post h1 {
  font-size: var(--font-size-3xl);
  margin-bottom: 8px;
  font-weight: 800;
}
article.post time {
  color: var(--ink-muted);
  font-size: var(--font-size-sm);
  font-weight: 500;
}

/* Q&A list */
.qa-list { list-style: none; padding: 0; margin: 0; }
.qa {
  padding: 16px 0;
  border-top: 1px solid #eee4d2;
  transition: background-color 0.2s ease;
}
.qa:first-child { border-top: 0; }
.qa:hover { background-color: rgba(42, 93, 122, 0.02); }
.qa .q, .qa .a {
  margin: 0 0 12px 0;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
}
.qa .q {
  background-color: rgba(42, 93, 122, 0.05);
  border-left: 3px solid var(--brand);
}
.qa .a {
  background-color: rgba(250, 250, 250, 0.5);
  margin-left: 16px;
}
.qa .q strong, .qa .a strong {
  font-family: Georgia, 'Times New Roman', Times, serif;
  font-weight: 600;
  color: var(--ink);
}

/* Hide legacy marketing sections for small-web mode */
.icon, .button-row, .features, .how-it-works, .who-is-this-for, .demo-section, .trust-section, .cta-section { display: none; }

/* Forms minimal */
form, input, button { font-family: inherit; font-size: 1rem; }

footer {
  background-color: transparent;
  color: var(--ink-muted);
  padding: 20px 0;
  margin-top: 30px;
  border-top: 1px solid #e8e2d6;
}

@media (max-width: 768px) {
  .container { padding: 0 16px; }
  body { font-size: var(--font-size-sm); }
  h1 { font-size: var(--font-size-2xl); }
  h2 { font-size: var(--font-size-xl); }
  .letter { padding: 20px 18px; }
  .nav-links { gap: 16px; }
  .qa .a { margin-left: 8px; }
}