:root {
  --paper: #f7e9cf;
  --paper-deep: #f1d29a;
  --ink: #1b1430;
  --board: #d7c1a7;
  --board-shadow: #8b6d52;
  --pink: #ff4f8b;
  --cyan: #11d0ff;
  --yellow: #ffe25a;
  --orange: #ff9140;
  --lime: #d4ff4d;
  --red: #ff4057;
  --shadow: 0 8px 0 rgba(27, 20, 48, 0.18), 0 16px 30px rgba(27, 20, 48, 0.2);
  --border: 3px solid #1b1430;
  --max-width: 1280px;
  font-size: 16px;
}

* {
  box-sizing: border-box;
}

html {
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.35), transparent 20%),
    linear-gradient(180deg, #ffd99c 0%, #ffb7a7 24%, #ff8ebc 48%, #7fdbff 74%, #fbf4d2 100%);
  min-height: 100%;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "Trebuchet MS", Verdana, sans-serif;
  line-height: 1.5;
  min-height: 100vh;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.08) 0 2px, transparent 2px 110px);
}

a {
  color: inherit;
}

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

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 1000;
  background: var(--yellow);
  padding: 0.75rem 1rem;
  border: var(--border);
}

.skip-link:focus {
  top: 1rem;
}

.page-shell {
  width: min(calc(100% - 1.5rem), var(--max-width));
  margin: 1rem auto 3rem;
}

.theme-home .page-shell {
  width: 100%;
  margin: 0;
}

.site-header,
.page-content,
.site-footer {
  border: var(--border);
  box-shadow: var(--shadow);
}

.site-header {
  background: linear-gradient(180deg, #fff6ca, #ffcea8 70%, #ff96bb);
  padding: 1rem;
  position: relative;
  overflow: hidden;
}

.site-header::before,
.site-header::after {
  content: "";
  position: absolute;
  inset: auto auto 0 0;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.65), transparent 70%);
  pointer-events: none;
}

.site-header::after {
  inset: 0 0 auto auto;
}

.site-header__masthead {
  display: grid;
  gap: 0.2rem;
  position: relative;
  z-index: 1;
}

.site-header__eyebrow,
.hero-panel__eyebrow,
.pegboard__eyebrow,
.section-hero__eyebrow {
  margin: 0;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.75rem;
}

.site-header__title {
  margin: 0;
  font-size: clamp(2.4rem, 7vw, 5rem);
  line-height: 0.92;
  text-shadow: 3px 3px 0 var(--paper);
}

.site-header__title a {
  text-decoration: none;
}

.site-header__tagline {
  margin: 0;
  max-width: 40rem;
  font-size: 1.05rem;
}

.site-header__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1rem;
  position: relative;
  z-index: 1;
}

.site-header__badges span {
  background: var(--ink);
  color: white;
  padding: 0.3rem 0.7rem;
  border: 2px solid white;
  font-size: 0.8rem;
  transform: rotate(-2deg);
}

.site-header__marquee {
  margin-top: 1rem;
  border: var(--border);
  background: var(--ink);
  color: var(--lime);
  overflow: hidden;
  padding: 0.55rem 0;
}

.site-header__marquee div {
  display: flex;
  width: max-content;
  animation: scroll-left 18s linear infinite;
}

.site-header__marquee span {
  padding-right: 2rem;
  font-weight: 700;
}

.site-nav {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  position: relative;
  z-index: 1;
}

.site-nav a {
  border: var(--border);
  background: var(--paper);
  padding: 0.5rem 0.8rem;
  text-decoration: none;
  font-weight: 700;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  background: var(--cyan);
  outline: none;
}

.page-content {
  background: rgba(255, 249, 228, 0.92);
  margin-top: 1rem;
  padding: 1rem;
}

