:root {
  color-scheme: light;
  --bg: #f7f8f7;
  --surface: #ffffff;
  --surface-muted: #eef3f1;
  --surface-strong: #12303a;
  --ink: #142126;
  --muted: #5c6a70;
  --line: #d9e1df;
  --primary: #0f5967;
  --primary-dark: #12303a;
  --accent: #b8753b;
  --accent-soft: #f3e6d8;
  --shadow: 0 18px 42px rgba(18, 48, 58, 0.09);
  --radius: 8px;
  --max: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

a {
  color: inherit;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--ink);
  letter-spacing: 0;
}

h1,
h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 760;
  line-height: 1.03;
}

p {
  margin-top: 0;
}

.sr-only,
.skip-link {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link:focus {
  position: fixed;
  left: 1rem;
  top: 1rem;
  z-index: 100;
  width: auto;
  height: auto;
  padding: 0.7rem 0.9rem;
  clip: auto;
  border-radius: var(--radius);
  background: var(--primary-dark);
  color: #fff;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(217, 225, 223, 0.86);
  background: rgba(247, 248, 247, 0.94);
  backdrop-filter: blur(14px);
}

.nav {
  width: min(var(--max), calc(100% - 2rem));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  background: var(--primary-dark);
  color: white;
  font-weight: 900;
  letter-spacing: 0;
  box-shadow: 0 10px 22px rgba(18, 48, 58, 0.18);
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  color: var(--primary-dark);
  font-size: 1rem;
  line-height: 1.1;
}

.brand small {
  color: var(--muted);
  font-size: 0.78rem;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-menu a {
  color: var(--ink);
  font-size: 0.91rem;
  font-weight: 800;
  text-decoration: none;
}

.nav-menu a:hover,
.nav-menu a:focus {
  color: var(--primary);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.nav-toggle span:not(.sr-only) {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: var(--ink);
}

.hero {
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(238, 243, 241, 0.92), rgba(247, 248, 247, 1)),
    var(--bg);
}

.hero-inner {
  width: min(var(--max), calc(100% - 2rem));
  min-height: calc(100vh - 72px);
  margin: 0 auto;
  padding: clamp(3.4rem, 7vw, 6.4rem) 0;
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(300px, 0.82fr);
  align-items: center;
  gap: clamp(2rem, 6vw, 5rem);
}

.hero-copy-block {
  max-width: 760px;
}

.eyebrow,
.section-heading p,
.contact-panel > p,
.article-kicker {
  margin: 0 0 0.7rem;
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1 {
  max-width: 12ch;
  font-size: clamp(4rem, 10vw, 7.8rem);
}

.hero-lede {
  max-width: 760px;
  margin: 1.35rem 0 0;
  color: #263c44;
  font-size: clamp(1.25rem, 2.3vw, 1.75rem);
  line-height: 1.42;
}

.hero-support {
  max-width: 720px;
  margin: 1.15rem 0 0;
  color: var(--muted);
  font-size: 1.04rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.78rem 1.05rem;
  color: var(--primary-dark);
  font-weight: 900;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.button:hover,
.button:focus {
  transform: translateY(-2px);
  border-color: rgba(15, 89, 103, 0.35);
  box-shadow: 0 12px 24px rgba(18, 48, 58, 0.12);
}

.button.primary {
  border-color: transparent;
  background: var(--primary-dark);
  color: white;
}

.button.secondary {
  background: var(--surface);
}

.hero-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow);
  padding: clamp(1.1rem, 3vw, 1.5rem);
}

.portrait-wrap {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-muted);
  aspect-ratio: 4 / 5;
}

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

.snapshot-list {
  display: grid;
  gap: 1rem;
  margin: 1.2rem 0 0;
}

.snapshot-list div {
  border-top: 1px solid var(--line);
  padding-top: 0.9rem;
}

.snapshot-list dt {
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.snapshot-list dd {
  margin: 0.25rem 0 0;
  color: var(--muted);
}

.section {
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(4rem, 8vw, 6.5rem) 0;
  scroll-margin-top: 92px;
}

.section.band {
  width: 100%;
  max-width: none;
  padding-left: max(1rem, calc((100% - var(--max)) / 2));
  padding-right: max(1rem, calc((100% - var(--max)) / 2));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--surface-muted);
}

.section-heading {
  max-width: 880px;
  margin: 0 0 2.35rem;
}

.section-heading.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-heading h2,
.contact-panel h2 {
  font-size: clamp(2.2rem, 5vw, 4.25rem);
}

.section-heading > span,
.contact-panel > span {
  display: block;
  max-width: 820px;
  margin-top: 1.05rem;
  color: var(--muted);
  font-size: clamp(1rem, 1.8vw, 1.18rem);
}

.section-heading.split {
  max-width: none;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
}

.text-link {
  color: var(--primary);
  font-weight: 900;
  text-decoration: none;
}

.text-link:hover,
.text-link:focus {
  color: var(--accent);
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
  gap: 1.2rem;
  align-items: stretch;
}

.lead-panel,
.theme-grid article,
.project-grid article,
.skills-grid article,
.publication-list article,
.insight-grid article,
.article-shell,
.contact-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.lead-panel {
  padding: clamp(1.35rem, 3vw, 2rem);
}

.lead-panel p {
  color: #44555b;
  font-size: 1.08rem;
}

.lead-panel p:last-child {
  margin-bottom: 0;
}

.axis-grid {
  display: grid;
  gap: 0.75rem;
}

.axis-grid span {
  min-height: 78px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--primary-dark);
  font-weight: 900;
  text-align: center;
}

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

