:root {
  --white: #ffffff;
  --soft-white: #fbfbfa;
  --neutral: #f4f4f1;
  --ink: #111111;
  --muted: #6b6964;
  --line: #d8d8d4;
  --dark: #050505;
  --dark-muted: #aaa9a3;
  --max: 1296px;
  color-scheme: light;
  font-family: Arial, Helvetica, sans-serif;
  scroll-behavior: smooth;
}

@font-face {
  font-family: "Lerida Bodoni";
  src: local("Bodoni Bd BT"), local("Bodoni 72"), local("Bodoni MT"), local("Bodoni");
  font-weight: 700;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--soft-white);
  color: var(--ink);
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 84px;
  padding: 18px clamp(22px, 5vw, 72px);
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(18px);
  transition: background 500ms ease, color 500ms ease, border-color 500ms ease;
}

.site-header.is-dark {
  background: rgba(5, 5, 5, 0.88);
  color: #f6f5ef;
  border-color: rgba(255, 255, 255, 0.14);
}

.brand {
  display: grid;
  gap: 2px;
}

.brand__name {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(25px, 3.1vw, 42px);
  font-weight: 700;
  line-height: 1;
}

.brand__note {
  color: var(--muted);
  font-size: 15px;
  letter-spacing: 0;
  transition: color 500ms ease;
}

.site-header.is-dark .brand__note {
  color: var(--dark-muted);
}

.nav {
  display: flex;
  gap: clamp(18px, 3vw, 42px);
  align-items: center;
  color: var(--muted);
  font-size: 18px;
}

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

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

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

.section {
  min-height: 100vh;
  padding: clamp(64px, 9vw, 118px) clamp(22px, 5vw, 72px);
  transition: background 700ms ease, color 700ms ease;
}

.home {
  min-height: 904px;
  padding: 0;
  overflow: hidden;
  background: #f4f2eb;
}

h1,
h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  letter-spacing: 0;
}

.section-head h2,
.home__text h1 {
  max-width: 1050px;
  font-size: clamp(58px, 9vw, 132px);
  line-height: 0.92;
}

.section-head p {
  max-width: 900px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: clamp(20px, 2.3vw, 28px);
  line-height: 1.38;
}

.home-hero {
  position: relative;
  max-width: 1440px;
  min-height: 904px;
  margin: 0 auto;
  padding: 34px clamp(22px, 5vw, 72px) 0;
}

.home-hero__top {
  position: relative;
  z-index: 6;
  display: flex;
  justify-content: flex-end;
  max-width: var(--max);
  margin: 0 auto;
  min-height: clamp(110px, 14vw, 170px);
}

.home-hero__top p {
  margin: 0 clamp(20px, 4vw, 64px) 0 0;
  color: #11281e;
  font-size: clamp(19px, 2vw, 28px);
  line-height: 1.24;
  transform: translateY(-30px);
}

.home-logo {
  position: absolute;
  z-index: 4;
  left: 50%;
  top: 42px;
  width: 1440px;
  margin: 0;
  color: #10271d;
  font-family: "Lerida Bodoni", Bodoni, Didot, Georgia, "Times New Roman", serif;
  font-size: 248px;
  font-weight: 700;
  line-height: 0.7;
  letter-spacing: -0.065em;
  white-space: nowrap;
  pointer-events: none;
  transform: translateX(-50%);
}

.home-logo__ghost,
.home-logo__main {
  display: block;
}

.home-logo__ghost {
  position: absolute;
  left: -0.26em;
  color: rgba(255, 255, 250, 0.82);
}

.home-logo__main {
  position: relative;
  left: -0.03em;
}

.home-stickers {
  position: absolute;
  z-index: 3;
  top: 0;
  right: 0;
  left: 0;
  bottom: 0;
  overflow: hidden;
  pointer-events: none;
}

.sticker {
  position: absolute;
  width: var(--sticker-width);
  opacity: var(--sticker-opacity, 0.9);
  mix-blend-mode: normal;
  filter: sepia(4%) saturate(92%);
  transform: translate3d(0, 0, 0) rotate(var(--sticker-rotate, 0deg));
  animation: sticker-drift var(--sticker-speed, 16s) ease-in-out infinite alternate;
}

