:root {
  --maroon: #881c1c;
  --maroon-deep: #5f1115;
  --gold: #c69214;
  --ink: #1c2026;
  --slate: #55606e;
  --mist: #eef1f4;
  --paper: #fffdf8;
  --white: #ffffff;
  --border: rgba(28, 32, 38, 0.08);
  --shadow: 0 20px 50px rgba(41, 19, 25, 0.1);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(198, 146, 20, 0.18), transparent 28%),
    linear-gradient(180deg, #fbf7f1 0%, #f3f0ea 35%, #ffffff 100%);
  font-family: "Avenir Next", "Helvetica Neue", Helvetica, Arial, sans-serif;
  line-height: 1.6;
}

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

a {
  color: inherit;
}

.site-shell {
  width: min(calc(100% - 2rem), var(--max-width));
  margin: 0 auto;
  padding: 1rem 0 2rem;
}

.site-header {
  position: sticky;
  top: 1rem;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
  padding: 1rem 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.84);
  backdrop-filter: blur(16px);
  box-shadow: 0 16px 40px rgba(67, 33, 38, 0.08);
}

.wordmark {
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-decoration: none;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.site-nav a {
  padding: 0.7rem 0.95rem;
  border-radius: 999px;
  color: var(--slate);
  font-size: 0.96rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--maroon);
  background: rgba(136, 28, 28, 0.08);
  transform: translateY(-1px);
}

.site-nav a.active {
  color: var(--white);
  background: linear-gradient(135deg, var(--maroon) 0%, var(--maroon-deep) 100%);
}

.nav-toggle {
  display: none;
  border: 0;
  border-radius: 999px;
  padding: 0.7rem 1rem;
  background: var(--maroon);
  color: var(--white);
  font: inherit;
  font-weight: 700;
}

.hero,
.feature-panel,
.page-hero,
.section-grid,
.timeline-grid,
.project-grid {
  margin-bottom: 2rem;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 2rem;
  align-items: center;
  padding: 1.5rem 0 0.5rem;
}

.eyebrow,
.project-label,
.publication-type,
.stat-label {
  margin: 0 0 0.55rem;
  color: var(--maroon);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin-top: 0;
  line-height: 1.12;
}

h1,
.page-hero h1 {
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  font-size: clamp(2.5rem, 5vw, 4.8rem);
  margin-bottom: 1rem;
}

.hero h1 {
  font-size: clamp(2.4rem, 4.2vw, 3.5rem);
}

.hero-text,
.page-hero p,
.panel p,
.feature-copy p,
.info-card p,
.nav-card p,
.publication-item p,
.project-copy p,
.note-card p {
  color: var(--slate);
  font-size: 1.02rem;
}

.hero-actions,
.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.hero-actions {
  margin: 1.5rem 0 1rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.85rem 1.2rem;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.button:hover,
.button:focus-visible,
.text-link:hover,
.text-link:focus-visible {
  transform: translateY(-2px);
}

.button-primary {
  background: linear-gradient(135deg, var(--maroon) 0%, var(--maroon-deep) 100%);
  color: var(--white);
  box-shadow: 0 14px 28px rgba(95, 17, 21, 0.28);
}

.button-secondary {
  border: 1px solid rgba(136, 28, 28, 0.16);
  background: rgba(255, 255, 255, 0.75);
  color: var(--ink);
}

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

.contact-links a,
.text-link {
  color: var(--maroon);
  font-weight: 700;
  text-decoration: none;
}

.linkedin-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.linkedin-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.2rem;
  height: 1.2rem;
  border-radius: 2px;
  background: #0a66c2;
  color: var(--white);
  font-family: Arial, sans-serif;
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1;
}

.portrait-card,
.panel,
.info-card,
.nav-card,
.project-card,
.note-card,
.publication-item,
.pdf-frame {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow);
}

.portrait-card {
  position: relative;
  aspect-ratio: 4 / 5;
  background:
    linear-gradient(180deg, rgba(198, 146, 20, 0.28) 0%, rgba(136, 28, 28, 0.08) 100%),
    var(--paper);
}

.portrait-card::before {
  content: "";
  position: absolute;
  inset: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: calc(var(--radius-lg) - 10px);
}

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

.portrait-caption {
  margin: 0.85rem 0 0;
  text-align: center;
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  font-size: 1.35rem;
  font-weight: 700;
}

