@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700&family=Lora:wght@400;600&display=swap');

:root {
  --bg: #F5F4F0;
  --text: #2D2D2D;
  --headings: #2C4A3E;
  --muted: #4A4A4A;
  --accent: #2C4A3E;
  --border: #E0DCD8;
  --nav-bg: #EFEFEB;
  --overlay: rgba(245, 244, 240, 0.89);
}

* {
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  font-family: 'Lora', serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

h1, h2, h3 {
  font-family: 'Playfair Display', serif;
  color: var(--headings);
  line-height: 1.2;
  margin: 0 0 0.5em 0;
  font-weight: 700;
}

h1 {
  font-size: 4rem;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.1rem;
}

p {
  margin: 0 0 0.8em 0;
}

/* Header & Navigation */

.topbar {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem 2rem;
  background: var(--nav-bg);
  border-bottom: 1px solid var(--border);
}

.brand {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--headings);
  min-width: max-content;
}

.nav-divider {
  color: var(--border);
}

.topnav {
  display: flex;
  gap: 1.5rem;
  flex: 1;
}

.topnav a {
  color: var(--headings);
  font-size: 0.95rem;
  transition: color 0.2s;
}

.topnav a:hover,
.topnav a.active {
  color: var(--headings);
  font-weight: 600;
}

.social-links {
  display: flex;
  gap: 0.25rem;
  margin-left: auto;
}

.social-links a {
  color: var(--headings);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem;
  transition: color 0.2s, opacity 0.2s;
}

.social-links a svg {
  width: 20px;
  height: 20px;
  display: block;
  fill: currentColor;
}

.social-links a:hover {
  color: var(--accent);
  opacity: 0.75;
}

/* Main Content */

main {
  width: min(1200px, calc(100% - 4rem));
  margin: 0 auto;
}

.hero-section {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 4rem;
  align-items: start;
  padding: 6rem 0 3rem;
  border-bottom: 1px solid var(--border);
}

.hero-content h1 {
  margin-bottom: 0.8rem;
  letter-spacing: -0.02em;
}

.hero-meta {
  display: flex;
  gap: 2rem;
  margin-bottom: 2rem;
  font-size: 0.95rem;
}

.hero-meta p {
  margin: 0;
  color: var(--text);
}

.hero-copy {
  color: var(--text);
}

.hero-copy p {
  font-size: 1.05rem;
  line-height: 1.7;
}

.hero-photo {
  padding-top: 1rem;
}

.hero-headshot {
  width: 100%;
  height: 420px;
  border-radius: 0.5rem;
  object-fit: cover;
  object-position: top center;
}

/* About page — two column layout */

.about-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 4rem;
  align-items: start;
  padding: 2rem 0 3rem;
}

.about-bio h1 {
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.about-bio .page-lead {
  margin-bottom: 1.5rem;
}

.about-text p {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text);
}

.about-photo {
  position: sticky;
  top: 2rem;
}

.about-headshot {
  width: 100%;
  height: 480px;
  object-fit: cover;
  object-position: top center;
  border-radius: 0.5rem;
}

/* Article inline photo (about page) */

.article-photo {
  width: 100%;
  height: 380px;
  object-fit: cover;
  object-position: center top;
  border-radius: 0.5rem;
  margin: 2rem 0;
}

/* Full-width feature photo (home page bottom) */

.photo-feature {
  padding: 3rem 0;
  border-top: 1px solid var(--border);
}

.feature-photo {
  width: 100%;
  height: 460px;
  object-fit: cover;
  object-position: center top;
  border-radius: 0.5rem;
}

/* Sections */

.work-section,
.blog-section,
.faq-section {
  padding: 3rem 0;
  border-top: 1px solid var(--border);
}

.faq-list {
  display: grid;
  gap: 1.6rem;
  max-width: 72ch;
}

.faq-item h3 {
  margin: 0 0 0.4rem;
  font-size: 1.1rem;
  color: var(--headings);
}

.faq-item p {
  margin: 0;
  color: var(--text);
  line-height: 1.7;
}

.faq-item a {
  color: var(--accent);
  text-decoration: underline;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 2rem;
}

.section-header h2 {
  margin: 0;
}

.section-header a {
  color: var(--headings);
  font-size: 0.95rem;
  transition: color 0.2s;
}

.section-header a:hover {
  color: var(--accent);
  font-weight: 600;
}

.work-grid,
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.work-card,
.blog-card {
  padding: 0;
}

.blog-card-link {
  display: block;
  transition: opacity 0.2s;
}

.blog-card-link:hover {
  opacity: 0.7;
}

.blog-card-link:hover h3 {
  color: var(--accent);
}

.work-card h3,
.blog-card h3 {
  margin-bottom: 0.3rem;
  font-size: 1.1rem;
}

.work-card .meta,
.blog-card .meta {
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.8rem;
}

.work-card p,
.blog-card p {
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Newsletter Section */

.newsletter-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  padding: 3rem 0;
  border-top: 1px solid var(--border);
}

.newsletter-image {
  width: 100%;
  height: 450px;
  background: #E8E4DE;
  border: 2px solid #D4CFC8;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
  font-family: 'Lora', serif;
  font-style: italic;
  font-size: 1.1rem;
}

