:root {
  color-scheme: dark;
  --background: #0c101a;
  --surface: #161c2b;
  --surface-raised: #242b40;
  --edge: #303a52;
  --text: #f8f7fb;
  --muted: #b6bfd3;
  --accent: #c5a1ff;
  --accent-ink: #221331;
  --cyan: #7be0ee;
  --pink: #f3a4d6;
  font-family: "Segoe UI Variable", "Segoe UI", system-ui, sans-serif;
  background: var(--background);
  color: var(--text);
  line-height: 1.5;
  font-synthesis: none;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: radial-gradient(ellipse at 100% 25rem, #38437d12, transparent 40rem), var(--background); }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, select { font: inherit; }
button, select { cursor: pointer; }
button { color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }

.sr-only, .skip-link:not(:focus) {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link:focus {
  position: fixed;
  inset: 0.75rem auto auto 0.75rem;
  z-index: 10;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  color: var(--accent-ink);
  background: var(--accent);
}

.site-shell {
  width: min(100% - 3rem, 90rem);
  margin-inline: auto;
}

.site-header {
  position: relative;
  border-bottom: 1px solid #9e9bf32b;
  background: #0c101af5;
}
.site-header::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: linear-gradient(90deg, #9871e8, #dba0df 48%, #60cddc);
}

.header-inner, .footer-inner {
  min-height: 4.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.header-inner--resolutions {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr) max-content max-content;
  grid-template-areas: "brand resolutions pages saved";
  min-height: 5.15rem;
  padding-block: 0.6rem;
  gap: clamp(1rem, 2vw, 1.8rem);
}

.header-inner--resolutions > .wordmark { grid-area: brand; }
.header-inner--resolutions > .resolution-nav { grid-area: resolutions; }
.header-inner--resolutions > .site-nav { grid-area: pages; }
.header-inner--resolutions > .saved-toggle { grid-area: saved; }

.wordmark {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 0.08em;
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -0.065em;
  text-decoration: none;
  white-space: nowrap;
}

.wordmark::before {
  content: "";
  width: 1.75rem;
  height: 1.75rem;
  margin-inline-end: 0.5rem;
  border: 2px solid #c5a1ff;
  border-radius: 0.45rem;
  background: radial-gradient(circle at 68% 34%, #e4c6ff 0 11%, transparent 14%),
    linear-gradient(150deg, transparent 52%, #9b68e6 54% 68%, transparent 70%), #22192e;
  box-shadow: 0 0 1rem #aa74ff24;
}
.wordmark span { color: var(--accent); font-weight: 650; }

.site-nav { display: flex; align-items: center; gap: 1.8rem; }
.site-nav a, .site-footer a:not(.wordmark) {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 600;
}
.site-nav a[aria-current], .site-nav a:hover, .site-footer a:hover { color: var(--text); }

.site-nav .upload-link {
  display: inline-flex;
  align-items: center;
  min-height: 2.5rem;
  padding-inline: 0.65rem;
  border: 1px solid #755393;
  border-radius: 0.55rem;
  color: var(--accent);
}

.site-nav .upload-link:hover {
  background: var(--surface-raised);
  border-color: var(--accent);
  color: var(--text);
}

.resolution-nav {
  display: grid;
  justify-self: start;
  gap: 0.3rem;
}
.resolution-nav__label {
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 650;
  line-height: 1.15;
}
.resolution-nav__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.36rem;
}
.resolution-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 2.35rem;
  padding: 0.35rem 0.68rem;
  border: 1px solid #454365;
  border-radius: 0.6rem;
  background: #1b2033;
  color: #e8e8f6;
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
}
.resolution-button:hover {
  border-color: var(--cyan);
  background: #203442;
  color: #e0fcff;
}
.resolution-button[aria-current="page"] {
  border-color: #d8b0ff;
  background: linear-gradient(180deg, #debfff, #c598f2);
  color: #2b153d;
}
.resolution-button--wide::before, .resolution-button--phone::before {
  content: "";
  flex: none;
  width: 1rem;
  height: 0.62rem;
  border: 1.5px solid currentColor;
  border-radius: 0.12rem;
  opacity: 0.85;
}
.resolution-button--phone::before {
  width: 0.48rem;
  height: 0.78rem;
}

.saved-toggle {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 0.48rem;
  min-height: 2.65rem;
  padding: 0.3rem 0.75rem;
  border: 1px solid var(--edge);
  border-radius: 0.6rem;
  background: #212238;
  font-size: 0.9375rem;
  font-weight: 650;
}
.saved-toggle:hover, .saved-toggle[aria-pressed="true"] { color: var(--pink); border-color: #d58ab8; background: #322238; }

.hero {
  position: relative;
  isolation: isolate;
  min-height: 24rem;
  overflow: hidden;
  background: #171c36;
}

.hero__art, .hero::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero__art { object-fit: cover; object-position: center 54%; }
.hero::after {
  content: "";
  background: linear-gradient(0deg, var(--background) 0%, #111117de 16%, #1513252e 64%, #221b3b6e 100%),
    radial-gradient(ellipse at 50% 25%, #14122383 0%, transparent 82%);
}

.hero__content {
  position: relative;
  padding-block: clamp(3.5rem, 7vw, 5.5rem) 4.5rem;
  text-align: center;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.65rem, 5vw, 4.75rem);
  font-weight: 800;
  letter-spacing: -0.06em;
  line-height: 1.06;
  text-wrap: balance;
  text-shadow: 0 0.12em 0.6em #130d26a0;
}

.hero h1 span { color: #e0b7ff; }

.hero--home { background: #101427; }
.hero--home .hero__art { object-position: center 59%; }
.hero--home::after {
  background: linear-gradient(0deg, var(--background) 0%, #0c101ad9 14%, #0e102777 52%, #0b0e1abf 100%),
    linear-gradient(90deg, #20142d38, #1215278c 50%, #0a233a38);
}
.hero--home .hero__content { padding-block: clamp(3.5rem, 6vw, 5rem) 5rem; }
.hero__eyebrow {
  display: block;
  margin-bottom: 1rem;
  color: #b3edf4;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.hero--home h1 span {
  color: #d6b4ff;
  background: linear-gradient(105deg, #c5a1ff 10%, #f2acd9 58%, #92e3ee);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero__content p {
  margin: 0.85rem auto 1.65rem;
  color: #f0edf8;
  font-size: clamp(1rem, 1.6vw, 1.25rem);
  text-wrap: balance;
  text-shadow: 0 1px 0.5rem #0d0d16;
}

.hero--resolution { min-height: 0; }
.hero--resolution .hero__content { padding-block: clamp(2.5rem, 5.5vw, 4.25rem) 3.4rem; }
.hero--resolution h1 { font-size: clamp(2.5rem, 4.7vw, 4.25rem); }

.hero__feature {
  position: absolute;
  right: max(1.5rem, calc((100% - 90rem) / 2));
  bottom: 1.1rem;
  color: #c2b7d7;
  font-size: 0.875rem;
  text-underline-offset: 0.22em;
}

.hero__feature:hover { color: var(--text); }

.hero-search {
  display: flex;
  align-items: center;
  width: min(100%, 39rem);
  min-height: 3.55rem;
  margin-inline: auto;
  padding-inline: 0.5rem;
  border: 1px solid #bba5ef80;
  border-radius: 1rem;
  background: #11172be8;
  backdrop-filter: blur(12px);
  box-shadow: 0 0.6rem 2.5rem #080b2559, 0 0 2.5rem #8c6be918;
}
.hero-search:focus-within { border-color: var(--cyan); box-shadow: 0 0 0 3px #7be0ee20; }
.hero-search input {
  flex: 1;
  min-width: 0;
  min-height: 3.25rem;
  padding: 0.45rem 0.8rem;
  border: 0;
  outline-offset: -2px;
  border-radius: 0.7rem;
  background: transparent;
  color: var(--text);
  text-align: start;
}
.hero-search input::placeholder { color: #d3cadf; }
.hero-search button {
  display: grid;
  place-items: center;
  min-width: 2.7rem;
  min-height: 2.7rem;
  border: 0;
  border-radius: 0.65rem;
  background: var(--accent);
  color: var(--accent-ink);
}
.hero-search button:hover { background: #dbbfff; }
.search-icon {
  position: relative;
  display: block;
  width: 1rem;
  height: 1rem;
  margin: -0.2rem 0.2rem 0 0;
  border: 2px solid currentColor;
  border-radius: 50%;
}
.search-icon::after {
  content: "";
  position: absolute;
  width: 0.48rem;
  height: 2px;
  top: 0.8rem;
  left: 0.66rem;
  background: currentColor;
  transform: rotate(45deg);
}

.button {
  min-height: 2.8rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 0.55rem;
  padding: 0.6rem 1rem;
  font-weight: 700;
  text-decoration: none;
}

.button--primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 0.25rem 1.2rem #916cd02b; }
.button--primary:hover { background: #e5ceff; }
.button--secondary { background: var(--surface); color: var(--text); border-color: var(--edge); }
.button--secondary:hover { background: var(--surface-raised); }

.gallery { padding-block: 0.45rem 3.75rem; scroll-margin-top: 1rem; }
.gallery__heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.2rem;
}
.gallery__heading h2, .about h2, .collections h2 {
  margin: 0;
  font-size: clamp(1.9rem, 3.1vw, 2.5rem);
  letter-spacing: -0.048em;
  line-height: 1.1;
}

.collections { padding-block: 0.65rem 2.8rem; scroll-margin-top: 1rem; }
.section-intro { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.section-intro p { margin: 0; color: var(--muted); font-size: 0.9375rem; }
.collection-grid {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 1.2rem;
}
.collection-card {
  display: grid;
  overflow: hidden;
  border: 1px solid var(--edge);
  border-radius: 0.85rem;
  background: var(--surface);
  text-decoration: none;
  transition: border-color 160ms, background 160ms, transform 160ms;
}
.collection-card:hover { border-color: var(--accent); background: var(--surface-raised); transform: translateY(-3px); }
.collection-card img { width: 100%; height: auto; aspect-ratio: 1.85; object-fit: cover; }
.collection-card--cars { border-color: #639cbaaa; background: #18283b; }
.collection-card--cars .collection-card__title { color: #b6f1fb; }
.collection-card--cars img { object-position: center 65%; }
.collection-card--cozy-animals img { object-position: center 65%; }
.collection-card__title {
  display: flex;
  align-items: center;
  min-height: 3.5rem;
  padding: 0.7rem 0.85rem;
  font-size: 0.9375rem;
  font-weight: 650;
  line-height: 1.25;
}

.gallery__heading p { margin: 0; color: var(--muted); font-size: 0.9375rem; white-space: nowrap; }
.gallery__controls, .category-filters { display: flex; align-items: center; gap: 0.65rem; }
.category-filters { justify-content: center; flex-wrap: wrap; margin-top: 1.35rem; }
.category-filters button, .format-field select {
  min-height: 2.6rem;
  border: 1px solid #aaa4c45c;
  border-radius: 1.5rem;
  background: #161521c2;
  color: var(--text);
  font-size: 0.9375rem;
}
.category-filters button {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding-inline: 1.02rem;
  --category-color: #c5a1ff;
  transition: background 160ms, border-color 160ms;
}
.category-filters button:hover { background: var(--surface-raised); border-color: var(--category-color); }
.category-filters button[aria-pressed="true"] { background: #302743; color: #fff; font-weight: 650; border-color: var(--category-color); box-shadow: inset 0 -2px var(--category-color); }
.category-filters [data-category="Cars"] { --category-color: #7be0ee; }
.category-filters [data-category="Anime"] { --category-color: #f3a4d6; }
.category-filters [data-category="Nature"], .category-filters [data-category="Animals"] { --category-color: #93d6b3; }
.category-filters [data-category="Gaming"] { --category-color: #9dacff; }
.category-icon {
  display: inline-grid;
  place-items: center;
  width: 1.1rem;
  height: 1.1rem;
  color: #ebd8ff;
  font: 1.02rem/1 "Segoe UI Symbol", "Segoe UI Emoji", sans-serif;
}
[data-category="Nature"] .category-icon::before { content: "❧"; color: #a9efa7; font-size: 1.25rem; }
[data-category="Anime"] .category-icon::before { content: "☺"; }
[data-category="Cars"] .category-icon::before { content: "🚘"; filter: grayscale(1); }
[data-category="Space"] .category-icon::before { content: "✦"; color: #d7a0ff; }
[data-category="Gaming"] .category-icon::before { content: "🎮"; filter: grayscale(1); }
[data-category="Abstract"] .category-icon::before { content: "◇"; font-size: 1.18rem; }
[data-category="Animals"] .category-icon::before { content: "🐾"; filter: grayscale(1); }

.format-field { display: block; position: relative; }
.format-field select { appearance: none; padding: 0.4rem 2rem 0.4rem 0.75rem; }
.format-field::after {
  content: "";
  position: absolute;
  pointer-events: none;
  width: 0.45rem;
  height: 0.45rem;
  right: 0.85rem;
  top: 0.95rem;
  border-right: 1.5px solid var(--muted);
  border-bottom: 1.5px solid var(--muted);
  transform: rotate(45deg);
}

.wallpaper-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.95rem;
}
.wallpaper-tile {
  position: relative;
  overflow: hidden;
  border: 1px solid #93a1c027;
  border-radius: 0.9rem;
  background: var(--surface);
  box-shadow: 0 0.35rem 1.3rem #00000020;
  transition: border-color 160ms, box-shadow 160ms, transform 160ms;
}
.wallpaper-tile:hover, .wallpaper-tile:focus-within { border-color: #b697eda0; box-shadow: 0 0.65rem 1.75rem #00000040; transform: translateY(-3px); }
.wallpaper-card {
  position: relative;
  display: block;
  color: var(--text);
  text-align: start;
  text-decoration: none;
}
.wallpaper-card:focus-visible { outline-offset: -3px; border-radius: 0.8rem; }
.wallpaper-card__image { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: #161927; }
body[data-resolution="ultrawide"] .wallpaper-card__image { aspect-ratio: 21 / 9; }
body[data-resolution="phone"] .wallpaper-card__image { aspect-ratio: 9 / 16; }
.wallpaper-card__info {
  display: grid;
  gap: 0.35rem;
  min-height: 5rem;
  align-content: center;
  padding: 0.9rem 3.5rem 0.9rem 1rem;
  border-top: 1px solid #ffffff0d;
  background: var(--surface);
}
.wallpaper-card__title { font-size: 1rem; font-weight: 700; line-height: 1.2; }
.wallpaper-card__meta { color: var(--muted); font-size: 0.8125rem; }
.tile-action {
  position: absolute;
  right: 0.5rem;
  display: grid;
  place-items: center;
  width: 2.65rem;
  height: 2.65rem;
  padding: 0;
  border: 1px solid #ffffff38;
  border-radius: 50%;
  background: #12101bc4;
  color: #fff;
  text-decoration: none;
  backdrop-filter: blur(5px);
}
.tile-action:hover, .tile-action[aria-pressed="true"] { color: #e7c8ff; border-color: #e1b6ff; background: #2d2043; }
.tile-action--save { top: 0.5rem; }
.tile-action--download { bottom: 1.1rem; color: #c2c9fc; border-color: #9290ca4d; background: #252b44; }
.tile-action--download:hover { color: #dbfcff; border-color: var(--cyan); background: #20404b; }
.icon-heart {
  display: inline-grid;
  place-items: center;
  width: 1.15rem;
  height: 1.15rem;
  font: 700 1.23rem/0.9 "Segoe UI Symbol", sans-serif;
}
.icon-heart::before { content: "♡"; }
[aria-pressed="true"] > .icon-heart::before { content: "♥"; }
.icon-download {
  position: relative;
  width: 0.95rem;
  height: 1rem;
  border-bottom: 2px solid currentColor;
  border-radius: 1px;
}
.icon-download::before, .icon-download::after { content: ""; position: absolute; }
.icon-download::before { top: 0; left: calc(50% - 1px); width: 2px; height: 0.65rem; background: currentColor; }
.icon-download::after {
  top: 0.32rem;
  left: calc(50% - 0.24rem);
  width: 0.48rem;
  height: 0.48rem;
  border-bottom: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(45deg);
}
.gallery-empty { padding: 3rem 1rem; text-align: center; border: 1px dashed var(--edge); border-radius: 0.9rem; }
.gallery-empty p { margin: 0 0 1rem; }
.fallback-list { columns: 2; }

.tv-preview {
  max-width: 38rem;
  margin: 0 auto 3.75rem;
  scroll-margin-top: 1rem;
}
.tv-preview__label {
  margin: 0 0 0.4rem;
  color: var(--muted);
  font-size: 0.875rem;
  text-align: center;
}
.tv-preview__frame {
  padding: 0.55rem 0.55rem 0;
  border: 1px solid #454752;
  border-radius: 0.8rem;
  background: linear-gradient(150deg, #272a33, #181a21);
}
.tv-screen {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 0.35rem;
  background: #090a0e;
}
.tv-screen video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.tv-screen[data-powered="false"] video { visibility: hidden; }
.tv-screen__off, .tv-screen__badge {
  position: absolute;
  color: #d3d3de;
  font-size: 0.875rem;
}
.tv-screen__off { display: none; }
.tv-screen__badge {
  inset: auto 0.65rem 0.6rem auto;
  padding: 0.15rem 0.4rem;
  border-radius: 0.25rem;
  background: #111420df;
}
.tv-screen[data-powered="false"] .tv-screen__off { display: block; }
.tv-screen[data-powered="false"] .tv-screen__badge { display: none; }
.tv-preview__panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.5rem 0.2rem;
}
.tv-preview__panel [role="status"] { color: var(--muted); font-size: 0.875rem; }
.tv-preview__controls { display: flex; gap: 0.45rem; }
.tv-preview__controls button {
  min-height: 2.5rem;
  padding: 0.35rem 0.65rem;
  border: 1px solid #555968;
  border-radius: 0.35rem;
  background: #1e212a;
  font-size: 0.875rem;
}
.tv-preview__controls button[aria-pressed="true"] { color: var(--accent); }
.tv-preview__controls button:hover { background: #303440; }

.about {
  display: grid;
  grid-template-columns: minmax(12rem, 0.85fr) minmax(0, 1fr);
  align-items: start;
  gap: 1.5rem;
  padding: 2rem 0 3.5rem;
  border-top: 1px solid var(--edge);
  scroll-margin-top: 1rem;
}
.about p { max-width: 38rem; margin: 0; color: var(--muted); }
.site-footer { border-top: 1px solid var(--edge); background: #101523; }
.footer-inner { min-height: 4.25rem; }
.footer-inner .wordmark { font-size: 1.2rem; }

.wallpaper-dialog {
  margin: auto;
  width: min(100% - 2rem, 53rem);
  max-width: none;
  max-height: calc(100dvh - 2rem);
  padding: 0;
  overflow: auto;
  border: 1px solid var(--edge);
  border-radius: 1rem;
  color: var(--text);
  background: var(--surface);
}
.wallpaper-dialog::backdrop { background: #080911e3; }
.dialog-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  min-width: 2.75rem;
  min-height: 2.75rem;
  border: 1px solid #ffffff45;
  border-radius: 50%;
  font-size: 1.7rem;
  line-height: 1;
  color: var(--text);
  background: #10121ce8;
}
.dialog-image { width: 100%; max-height: 48dvh; object-fit: contain; background: #090a10; }
.dialog-panel { padding: 1.3rem clamp(1rem, 3vw, 1.9rem) 1.5rem; }
.dialog-category { margin: 0 0 0.3rem; color: var(--accent); font-size: 0.9375rem; }
.dialog-panel h2 { margin: 0; font-size: clamp(1.75rem, 4vw, 2.5rem); line-height: 1.15; letter-spacing: -0.035em; }
#dialog-description { margin: 0.55rem 0 1rem; color: var(--muted); }
.dialog-downloads, .detail-page__downloads { display: flex; flex-wrap: wrap; gap: 0.65rem; margin-top: 1.15rem; }
.resolution-link {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  gap: 0.65rem;
  padding: 0.5rem 0.8rem;
  border-radius: 0.55rem;
  background: var(--accent);
  color: var(--accent-ink);
  text-decoration: none;
}
.resolution-link:hover { background: #e5ceff; }
.resolution-link__size { font-weight: 700; }
.resolution-link__action { font-size: 0.875rem; }
.dialog-page-link { display: inline-block; margin-top: 0.9rem; color: var(--muted); text-underline-offset: 0.2em; }
.dialog-page-link:hover { color: var(--text); }

.detail-page { padding-block: 2rem 3.75rem; }
.detail-page__back { display: inline-block; margin-bottom: 1.15rem; color: var(--muted); text-underline-offset: 0.2em; }
.detail-page__content { display: grid; grid-template-columns: minmax(0, 2.5fr) minmax(15rem, 1fr); align-items: start; gap: 1.65rem; }
.detail-page__image { width: 100%; border: 1px solid var(--edge); border-radius: 1rem; background: #0c0f18; }
.detail-page__info { padding-block: 0.75rem; }
.detail-page__info h1 { margin: 0.3rem 0 0.65rem; font-size: clamp(2.15rem, 4vw, 3.4rem); line-height: 1; letter-spacing: -0.06em; }
.detail-page__info p { color: var(--muted); }
.detail-page__info .detail-page__category { margin: 0; color: var(--accent); font-size: 0.9375rem; }

@media (max-width: 1359px) {
  .collection-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 819px) {
  .collection-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 1100px) {
  .wallpaper-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .header-inner--resolutions {
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-areas: "brand pages saved" "resolutions resolutions resolutions";
    gap: 0.6rem 0.8rem;
    padding-block: 0.65rem;
  }
  .header-inner--resolutions .site-nav { justify-self: end; }
  .resolution-nav {
    justify-self: stretch;
    padding-top: 0.5rem;
    border-top: 1px solid #ffffff14;
  }
}

@media (max-width: 800px) {
  .wallpaper-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .detail-page__content { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .site-shell { width: calc(100% - 1.5rem); }
  .header-inner { min-height: 3.75rem; }
  .site-nav { justify-content: center; gap: 0.7rem; }
  .site-nav a, .saved-toggle { font-size: 0.875rem; }
  .hero { min-height: auto; }
  .hero__art { object-position: center 60%; }
  .hero__content { padding-block: 3.2rem 3rem; }
  .hero--home .hero__content { padding-block: 2.8rem 3.25rem; }
  .hero__eyebrow { font-size: 0.875rem; letter-spacing: 0.1em; }
  .hero__content p { margin-block: 0.9rem 1.2rem; }
  .hero--resolution .hero__content { padding-block: 2.35rem 2.6rem; }
  .resolution-button { padding-inline: 0.5rem; }
  .category-filters { gap: 0.45rem; }
  .category-filters button { padding-inline: 0.72rem; }
  .hero__feature { display: none; }
  .collections { padding-bottom: 1.8rem; }
  .section-intro { display: block; }
  .section-intro p { margin-top: 0.5rem; }
  .collection-grid {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 9.5rem;
    gap: 0.65rem;
    overflow-x: auto;
    padding-bottom: 0.75rem;
    scrollbar-width: thin;
    scrollbar-color: #696194 transparent;
    scroll-snap-type: x proximity;
  }
  .collection-card { scroll-snap-align: start; }
  .collection-card img { aspect-ratio: 1.85; }
  .collection-card__title { min-height: 3.3rem; }
  .gallery { padding-block: 0.4rem 2.65rem; }
  .gallery__heading { flex-wrap: wrap; align-items: center; gap: 0.45rem; }
  .wallpaper-grid { gap: 0.65rem; }
  .tile-action { width: 2.5rem; height: 2.5rem; }
  .tv-preview { margin-bottom: 2.65rem; }
  .about { grid-template-columns: 1fr; gap: 0.75rem; padding-bottom: 2.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  .collection-card, .wallpaper-tile, .category-filters button { transition: none; }
  .collection-card:hover, .wallpaper-tile:hover, .wallpaper-tile:focus-within { transform: none; }
}

@media (max-width: 465px) {
  .wordmark { font-size: 1.3rem; }
  .wordmark::before { width: 1.4rem; height: 1.4rem; margin-inline-end: 0.33rem; }
  .saved-toggle { padding-inline: 0.5rem; gap: 0.3rem; }
  .resolution-nav__links { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .resolution-button { grid-column: span 2; }
  .resolution-button--wide, .resolution-button--phone { grid-column: span 3; }
  .wallpaper-grid { grid-template-columns: 1fr; }
  .header-inner--resolutions .site-nav:has(.upload-link) { flex-wrap: wrap; justify-content: end; }
}

@media (max-width: 380px) {
  .header-inner--resolutions {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "brand saved" "resolutions resolutions" "pages pages";
  }
  .header-inner--resolutions .site-nav { justify-self: start; }
  .header-inner--resolutions .site-nav:has(.upload-link) { justify-content: start; }
}
