/* Maison Imhauser — site styles
   Direction: parchment gallery page (see DESIGN.md). Canvas and ink are the two
   colors in the logo file; every other value is a tint between them. Serif for
   the masthead and headings, grotesk for body, mono for labels. Hairline rules,
   no radius, no shadows. */

@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url('/assets/fonts/playfair-display.woff2') format('woff2');
}
@font-face {
  font-family: 'Schibsted Grotesk';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url('/assets/fonts/schibsted-grotesk.woff2') format('woff2');
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
  src: url('/assets/fonts/jetbrains-mono.woff2') format('woff2');
}

:root {
  --canvas: #f0e4d4;    /* logo ground, sampled from Logo.png (46% of pixels) */
  --canvas-2: #e8dcd0;  /* logo stroke cream from Logo_Brown.svg: the single tinted band */
  --ink: #6b4024;       /* logo brown rgb(107,64,36): headings, links, focus. 7.0:1 on canvas, 6.5:1 on band */
  --ink-2: #5b361f;     /* body copy: brown 15% toward black, 8.4:1 on canvas */
  --ink-3: #754c32;     /* labels and metadata: brown 8% toward cream, 5.9:1 on canvas, 5.5:1 on band */
  --rule: #c2ad9c;      /* hairlines: cream 30% toward brown */
  --clay: #8f4224;      /* secondary: rust sampled from the fur coat and leather jacket photos, darkened: 5.6:1 on canvas, 4.9:1 on the blush gradient end */
  --clay-2: #f3dccb;    /* clay tint for gradient ends: canvas 20% toward clay */
  --blush: #ecd3c2;     /* deeper clay tint for the band gradient */
  --mercari: #2d6fd2;   /* Mercari's blue, used only for its verified check and stars (graphics, 3.9:1 on canvas) */
  --serif: 'Playfair Display', 'Didot', Georgia, serif;
  --sans: 'Schibsted Grotesk', 'Helvetica Neue', Arial, sans-serif;
  --mono: 'JetBrains Mono', Menlo, Consolas, monospace;
  --wrap: 960px;
  --gutter: 40px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink-2);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.18em; transition: color 150ms, border-color 150ms; }
a:hover { color: var(--clay); }
p { margin: 0; }
img { max-width: 100%; display: block; }
h1, h2, h3 { margin: 0; font-family: var(--serif); font-weight: 400; color: var(--ink); text-wrap: balance; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } a { transition: none; } }

/* Type */
.label { font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; line-height: 1.5; color: var(--ink-3); }
.label--accent { color: var(--clay); }
.h1 { font-family: var(--serif); font-weight: 400; color: var(--ink); font-size: 34px; line-height: 1.2; letter-spacing: -0.005em; }
.h2 { font-family: var(--serif); font-weight: 400; color: var(--ink); font-size: 28px; line-height: 1.15; text-wrap: balance; }
.h2 a { text-decoration-thickness: 1px; }
.body { font-size: 16px; line-height: 1.6; }
.small { font-size: 14px; }
.measure { max-width: 60ch; }
.measure-s { max-width: 34ch; }
.prose { display: flex; flex-direction: column; gap: 16px; }
.brand { font-family: var(--serif); font-size: 20px; color: var(--ink); }

/* Layout */
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.sec { padding: 72px 0; border-top: 1px solid var(--rule); }
.sec--band { background: linear-gradient(90deg, var(--canvas-2) 0%, var(--blush) 100%); }
.stack { display: flex; flex-direction: column; gap: 20px; }
.stack--s { gap: 12px; }
.stack--l { gap: 32px; }
.grid { display: grid; gap: 40px; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.split { display: grid; grid-template-columns: 5fr 7fr; gap: 40px; align-items: start; }

/* Skip link */
.skip { position: absolute; left: 16px; top: -100px; padding: 8px 12px; background: var(--ink); color: var(--canvas); font-family: var(--mono); font-size: 12px; text-decoration: none; z-index: 30; }
.skip:focus { top: 16px; }

/* Header */
.site-header { border-bottom: 1px solid var(--rule); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 60px; gap: 24px; }
.nav__brand { font-family: var(--serif); font-size: 18px; color: var(--ink); text-decoration: none; white-space: nowrap; }
.nav__links { display: flex; gap: 4px; }
.nav__links a { display: inline-block; padding: 8px 10px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); text-decoration: none; border-bottom: 1px solid transparent; }
.nav__links a:hover { color: var(--ink); border-bottom-color: var(--ink); }

