:root {
  --color-primary: #1565a7;
  --color-primary-hover: #104d7a;
  --color-link: #0d5a8c;
  --color-link-hover: #083854;
  --color-page: #ffffff;
  --color-surface: #f5f5f5;
  --color-surface-strong: #eceff1;
  --color-text: #212121;
  --color-text-secondary: #595959;
  --color-text-muted: #757575;
  --color-border: #d0d0d0;
  --color-footer-dark: #102a3e;
  --font-heading: "Raleway", Arial, sans-serif;
  --font-body: "Raleway", Arial, sans-serif;
  --font-secondary: "Roboto", Arial, sans-serif;
  --container: 1200px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --focus: #f59e0b;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 118px;
}

body {
  margin: 0;
  background: var(--color-page);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}

body.menu-open {
  overflow: hidden;
}

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

iframe {
  border: 0;
}

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

a:hover {
  color: var(--color-link-hover);
  text-decoration: underline;
}

button,
input,
textarea,
select {
  font: inherit;
}

a:focus-visible,
button:focus-visible,
iframe:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

[hidden] {
  display: none !important;
}

.site-container {
  width: min(calc(100% - 40px), var(--container));
  margin-inline: auto;
}

.narrow-container {
  max-width: 920px;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 1000;
  padding: 9px 14px;
  background: #ffffff;
  border: 2px solid var(--color-primary);
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  min-height: 54px;
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid #e4e4e4;
}

.masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 54px;
}

.site-name {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--color-text);
  font-family: var(--font-heading);
}

.site-name img {
  width: 28px;
  height: 16px;
  object-fit: contain;
}

.site-name-copy {
  display: grid;
  gap: 1px;
  line-height: 1.05;
}

.site-name-copy strong {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.site-name-copy small {
  color: var(--color-text-secondary);
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.015em;
  white-space: nowrap;
}

.site-name:hover {
  color: var(--color-primary);
  text-decoration: none;
}

.main-navigation {
  display: flex;
  align-items: center;
  gap: 30px;
}

.main-navigation a {
  color: #333333;
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 600;
}

.main-navigation a:hover {
  color: var(--color-primary);
  text-decoration: none;
}

.menu-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 7px 8px;
  background: transparent;
  color: var(--color-text);
  border: 0;
  cursor: pointer;
}

.menu-toggle span {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
}

.member-page {
  padding: 42px 0 0;
}

.profile-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(245px, 0.8fr);
  gap: 52px;
  align-items: start;
}

.profile-header {
  display: flex;
  align-items: flex-start;
  gap: 28px;
}

.profile-photo-wrap {
  flex: 0 0 190px;
}

.profile-photo {
  width: 190px;
  height: 190px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 22%;
  border: 1px solid var(--color-border);
}

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

.profile-copy h1 {
  margin: -6px 0 1px;
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 700;
  line-height: 1.2;
}

.profile-title,
.profile-affiliation {
  margin: 0;
  font-family: var(--font-heading);
}

.profile-title {
  color: var(--color-text-secondary);
  font-size: 17px;
  font-weight: 500;
}

.profile-affiliation {
  margin-top: 1px;
  color: var(--color-text-muted);
  font-size: 15px;
}

.profile-links {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 16px;
  margin: 13px 0 14px;
}

.profile-links a {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 600;
}

.link-icon {
  flex: 0 0 auto;
  width: 17px;
  height: 17px;
}

.profile-links a:not(:last-child)::after {
  content: "·";
  position: absolute;
  right: -10px;
  color: #a0a0a0;
}

.profile-bio {
  max-width: 720px;
  color: #333333;
  font-size: 15px;
  line-height: 1.62;
}

.profile-bio p {
  margin: 0 0 9px;
}

.current-work {
  padding-left: 24px;
  border-left: 1px solid var(--color-border);
}

.current-work h2 {
  margin: 0 0 12px;
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
}

.current-work ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.current-work li {
  margin: 0 0 12px;
}

.current-work strong,
.current-work span {
  display: block;
}

.current-work strong {
  color: var(--color-primary);
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
}

