:root {
  --paper: #fbfbfa;
  --ink: #1d1d1f;
  --muted: #6e6e6b;
  --faint: #73736f;
  --line: #e6e6e2;
  --accent: #3446c4;
  --tile: #2a2b29;
  --tile-ink: #fbfbfa;
  --selection: #dfe3ff;
  --sans: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', Inter, Roboto, sans-serif;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #121212;
    --ink: #ececea;
    --muted: #9c9c98;
    --faint: #80807c;
    --line: #2a2a29;
    --accent: #8d9cff;
    --tile: #2c2d2b;
    --tile-ink: #ececea;
    --selection: #2c3366;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 2rem; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; transition: color .15s; }
a:hover { color: var(--accent); }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 3px; }
::selection { background: var(--selection); }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }
.container { width: min(46rem, calc(100% - 4rem)); margin-inline: auto; }
.skip { position: fixed; top: -5rem; left: 1rem; padding: .6rem 1rem; color: var(--paper); background: var(--ink); z-index: 10; }
.skip:focus { top: 1rem; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* Header & footer */
.header { display: flex; align-items: center; justify-content: space-between; padding-top: 3rem; gap: 1.5rem; }
.wordmark { display: inline-flex; color: var(--ink); }
.wordmark:hover { color: var(--ink); opacity: .75; }
.wordmark svg { height: 1.375rem; width: auto; display: block; }
.nav { display: flex; gap: 1.75rem; font-size: .875rem; color: var(--muted); }
.nav a { padding: .5rem 0; }
.footer { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .5rem 1rem; margin-top: 1rem; padding: 1.5rem 0 2.5rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .75rem; }
.footer-links { display: flex; gap: 1.5rem; }
.footer a { padding: .25rem 0; }

/* Home */
.eyebrow { color: var(--muted); font-size: .8125rem; letter-spacing: .01em; }
.intro { padding: 6rem 0 4.5rem; }
.intro h1 { margin-top: 1rem; font-size: clamp(2.5rem, 6vw, 3.4rem); line-height: 1.06; letter-spacing: -.045em; font-weight: 500; }
.intro-copy { color: var(--muted); margin-top: 1.4rem; max-width: 30rem; font-size: 1.0625rem; line-height: 1.7; }
.section-label { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; padding-bottom: 1rem; }
.section-label h2 { font-size: .875rem; font-weight: 500; }
.count, .section-label > span { color: var(--faint); font-size: .75rem; font-weight: 400; font-variant-numeric: tabular-nums; }
.count { margin-left: .35rem; }
.product-list { border-top: 1px solid var(--line); }
.product-row { border-bottom: 1px solid var(--line); }
.product-link { display: grid; grid-template-columns: 2.75rem minmax(0,1fr) auto 1rem; align-items: center; column-gap: 1.25rem; padding: 1.4rem 0; }
.product-link:hover { color: inherit; }
.product-link:hover h3 { color: var(--accent); }
.product-icon { height: 2.75rem; width: 2.75rem; display: flex; align-items: center; justify-content: center; }
.product-icon img { width: 2.75rem; height: 2.75rem; object-fit: contain; }
.top-shelf img { border-radius: 23%; }
.monogram { display: flex; align-items: center; justify-content: center; color: var(--tile-ink); background: var(--tile); border-radius: 23%; width: 2.35rem; height: 2.35rem; margin: auto; font-size: 1rem; font-weight: 600; letter-spacing: -.04em; }
.product-copy h3 { font-size: 1.0625rem; font-weight: 550; line-height: 1.35; letter-spacing: -.02em; transition: color .15s; }
.product-copy p { margin-top: .15rem; color: var(--muted); line-height: 1.5; }
.product-meta { text-align: right; display: flex; flex-direction: column; color: var(--faint); font-size: .75rem; line-height: 1.6; }
.product-meta .product-action { font-size: .8125rem; color: var(--ink); }
.row-arrow { color: var(--faint); transition: transform .18s, color .18s; }
.product-link:hover .row-arrow { color: var(--accent); transform: translateX(3px); }
.collection-note { margin-top: 1rem; color: var(--muted); font-size: .8125rem; }
.studio { display: grid; grid-template-columns: 10rem 1fr; gap: 2rem; padding: 3.5rem 0 0; }
.studio + .studio { padding-bottom: 3.5rem; }
.studio h2 { padding-top: .1rem; font-size: .875rem; font-weight: 500; }
.studio-body > p { color: var(--muted); line-height: 1.75; }
.principles { margin: 1.75rem 0 0; display: grid; gap: .9rem; }
.principles div { display: grid; grid-template-columns: 5.5rem 1fr; gap: 1rem; }
.principles dt { font-size: .875rem; font-weight: 500; }
.principles dd { margin: 0; color: var(--muted); font-size: .9375rem; }
.contact-links { list-style: none; padding: 0; margin: 1rem 0 0; display: flex; flex-wrap: wrap; gap: .5rem 1.75rem; font-size: .9375rem; }
.contact-links a, .inline-link { border-bottom: 1px solid var(--line); padding-bottom: 1px; }
.contact-links a:hover, .inline-link:hover { border-color: currentColor; }

/* Expandable app rows */
summary.product-link { cursor: pointer; list-style: none; }
summary.product-link::-webkit-details-marker { display: none; }
summary.product-link:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 3px; }
details[open] .row-arrow { transform: rotate(45deg); color: var(--ink); }
.product-link:hover .row-arrow { transform: none; }
details[open] .product-link:hover .row-arrow { transform: rotate(45deg); }
.row-arrow { font-size: 1.25rem; line-height: 1; text-align: center; }
.product-detail { padding: 0 0 2rem 4rem; }
.lead { font-size: 1.25rem; line-height: 1.4; letter-spacing: -.02em; }
.detail-description { color: var(--muted); margin-top: .5rem; max-width: 36rem; }
.features { margin: 1.5rem 0 0; border-top: 1px solid var(--line); }
.features div { display: grid; grid-template-columns: 11rem minmax(0,1fr); gap: 1.5rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.features dt { font-size: .9375rem; font-weight: 500; letter-spacing: -.01em; }
.features dd { margin: 0; color: var(--muted); font-size: .9375rem; line-height: 1.65; }
.release-meta { display: grid; grid-template-columns: 4.5rem minmax(0,1fr); margin: 1.25rem 0 0; gap: .5rem 1rem; font-size: .875rem; }
.release-meta dt { color: var(--muted); }
.release-meta dd { margin: 0; }
.availability { display: flex; align-items: center; flex-wrap: wrap; gap: .75rem 1.25rem; margin-top: 1.5rem; }
.button, .outline-link { display: inline-flex; align-items: center; justify-content: center; border-radius: 6px; padding: .55rem 1rem; font-size: .875rem; line-height: 1.5; }
.button { background: var(--ink); color: var(--paper); border: 1px solid var(--ink); }
.button:hover { background: var(--accent); color: var(--paper); border-color: var(--accent); }
.reload-button { font-family: inherit; cursor: pointer; margin-top: 1.5rem; }
.outline-link { border: 1px solid var(--line); color: var(--muted); }
.text-link { font-size: .875rem; color: var(--muted); }
.text-link:hover { color: var(--accent); }

/* Prose & 404 */
.prose { padding: 5rem 0 4rem; max-width: 36rem; }
.prose h1 { font-size: 2.5rem; letter-spacing: -.04em; font-weight: 500; margin: 1rem 0 2rem; }
.prose h2 { font-size: 1rem; font-weight: 500; margin: 2rem 0 .5rem; }
.prose p { color: var(--muted); line-height: 1.75; }
.not-found { padding: 6rem 0; min-height: 60vh; }
.not-found h1 { font-size: 2.75rem; letter-spacing: -.04em; font-weight: 500; margin: 1rem 0; }
.not-found p { color: var(--muted); }
.not-found .button { margin-top: 1.5rem; }

@media (max-width: 620px) {
  .container { width: calc(100% - 2.5rem); }
  .header { padding-top: 1.75rem; }
  .wordmark svg { height: 1.25rem; }
  .nav { gap: 1.25rem; }
  .intro { padding: 4rem 0 3.25rem; }
  .product-link { grid-template-columns: 2.5rem minmax(0,1fr) 1rem; column-gap: .9rem; row-gap: .35rem; padding: 1.3rem 0; }
  .product-icon { width: 2.5rem; height: 2.5rem; grid-row: 1 / span 2; align-self: start; }
  .product-icon img { width: 2.5rem; height: 2.5rem; }
  .monogram { width: 2.15rem; height: 2.15rem; margin: .2rem; }
  .product-copy { grid-column: 2; }
  .product-meta { grid-column: 2; grid-row: 2; flex-direction: row; gap: .5rem; text-align: left; align-items: baseline; }
  .product-meta > span + span::before { content: '·'; padding-right: .5rem; color: var(--faint); }
  .row-arrow { grid-column: 3; grid-row: 1; align-self: start; margin-top: .1rem; }
  .studio { grid-template-columns: 1fr; gap: .9rem; padding-top: 2.75rem; }
  .studio + .studio { padding-bottom: 2.75rem; }
  .principles div { grid-template-columns: 1fr; gap: .1rem; }
  .footer { padding-bottom: 1.75rem; }
  .product-detail { padding-left: 0; }
  .features div { grid-template-columns: 1fr; gap: .25rem; }
  .prose { padding-top: 3.5rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
main:focus { outline: none; }
