@font-face {
  font-family: 'DM Sans';
  src: url('/fonts/dm-sans.woff2') format('woff2');
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}

@font-face {
  font-family: 'Instrument Serif';
  src: url('/fonts/instrument-serif.woff2') format('woff2');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: 'Instrument Serif';
  src: url('/fonts/instrument-serif-italic.woff2') format('woff2');
  font-style: italic;
  font-weight: 400;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: oklch(97.4% 0.012 100);
  --white: oklch(99% 0.008 100);
  --ink: oklch(25% 0.033 153);
  --muted: oklch(40% 0.034 153);
  --line: oklch(83% 0.028 126);
  --forest: oklch(25% 0.036 154);
  --forest-deep: oklch(20% 0.036 154);
  --lime: oklch(90% 0.116 119);
  --sage: oklch(93% 0.037 126);
  --hero-text: oklch(96% 0.019 113);
  --hero-muted: oklch(85% 0.030 129);
  --focus: oklch(50% 0.119 149);
  --error: oklch(42% 0.16 27);
  --display: 'Instrument Serif', Georgia, serif;
  --body: 'DM Sans', sans-serif;
  --wrap: 76rem;
  --gutter: clamp(1.125rem, 5.5vw, 5rem);
  --radius: 0.25rem;
  --ease: 180ms cubic-bezier(0.2, 0.7, 0.25, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--body); font-size: 1rem; line-height: 1.55; }
[hidden] { display: none !important; }
img { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: 0.25em; }
button, input { font: inherit; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 0.98; letter-spacing: -0.024em; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 5px; }
::selection { background: var(--lime); color: var(--forest-deep); }

.wrap { width: min(var(--wrap), calc(100% - var(--gutter) * 2)); margin-inline: auto; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: fixed; z-index: 2; inset: 1rem auto auto 1rem; padding: 0.75rem 1.125rem; background: var(--white); transform: translateY(-200%); }
.skip-link:focus { transform: translateY(0); }

.site-header { background: var(--paper); }
.header-inner, .footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 4.75rem; }
.brand { display: inline-flex; align-items: center; gap: 0.65rem; min-height: 2.75rem; text-decoration: none; }
.brand > span { display: grid; gap: 0.15rem; font: 400 1.82rem/0.81 var(--display); letter-spacing: -0.018em; }
.brand small { padding-top: 0.16rem; font: 650 0.6875rem/1 var(--body); letter-spacing: 0.19em; text-transform: uppercase; }
.header-inner nav { display: flex; gap: clamp(1.125rem, 3.5vw, 2.75rem); align-items: center; font-size: 0.93rem; font-weight: 650; }
.header-inner nav a { display: inline-flex; align-items: center; min-height: 2.75rem; text-decoration: none; }
.header-inner nav a:hover { text-decoration: underline; }

.hero { position: relative; isolation: isolate; display: grid; align-items: center; min-height: clamp(28rem, 48vw, 36rem); overflow: hidden; background: var(--forest-deep); color: var(--hero-text); }
.hero-picture { position: absolute; z-index: -2; inset: 0 0 0 34%; }
.hero-picture img { width: 100%; height: 100%; object-fit: cover; object-position: center 54%; }
.hero::after { content: ''; position: absolute; z-index: -1; inset: 0; pointer-events: none; background: linear-gradient(90deg, var(--forest-deep) 26%, oklch(20% 0.036 154 / 95%) 34%, oklch(20% 0.036 154 / 72%) 43%, transparent 63%); }
.hero-inner { padding-block: clamp(4.5rem, 8.5vw, 7rem); }
.hero h1 { font-size: clamp(4.25rem, 8.15vw, 7.15rem); line-height: 0.85; letter-spacing: -0.036em; }
.hero h1 em { display: block; color: var(--lime); font-weight: 400; }
.hero p { max-width: 33ch; margin-top: 1.75rem; color: var(--hero-muted); font-size: clamp(1rem, 1.6vw, 1.15rem); }
.hero :focus-visible { outline-color: var(--lime); }
.button { min-height: 3.1rem; display: inline-flex; justify-content: center; align-items: center; padding: 0.66rem 1.18rem; border: 1px solid transparent; border-radius: var(--radius); font-size: 0.95rem; font-weight: 700; line-height: 1.25; text-decoration: none; cursor: pointer; transition: background-color var(--ease), color var(--ease); }
.button-lime { background: var(--lime); color: var(--forest-deep); }
.button-lime:hover { background: var(--hero-text); }
.hero .button { margin-top: 1.75rem; }

