/* mertgezek.com */

:root {
  --bg: #fbfbf9;
  --surface: #ffffff;
  --text: #1b2230;
  --muted: #586273;
  --line: #dde2e8;
  --accent: #35548c;
  --accent-soft: #e8eef7;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --wrap: 68rem;
  --gutter: 1.25rem;
}

/* Dark colors. Without a choice by the visitor the site follows the device
   setting; the button in the header sets data-theme on <html> (theme.js). */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #10141b;
    --surface: #161b24;
    --text: #e7eaf0;
    --muted: #a3adbd;
    --line: #2a3342;
    --accent: #a9c4ef;
    --accent-soft: #1c2637;
  }
}

:root[data-theme="dark"] {
  --bg: #10141b;
  --surface: #161b24;
  --text: #e7eaf0;
  --muted: #a3adbd;
  --line: #2a3342;
  --accent: #a9c4ef;
  --accent-soft: #1c2637;
  color-scheme: dark;
}

:root[data-theme="light"] {
  color-scheme: light;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--serif);
  font-size: 1.0625rem;
  line-height: 1.65;
  overflow-wrap: break-word;
}

[hidden] {
  display: none !important;
}

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

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  text-decoration-thickness: 2px;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.2;
  margin: 0;
}

h1 {
  font-size: clamp(2.25rem, 7vw, 3.25rem);
  letter-spacing: -0.01em;
}

h2 {
  font-size: clamp(1.5rem, 4vw, 1.85rem);
}

h3 {
  font-size: 1.2rem;
}

p {
  margin: 0 0 1rem;
}

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

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--accent);
  color: var(--bg);
  padding: 0.5rem 0.9rem;
  font-family: var(--sans);
  font-size: 0.9rem;
  z-index: 10;
}

.skip:focus {
  left: 0;
}

/* Header */

.site-header {
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.25rem 0.75rem;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.brand {
  margin-right: auto;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--text);
  text-decoration: none;
}

/* Menu: every link is a pill; the page that is open is filled with the accent
   color. From 60rem up the pills sit in one rounded frame (see the media query
   near the end); on phones the frame holds the list behind the Menu button. */
.site-header nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem;
}

.site-header nav a {
  display: inline-block;
  padding: 0.38rem 0.8rem;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
}

.site-header nav a:hover {
  background: var(--accent-soft);
  color: var(--accent);
}

.site-header nav a[aria-current="page"],
.site-header nav a[aria-current="page"]:hover {
  background: var(--accent);
  color: var(--bg);
}

/* Tighter pills on medium screens, so that the seven links stay on one line. */
@media (min-width: 46rem) and (max-width: 59.99rem) {
  .site-header nav ul {
    gap: 0.1rem;
  }

  .site-header nav a {
    padding: 0.38rem 0.5rem;
  }
}

@media (min-width: 60rem) and (max-width: 67.99rem) {
  .site-header nav a {
    padding: 0.38rem 0.58rem;
  }
}

/* On narrow screens the name and the mode button share the first row and the
   navigation takes the second. */
.site-header nav {
  order: 3;
  flex-basis: 100%;
}

/* Menu button, phones only. theme.js puts "has-js" on <html>; without the
   script the button never shows and the links stay visible as before. */
.nav-toggle {
  display: none;
  order: 2;
  align-self: center;
  align-items: center;
  gap: 0.4rem;
  height: 1.9rem;
  padding: 0 0.7rem 0 0.55rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}

.nav-toggle:hover {
  border-color: var(--muted);
}

.nav-toggle svg {
  width: 1.05rem;
  height: 1.05rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

.nav-toggle .icon-close,
.nav-toggle[aria-expanded="true"] .icon-open {
  display: none;
}

.nav-toggle[aria-expanded="true"] .icon-close {
  display: block;
}

@media (max-width: 45.99rem) {
  .has-js .nav-toggle {
    display: inline-flex;
  }

  .has-js .theme-toggle {
    order: 1;
  }

  .has-js .site-header nav {
    display: none;
  }

  .has-js .site-header.nav-open nav {
    display: block;
    padding-top: 0.7rem;
  }

  .has-js .site-header nav ul {
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 0.15rem;
    padding: 0.3rem;
    background: var(--accent-soft);
    border: 1px solid var(--line);
    border-radius: 14px;
  }

  .has-js .site-header nav a {
    display: block;
    padding: 0.62rem 0.85rem;
    font-size: 1rem;
    border-radius: 10px;
  }

  .has-js .site-header nav a:hover {
    background: var(--surface);
  }

  .has-js .site-header nav a[aria-current="page"],
  .has-js .site-header nav a[aria-current="page"]:hover {
    background: var(--accent);
    font-weight: 600;
  }
}

/* Mode switch: a small sliding switch. Knob on the left with a sun in light
   mode, on the right with a moon in dark mode. */
.theme-toggle {
  order: 2;
  align-self: center;
  flex: none;
  display: block;
  width: 3.4rem;
  height: 1.9rem;
  padding: 0.2rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--accent-soft);
  cursor: pointer;
}