.section-grid,
.timeline-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

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

.panel,
.info-card,
.nav-card,
.note-card,
.publication-item {
  padding: 1.5rem;
}

.panel-accent {
  background:
    linear-gradient(135deg, rgba(136, 28, 28, 0.97) 0%, rgba(95, 17, 21, 0.94) 100%);
  color: var(--white);
}

.panel-accent .eyebrow,
.panel-accent p,
.panel-accent h2 {
  color: var(--white);
}

.stat-stack {
  display: grid;
  gap: 1rem;
  align-content: center;
}

.stat-value {
  margin: 0;
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  font-size: 1.55rem;
  font-weight: 700;
}

.section-block {
  margin-bottom: 2.5rem;
}

.section-heading {
  max-width: 700px;
  margin-bottom: 1.15rem;
}

.section-heading h2 {
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  font-size: clamp(2rem, 3vw, 3rem);
  margin-bottom: 0;
}

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

.theme-list {
  display: grid;
  gap: 0.8rem;
  margin: 0;
  padding-left: 1.2rem;
  color: var(--slate);
  font-size: 1.02rem;
}

.theme-list li::marker {
  color: var(--maroon);
}

.feature-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 1rem;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 32px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(242, 240, 234, 0.88) 100%);
  box-shadow: var(--shadow);
}

.feature-copy {
  padding: 1rem;
  align-self: center;
}

.feature-image {
  min-height: 340px;
  overflow: hidden;
  border-radius: 24px;
}

.feature-image img,
.project-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-main {
  padding-bottom: 1rem;
}

.route66-page {
  width: min(100%, 780px);
  margin: 0 auto;
}

.route66-content {
  margin-bottom: 2rem;
}

.route66-content h2 {
  margin-bottom: 0.4rem;
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  font-size: 1.55rem;
}

.route66-content h2:not(:first-child) {
  margin-top: 1.8rem;
}

.route66-content p {
  color: var(--slate);
  font-size: 1.02rem;
}

.route66-contact {
  display: grid;
  justify-items: start;
  gap: 0.2rem;
}

.route66-contact-name {
  margin: 0;
  color: var(--ink) !important;
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  font-size: 1.4rem !important;
  font-weight: 700;
}

.page-hero {
  max-width: 760px;
  margin-bottom: 2rem;
}

.timeline-item + .timeline-item {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(28, 32, 38, 0.1);
}

.timeline-item h2,
.publication-item h2,
.project-copy h2,
.panel h2,
.info-card h3,
.nav-card h3 {
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  font-size: 1.55rem;
  margin-bottom: 0.4rem;
}

.timeline-item p,
.timeline-item span,
.publication-meta {
  margin: 0;
  color: var(--slate);
}

.timeline-item span {
  display: inline-block;
  margin-top: 0.35rem;
  font-weight: 700;
}

.timeline-link {
  display: block;
  width: fit-content;
  margin-top: 0.45rem;
}

.pdf-panel {
  display: grid;
  gap: 1rem;
}

.pdf-panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
}

.pdf-panel-header h2,
.pdf-panel-header p {
  margin-bottom: 0;
}

.pdf-panel-header .button {
  flex: 0 0 auto;
}

.pdf-frame {
  padding: 1rem;
  background: rgba(255, 255, 255, 0.9);
}

.publication-list {
  display: grid;
  gap: 1rem;
}

.publication-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem 1.25rem;
}

.funding-highlight-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}

.presentation-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}

.feature-award,
.funding-item,
.presentation-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow);
}

.feature-award {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(150px, 34%);
  align-items: center;
  gap: 1.5rem;
  min-height: 270px;
  padding: 1.5rem;
  background:
    linear-gradient(135deg, rgba(136, 28, 28, 0.95) 0%, rgba(95, 17, 21, 0.92) 100%);
  color: var(--white);
}

.award-copy {
  min-width: 0;
}

.feature-award .publication-type,
.feature-award .award-meta,
.feature-award .award-amount,
.feature-award h3 {
  color: var(--white);
}

.award-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-width: 0;
  padding: 0;
  background: transparent;
}

.award-logos img {
  width: 100%;
  max-width: 180px;
  height: 78px;
  object-fit: contain;
}

.award-logos-nike img {
  max-width: 230px;
  height: 125px;
  filter: brightness(0) invert(1);
}

