:root {
  --navy: #1b2a4a;
  --navy-light: #2c3e6b;
  --grey-light: #f4f5f7;
  --grey-mid: #e0e2e7;
  --grey-text: #6b7280;
  --white: #ffffff;
  --text: #1f2937;
  --sage: #4e7a52;
  --teal: #207a8a;
  --terra-dark: #7a3020;
  --gold: #c9a227;
  --font: "EB Garamond", "Garamond", "Georgia", serif;
  --max-width: 1100px;
  --narrow: 780px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.narrow {
  max-width: var(--narrow);
}

a {
  color: var(--navy);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--navy-light);
}

h1, h2, h3 {
  font-weight: 600;
  line-height: 1.25;
  color: var(--navy);
}

h1 {
  font-size: 2.8rem;
}

h2 {
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
}

h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

p {
  margin-bottom: 1rem;
}

/* ---------- HEADER ---------- */

.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--grey-mid);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: 0.01em;
}

.logo:hover {
  color: var(--navy-light);
}

.main-nav ul {
  display: flex;
  list-style: none;
  gap: 32px;
}

.main-nav a {
  font-size: 1rem;
  color: var(--grey-text);
  position: relative;
  padding-bottom: 2px;
}

.main-nav a:hover {
  color: var(--navy);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.hamburger {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  position: relative;
  transition: background 0.2s;
}

.hamburger::before,
.hamburger::after {
  content: "";
  position: absolute;
  left: 0;
  width: 24px;
  height: 2px;
  background: var(--navy);
  transition: transform 0.2s;
}

.hamburger::before { top: -7px; }
.hamburger::after { top: 7px; }

/* ---------- HERO ---------- */

.hero {
  background: var(--navy);
  color: var(--white);
  padding: 72px 0 60px;
  text-align: center;
}

.hero-headshot {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 24px;
  border: 3px solid rgba(255, 255, 255, 0.3);
}

.hero h1 {
  color: var(--white);
  font-size: 3.2rem;
  margin-bottom: 0.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.hero-sub {
  font-size: 1.2rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.85);
  max-width: 560px;
  margin: 0 auto;
}

/* ---------- SERVICES CARDS ---------- */

.services-section {
  padding: 56px 0 24px;
  background: var(--grey-light);
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--grey-mid);
  border-radius: 8px;
  padding: 36px 32px;
  transition: box-shadow 0.2s ease;
}

.service-card:hover {
  box-shadow: 0 4px 20px rgba(27, 42, 74, 0.08);
}

.service-card h2 {
  margin-bottom: 0.75rem;
}

.service-card p {
  color: var(--grey-text);
  font-size: 1.05rem;
}

.arrow-link {
  display: inline-block;
  margin-top: 0.5rem;
  font-weight: 500;
  font-size: 1.05rem;
  color: var(--navy);
}

.arrow-link:hover {
  color: var(--navy-light);
}

/* ---------- BIO STRIP ---------- */

.bio-strip {
  padding: 6px 0 24px;
  background: var(--white);
}

.bio-strip .service-card {
  max-width: 1050px;
  margin: 0 auto;
}

.bio-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  max-width: var(--narrow);
}

.bio-text p {
  font-size: 1.1rem;
  color: var(--text);
  margin: 0;
}

/* ---------- PAGE SECTION HEADER ---------- */

.page-section-header {
  background: var(--navy);
  color: var(--white);
  padding: 48px 0 40px;
  text-align: center;
}

.page-section-header h1 {
  color: var(--white);
  font-size: 2.6rem;
}

/* ---------- PAGE HERO (standalone pages) ---------- */

.page-hero {
  background: var(--navy);
  color: var(--white);
  padding: 48px 0 40px;
  text-align: center;
}

.page-hero h1 {
  color: var(--white);
  font-size: 2.6rem;
}

/* ---------- PAGE INTRO ---------- */

.page-intro {
  padding: 40px 0 24px;
}

.page-intro p {
  font-size: 1.1rem;
  color: var(--text);
}

/* ---------- CONTENT SECTIONS ---------- */

.content-section {
  padding: 36px 0;
}

.section-label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--grey-text);
  margin-bottom: 8px;
  font-weight: 500;
}