.current-work a:hover,
.current-work a:focus-visible {
  text-decoration: underline;
}

.current-work span {
  color: var(--color-text-secondary);
  font-size: 13px;
  line-height: 1.4;
}

.section-navigation {
  position: sticky;
  top: 54px;
  z-index: 50;
  margin: 37px 0 0;
  background: rgba(255, 255, 255, 0.97);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.section-navigation ul {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  min-height: 48px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.section-navigation a {
  color: var(--color-text-secondary);
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 600;
}

.section-navigation a:hover,
.section-navigation a[aria-current="true"] {
  color: var(--color-primary);
  text-decoration: none;
}

.section-navigation span {
  color: var(--color-text-muted);
  font-weight: 500;
}

.member-section {
  padding: 58px 0 16px;
  scroll-margin-top: 94px;
}

.member-section + .member-section {
  border-top: 1px solid #e7e7e7;
}

.member-section-heading {
  margin: 0;
  color: var(--color-text);
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-transform: uppercase;
}

.member-section-heading span {
  color: var(--color-text-muted);
  font-weight: 500;
  text-transform: none;
}

#tools > .member-section-heading,
#papers > .member-section-heading {
  margin-bottom: 26px;
}

.section-introduction {
  max-width: 720px;
  margin: 8px auto 32px;
  color: var(--color-text-secondary);
  font-size: 14px;
  text-align: center;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px 24px;
}

.project-card {
  min-width: 0;
}

.project-image-link {
  display: block;
  aspect-ratio: 5 / 3;
  overflow: hidden;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}

.project-image-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 180ms ease;
}

.project-image-link:hover img {
  transform: scale(1.025);
}

.project-info {
  padding-top: 9px;
}

.project-info h3 {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
}

.project-info h3 a:hover {
  text-decoration: underline;
}

.project-info p {
  margin: 3px 0 0;
  color: var(--color-text-muted);
  font-size: 12px;
}

.software-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  margin: 52px 0 13px;
  padding-bottom: 9px;
  border-bottom: 1px solid var(--color-border);
}

.software-heading h3,
.software-heading p {
  margin: 0;
}

.software-heading h3 {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
}

.software-heading p {
  color: var(--color-text-muted);
  font-size: 13px;
}

.software-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 42px;
}

.software-list article {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid #e5e5e5;
}

.software-list h4 {
  margin: 0 0 3px;
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 600;
}

.software-list p {
  margin: 0;
  color: var(--color-text-secondary);
  font-size: 12.5px;
  line-height: 1.45;
}

.small-action {
  flex: none;
  padding-top: 2px;
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
}

.publication-list {
  max-width: 1040px;
  margin: 0 auto;
}

.publication-row {
  display: grid;
  grid-template-columns: 135px minmax(0, 1fr);
  gap: 20px;
  min-height: 178px;
  padding: 16px 0;
  border-bottom: 1px solid #e5e5e5;
}

.publication-row:first-child {
  padding-top: 6px;
}

.publication-thumbnail {
  width: 135px;
}

.publication-thumbnail > a {
  display: block;
}

.publication-thumbnail img,
.paper-image-needed {
  width: 135px;
  height: 174px;
  border: 1px solid var(--color-border);
}

.publication-thumbnail img {
  object-fit: cover;
  object-position: top center;
  background: #ffffff;
}

.paper-image-needed {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  background: var(--color-surface);
  color: #9a9a9a;
}

.paper-image-needed span {
  font-family: var(--font-heading);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
}

.publication-details {
  align-self: center;
  padding: 2px 0;
}

.publication-details h3 {
  margin: 0 0 3px;
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 500;
  line-height: 1.35;
}

.publication-details h3 a {
  color: #096bc0;
}

.publication-authors,
.publication-venue {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
}

.publication-authors {
  color: #292929;
}

.publication-venue {
  color: var(--color-text-secondary);
}

.publication-actions,
.media-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.publication-actions a,
.publication-actions button,
.media-actions a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 29px;
  padding: 5px 10px;
  background: var(--color-surface);
  color: var(--color-link);
  border: 0;
  border-radius: 999px;
  font-size: 11px;
  line-height: 1;
  cursor: pointer;
}