.award-logos-double {
  flex-direction: column;
  gap: 0.8rem;
}

.award-logos-double img:first-child {
  width: 118px;
  max-width: 100%;
  height: auto;
}

.award-logos-double img:last-child {
  max-width: 230px;
  height: 82px;
}

.award-logos-stryd img {
  max-width: 180px;
  height: 78px;
}

.award-logos-wide img {
  max-width: 180px;
  height: 78px;
}

.award-logos-compact {
  justify-self: end;
  width: min(100%, 150px);
  min-height: 132px;
  padding: 0.75rem;
  border-radius: 8px;
  background: var(--white);
}

.award-logos-compact img {
  max-width: 112px;
  height: 108px;
}

.award-meta,
.award-amount,
.funding-project {
  margin: 0;
}

.award-meta {
  color: var(--slate);
  font-weight: 700;
}

.award-amount {
  margin-top: 0.35rem;
  color: var(--maroon);
  font-size: 1.1rem;
  font-weight: 800;
}

.funding-list,
.presentation-list {
  display: grid;
  gap: 1rem;
}

.funding-item {
  display: grid;
  grid-template-columns: 110px 1fr;
}

.funding-year {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 1rem;
  border-right: 1px solid var(--border);
  color: var(--maroon);
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  font-size: 1.5rem;
  font-weight: 700;
}

.funding-body,
.presentation-item {
  padding: 1.4rem 1.5rem;
}

.funding-body h3,
.feature-award h3,
.presentation-item h3 {
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  font-size: 1.45rem;
  margin-bottom: 0.45rem;
}

.funding-project {
  margin-top: 0.65rem;
  color: var(--slate);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.project-grid-single {
  grid-template-columns: 1fr;
}

.project-card {
  display: grid;
  overflow: hidden;
}

.project-card-wide {
  grid-column: 1 / -1;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
}

.project-copy {
  padding: 1.5rem;
}

.project-media {
  min-height: 280px;
  background: var(--mist);
}

.image-frame {
  background: linear-gradient(180deg, rgba(136, 28, 28, 0.03), rgba(198, 146, 20, 0.08));
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 2rem 0 1rem;
  color: var(--slate);
  font-size: 0.95rem;
}

.site-footer p {
  margin: 0;
}

.footer-note {
  max-width: 470px;
  text-align: right;
}

@media (max-width: 980px) {
  .hero,
  .feature-panel,
  .project-card-wide,
  .section-grid,
  .timeline-grid,
  .funding-highlight-grid,
  .presentation-summary-grid,
  .card-grid,
  .project-grid {
    grid-template-columns: 1fr;
  }

  .site-header {
    top: 0.75rem;
    border-radius: 28px;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 0.75rem);
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 0.75rem;
    border: 1px solid var(--border);
    border-radius: 24px;
    background: rgba(255, 253, 248, 0.96);
    box-shadow: var(--shadow);
  }

  .site-nav.open {
    display: flex;
  }

  .site-nav a {
    width: 100%;
    text-align: center;
  }

  .nav-toggle {
    display: inline-flex;
  }
}

@media (max-width: 640px) {
  .site-shell {
    width: min(calc(100% - 1rem), var(--max-width));
  }

  .site-header {
    padding: 0.9rem 1rem;
  }

  .panel,
  .info-card,
  .nav-card,
  .note-card,
  .publication-item,
  .feature-award,
  .project-copy,
  .feature-copy,
  .pdf-frame {
    padding: 1.2rem;
  }

  .feature-award {
    grid-template-columns: 1fr;
    min-height: 0;
    padding: 1.2rem;
  }

  .award-logos {
    justify-self: end;
    width: min(60%, 230px);
  }

  .funding-item {
    grid-template-columns: 1fr;
  }

  .funding-year {
    justify-content: flex-start;
    border-right: 0;
    border-bottom: 1px solid var(--border);
    padding: 1rem 1.2rem 0.2rem;
  }

  .funding-body,
  .presentation-item {
    padding: 1.2rem;
  }

  h1,
  .page-hero h1 {
    font-size: clamp(2.2rem, 11vw, 3.1rem);
  }

  .site-footer {
    flex-direction: column;
  }

  .pdf-panel-header {
    flex-direction: column;
    gap: 1rem;
  }

  .footer-note {
    text-align: left;
  }
}