.content-section p {
  font-size: 1.05rem;
  color: var(--text);
}

.work-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem 0;
}

.work-list li {
  padding: 6px 0 6px 20px;
  position: relative;
  font-size: 1.05rem;
}

.work-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--navy);
  opacity: 0.4;
}

.cta-link {
  display: inline-block;
  font-weight: 500;
  font-size: 1.05rem;
  color: var(--navy);
  margin-top: 0.25rem;
}

.cta-link:hover {
  color: var(--navy-light);
}

.section-divider {
  padding: 0;
}

.section-divider hr {
  border: none;
  border-top: 1px solid var(--grey-mid);
  max-width: var(--narrow);
  margin: 0 auto;
}

/* ---------- CTA BUTTON ---------- */

.cta-button {
  display: inline-block;
  background: var(--navy);
  color: var(--white);
  padding: 14px 32px;
  border-radius: 6px;
  font-family: var(--font);
  font-size: 1.05rem;
  font-weight: 500;
  border: none;
  cursor: pointer;
  text-align: center;
  transition: background 0.2s ease;
  margin-top: 0.5rem;
}

.cta-button:hover {
  background: var(--navy-light);
  color: var(--white);
}

/* ---------- STORYTELLING SECTION ---------- */

.storytelling-section {
  padding: 40px 0 48px;
}

.storytelling-card {
  background: var(--grey-light);
  border-left: 4px solid var(--navy);
  border-radius: 0 8px 8px 0;
  padding: 40px 36px;
}

.storytelling-card h2 {
  margin-bottom: 1rem;
}

.built-for {
  font-style: italic;
  color: var(--grey-text);
}

/* ---------- BLOG LISTING ---------- */

.blog-listing {
  padding: 48px 0 56px;
}

.post-card {
  display: flex;
  flex-direction: row;
  background: var(--white);
  border: 1px solid var(--grey-mid);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 24px;
  transition: box-shadow 0.2s ease;
  text-decoration: none;
  color: inherit;
}

.post-card:hover {
  box-shadow: 0 4px 20px rgba(27, 42, 74, 0.08);
  color: inherit;
}

.post-card-thumb {
  min-width: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.post-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-card-thumb span {
  color: var(--white);
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  opacity: 0.85;
}

.post-card-body {
  padding: 36px 32px;
  flex: 1;
  min-width: 0;
}

.post-card h2 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.post-card-subtitle {
  color: var(--grey-text);
  font-size: 1.05rem;
  margin-bottom: 0.75rem;
}

.post-card-meta {
  display: flex;
  gap: 24px;
  font-size: 0.9rem;
  color: var(--grey-text);
  margin-bottom: 0.75rem;
}

.blog-more {
  text-align: center;
  margin-top: 16px;
}

/* ---------- BLOG POST CONTENT ---------- */

.post-content {
  padding: 48px 0 64px;
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.9rem;
  color: var(--grey-text);
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--grey-mid);
}

.post-body h2 {
  font-size: 1.6rem;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.post-body h3 {
  font-size: 1.2rem;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.post-body p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text);
}

.post-body strong {
  color: var(--navy);
}

.post-body blockquote {
  border-left: 3px solid var(--navy);
  padding: 12px 20px;
  margin: 1.5rem 0;
  background: var(--grey-light);
  border-radius: 0 6px 6px 0;
}

.post-body blockquote p {
  margin: 0;
  font-size: 1rem;
}

.post-body code {
  font-family: "SFMono-Regular", "Consolas", "Liberation Mono", "Menlo", monospace;
  font-size: 0.88em;
  background: var(--grey-light);
  padding: 2px 6px;
  border-radius: 4px;
}

.post-body pre {
  background: var(--grey-light);
  color: var(--text);
  padding: 20px 24px;
  border-radius: 8px;
  overflow-x: auto;
  margin: 1.5rem 0;
  line-height: 1.5;
  border: 1px solid var(--grey-mid);
}

.post-body pre code {
  background: none;
  padding: 0;
  color: inherit;
  font-size: 0.85rem;
}

.post-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.95rem;
  overflow-x: auto;
  display: block;
}

.post-body thead {
  background: var(--grey-light);
}

.post-body th,
.post-body td {
  padding: 10px 14px;
  border: 1px solid var(--grey-mid);
  text-align: left;
}

