@font-face {
  font-family: "DM Sans";
  src: url("assets/fonts/dm-sans.woff") format("woff"), url("assets/fonts/dm-sans.ttf") format("truetype");
  font-weight: 100 1000;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #fafaf7;
  --ink: #20211f;
  --soft: #62645d;
  --line: #dadbd4;
  --gutter: 48px;
  --header-height: 80px;
  --hero-gray: var(--paper);
  --motion-ease: cubic-bezier(.22, 1, .36, 1);
  --motion-fast: 220ms;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: calc(var(--header-height) + 20px); }
:where(a, button, input, [tabindex]) { scroll-margin-block: calc(var(--header-height) + 20px) 24px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.6 "DM Sans", sans-serif; -webkit-font-smoothing: antialiased; }
h1, h2, h3, p, figure, dl, dd { margin: 0; }
h1, h2, h3 { font-weight: 750; line-height: 1.1; letter-spacing: -.035em; text-wrap: balance; }
h2 { font-size: clamp(40px, 3.6vw, 52px); }
h3 { font-size: 30px; }
a { color: inherit; text-decoration: none; text-underline-offset: 5px; }
button, input { font: inherit; }
button { cursor: pointer; color: inherit; }
img { display: block; max-width: 100%; }
button, a, input { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 5px; }
::selection { background: var(--ink); color: var(--paper); }
[hidden] { display: none !important; }
.container { width: calc(100% - var(--gutter) * 2); max-width: 1280px; margin-inline: auto; }
.skip-link { position: fixed; left: 16px; top: -100px; padding: 12px 20px; background: var(--ink); color: var(--paper); z-index: 50; }
.skip-link:focus { top: 16px; }
.site-header { position: sticky; top: 0; z-index: 20; width: 100%; background: var(--paper); color: var(--ink); }
.site-header::after { content: ''; position: absolute; inset: auto 0 0; height: 1px; background: var(--line); opacity: 1; pointer-events: none; transition: opacity var(--motion-fast) var(--motion-ease); }
.site-header.over-hero::after { opacity: 0; }
.site-header.over-hero { background: var(--hero-gray); color: var(--ink); }
.site-header.over-hero :focus-visible { outline-color: var(--ink); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: var(--header-height); padding-block: 8px; }
.wordmark { display: inline-flex; gap: 8px; align-items: center; min-height: 44px; font-weight: 400; font-size: 18px; letter-spacing: -.025em; white-space: nowrap; }
.desktop-nav { display: flex; flex-wrap: wrap; gap: 0 28px; }
.desktop-nav a { position: relative; display: flex; align-items: center; min-height: 44px; font-size: 15px; }
.desktop-nav a::after { content: ''; position: absolute; inset: auto 0 7px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform var(--motion-fast) var(--motion-ease); }
.desktop-nav a[aria-current]::after { transform: scaleX(1); }
.desktop-nav a:focus-visible::after { transform: scaleX(1); transition: none; }
.navigation-panel nav a[aria-current] { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; }
.navigation-panel a:hover { text-decoration: underline; }
@media (hover: hover) and (pointer: fine) {
  .desktop-nav a:hover::after { transform: scaleX(1); }
}
.menu-toggle { display: none; min-width: 64px; min-height: 44px; padding: 8px 0; border: 0; background: transparent; }
.menu-toggle:active, .navigation-close:active, .button:active { opacity: .7; }
.navigation-panel { position: fixed; inset: 0 0 0 auto; width: min(480px, 100%); max-width: 100%; height: 100%; max-height: 100%; margin: 0; padding: 100px 32px 32px; border: 0; background: var(--ink); color: var(--paper); overflow-y: auto; }
.navigation-panel::backdrop { background: #1117; }
.navigation-panel > p:first-of-type { font-size: 14px; color: #c1c3bc; padding-bottom: 20px; border-bottom: 1px solid #ffffff30; }
.navigation-panel nav { display: flex; flex-direction: column; gap: 6px; padding-block: 24px 36px; }
.navigation-panel nav a { width: fit-content; min-height: 44px; font-size: clamp(32px, 6vw, 48px); line-height: 1.35; letter-spacing: -.03em; }
.navigation-panel a:hover { color: #d7d9d2; }
.navigation-panel :focus-visible { outline-color: var(--paper); }
.navigation-close { position: absolute; top: 16px; right: 24px; display: flex; align-items: center; gap: 16px; min-height: 44px; border: 0; background: transparent; }
.navigation-close span { font-size: 28px; }
.navigation-note { color: #c1c3bc; font-size: 14px; }
@media (max-width: 899px) {
  :root { --header-height: 64px; }
  .header-inner { flex-wrap: wrap; gap: 0 16px; }
  .wordmark { font-size: 16px; }
  .desktop-nav { width: 100%; gap: 0 18px; flex-wrap: wrap; padding-bottom: 8px; }
  html:not(.navigation-ready) .site-header { position: relative; }
  .navigation-ready .desktop-nav { display: none; }
  .navigation-ready .menu-toggle { display: block; }
}
.button { display: inline-flex; justify-content: center; align-items: center; gap: 28px; min-height: 48px; padding: 12px 24px; border: 1px solid var(--ink); border-radius: 999px; font-size: 14px; font-weight: 650; transition: background-color 180ms, color 180ms; }
.button-dark { background: var(--ink); color: var(--paper); }
.button-dark:hover { background: #41433d; }
.text-link { display: inline-flex; align-items: center; gap: 24px; min-height: 44px; padding-block: 10px; font-size: 14px; font-weight: 650; text-decoration: underline; text-decoration-thickness: 1px; }
.text-link:hover { text-decoration-thickness: 2px; }
.search-field { width: min(100%, 440px); }
.search-field label { display: block; font-size: 13px; color: var(--soft); margin-bottom: 8px; }
.search-field input { width: 100%; min-height: 48px; padding: 12px 16px; border: 1px solid #93958d; border-radius: 0; color: var(--ink); background: transparent; }
.search-field input::placeholder { color: var(--soft); opacity: 1; }
.collection-tools { display: flex; align-items: end; justify-content: space-between; gap: 24px; }
#collection-count { color: var(--soft); font-size: 14px; padding-bottom: 12px; white-space: nowrap; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filters button { min-height: 44px; padding: 10px 16px; background: transparent; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; transition: background-color 180ms, color 180ms; }
.filters button:hover { border-color: var(--ink); }
.filters button[aria-pressed="true"] { color: var(--paper); background: var(--ink); border-color: var(--ink); }
.back-link { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; }
figcaption { margin-top: 12px; }
.preview-notice { padding-block: 24px; border-top: 1px dashed var(--line); color: var(--soft); font-size: 13px; }
.preview-notice p { margin-top: 8px; max-width: 85ch; }
.preview-notice a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: underline; }

@media (max-width: 1100px) {
  :root { --gutter: 32px; }
  .desktop-nav { gap: 24px; }
}

@media (max-width: 760px) {
  :root { --gutter: 22px; }
  h2 { font-size: clamp(30px, 7.8vw, 36px); }
  .collection-tools { align-items: start; flex-direction: column; gap: 12px; }
  .search-field { width: 100%; }
  #collection-count { padding-bottom: 0; }
  .filters button { font-size: 13px; padding-inline: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .desktop-nav a::after { transform: none; opacity: 0; }
  .desktop-nav a[aria-current]::after, .desktop-nav a:focus-visible::after { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) and (hover: hover) and (pointer: fine) {
  .desktop-nav a:hover::after { opacity: 1; }
}