.theme-toggle:hover {
  border-color: var(--muted);
}

.theme-knob {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.4rem;
  height: 1.4rem;
  border-radius: 50%;
  background: #ffffff;
  color: var(--accent);
  box-shadow: 0 1px 3px rgba(20, 30, 50, 0.3);
  transition: transform 0.22s ease;
}

.theme-knob svg {
  width: 0.95rem;
  height: 0.95rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.theme-knob .icon-moon,
:root[data-theme="dark"] .theme-knob .icon-sun {
  display: none;
}

:root[data-theme="dark"] .theme-knob .icon-moon {
  display: block;
}

:root[data-theme="dark"] .theme-knob {
  transform: translateX(calc(1.6rem - 2px));
  background: var(--accent);
  color: var(--bg);
}

@media (prefers-reduced-motion: reduce) {
  .theme-knob {
    transition: none;
  }
}

/* Sections */

main {
  display: block;
}

.section {
  padding: 2.75rem 0;
  border-top: 1px solid var(--line);
}

.section:first-child {
  border-top: 0;
}

.section > .wrap > h2 {
  margin-bottom: 1.25rem;
}

.lede {
  max-width: 44rem;
}

.prose {
  max-width: 44rem;
}

.more {
  margin: 1.25rem 0 0;
  font-family: var(--sans);
  font-size: 0.95rem;
}

.label {
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 0.6rem;
}

/* Banner at the top of Home: one picture on a black band */

/* Hero */

.hero {
  padding: 2.5rem 0 3rem;
}

/* Phones and tablets: name and title first, then the photo, then the welcome
   text and the links. From 60rem: text on the left, photo on the right. */
.hero .wrap {
  display: flex;
  flex-direction: column;
}

.hero-text {
  display: contents;
}

.hero-welcome,
.hero .profile-links {
  order: 2;
}

.hero-title {
  font-family: var(--sans);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--accent);
  margin: 0.6rem 0 0.35rem;
}

.hero-affiliation {
  font-family: var(--sans);
  font-size: 0.95rem;
  color: var(--muted);
  margin: 0 0 1.25rem;
}

.hero-welcome {
  margin: 0 0 1.4rem;
  max-width: 36rem;
}

.hero-welcome p {
  line-height: 1.6;
  margin: 0 0 0.8rem;
}

.hero-portrait {
  order: 1;
  width: 9.5rem;
}

.hero .hero-portrait {
  margin-bottom: 1.5rem;
}

.honor-figure {
  margin: 0;
}

.honor-figure img {
  width: 100%;
  border-radius: 6px;
}

.profile-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.6rem;
  font-family: var(--sans);
  font-size: 0.9rem;
}

.profile-links a {
  display: inline-block;
  padding: 0.4rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  text-decoration: none;
  background: var(--surface);
}

.profile-links a:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.hero-figure {
  margin: 0;
}

.hero-figure img {
  width: 100%;
  border-radius: 6px;
  background: var(--accent-soft);
}

figcaption {
  font-family: var(--sans);
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--muted);
  margin-top: 0.6rem;
}

figcaption strong {
  color: var(--text);
  font-weight: 600;
}

/* Cards */

.cards {
  display: grid;
  gap: 1.25rem;
  margin-top: 1.75rem;
}

.card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.card .illustration {
  border-bottom: 1px solid var(--line);
}

.card-body {
  padding: 1.1rem 1.2rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}

.card-body p {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.55;
}

.card-body h3 a {
  color: var(--text);
  text-decoration: none;
}

.card-body h3 a:hover {
  color: var(--accent);
  text-decoration: underline;
}

/* Illustrations */

.illustration {
  color: var(--accent);
  background: var(--accent-soft);
}

.illustration svg {
  width: 100%;
}

.il-soft {
  fill: var(--accent-soft);
}