.sticker--pinecone {
  --sticker-width: clamp(150px, 17vw, 245px);
  --sticker-opacity: 0.82;
  --sticker-rotate: -8deg;
  --sticker-speed: 14s;
  left: max(18px, calc(50% - 652px));
  top: 332px;
}

.sticker--toy {
  --sticker-width: clamp(170px, 18vw, 265px);
  --sticker-opacity: 0.9;
  --sticker-rotate: 5deg;
  --sticker-speed: 18s;
  left: max(18px, calc(50% - 362px));
  top: 516px;
}

.sticker--cat {
  --sticker-width: clamp(270px, 30vw, 430px);
  --sticker-opacity: 0.94;
  --sticker-rotate: 2deg;
  --sticker-speed: 20s;
  right: max(18px, calc(50% - 650px));
  top: 286px;
}

.sticker--book {
  --sticker-width: clamp(185px, 20vw, 315px);
  --sticker-opacity: 0.9;
  --sticker-rotate: -5deg;
  --sticker-speed: 17s;
  left: max(18px, calc(50% + 178px));
  top: 540px;
}

.sticker--girl {
  --sticker-width: clamp(165px, 18vw, 255px);
  --sticker-opacity: 0.88;
  --sticker-rotate: 4deg;
  --sticker-speed: 22s;
  right: max(18px, calc(50% - 300px));
  top: 250px;
}

@keyframes sticker-drift {
  from {
    transform: translate3d(-3px, 2px, 0) rotate(var(--sticker-rotate, 0deg));
  }

  to {
    transform: translate3d(4px, -4px, 0) rotate(calc(var(--sticker-rotate, 0deg) + 1deg));
  }
}

.home-hero__bottom {
  position: absolute;
  z-index: 5;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  justify-content: space-between;
  min-height: clamp(58px, 7vw, 92px);
  padding: 22px clamp(22px, 5vw, 72px);
  color: #10271d;
  background: linear-gradient(90deg, rgba(244, 242, 235, 0.86), rgba(244, 242, 235, 0.5));
  font-family: "Courier New", monospace;
  font-size: clamp(14px, 1.4vw, 18px);
  letter-spacing: 0;
}

.home-hero__bottom a {
  color: inherit;
}

.spark {
  position: absolute;
  display: block;
  width: 70px;
  height: 70px;
  color: #10271d;
}

.spark::before,
.spark::after {
  position: absolute;
  inset: 50% auto auto 50%;
  background: currentColor;
  content: "";
  transform: translate(-50%, -50%);
}

.spark::before {
  width: 100%;
  height: 12px;
  clip-path: polygon(0 50%, 42% 34%, 50% 0, 58% 34%, 100% 50%, 58% 66%, 50% 100%, 42% 66%);
}

.spark::after {
  width: 12px;
  height: 100%;
  clip-path: polygon(50% 0, 66% 42%, 100% 50%, 66% 58%, 50% 100%, 34% 58%, 0 50%, 34% 42%);
}

.spark--top {
  top: -12px;
  right: 0;
}

.section-head {
  max-width: var(--max);
  margin: 0 auto clamp(56px, 8vw, 96px);
  padding-top: 10px;
}

.section-head h2 {
  font-size: clamp(64px, 9vw, 128px);
  line-height: 0.9;
}

.section--painting {
  background: #ffffff;
}

.section--drawing {
  background: var(--dark);
  color: #f8f7f1;
}

.section--drawing .section-head p,
.section--drawing figcaption {
  color: var(--dark-muted);
}

.section--pleinair {
  background: var(--soft-white);
}

.hanging {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(24px, 4vw, 58px);
  row-gap: clamp(58px, 8vw, 106px);
  align-items: start;
  max-width: var(--max);
  margin: 0 auto;
}

.work {
  --rail-height: 430px;
  margin: 0;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 680ms ease, transform 680ms ease, filter 260ms ease;
}

.work.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.work.is-filtered {
  display: none;
}

.hanging.is-collapsed .work[data-extra="true"] {
  display: none;
}

.work img {
  width: 100%;
  max-height: var(--rail-height);
  object-fit: contain;
}

.work.tall img {
  max-height: min(560px, var(--rail-height));
}

.work.wide img {
  max-height: min(390px, var(--rail-height));
}

.work.square img {
  max-height: min(430px, var(--rail-height));
}

