@import url("https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=DM+Sans:wght@300;400;500;600;700&family=Space+Mono:wght@400;700&display=swap");

:root {
  color-scheme: light;
  --bg: #f8ffff;
  --bg-soft: #eaffff;
  --surface: rgba(255, 255, 255, 0.82);
  --surface-strong: #ffffff;
  --ink: #0b2020;
  --muted: #567374;
  --line: rgba(0, 181, 184, 0.18);
  --teal: #A2F8F6;
  --teal-soft: rgba(162, 248, 246, 0.32);
  --teal-deep: #008e91;
  --aqua: #A2F8F6;
  --blue: #6ee8e5;
  --violet: #A2F8F6;
  --shadow: 0 24px 80px rgba(0, 142, 145, 0.12);
  --radius: 28px;
  --max: 1180px;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #071112;
  --bg-soft: #0d1e20;
  --surface: rgba(14, 30, 32, 0.78);
  --surface-strong: #102527;
  --ink: #eafffd;
  --muted: #95bfc1;
  --line: rgba(126, 248, 242, 0.18);
  --teal: #A2F8F6;
  --teal-soft: rgba(162, 248, 246, 0.14);
  --teal-deep: #4dd6d2;
  --blue: #8db5ff;
  --violet: #b4aaff;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.36);
}

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

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    linear-gradient(130deg, rgba(162, 248, 246, 0.24), transparent 34%),
    linear-gradient(210deg, rgba(162, 248, 246, 0.16), transparent 42%),
    var(--bg);
  color: var(--ink);
  font-family: "DM Sans", Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  overflow-x: hidden;
}

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

a:hover,
a:focus {
  color: var(--teal-deep);
}

img {
  max-width: 100%;
  height: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  width: min(calc(100% - 28px), 1240px);
  margin: 14px auto 0;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface-strong) 82%, transparent);
  box-shadow: 0 16px 50px rgba(18, 102, 106, 0.11);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  color: var(--ink);
  text-decoration: none;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 34% 26%, rgba(255, 255, 255, 0.94) 0 8%, transparent 25%),
    linear-gradient(135deg, var(--teal), var(--blue));
  color: #061112;
  font-family: "DM Serif Display", Georgia, serif;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.01em;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.5);
}

.brand-copy strong {
  font-size: 16px;
  font-weight: 700;
}

.nav-menu {
  display: flex;
  justify-content: center;
  gap: 6px;
  min-width: 0;
}

.nav-menu a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 0 13px;
  text-decoration: none;
  white-space: nowrap;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.nav-menu a:hover,
.nav-menu a:focus {
  color: var(--ink);
  background: var(--teal-soft);
}

.nav-menu a.active {
  background: var(--ink);
  color: var(--bg);
}

.nav-actions {
  display: inline-flex;
  gap: 8px;
}

.nav-toggle,
.search-toggle,
.theme-toggle {
  appearance: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 14px;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px 0;
  background: currentColor;
}

.nav-toggle b {
  font-size: 13px;
}

.theme-toggle,
.search-toggle {
  position: relative;
  width: 42px;
  height: 42px;
}

.theme-toggle span {
  position: absolute;
  inset: 11px;
  border-radius: 50%;
  background: linear-gradient(90deg, var(--ink) 0 48%, transparent 48% 100%);
  border: 2px solid var(--ink);
}

.search-toggle::before {
  content: "";
  position: absolute;
  inset: 11px 14px 15px 10px;
  border: 3px solid currentColor;
  border-radius: 50%;
}

.search-toggle::after {
  content: "";
  position: absolute;
  right: 10px;
  bottom: 11px;
  width: 11px;
  height: 3px;
  border-radius: 99px;
  background: currentColor;
  transform: rotate(45deg);
}

.site-search {
  display: none;
  width: min(calc(100% - 36px), 760px);
  margin: 12px auto 0;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface-strong);
  padding: 18px;
  box-shadow: var(--shadow);
}

.site-search.open {
  display: block;
}

.site-search label {
  display: grid;
  gap: 8px;
  font-weight: 700;
}

.site-search input,
.form-shell input,
.form-shell select,
.form-shell textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface-strong);
  color: var(--ink);
  font: inherit;
  line-height: 1.35;
  padding: 12px 14px;
}

.form-shell input[type="file"] {
  padding: 11px 14px;
}

