/* AstroArt – autorská galéria vesmíru */
@font-face { font-family: 'Fraunces'; font-style: normal; font-weight: 300 400; font-display: swap; src: url(/fonts/fraunces-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Fraunces'; font-style: normal; font-weight: 300 400; font-display: swap; src: url(/fonts/fraunces-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 400 600; font-display: swap; src: url(/fonts/manrope-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 400 600; font-display: swap; src: url(/fonts/manrope-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --bg: #0a0b0d;            /* takmer čierna, neutrálna – nefarbí snímky */
  --surface: #121418;
  --surface-2: #1a1d23;
  --line: #2b2f37;
  --text: #ecebe6;          /* 16.9:1 na --bg */
  --muted: #a5a8ae;         /* 8.3:1 na --bg */
  --accent: #d6b47e;        /* okrová zo Saturnových pásov – 10.1:1 na --bg */
  --accent-strong: #e8c896;
  --on-accent: #17120a;
  --danger: #ff9a8a;
  --ok: #9fd8a8;
  --focus: #f3dcae;
  --radius: 4px;
  --serif: 'Fraunces', 'Iowan Old Style', Georgia, serif;
  --sans: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1320px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 1.0625rem/1.65 var(--sans); overflow-x: hidden; text-rendering: optimizeLegibility; }
img, svg, picture { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration-color: color-mix(in srgb, currentColor 40%, transparent); text-underline-offset: .2em; }
a:hover { text-decoration-color: currentColor; }
h1, h2, h3 { font-family: var(--serif); font-weight: 300; line-height: 1.12; letter-spacing: -.01em; margin: 0 0 .5em; font-variation-settings: 'SOFT' 50, 'WONK' 0; }
h1 { font-size: clamp(2.4rem, 5.5vw, 4.6rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.5rem); }
h3 { font-size: 1.3rem; font-weight: 400; }
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--accent); color: var(--on-accent); }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: 760px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.lede { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--muted); max-width: 46ch; }
.eyebrow { font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); margin-bottom: 1.2em; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--text); color: var(--bg); padding: 10px 16px; border-radius: var(--radius); }
.skip:focus { top: 12px; }
.plain { list-style: none; margin: 0; padding: 0; }
.placeholder-text { color: var(--muted); font-style: italic; border-left: 2px solid var(--line); padding-left: 12px; }
.to-fill { color: var(--muted); font-style: italic; }
.proto-banner { background: #2a2214; color: var(--accent-strong); text-align: center; font-size: .8rem; padding: 6px 16px; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 48px; padding: 0 24px; border-radius: 999px;
  font: 600 .95rem/1 var(--sans); letter-spacing: .01em; text-decoration: none; cursor: pointer; border: 1px solid transparent;
  transition: background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease); }
.btn--primary { background: var(--accent); color: var(--on-accent); }
.btn--primary:hover { background: var(--accent-strong); }
.btn--ghost { background: transparent; color: var(--text); border-color: #5b606a; }
.btn--ghost:hover { border-color: var(--text); }
.btn--block { width: 100%; }
.icon-btn { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 999px; background: transparent; color: var(--text); border: 1px solid transparent; cursor: pointer; }
.icon-btn:hover { border-color: var(--line); background: var(--surface); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.actions--stack { flex-direction: column; align-items: stretch; }
.text-link { display: inline-flex; align-items: center; gap: .4em; color: var(--accent); text-decoration: none; font-weight: 600; min-height: 44px; }
.text-link:hover { text-decoration: underline; }
.text-link svg { width: 18px; height: 18px; }
.tag { display: inline-block; font-size: .78rem; letter-spacing: .04em; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); }
.tag--sale { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 45%, transparent); }

