:root {
  --background: #ffffff;
  --surface: #f7f7f4;
  --text: #171717;
  --muted: #767676;
  --soft: #ececea;
  --line: #e6e6e1;
  --accent: #d95f49;
  --blue: #4d74a8;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: light;
}

body {
  background: var(--background);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  letter-spacing: 0;
  line-height: 1.65;
  margin: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.container {
  margin: 0 auto;
  width: min(1140px, calc(100% - 40px));
}

.content {
  min-height: 56vh;
}

.site-header {
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
}

.site-header .container {
  align-items: center;
  display: flex;
  gap: 28px;
  justify-content: space-between;
  min-height: 82px;
}

.site-logo {
  align-items: center;
  display: inline-flex;
  gap: 10px;
  font-size: 1.05rem;
  font-weight: 800;
  white-space: nowrap;
}

.site-logo-secondary {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 650;
}

.site-nav {
  align-items: center;
  display: flex;
  gap: 22px;
  justify-content: flex-end;
}

.site-nav a,
.nav-trigger {
  background: transparent;
  border: 0;
  color: #333333;
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-size: 0.96rem;
  letter-spacing: 0;
  padding: 0;
}

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

.nav-dropdown {
  position: relative;
}

.nav-submenu {
  background: var(--background);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: none;
  min-width: 150px;
  padding: 10px;
  position: absolute;
  right: 0;
  top: 100%;
}

.nav-dropdown:hover .nav-submenu,
.nav-dropdown:focus-within .nav-submenu {
  display: grid;
  gap: 8px;
}

.hero {
  padding: 78px 0 70px;
}

.hero-inner {
  align-items: center;
  display: grid;
  gap: 58px;
  grid-template-columns: 0.42fr 0.58fr;
}

.hero-image {
  border-radius: 8px;
  overflow: hidden;
}

.hero-image img {
  aspect-ratio: 4 / 5;
  object-fit: cover;
  width: 100%;
}

.hero-image picture,
.project-card picture,
.post-card picture,
.footer-gallery picture,
.contact-layout > picture,
.cat-card picture,
.cat-memory-feature > picture,
.cat-litter-gallery picture,
.instagram-grid picture {
  display: block;
  width: 100%;
}

.hero-copy h1 {
  font-size: 4.7rem;
  font-weight: 850;
  letter-spacing: 0;
  line-height: 1.02;
  margin: 0;
  max-width: 820px;
}

.hero-copy p {
  color: var(--muted);
  font-size: 1.1rem;
  margin: 22px 0 0;
}

.section {
  padding: 42px 0 68px;
}

.page-section {
  padding-top: 16px;
}

.section-head {
  align-items: flex-end;
  display: flex;
  gap: 24px;
  justify-content: space-between;
  margin-bottom: 28px;
}

.section-head h2,
.page-head h1,
.post-head h1,
.project-head h1 {
  font-size: 2.55rem;
  font-weight: 820;
  letter-spacing: 0;
  line-height: 1.08;
  margin: 0;
}

.section-head p,
.page-head p,
.project-head p,
.post-card p,
.project-card span,
.prose,
.side-panel,
.caption-strip,
.contact-list div {
  color: var(--muted);
}

.section-head a,
.back-link {
  color: var(--accent);
  font-weight: 750;
  white-space: nowrap;
}

.eyebrow,
.post-card-tags,
.card-content p,
.post-tags a {
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 820;
  letter-spacing: 0;
  margin: 0 0 8px;
  text-transform: lowercase;
}

.project-card .card-content .project-status {
  background: var(--text);
  border-radius: 999px;
  color: white;
  display: inline-flex;
  font-size: 0.68rem;
  letter-spacing: 0.02em;
  margin-left: 8px;
  padding: 2px 7px;
  text-transform: uppercase;
  vertical-align: 1px;
}

.project-grid,
.post-card-grid {
  display: grid;
  gap: 28px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.project-card,
.post-card {
  color: inherit;
  display: block;
}

.project-card img,
.post-card img {
  aspect-ratio: 16 / 11;
  border-radius: 8px;
  object-fit: cover;
  overflow: hidden;
  transition: filter 180ms ease, transform 180ms ease;
  width: 100%;
}

.project-placeholder {
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--accent);
  display: flex;
  aspect-ratio: 16 / 11;
  font-size: clamp(8rem, 16vw, 13rem);
  font-weight: 850;
  justify-content: center;
  line-height: 1;
  width: 100%;
}

.project-placeholder-detail {
  aspect-ratio: 4 / 3;
  font-size: clamp(9rem, 16vw, 14rem);
}

.project-card-proteocraft img {
  background: var(--surface);
  object-fit: contain;
}

.project-card:hover img,
.post-card:hover img {
  filter: saturate(1.08);
  transform: translateY(-2px);
}

.card-content,
.post-card div {
  padding: 16px 2px 0;
}

.project-card h3,
.post-card h3,
.side-panel h2 {
  font-size: 1.28rem;
  letter-spacing: 0;
  line-height: 1.22;
  margin: 0 0 8px;
}

.all-projects,
.blog-grid {
  padding-bottom: 52px;
}

.page-head {
  padding: 60px 0 38px;
}

.page-head p {
  font-size: 1.08rem;
  margin: 10px 0 0;
  max-width: 690px;
}

.project-page {
  padding: 48px 0 78px;
}

.project-head {
  align-items: center;
  display: grid;
  gap: 46px;
  grid-template-columns: minmax(0, 1fr) 380px;
  margin-top: 22px;
}

.project-head img {
  aspect-ratio: 4 / 3;
  background: var(--surface);
  border-radius: 8px;
  object-fit: contain;
  width: 100%;
}

.meta-row,
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.meta-row span,
.tag-list span {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #333333;
  font-size: 0.82rem;
  font-weight: 720;
  padding: 5px 10px;
}

.project-content {
  display: grid;
  gap: 54px;
  grid-template-columns: minmax(0, 1fr) 300px;
  margin-top: 58px;
}

.prose {
  max-width: none;
}

.prose h2 {
  color: var(--text);
  font-size: 1.35rem;
  letter-spacing: 0;
  margin-top: 32px;
}

.project-visuals {
  display: grid;
  gap: 22px;
  margin: 0 0 34px;
}

.project-figure-pair {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.project-figure {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  margin: 0;
  overflow: hidden;
  padding: 14px;
}

.project-figure img {
  background: white;
  border-radius: 6px;
  height: auto;
  object-fit: contain;
  width: 100%;
}

.project-figure-scroll {
  overflow-x: auto;
}

.project-figure-panorama {
  overflow-x: auto;
}

.project-figure-panorama img {
  max-width: none;
  min-width: 960px;
  width: 100%;
}

.project-figure-compact img {
  margin: 0 auto;
  max-width: 920px;
  width: min(100%, 920px);
}

.project-figure figcaption {
  color: var(--muted);
  font-size: 0.92rem;
  margin-top: 10px;
}

.resource-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 30px;
}

.resource-links a {
  align-items: center;
  background: var(--text);
  border-radius: 999px;
  color: white;
  display: inline-flex;
  font-size: 0.9rem;
  font-weight: 760;
  min-height: 38px;
  padding: 8px 14px;
}

.side-panel {
  border-left: 1px solid var(--line);
  padding-left: 22px;
}

.side-panel a {
  border-bottom: 1px solid var(--line);
  color: var(--text);
  display: block;
  font-weight: 700;
  padding: 9px 0;
}

.post-head {
  padding: 62px 0 28px;
}

.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 12px;
}

