/* Crawlable pages (patterns, collection, 404): the app's quiet product studio. */
@font-face { font-family: Manrope; font-style: normal; font-weight: 400 800; font-display: swap; src: url('/fonts/manrope-latin-variable.woff2') format('woff2'); }
@font-face { font-family: Bricolage; font-style: normal; font-weight: 200 800; font-display: swap; src: url('/fonts/bricolage-grotesque-variable.ttf') format('truetype'); }
:root {
  --surface: #f4f3ef; --raised: #faf9f6; --soft: #ebeae5; --line: #d9d8d2;
  --ink: #191918; --muted: #6f6e69; --stage: #262624; --stage-text: #dedcd3; --accent: #a65938;
  color: var(--ink); background: var(--surface);
  font: 400 15px/1.6 Manrope, 'Segoe UI', sans-serif; letter-spacing: -.005em;
  font-synthesis: none; -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
main { width: min(1240px, 100% - 48px); margin: 0 auto; }

.site-top {
  width: min(1240px, 100% - 48px); margin: 0 auto; padding: 22px 0;
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  border-bottom: 1px solid var(--line);
}
.wordmark { font: 700 22px/1 Bricolage, Manrope, sans-serif; letter-spacing: -.045em; text-decoration: none; display: inline-flex; align-items: center; }
/* Peacock mark beside the name, as in the app header; sized from the name. */
.wordmark .brand-mark { flex: none; width: 1.6em; height: 1.6em; object-fit: contain; margin-right: .2em; }
.wordmark span, .period { color: var(--accent); }
.site-top nav { display: flex; gap: 22px; flex-wrap: wrap; }
.site-top nav a, .crumbs a, .section-link {
  font-size: 12px; font-weight: 750; text-decoration: none; letter-spacing: .02em;
  border-bottom: 1px solid transparent; padding-bottom: 2px;
}
.site-top nav a:hover, .site-top nav a[aria-current="page"], .crumbs a:hover, .section-link:hover { border-bottom-color: var(--ink); }

.crumbs { display: flex; gap: 10px; margin: 26px 0 0; font-size: 12px; color: var(--muted); }
.eyebrow {
  margin: 0 0 18px; font-size: 10px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--muted);
}
h1 {
  margin: 0; font: 700 clamp(46px, 7vw, 92px)/.92 Bricolage, Manrope, sans-serif; letter-spacing: -.06em;
  text-wrap: balance;
}
h2 { margin: 0; font: 700 clamp(24px, 3vw, 34px)/1 Bricolage, Manrope, sans-serif; letter-spacing: -.045em; }
.lede { max-width: 34em; margin: 26px 0 0; font-size: 18px; line-height: 1.55; color: #3a3935; text-wrap: pretty; }
.offer { margin: 14px 0 0; font-size: 13px; font-weight: 650; color: var(--muted); }

.hero {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(28px, 5vw, 80px);
  align-items: center; padding: clamp(34px, 6vw, 80px) 0 clamp(50px, 7vw, 100px);
}
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.button {
  display: inline-flex; align-items: center; min-height: 48px; padding: 0 22px; border-radius: 999px;
  border: 1px solid var(--ink); font-size: 14px; font-weight: 750; text-decoration: none;
  transition: background .18s ease, color .18s ease, transform .18s ease;
}
.button:hover { background: var(--soft); }
.button.primary { background: var(--ink); color: var(--surface); }
.button.primary:hover { background: #33322f; }
.button:active { transform: translateY(1px); }

/* The app's photograph plate: a mounted print on a dark stage. */
.plate {
  width: 100%; max-width: min(100%, calc(100dvh - 150px)); justify-self: end;
  margin: 0; padding: clamp(22px, 4vw, 54px); background: var(--stage); border-radius: 4px;
  box-shadow: 0 30px 60px -30px rgba(25,25,24,.55);
}
.plate img { width: 100%; aspect-ratio: 1; object-fit: cover; background: #3a3936; outline: 10px solid #faf9f6; box-shadow: 0 18px 38px rgba(0,0,0,.45); }

section + section { border-top: 1px solid var(--line); }
section:not(.hero):not(.collection-head) { padding: clamp(40px, 5vw, 64px) 0; }
.section-top { display: flex; align-items: baseline; gap: 16px; margin-bottom: 30px; }
.section-top .index { font-size: 11px; font-weight: 800; letter-spacing: .1em; color: var(--accent); }
.section-link { margin-left: auto; }

.artwork { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 70px); align-items: start; }
.artwork img { width: 100%; max-height: 640px; object-fit: contain; object-position: left top; }
.artwork-notes p { margin: 0 0 16px; max-width: 32em; font-size: 16px; color: #3a3935; }
.artwork-notes a { font-weight: 700; text-underline-offset: 3px; }

.products, .patterns { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; }
.products { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
.product a { display: flex; flex-direction: column; height: 100%; text-decoration: none; padding: 12px 12px 16px; background: var(--raised); border: 1px solid var(--line); border-radius: 4px; transition: border-color .18s ease, transform .18s ease; }
.product a:hover { border-color: var(--ink); transform: translateY(-2px); }
.product-image { display: block; aspect-ratio: 1; background: var(--soft); overflow: hidden; margin-bottom: 14px; }
.product-image img { width: 100%; height: 100%; object-fit: cover; }
.product-kind { font-size: 10px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.product-name { margin: 5px 0 14px; font-size: 14px; font-weight: 700; line-height: 1.35; }
.product-buy { margin-top: auto; font-size: 12px; font-weight: 750; color: var(--accent); }

.patterns { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 34px 22px; padding-bottom: 70px; }
.patterns.compact { padding-bottom: 0; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
.pattern-card { display: block; text-decoration: none; }
.pattern-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--soft); border-radius: 3px; transition: transform .25s ease, box-shadow .25s ease; }
.pattern-card:hover img { transform: translateY(-3px); box-shadow: 0 16px 30px -18px rgba(25,25,24,.6); }
.pattern-name { display: block; margin-top: 12px; font: 700 18px/1.2 Bricolage, Manrope, sans-serif; letter-spacing: -.03em; }
.pattern-kinds { display: block; margin-top: 4px; font-size: 12px; color: var(--muted); }

.collection-head { padding: clamp(40px, 7vw, 90px) 0 clamp(36px, 5vw, 60px); }

.site-foot {
  background: var(--stage); color: var(--stage-text); margin-top: 20px;
  padding: 44px max(24px, calc((100% - 1240px) / 2)); display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap;
}
.site-foot strong { font: 700 20px/1 Bricolage, Manrope, sans-serif; letter-spacing: -.04em; color: #fff; }
.site-foot p { margin: 10px 0 0; max-width: 28em; font-size: 13px; color: #b3b1a8; }
.site-foot .site-credit { margin-top: 6px; }
.site-foot .site-credit a { color: #dedcd3; text-decoration: underline; text-underline-offset: 3px; }
.site-foot nav { display: grid; gap: 10px; font-size: 13px; font-weight: 650; }
.site-foot a { text-decoration: none; }
.site-foot a:hover { text-decoration: underline; text-underline-offset: 3px; }

.not-found { min-height: 60dvh; display: grid; align-content: center; padding: 60px 0; }

@media (max-width: 820px) {
  .hero, .artwork { grid-template-columns: 1fr; }
  .plate { padding: 20px; }
  .plate img { outline-width: 6px; }
}
@media (max-width: 520px) {
  main, .site-top { width: calc(100% - 36px); }
  .lede { font-size: 16px; }
  .products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .product a { padding: 8px 8px 12px; }
  .patterns { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 12px; }
  .pattern-name { font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) {
  .button, .product a, .pattern-card img { transition: none; }
}
