/* Hallmark · shape: Catalog Counter · genre: atmospheric · theme: Lumen (deal 2/3, seed jewelry3dm-702f-a0c0a0d5-2026-12-01-r0) · job: buy · draw: manual
 * hero: Settled, head on columns 1 to 6, a real model preview on 7 to 12 · nav: edge-aligned wordmark, links and one action · footer: mast, wordmark over link columns · imagery: the product itself, true colour, never duotoned · signature: one model preview at full size beside its own file readout
 * axes: dark/roman-serif/warm · posture: restrained · contrast: pass · fold: pass · v2.0.0 */
/* Hallmark · pre-emit critique: P4 H4 E4 S4 R4 V4 · weakest: the card grid repeats on category pages, answered by varying the tile sizes on the home page and keeping category pages as plain indexes */
/* waive 44c 79: the hero stack is centred in the first screen and ends with the file readout; shop and collection pages open straight on the grid. waive 83: the product is the picture on a catalogue. waive 47c: the blueprint grid sits inside the one rate-card band only. waive 38iii: the verb in the hero head takes the rose accent, as the theme specifies. */
@import url("./tokens.css");
@import url("./base.css");

body { font-variant-numeric: tabular-nums; }
h1, h2, h3, .nav a, label, th, figcaption, .btn, .tag, .crumbs, .readout dt { text-transform: lowercase; }
h2 { font-size: var(--text-section); line-height: 0.98; }
.verb { display: inline-block; color: var(--color-accent-2); }
.verb::after { content: ""; display: block; height: var(--rule-hair); background: currentColor; transform-origin: left; animation: draw var(--dur-long) var(--ease-out) both; }
@keyframes draw { from { transform: scaleX(0); } }

/* controls */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: var(--space-sm) var(--space-lg); border-radius: var(--radius-pill); font-weight: 500; text-decoration: none; border: 0; cursor: pointer; transition: background-color var(--dur-short) var(--ease-out), color var(--dur-short) var(--ease-out); }
.btn--primary { background: var(--color-accent); color: var(--color-accent-ink); }
.btn--primary:hover { background: color-mix(in oklab, var(--color-accent) 86%, var(--color-ink)); }
.btn--primary:active { background: color-mix(in oklab, var(--color-accent) 78%, var(--color-paper)); }
.btn--secondary { box-shadow: inset 0 0 0 var(--rule-hair) var(--color-rule-2); color: var(--color-ink); background: transparent; }
.btn--secondary:hover { background: var(--color-paper-2); }
.btn--secondary:active { background: var(--color-paper-3); }
.btn[aria-disabled="true"] { opacity: 0.5; pointer-events: none; }
.actions { display: flex; flex-wrap: wrap; gap: var(--space-sm); }
a:hover { text-decoration-color: var(--color-accent); }

/* nav */
.skip { position: absolute; left: var(--space-md); top: -80px; background: var(--color-paper-3); padding: var(--space-xs) var(--space-md); border-radius: var(--radius-pill); z-index: var(--z-modal); }
.skip:focus-visible { top: var(--space-sm); }
.nav { position: sticky; top: 0; z-index: var(--z-sticky-nav); background: var(--color-paper); border-bottom: var(--rule-hair) solid var(--color-rule); }
.nav .container { display: flex; align-items: center; justify-content: space-between; gap: var(--space-lg); min-height: 68px; flex-wrap: wrap; padding-block: var(--space-xs); }
.wordmark { font-family: var(--font-display); font-size: var(--text-xl); letter-spacing: var(--tracking-display); text-decoration: none; text-transform: lowercase; }
.nav ul { display: flex; flex-wrap: wrap; gap: var(--space-lg); list-style: none; margin: 0; padding: 0; }
.nav a:not(.btn):not(.wordmark) { text-decoration: none; color: var(--color-ink-2); font-size: var(--text-sm); }
.nav a:not(.btn):not(.wordmark):hover, .nav a[aria-current="page"] { color: var(--color-ink); text-decoration: underline; text-decoration-color: var(--color-accent); }
.nav .btn { min-height: 40px; padding-block: var(--space-xs); }

/* layout */
main { display: block; }
.section { padding-block: var(--section-gap-s); }
.section + .section { border-top: var(--rule-hair) solid var(--color-rule); }
.band { background: var(--color-paper-2); color: var(--color-ink); }
.head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--gap-columns); align-items: end; margin-bottom: var(--space-xl); }
.head p { color: var(--color-ink-2); justify-self: end; }
.muted { color: var(--color-muted); }
.crumbs { font-size: var(--text-sm); color: var(--color-muted); padding-top: var(--space-lg); }
.crumbs a { color: var(--color-ink-2); }

