:root {
  color-scheme: light;
  --paper: #f4f1ea;
  --paper-soft: #e8e1d5;
  --ink: #141512;
  --ink-soft: #252822;
  --muted: #6e7068;
  --line: rgba(32, 32, 27, 0.14);
  --white: #fffdf8;
  --deep: #0f1716;
  --sage: #5f7168;
  --clay: #9c5f46;
  --steel: #536a7c;
  --shadow: 0 28px 90px rgba(24, 23, 19, 0.18);
  --soft-shadow: 0 16px 44px rgba(24, 23, 19, 0.1);
  --radius: 8px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--paper);
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(95, 113, 104, 0.16), transparent 28rem),
    linear-gradient(180deg, #fbfaf6 0%, var(--paper) 34%, #efebe3 100%);
  color: var(--ink);
  transition:
    opacity 180ms ease,
    filter 180ms ease;
}

body.is-leaving {
  opacity: 0;
  filter: blur(3px);
}

body.lightbox-open {
  overflow: hidden;
}

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

button {
  font: inherit;
  color: inherit;
}

.nav-shell {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  padding: 18px clamp(18px, 4vw, 56px);
  background: rgba(244, 241, 234, 0.74);
  border-bottom: 1px solid rgba(32, 32, 27, 0.1);
  backdrop-filter: blur(22px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(20, 21, 18, 0.72);
  border-radius: 50%;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 20px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.8vw, 34px);
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.nav-links a {
  position: relative;
  padding: 8px 0;
}

.nav-links a::after {
  position: absolute;
  left: 0;
  bottom: 2px;
  width: 100%;
  height: 1px;
  background: currentColor;
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 220ms ease;
}

.nav-links a:hover,
.nav-links a.is-active {
  color: var(--ink);
}

.nav-links a:hover::after,
.nav-links a.is-active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.28);
}

.menu-button span {
  display: block;
  width: 18px;
  height: 1px;
  margin: 6px auto;
  background: var(--ink);
  transition:
    transform 200ms ease,
    opacity 200ms ease;
}

.menu-button.is-open span:first-child {
  transform: translateY(3.5px) rotate(42deg);
}

.menu-button.is-open span:last-child {
  transform: translateY(-3.5px) rotate(-42deg);
}

.hero {
  position: relative;
  min-height: 96svh;
  padding: 116px clamp(18px, 4vw, 56px) 42px;
  display: grid;
  align-items: end;
  overflow: hidden;
  isolation: isolate;
}

.hero-media,
.hero-slide {
  position: absolute;
  inset: 0;
}

.hero-media {
  z-index: -2;
  background: var(--deep);
}

.hero-media::after {
  position: absolute;
  inset: 0;
  z-index: 4;
  content: "";
  background:
    linear-gradient(90deg, rgba(9, 13, 12, 0.78), rgba(9, 13, 12, 0.28) 48%, rgba(9, 13, 12, 0.52)),
    linear-gradient(0deg, rgba(9, 13, 12, 0.76), rgba(9, 13, 12, 0.06) 50%),
    radial-gradient(circle at 75% 18%, rgba(255, 253, 248, 0.18), transparent 24rem);
}

.hero-slide {
  margin: 0;
  opacity: 0;
  animation: heroFade var(--hero-duration, 26s) infinite;
  animation-delay: var(--slide-delay, 0s);
}

.hero-slide:first-child {
  opacity: 1;
}

.hero-slide img {
  transform: scale(1.03);
  animation: heroDrift 15.6s ease-in-out infinite alternate;
}

.hero-slide figcaption {
  position: absolute;
  left: -9999px;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 820px;
  color: var(--white);
}

.eyebrow {
  margin: 0 0 12px;
  color: currentColor;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
  opacity: 0.72;
}

.hero h1,
.category-hero h1,
.detail-intro h1,
.section-title h2,
.about-section h2 {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 600;
  letter-spacing: 0;
}

.hero h1 {
  max-width: 940px;
  font-size: clamp(62px, 11vw, 148px);
  line-height: 0.84;
}

.hero-subtitle {
  margin: 25px 0 0;
  font-size: clamp(17px, 2.2vw, 26px);
  font-weight: 500;
}