.honeypot {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}

.search-results {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.search-results a {
  display: block;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--bg-soft);
  padding: 12px 14px;
  text-decoration: none;
}

.hero {
  position: relative;
  min-height: clamp(420px, 66vh, 720px);
  display: grid;
  align-items: center;
  overflow: hidden;
  padding: 120px 24px 80px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: auto -10% -35% 36%;
  height: 62%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(162, 248, 246, 0.24), transparent 66%);
  filter: blur(20px);
  pointer-events: none;
}

.bio-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.82;
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: min(100%, var(--max));
  margin: 0 auto;
}

.hero-eyebrow,
.section-label {
  margin: 0 0 18px;
  color: var(--teal-deep);
  font-family: "Space Mono", monospace;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 880px;
  margin: 0;
  font-family: "DM Serif Display", Georgia, serif;
  font-size: clamp(48px, 9vw, 118px);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 0.94;
}

.hero-subtitle {
  max-width: 680px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: clamp(18px, 2.1vw, 24px);
  font-weight: 400;
  line-height: 1.55;
}

.hero-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 34px;
}

.hero-metrics span {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  padding: 9px 14px;
  backdrop-filter: blur(12px);
}

.hero-metrics strong {
  color: var(--ink);
}

.wrapper {
  width: min(calc(100% - 36px), var(--max));
  margin: 0 auto;
  padding: 58px 0 90px;
}

.content-layout {
  display: block;
}

.content-layout.has-sidebar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 290px;
  gap: 34px;
  align-items: start;
}

.page-content {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: clamp(24px, 4vw, 52px);
  backdrop-filter: blur(14px);
}

.is-home .page-content,
.page-research-programs .page-content,
.page-ourteam .page-content,
.page-ourteam-activity .page-content {
  border: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
  backdrop-filter: none;
}

.page-content::after {
  content: "";
  display: block;
  clear: both;
}

h2,
h3,
h4,
h5,
h6 {
  color: var(--ink);
  font-family: "DM Serif Display", Georgia, serif;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.08;
}

h2 {
  margin: 34px 0 18px;
  font-size: clamp(32px, 4vw, 52px);
}

h3 {
  margin: 30px 0 14px;
  font-size: clamp(24px, 3vw, 34px);
}

h4 {
  margin: 24px 0 12px;
  font-size: clamp(21px, 2.4vw, 28px);
}

p,
ul,
ol {
  margin: 0 0 22px;
}

p,
li {
  color: var(--muted);
}

li {
  margin-bottom: 10px;
}

.page-content > ul,
.page-content > ol {
  padding-left: 24px;
}

.alignleft,
.alignright {
  float: left;
  max-width: min(38%, 380px);
  margin: 6px 24px 18px 0;
}

.alignright {
  float: right;
  margin: 6px 0 18px 24px;
}

.aligncenter,
.size-full {
  display: block;
  margin: 0 auto 26px;
}

.wp-image-169 {
  max-width: min(620px, 100%);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.is-home .page-content > p:first-child {
  overflow: hidden;
  padding: 0;
  background: transparent;
}

.is-home .page-content > p:first-child img {
  width: 100%;
  max-width: none;
  border-radius: 0;
  box-shadow: none;
}

.bu-slideshow,
.bu-slideshow-slides ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  padding: 0;
  margin: 28px 0;
  list-style: none;
}

.bu-slideshow li,
.slide {
  margin: 0;
}

.bu-slide-container,
.bu-slideshow li {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface-strong);
  box-shadow: 0 12px 36px rgba(15, 76, 80, 0.09);
}

.bu-slide-container img,
.bu-slideshow img {
  display: block;
  width: 100%;
}

.home-logo-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: 0 14px 42px rgba(15, 76, 80, 0.08);
  padding: 18px;
}

.home-logo-strip img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  border-radius: 16px;
  background: #fff;
}

.slideshow-loader,
.bu-slideshow-navigation-container {
  display: none;
}

.sidebar {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
  padding: 22px;
  box-shadow: var(--shadow);
}

.sidebar h2 {
  margin: 0 0 12px;
  font-size: 26px;
}

.sidebar ul {
  padding-left: 20px;
  margin-bottom: 0;
}

.notice-panel,
.portal-grid article,
.post-card,
.form-shell {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
  padding: 24px;
  box-shadow: 0 14px 42px rgba(15, 76, 80, 0.08);
}

