:root {
  --burgundy: #6E2A3A;
  --terracotta: #BC6A4A;
  --white: #FFFFFF;
  --ink: #1C1C1A;
  --slate: #6E6D67;
  --hairline: #E4E1D8;
  --offwhite: #FAF8F3;
}

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

body {
  font-family: 'Source Sans 3', sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
}

h1, h2, h3 {
  font-family: 'Source Serif 4', serif;
  font-weight: 700;
  color: var(--burgundy);
  line-height: 1.2;
}

.wrap {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 32px;
}

/* Header */
.site-header {
  padding: 24px 0;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.wordmark {
  display: flex;
  align-items: center;
}
.logo-img {
  height: 28px;
  width: auto;
  display: block;
}
nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: 15px;
  margin-left: 28px;
}
nav a:hover { color: var(--burgundy); }

/* Hero */
.hero {
  padding: 90px 0 70px;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 13px;
  font-weight: 600;
  color: var(--terracotta);
  margin-bottom: 18px;
}
.hero h1 {
  font-size: 42px;
  max-width: 760px;
  margin-bottom: 24px;
}
.lede {
  font-size: 18px;
  color: var(--slate);
  max-width: 620px;
  margin-bottom: 32px;
}
.lede.small { font-size: 16px; margin-bottom: 24px; }

.btn {
  display: inline-block;
  background: var(--burgundy);
  color: var(--white);
  text-decoration: none;
  padding: 13px 26px;
  font-size: 15px;
  font-weight: 600;
}
.btn:hover { background: #5a2130; }
.btn-outline {
  background: none;
  color: var(--burgundy);
  border: 1px solid var(--burgundy);
}
.btn-outline:hover { background: var(--offwhite); }

/* Section label */
.section-label {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 13px;
  font-weight: 600;
  color: var(--terracotta);
  margin-bottom: 12px;
}

/* Thesis */
.thesis {
  padding: 70px 0;
}
.thesis h2 { font-size: 30px; margin-bottom: 28px; max-width: 700px; }
.thesis-p {
  font-size: 17px;
  color: var(--ink);
  max-width: 680px;
  margin-bottom: 20px;
}
.thesis-footnote {
  margin-top: 28px;
  font-size: 14px;
  color: var(--slate);
  font-style: italic;
}

/* Portfolio */
.portfolio {
  padding: 70px 0;
}
.portfolio h2 { font-size: 30px; margin-bottom: 36px; }
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.portfolio-logo {
  background: var(--white);
  border: 1px solid var(--hairline);
  height: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  padding: 16px 20px;
  transition: border-color 0.15s;
}
.portfolio-logo:hover {
  border-color: var(--terracotta);
}
.portfolio-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* Blog teaser */
.blog-teaser {
  padding: 70px 0;
}
.blog-teaser h2 { font-size: 30px; margin-bottom: 12px; }

/* Contact */
.contact {
  padding: 70px 0 90px;
  text-align: left;
}
.contact h2 { font-size: 30px; margin-bottom: 12px; }
.email-link {
  font-family: 'Source Serif 4', serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--burgundy);
  text-decoration: none;
  border-bottom: 2px solid var(--terracotta);
  padding-bottom: 2px;
}
.email-link:hover { color: var(--terracotta); }

/* Footer */
.site-footer {
  border-top: 1px solid var(--hairline);
  padding: 28px 0;
}
.site-footer p {
  font-size: 13px;
  color: var(--slate);
}

/* Blog pages */
.blog-header { padding: 60px 0 40px; border-bottom: 1px solid var(--hairline); }
.blog-header h1 { font-size: 34px; }
.post-list { padding: 50px 0; }
.post-item {
  display: block;
  padding: 24px 0;
  border-bottom: 1px solid var(--hairline);
  text-decoration: none;
  color: var(--ink);
}
.post-item:hover .post-title { color: var(--terracotta); }
.post-date {
  font-size: 13px;
  color: var(--slate);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.post-title {
  font-family: 'Source Serif 4', serif;
  font-weight: 700;
  font-size: 22px;
  color: var(--burgundy);
  margin: 6px 0 8px;
}
.post-excerpt {
  font-size: 15px;
  color: var(--slate);
  max-width: 640px;
}
.post-body {
  padding: 50px 0 90px;
  max-width: 700px;
}
.post-body h1 { font-size: 32px; margin-bottom: 8px; }
.post-body .post-date { margin-bottom: 32px; display: block; }
.post-body p {
  font-size: 17px;
  margin-bottom: 20px;
  color: var(--ink);
}
.post-body h2 {
  font-size: 22px;
  margin: 32px 0 14px;
}
.back-link {
  display: inline-block;
  margin-bottom: 24px;
  font-size: 14px;
  color: var(--terracotta);
  text-decoration: none;
}

@media (max-width: 720px) {
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
  .hero h1 { font-size: 32px; }
  nav a { margin-left: 16px; font-size: 14px; }
}
