@font-face {
  font-family: "Instrument Sans";
  src: url("assets/fonts/instrument-sans.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: "DM Sans";
  src: url("assets/fonts/sans.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}
:root {
  --ink: #191a19;
  --secondary: #61635f;
  --tint: #f6f5f4;
  --side: clamp(1rem, 2.4vw, 2.5rem);
  --space: clamp(1rem, 2.4vw, 2.5rem);
  --display: "Instrument Sans", Arial, sans-serif;
  --text: "DM Sans", Arial, sans-serif;
  font-family: var(--text);
  color: var(--ink);
  background: #fff;
  color-scheme: light;
  -webkit-text-size-adjust: 100%;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 8.5rem; scrollbar-gutter: stable; }
html.dialog-open { overflow: hidden; }
button, input { color: inherit; font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
button, a, input { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible { outline: 2px solid #435c4a; outline-offset: 3px; }
[hidden] { display: none !important; }
img { display: block; }
h1, h2, .brand { font-family: var(--display); font-weight: 550; }
.wrap { padding-inline: var(--side); }
.skip, .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.skip:focus { width: auto; height: auto; clip-path: none; background: white; padding: .8rem; z-index: 8; }
.mast { position: sticky; top: 0; z-index: 3; background: #fff; }
.top { position: relative; display: grid; grid-template-columns: 1fr minmax(12rem, 28rem) 1fr; align-items: center; gap: 1rem; min-height: 5.25rem; }
.brand { display: inline-flex; align-items: center; justify-self: start; gap: .5rem; font-size: 1.3rem; letter-spacing: -.055em; font-weight: 650; white-space: nowrap; }
.brand img { width: 1.48rem; height: 1.48rem; }
.search { display: flex; align-items: center; gap: .65rem; border: 1px solid #e4e3e0; background: #fbfbfa; border-radius: 2rem; min-height: 3.15rem; padding: 0 1.05rem; box-shadow: 0 1px 5px #1414140a; }
.search:focus-within { outline: 2px solid #66816e; outline-offset: 1px; }
.search svg { flex: none; fill: none; stroke: #777a76; stroke-width: 1.7; stroke-linecap: round; }
.search input { flex: 1; min-width: 0; background: transparent; border: 0; outline: 0; font-size: .94rem; padding: .65rem 0; }
.search input::placeholder { color: #737570; opacity: 1; }
.bonus { justify-self: end; grid-column: 3; background: #151615; border: 0; border-radius: 2rem; font-size: .94rem; font-weight: 550; color: white; min-height: 2.75rem; padding: .5rem 1.35rem; }
.categories { display: flex; align-items: center; gap: .2rem; overflow-x: auto; scrollbar-width: none; padding-block: .22rem .55rem; }
.categories::-webkit-scrollbar { display: none; }
.categories a { display: flex; align-items: center; justify-content: center; flex: none; font-weight: 500; white-space: nowrap; font-size: .89rem; border-radius: 2rem; padding: .65rem 1.12rem; min-height: 2.5rem; color: #696b68; }
.categories a[aria-current] { color: var(--ink); background: #f1f0ee; }
.categories a:focus-visible { outline-offset: -2px; }
.intro { padding-block: clamp(1.25rem, 2.4vw, 2.2rem) 1.45rem; display: flex; flex-direction: column; align-items: start; gap: .45rem; }
.intro h1 { font-size: clamp(1.28rem, 1.85vw, 1.75rem); letter-spacing: -.045em; line-height: 1.2; margin: 0; }
.intro p { color: var(--secondary); font-size: .93rem; line-height: 1.45; margin: 0; max-width: 53rem; }
.board { background: var(--tint); padding-block: var(--space); min-height: 28vh; }
.gallery { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); align-items: start; gap: var(--space); }
.gallery.packed { grid-auto-rows: 1px; row-gap: 0; }
.tile { min-width: 0; }
.tile a { display: block; border-radius: 3px; }
.photo { border-radius: 3px; overflow: hidden; background: #eeedeb; }
.photo img { width: 100%; height: auto; transition: filter .18s ease; }
.clothes.item-1 .photo img { aspect-ratio: 4/4.6; object-fit: cover; }
.tech.item-4 .photo img { background: #e5e5df; }
.books .photo { background: #e4ddd6; padding: 8% 15%; }
.books.item-2 .photo { background: #dfdfd4; }
.books.item-3 .photo { background: #dfdbd9; }
.books.item-4 .photo { background: #dce0d8; }
.caption { padding: .55rem .03rem 0; }
.caption h2 { margin: 0; font-size: .98rem; line-height: 1.25; letter-spacing: -.024em; }
.caption p { color: var(--secondary); font-size: .82rem; line-height: 1.45; margin: .13rem 0 0; overflow-wrap: break-word; }
.empty { color: var(--secondary); font-size: 1rem; }
footer { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-block: 1.8rem; color: var(--secondary); font-size: .875rem; }
footer a { text-decoration: underline; text-underline-offset: .2em; }
dialog { padding: 0; border: 0; max-width: none; max-height: none; width: fit-content; overflow: visible; background: transparent; }
dialog::backdrop { background: #0d1210dc; }
.surprise { position: relative; }
.hand { width: auto; height: auto; max-width: min(91vw, 43rem); max-height: min(88vh, 57rem); max-height: min(88dvh, 57rem); border-radius: .65rem; }
.close { display: grid; place-items: center; position: absolute; right: .7rem; top: .7rem; z-index: 1; width: 2.75rem; height: 2.75rem; padding: 0; border: 1px solid #ffffff55; background: #12251ce8; color: white; line-height: 1; font-size: 1.65rem; border-radius: 50%; }
@media (hover: hover) {
  .categories a:hover { background: #f4f3f1; color: var(--ink); }
  .tile a:hover img { filter: brightness(.96); }
  .tile a:hover h2 { text-decoration: underline; text-underline-offset: .18em; }
  .bonus:hover { background: #343633; }
}
@media (min-width: 105rem) { .gallery { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
@media (max-width: 66rem) { .gallery { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 52rem) { .gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 40rem) {
  :root { --space: .85rem; --side: 1rem; }
  html { scroll-padding-top: 10rem; }
  .top { grid-template-columns: 1fr auto; gap: .65rem; padding-block: .7rem .5rem; min-height: 0; }
  .brand { font-size: 1.18rem; }
  .brand img { width: 1.3rem; height: 1.3rem; }
  .bonus { grid-column: 2; grid-row: 1; min-height: 2.55rem; padding-inline: 1rem; font-size: .89rem; }
  .search { grid-row: 2; grid-column: 1 / -1; width: 100%; min-height: 2.6rem; padding-inline: .85rem; gap: .55rem; }
  .search input { font-size: 1rem; padding-block: .45rem; }
  .categories { padding-block: .1rem .4rem; gap: .1rem; }
  .categories a { padding: .5rem .85rem; }
  .intro { padding-block: 1.05rem 1.1rem; }
  .intro p { font-size: .89rem; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .caption h2 { font-size: .92rem; }
  .caption p { font-size: .79rem; }
  .hand { max-width: 95vw; max-height: 88dvh; }
}
@media (prefers-reduced-motion: no-preference) {
  dialog[open] .hand { animation: unwrap .38s ease-out both; }
  @keyframes unwrap { from { opacity: 0; transform: translateY(.55rem) scale(.97) rotate(-1deg); } to { opacity: 1; transform: none; } }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; } }
