:root {
  --bg: #e9eef3;
  --bg-deep: #d9e2ea;
  --surface: #f7fafc;
  --ink: #1c2b36;
  --mute: #5a6d7a;
  --line: rgba(28, 43, 54, 0.12);
  --accent: #b93d5c;
  --accent-deep: #8e2d46;
  --chip: #ffffff;
  --shadow: 0 12px 32px rgba(28, 43, 54, 0.08);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --display: "Fraunces", Georgia, serif;
  --sans: "Figtree", system-ui, sans-serif;
  --max: 72rem;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100%;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.55;
  background:
    radial-gradient(ellipse 80% 40% at 0% 0%, rgba(185, 61, 92, 0.08), transparent 55%),
    radial-gradient(ellipse 60% 35% at 100% 10%, rgba(90, 130, 160, 0.14), transparent 50%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-deep) 100%);
}

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

a { color: var(--accent-deep); }

.wrap {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.mast {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 0 0.85rem;
}

.brand {
  text-decoration: none;
  color: var(--ink);
  display: grid;
  gap: 0.15rem;
}

.brand span {
  font-family: var(--display);
  font-weight: 650;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.brand small {
  color: var(--mute);
  font-size: 0.82rem;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.1rem;
  font-size: 0.95rem;
}

.nav a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.nav a:hover { border-bottom-color: var(--accent); }

.hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1.75rem;
  align-items: end;
  padding: 1.25rem 0 1.75rem;
}

.hero h1 {
  margin: 0 0 0.75rem;
  font-family: var(--display);
  font-weight: 650;
  font-size: clamp(2rem, 4.2vw, 3.15rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.lead {
  margin: 0;
  max-width: 36rem;
  color: var(--mute);
  font-size: 1.12rem;
}

.hero-stack {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
}

.hero-stack figure {
  margin: 0;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--surface);
  aspect-ratio: 1;
}

.hero-stack figure:first-child {
  grid-row: span 2;
  aspect-ratio: auto;
  min-height: 100%;
}

.hero-stack img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.search-dock {
  position: sticky;
  top: 0;
  z-index: 20;
  padding: 0.65rem 0 0.85rem;
  background: linear-gradient(180deg, rgba(233, 238, 243, 0.96) 55%, rgba(233, 238, 243, 0.72) 100%);
  backdrop-filter: blur(10px);
}

.search-box {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.55rem;
  padding: 0.55rem;
  border-radius: 1.15rem;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.search-box label {
  display: grid;
  gap: 0.2rem;
  padding: 0.35rem 0.75rem;
}

.search-box label span {
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--mute);
}

.search-box input {
  border: 0;
  outline: 0;
  background: transparent;
  font: inherit;
  font-size: 1.2rem;
  color: var(--ink);
  width: 100%;
  min-height: 2rem;
}

.search-box button {
  align-self: stretch;
  border: 0;
  border-radius: 0.85rem;
  padding: 0.85rem 1.25rem;
  background: var(--accent);
  color: #fff;
  font: inherit;
  font-weight: 700;
  font-size: 1.05rem;
  cursor: pointer;
  transition: background 180ms var(--ease), transform 180ms var(--ease);
}

.search-box button:hover { background: var(--accent-deep); }
.search-box button:active { transform: scale(0.98); }

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.75rem;
}

.chips button {
  border: 1px solid var(--line);
  background: var(--chip);
  color: var(--ink);
  border-radius: 999px;
  padding: 0.45rem 0.85rem;
  font: inherit;
  font-size: 0.95rem;
  cursor: pointer;
  transition: border-color 160ms var(--ease), color 160ms var(--ease), background 160ms var(--ease);
}

.chips button.is-on,
.chips button:hover {
  border-color: var(--accent);
  color: var(--accent-deep);
  background: #fff5f7;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  margin: 0.35rem 0 1rem;
  color: var(--mute);
  font-size: 0.95rem;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.85rem;
  padding-bottom: 2.5rem;
}

.card {
  margin: 0;
  border-radius: 1rem;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 8px 20px rgba(28, 43, 54, 0.06);
  transition: transform 220ms var(--ease), box-shadow 220ms var(--ease);
  animation: rise 520ms var(--ease) both;
}

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

.card.is-hidden { display: none; }

.card img,
.card .drawn {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.card figcaption {
  padding: 0.7rem 0.85rem 0.9rem;
}

.card figcaption strong {
  display: block;
  font-family: var(--display);
  font-size: 1.05rem;
  font-weight: 650;
  margin-bottom: 0.15rem;
}

.card figcaption span {
  color: var(--mute);
  font-size: 0.88rem;
}

.drawn {
  display: grid;
  place-items: end center;
  padding: 1rem;
  text-align: center;
  color: #fff;
  font-family: var(--display);
  font-size: clamp(1.15rem, 2.4vw, 1.45rem);
  font-weight: 650;
  line-height: 1.2;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

.drawn em {
  font-style: normal;
  display: block;
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.85;
  margin-bottom: 0.35rem;
  font-weight: 600;
}

.how {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 1.5rem;
  padding: 2rem 0 2.5rem;
  border-top: 1px solid var(--line);
}

.how h2 {
  margin: 0 0 0.6rem;
  font-family: var(--display);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 650;
  letter-spacing: -0.02em;
}

.how p { margin: 0; color: var(--mute); }

.how ol {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.75rem;
}

.how li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.85rem;
  padding: 0.95rem 1rem;
  border-radius: 1rem;
  background: var(--surface);
  border: 1px solid var(--line);
}

.how .n {
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: #fff0f3;
  color: var(--accent-deep);
  font-weight: 700;
}

.how h3 {
  margin: 0 0 0.2rem;
  font-size: 1.05rem;
}

.how li p { font-size: 0.95rem; }

.faq {
  padding: 0 0 2.75rem;
}

.faq h2 {
  margin: 0 0 1rem;
  font-family: var(--display);
  font-size: 1.85rem;
  font-weight: 650;
}

.faq details {
  border-top: 1px solid var(--line);
  padding: 0.9rem 0;
}

.faq details:last-child { border-bottom: 1px solid var(--line); }

.faq summary {
  cursor: pointer;
  font-weight: 650;
  font-size: 1.05rem;
  list-style: none;
}

.faq summary::-webkit-details-marker { display: none; }

.faq details p {
  margin: 0.55rem 0 0;
  color: var(--mute);
  max-width: 42rem;
}

.foot {
  border-top: 1px solid var(--line);
  padding: 1.5rem 0 2.5rem;
  color: var(--mute);
  font-size: 0.9rem;
}

.foot p { margin: 0 0 0.55rem; max-width: 48rem; }

.foot nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  margin-top: 0.85rem;
}

.foot a { color: var(--ink); }

.prose {
  width: min(100% - 2rem, 42rem);
  margin: 1.5rem auto 3rem;
}

.prose h1 {
  font-family: var(--display);
  font-size: 2rem;
  margin: 0 0 1rem;
}

.cookie {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 40;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: 36rem;
  margin-inline: auto;
  padding: 0.85rem 1rem;
  border-radius: 1rem;
  background: var(--ink);
  color: #f4f7fa;
  box-shadow: var(--shadow);
}

.cookie.is-on { display: flex; }

.cookie p { margin: 0; font-size: 0.92rem; }
.cookie a { color: #ffd0db; }

.cookie button {
  flex-shrink: 0;
  border: 0;
  border-radius: 0.7rem;
  padding: 0.55rem 0.9rem;
  background: var(--accent);
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.empty {
  display: none;
  grid-column: 1 / -1;
  padding: 2.5rem 1rem;
  text-align: center;
  color: var(--mute);
  background: var(--surface);
  border-radius: 1rem;
  border: 1px dashed var(--line);
}

.empty.is-on { display: block; }

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; }
  .hero-stack { max-width: 26rem; }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .how { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .wrap { width: min(100% - 1.25rem, var(--max)); }
  .nav { display: none; }
  .gallery { grid-template-columns: repeat(2, 1fr); gap: 0.65rem; }
  .search-box { grid-template-columns: 1fr; }
  .search-box button { min-height: 3rem; }
  .hero h1 { font-size: 1.85rem; }
  .lead { font-size: 1.05rem; }
  .chips button { font-size: 0.9rem; padding: 0.5rem 0.8rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}