.hero-cn {
  max-width: 520px;
  margin: 18px 0 0;
  color: rgba(255, 253, 248, 0.82);
  font-size: clamp(16px, 1.7vw, 19px);
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.primary-link,
.secondary-link,
.back-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 999px;
  padding: 0 18px;
  font-size: 13px;
  font-weight: 700;
  transition:
    transform 220ms ease,
    background 220ms ease,
    color 220ms ease,
    border-color 220ms ease;
}

.primary-link {
  background: var(--white);
  color: var(--ink);
}

.secondary-link {
  border: 1px solid rgba(255, 253, 248, 0.55);
  color: var(--white);
}

.primary-link:hover,
.secondary-link:hover,
.back-link:hover {
  transform: translateY(-2px);
}

.hero-strip {
  position: absolute;
  right: clamp(18px, 4vw, 56px);
  bottom: clamp(22px, 4vw, 48px);
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(5, minmax(48px, 72px));
  gap: 8px;
}

.hero-strip-item {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(255, 253, 248, 0.16);
  opacity: 0.56;
  transition:
    opacity 260ms ease,
    transform 260ms ease,
    border-color 260ms ease;
}

.hero-strip-item.is-active,
.hero-strip-item:hover {
  opacity: 1;
  transform: translateY(-4px);
  border-color: rgba(255, 253, 248, 0.72);
}

.hero-strip-item span {
  position: absolute;
  left: 7px;
  bottom: 7px;
  color: var(--white);
  font-size: 11px;
  font-weight: 800;
}

.hero-current {
  position: absolute;
  left: clamp(18px, 4vw, 56px);
  bottom: 24px;
  z-index: 3;
  max-width: 360px;
  color: rgba(255, 253, 248, 0.72);
  font-size: 12px;
  font-weight: 700;
}

.section {
  padding: clamp(76px, 9vw, 132px) clamp(18px, 4vw, 56px) 0;
}

.section-title {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(280px, 0.28fr);
  gap: 28px;
  align-items: end;
  margin-bottom: clamp(28px, 4vw, 54px);
}

.section-title h2 {
  font-size: clamp(38px, 6vw, 80px);
  line-height: 0.95;
}

.section-title p:last-child {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(10px, 1.4vw, 18px);
}

.category-card {
  position: relative;
  min-height: clamp(300px, 36vw, 520px);
  border-radius: var(--radius);
  overflow: hidden;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: var(--white);
  background: var(--deep);
  box-shadow: var(--soft-shadow);
  isolation: isolate;
  transition:
    transform 380ms cubic-bezier(0.2, 0.7, 0.2, 1),
    box-shadow 380ms ease;
}

.category-card:nth-child(even) {
  transform: translateY(38px);
}

.category-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow);
}

.category-card:nth-child(even):hover {
  transform: translateY(28px);
}

.category-card-image,
.category-card-shade {
  position: absolute;
  inset: 0;
}

.category-card-image {
  z-index: -2;
  transform: scale(1.02);
  transition: transform 900ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.category-card-shade {
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(15, 23, 22, 0.1), rgba(15, 23, 22, 0.72)),
    linear-gradient(90deg, rgba(15, 23, 22, 0.38), transparent);
}

.category-card:hover .category-card-image {
  transform: scale(1.08);
}

.category-card-kicker {
  color: rgba(255, 253, 248, 0.74);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.category-card h3 {
  margin: 0 0 16px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(36px, 4vw, 64px);
  font-weight: 600;
}

.category-card p {
  max-width: 16em;
  margin: 0;
  color: rgba(255, 253, 248, 0.78);
  line-height: 1.7;
}

.featured-grid {
  display: grid;
  grid-template-columns: 1.16fr 0.84fr 0.84fr;
  gap: clamp(14px, 1.8vw, 24px);
  align-items: start;
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 2vw, 28px);
}

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

.post-card.is-large {
  grid-row: span 2;
}

.post-card:nth-child(3n + 2):not(.is-large) {
  margin-top: 34px;
}

.post-image {
  position: relative;
  display: block;
  height: clamp(320px, 36vw, 440px);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--paper-soft);
  box-shadow: 0 1px 0 rgba(20, 21, 18, 0.08);
}

.post-card.is-large .post-image {
  height: clamp(540px, 58vw, 700px);
}