.publication-actions a:hover,
.publication-actions button:hover,
.media-actions a:hover {
  background: var(--color-surface-strong);
  color: var(--color-link-hover);
  text-decoration: none;
}

.load-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin: 25px 0 4px;
}

.load-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 18px;
  background: #ffffff;
  color: var(--color-primary);
  border: 1px solid var(--color-primary);
  border-radius: var(--radius-sm);
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.load-button:hover {
  background: var(--color-primary);
  color: #ffffff;
  text-decoration: none;
}

.load-controls > a:not(.load-button) {
  font-size: 12px;
}

.see-more-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 32px 0 8px;
}

.see-more-controls[hidden],
.see-more-artifacts[hidden],
.see-more-all[hidden] {
  display: none;
}

.see-more-artifacts,
.see-more-all {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  font-family: var(--font-secondary);
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

.see-more-artifacts {
  background: var(--color-primary);
  color: #ffffff;
  border: 1px solid var(--color-primary);
}

.see-more-artifacts:hover {
  background: var(--color-primary-hover);
  border-color: var(--color-primary-hover);
}

.see-more-all {
  background: #ffffff;
  color: var(--color-link);
  border: 1px solid var(--color-border);
}

.see-more-all:hover {
  background: var(--color-surface);
  color: var(--color-link-hover);
  border-color: var(--color-primary);
}

.scholar-link {
  margin: 15px 0 0;
  font-size: 12px;
  text-align: center;
}

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

.media-card {
  min-width: 0;
}

.media-player {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #000000;
  border-radius: var(--radius-sm);
}

.media-player iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.media-card h3 {
  margin: 10px 0 0;
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
}

.media-actions {
  align-items: center;
  margin-top: 7px;
}

.media-actions .link-icon {
  width: 14px;
  height: 14px;
}

.media-actions > span {
  color: var(--color-text-muted);
  font-family: var(--font-secondary);
  font-size: 11px;
}

.background-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 74px;
  max-width: 980px;
  margin: 32px auto 48px;
}

.background-grid h3 {
  margin: 0 0 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--color-border);
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 700;
}

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

.timeline-list li {
  display: grid;
  grid-template-columns: 105px minmax(0, 1fr);
  gap: 0 15px;
  padding: 0 0 18px;
}

.timeline-list span {
  grid-row: 1 / span 2;
  color: var(--color-text-muted);
  font-size: 12px;
}

.timeline-list strong {
  font-family: var(--font-heading);
  font-size: 13.5px;
  font-weight: 600;
}

.timeline-list p {
  margin: 2px 0 0;
  color: var(--color-text-secondary);
  font-size: 12.5px;
  line-height: 1.4;
}

.site-footer {
  margin-top: 56px;
  background: var(--color-primary);
  color: #ffffff;
}

.footer-main {
  display: grid;
  grid-template-columns: minmax(210px, 0.85fr) minmax(360px, 1.55fr) minmax(170px, 0.65fr);
  column-gap: 44px;
  row-gap: 18px;
  align-items: start;
  padding-top: 32px;
  padding-bottom: 16px;
}

.footer-main p {
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 13px;
  line-height: 1.4;
}

.footer-main h2 {
  margin: 0 0 8px;
  color: #ffffff;
  font-family: var(--font-secondary);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-brand-column {
  display: grid;
  align-content: start;
  gap: 18px;
}

.footer-brand img {
  width: 64px;
  height: auto;
  flex: 0 0 auto;
  filter: drop-shadow(0 5px 8px rgba(9, 39, 63, 0.2));
}

.footer-brand p {
  margin: 0;
  color: #ffffff;
  font-family: var(--font-secondary);
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
}

.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 0;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: #ffffff;
  color: var(--color-primary);
  border-radius: 3px;
  transition: background-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.footer-social a:hover {
  background: #dcebf6;
  color: var(--color-primary-hover);
  text-decoration: none;
  transform: translateY(-2px);
}

.footer-social .link-icon {
  width: 18px;
  height: 18px;
}

.footer-blogs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-content: start;
  gap: 8px 18px;
}