.work {
  display: grid;
  grid-template-rows: var(--rail-height) auto;
  align-items: center;
}

.work img {
  grid-row: 1;
  align-self: center;
}

.work figcaption {
  grid-row: 2;
}

.hanging--painting .work,
.hanging--pleinair .work {
  --rail-height: 390px;
}

.hanging--drawing .work {
  --rail-height: 360px;
}

.hanging--painting .work img,
.hanging--pleinair .work[data-kind="paint"] img {
  background: transparent;
}

.hanging--drawing .work img,
.hanging--pleinair .work[data-kind="draw"] img {
  background: transparent;
}

figcaption {
  margin-top: 14px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.35;
}

.span-3 {
  grid-column: span 3;
}

.span-4 {
  grid-column: span 4;
}

.span-5 {
  grid-column: span 5;
}

.filters {
  display: flex;
  gap: 10px;
  max-width: var(--max);
  margin: -46px auto 56px;
}

.filters button {
  min-height: 42px;
  padding: 0 20px;
  border: 1px solid var(--ink);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 17px;
  cursor: pointer;
  transition: background 180ms ease, color 180ms ease;
}

.filters button:hover,
.filters button.is-active {
  background: var(--ink);
  color: var(--white);
}

.gallery-toggle-wrap {
  max-width: var(--max);
  margin: clamp(42px, 6vw, 72px) auto 0;
}

.gallery-toggle {
  min-height: 46px;
  padding: 0 22px;
  border: 1px solid currentColor;
  border-radius: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 17px;
  cursor: pointer;
  transition: background 180ms ease, color 180ms ease;
}

.gallery-toggle:hover {
  background: var(--ink);
  color: var(--white);
}

.section--drawing .gallery-toggle:hover {
  background: #f8f7f1;
  color: var(--dark);
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }

  .work {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 980px) {
  .site-header {
    align-items: flex-start;
    gap: 16px;
    flex-direction: column;
  }

  .home__works {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .home-work {
    padding-bottom: 0;
  }

  .home-work img {
    max-height: none;
  }

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

  .span-3,
  .span-4,
  .span-5 {
    grid-column: span 3;
  }
}

@media (max-width: 640px) {
  .site-header {
    position: static;
  }

  .nav {
    width: 100%;
    justify-content: space-between;
    gap: 12px;
    font-size: 16px;
  }

  .section {
    padding: 52px 18px;
  }

  .home {
    min-height: 760px;
    padding: 0;
  }

  .home-hero {
    max-width: none;
    min-height: 760px;
    padding: 72px 18px 0;
  }

  .home-hero__top {
    justify-content: flex-start;
    min-height: 120px;
  }

  .home-hero__top p {
    margin: 0 0 0 92px;
    font-size: 18px;
  }

  .home-logo {
    top: 124px;
    width: 100vw;
    font-size: 112px;
  }

  .sticker--pinecone {
    --sticker-width: 116px;
    left: 18px;
    top: 286px;
  }

  .sticker--toy {
    --sticker-width: 132px;
    left: 38px;
    top: 474px;
  }

  .sticker--cat {
    --sticker-width: 238px;
    right: -52px;
    top: 256px;
  }

  .sticker--book {
    --sticker-width: 144px;
    left: 48%;
    top: 504px;
  }

  .sticker--girl {
    --sticker-width: 128px;
    right: 80px;
    top: 338px;
  }

  .home-hero__bottom {
    min-height: 54px;
    padding: 15px 18px;
    font-size: 12px;
  }

  .home-hero__bottom a {
    display: none;
  }

  .spark--top {
    top: 52px;
    right: 28px;
    width: 54px;
    height: 54px;
  }

  .section-head {
    margin-bottom: 44px;
  }

  .hanging {
    display: block;
  }

  .work + .work {
    margin-top: 48px;
  }

  .work {
    display: block;
  }

  .work img,
  .work.tall img,
  .work.wide img,
  .work.square img {
    width: auto;
    max-width: 100%;
    max-height: none;
    margin: 0 auto;
  }

  .filters {
    flex-wrap: wrap;
    margin: -22px 0 42px;
  }

  .gallery-toggle-wrap {
    margin-top: 34px;
  }

  .gallery-toggle {
    width: 100%;
  }
}
