/* Shared site styles: homepage and section pages */
:root {
  --panel: rgba(52, 75, 91, 0.82);
  --header: rgba(38, 55, 68, 0.96);
  --card: rgba(73, 93, 107, 0.88);
  --text: #f2f3f3;
  --muted: #e0e6eb;
  --white: #f6f8fa;
  --link: #bee5f8;
  --border: rgba(230,238,244,.23);
}
.site-background {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: #d9ebf5;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 94px;
  scrollbar-gutter: stable;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 94px;
}
body {
  margin: 0;
  position: relative;
  isolation: isolate;
  background: #d1dfe7;
  color: var(--text);
  font: 16px/1.65 "Hind", Arial, sans-serif;
}
a {
  color: var(--link);
  text-decoration: none;
}
a:hover, a:focus-visible {
  color: #fff;
}
button {
  font: inherit;
}
img {
  max-width: 100%;
}

.site-shell {
  max-width: 1170px;
  min-height: 100vh;
  margin: 0 auto;
  background: var(--panel);
  box-shadow: 0 0 36px rgba(20,28,35,.16);
}
.skip-link {
  position: absolute;
  left: 12px;
  top: -100px;
  z-index: 100;
  background: #fff;
  color: #273944;
  padding: 10px 16px;
}
.skip-link:focus {
  top: 10px;
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--header);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  min-height: 77px;
  padding: 0 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.wordmark {
  display: flex;
  flex-direction: column;
  gap: 3px;
  color: var(--white);
  font-size: 19px;
  font-weight: 700;
  white-space: nowrap;
  line-height: 1.2;
  text-decoration: none;
}
.wordmark-name {
  font-size: 23px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.wordmark-subtitle {
  font-size: 12px;
  font-weight: 400;
  color: #cbd9e3;
  white-space: nowrap;
}
.wordmark-period {
  color: #bce2f9;
}
.site-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 27px;
}
.site-nav a {
  color: #e0e8ee;
  font-size: 16px;
  font-weight: 600;
  padding: 27px 0 23px;
  border-bottom: 3px solid transparent;
}
.site-nav a:hover, .site-nav a:focus-visible, .site-nav a[aria-current=page] {
  color: #fff;
  border-bottom-color: #bce2f9;
}
.menu-toggle {
  display: none;
}
.eyebrow {
  color: #c8e7f7;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .18em;
  font-weight: 700;
  margin: 0 0 14px;
}
h1, h2, h3 {
  color: var(--white);
  line-height: 1;
  font-weight: 600;
}
h1 {
  font-size: clamp(26px, 5vw, 26px);
  line-height: 0.95;
  letter-spacing: -.035em;
  margin: 0 0 0px;
}
h2 {
  font-size: 29px;
  margin: 0 0 23px;
}
h3 {
  font-size: 22px;
  margin: 0 0 0px;
}
p {
  margin: 0px 0 12px;
}
i {
  display: block;
  font-style: italic;
  margin-bottom: 10px;
}
.section {
  padding: 20px 60px;
  /*border-bottom: 2px solid var(--border);*/
}
.about-grid {
  display: grid;
  grid-template-columns: 225px minmax(0,1fr);
  gap: 42px;
}
.about-aside h2 {
  margin-bottom: 21px;
}
.portrait {
  display: block;
  width: 210px;
  height: 290px;
  object-fit: cover;
  object-position: 50% 38%;
  border: 1px solid rgba(240,246,250,.32);
}
.about-copy p {
  max-width: 745px;
  font-size: 18px;
  line-height: 1.65;
  margin-bottom: 19px;
}
.about-copy p:last-child {
  margin-bottom: 0;
}
.profile-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0,1fr));
  gap: 11px;
}
.profile-button {
  display: flex;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
  min-height: 42px;
  padding: 8px 12px;
  color: var(--white);
  border: 1px solid rgba(235,242,248,.43);
  background: rgba(62,72,82,.65);
  font-size: 18px;
  font-weight: 600;
}
.profile-button:hover, .profile-button:focus-visible {
  background: rgba(114,141,160,.36);
  border-color: #c8e7f7;
  text-decoration: none;
}
.section-explore {
  padding-bottom: 30px;
}
.explore-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 17px;
}
.explore-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 203px;
  padding: 25px 23px 26px;
  border: 1px solid rgba(235,242,248,.32);
  color: var(--white);
  background: var(--card);
  transition: transform .16s ease, background .16s ease, border-color .16s ease;
}
.explore-card:hover, .explore-card:focus-visible {
  transform: translateY(-3px);
  background: rgba(80,96,108,.93);
  border-color: #c8e7f7;
}
.card-number {
  color: #c8e7f7;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  margin-bottom: 25px;
}
.explore-card h3 {
  font-size: 23px;
  margin: 0 0 8px;
}
.explore-card p {
  color: #dae5ec;
  font-size: 15px;
  margin: 0;
}
.explore-arrow {
  position: absolute;
  top: 19px;
  right: 23px;
  font-size: 22px;
  line-height: 1;
}
.site-footer {
  border-top: 3px solid var(--border);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 28px 60px 33px;
  color: #ccd7df;
  font-size: 14px;
}
.page-hero {
  padding: 50px 60px 0px;
  /*border-bottom: 1px solid var(--border);*/
}
.page-hero h1 {
  font-size: clamp(40px, 5vw, 60px);
  margin-bottom: 15px;
}
.page-hero > p:last-child {
  font-size: 18px;
  margin: 0;
  max-width: 680px;
}
.page-section {
  padding-top: 30px;
  padding-bottom: 30px;
}
.section-title {
  border-bottom: 1px solid var(--border);
  margin-bottom: 25px;
}
.section-title h2 {
  margin-bottom: 4px;
}
.section-title p {
  color: var(--muted);
  margin: 0;
}
.site-grid {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 17px;
}
.site-card {
  min-width: 0;
  padding: 12px 12px;
  background: var(--card);
  /*border: 1px solid rgba(230,238,244,.3);*/
  overflow-wrap: anywhere;
}
.site-card h3 a {
  color: #f0f7fc;
}
.site-card h3 a:hover {
  color: var(--link);
}
.site-card p {
  color: #e1e9ef;
  font-size: 15px;
  line-height: 1.6;
}
.site-card p:last-child {
  margin-bottom: 0;
}
.research-interest-block {
  padding: 12px 12px;
  margin-bottom: 18px;
  background: rgba(73, 93, 107, 0.88);
  /*border: 1px solid var(--border);*/
}
.research-interest-block h3 {
  margin-bottom: 12px;
}
.research-topics {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  gap: 8px;
  padding: 0;
  margin: 0;
}
.research-topics li {
  padding: 5px 11px;
  color: #e7f0f7;
  background: rgba(235,242,248,.13);
  font-size: 13px;
}
.item-meta {
  color: #cfdae2 !important;
  font-size: 13px !important;
  letter-spacing: .06em;
  text-transform: uppercase;
  font-weight: 600;
}
.item-subtitle {
  font-weight: 600;
  color: #e1e9ef;
}
.section-content > .site-card + .site-card {
  margin-top: 17px;
}
.experience-entry {
  display: grid;
  grid-template-columns: 145px minmax(0,1fr);
  gap: 10px;
  padding: 12px 12px;
}
.experience-entry + .experience-entry {
  padding-top: 24px;
  margin-top: 12px;
  border-top: 1px solid var(--border);
}
.experience-date {
  color: #cfdae2;
  font-weight: 600;
  font-size: 14px;
}
.record-list {
  padding: 8px 27px;
}
.record-row {
  display: grid;
  grid-template-columns: 160px minmax(0,1fr);
  gap: 20px;
  padding: 22px 0;
}
.record-row + .record-row {
  border-top: 1px solid var(--border);
}
.record-row h3 {
  line-height: 1.35;
}
.record-row p {
  margin-bottom: 8px;
}
.record-detail p:last-child {
  margin-bottom: 0;
}
.photo-card {
  padding: 0;
  overflow: hidden;
}
.service-photo {
  display: block;
  width: 100%;
  height: 159px;
  object-fit: cover;
  background: #80919d;
  border-bottom: 1px solid var(--border);
}
.photo-card .card-body {
  padding: 12px 12px 12px;
}
.skills-card {
  padding: 9px 27px;
}
.skill-row {
  display: grid;
  grid-template-columns: 205px minmax(0,1fr);
  gap: 19px;
  padding: 20px 0;
}
.skill-row + .skill-row {
  border-top: 1px solid var(--border);
}
.skill-row h3 {
  margin: 0;
}
.skill-row p {
  margin: 0;
}
.repo-button {
  display: inline-flex;
  gap: 30px;
}
.travel-photo {
  margin: 22px 0 0;
  padding: 0;
  border: 1px solid var(--border);
  background: var(--card);
}
.travel-photo img {
  display: block;
  width: 100%;
  height: auto;
}
.travel-photo figcaption {
  color: #d9e7ef;
  font-size: 14px;
  padding: 14px 19px;
}
@media (max-width: 990px) {
  .site-grid {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
  .profile-grid {
    grid-template-columns: repeat(3,minmax(0,1fr));
  }
  .about-grid {
    grid-template-columns: 190px minmax(0,1fr);
    gap: 29px;
  }
  .portrait {
    width: 180px;
    height: 240px;
  }
  .nav-inner {
    padding: 0 35px;
  }
  .site-nav {
    gap: 18px;
  }
  .section, .page-hero {
    padding-left: 36px;
    padding-right: 36px;
  }
  .site-footer {
    padding-left: 36px;
    padding-right: 36px;
  }
}
@media (max-width: 700px) {
  html {
    scroll-padding-top: 70px;
  }
  .nav-inner {
    position: relative;
    min-height: 66px;
    padding: 0 23px;
  }
  .menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 42px;
    border: 1px solid var(--border);
    border-radius: 3px;
    background: transparent;
    padding: 10px;
    cursor: pointer;
  }
  .menu-toggle span {
    width: 100%;
    height: 2px;
    background: #f2f8fb;
  }
  .site-nav {
    display: none;
    position: absolute;
    top: 66px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    align-items: stretch;
    background: var(--header);
    border-bottom: 1px solid var(--border);
  }
  .site-nav.open {
    display: flex;
  }
  .site-nav a {
    padding: 12px 25px;
    border-bottom-width: 1px;
  }
  .section, .page-hero {
    padding: 42px 25px;
  }
  .about-grid {
    grid-template-columns: 1fr;
    gap: 21px;
  }
  .about-aside {
    display: flex;
    align-items: center;
    gap: 26px;
    flex-wrap: wrap;
  }
  .about-aside h2 {
    margin: 0;
  }
  .portrait {
    width: 118px;
    height: 152px;
  }
  .explore-grid, .site-grid {
    grid-template-columns: 1fr;
  }
  .profile-grid {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
  .profile-button {
    min-height: 57px;
  }
  .explore-card {
    min-height: 170px;
  }
  .card-number {
    margin-bottom: 21px;
  }
  .experience-entry, .record-row, .skill-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .record-list {
    padding: 4px 20px;
  }
  .site-footer {
    padding: 26px 25px;
  }
}
@media (max-width: 420px) {
  .profile-grid {
    grid-template-columns: 1fr;
  }
  .about-aside {
    display: block;
  }
  .about-aside h2 {
    margin-bottom: 18px;
  }
  .portrait {
    width: 145px;
    height: 178px;
  }
}
@media (prefers-reduced-motion:reduce) {
  html {
    scroll-behavior: auto;
  }
  .explore-card {
    transition: none;
  }
}