.post-image::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    radial-gradient(circle at 50% 42%, transparent 42%, rgba(9, 13, 12, 0.34)),
    linear-gradient(180deg, transparent 38%, rgba(9, 13, 12, 0.68));
  opacity: 0;
  transition: opacity 360ms ease;
}

.post-image img,
.photo-tile img,
.wall-tile img,
.detail-cover img {
  transition:
    transform 800ms cubic-bezier(0.2, 0.7, 0.2, 1),
    filter 800ms ease;
}

.post-card:hover .post-image img,
.photo-tile:hover img,
.wall-tile:hover img,
.detail-cover:hover img {
  transform: scale(1.055);
}

.post-card:hover .post-image::after {
  opacity: 1;
}

.post-image-overlay {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 2;
  color: var(--white);
  opacity: 0;
  transform: translateY(10px);
  transition:
    opacity 300ms ease,
    transform 300ms ease;
}

.post-image-overlay span {
  display: block;
  margin-bottom: 6px;
  color: rgba(255, 253, 248, 0.74);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.post-image-overlay strong {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(26px, 2.8vw, 40px);
  font-weight: 600;
  line-height: 0.98;
}

.post-card:hover .post-image-overlay {
  opacity: 1;
  transform: translateY(0);
}

.post-info {
  padding: 16px 2px 4px;
}

.post-info p,
.post-info span {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.post-info h3 {
  margin: 7px 0 9px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(25px, 2.5vw, 34px);
  font-weight: 600;
  line-height: 1;
}

.about-section {
  display: grid;
  grid-template-columns: 0.35fr 0.65fr;
  gap: clamp(28px, 6vw, 90px);
  margin: clamp(90px, 12vw, 160px) clamp(18px, 4vw, 56px) 0;
  padding: clamp(42px, 7vw, 90px) 0;
  border-top: 1px solid rgba(20, 21, 18, 0.72);
  border-bottom: 1px solid var(--line);
}

.about-line {
  width: 100%;
  height: 1px;
  margin-top: 18px;
  background: var(--line);
}

.about-section h2 {
  font-size: clamp(36px, 5vw, 68px);
}

.about-section > p {
  margin: 0;
  color: var(--muted);
  font-size: clamp(17px, 2.4vw, 26px);
  line-height: 1.8;
}

.category-hero {
  min-height: 78svh;
  padding: 112px clamp(18px, 4vw, 56px) 42px;
  display: grid;
  grid-template-columns: minmax(0, 0.4fr) minmax(0, 0.6fr);
  gap: clamp(28px, 6vw, 84px);
  align-items: end;
}

.category-hero-copy {
  padding-bottom: 20px;
}

.category-hero h1 {
  font-size: clamp(72px, 12vw, 156px);
  line-height: 0.84;
}

.category-hero p:last-child {
  max-width: 430px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.8;
}

.category-hero img {
  height: min(660px, 66svh);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.detail-page {
  padding: 112px clamp(18px, 4vw, 56px) 0;
}

.back-link {
  border: 1px solid var(--line);
  color: var(--muted);
  background: rgba(255, 253, 248, 0.34);
}

.detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.6fr) minmax(320px, 0.4fr);
  gap: clamp(28px, 6vw, 86px);
  align-items: end;
  margin-top: 34px;
}

.detail-cover {
  position: relative;
  min-height: min(760px, 74svh);
  border: 0;
  border-radius: var(--radius);
  overflow: hidden;
  padding: 0;
  background: var(--paper-soft);
  box-shadow: var(--shadow);
  cursor: zoom-in;
}

.detail-cover::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, transparent 64%, rgba(9, 13, 12, 0.42));
  opacity: 0;
  transition: opacity 260ms ease;
}

.detail-cover span {
  position: absolute;
  right: 16px;
  bottom: 16px;
  z-index: 2;
  border: 1px solid rgba(255, 253, 248, 0.36);
  border-radius: 999px;
  padding: 9px 13px;
  color: var(--white);
  font-size: 12px;
  font-weight: 800;
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity 260ms ease,
    transform 260ms ease;
}

.detail-cover:hover::after,
.detail-cover:hover span {
  opacity: 1;
  transform: translateY(0);
}

.detail-intro h1 {
  font-size: clamp(48px, 8vw, 108px);
  line-height: 0.9;
}