.newsletter-content h2 {
  margin-bottom: 1rem;
}

.newsletter-form {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.newsletter-form input {
  flex: 1;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.75rem 1rem;
  background: white;
  font: inherit;
  font-size: 0.95rem;
  color: var(--text);
}

.newsletter-form input::placeholder {
  color: #BBB;
}

.cta-button {
  background: var(--headings);
  color: white;
  border: none;
  border-radius: 999px;
  padding: 0.75rem 1.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.cta-button:hover {
  background: #1F3A32;
}

.newsletter-note {
  font-size: 0.9rem;
  color: var(--text);
  margin: 0;
}

.cta-floating {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 100;
}

/* Footer */

.site-footer {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  padding: 2rem 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.9rem;
  color: var(--text);
  margin-top: 3rem;
  text-align: center;
}

.site-footer p {
  margin: 0;
}

.footer-nav {
  display: flex;
  gap: 1.5rem;
}

.footer-nav a {
  color: var(--headings);
  transition: color 0.2s;
}

.footer-nav a:hover {
  color: var(--accent);
  font-weight: 600;
}

/* Page Layouts */

.page-intro {
  padding: 4rem 0 2rem;
}

.page-intro h1 {
  margin-bottom: 0.5rem;
}

.page-lead {
  color: var(--text);
  font-size: 1.05rem;
  max-width: 72ch;
}

.article-content {
  padding: 2rem 0;
  max-width: 72ch;
}

.article-content p {
  color: var(--text);
  line-height: 1.8;
}

.post-byline {
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.post-back {
  display: inline-block;
  margin-top: 2rem;
  color: var(--accent);
  font-weight: 600;
  transition: color 0.2s;
}

.post-back:hover {
  color: var(--text);
}

.contact-card {
  padding: 2rem 0;
  max-width: 72ch;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
}

.contact-card div p {
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.contact-card a {
  color: var(--accent);
  transition: color 0.2s;
}

.contact-card a:hover {
  color: var(--text);
}

/* Work page — detailed entries */

.work-hero {
  padding: 5rem 0 3rem;
  border-bottom: 1px solid var(--border);
  max-width: 72ch;
}

.work-hero h1 {
  font-size: 3rem;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.work-subline {
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--headings);
  font-family: 'Lora', serif;
  font-weight: 600;
  margin-bottom: 2rem;
}

.work-intro {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text);
  margin: 0;
}

.work-entry {
  padding: 3.5rem 0;
  border-bottom: 1px solid var(--border);
  max-width: 72ch;
}

.work-label {
  display: inline-block;
  font-size: 0.75rem;
  font-family: 'Lora', serif;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--headings);
  margin-bottom: 0.75rem;
}

.work-entry-title {
  font-size: 1.7rem;
  margin-bottom: 1.5rem;
  letter-spacing: -0.01em;
}

.work-entry-body p {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text);
  margin-bottom: 1em;
}

.work-entry-body p:last-child {
  margin-bottom: 0;
}

.work-details {
  margin: 2rem 0 0;
  padding: 1.5rem 0 0;
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem 3rem;
}

.work-detail-row {
  display: flex;
  gap: 0.75rem;
  align-items: baseline;
}

.work-details dt {
  font-size: 0.78rem;
  font-family: 'Lora', serif;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--headings);
  white-space: nowrap;
  flex-shrink: 0;
  min-width: 7rem;
}

.work-details dd {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.5;
}

.work-closing {
  padding: 3.5rem 0 1rem;
  font-size: 0.9rem;
  font-style: italic;
  color: var(--muted);
  max-width: 60ch;
  line-height: 1.7;
  margin: 0;
}

/* Responsive */

@media (max-width: 1024px) {
  main {
    width: calc(100% - 2rem);
  }

  .hero-section,
  .about-layout {
    grid-template-columns: 1fr 260px;
    gap: 2.5rem;
  }

  .work-grid,
  .blog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .newsletter-section {
    grid-template-columns: 1fr;
  }

  .contact-card {
    grid-template-columns: 1fr;
  }

  .work-details {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .topbar {
    flex-wrap: wrap;
    padding: 1rem 1.5rem;
  }

  .topnav {
    order: 3;
    flex-basis: 100%;
    flex: none;
    gap: 0.5rem 1.25rem;
    flex-wrap: wrap;
  }

  .topnav a {
    padding: 0.35rem 0;
  }

  h1 {
    font-size: 2.5rem;
  }

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

  .work-entry-title {
    font-size: 1.4rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  .hero-section,
  .about-layout {
    grid-template-columns: 1fr;
    padding: 3rem 0 2rem;
    gap: 2rem;
  }

  .hero-photo {
    padding-top: 0;
  }

  .hero-headshot,
  .about-headshot {
    height: 320px;
  }

  .about-photo {
    position: static;
  }

  .hero-meta {
    flex-direction: column;
    gap: 0.5rem;
  }

  .work-grid,
  .blog-grid {
    grid-template-columns: 1fr;
  }

  .section-header {
    flex-wrap: wrap;
  }

  .newsletter-form {
    flex-direction: column;
  }

  .cta-floating {
    bottom: 1rem;
    right: 1rem;
  }

  .site-footer {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}