/* hero */
.hero { padding-block: var(--space-xl) var(--space-2xl); min-height: calc(100svh - 68px); display: grid; align-items: center; }
.hero .container { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap-columns); align-items: center; }
.hero-copy { grid-column: 1 / span 5; display: grid; gap: var(--space-lg); align-content: center; }
.hero h1 { font-size: var(--text-display); line-height: 0.95; max-width: 11ch; }
.hero-art { grid-column: 6 / span 7; display: grid; gap: var(--space-sm); min-width: 0; }
.plate { border: var(--rule-hair) solid var(--color-rule-2); border-radius: var(--radius-card); overflow: hidden; background: var(--color-paper-2); }
.plate img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.hero .plate img { aspect-ratio: 5 / 4; }
.readout { font-family: var(--font-outlier); font-size: var(--text-xs); line-height: 1.6; color: var(--color-ink-2); display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--space-3xs) var(--space-lg); margin: 0; padding: var(--space-sm) var(--space-md); border: var(--rule-hair) solid var(--color-rule); border-radius: var(--radius-card); background: var(--color-paper-2); }
.readout dt { color: var(--color-muted); }
.readout dd { margin: 0; }

/* grids */
.grid { display: grid; gap: var(--gap-columns); grid-template-columns: repeat(4, minmax(0, 1fr)); list-style: none; margin: 0; padding: 0; }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card { display: grid; gap: var(--space-xs); text-decoration: none; }
.card .plate { transition: border-color var(--dur-short) var(--ease-out); }
.card:hover .plate { border-color: var(--color-accent); }
.card-meta { display: flex; justify-content: space-between; gap: var(--space-sm); align-items: baseline; font-size: var(--text-sm); }
.card-meta .code { font-family: var(--font-outlier); font-size: var(--text-xs); color: var(--color-ink-2); }
.card-meta .price { color: var(--color-ink-2); }
.card .cat { font-size: var(--text-sm); color: var(--color-muted); }
.tiles { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap-columns); list-style: none; margin: 0; padding: 0; }
.tile { position: relative; display: block; height: 100%; text-decoration: none; border: var(--rule-hair) solid var(--color-rule-2); border-radius: var(--radius-card); overflow: hidden; background: var(--color-paper-2); min-height: 240px; }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tile { transition: border-color var(--dur-short) var(--ease-out); }
.tile:hover { border-color: var(--color-accent); }
.tile span { position: absolute; left: var(--space-sm); bottom: var(--space-sm); padding: var(--space-3xs) var(--space-md); background: var(--color-paper); border-radius: var(--radius-pill); font-size: var(--text-sm); text-transform: lowercase; }
.tiles li { grid-column: span 4; display: grid; }
.tiles li:nth-child(1) { grid-column: span 6; } .tiles li:nth-child(2), .tiles li:nth-child(3) { grid-column: span 3; }
.tiles li:nth-child(1) .tile { min-height: 340px; }

/* path */
.path { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; list-style: none; margin: 0; padding: 0; counter-reset: step; }
.path li { position: relative; padding: var(--space-lg) var(--space-lg) var(--space-lg) 0; border-top: var(--rule-hair) solid var(--color-accent); display: grid; gap: var(--space-xs); align-content: start; }
.path li::before { counter-increment: step; content: "0" counter(step); font-family: var(--font-outlier); font-size: var(--text-xs); color: var(--color-accent); }
.path h3 { font-size: var(--text-xl); }
.path p { color: var(--color-ink-2); font-size: var(--text-sm); }

/* rate card */
.rate { background-image: linear-gradient(var(--rule-blueprint) 1px, transparent 1px), linear-gradient(90deg, var(--rule-blueprint) 1px, transparent 1px); background-size: 48px 48px; border: var(--rule-hair) solid var(--color-rule); border-radius: var(--radius-card); background-color: var(--color-paper-2); padding: var(--space-xl); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap-columns); }
.rate-rows { grid-column: 1 / span 7; list-style: none; margin: 0; padding: 0; }
.rate-rows li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--space-md); align-items: baseline; padding-block: var(--space-md); border-bottom: var(--rule-hair) solid var(--color-rule-2); }
.rate-rows li:first-child { border-top: var(--rule-hair) solid var(--color-rule-2); }
.rate-rows b { font-family: var(--font-display); font-weight: 400; font-size: var(--text-3xl); line-height: 1; }
.rate-rows small { display: block; color: var(--color-muted); font-size: var(--text-sm); }
.terms { grid-column: 9 / span 4; display: grid; gap: var(--space-sm); align-content: start; }
.terms ul { margin: 0; padding-left: var(--space-lg); color: var(--color-ink-2); font-size: var(--text-sm); display: grid; gap: var(--space-2xs); }