.footer-blogs h2 {
  grid-column: 1 / -1;
}

.footer-blog-link {
  display: block;
  min-width: 0;
  padding-left: 10px;
  border-left: 2px solid rgba(255, 255, 255, 0.34);
  color: #ffffff;
}

.footer-blog-link strong,
.footer-blog-link time {
  display: block;
}

.footer-blog-link strong {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
}

.footer-blog-link time {
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 11px;
}

.footer-blog-link:hover,
.footer-blog-link:focus-visible {
  border-left-color: #ffffff;
  color: #ffffff;
  text-decoration: none;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(2, max-content);
  align-items: start;
  gap: 3px 18px;
}

.footer-links h2 {
  grid-column: 1 / -1;
}

.footer-links a {
  color: #ffffff;
  font-size: 13px;
  font-weight: 400;
}

.footer-links a span {
  margin-right: 6px;
  font-family: var(--font-secondary);
  font-size: 18px;
}

.footer-legal {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 24px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.75);
  font-size: 11px;
  white-space: nowrap;
}

.footer-back-to-top {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: #ffffff;
  color: var(--color-primary);
  border-radius: 50%;
  font-family: var(--font-secondary);
  font-size: 25px;
  font-weight: 600;
}

.footer-back-to-top:hover {
  background: #2a89ca;
  color: #ffffff;
  text-decoration: none;
}

.collection-page,
.article-page,
.not-found-page {
  min-height: 65vh;
  padding: 56px 0 72px;
}

.collection-header,
.article-header {
  margin-bottom: 42px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--color-border);
}