.theme-home .page-content {
  margin-top: 0;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.site-footer {
  margin-top: 1rem;
  background: linear-gradient(180deg, #fff0ae, #ffd5a2);
  padding: 1rem;
  text-align: center;
}

.hero-panel,
.pegboard,
.link-grid,
.section-page {
  border: var(--border);
  background: rgba(255, 255, 255, 0.55);
  box-shadow: var(--shadow);
}

.hero-panel {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1rem;
  padding: 1rem;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.7), rgba(255, 245, 190, 0.7));
}

.home-splash {
  min-height: max(100vh, calc(100vw / 1.6678));
  position: relative;
  overflow: hidden;
  background: #121b48;
}

.home-splash::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 28%, rgba(255, 255, 255, 0.12) 0 0.08rem, transparent 0.09rem),
    radial-gradient(circle at 74% 36%, rgba(255, 255, 255, 0.08) 0 0.06rem, transparent 0.07rem),
    radial-gradient(circle at 38% 72%, rgba(255, 255, 255, 0.09) 0 0.07rem, transparent 0.08rem),
    radial-gradient(circle at 82% 78%, rgba(255, 255, 255, 0.08) 0 0.05rem, transparent 0.06rem),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(90deg, rgba(10, 18, 54, 0.05) 0 1px, transparent 1px 4px);
  background-size: 240px 240px, 320px 320px, 280px 280px, 360px 360px, 4px 4px, 5px 5px;
  mix-blend-mode: screen;
  opacity: 0.45;
  pointer-events: none;
  z-index: 1;
}

.home-splash__scene {
  position: relative;
  height: 100vh;
  max-height: calc(100vw * 1680 / 1537);
  aspect-ratio: 1537 / 1680;
  margin: 0 auto;
  z-index: 2;
}

.home-splash__background {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.home-splash__title-image {
  position: absolute;
  top: 0%;
  left: 50%;
  width: 92%;
  height: auto;
  filter: drop-shadow(0 8px 0 rgba(27, 20, 48, 0.45)) drop-shadow(0 16px 28px rgba(0, 0, 0, 0.28));
  transform-origin: center top;
  animation: home-title-pulse 3.8s ease-in-out infinite;
}

.home-splash__photo-link {
  position: absolute;
  left: 30%;
  top: 48%;
  width: 20%;
  transform: translate(-50%, -50%) rotate(-2deg);
  text-decoration: none;
  color: inherit;
  z-index: 3;
}

.home-splash__print-link {
  left: 62%;
  top: 46%;
  width: 24%;
}

.home-splash__mosaic-link {
  left: 40%;
  top: 77%;
  width: 18%;
}

.home-splash__generative-link {
  left: 68%;
  top: 72%;
  width: 18%;
}

.home-splash__photo-frame {
  display: block;
  background: transparent;
  border: 0;
  padding: 0;
  box-shadow: none;
  transition: transform 160ms ease;
}

.home-splash__photo-image {
  width: 100%;
  height: auto;
  border: 0;
  background: transparent;
  filter: none;
}

.home-splash__item-image {
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

.home-splash__item-label {
  position: absolute;
  left: 50%;
  top: calc(100% + 0.5rem);
  transform: translateX(-50%) translateY(-0.25rem);
  color: #fff8d8;
  padding: 0;
  font-weight: 700;
  white-space: nowrap;
  text-shadow: 0 2px 10px rgba(9, 13, 35, 0.95);
  opacity: 0;
  transition: opacity 160ms ease, transform 160ms ease;
}

.home-splash__photo-link:hover .home-splash__photo-frame,
.home-splash__photo-link:focus .home-splash__photo-frame,
.home-splash__photo-link:focus-visible .home-splash__photo-frame {
  transform: scale(1.03) rotate(1deg);
}

.home-splash__photo-link:hover .home-splash__item-label,
.home-splash__photo-link:focus .home-splash__item-label,
.home-splash__photo-link:focus-visible .home-splash__item-label {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.hero-panel h2,
.pegboard h2,
.link-grid h2,
.section-page h2 {
  margin-top: 0;
  font-size: clamp(1.9rem, 4vw, 3rem);
  line-height: 0.95;
}

.hero-panel__note {
  align-self: start;
  border: var(--border);
  background: var(--paper);
  padding: 1rem;
  transform: rotate(3deg);
}

.pegboard {
  margin-top: 1rem;
  padding: 1rem;
}

.pegboard__intro {
  max-width: 45rem;
}

.pegboard__surface {
  margin-top: 1rem;
  min-height: 820px;
  position: relative;
  border: var(--border);
  padding: 1rem;
  background:
    radial-gradient(circle at 14px 14px, rgba(75, 49, 24, 0.3) 0 2px, transparent 2.5px 100%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.22), rgba(120, 76, 43, 0.12)),
    linear-gradient(135deg, #d7c1a7, #c09c74);
  background-size: 28px 28px, auto, auto;
  overflow: hidden;
}


.pegboard__surface::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.18), transparent 20%, transparent 80%, rgba(27, 20, 48, 0.08));
  pointer-events: none;
}