.post-meta {
  align-items: center;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 12px 0 0;
}

.post-meta a {
  color: var(--text);
  font-weight: 700;
}

.instagram-orbit-notes {
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.instagram-orbit-notes span:not(:last-child)::after {
  content: "·";
  margin-left: 10px;
}

.post {
  padding-bottom: 72px;
}

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

.post-image {
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  object-fit: cover;
  width: 100%;
}

.post-content {
  color: var(--text);
  font-size: 1.08rem;
  margin: 24px 0;
}

.insta-caption {
  color: var(--text);
  font-size: 1.14rem;
  margin: 0 0 12px;
}

.open-note {
  border-bottom: 1px solid var(--line);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-style: italic;
  margin: 18px 0 0;
  padding: 13px 0;
}

.instagram-sound-panel {
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: inline-flex;
  margin-bottom: 24px;
  padding: 10px 14px;
}

.instagram-source-link {
  color: var(--accent);
  font-weight: 760;
}

.instagram-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 26px;
}

.instagram-grid img {
  aspect-ratio: 1 / 1;
  border-radius: 8px;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.instagram-grid .wide {
  aspect-ratio: 16 / 10;
  grid-column: span 2;
}

.instagram-grid .portrait {
  aspect-ratio: 3 / 4;
}

.related-posts {
  border-top: 1px solid var(--line);
  padding: 48px 0 70px;
}

.related-posts h2 {
  font-size: 1.55rem;
  letter-spacing: 0;
  margin: 0 0 22px;
}

.photo-board {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.photo-board img {
  aspect-ratio: 1 / 1;
  border-radius: 8px;
  object-fit: cover;
  width: 100%;
}

.photo-board .photo-large {
  aspect-ratio: 16 / 10;
  grid-column: span 2;
  grid-row: span 2;
}

.caption-strip {
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin-top: 24px;
  padding-top: 18px;
}

.caption-strip span:first-child {
  color: var(--text);
  font-weight: 800;
}

.cat-profile,
.contact-layout {
  align-items: center;
  display: grid;
  gap: 42px;
  grid-template-columns: 0.48fr 0.52fr;
}

.cat-profile img,
.contact-layout > img {
  border-radius: 8px;
  object-fit: cover;
  width: 100%;
}

.cat-profile img {
  aspect-ratio: 4 / 3;
}

.cat-profile h2 {
  font-size: 4.4rem;
  letter-spacing: 0;
  line-height: 0.95;
  margin: 0 0 14px;
}

.cat-profile p,
.contact-list a,
.contact-list div {
  margin: 8px 0;
}

.cat-intro {
  margin-bottom: 30px;
  max-width: 760px;
}

.cat-intro h2 {
  font-size: 4.1rem;
  letter-spacing: 0;
  line-height: 0.98;
  margin: 0 0 12px;
}

.cat-intro p:last-child {
  color: var(--muted);
  font-size: 1.06rem;
  margin: 0;
}

.pixie-word {
  color: var(--text);
  display: inline-block;
  font-size: 1.22em;
  font-weight: 900;
  line-height: 1;
}

.cat-board {
  align-items: end;
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(0, 1.12fr) minmax(280px, 0.88fr);
}

.cat-card {
  margin: 0;
}

.cat-card img {
  border-radius: 8px;
  object-fit: cover;
  width: 100%;
}

.cat-card-wide img {
  aspect-ratio: 16 / 11;
}

.cat-card-tall {
  justify-self: end;
  max-width: 520px;
  width: 100%;
}

.cat-card-tall img {
  aspect-ratio: 4 / 5;
}

.cat-card figcaption {
  color: var(--muted);
  font-size: 0.95rem;
  margin-top: 10px;
}

.cat-card figcaption span {
  color: var(--text);
  font-weight: 800;
}

.cat-memory-section {
  border-top: 1px solid var(--line);
  margin-top: 64px;
  padding-top: 44px;
}

.cat-memory-head {
  margin-bottom: 30px;
  max-width: 780px;
}

.cat-memory-head h2 {
  font-size: 3.6rem;
  letter-spacing: 0;
  line-height: 1;
  margin: 0 0 12px;
}

.cat-memory-head p:last-child,
.cat-memory-copy p:last-child,
.cat-litter-copy p {
  color: var(--muted);
  margin: 0;
}

.cat-memory-feature,
.cat-litter-story {
  display: grid;
  gap: 34px;
  grid-template-columns: minmax(260px, 0.78fr) minmax(0, 1.22fr);
}

.cat-memory-feature {
  align-items: center;
  margin-bottom: 54px;
}

.cat-memory-feature > img,
.cat-memory-feature > picture {
  aspect-ratio: 1 / 1;
  border-radius: 8px;
  overflow: hidden;
  width: 100%;
}

.cat-memory-feature > picture img {
  height: 100%;
  object-fit: cover;
}

.cat-memory-copy h3,
.cat-litter-copy h3 {
  font-size: 2rem;
  letter-spacing: 0;
  line-height: 1.12;
  margin: 0 0 12px;
}

.cat-litter-copy {
  position: sticky;
  top: 112px;
}

.cat-litter-copy p + p {
  margin-top: 12px;
}

.cat-litter-gallery {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.cat-litter-gallery figure {
  margin: 0;
}

.cat-litter-gallery img {
  aspect-ratio: 1 / 1;
  border-radius: 8px;
  object-fit: cover;
  width: 100%;
}

.cat-litter-gallery .wide img {
  aspect-ratio: 16 / 11;
}

.cat-litter-gallery .portrait img {
  aspect-ratio: 3 / 4;
}

.cat-litter-gallery figcaption {
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 8px;
}

.contact-layout > img,
.contact-layout > picture {
  border-radius: 8px;
  object-fit: cover;
  width: 100%;
}

.contact-layout > picture {
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.contact-layout > picture img {
  height: 100%;
  object-fit: cover;
}

.contact-copy h2 {
  font-size: 3.4rem;
  letter-spacing: 0;
  line-height: 1;
  margin: 0 0 16px;
  max-width: 580px;
}

.contact-copy > p:not(.eyebrow) {
  color: var(--muted);
  font-size: 1.06rem;
  line-height: 1.65;
  margin: 0 0 24px;
  max-width: 580px;
}

.contact-list {
  display: grid;
  gap: 14px;
}

.contact-list a,
.contact-list div {
  border-bottom: 1px solid var(--line);
  display: block;
  padding-bottom: 14px;
}

.contact-list span {
  color: var(--accent);
  display: block;
  font-size: 0.78rem;
  font-weight: 820;
  text-transform: lowercase;
}

.contact-note {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 10px 30px;
  grid-template-columns: 0.25fr 0.75fr;
  margin-top: 54px;
  padding-top: 20px;
}

.contact-note .eyebrow,
.contact-note p:last-child {
  margin: 0;
}

.contact-note p:last-child {
  color: var(--muted);
}

.empty-state {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 34px;
}

.button {
  background: var(--text);
  border-radius: 999px;
  color: white;
  display: inline-flex;
  font-weight: 760;
  margin-top: 12px;
  min-height: 42px;
  padding: 9px 18px;
}

.cv-page {
  padding-top: 4px;
}

.cv-profile {
  align-items: stretch;
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
  padding: 8px 0 42px;
}

.cv-profile-copy {
  align-self: center;
}

.cv-name-line {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 760;
  margin: 0 0 10px;
}

.cv-name-line span {
  color: var(--text);
  margin-left: 8px;
}

.cv-lead {
  font-size: 1.2rem;
  line-height: 1.48;
  margin: 0;
  max-width: 760px;
}

.cv-actions {
  margin: 18px 0 0;
}

.cv-actions .cv-action-secondary {
  background: var(--background);
  border: 1px solid var(--line);
  color: var(--text);
}

.cv-facts {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
  overflow: hidden;
}

.cv-facts div {
  padding: 16px;
}

.cv-facts div:nth-child(odd) {
  border-right: 1px solid var(--line);
}

.cv-facts div:nth-child(-n + 2) {
  border-bottom: 1px solid var(--line);
}

.cv-facts dt {
  color: var(--accent);
  font-size: 0.74rem;
  font-weight: 820;
  text-transform: lowercase;
}

.cv-facts dd {
  font-size: 1rem;
  font-weight: 800;
  margin: 5px 0 0;
}

.cv-section {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 34px;
  grid-template-columns: 185px minmax(0, 1fr);
  padding: 34px 0 40px;
}

.cv-section-title h2 {
  font-size: 1.65rem;
  line-height: 1.12;
  margin: 0;
}

.cv-section-title .eyebrow {
  margin-bottom: 6px;
}

.cv-entry + .cv-entry {
  border-top: 1px solid var(--line);
  margin-top: 22px;
  padding-top: 22px;
}

.cv-entry-featured {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px;
}

.cv-entry-head {
  align-items: flex-start;
  display: flex;
  gap: 16px;
  justify-content: space-between;
}

.cv-institution {
  align-items: center;
  display: flex;
  gap: 13px;
  min-width: 0;
}

.cv-institution-logo {
  background: #fff;
  flex: 0 0 auto;
  height: 52px;
  object-fit: contain;
  width: 52px;
}

.cv-institution-logo-sjtu {
  border-radius: 50%;
}

.cv-institution-logo-stanford {
  height: 52px;
  width: 52px;
}

.cv-institution-logo-lin-gang {
  border-radius: 6px;
}

.cv-entry h3,
.cv-project h3,
.cv-publication h3,
.cv-skill-group h3 {
  font-size: 1.18rem;
  line-height: 1.3;
  margin: 0;
}

.cv-role {
  color: var(--accent);
  font-weight: 760;
  margin: 3px 0 0;
}

.cv-date {
  color: var(--muted);
  flex: 0 0 auto;
  font-size: 0.92rem;
  font-weight: 720;
  margin: 2px 0 0;
  white-space: nowrap;
}

.cv-entry > p:not(.cv-role):not(.cv-date) {
  color: var(--muted);
  margin: 9px 0 0;
}

.cv-entry a,
.cv-publication a {
  color: var(--accent);
  font-weight: 760;
}

.cv-tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 13px;
}

.cv-tag-row span {
  background: var(--background);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 740;
  padding: 4px 9px;
}

.cv-list {
  color: var(--muted);
  margin: 10px 0 0;
  padding-left: 20px;
}

.cv-project-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.cv-project {
  border: 1px solid var(--line);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  min-height: 190px;
  padding: 18px;
  transition: border-color 180ms ease, transform 180ms ease;
}

.cv-project:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.cv-project p:not(.eyebrow) {
  color: var(--muted);
  margin: 8px 0 14px;
}

.cv-project span {
  color: var(--accent);
  font-weight: 760;
  margin-top: auto;
}

.cv-publication {
  display: grid;
  gap: 12px;
  grid-template-columns: 34px minmax(0, 1fr);
}

.cv-publication + .cv-publication {
  border-top: 1px solid var(--line);
  margin-top: 16px;
  padding-top: 16px;
}

.cv-publication-index {
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 820;
  padding-top: 3px;
}

.cv-publication p {
  color: var(--muted);
  margin: 6px 0 4px;
}

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

.cv-honors li {
  align-items: baseline;
  display: grid;
  gap: 8px 18px;
  grid-template-columns: 52px minmax(160px, 0.55fr) minmax(0, 1fr);
  padding: 10px 0;
}

.cv-honors li + li {
  border-top: 1px solid var(--line);
}

.cv-honors span {
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 820;
}

.cv-honors p {
  color: var(--muted);
  margin: 0;
}

.cv-skill-groups {
  display: grid;
  gap: 18px 24px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.cv-skill-group p {
  color: var(--muted);
  margin: 8px 0 0;
}

.cv-contact {
  background: var(--text);
  border-radius: 12px;
  color: white;
  margin: 6px 0 50px;
  padding: 32px;
}

.cv-contact h2 {
  font-size: 2.3rem;
  line-height: 1.08;
  margin: 0;
  max-width: 780px;
}

.cv-contact > p:not(.eyebrow) {
  color: #cfcfca;
  margin: 12px 0 0;
  max-width: 680px;
}

.cv-contact .button {
  background: white;
  color: var(--text);
  margin-top: 18px;
}

.footer-gallery {
  display: grid;
  gap: 0;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 26px;
}

.footer-gallery img {
  aspect-ratio: 1 / 1;
  object-fit: cover;
  width: 100%;
}

.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--line);
  padding: 42px 0;
}

.footer-grid {
  align-items: center;
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(0, 1fr) auto;
}

.footer-author {
  align-items: center;
  display: flex;
  gap: 18px;
}

.footer-author picture {
  display: block;
  flex: 0 0 72px;
}

.footer-author img {
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  height: 72px;
  object-fit: cover;
  width: 72px;
}

.footer-author h3 {
  font-size: 1.25rem;
  margin: 0 0 4px;
}

.footer-author-cn {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 620;
  margin-left: 7px;
}

.footer-author p {
  color: var(--muted);
  margin: 0;
  max-width: 520px;
}

.footer-links,
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  justify-content: flex-end;
}

.footer-links {
  grid-column: 2;
}

.footer-nav {
  border-top: 1px solid var(--line);
  grid-column: 1 / -1;
  padding-top: 20px;
}

.footer-links a,
.footer-nav a {
  color: var(--text);
  font-weight: 700;
}

@media (max-width: 900px) {
  .site-header .container {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
    padding: 18px 0;
  }

  .site-nav {
    flex-wrap: wrap;
    gap: 14px 20px;
    justify-content: flex-start;
  }

  .nav-submenu {
    left: 0;
    right: auto;
  }

  .hero {
    padding: 46px 0 50px;
  }

  .hero-inner,
  .project-head,
  .project-content,
  .cat-profile,
  .cat-board,
  .cat-memory-feature,
  .cat-litter-story,
  .contact-layout,
  .footer-grid,
  .cv-profile,
  .cv-section {
    grid-template-columns: 1fr;
  }

  .cv-section {
    gap: 28px;
  }

  .cat-card-tall {
    justify-self: stretch;
    max-width: none;
  }

  .cat-litter-copy {
    position: static;
  }

  .hero-copy h1 {
    font-size: 3.1rem;
  }

  .project-grid,
  .post-card-grid,
  .footer-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .project-figure-scroll img {
    max-width: none;
    min-width: 720px;
    width: 720px;
  }

  .side-panel {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding-left: 0;
    padding-top: 20px;
  }

  .footer-links,
  .footer-nav {
    grid-column: 1;
    justify-content: flex-start;
  }
}

@media (max-width: 560px) {
  .container {
    width: min(100% - 22px, 1140px);
  }

  .hero-copy h1,
  .page-head h1,
  .post-head h1,
  .project-head h1 {
    font-size: 2.25rem;
  }

  .section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .project-grid,
  .post-card-grid,
  .instagram-grid,
  .photo-board,
  .footer-gallery {
    grid-template-columns: 1fr;
  }

  .project-figure-pair {
    grid-template-columns: 1fr;
  }

  .instagram-grid .wide,
  .photo-board .photo-large {
    grid-column: span 1;
    grid-row: span 1;
  }

  .cat-profile h2 {
    font-size: 3rem;
  }

  .cat-intro h2 {
    font-size: 2.5rem;
  }

  .cat-memory-head h2 {
    font-size: 2.35rem;
  }

  .cv-profile {
    padding-bottom: 46px;
  }

  .cv-facts,
  .cv-project-grid,
  .cv-skill-groups {
    grid-template-columns: 1fr;
  }

  .cv-facts div,
  .cv-facts div:nth-child(odd),
  .cv-facts div:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
    border-right: 0;
  }

  .cv-facts div:last-child {
    border-bottom: 0;
  }

  .cv-entry-head {
    flex-direction: column;
    gap: 8px;
  }

  .cv-date {
    white-space: normal;
  }

  .cv-project {
    min-height: 0;
  }

  .cv-honors li {
    grid-template-columns: 46px minmax(0, 1fr);
  }

  .cv-honors p {
    grid-column: 2;
  }

  .cv-contact {
    padding: 32px 24px;
  }

  .cv-contact h2 {
    font-size: 1.9rem;
  }

  .cat-litter-gallery {
    grid-template-columns: 1fr;
  }
}
