:root {
  --ink: #1a1a1a;
  --muted: #5a5a5a;
  --bg: #fdfcf9;
  --accent: #2f5d8a;
  --accent-warm: #5b86b3;
  --border: #e6e2d8;
  --max-width: 780px;
  --font-display: "Fraunces", Georgia, serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
}

header.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2.25rem 1.5rem 1.25rem;
}

header.site-header .wordmark {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.25rem;
  text-decoration: none;
  color: var(--ink);
  letter-spacing: 0.03em;
}

nav.tabs {
  display: flex;
  gap: 0.4rem;
}

nav.tabs a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.4rem 0.95rem;
  border-radius: 999px;
  transition: color 0.2s ease, background-color 0.2s ease;
}

nav.tabs a.active {
  color: #fff;
  background: var(--accent-warm);
}

nav.tabs a:hover:not(.active) {
  color: var(--ink);
  background: rgba(47, 93, 138, 0.1);
}

main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1rem 1.5rem 5rem;
}

.hero {
  display: flex;
  gap: 2.25rem;
  align-items: center;
  margin: 2.5rem 0 3.5rem;
}

.hero .portrait-wrap {
  position: relative;
  flex-shrink: 0;
}

.hero .portrait-wrap::before {
  content: "";
  position: absolute;
  top: -14px;
  left: -16px;
  width: 168px;
  height: 168px;
  border-radius: 42% 58% 65% 35% / 45% 40% 60% 55%;
  background: linear-gradient(135deg, var(--accent-warm), var(--accent));
  opacity: 0.2;
  z-index: 0;
}

.hero img.portrait {
  position: relative;
  z-index: 1;
  width: 168px;
  height: 168px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--bg);
  box-shadow: 0 0 0 1px var(--border), 0 8px 24px rgba(26, 26, 26, 0.08);
}

.hero h1 {
  font-family: var(--font-display);
  margin: 0 0 0.5rem;
  font-size: 2.4rem;
  font-weight: 600;
}

.hero p.role {
  display: inline-block;
  margin: 0 0 1rem;
  padding: 0.3rem 0.9rem;
  border-radius: 999px;
  background: rgba(47, 93, 138, 0.12);
  color: var(--accent);
  font-style: normal;
  font-weight: 600;
  font-size: 0.88rem;
  letter-spacing: 0.01em;
}

.links-row a {
  margin-right: 1.25rem;
  color: var(--accent);
  text-decoration: none;
  font-size: 0.9rem;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.links-row a:hover { border-color: var(--accent); }

section.journey {
  margin-bottom: 3rem;
}

section.journey p {
  font-size: 1.08rem;
  color: #2c2c2c;
}

section.journey p.lede {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.6rem;
  line-height: 1.4;
  color: var(--ink);
  margin: 0 0 2rem;
}

section.journey p.lede em {
  font-style: italic;
  color: var(--accent-warm);
}

.principles {
  margin: 0 0 3rem;
}

.principles h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.3rem;
  margin-bottom: 1.25rem;
}

.principles-subhead {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--muted);
  margin: 2rem 0 1.25rem;
}

.principles-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.principle {
  padding: 1.1rem 1.25rem;
  border-left: 3px solid var(--accent);
  background: rgba(47, 93, 138, 0.045);
  border-radius: 0 10px 10px 0;
}

.principle h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  margin: 0 0 0.4rem;
  color: var(--ink);
}

.principle p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.55;
}

.tab-cta {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.tab-card {
  flex: 1;
  min-width: 220px;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  text-decoration: none;
  color: var(--ink);
  transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.tab-card:hover {
  box-shadow: 0 10px 28px rgba(26, 26, 26, 0.08);
  border-color: var(--accent-warm);
  transform: translateY(-2px);
}

.tab-card h3 { margin: 0 0 0.4rem; font-family: var(--font-display); font-weight: 600; }
.tab-card p { margin: 0; color: var(--muted); font-size: 0.92rem; }

.page-intro {
  margin: 2.5rem 0 2.5rem;
}

.page-intro h1 { font-family: var(--font-display); font-weight: 600; font-size: 2rem; margin-bottom: 0.6rem; }
.page-intro p { color: var(--muted); font-size: 1.05rem; }

.embed-wrap {
  margin: 2rem 0;
}

.art-grid-group {
  margin-bottom: 2.5rem;
}

.art-grid-group h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.2rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.4rem;
  margin-bottom: 1rem;
}

.section-subhead {
  margin: -0.5rem 0 1rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.art-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}

.art-grid figure {
  margin: 0;
  overflow: hidden;
  border-radius: 8px;
}

.art-grid img {
  width: 100%;
  border-radius: 8px;
  border: 1px solid var(--border);
  display: block;
  transition: transform 0.3s ease;
}

.art-grid figure:hover img {
  transform: scale(1.03);
}

.art-grid figcaption {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.medium-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1rem;
  transition: box-shadow 0.2s ease;
}

.medium-card:hover {
  box-shadow: 0 8px 24px rgba(26, 26, 26, 0.06);
}

.medium-thumb {
  width: 100%;
  max-height: 220px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.medium-card h3 { margin: 0 0 0.4rem; font-family: var(--font-display); font-weight: 600; }
.medium-card h3 a { color: var(--ink); text-decoration: none; }
.medium-card h3 a:hover { text-decoration: underline; }
.medium-card p { margin: 0 0 0.6rem; color: var(--muted); }
.medium-card a.read-more { font-size: 0.9rem; color: var(--accent-warm); text-decoration: none; }

.substack-post-embed {
  margin-bottom: 1rem;
}

.soundcloud-block {
  margin: 2.5rem 0;
}

.soundcloud-block iframe {
  display: block;
  margin-bottom: 1rem;
}

footer.site-footer {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem 1.5rem 3rem;
  color: var(--muted);
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  border-top: 1px solid var(--border);
}

@media (max-width: 700px) {
  header.site-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  nav.tabs {
    flex-wrap: wrap;
  }

  .hero {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
  }

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

  section.journey p.lede {
    font-size: 1.3rem;
  }

  .page-intro h1 {
    font-size: 1.6rem;
  }
}