.pegboard__decor {
  position: absolute;
  z-index: 1;
  border: var(--border);
  box-shadow: var(--shadow);
  text-transform: uppercase;
  font-weight: 700;
}

.pegboard__decor--starburst {
  right: 3%;
  top: 4%;
  background: var(--yellow);
  padding: 1.2rem 1rem;
  clip-path: polygon(50% 0%, 63% 16%, 84% 6%, 78% 28%, 100% 36%, 80% 50%, 100% 64%, 76% 72%, 84% 94%, 62% 84%, 50% 100%, 38% 84%, 16% 94%, 24% 72%, 0% 64%, 20% 50%, 0% 36%, 22% 28%, 16% 6%, 37% 16%);
}

.pegboard__decor--stamp {
  left: 3%;
  bottom: 5%;
  background: white;
  color: var(--red);
  padding: 0.45rem 0.8rem;
  transform: rotate(-12deg);
}

.pegboard__decor--note {
  right: 20%;
  bottom: 8%;
  background: #fff5ad;
  padding: 0.8rem;
  transform: rotate(8deg);
}

.board-item {
  --accent: var(--pink);
  width: min(18rem, 28vw);
  position: absolute;
  left: var(--desktop-x);
  top: var(--desktop-y);
  display: grid;
  gap: 0.55rem;
  text-decoration: none;
  color: var(--ink);
  transform: rotate(var(--rotate));
  z-index: 2;
}

.theme-home .board-item {
  width: min(13rem, 16vw);
}

.board-item:hover,
.board-item:focus,
.board-item:focus-visible {
  z-index: 5;
}

.board-item__hook {
  width: 1rem;
  height: 1.25rem;
  border: 3px solid var(--ink);
  border-bottom: 0;
  border-radius: 999px 999px 0 0;
  background: linear-gradient(180deg, white, #9aa3a8);
  justify-self: center;
  box-shadow: 0 0.25rem 0 rgba(255, 255, 255, 0.5);
}

.board-item__art-frame {
  background: white;
  border: var(--border);
  padding: 0.5rem;
  box-shadow: var(--shadow);
}

.board-item__art-frame img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border: 2px solid rgba(27, 20, 48, 0.15);
}

.board-item__label {
  display: grid;
  gap: 0.25rem;
  border: var(--border);
  background: rgba(255, 249, 228, 0.96);
  padding: 0.75rem;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(-0.35rem);
  transition: opacity 160ms ease, transform 160ms ease;
}

.board-item__label strong {
  font-size: 1.05rem;
}

.board-item__label span:last-child {
  font-size: 0.9rem;
}

.board-item:hover .board-item__label,
.board-item:focus .board-item__label,
.board-item:focus-visible .board-item__label,
.board-item--static .board-item__label,
.board-item__label--always {
  opacity: 1;
  transform: translateY(0);
}

.board-item--polaroid .board-item__art-frame {
  padding-bottom: 1rem;
}