/* header */
.site-header { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid color-mix(in srgb, var(--line) 60%, transparent); }
.site-header__inner { display: flex; align-items: center; gap: 12px; max-width: var(--max); margin-inline: auto; padding: 8px var(--gutter); min-height: 68px; }
.brand { font-family: var(--serif); font-size: 1.45rem; font-weight: 400; text-decoration: none; letter-spacing: .01em; margin: 0; }
.brand span { color: var(--accent); }
.site-nav { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.site-nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.site-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; text-decoration: none; color: var(--muted); border-radius: 999px; font-size: .95rem; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--text); }
.site-nav a[aria-current="page"] { box-shadow: inset 0 -1px 0 var(--accent); border-radius: 0; }
.lang-switch { font-size: .8rem !important; letter-spacing: .1em; border: 1px solid var(--line); border-radius: 999px !important; min-height: 36px !important; padding: 0 12px !important; }
.cart-link { position: relative; display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 999px; color: var(--text); }
.cart-link:hover { background: var(--surface); }
.cart-count { position: absolute; top: 4px; right: 2px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: var(--accent); color: var(--on-accent); font-size: .72rem; font-weight: 600; display: grid; place-items: center; }
.cart-count[hidden], .cart-link[hidden] { display: none; }
.nav-toggle { display: none; }

@media (max-width: 860px) {
  .nav-toggle { display: inline-grid; margin-left: auto; order: 2; }
  .cart-link { order: 3; }
  .site-nav { order: 4; position: fixed; inset: 68px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--bg); border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 20px; display: none; max-height: calc(100svh - 68px); overflow-y: auto; }
  .site-nav.is-open { display: flex; }
  .site-nav ul { flex-direction: column; }
  .site-nav a { min-height: 52px; font-size: 1.15rem; padding: 0; color: var(--text); border-bottom: 1px solid var(--line); border-radius: 0; }
  .site-nav a[aria-current="page"] { box-shadow: none; color: var(--accent); }
  .lang-switch { align-self: flex-start; margin-top: 16px; padding: 0 16px !important; border-bottom: 1px solid var(--line) !important; }
  .site-nav--admin { position: static; display: flex; flex-direction: row; flex-wrap: wrap; }
}