.post-body th {
  font-weight: 600;
  color: var(--navy);
}

.post-body ul,
.post-body ol {
  margin: 1rem 0 1.5rem 1.5rem;
}

.post-body li {
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
}

.post-body hr {
  border: none;
  border-top: 1px solid var(--grey-mid);
  margin: 2rem 0;
}

.post-body em {
  color: var(--grey-text);
}

.post-back {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--grey-mid);
}

/* ---------- CONTACT ---------- */

.contact-section {
  padding: 16px 0 56px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
}

.contact-col h2 {
  margin-bottom: 0.5rem;
}

.contact-col p {
  color: var(--grey-text);
}

.calendly-placeholder {
  margin-top: 1rem;
}

.contact-note {
  font-size: 0.9rem;
  color: var(--grey-text);
  margin-top: 0.75rem;
  font-style: italic;
}

/* ---------- FORM ---------- */

.contact-form {
  margin-top: 0.25rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.95rem;
  font-weight: 500;
  margin-bottom: 6px;
  color: var(--navy);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--grey-mid);
  border-radius: 6px;
  font-family: var(--font);
  font-size: 1rem;
  color: var(--text);
  background: var(--white);
  transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--navy);
}

.form-group textarea {
  resize: vertical;
}

/* ---------- FLASH MESSAGES ---------- */

.flash-message {
  padding: 14px 20px;
  border-radius: 6px;
  margin: 24px 0 0;
  font-size: 1rem;
}

.flash-success {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.flash-error {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

/* ---------- FOOTER ---------- */

.site-footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.7);
  padding: 32px 0;
  margin-top: 0;
}

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

.footer-inner p {
  margin: 0;
  font-size: 0.9rem;
}

.footer-right a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
}

.footer-right a:hover {
  color: var(--white);
}

/* ---------- RESPONSIVE ---------- */

@media (max-width: 768px) {
  body {
    font-size: 16px;
  }

  .nav-toggle {
    display: block;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--grey-mid);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  }

  .main-nav.open {
    display: block;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 12px 0;
  }

  .main-nav li a {
    display: block;
    padding: 14px 24px;
    font-size: 1.05rem;
  }

  .hero {
    padding: 52px 0 44px;
  }

  .hero-headshot {
    width: 100px;
    height: 100px;
    margin-bottom: 20px;
  }

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

  .hero-sub {
    font-size: 1.05rem;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.45rem;
  }

  .services-section {
    padding: 40px 0 16px;
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .service-card {
    padding: 28px 24px;
  }

  .bio-strip {
    padding: 8px 24px 12px;
  }

  .bio-inner {
    text-align: center;
  }

  .page-section-header {
    padding: 36px 0 28px;
  }

  .page-section-header h1 {
    font-size: 2rem;
  }

  .page-hero {
    padding: 36px 0 28px;
  }

  .page-hero h1 {
    font-size: 2rem;
  }

  .page-intro {
    padding: 32px 0 16px;
  }

  .content-section {
    padding: 28px 0;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .storytelling-card {
    padding: 28px 24px;
  }

  .blog-listing {
    padding: 36px 0 40px;
  }

  .post-card {
    flex-direction: column;
  }

  .post-card-thumb {
    min-width: unset;
    height: 36px;
    width: 100%;
  }

  .post-card-body {
    padding: 28px 24px;
  }

  .post-card-meta {
    flex-direction: column;
    gap: 4px;
  }

  .post-meta {
    flex-direction: column;
    gap: 4px;
  }

  .post-body pre {
    padding: 16px 18px;
  }

  .post-body table {
    font-size: 0.85rem;
  }

  .contact-section {
    padding: 12px 0 48px;
  }

  .footer-inner {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}

.contact-feedback {
  margin-top: 16px;
  padding: 14px 18px;
  border-radius: 6px;
  font-size: 1rem;
  display: none;
}

.contact-feedback.success {
  display: block;
  background: #e8f5e9;
  color: #2e7d32;
  border: 1px solid #a5d6a7;
}

.contact-feedback.error {
  display: block;
  background: #fbe9e7;
  color: #c62828;
  border: 1px solid #ef9a9a;
}