.notice-panel h2,
.form-shell h2 {
  margin-top: 0;
}

.button-link,
.form-shell button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--teal), var(--blue));
  color: #061112;
  padding: 10px 18px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.button-link:hover,
.button-link:focus,
.form-shell button:hover,
.form-shell button:focus {
  color: #061112;
  filter: saturate(1.15) brightness(1.03);
}

.form-shell {
  display: grid;
  gap: 18px;
  margin-top: 28px;
}

.form-shell label {
  display: grid;
  gap: 6px;
  font-weight: 700;
}

.field-grid,
.contact-grid,
.portal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.portal-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 20px;
}

fieldset {
  border: 1px solid var(--line);
  border-radius: 18px;
  margin: 0;
  padding: 16px;
}

legend {
  padding: 0 6px;
  font-weight: 700;
}

.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 16px;
}

.checkbox-grid label,
fieldset > label {
  display: inline-flex;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 8px;
  font-weight: 400;
}

input[type="checkbox"] {
  width: 16px;
  height: 16px;
}

.form-note,
.post-meta {
  color: var(--muted);
  font-size: 14px;
}

.optional {
  color: var(--muted);
  font-weight: 500;
}

.form-success {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
  padding: 24px;
  box-shadow: 0 14px 42px rgba(15, 76, 80, 0.08);
}

.form-success h2 {
  margin-top: 0;
}

.skill-grid label {
  align-items: flex-start;
  line-height: 1.35;
}

.research-image-gallery {
  clear: both;
  margin-top: 54px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
}

.research-spotlight {
  clear: both;
  margin-bottom: 24px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: 0 14px 42px rgba(15, 76, 80, 0.08);
  padding: 24px;
}

.research-spotlight h2 {
  margin-top: 0;
}

.research-project-card {
  display: grid;
  grid-template-columns: minmax(220px, 0.42fr) minmax(0, 0.58fr);
  gap: clamp(20px, 3vw, 34px);
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: 0 14px 42px rgba(15, 76, 80, 0.08);
  padding: clamp(20px, 3vw, 30px);
  margin-bottom: 24px;
}

.research-project-card figure {
  display: grid;
  place-items: center;
  margin: 0;
  min-width: 0;
}

.research-project-card img {
  display: block;
  width: 100%;
  max-height: 360px;
  object-fit: contain;
  border-radius: 18px;
  background: var(--surface-strong);
}

.research-project-card h2 {
  margin-top: 0;
  font-size: clamp(28px, 3.3vw, 46px);
}

.research-project-card p:last-child {
  margin-bottom: 0;
}

.research-image-gallery > p {
  max-width: 720px;
}

.image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin-top: 22px;
}

.image-grid figure {
  overflow: hidden;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: 0 14px 42px rgba(15, 76, 80, 0.10);
}

.image-grid img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #111;
}

.image-grid figcaption {
  padding: 11px 14px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
}

.page-research-programs .page-content > p,
.page-research-programs .page-content > h4,
.page-research-programs .research-image-gallery,
.is-home .page-content > h2,
.is-home .page-content > p,
.is-home .page-content > ul,
.is-home .bu-slideshow-container {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: 0 14px 42px rgba(15, 76, 80, 0.08);
  padding: 24px;
}

.page-research-programs .page-content > h4,
.page-research-programs .page-content > p {
  display: flow-root;
}

.is-home .page-content > h2 {
  margin-top: 0;
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  border-bottom: 0;
}

.is-home .page-content > h2 + p,
.is-home .page-content > h2 + p + p {
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}

.page-ourteam .page-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(285px, 1fr));
  gap: 18px;
}

.page-ourteam .page-content > h3 {
  grid-column: 1 / -1;
  margin: 30px 0 0;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
  font-size: clamp(28px, 4vw, 44px);
}

.page-ourteam .page-content > h3:first-child {
  margin-top: 0;
}

.page-ourteam .page-content > p {
  display: block;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: 0 14px 42px rgba(15, 76, 80, 0.08);
  padding: 18px;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.62;
}

.page-ourteam .page-content > p:first-of-type {
  grid-column: 1 / -1;
}

.page-ourteam .page-content > p:nth-of-type(2) {
  grid-column: 1 / -1;
}