.detail-intro > p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.85;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.detail-meta span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 13px;
  background: rgba(255, 253, 248, 0.32);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.tag-list span {
  border-radius: 999px;
  background: var(--paper-soft);
  color: var(--muted);
  padding: 8px 11px;
  font-size: 12px;
  font-weight: 700;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  grid-auto-flow: dense;
  gap: clamp(12px, 1.6vw, 22px);
  margin-top: clamp(54px, 8vw, 110px);
}

.photo-tile {
  position: relative;
  grid-column: span 2;
  aspect-ratio: 4 / 5;
  border: 0;
  border-radius: var(--radius);
  overflow: hidden;
  padding: 0;
  background: var(--paper-soft);
  cursor: zoom-in;
}

.photo-tile.is-wide,
.photo-tile:nth-child(5n + 1) {
  grid-column: span 4;
  aspect-ratio: 16 / 11;
}

.photo-tile:nth-child(5n + 3) {
  grid-column: span 3;
  aspect-ratio: 1 / 1;
}

.photo-tile span,
.wall-tile span {
  position: absolute;
  left: 10px;
  bottom: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 24px;
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.82);
  color: var(--ink);
  font-size: 11px;
  font-weight: 800;
}

.wall-grid {
  column-count: 5;
  column-gap: clamp(10px, 1.5vw, 18px);
}

.wall-tile {
  position: relative;
  display: inline-block;
  width: 100%;
  margin: 0 0 clamp(10px, 1.5vw, 18px);
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--paper-soft);
  box-shadow: 0 1px 0 rgba(20, 21, 18, 0.06);
  break-inside: avoid;
  cursor: zoom-in;
}

.wall-tile:nth-child(5n + 2) {
  aspect-ratio: 1 / 1;
}

.wall-tile:nth-child(7n + 4) {
  aspect-ratio: 4 / 6;
}

.wall-tile::after {
  position: absolute;
  inset: 0;
  content: "";
  background: radial-gradient(circle at 50% 45%, transparent 48%, rgba(9, 13, 12, 0.28));
  opacity: 0;
  transition: opacity 260ms ease;
}

.wall-tile:hover::after {
  opacity: 1;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-top: clamp(90px, 12vw, 160px);
  padding: 36px clamp(18px, 4vw, 56px);
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.footer strong {
  display: block;
  color: var(--ink);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 27px;
  font-weight: 600;
}

.footer p {
  margin: 8px 0 0;
  max-width: 520px;
  line-height: 1.7;
}

.footer a {
  font-size: 13px;
  font-weight: 700;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 760ms ease var(--reveal-delay, 0ms),
    transform 760ms cubic-bezier(0.2, 0.7, 0.2, 1) var(--reveal-delay, 0ms);
}

.reveal.is-visible,
.no-js .reveal {
  opacity: 1;
  transform: translateY(0);
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  grid-template-columns: minmax(48px, 0.12fr) minmax(0, 1fr) minmax(48px, 0.12fr);
  align-items: center;
  gap: clamp(8px, 2vw, 24px);
  padding: clamp(18px, 3vw, 44px);
  background: rgba(6, 8, 8, 0.94);
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
}

.lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-frame {
  grid-column: 2;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 14px;
  width: min(100%, 1180px);
  height: min(84svh, 860px);
  margin: 0 auto;
}

.lightbox-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.lightbox-frame figcaption {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: rgba(255, 253, 248, 0.78);
  font-size: 13px;
  font-weight: 700;
}

.lightbox-close,
.lightbox-nav {
  border: 1px solid rgba(255, 253, 248, 0.18);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.06);
  color: var(--white);
  cursor: pointer;
  transition:
    background 180ms ease,
    transform 180ms ease;
}

.lightbox-close {
  position: absolute;
  top: clamp(14px, 2vw, 24px);
  right: clamp(14px, 2vw, 24px);
  width: 44px;
  height: 44px;
  font-size: 0;
}

.lightbox-close::before {
  content: "×";
  font-size: 28px;
  line-height: 1;
}

.lightbox-nav {
  width: clamp(44px, 5vw, 58px);
  height: clamp(44px, 5vw, 58px);
  font-size: 0;
}

.lightbox-prev {
  grid-column: 1;
  justify-self: end;
}