/* Buttons: outlined rectangle (Ssense CTA), filled variant for the primary action */
.btn { display: inline-flex; align-items: center; height: 44px; padding: 0 20px; background: var(--ink); color: var(--canvas); border: 1px solid var(--ink); font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; text-decoration: none; }
.btn:hover { background: var(--clay); border-color: var(--clay); color: var(--canvas); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: transparent; color: var(--clay); border-color: var(--clay); }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.between { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.split--center { align-items: center; }

/* Photography: contained, sharp-edged frames with a hairline (CI, Ssense) */
.frame { display: block; position: relative; margin: 0; border: 1px solid var(--rule); background: var(--canvas-2); overflow: hidden; }
.photo { display: block; width: 100%; height: 100%; object-fit: cover; }
.ratio-4-5 { aspect-ratio: 4 / 5; }
.ratio-3-4 { aspect-ratio: 3 / 4; }
.frame figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 10px 14px; background: rgba(240, 228, 212, 0.92); color: var(--ink); border-top: 1px solid var(--rule); }

/* Hero */
/* Gradients: two atmospheric washes (Simone Sniekers reference), cream toward clay */
.hero { padding: 56px 0 72px; background: linear-gradient(160deg, var(--canvas) 0%, var(--canvas) 45%, var(--clay-2) 100%); }
.hero__grid { display: grid; grid-template-columns: 7fr 5fr; gap: 56px; align-items: center; }
.hero__logo { width: 150px; height: auto; }
.hero__copy .h1 { font-size: 40px; max-width: 21ch; }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px 12px; }
.piece { display: flex; flex-direction: column; gap: 8px; color: var(--ink); text-decoration: none; }
.piece .frame { transition: border-color 150ms; }
.piece:hover .frame { border-color: var(--clay); }
.piece:hover .piece__caption { color: var(--clay); }
.piece__caption { font-size: 14px; line-height: 1.35; margin-top: 4px; }
.piece__shop { font-size: 11px; }

/* Shop cards */
.shops { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.shop {
  display: flex; flex-direction: column; gap: 6px; min-height: 160px; padding: 24px;
  border: 1px solid var(--rule); background: transparent; text-decoration: none; color: var(--ink);
}
.shop:hover { border-color: var(--clay); }
.shop:hover .shop__cta { color: var(--clay); }
.shop__name::after { content: ""; display: block; width: 28px; height: 2px; margin-top: 10px; background: var(--clay); }
.shop__name { font-family: var(--serif); font-size: 28px; line-height: 1.15; }
.shop__handle { font-family: var(--mono); font-size: 12px; letter-spacing: 0.04em; color: var(--ink-3); }
.shop__cta { margin-top: auto; padding-top: 16px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); transition: color 150ms; }

/* FAQ (details/summary, no JS) */
.faq details { border-top: 1px solid var(--rule); padding: 16px 0; }
.faq details:last-child { border-bottom: 1px solid var(--rule); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; font-family: var(--serif); font-size: 20px; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--mono); color: var(--clay); flex: none; }
.faq details[open] summary::after { content: "\2013"; }
.faq p { margin-top: 12px; font-size: 15px; line-height: 1.6; max-width: 60ch; }

/* Marketplace badges inside the shop cards */
.badges { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 10px; }
.badge { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 9px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; white-space: nowrap; }
.badge--filled { background: var(--clay); color: #fcfbfb; }
.badge--outline { border: 1px solid var(--ink); color: var(--ink); }
.badge--verified { border: 1px solid var(--mercari); color: var(--ink); }
.badge--verified svg { width: 14px; height: 14px; fill: var(--mercari); }
.stars { display: inline-flex; gap: 2px; }
.stars svg { width: 15px; height: 15px; fill: var(--mercari); }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* Footer */
.site-footer { border-top: 1px solid var(--rule); background: linear-gradient(180deg, var(--canvas) 0%, var(--clay-2) 100%); }
.footgrid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; padding-top: 48px; padding-bottom: 48px; }
.footgrid a { font-size: 14px; }
.footbar { border-top: 1px solid var(--rule); }
.footbar .wrap { padding-top: 18px; padding-bottom: 18px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* Responsive */
@media (max-width: 760px) {
  :root { --gutter: 20px; }
  .h1 { font-size: 28px; }
  .h2 { font-size: 24px; }
  .sec { padding: 48px 0; }
  .hero { padding: 40px 0 48px; }
  .hero__grid { grid-template-columns: 1fr; gap: 32px; }
  .hero__logo { width: 120px; }
  .hero__copy .h1 { font-size: 28px; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .between { align-items: flex-start; }
  .split, .grid--2 { grid-template-columns: 1fr; gap: 24px; }
  .shops { grid-template-columns: 1fr; }
  .shop { min-height: 0; }
  .footgrid { grid-template-columns: 1fr; gap: 24px; padding-top: 40px; padding-bottom: 40px; }
  .nav { gap: 12px; }
  .nav__brand { font-size: 16px; }
  .nav__links a { padding: 8px 5px; font-size: 11px; letter-spacing: 0.06em; }
}