.il-surface {
  fill: var(--surface);
}

.il-fill {
  fill: currentColor;
}

.il-line {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.il-faint {
  opacity: 0.45;
}

.il-text {
  fill: currentColor;
  font-family: var(--sans);
  font-weight: 600;
}

/* Publications */

.pubs {
  display: grid;
  gap: 1.35rem;
  max-width: 50rem;
}

.pub {
  padding-left: 1rem;
  border-left: 2px solid var(--line);
}

.pub-title {
  display: block;
  font-weight: 600;
  line-height: 1.4;
}

.pub-authors,
.pub-venue {
  display: block;
  font-size: 1rem;
  line-height: 1.5;
}

.pub-authors {
  color: var(--muted);
  margin-top: 0.2rem;
}

.pub-authors strong {
  color: var(--text);
  font-weight: 600;
}

.pub-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.75rem;
  margin-top: 0.3rem;
  font-family: var(--sans);
  font-size: 0.85rem;
}

.badge {
  display: inline-block;
  padding: 0.05rem 0.5rem;
  border: 1px solid var(--accent);
  border-radius: 999px;
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Marks unpublished work on the Research page */
.badge-ongoing {
  margin-right: 0.35rem;
  border-color: transparent;
  background: var(--accent-soft);
  font-family: var(--sans);
  line-height: 1.5;
  vertical-align: 0.12em;
}

h2 .badge-ongoing {
  margin: 0 0 0 0.5rem;
  vertical-align: 0.35em;
}

.plain-list {
  display: grid;
  gap: 0.9rem;
  max-width: 50rem;
}

.plain-list li {
  padding-left: 1rem;
  border-left: 2px solid var(--line);
}

.plain-list .note {
  display: block;
  font-family: var(--sans);
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 0.15rem;
}

/* News */

.news {
  display: grid;
  gap: 1.1rem;
  max-width: 50rem;
}

.news-item {
  display: grid;
  gap: 0.1rem;
}

.news-item time {
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.news-item p {
  margin: 0;
}

.news-source {
  font-family: var(--sans);
  font-size: 0.85rem;
  white-space: nowrap;
}

/* Two columns */

.columns {
  display: grid;
  gap: 2.25rem;
}

.columns h3 {
  margin-bottom: 0.75rem;
}

.simple-list {
  display: grid;
  gap: 0.7rem;
}

.simple-list li {
  padding-left: 1rem;
  border-left: 2px solid var(--line);
}

.group + .group {
  margin-top: 1.75rem;
}

.group > h3 {
  margin-bottom: 0.75rem;
}

/* Education on the home page */

.edu {
  display: grid;
  gap: 1.25rem 3rem;
  align-items: start;
}

.edu li {
  padding-left: 1rem;
  border-left: 2px solid var(--line);
}

.edu span {
  display: block;
}

.edu-degree {
  font-weight: 600;
}

.edu-place {
  color: var(--muted);
}

.edu-note {
  margin-top: 0.35rem;
  font-family: var(--sans);
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--muted);
}

/* Research themes */

.theme {
  display: grid;
  gap: 1.5rem;
}

.theme .illustration {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  max-width: 26rem;
}

.theme h2 {
  margin-bottom: 0.9rem;
}

.theme h3 {
  margin: 1.5rem 0 0.75rem;
}

.theme .label {
  margin-top: 1.5rem;
}

/* Highlights and explore tiles (home) */

.highlights {
  display: grid;
  gap: 1.1rem;
}

.highlight {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  overflow: hidden;
}

.highlight-image {
  display: block;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.highlight-image img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.highlight-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1rem 1.15rem 1.15rem;
}

.highlight-kind {
  margin: 0 0 0.55rem;
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
}

.highlight-body h3 {
  margin-bottom: 0.5rem;
  line-height: 1.25;
}

.highlight-body p {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.5;
}

.highlight-body .highlight-kind {
  margin-bottom: 0.55rem;
  font-size: 0.75rem;
}

.highlight-body .highlight-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.25rem 0.75rem;
  margin: auto 0 0;
  font-family: var(--sans);
  font-size: 0.9rem;
}

.highlight-foot time {
  font-size: 0.85rem;
  white-space: nowrap;
}

.highlight-link {
  white-space: nowrap;
}

.highlight-link::after {
  content: " \2192";
}

.tiles {
  display: grid;
  gap: 1rem;
}

.tile {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  height: 100%;
  padding: 1.1rem 1.2rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
}