.collection-kicker,
.article-kicker,
.collection-meta,
.article-meta {
  margin: 0 0 5px;
  color: var(--color-text-muted);
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.collection-header h1,
.article-header h1,
.not-found-page h1 {
  margin: 0;
  font-family: var(--font-heading);
  font-size: clamp(31px, 5vw, 48px);
  line-height: 1.15;
}

.collection-intro,
.article-description {
  max-width: 720px;
  margin: 12px 0 0;
  color: var(--color-text-secondary);
  font-size: 17px;
}

.article-meta {
  margin-top: 15px;
}

.collection-list {
  display: grid;
  gap: 0;
}

.collection-item {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 24px;
  padding: 24px 0;
  border-bottom: 1px solid #e5e5e5;
}

.collection-item:first-child {
  padding-top: 0;
}

.collection-image {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
}

.collection-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.collection-item h2 {
  margin: 0 0 6px;
  font-family: var(--font-heading);
  font-size: 20px;
  line-height: 1.3;
}

.collection-item p:not(.collection-meta) {
  margin: 0 0 8px;
  color: var(--color-text-secondary);
  font-size: 14px;
}

.read-link {
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 600;
}

.article-container {
  max-width: 920px;
}

.article-header {
  max-width: 820px;
}

.article-lead-image {
  width: min(100%, 520px);
  max-height: 420px;
  margin: 0 0 34px;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

.article-podcasts .article-lead-image {
  width: 100%;
  max-height: none;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center;
}

.article-content {
  color: #2d2d2d;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.72;
}

.article-content h2,
.article-content h3,
.article-content h4 {
  color: var(--color-text);
  font-family: var(--font-heading);
  line-height: 1.3;
}

.article-content h2 {
  margin: 2.2em 0 0.65em;
  font-size: 27px;
}

.article-content h3 {
  margin: 1.8em 0 0.55em;
  font-size: 21px;
}

.article-content p,
.article-content ul,
.article-content ol {
  max-width: 780px;
}

.article-content img,
.article-content video,
.article-content iframe {
  max-width: 100%;
}

.article-content iframe {
  width: 100%;
}

.article-content pre {
  max-width: 100%;
  overflow-x: auto;
  padding: 18px;
  background: #1d2730;
  color: #f3f4f6;
  border-radius: var(--radius-sm);
}

.article-content code {
  font-size: 0.88em;
}

.article-content blockquote {
  margin-left: 0;
  padding-left: 18px;
  color: var(--color-text-secondary);
  border-left: 3px solid var(--color-primary);
}

.article-content table {
  display: block;
  max-width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
}

.article-content th,
.article-content td {
  padding: 8px 10px;
  border: 1px solid var(--color-border);
}

.article-end {
  display: flex;
  justify-content: space-between;
  width: min(calc(100% - 40px), 920px);
  margin: 45px auto 0;
  padding-top: 20px;
  border-top: 1px solid var(--color-border);
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 600;
}

.not-found-page .load-button {
  margin-top: 14px;
}

@media (max-width: 1100px) {
  .project-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .profile-layout {
    gap: 36px;
  }

  .footer-main {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .profile-layout {
    grid-template-columns: 1fr;
  }

  .current-work {
    padding: 20px 0 0;
    border-top: 1px solid var(--color-border);
    border-left: 0;
  }

  .current-work ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px 28px;
  }

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

}

@media (max-width: 760px) {
  .site-container {
    width: min(calc(100% - 30px), var(--container));
  }

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

  .main-navigation {
    position: fixed;
    top: 54px;
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 7px 15px 14px;
    background: #ffffff;
    border-bottom: 1px solid var(--color-border);
  }

  .main-navigation.is-open {
    display: flex;
  }

  .main-navigation a {
    padding: 12px 4px;
    border-bottom: 1px solid #eeeeee;
  }

  .member-page {
    padding-top: 30px;
  }

  .profile-header {
    gap: 20px;
  }

  .profile-photo-wrap {
    flex-basis: 150px;
  }

  .profile-photo {
    width: 150px;
    height: 150px;
  }

  .profile-copy h1 {
    font-size: 28px;
  }

  .section-navigation ul {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
    padding: 6px 0;
  }

  .section-navigation li {
    text-align: center;
  }

  .section-navigation a {
    display: block;
    padding: 5px;
  }

  .member-section {
    padding-top: 44px;
  }

  .software-list,
  .background-grid {
    grid-template-columns: 1fr;
  }

  .background-grid {
    gap: 34px;
  }

  .software-heading {
    display: block;
  }

  .software-heading p {
    margin-top: 4px;
  }

  .footer-main {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .footer-links {
    justify-content: flex-start;
  }

  .footer-legal {
    justify-content: space-between;
  }
}

@media (max-width: 575px) {
  html {
    scroll-padding-top: 148px;
  }

  .site-container,
  .article-end {
    width: min(calc(100% - 24px), var(--container));
  }

  .profile-header {
    display: block;
  }

  .profile-photo-wrap {
    margin-bottom: 17px;
  }

  .profile-photo {
    width: 138px;
    height: 138px;
  }

  .profile-copy h1 {
    margin-top: 0;
  }

  .current-work ul,
  .project-grid,
  .media-grid {
    grid-template-columns: 1fr;
  }

  .footer-blogs {
    grid-template-columns: 1fr;
  }

  .project-grid {
    gap: 27px;
  }

  .section-navigation {
    top: 54px;
  }

  .member-section-heading {
    font-size: 21px;
  }

  .publication-row {
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 13px;
    min-height: 140px;
  }

  .publication-thumbnail,
  .publication-thumbnail img,
  .paper-image-needed {
    width: 96px;
  }

  .publication-thumbnail img,
  .paper-image-needed {
    height: 124px;
  }

  .paper-image-needed svg {
    width: 30px;
    height: 40px;
  }

  .paper-image-needed span {
    font-size: 8px;
  }

  .publication-details h3 {
    font-size: 15px;
  }

  .publication-authors,
  .publication-venue {
    font-size: 12px;
  }

  .publication-actions {
    margin-top: 7px;
  }

  .publication-actions a,
  .publication-actions button {
    min-height: 27px;
    padding: 5px 8px;
    font-size: 10px;
  }

  .collection-page,
  .article-page,
  .not-found-page {
    padding-top: 38px;
  }

  .collection-item {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .collection-image {
    max-width: 280px;
  }

  .article-header h1 {
    font-size: 32px;
  }

  .article-content {
    font-size: 15px;
  }

}

@media (max-width: 380px) {
  .publication-row {
    display: block;
  }

  .publication-thumbnail {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
