:root {
  --ivory: #faf7f0;
  --ink: #1a1a1a;
  --ink-soft: #4a4640;
  --rule: #1a1a1a;
  --accent: #7a2e2e;
  --card-bg: #ffffff;
  --border-soft: #ddd6c9;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: Georgia, 'Times New Roman', Times, serif;
  line-height: 1.6;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* ---------- Masthead ---------- */

.masthead {
  max-width: 900px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 1.5rem;
  text-align: center;
}

.nav {
  margin-bottom: 1.5rem;
}

.nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
}

.nav a {
  color: var(--ink);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nav a:hover {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid var(--accent);
}

.masthead-rule {
  border: none;
  border-top: 3px solid var(--rule);
  margin: 0.5rem 0;
}

.masthead-rule--top {
  border-top-width: 3px;
}

.masthead-rule--bottom {
  border-top-width: 1px;
  margin-top: 0.75rem;
}

.masthead-name {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: normal;
  letter-spacing: 0.02em;
  margin: 0.5rem 0 0.25rem;
}

.masthead-tagline {
  font-style: italic;
  color: var(--ink-soft);
  font-size: 1rem;
  letter-spacing: 0.05em;
  margin: 0;
}

/* ---------- Sections ---------- */

main {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 3rem 0;
  border-bottom: 1px solid var(--border-soft);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.section.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.section:last-of-type {
  border-bottom: none;
}

.section-label {
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 1.5rem;
  font-weight: normal;
}

.about-text {
  font-size: 1.1rem;
  max-width: 68ch;
}

/* ---------- Intro (photo + about) ---------- */

.intro-section {
  padding-top: 3.5rem;
}

.intro-grid {
  display: flex;
  align-items: center;
  gap: 3rem;
}

.intro-photo {
  width: 240px;
  height: 240px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid var(--border-soft);
  box-shadow: 0 12px 30px -14px rgba(26, 26, 26, 0.25);
}

.intro-body {
  flex: 1;
  min-width: 0;
}

.intro-contact-line {
  margin: 1.25rem 0 0;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.intro-contact-line a {
  font-weight: bold;
}

@media (max-width: 640px) {
  .intro-grid {
    flex-direction: column;
    text-align: center;
    gap: 1.75rem;
  }

  .intro-photo {
    width: 180px;
    height: 180px;
  }
}

/* ---------- Work cards ---------- */

.work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.75rem;
}

.work-card {
  background: var(--card-bg);
  border: 1px solid var(--border-soft);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.work-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 32px -18px rgba(26, 26, 26, 0.3);
  border-color: var(--accent);
}

.stretched-link::after {
  content: "";
  position: absolute;
  inset: 0;
}

.work-image {
  width: calc(100% + 3rem);
  margin: -1.5rem -1.5rem 1.25rem;
  height: 170px;
  object-fit: cover;
  display: block;
}

.work-image--audio {
  object-fit: contain;
  background: var(--ivory);
  padding: 1.5rem 3.5rem;
}

.work-outlet {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0 0 0.5rem;
}

.work-headline {
  font-size: 1.15rem;
  margin: 0 0 0.75rem;
  line-height: 1.35;
}

.work-blurb {
  font-size: 0.95rem;
  color: var(--ink-soft);
  margin: 0 0 1rem;
}

.work-link {
  font-size: 0.85rem;
  font-weight: bold;
}

.work-more {
  margin-top: 2.5rem;
}

.work-more-label {
  margin: 0 0 1.25rem;
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
}

.work-more-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  align-items: stretch;
}

.work-more-col {
  display: flex;
  flex-direction: column;
  position: relative;
  border: 1px solid var(--border-soft);
  background: var(--card-bg);
  padding: 1.5rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.work-more-col:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 32px -18px rgba(26, 26, 26, 0.3);
  border-color: var(--accent);
}

.outlet-badge {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--accent);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: bold;
  letter-spacing: 0.03em;
  margin-bottom: 1rem;
}

.work-more-col-title {
  margin: 0 0 0.6rem;
  font-size: 1.05rem;
  font-weight: bold;
}