.page-ourteam .page-content > p strong {
  display: block;
  margin-bottom: 8px;
  color: var(--ink);
  font-family: "DM Serif Display", Georgia, serif;
  font-size: 22px;
  line-height: 1.08;
}

.page-ourteam .page-content > p img.alignleft {
  display: block;
  width: 118px;
  height: 150px;
  float: none;
  object-fit: cover;
  border-radius: 18px;
  margin: 0 0 14px;
  box-shadow: 0 10px 26px rgba(15, 76, 80, 0.14);
}

.activity-feed {
  clear: both;
  margin-top: 44px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(255px, 1fr));
  gap: 16px;
}

.activity-feed h2 {
  grid-column: 1 / -1;
  border-top: 1px solid var(--line);
  padding-top: 30px;
}

.post-card {
  margin-bottom: 16px;
}

.post-card time {
  display: block;
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 4px;
}

.post-card h2 {
  margin: 0 0 8px;
  font-size: 28px;
}

.post-card p {
  margin-bottom: 0;
}

.activity-spotlight {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 22px;
  align-items: stretch;
  margin-bottom: 28px;
}

.activity-spotlight .feature-photo,
.activity-spotlight .feature-copy {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: 0 14px 42px rgba(15, 76, 80, 0.08);
}

.activity-spotlight .feature-photo img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 340px;
  object-fit: cover;
}

.activity-spotlight .feature-copy {
  display: grid;
  align-content: center;
  padding: clamp(24px, 4vw, 42px);
}

.activity-spotlight .feature-copy h2 {
  margin-top: 0;
}

.activity-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  margin: 0 0 34px;
}

.activity-photo {
  appearance: none;
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  padding: 0;
  color: inherit;
  text-align: left;
  cursor: zoom-in;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(15, 76, 80, 0.09);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.activity-photo:hover,
.activity-photo:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 18px 42px rgba(15, 76, 80, 0.14);
}

.activity-photo img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.activity-photo span {
  display: block;
  padding: 0 14px 14px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.35;
}

.photo-lightbox[hidden] {
  display: none;
}

.photo-lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(5, 18, 19, 0.82);
}

.photo-lightbox figure {
  width: min(100%, 1040px);
  margin: 0;
}

.photo-lightbox img {
  display: block;
  width: 100%;
  max-height: 78vh;
  object-fit: contain;
  border-radius: 18px;
  background: var(--surface);
}

.photo-lightbox figcaption {
  color: #fff;
  margin-top: 12px;
  text-align: center;
  font-weight: 700;
}

.lightbox-close {
  position: absolute;
  top: 22px;
  right: 22px;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 999px;
  background: rgba(255,255,255,0.12);
  color: #fff;
  padding: 9px 14px;
  font-weight: 800;
  cursor: pointer;
}

.resource-list {
  display: grid;
  gap: 10px;
  padding-left: 0;
  list-style: none;
}

.resource-list li {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  padding: 12px 14px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  border-top: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg-soft) 70%, transparent);
  padding: 34px max(24px, calc((100vw - var(--max)) / 2 + 24px));
}

.site-footer p {
  margin: 0;
  color: var(--ink);
  font-weight: 800;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

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

  .bio-canvas {
    display: none;
  }
}

@media (max-width: 1080px) {
  .site-header {
    grid-template-columns: auto auto 1fr;
    border-radius: 28px;
  }

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

  .nav-menu {
    display: none;
    grid-column: 1 / -1;
    justify-content: stretch;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .nav-menu.open {
    display: grid;
  }

  .nav-menu a {
    justify-content: center;
    background: var(--bg-soft);
  }

  .nav-actions {
    justify-self: end;
  }
}

@media (max-width: 860px) {
  .content-layout.has-sidebar,
  .field-grid,
  .contact-grid,
  .portal-grid,
  .home-logo-strip,
  .research-project-card,
  .activity-spotlight {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 430px;
    padding-top: 110px;
  }

  .alignleft,
  .alignright {
    float: none;
    display: block;
    max-width: 100%;
    margin: 0 auto 22px;
  }
}

@media (max-width: 620px) {
  .site-header {
    width: min(calc(100% - 18px), 1240px);
    margin-top: 9px;
  }

  .nav-menu {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-inline: 18px;
  }

  .wrapper {
    width: min(calc(100% - 24px), var(--max));
  }

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

  .site-footer {
    display: grid;
  }
}
