:root {
  --terracotta: #C77B5C;
  --terracotta-dark: #A8633F;
  --cream: #F8F3E9;
  --brown: #1A0F08;
  --green: #2D5A3F;
  --sand: #E5DDCB;
  --imessage-blue: #007AFF;
  --imessage-gray: #E9E9EB;
}

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

body {
  background: var(--cream);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--brown);
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

.serif { font-family: 'DM Serif Display', Georgia, serif; font-weight: 400; }

/* Layout */
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 720px; margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; }

/* Nav */
nav.site-nav {
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.wordmark {
  font-family: 'DM Serif Display', serif;
  font-size: 30px;
  font-weight: 400;
  color: var(--brown);
  text-decoration: none;
}
nav.site-nav .nav-links a {
  color: var(--brown);
  text-decoration: none;
  margin-left: 24px;
  font-size: 15px;
  opacity: 0.65;
  transition: opacity 0.2s;
}
nav.site-nav .nav-links a:hover { opacity: 1; }
nav.site-nav .nav-links a.active { opacity: 1; }

/* Headings */
h1.page-title {
  font-family: 'DM Serif Display', serif;
  font-size: 72px;
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-weight: 400;
  margin-bottom: 24px;
}
h2.section-title {
  font-family: 'DM Serif Display', serif;
  font-size: 56px;
  letter-spacing: -0.02em;
  line-height: 1.1;
  font-weight: 400;
  margin-bottom: 16px;
}
h2.section-title.center { text-align: center; }
.subtitle {
  font-size: 22px;
  opacity: 0.78;
  line-height: 1.5;
  margin-bottom: 40px;
  max-width: 620px;
}

/* Buttons */
.cta {
  background: var(--terracotta);
  color: var(--cream);
  border: none;
  padding: 16px 36px;
  border-radius: 100px;
  font-size: 17px;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  text-decoration: none;
  display: inline-block;
  transition: all 0.2s;
  box-shadow: 0 6px 24px rgba(199, 123, 92, 0.25);
}
.cta:hover {
  background: var(--terracotta-dark);
  transform: translateY(-2px);
}
.cta-secondary {
  background: transparent;
  color: var(--brown);
  border: 1.5px solid var(--brown);
  padding: 14px 32px;
  border-radius: 100px;
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  display: inline-block;
  transition: all 0.2s;
}
.cta-secondary:hover {
  background: var(--brown);
  color: var(--cream);
}

/* Cards & lists */
.post-list {
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin-top: 60px;
}
.post-card {
  background: white;
  border-radius: 24px;
  padding: 36px 40px;
  text-decoration: none;
  color: var(--brown);
  display: block;
  transition: transform 0.2s, box-shadow 0.2s;
}
.post-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(26, 15, 8, 0.08);
}
.post-card .meta {
  font-size: 13px;
  opacity: 0.6;
  margin-bottom: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.post-card h3 {
  font-family: 'DM Serif Display', serif;
  font-size: 32px;
  font-weight: 400;
  margin-bottom: 12px;
  line-height: 1.15;
}
.post-card p {
  font-size: 16px;
  opacity: 0.75;
  line-height: 1.5;
}

/* Article */
article.long-form {
  padding: 60px 0 100px;
}
article.long-form .meta {
  font-size: 13px;
  opacity: 0.6;
  margin-bottom: 16px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
article.long-form h1 {
  font-family: 'DM Serif Display', serif;
  font-size: 56px;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 32px;
  font-weight: 400;
}
article.long-form .lede {
  font-size: 22px;
  opacity: 0.85;
  line-height: 1.5;
  margin-bottom: 48px;
}
article.long-form h2 {
  font-family: 'DM Serif Display', serif;
  font-size: 36px;
  font-weight: 400;
  margin: 48px 0 16px;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
article.long-form h3 {
  font-family: 'DM Serif Display', serif;
  font-size: 24px;
  font-weight: 400;
  margin: 32px 0 12px;
  line-height: 1.3;
}
article.long-form p {
  font-size: 18px;
  line-height: 1.7;
  margin-bottom: 20px;
}
article.long-form ul, article.long-form ol {
  margin: 16px 0 24px 24px;
}
article.long-form li {
  font-size: 18px;
  line-height: 1.7;
  margin-bottom: 8px;
}
article.long-form blockquote {
  border-left: 4px solid var(--terracotta);
  padding: 8px 0 8px 24px;
  margin: 32px 0;
  font-family: 'DM Serif Display', serif;
  font-size: 24px;
  font-style: italic;
  line-height: 1.4;
  color: var(--brown);
  opacity: 0.85;
}
article.long-form a {
  color: var(--terracotta);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
article.long-form a:hover { color: var(--terracotta-dark); }
article.long-form code {
  background: var(--sand);
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 16px;
  font-family: 'SF Mono', 'Courier New', monospace;
}
article.long-form .imessage-snippet {
  background: var(--cream);
  border: 1px solid var(--sand);
  border-radius: 16px;
  padding: 20px 24px;
  margin: 24px 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
article.long-form .imessage-snippet .message {
  max-width: 78%;
  padding: 9px 14px;
  border-radius: 18px;
  font-size: 15px;
  line-height: 1.35;
}
article.long-form .imessage-snippet .message.sent {
  background: var(--imessage-blue);
  color: white;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}
article.long-form .imessage-snippet .message.received {
  background: var(--imessage-gray);
  color: var(--brown);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}

/* Article footer / next read */
.article-footer {
  border-top: 1px solid var(--sand);
  padding-top: 40px;
  margin-top: 60px;
}
.article-footer .label {
  font-size: 13px;
  opacity: 0.6;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

/* Hero (page-level) */
.page-hero {
  text-align: center;
  padding: 80px 0 60px;
}
.page-hero h1 {
  font-family: 'DM Serif Display', serif;
  font-size: 80px;
  line-height: 1;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
  font-weight: 400;
}
.page-hero p {
  font-size: 22px;
  max-width: 620px;
  margin: 0 auto;
  opacity: 0.78;
  line-height: 1.5;
}

/* Use case page */
.use-case-hero {
  padding: 60px 0 40px;
}
.use-case-hero .label {
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 16px;
  font-weight: 500;
}
.scenes {
  display: flex;
  flex-direction: column;
  gap: 60px;
  margin: 80px 0;
}
.scene {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.scene.flip { direction: rtl; }
.scene.flip > * { direction: ltr; }
.scene-text h3 {
  font-family: 'DM Serif Display', serif;
  font-size: 36px;
  margin-bottom: 16px;
  font-weight: 400;
  line-height: 1.2;
}
.scene-text p {
  font-size: 17px;
  opacity: 0.78;
  line-height: 1.6;
}
.scene-imessage {
  background: white;
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 12px 40px rgba(26, 15, 8, 0.08);
}
.scene-imessage .imessage-thread {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.scene-imessage .message {
  max-width: 86%;
  padding: 9px 14px;
  border-radius: 18px;
  font-size: 14px;
  line-height: 1.35;
}
.scene-imessage .message.sent {
  background: var(--imessage-blue);
  color: white;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}
.scene-imessage .message.received {
  background: var(--imessage-gray);
  color: var(--brown);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}

/* CTA section */
.cta-block {
  background: var(--terracotta);
  color: var(--cream);
  text-align: center;
  padding: 80px 0;
}
.cta-block h2 {
  font-family: 'DM Serif Display', serif;
  font-size: 56px;
  margin-bottom: 24px;
  font-weight: 400;
}
.cta-block p {
  max-width: 480px;
  margin: 0 auto 36px;
  font-size: 18px;
  opacity: 0.9;
}
.cta-block .cta {
  background: var(--cream);
  color: var(--brown);
}
.cta-block .cta:hover { background: white; }

/* Footer */
footer.site-footer {
  background: var(--brown);
  color: var(--cream);
  padding: 60px 0;
  text-align: center;
}
footer.site-footer .wordmark {
  color: var(--cream);
  display: inline-block;
  margin-bottom: 24px;
  font-size: 32px;
}
footer.site-footer p.tagline-foot {
  font-family: 'DM Serif Display', serif;
  font-size: 22px;
  margin-bottom: 32px;
  opacity: 0.85;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.4;
}
footer.site-footer .links a {
  color: var(--cream);
  text-decoration: none;
  margin: 0 18px;
  font-size: 14px;
  opacity: 0.55;
  transition: opacity 0.2s;
}
footer.site-footer .links a:hover { opacity: 1; }

/* Mobile */
@media (max-width: 768px) {
  h1.page-title { font-size: 44px; }
  h2.section-title { font-size: 36px; }
  article.long-form h1 { font-size: 36px; }
  article.long-form h2 { font-size: 28px; }
  article.long-form .lede { font-size: 18px; }
  article.long-form p, article.long-form li { font-size: 17px; }
  .page-hero h1 { font-size: 48px; }
  .page-hero p { font-size: 18px; }
  .post-card { padding: 28px 24px; }
  .post-card h3 { font-size: 26px; }
  .scene { grid-template-columns: 1fr; gap: 32px; }
  .scene.flip { direction: ltr; }
  .scene-text h3 { font-size: 28px; }
  .cta-block h2 { font-size: 36px; }
  nav.site-nav .nav-links a { margin-left: 12px; font-size: 13px; }
  .wordmark { font-size: 26px; }
}

/* Reusable Ezra avatar SVG class */
.ezra-avatar {
  width: 64px;
  height: 70px;
  display: block;
}