.tile strong {
  font-size: 1.2rem;
  font-weight: 600;
}

.tile strong::after {
  content: "\00a0\2192";
  color: var(--accent);
}

.tile span {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.5;
}

.tile:hover {
  border-color: var(--accent);
}

.tile:hover strong {
  color: var(--accent);
}

/* Activities */

.activities {
  display: grid;
  gap: 3rem;
  max-width: 56rem;
}

.activity + .activity {
  padding-top: 3rem;
  border-top: 1px solid var(--line);
}

.activity-meta {
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 0.5rem;
}

.activity h2 {
  font-size: clamp(1.3rem, 3.5vw, 1.6rem);
  margin-bottom: 0.75rem;
}

.activity p {
  max-width: 44rem;
}

.photos {
  display: grid;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.photos a {
  display: block;
  border-radius: 6px;
  overflow: hidden;
  background: var(--accent-soft);
}

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

.photos:not(.many) {
  max-width: 36rem;
}

.photos:not(.many) .portrait {
  max-width: 22rem;
}

/* Contact page */

address {
  font-style: normal;
  margin-bottom: 1.25rem;
}

.map {
  display: block;
  width: 100%;
  max-width: 50rem;
  aspect-ratio: 16 / 9;
  min-height: 18rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--accent-soft);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.1rem;
  border: 1px solid var(--accent);
  border-radius: 999px;
  background: var(--accent);
  color: var(--bg);
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
}

.actions li + li .button {
  background: var(--surface);
  color: var(--accent);
}

.button:hover {
  filter: brightness(1.1);
}

.reveal {
  margin: 0.9rem 0 0;
}

.text-button {
  padding: 0;
  border: 0;
  background: none;
  color: var(--accent);
  font-family: var(--sans);
  font-size: 0.9rem;
  text-decoration: underline;
  text-underline-offset: 0.18em;
  cursor: pointer;
}

.contact-list {
  margin-top: 0.9rem;
}

.profile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(11.5rem, 1fr));
  gap: 0.75rem;
  max-width: 56rem;
  font-family: var(--sans);
  font-size: 1rem;
}

.profile-grid a {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.8rem 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
}

.profile-grid a:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.profile-grid .icon {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--accent);
}

.contact-list .note {
  display: inline;
  font-family: var(--sans);
  font-size: 0.85rem;
  color: var(--muted);
  margin-left: 0.4rem;
}

/* Light motion in the illustrations */

@media (prefers-reduced-motion: no-preference) {
  .il-rise {
    animation: il-rise 4.5s ease-in-out infinite alternate;
  }

  .il-bob {
    animation: il-bob 3.2s ease-in-out infinite alternate;
  }

  .il-twinkle {
    animation: il-twinkle 2.8s ease-in-out infinite alternate;
  }
}

@keyframes il-rise {
  from { transform: translateY(5px); }
  to { transform: translateY(-5px); }
}

@keyframes il-bob {
  from { transform: translateY(-3px); }
  to { transform: translateY(4px); }
}

@keyframes il-twinkle {
  from { opacity: 0.35; }
  to { opacity: 1; }
}

/* Videos (the player loads only after a click) */

.videos {
  display: grid;
  gap: 1.25rem;
  max-width: 50rem;
}

.video {
  margin: 0;
}

.video-load,
.video-frame {
  display: flex;
  aspect-ratio: 16 / 9;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.video-load {
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  background: var(--accent-soft);
  color: var(--accent);
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
}

.video-load:hover .play circle {
  fill: var(--accent);
}

.video-load:hover .play path {
  fill: var(--accent-soft);
}

.play {
  width: 3.25rem;
  height: 3.25rem;
}

.play circle {
  fill: var(--surface);
  stroke: currentColor;
  stroke-width: 2;
}

.play path {
  fill: currentColor;
}

.video-frame {
  border: 0;
  background: #000;
}

.interests {
  max-width: 44rem;
  font-size: 1rem;
  color: var(--muted);
}

.interests strong {
  color: var(--text);
  font-weight: 600;
}

h3.sub {
  margin: 2rem 0 1rem;
}

/* Contact and footer */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.75rem 0 2.5rem;
  font-family: var(--sans);
  font-size: 0.9rem;
  color: var(--muted);
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.5rem;
  justify-content: space-between;
}

.site-footer p {
  margin: 0;
}

.site-footer ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 1.4rem;
}