.board-item--hangtag .board-item__art-frame {
  border-radius: 1.2rem 1.2rem 0.8rem 0.8rem;
}

.board-item--sticker .board-item__art-frame {
  border-radius: 1rem;
}

.board-item--postcard .board-item__art-frame {
  background: linear-gradient(135deg, #fff8d1, #ffd4ca);
}

.board-item--sunburst {
  --accent: var(--yellow);
}

.board-item--electric {
  --accent: var(--cyan);
}

.board-item--acid {
  --accent: var(--lime);
}

.board-item--hot {
  --accent: var(--orange);
}

.board-item .board-item__art-frame,
.board-item .board-item__label {
  border-color: var(--ink);
  box-shadow: 0 0 0 6px var(--accent), var(--shadow);
}

.link-grid {
  margin-top: 1rem;
  padding: 1rem;
}

.link-grid > div,
.section-grid,
.section-notes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.link-grid article,
.feature-card,
.section-notes > div {
  border: var(--border);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(255, 239, 186, 0.9));
  padding: 1rem;
  box-shadow: var(--shadow);
}

.section-page {
  padding: 1rem;
}

.theme-gallery,
.theme-gallery body,
body.theme-gallery {
  margin: 0;
  min-height: 100vh;
  background: #000;
  color: white;
  font-family: "Trebuchet MS", Verdana, sans-serif;
}

.gallery-page {
  padding: 1rem;
}

.bare-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: #000;
}

.bare-page__title {
  margin: 0;
  color: #fff8d8;
  font-size: clamp(2rem, 6vw, 5rem);
  line-height: 1;
  text-transform: uppercase;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.45);
}

.gallery-page {
  padding: 1rem;
}

.theme-art .gallery-page {
  background: #060913;
}

.gallery-page__grid {
  columns: 3;
  column-gap: 0.75rem;
}

.gallery-page__item {
  appearance: none;
  display: inline-block;
  width: 100%;
  margin: 0 0 0.75rem 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.gallery-page__item img {
  width: 100%;
  height: auto;
  display: block;
}

.gallery-page__item[hidden] {
  display: none;
}

.album-selector {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin-bottom: 1rem;
}

.album-selector__btn {
  border: 2px solid transparent;
  background: none;
  color: #4488ff;
  padding: 0.3rem 0.75rem;
  font: inherit;
  font-size: 0.9rem;
  text-decoration: underline;
  cursor: pointer;
  transition: color 120ms ease, border-color 120ms ease;
}

.album-selector__btn:hover,
.album-selector__btn:focus-visible {
  color: #aaccff;
}

.album-selector__btn--active {
  color: #ffffff;
  text-decoration: none;
  border-color: #4488ff;
}

.gallery-lightbox {
  border: 0;
  padding: 0;
  max-width: none;
  max-height: none;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.92);
}

.gallery-lightbox::backdrop {
  background: rgba(0, 0, 0, 0.92);
}

.gallery-lightbox[open] {
  display: grid;
  place-items: center;
}

.gallery-lightbox__chrome {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 2;
}

.gallery-lightbox__close {
  border: 0;
  background: rgba(255, 255, 255, 0.14);
  color: white;
  padding: 0.75rem 1rem;
  font: inherit;
  cursor: pointer;
}

.gallery-lightbox__image {
  max-width: calc(100vw - 2rem);
  max-height: calc(100vh - 2rem);
  object-fit: contain;
}

.gallery-lightbox__nav {
  display: none;
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  border: 0;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  font-size: 5rem;
  padding: 0.75rem 1.25rem;
  cursor: pointer;
  line-height: 1;
  transition: background 120ms ease;
}

.gallery-lightbox__nav:hover,
.gallery-lightbox__nav:focus-visible {
  background: rgba(255, 255, 255, 0.22);
  outline: none;
}

.gallery-lightbox__nav--prev {
  left: 0;
  border-radius: 0 4px 4px 0;
}