/* hero */
.hero { display: grid; grid-template-columns: 1fr; max-width: var(--max); margin-inline: auto; padding: 0 var(--gutter); gap: 8px; }
.hero__media { margin-inline: calc(var(--gutter) * -1); background: #000; }
.hero__media > a { display: block; }
.hero__img { width: auto; height: auto; max-width: 100%; max-height: 58svh; object-fit: contain; margin-inline: auto; transform-origin: 50% 45%; animation: breathe 24s ease-in-out infinite alternate; }
@keyframes breathe { from { transform: scale(1); } to { transform: scale(1.025); } }
.hero__media { overflow: visible; }
.hero__credit { font-size: .8rem; color: var(--muted); padding: 8px var(--gutter) 0; margin: 0; }
.hero__credit a { text-decoration: none; }
.hero__text { padding: 20px 0 40px; }
.hero__text .eyebrow { margin-bottom: .8em; }
@media (max-width: 899px) { .hero h1 { font-size: clamp(2.3rem, 10vw, 3.2rem); } .hero__sub { font-size: 1.02rem; } }
.hero__sub { color: var(--muted); font-size: clamp(1.05rem, 1.5vw, 1.2rem); max-width: 44ch; }
@media (min-width: 900px) {
  .hero { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: center; min-height: calc(100svh - 68px); gap: clamp(32px, 5vw, 80px); }
  .hero__media { order: 2; margin: 0; background: transparent; }
  .hero__img { max-height: calc(100svh - 110px); width: auto; }
  .hero__media { border-radius: var(--radius); }
  .hero__credit { padding: 10px 0 0; text-align: right; }
  .hero__text { order: 1; padding: 0; }
}

/* sections */
.section { padding-block: clamp(56px, 9vw, 120px); }
.section--tight { padding-top: 16px; }
.section-head { display: grid; gap: 4px; margin-bottom: clamp(24px, 4vw, 48px); max-width: 60ch; }
.section-head p { margin: 0; }
.page-head { padding-top: clamp(40px, 7vw, 88px); padding-bottom: 24px; }

/* cards: masonry keeps every photo in its own aspect ratio */
/* justified rows: left-to-right order, equal image height per row, every photo whole */
.justified { display: flex; flex-wrap: wrap; gap: clamp(28px, 3vw, 44px) clamp(14px, 1.6vw, 22px); }
.justified::after { content: ""; flex-grow: 999999; }
.justified > .card { flex: var(--r, 1) 1 calc(var(--r, 1) * var(--row, 300px)); min-width: 0; }
@media (max-width: 700px) { .justified { --row: 190px; } }
@media (min-width: 1400px) { .justified { --row: 340px; } }
.card { display: flex; flex-direction: column; gap: 14px; }
.card[hidden] { display: none; }
.card__media { position: relative; display: block; background: #000; overflow: hidden; border-radius: var(--radius); isolation: isolate; }
.card__media img { width: 100%; height: auto; transition: transform 1.2s var(--ease), opacity .8s var(--ease); }
.card__media::after { content: ""; position: absolute; inset: 0; background: radial-gradient(120% 80% at 50% 120%, rgba(0,0,0,.55), transparent 60%); opacity: 0; transition: opacity .5s var(--ease); pointer-events: none; }
.card__media:hover img, .card__media:focus-visible img { transform: scale(1.035); }
.card__media:hover::after { opacity: 1; }
.card__expand { position: absolute; right: 12px; bottom: 12px; z-index: 1; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 999px;
  background: color-mix(in srgb, var(--bg) 60%, transparent); backdrop-filter: blur(6px); color: var(--text); opacity: 0; transform: translateY(6px); transition: opacity .3s var(--ease), transform .3s var(--ease); }
.card__media:hover .card__expand, .card__media:focus-visible .card__expand, .artwork__stage a:hover .card__expand { opacity: 1; transform: none; }
@media (hover: none) { .card__expand { opacity: .85; transform: none; } }
.card__title { font-size: 1.35rem; font-weight: 300; margin: 0; }
.card__title a { text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .4s var(--ease); }
.card__title a:hover { background-size: 100% 1px; }
.card__lead { color: var(--muted); margin: 0; font-size: .97rem; }
.card__body { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; align-items: baseline; }
.card__lead { grid-column: 1 / -1; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.center { text-align: center; margin-top: 8px; }

/* collections: image tiles with text over the dark sky of the photo */
.collections { display: grid; gap: clamp(14px, 2vw, 24px); grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.collection { position: relative; display: block; min-height: 340px; text-decoration: none; border-radius: var(--radius); overflow: hidden; background: #000; isolation: isolate; }
.collection__media, .collection__media picture { position: absolute; inset: 0; }
.collection__media img { width: 100%; height: 100%; object-fit: cover; opacity: .72; transition: transform 1.4s var(--ease), opacity .6s var(--ease); }
.collection:hover .collection__media img, .collection:focus-visible .collection__media img { transform: scale(1.06); opacity: .9; }
.collection::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 35%, rgba(5,6,8,.92)); z-index: 0; }
.collection__text { position: absolute; inset: auto 0 0 0; z-index: 1; display: grid; gap: 6px; padding: 24px; }
.collection__title { font-family: var(--serif); font-size: 2rem; font-weight: 300; }
.collection__intro { color: #c9cbd0; font-size: .95rem; max-width: 40ch; }

/* author teaser with figures from the gallery */
.author-teaser { display: grid; gap: clamp(28px, 5vw, 72px); grid-template-columns: 1fr; align-items: end; }
@media (min-width: 900px) { .author-teaser { grid-template-columns: 3fr 2fr; } }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin: 0; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.stats div { background: var(--bg); padding: 22px 18px; }
.stats dt { color: var(--muted); font-size: .82rem; letter-spacing: .04em; }
.stats dd { margin: 6px 0 0; font-family: var(--serif); font-size: clamp(1.6rem, 3vw, 2.4rem); color: var(--accent-strong); }
@media (max-width: 520px) { .stats { grid-template-columns: 1fr; } }

.story__grid { display: grid; gap: clamp(24px, 5vw, 64px); }
@media (min-width: 900px) { .story__grid { grid-template-columns: 6fr 5fr; align-items: start; } .story__media { position: sticky; top: 96px; } }
.story__media { display: block; background: #000; border-radius: var(--radius); overflow: hidden; }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: s; display: grid; gap: 32px; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 52px 1fr; column-gap: 16px; }
.steps li > * { grid-column: 2; }
.steps li::before { content: counter(s, decimal-leading-zero); grid-row: 1 / span 3; font-family: var(--serif); color: var(--accent); font-size: 1.5rem; line-height: 1.1; }
.steps h3 { margin: 0 0 6px; }
.steps p { color: var(--muted); margin: 0; }

.facts { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 1px; background: var(--line); grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.facts li { background: var(--bg); padding: 26px; transition: background-color .3s var(--ease); }
.facts li:hover { background: var(--surface); }
.facts h3 { font-size: 1.15rem; margin-bottom: 8px; }
.facts p { color: var(--muted); margin: 0; font-size: .97rem; }

/* gallery chips */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.chip { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; color: var(--muted); font-size: .95rem; }
.chip:hover { color: var(--text); border-color: #5b606a; }
.chip[aria-current="page"], .chip[aria-pressed="true"] { color: var(--on-accent); background: var(--accent); border-color: var(--accent); }
.chip--toggle { margin-left: auto; }
@media (max-width: 600px) { .chip--toggle { margin-left: 0; } }

/* artwork */
.crumbs { padding-top: 20px; font-size: .9rem; color: var(--muted); }
.crumbs a { color: var(--muted); }
.artwork { display: grid; gap: clamp(24px, 4vw, 56px); padding-top: 16px; padding-bottom: 40px; grid-template-columns: 1fr; }
.artwork__stage { margin: 0; }
.artwork__stage a { position: relative; display: grid; place-items: center; background: #000; border-radius: var(--radius); }
.artwork__img { width: 100%; height: auto; max-height: 82svh; object-fit: contain; }
.artwork__stage figcaption { margin-top: 10px; }
.artwork__aside h1 { font-size: clamp(2.2rem, 4vw, 3.4rem); }
.artwork__text { display: grid; gap: 40px; max-width: 70ch; }
.artwork__text h2 { font-size: 1.6rem; }
@media (min-width: 1000px) {
  .artwork { grid-template-columns: minmax(0, 7fr) minmax(320px, 4fr); align-items: start; }
  .artwork__aside { position: sticky; top: 88px; grid-row: span 2; }
  .artwork__text { grid-column: 1; }
}
.buy { margin-top: 24px; }
.buy fieldset { border: 0; margin: 0; padding: 0; display: grid; gap: 10px; }
.buy legend { font-size: .9rem; color: var(--muted); margin-bottom: 10px; padding: 0; }
.variant { position: relative; display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); cursor: pointer; background: var(--surface); }
.variant:has(input:checked) { border-color: var(--accent); }
.variant input { width: 20px; height: 20px; accent-color: var(--accent); margin: 0; }
.variant__main { display: grid; gap: 2px; }
.variant__title { font-weight: 600; }
.variant__meta { font-size: .85rem; color: var(--muted); }
.variant__price { font-family: var(--serif); font-size: 1.5rem; }
.variant__incart { grid-column: 2 / -1; justify-self: start; }
.buy--view { padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.buy__status:empty { display: none; }
.buy__status { color: var(--ok); margin-top: 12px; }
.variant-info { margin-top: 28px; }
.variant-info h3 { font-size: 1.1rem; font-family: var(--sans); font-weight: 600; }
.spec { margin: 0; display: grid; }
.spec > div { display: grid; grid-template-columns: minmax(110px, 38%) 1fr; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); font-size: .95rem; }
.spec dt { color: var(--muted); }
.spec dd { margin: 0; }
.review-note { border: 1px dashed #8a6d3b; background: #1d1810; color: #f0dcb4; padding: 16px 20px; border-radius: var(--radius); font-size: .92rem; }
.review-note h2 { font-size: 1rem; font-family: var(--sans); font-weight: 600; margin-bottom: 6px; }
.review-note ul { margin: 0; padding-left: 1.2em; }
.pager { display: flex; justify-content: space-between; gap: 16px; padding-block: 24px 64px; border-top: 1px solid var(--line); }
.pager a { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; text-decoration: none; color: var(--muted); }
.pager a:hover { color: var(--text); }

/* lightbox */
.lightbox { position: fixed; inset: 0; width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: #000; color: var(--text); overflow: hidden; }
.lightbox::backdrop { background: #000; }
.lightbox[open] { display: grid; grid-template-rows: 1fr auto; }
.lightbox__stage { position: relative; min-height: 0; overflow: hidden; touch-action: pan-y pinch-zoom; }
.lightbox__img { position: absolute; inset: 0; margin: auto; width: auto; height: auto; max-width: 100%; max-height: 100%; object-fit: contain; user-select: none; -webkit-user-drag: none; transition: opacity .25s var(--ease); }
.lightbox__img.is-loading { opacity: .25; }
.lightbox__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding: 12px var(--gutter) max(12px, env(safe-area-inset-bottom)); background: #000; border-top: 1px solid #1c1e22; }
.lightbox__caption { min-width: 0; flex: 1 1 280px; }
.lightbox__title { font-family: var(--serif); font-size: 1.35rem; margin: 0; }
.lightbox__lead { color: var(--muted); margin: 0; font-size: .92rem; }
.lightbox__nav { display: flex; align-items: center; gap: 6px; }
.lightbox__count { color: var(--muted); font-size: .9rem; min-width: 4ch; margin-right: 6px; }
.lightbox__close { position: absolute; top: max(10px, env(safe-area-inset-top)); right: 10px; background: color-mix(in srgb, #000 60%, transparent); }
.lightbox__link { min-height: 44px; padding: 0 16px; }
.lightbox[data-single] .lightbox__prev, .lightbox[data-single] .lightbox__next, .lightbox[data-single] .lightbox__count { display: none; }

/* cart & forms */
.cart-lines { list-style: none; padding: 0; margin: 0 0 16px; border-top: 1px solid var(--line); }
.cart-line { display: grid; grid-template-columns: auto 1fr auto auto; gap: 16px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); }
.cart-line:not(:has(.cart-line__img)) { grid-template-columns: 1fr auto; }
.cart-line--na { opacity: .7; }
.cart-line__img { width: 72px; aspect-ratio: 1; background: #000; display: grid; place-items: center; border-radius: var(--radius); overflow: hidden; }
.cart-line__img img { width: 100%; height: 100%; object-fit: contain; }
.cart-line__title { margin: 0; font-weight: 600; }
.cart-line__text p { margin: 0; }
.cart-line__price { margin: 0; font-family: var(--serif); font-size: 1.25rem; }
.cart-total { display: flex; justify-content: space-between; align-items: baseline; font-size: 1.1rem; margin: 8px 0 4px; }
.cart-total strong { font-family: var(--serif); font-size: 1.8rem; font-weight: 400; }
@media (max-width: 520px) { .cart-line { grid-template-columns: 56px 1fr auto; } .cart-line__img { width: 56px; } .cart-line__price { grid-column: 2; } .cart-line form { grid-row: 1; grid-column: 3; } }
.checkout-form, .contact-form, .admin-form { display: grid; gap: 18px; margin: 32px 0; }
.checkout-form h2 { font-size: 1.8rem; margin: 0; }
.field { display: grid; gap: 6px; }
.field > span:first-child { font-weight: 600; font-size: .95rem; }
.field input, .field textarea { width: 100%; min-height: 48px; padding: 12px 14px; background: var(--surface); color: var(--text); border: 1px solid #70757f; border-radius: var(--radius); font: inherit; }
.field textarea { min-height: 0; resize: vertical; }
.field input:focus, .field textarea:focus { border-color: var(--accent); outline: 2px solid color-mix(in srgb, var(--accent) 40%, transparent); outline-offset: 0; }
.field [aria-invalid="true"] { border-color: var(--danger); }
.field-error { color: var(--danger); font-size: .9rem; margin: 0; }
.field-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); margin-top: 14px; }
.field-grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.check { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; cursor: pointer; }
.check input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--accent); }
.invoice summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; gap: 10px; color: var(--muted); list-style: none; }
.invoice summary::-webkit-details-marker { display: none; }
.invoice summary::before { content: '+'; display: inline-grid; place-items: center; width: 22px; height: 22px; border: 1px solid #70757f; border-radius: 4px; font-size: 1rem; line-height: 1; }
.invoice[open] summary::before { content: '−'; }
.notice { padding: 16px 20px; border: 1px solid #3c5a41; background: #121c14; color: var(--ok); border-radius: var(--radius); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.gateway { border: 1px dashed #8a6d3b; padding: 32px; border-radius: var(--radius); margin-top: 40px; margin-bottom: 40px; }

/* prose */
.prose h1 { margin-bottom: .4em; }
.prose h2 { font-size: 1.6rem; margin-top: 1.8em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .5em; }
.prose p, .prose li { max-width: 68ch; }
/* author page: equipment photos */
.gear { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); margin: 20px 0 32px; }
.gear__item { margin: 0; }
.gear__item img { width: 100%; height: 260px; object-fit: cover; border-radius: var(--radius); display: block; }
.gear__item figcaption { display: flex; flex-direction: column; gap: 4px; margin-top: 10px; }

/* footer */
.site-footer { border-top: 1px solid var(--line); margin-top: 40px; padding-top: 48px; color: var(--text); }
.footer-grid { display: grid; gap: 32px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.footer-h { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.footer-grid li { margin-bottom: 6px; }
.footer-grid a { min-height: 32px; display: inline-flex; align-items: center; }
.footer-bottom { padding-block: 32px; border-top: 1px solid var(--line); margin-top: 32px; }
.brand--footer { margin-bottom: 8px; }

/* admin */
.admin-main { padding-block: 32px 64px; }
.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: .92rem; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 600; }
.status { padding: 2px 8px; border-radius: 999px; border: 1px solid var(--line); }
.status--paid { color: var(--ok); border-color: #3c5a41; }
.status--review, .status--failed { color: var(--danger); }
.mail { border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 16px; margin-bottom: 8px; }
.mail pre { white-space: pre-wrap; word-break: break-word; font-size: .85rem; color: var(--muted); }
.admin-form fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 20px; display: grid; gap: 12px; }
.admin-form legend { padding: 0 6px; color: var(--muted); }
.site-nav--admin form { margin: 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0s !important; animation-duration: 0s !important; scroll-behavior: auto !important; }
  .card__media:hover img { transform: none; }
}

/* ---------- motion layer: page transitions, reveal on scroll, header ---------- */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .35s; animation-timing-function: cubic-bezier(.2,.7,.2,1); }
.site-header { transition: background-color .3s var(--ease), transform .35s var(--ease); }
.site-header.is-hidden { transform: translateY(-100%); }
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .hero__text > * { opacity: 0; transform: translateY(18px); animation: rise .9s var(--ease) forwards; }
.js .hero__text > :nth-child(2) { animation-delay: .12s; }
.js .hero__text > :nth-child(3) { animation-delay: .24s; }
.js .hero__text > :nth-child(4) { animation-delay: .36s; }
.js .hero__text > :nth-child(5) { animation-delay: .6s; }
.js .hero__media { opacity: 0; animation: fade 1.6s var(--ease) .1s forwards; }
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.scroll-cue { display: inline-flex; align-items: center; gap: 12px; margin-top: 44px; color: var(--muted); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; text-decoration: none; }
.scroll-cue span { width: 1px; height: 36px; background: linear-gradient(var(--accent), transparent); animation: cue 2.4s ease-in-out infinite; transform-origin: top; }
@keyframes cue { 0%, 100% { transform: scaleY(.35); } 50% { transform: scaleY(1); } }
.lightbox__img.slide-l { animation: slideL .45s var(--ease); }
.lightbox__img.slide-r { animation: slideR .45s var(--ease); }
.lightbox__img.fade-in { animation: fade .45s var(--ease); }
@keyframes slideL { from { opacity: 0; transform: translateX(40px); } to { opacity: 1; transform: none; } }
@keyframes slideR { from { opacity: 0; transform: translateX(-40px); } to { opacity: 1; transform: none; } }
.justified .card.is-entering { animation: rise .6s var(--ease) both; }
.artwork--portrait .artwork__img { max-height: 86svh; }
.eyebrow a { color: inherit; text-decoration: none; }
code { font-size: .9em; color: var(--accent-strong); }
.prose table { font-size: .9rem; }
.prose .table-wrap { margin: 16px 0 24px; }

@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  .hero__img, .scroll-cue span { animation: none; }
  .js .reveal, .js .hero__text > *, .js .hero__media { opacity: 1 !important; transform: none !important; animation: none !important; }
  .lightbox__img.slide-l, .lightbox__img.slide-r, .lightbox__img.fade-in, .justified .card.is-entering { animation: none; }
}