.site-footer a {
  color: var(--muted);
}

.site-footer a:hover {
  color: var(--accent);
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0;
  text-decoration: none;
}

.footer-links a:hover span {
  text-decoration: underline;
}

.icon {
  width: 1.3rem;
  height: 1.3rem;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* The band behind the page titles: Mert's own micrographs, darkened so that
   the white title stays readable. Same in the light and the dark mode. */
.page-head {
  padding: 3.5rem 0 3.25rem;
  background:
    linear-gradient(rgba(6, 10, 20, 0.58), rgba(6, 10, 20, 0.7)),
    #05070d url("../img/research-banner.jpg") center / cover no-repeat;
  color: #fff;
}

.page-head h1 {
  color: #fff;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.55);
}

.page-head p {
  margin: 0.9rem 0 0;
  max-width: 44rem;
  color: #e6eaf2;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.6);
}

.head-actions {
  margin: 1.1rem 0 0.75rem;
}

.head-actions .button {
  padding: 0.45rem 0.95rem;
  font-size: 0.9rem;
}

.head-actions .icon {
  width: 1.2rem;
  height: 1.2rem;
}

.notfound {
  padding: 5rem 0;
}

/* Wider screens */

@media (min-width: 46rem) {
  .edu {
    grid-template-columns: 1.4fr 1fr;
  }

  :root {
    --gutter: 2rem;
  }

  body {
    font-size: 1.125rem;
  }

  .section {
    padding: 3.75rem 0;
  }

  .cards {
    grid-template-columns: repeat(3, 1fr);
  }

  .columns {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }

  .news-item {
    grid-template-columns: 6.5rem 1fr;
    gap: 1rem;
    align-items: baseline;
  }

  .theme {
    grid-template-columns: minmax(0, 17rem) minmax(0, 1fr);
    gap: 2.5rem;
    align-items: start;
  }

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

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

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

  .photos.many {
    grid-template-columns: 1fr 1fr;
  }

  .photos .wide {
    grid-column: 1 / -1;
  }
}

@media (min-width: 60rem) {
  .site-header nav {
    order: 0;
    flex-basis: auto;
    margin-left: auto;
  }

  .site-header nav ul {
    flex-wrap: nowrap;
    padding: 0.28rem;
    background: var(--accent-soft);
    border: 1px solid var(--line);
    border-radius: 999px;
  }

  .site-header nav a {
    white-space: nowrap;
  }

  .site-header nav a:hover {
    background: var(--surface);
  }

  .site-header nav a[aria-current="page"]:hover {
    background: var(--accent);
  }

  .theme-toggle {
    order: 0;
  }

  .hero {
    padding: 4.5rem 0 4.5rem;
  }

  .hero .wrap {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
    gap: 3.5rem;
    align-items: center;
  }

  .hero-text {
    display: block;
  }

  .hero-portrait {
    order: 0;
    width: 100%;
    max-width: 23rem;
    justify-self: end;
  }

  .hero .hero-portrait {
    margin-bottom: 0;
  }

  .theme {
    grid-template-columns: minmax(0, 21rem) minmax(0, 1fr);
    gap: 3.5rem;
  }

  .tiles {
    grid-template-columns: repeat(5, 1fr);
  }

  .highlights {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Light motion. Cards lift a little under the pointer; sections fade in once as
   they scroll into view (theme.js adds "reveal-on" to <html> only when the
   browser can do it and the visitor has not asked for less motion); colors
   change softly when the mode switch is used. */

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .card,
  .tile,
  .highlight {
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  }

  .card:hover,
  .tile:hover,
  .highlight:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(20, 30, 50, 0.12);
  }
}

.reveal-on main > .section > .wrap {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.reveal-on main > .section.is-visible > .wrap {
  opacity: 1;
  transform: none;
}

.theme-anim,
.theme-anim *,
.theme-anim *::before,
.theme-anim *::after {
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease, fill 0.25s ease, stroke 0.25s ease !important;
}

@media print {
  .site-header nav,
  .theme-toggle,
  .nav-toggle,
  .skip,
  .profile-links {
    display: none;
  }

  body {
    background: #fff;
    color: #000;
  }

  .page-head {
    padding: 1.5rem 0 0.5rem;
    background: none;
  }

  .page-head h1,
  .page-head p {
    color: #000;
    text-shadow: none;
  }

  .reveal-on main > .section > .wrap {
    opacity: 1;
    transform: none;
  }
}