.gallery-lightbox__nav--next {
  right: 0;
  border-radius: 4px 0 0 4px;
}

@media (min-width: 641px) {
  .gallery-lightbox__nav {
    display: block;
  }
}

.theme-art,
body.theme-art {
  background: #060913;
}

.art-grid {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 0;
  background: #060913;
  overflow: hidden;
}

.art-grid__item {
  margin: 0;
  padding: 0;
  width: 100%;
  display: grid;
  place-items: center;
  background: #060913;
}

.art-grid__item--hidden {
  display: none;
}

.art-grid__image {
  max-width: 100%;
  max-height: 100vh;
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

@media (min-width: 641px) {
  .art-grid__item {
    min-height: 100vh;
  }

  .art-grid__image {
    width: auto;
    height: 100vh;
  }
}

.section-hero {
  display: grid;
  grid-template-columns: minmax(240px, 320px) 1fr;
  gap: 1rem;
  align-items: start;
}

.section-hero__art {
  position: static;
  width: 100%;
  transform: rotate(-3deg);
}

.section-hero__copy {
  border: var(--border);
  background: rgba(255, 255, 255, 0.72);
  padding: 1rem;
  box-shadow: var(--shadow);
}

.section-grid,
.section-notes {
  margin-top: 1rem;
}

.feature-card h3,
.section-notes h3,
.link-grid h3 {
  margin-top: 0;
}

.theme-section-3d-printing .section-page,
.theme-section-digital-art .section-page,
.theme-section-physical-art .section-page {
  background: rgba(255, 253, 240, 0.66);
}

:focus-visible {
  outline: 4px solid var(--red);
  outline-offset: 4px;
}

@keyframes scroll-left {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

@keyframes home-title-pulse {
  0% {
    transform: translateX(-50%) scale(0.98);
  }

  50% {
    transform: translateX(-50%) scale(1.02);
  }

  100% {
    transform: translateX(-50%) scale(0.98);
  }
}

@media (max-width: 960px) {
  .hero-panel,
  .section-hero,
  .link-grid > div,
  .section-grid,
  .section-notes,
  .gallery-page__grid {
    columns: 2;
  }

  .pegboard__surface {
    min-height: auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    align-items: start;
    padding-top: 5rem;
  }

  .board-item {
    position: relative;
    left: auto;
    top: auto;
    width: 100%;
  }

  .board-item:nth-of-type(2n) {
    transform: rotate(3deg);
  }

  .board-item:nth-of-type(2n + 1) {
    transform: rotate(-3deg);
  }

  .board-item__label {
    opacity: 1;
    transform: none;
  }

  .pegboard__decor--starburst {
    top: 1rem;
    right: 1rem;
  }

  .pegboard__decor--stamp {
    left: 1rem;
    bottom: 1rem;
  }
}

@media (max-width: 640px) {
  .page-shell {
    width: min(calc(100% - 0.75rem), var(--max-width));
    margin-top: 0.5rem;
  }

  .site-header,
  .page-content,
  .site-footer,
  .hero-panel,
  .pegboard,
  .link-grid,
  .section-page {
    padding: 0.8rem;
  }

  .theme-home .page-content {
    padding: 0;
  }

  .hero-panel,
  .section-hero,
  .link-grid > div,
  .section-grid,
  .section-notes,
  .pegboard__surface,
  .gallery-page__grid {
    columns: 1;
  }

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

  .site-nav a {
    text-align: center;
  }

  .pegboard__surface {
    padding-top: 6rem;
  }

  .home-splash__photo-link {
    width: 22%;
  }

  .home-splash__print-link {
    width: 28%;
  }

  .home-splash__mosaic-link {
    width: 24%;
  }

  .home-splash__generative-link {
    width: 24%;
  }

  .home-splash__title-image {
    width: 75%;
  }

  .pegboard__decor--note {
    display: none;
  }

  .site-header__badges span {
    font-size: 0.7rem;
  }
}