.lightbox-next {
  grid-column: 3;
  justify-self: start;
}

.lightbox-prev::before,
.lightbox-next::before {
  font-size: 32px;
  line-height: 1;
}

.lightbox-prev::before {
  content: "‹";
}

.lightbox-next::before {
  content: "›";
}

.lightbox-close:hover,
.lightbox-nav:hover {
  background: rgba(255, 253, 248, 0.14);
  transform: translateY(-2px);
}

@keyframes heroFade {
  0%,
  17% {
    opacity: 1;
  }

  24%,
  100% {
    opacity: 0;
  }
}

@keyframes heroDrift {
  from {
    transform: scale(1.03) translate3d(0, 0, 0);
  }

  to {
    transform: scale(1.09) translate3d(-1.6%, 1.2%, 0);
  }
}

@media (max-width: 1120px) {
  .category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .category-card:nth-child(even),
  .category-card:nth-child(even):hover {
    transform: none;
  }

  .wall-grid {
    column-count: 4;
  }
}

@media (max-width: 980px) {
  .menu-button {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 76px;
    left: 18px;
    right: 18px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
    padding: 10px;
    box-shadow: var(--shadow);
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links a {
    padding: 13px 12px;
  }

  .section-title,
  .about-section,
  .category-hero,
  .detail-hero {
    grid-template-columns: 1fr;
  }

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

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

  .post-card.is-large {
    grid-column: span 2;
    grid-row: auto;
  }

  .post-card:nth-child(3n + 2):not(.is-large) {
    margin-top: 0;
  }

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

  .photo-tile,
  .photo-tile:nth-child(5n + 3) {
    grid-column: span 2;
  }

  .photo-tile.is-wide,
  .photo-tile:nth-child(5n + 1) {
    grid-column: span 4;
  }

  .hero-strip {
    left: clamp(18px, 4vw, 56px);
    right: auto;
    grid-template-columns: repeat(5, minmax(42px, 60px));
  }

  .hero-current {
    display: none;
  }

  .wall-grid {
    column-count: 3;
  }
}

@media (max-width: 640px) {
  .nav-shell {
    min-height: 68px;
    padding: 14px 16px;
  }

  .nav-links {
    top: 68px;
    left: 12px;
    right: 12px;
  }

  .hero {
    min-height: 90svh;
    padding: 94px 16px 128px;
  }

  .hero h1 {
    font-size: clamp(58px, 18vw, 88px);
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .primary-link,
  .secondary-link {
    width: 100%;
  }

  .hero-strip {
    bottom: 22px;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    width: calc(100% - 32px);
  }

  .category-grid,
  .post-grid,
  .featured-grid {
    grid-template-columns: 1fr;
  }

  .category-card {
    min-height: 330px;
  }

  .post-card.is-large {
    grid-column: auto;
  }

  .post-card.is-large .post-image,
  .post-image {
    height: 420px;
  }

  .category-hero {
    min-height: auto;
    padding: 94px 16px 24px;
  }

  .category-hero img,
  .detail-cover {
    height: 430px;
    min-height: 0;
  }

  .section {
    padding-left: 16px;
    padding-right: 16px;
  }

  .section-title {
    grid-template-columns: 1fr;
  }

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

  .photo-tile,
  .photo-tile.is-wide,
  .photo-tile:nth-child(5n + 1),
  .photo-tile:nth-child(5n + 3) {
    grid-column: auto;
    aspect-ratio: 4 / 5;
  }

  .wall-grid {
    column-count: 2;
  }

  .detail-page {
    padding: 96px 16px 0;
  }

  .detail-meta {
    gap: 8px;
  }

  .lightbox {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: minmax(0, 1fr) auto;
    padding: 16px;
  }

  .lightbox-frame {
    grid-column: 1 / -1;
    height: 76svh;
  }

  .lightbox-prev,
  .lightbox-next {
    grid-row: 2;
    justify-self: stretch;
    width: 100%;
  }

  .lightbox-prev {
    grid-column: 1;
  }

  .lightbox-next {
    grid-column: 2;
  }

  .footer {
    flex-direction: column;
    padding-left: 16px;
    padding-right: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .hero-slide {
    opacity: 0;
  }

  .hero-slide:first-child {
    opacity: 1;
  }
}