.catalog { padding-block: clamp(3.25rem, 7vw, 6rem) clamp(3.75rem, 7vw, 6rem); }
.catalog-heading { display: flex; gap: 1.5rem; justify-content: space-between; align-items: end; margin-bottom: 2rem; }
.catalog-heading h2 { font-size: clamp(3.3rem, 5.8vw, 5.375rem); }
.catalog-heading p { max-width: 44ch; margin-top: 0.65rem; color: var(--muted); }
.catalog-search { width: min(100%, 17.25rem); }
.catalog-search label { display: block; margin-bottom: 0.35rem; color: var(--muted); font-size: 0.875rem; font-weight: 650; }
.search-box { display: flex; align-items: center; padding-inline: 0.72rem; gap: 0.3rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); color: var(--muted); }
.search-box svg { flex: none; }
.search-box:focus-within { outline: 2px solid var(--focus); outline-offset: 2px; }
.search-box input { width: 100%; min-width: 0; min-height: 2.75rem; padding: 0.45rem 0.25rem; border: 0; outline: 0; color: var(--ink); background: transparent; caret-color: var(--focus); }
.search-box input::placeholder { color: var(--muted); }

.catalog-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 2.4vw, 1.8rem); }
.product { display: grid; grid-template-rows: auto 1fr; min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.product-image { width: 100%; height: auto; aspect-ratio: 1.27; object-fit: cover; object-position: center 61%; background: var(--sage); }
.product-body { padding: clamp(0.85rem, 2vw, 1.25rem); }
.product-name { display: flex; justify-content: space-between; align-items: center; gap: 0.4rem 0.75rem; }
.product-name h3 { font-size: clamp(2rem, 3.75vw, 2.8rem); }
.amount { flex-shrink: 0; padding: 0.15rem 0.48rem; border-radius: var(--radius); background: var(--sage); color: var(--ink); font-size: 0.84rem; font-weight: 650; font-variant-numeric: tabular-nums; white-space: nowrap; }
.product-meta { margin-top: 0.85rem; border-top: 1px solid var(--line); padding-top: 0.48rem; }
.price { font-weight: 650; font-variant-numeric: tabular-nums; white-space: nowrap; }
.text-button { display: inline-flex; align-items: center; min-height: 2.75rem; font-size: 0.94rem; font-weight: 650; }
.text-button:hover { color: var(--focus); }
.no-results { padding: 2rem; border-block: 1px solid var(--line); }
.text-button { padding: 0; border: 0; background: none; color: var(--ink); text-decoration: underline; text-underline-offset: 0.25em; cursor: pointer; }
.catalog-note { margin-top: 1.5rem; color: var(--muted); font-size: 0.875rem; }

.footer-inner { min-height: 5.3rem; font-size: 0.9rem; }
.footer-inner > a:last-child { display: inline-flex; align-items: center; min-height: 2.75rem; }

@media (max-width: 52rem) {
  .hero { min-height: 28rem; }
  .hero-picture { left: 15%; }
  .hero::after { background: linear-gradient(90deg, var(--forest-deep) 0%, oklch(20% 0.036 154 / 95%) 20%, oklch(20% 0.036 154 / 66%) 46%, transparent 88%); }
  .catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 42rem) {
  .header-inner { min-height: 4.25rem; }
  .brand img { width: 2.125rem; height: 2.125rem; }
  .brand > span { font-size: 1.55rem; }
  .header-inner nav { gap: 0.85rem; font-size: 0.88rem; }
  .hero { display: flex; flex-direction: column; align-items: stretch; min-height: auto; }
  .hero-picture { order: 1; position: relative; inset: auto; height: 17rem; }
  .hero-picture img { object-position: center 60%; }
  .hero::after { display: none; }
  .hero-inner { padding-block: 3rem 2.4rem; }
  .hero h1 { font-size: clamp(3.85rem, 14vw, 5.25rem); }
  .hero p, .hero .button { margin-top: 1.15rem; }
  .catalog-heading { flex-direction: column; align-items: start; margin-bottom: 1.35rem; }
  .catalog-search { width: 100%; }
}

@media (max-width: 29rem) {
  .catalog-grid { grid-template-columns: 1fr; }
  .product-image { aspect-ratio: 1.4; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0ms !important; }
}