.work-more-desc {
  margin: 0 0 1.1rem;
  font-size: 0.88rem;
  color: var(--ink-soft);
  line-height: 1.5;
}

.work-more-link {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 0.9rem 0;
  border-top: 1px solid var(--border-soft);
  font-weight: bold;
  font-size: 0.92rem;
  line-height: 1.4;
  color: var(--ink);
  word-break: break-word;
  transition: color 0.2s ease;
}

.work-more-col--audio .work-more-link:hover {
  color: var(--accent);
}

.work-more-link:first-of-type {
  border-top: 1px solid var(--border-soft);
  margin-top: auto;
  padding-top: 0.9rem;
}

.work-more-link:hover {
  color: var(--accent);
  text-decoration: none;
}

.work-more-count {
  font-weight: normal;
  font-style: italic;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

/* ---------- Timeline (Experience / Education) ---------- */

.timeline-entry {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.timeline-entry:last-child {
  margin-bottom: 0;
}

.timeline-date {
  font-size: 0.85rem;
  color: var(--ink-soft);
  font-style: italic;
  padding-top: 0.2rem;
}

.timeline-title {
  margin: 0 0 0.2rem;
  font-size: 1.15rem;
}

.timeline-org {
  margin: 0 0 0.6rem;
  color: var(--accent);
  font-size: 0.95rem;
}

.timeline-body ul {
  margin: 0;
  padding-left: 1.1rem;
}

.timeline-body li {
  margin-bottom: 0.4rem;
  font-size: 0.97rem;
}

/* ---------- Compact experience list + resume CTA ---------- */

.exp-brief {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
}

.exp-brief li {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) 8em;
  align-items: baseline;
  gap: 0.3rem 1.25rem;
  padding: 0.75rem 0;
  border-top: 1px solid var(--border-soft);
  font-size: 0.95rem;
}

.exp-role {
  font-weight: bold;
}

.exp-org {
  color: var(--ink-soft);
}

.exp-date {
  color: var(--ink-soft);
  font-style: italic;
  font-size: 0.88rem;
  white-space: nowrap;
  text-align: right;
}

@media (max-width: 640px) {
  .exp-brief li {
    grid-template-columns: 1fr;
    gap: 0.15rem;
  }

  .exp-date {
    text-align: left;
  }
}

.resume-cta {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-soft);
  font-size: 0.95rem;
  color: var(--ink-soft);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

.resume-link {
  display: inline-block;
  font-weight: bold;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink);
  border: 1px solid var(--ink);
  padding: 0.6rem 1.25rem;
  transition: background 0.2s ease, color 0.2s ease;
}

.resume-link:hover {
  background: var(--ink);
  color: var(--ivory);
  text-decoration: none;
}

/* ---------- Awards / Leadership ---------- */

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
}

.subsection-title {
  font-size: 1rem;
  letter-spacing: 0.05em;
  margin: 0 0 1rem;
}

.plain-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.plain-list li {
  padding: 0.6rem 0;
  border-top: 1px solid var(--border-soft);
  font-size: 0.92rem;
}

.plain-list li:first-child {
  border-top: none;
}

/* ---------- Footer ---------- */

.footer {
  text-align: center;
  padding-top: 2.5rem;
  padding-bottom: 3rem;
}

.footer .masthead-rule {
  border-top: 3px solid var(--rule);
  max-width: 760px;
  margin: 0 auto 2rem;
}

.contact-links {
  font-size: 1.05rem;
}

.contact-sep {
  margin: 0 0.75rem;
  color: var(--ink-soft);
}

.footer-note {
  margin-top: 1.5rem;
  font-size: 0.8rem;
  color: var(--ink-soft);
}

/* ---------- Responsive ---------- */

@media (max-width: 640px) {
  .timeline-entry {
    grid-template-columns: 1fr;
    gap: 0.4rem;
  }

  .two-col {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .nav ul {
    gap: 0.9rem 1.2rem;
  }

  .work-more-grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }
}