/* faq + prose */
details { border-bottom: var(--rule-hair) solid var(--color-rule); padding-block: var(--space-md); }
details:first-of-type { border-top: var(--rule-hair) solid var(--color-rule); }
summary { cursor: pointer; font-family: var(--font-display); font-size: var(--text-xl); text-transform: lowercase; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary:hover { color: var(--color-accent); }
details p { margin-top: var(--space-xs); color: var(--color-ink-2); }
.prose { display: grid; gap: var(--space-md); padding-block: var(--space-xl) var(--section-gap-s); }
.prose h1 { font-size: var(--text-display-s); margin-bottom: var(--space-sm); }
.prose h2 { font-size: var(--text-title); font-family: var(--font-display); margin-top: var(--space-lg); line-height: 1.2; }
.prose p, .prose li { color: var(--color-ink-2); max-width: 68ch; }
.prose ul { margin: 0; padding-left: var(--space-lg); display: grid; gap: var(--space-xs); }
.prose .meta { color: var(--color-muted); font-size: var(--text-sm); }
.prose table { border-collapse: collapse; width: 100%; max-width: 68ch; font-size: var(--text-sm); }
.prose th, .prose td { text-align: left; padding: var(--space-xs) var(--space-sm); border-bottom: var(--rule-hair) solid var(--color-rule); }
.prose th { color: var(--color-muted); font-weight: 400; }

/* product page */
.product { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap-columns); padding-block: var(--space-xl) var(--section-gap-s); align-items: start; }
.product .plate { grid-column: 1 / span 7; }
.product .plate img { aspect-ratio: auto; max-height: 640px; object-fit: contain; background: var(--color-paper-2); }
.buy { grid-column: 8 / span 5; display: grid; gap: var(--space-lg); }
.buy h1 { font-size: var(--text-display-s); }
.price-big { font-family: var(--font-display); font-size: var(--text-3xl); line-height: 1; }
.tag { display: inline-block; padding: var(--space-3xs) var(--space-md); border: var(--rule-hair) solid var(--color-rule-2); border-radius: var(--radius-pill); font-size: var(--text-sm); text-decoration: none; color: var(--color-ink-2); }
.tag:hover, .tag[aria-current="page"] { background: var(--color-paper-2); color: var(--color-ink); }
.tags { display: flex; flex-wrap: wrap; gap: var(--space-xs); }
.note { font-size: var(--text-sm); color: var(--color-muted); }

/* footer */
.foot { border-top: var(--rule-hair) solid var(--color-rule); padding-block: var(--space-2xl) var(--space-xl); background: var(--color-paper-2); }
.foot-mast { font-family: var(--font-display); font-size: var(--text-display-s); text-transform: lowercase; letter-spacing: var(--tracking-display); line-height: 1; margin-bottom: var(--space-xl); }
.foot-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap-columns); }
.foot h3 { font-size: var(--text-md); font-family: var(--font-body); color: var(--color-muted); font-weight: 400; margin-bottom: var(--space-xs); }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-2xs); font-size: var(--text-sm); }
.foot a { text-decoration: none; color: var(--color-ink-2); }
.foot a:hover { color: var(--color-ink); text-decoration: underline; text-decoration-color: var(--color-accent); }
.legal { margin-top: var(--space-xl); font-size: var(--text-sm); color: var(--color-muted); max-width: 90ch; }

@media (max-width: 60rem) {
  .hero .container { display: flex; flex-direction: column; align-items: stretch; }
  .head { grid-template-columns: minmax(0, 1fr); align-items: start; } .head p { justify-self: start; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tiles li:nth-child(n) { grid-column: auto; } .tiles li:nth-child(n) .tile { min-height: 200px; }
  .path { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rate { padding: var(--space-lg); display: flex; flex-direction: column; }
  .product { display: flex; flex-direction: column; }
  .foot-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 40rem) {
  .grid, .grid--3 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
  .path { grid-template-columns: minmax(0, 1fr); }
  .nav ul { gap: var(--space-md); }
}
@media (prefers-reduced-motion: reduce) { .verb::after { animation: none; } }