.theme-grid article,
.project-grid article,
.skills-grid article,
.insight-grid article {
  padding: 1.35rem;
}

.theme-grid article,
.project-grid article,
.skills-grid article,
.publication-list article,
.insight-grid article {
  border-left: 4px solid var(--primary);
}

.theme-grid article:nth-child(2n),
.project-grid article:nth-child(2n),
.insight-grid article:nth-child(2n) {
  border-left-color: var(--accent);
}

.theme-number,
.project-grid article > span,
.pub-kind,
.insight-grid article > span {
  color: var(--primary);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.theme-grid h3,
.project-grid h3,
.skills-grid h3,
.publication-list h3,
.insight-grid h3 {
  color: #111c20;
  line-height: 1.18;
}

.theme-grid h3,
.project-grid h3,
.insight-grid h3 {
  margin-top: 0.5rem;
  font-size: 1.13rem;
}

.theme-grid p,
.project-grid p,
.skills-grid p,
.publication-list p,
.insight-grid p {
  color: var(--muted);
}

.insight-grid a {
  text-decoration: none;
}

.insight-grid a:hover,
.insight-grid a:focus {
  color: var(--primary);
}

.theme-meta {
  display: block;
  margin-top: 1rem;
  padding-top: 0.8rem;
  border-top: 1px solid var(--line);
  color: var(--primary-dark);
  font-size: 0.85rem;
  font-weight: 900;
}

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

.publication-list article {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 1rem;
  padding: 1.25rem 1.4rem;
}

.publication-list time {
  color: var(--primary);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
  font-weight: 760;
}

.publication-list a {
  display: inline-flex;
  margin-top: 0.25rem;
  color: var(--primary);
  font-weight: 900;
  text-decoration: none;
}

.publication-list a:hover,
.publication-list a:focus {
  color: var(--accent);
}

.project-evidence {
  margin: 1rem 0 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-muted);
  padding: 0.8rem;
  color: var(--primary-dark) !important;
  font-size: 0.9rem;
  font-weight: 850;
}

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

.skills-grid ul {
  margin: 1rem 0 0;
  padding-left: 1.2rem;
  color: var(--muted);
}

.skills-grid li + li {
  margin-top: 0.42rem;
}

.skills-grid .featured {
  background: var(--surface-strong);
}

.skills-grid .featured h3,
.skills-grid .featured ul {
  color: white;
}

.contact-section {
  padding-top: clamp(3rem, 7vw, 5.5rem);
}

.contact-panel {
  max-width: 900px;
  margin: 0 auto;
  padding: clamp(1.6rem, 5vw, 3.1rem);
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.95rem;
  margin-top: 1.35rem;
}

.contact-links a,
.footer-inner a {
  color: var(--primary);
  font-weight: 900;
  text-decoration: none;
}

.contact-links a:hover,
.contact-links a:focus,
.footer-inner a:hover,
.footer-inner a:focus {
  color: var(--accent);
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 2rem 1rem;
  color: var(--muted);
  background: var(--surface);
}

.footer-inner {
  width: min(var(--max), 100%);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer-inner p {
  margin: 0;
}

.footer-inner div {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.article-main {
  width: min(900px, calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(3rem, 7vw, 5.5rem) 0;
}

.article-shell {
  padding: clamp(1.4rem, 4vw, 3rem);
}

.article-header {
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--line);
}

.article-header h1 {
  max-width: none;
  font-size: clamp(2.6rem, 7vw, 5.1rem);
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1rem;
  color: var(--muted);
  font-weight: 800;
}

.article-body {
  padding-top: 1.8rem;
}

.article-body h2 {
  margin-top: 2rem;
  font-size: clamp(1.55rem, 3vw, 2.2rem);
}

.article-body p,
.article-body li {
  color: #44555b;
  font-size: 1.05rem;
}

.article-body ul {
  padding-left: 1.2rem;
}

.article-body li + li {
  margin-top: 0.55rem;
}

.article-note {
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  background: var(--accent-soft);
  padding: 1rem;
  color: var(--primary-dark);
  font-weight: 850;
}

.article-back {
  display: inline-flex;
  margin-top: 1.8rem;
}

@media (max-width: 1040px) {
  .theme-grid,
  .project-grid,
  .insight-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .skills-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .nav {
    min-height: 66px;
  }

  .brand small {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

  .nav-menu {
    position: absolute;
    left: 1rem;
    right: 1rem;
    top: calc(100% + 0.5rem);
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow);
  }

  .nav-menu.is-open {
    display: flex;
  }

  .nav-menu a {
    padding: 0.9rem 1rem;
    border-bottom: 1px solid var(--line);
  }

  .nav-menu a:last-child {
    border-bottom: 0;
  }

  .hero-inner {
    min-height: auto;
    grid-template-columns: 1fr;
    padding-top: 3rem;
  }

  .hero-card {
    max-width: 520px;
  }

  h1 {
    font-size: clamp(3.4rem, 16vw, 5rem);
  }

  .about-grid,
  .theme-grid,
  .project-grid,
  .insight-grid,
  .publication-list article {
    grid-template-columns: 1fr;
  }

  .section-heading.split {
    display: block;
  }

  .section-heading.split .text-link {
    display: inline-flex;
    margin-top: 1rem;
  }

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

@media (max-width: 520px) {
  .hero-actions,
  .contact-links,
  .footer-inner div {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }
}
