/* NORONEL storefront design system. One stylesheet for every customer page. */
:root {
  color-scheme: light;
  --ink: #141210;
  --ink-2: #26221e;
  --paper: #f7f4ee;
  --sand: #eee8dd;
  --card: #fffdf9;
  --line: #e3dccf;
  --line-strong: #cbc1b1;
  --muted: #6c655a;
  --faint: #978f82;
  --ember: #a9481f;
  --ember-hover: #8e3a17;
  --ember-light: #e3925f;
  --ember-tint: #f6e6dc;
  --ok: #2c6a45;
  --ok-tint: #e2efe6;
  --warn: #8a5b0c;
  --warn-tint: #f6ecd5;
  --bad: #a12f1e;
  --bad-tint: #f7e2dd;
  --serif: 'Instrument Serif', 'Iowan Old Style', Georgia, serif;
  --sans: 'DM Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --r-sm: 8px;
  --r: 14px;
  --r-lg: 22px;
  --shadow: 0 1px 2px rgb(20 18 16 / .05), 0 10px 30px rgb(20 18 16 / .07);
  --wrap: 1320px;
  --gutter: clamp(16px, 4vw, 48px);
  --header-h: 68px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  font: 400 16px/1.6 var(--sans); color: var(--ink); background: var(--paper);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
main { flex: 1 0 auto; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
p a, .prose a, .text-link { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; line-height: 1.08; text-wrap: balance; }
p { margin: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--ember); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--ember-tint); }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 999px; background: var(--ink); color: var(--paper); font-weight: 600; }
.skip-link:focus { top: 12px; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.wrap-narrow { max-width: 820px; }
.section { padding-block: clamp(56px, 8vw, 112px); }
.section-tight { padding-block: clamp(40px, 5vw, 72px); }

/* Type */
.eyebrow, .kicker {
  display: block; margin: 0 0 14px; font: 600 11.5px/1.4 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--muted);
}
.on-dark .eyebrow, .on-dark .kicker { color: rgb(247 244 238 / .7); }
.display { font-family: var(--serif); font-size: clamp(46px, 7vw, 104px); line-height: .95; letter-spacing: -.01em; }
.h1 { font-family: var(--serif); font-size: clamp(40px, 5.2vw, 76px); line-height: 1; letter-spacing: -.005em; }
.h2 { font-family: var(--serif); font-size: clamp(32px, 3.8vw, 54px); line-height: 1.04; }
.h3 { font: 600 19px/1.3 var(--sans); }
.display em, .h1 em, .h2 em { font-style: italic; }
.lede { font-size: clamp(17px, 1.4vw, 19px); line-height: 1.6; color: var(--muted); max-width: 60ch; }
.on-dark .lede { color: rgb(247 244 238 / .78); }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.tabular { font-variant-numeric: tabular-nums; }

/* Buttons */
.btn, .cta-dark, .cta-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 0 26px;
  border: 1px solid transparent; border-radius: 999px; font: 600 14.5px/1 var(--sans); letter-spacing: .01em; white-space: nowrap;
  background: var(--ink); color: var(--paper); transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}
.btn:hover, .cta-dark:hover, .cta-primary:hover { background: var(--ember); }
.btn:active { transform: translateY(1px); }
.btn:disabled, .btn.disabled, .btn[aria-disabled="true"] { opacity: .45; pointer-events: none; }
.btn-accent { background: var(--ember); }
.btn-accent:hover { background: var(--ember-hover); }
.btn-light, .on-dark .btn:not(.btn-outline), .cta-primary { background: var(--paper); color: var(--ink); }
.btn-light:hover, .on-dark .btn:not(.btn-outline):hover, .cta-primary:hover { background: var(--ember-light); color: var(--ink); }
.btn-outline, .btn-soft { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-outline:hover, .btn-soft:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.on-dark .btn-outline { color: var(--paper); border-color: rgb(247 244 238 / .35); }
.on-dark .btn-outline:hover { background: var(--paper); color: var(--ink); }
.btn-sm { min-height: 40px; padding: 0 18px; font-size: 13.5px; }
.btn-block { width: 100%; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14.5px; border-bottom: 1px solid currentColor; padding-bottom: 3px; }
.link-arrow::after { content: '→'; transition: transform .2s var(--ease); }
.link-arrow:hover::after { transform: translateX(3px); }
.text-button { border: 0; background: none; padding: 0; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* Announcement + header */
.announcement {
  display: flex; justify-content: center; gap: clamp(14px, 3vw, 40px); padding: 9px var(--gutter); overflow: hidden;
  background: var(--ink); color: rgb(247 244 238 / .82); font: 500 11.5px/1.3 var(--sans); letter-spacing: .14em; text-transform: uppercase; white-space: nowrap;
}
.announcement span + span::before { content: '✦'; margin-right: clamp(14px, 3vw, 40px); color: var(--ember-light); }
@media (max-width: 640px) { .announcement span:nth-child(n+2) { display: none; } }

.site-header { position: sticky; top: 0; z-index: 40; background: rgb(247 244 238 / .92); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid var(--line); }
.header-inner { height: var(--header-h); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.brand { justify-self: start; display: inline-flex; align-items: center; }
.brand-word { font: 600 21px/1 var(--sans); letter-spacing: .3em; white-space: nowrap; margin-right: -.3em; }
.brand-orbit { display: inline-grid; place-items: center; width: .86em; height: .86em; margin: 0 .3em 0 0; border: 1.6px solid currentColor; border-radius: 50%; position: relative; vertical-align: -.06em; }
.brand-orbit::before { content: ''; position: absolute; width: 1.6px; height: 138%; background: var(--ember); }
.brand-orbit::after { content: ''; position: absolute; width: 28%; height: 28%; background: currentColor; transform: rotate(45deg); }
.desktop-nav { display: flex; gap: clamp(18px, 2.4vw, 36px); }
.desktop-nav a { position: relative; padding: 6px 0; font-size: 14.5px; font-weight: 500; color: var(--ink-2); }
.desktop-nav a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease); }
.desktop-nav a:hover::after, .desktop-nav a[aria-current="page"]::after { transform: scaleX(1); }
.header-actions { justify-self: end; display: flex; align-items: center; gap: 4px; }
.icon-action, .bag-link, .menu-btn {
  position: relative; display: inline-grid; place-items: center; width: 42px; height: 42px; border: 0; border-radius: 50%; background: transparent; color: var(--ink); transition: background .2s;
}
.icon-action:hover, .bag-link:hover, .menu-btn:hover { background: var(--sand); }
.icon-action svg, .bag-link svg, .menu-btn svg { width: 21px; height: 21px; }
.cart-count { position: absolute; top: 3px; right: 1px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--ember); color: #fff; font: 700 10.5px/18px var(--sans); text-align: center; }
.cart-count:empty, .cart-count[data-count="0"] { display: none; }
.header-actions .text-action { padding: 9px 16px; border-radius: 999px; font-size: 14px; font-weight: 600; background: var(--ink); color: var(--paper); margin-right: 6px; }
.header-actions .text-action:hover { background: var(--ember); }
.menu-btn { display: none; justify-self: start; }
.mobile-menu { display: none; }

@media (max-width: 960px) {
  .header-inner { grid-template-columns: auto 1fr auto; gap: 8px; }
  .menu-btn { display: inline-grid; }
  .brand { justify-self: center; }
  .brand-word { font-size: 18px; }
  .desktop-nav { display: none; }
  .header-actions .icon-action[data-optional] { display: none; }
  .mobile-menu {
    display: flex; flex-direction: column; position: fixed; inset: calc(var(--header-h) + var(--announce-h, 0px)) 0 0; z-index: 39; padding: 20px var(--gutter) 40px; overflow-y: auto;
    background: var(--paper); visibility: hidden; opacity: 0; transform: translateY(-8px); transition: opacity .22s var(--ease), transform .22s var(--ease), visibility .22s;
  }
  .mobile-menu.open { visibility: visible; opacity: 1; transform: none; }
  .mobile-menu a { padding: 14px 0; border-bottom: 1px solid var(--line); font: 400 34px/1.1 var(--serif); }
  .mobile-menu .mobile-secondary { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
  .mobile-menu .mobile-secondary a { padding: 10px 16px; border: 1px solid var(--line-strong); border-radius: 999px; font: 500 14px/1 var(--sans); }
  body.menu-open { overflow: hidden; }
}

/* Footer */
.footer { margin-top: auto; background: var(--ink); color: rgb(247 244 238 / .72); }
.footer-inner { max-width: var(--wrap); margin-inline: auto; padding: clamp(56px, 7vw, 88px) var(--gutter) 28px; display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 40px 28px; }
.footer-brand .brand-word { color: var(--paper); font-size: 22px; }
.footer-brand p { margin-top: 18px; max-width: 30ch; font-size: 14.5px; }
.footer h4 { margin: 0 0 16px; color: var(--paper); font: 600 11.5px/1.4 var(--sans); letter-spacing: .16em; text-transform: uppercase; }
.footer-col { display: flex; flex-direction: column; gap: 10px; font-size: 14.5px; }
.footer-col a:hover { color: var(--paper); }
.footer > a { display: block; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter) 16px; color: var(--paper); font-weight: 600; }
.footer-bottom { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 24px; margin-top: 16px; border-top: 1px solid rgb(247 244 238 / .14); font-size: 13px; }
@media (max-width: 900px) { .footer-inner { grid-template-columns: repeat(2, 1fr); } .footer-brand { grid-column: 1 / -1; } }

/* Forms */
label { display: block; }
.field, .form-grid label { display: grid; gap: 7px; font-size: 14px; font-weight: 600; color: var(--ink-2); }
input[type="text"], input[type="email"], input[type="password"], input[type="url"], input[type="search"], input[type="number"], input:not([type]), select, textarea {
  width: 100%; min-height: 48px; padding: 12px 14px; border: 1px solid var(--line-strong); border-radius: var(--r-sm); background: var(--card); font-size: 15.5px; font-weight: 400; transition: border-color .2s, box-shadow .2s;
}
textarea { min-height: 96px; resize: vertical; line-height: 1.5; }
select { appearance: none; padding-right: 40px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23141210' stroke-width='1.6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 15px center; }
input:hover, select:hover, textarea:hover { border-color: var(--faint); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgb(20 18 16 / .08); }
input[readonly] { background: var(--sand); color: var(--muted); }
input[type="checkbox"], input[type="radio"] { width: 18px; height: 18px; accent-color: var(--ink); flex: none; margin: 2px 0 0; }
.check-field, .auth-consent { display: flex; gap: 12px; align-items: flex-start; font-size: 14.5px; font-weight: 400; line-height: 1.5; color: var(--ink-2); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.form-grid .wide { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.form-status, [role="status"].status-line { min-height: 1.4em; font-size: 14.5px; color: var(--muted); }
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.optional-field { font-weight: 400; color: var(--faint); }

/* Cards & surfaces */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(22px, 3vw, 36px); }
.card-sand { background: var(--sand); border-color: transparent; }
.notice { display: flex; gap: 14px; padding: 16px 18px; border-radius: var(--r); background: var(--sand); font-size: 14.5px; color: var(--ink-2); }
.notice strong { display: block; margin-bottom: 2px; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; background: var(--sand); font: 600 11.5px/1.2 var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
.pill-ember { background: var(--ember); color: #fff; }
.pill-dark { background: var(--ink); color: var(--paper); }
.empty-state { display: grid; justify-items: center; gap: 12px; padding: clamp(40px, 6vw, 72px) 20px; text-align: center; border: 1px dashed var(--line-strong); border-radius: var(--r-lg); }
.empty-state h2, .empty-state h3 { font-family: var(--serif); font-size: clamp(28px, 3vw, 38px); }
.empty-state p { color: var(--muted); max-width: 46ch; }
.empty-state .btn { margin-top: 8px; }

/* Page heads */
.page-head { padding-block: clamp(44px, 6vw, 84px) clamp(24px, 3vw, 40px); }
.page-head .h1 { max-width: 16ch; }
.page-head .lede { margin-top: 18px; }
.page-head-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; font-size: 13.5px; color: var(--muted); }
.breadcrumbs a:hover { color: var(--ink); text-decoration: underline; }

/* Product cards */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(250px, 100%), 1fr)); gap: clamp(28px, 3vw, 40px) clamp(14px, 2vw, 24px); }
@media (max-width: 560px) { .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.product-card { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.product-card .product-photo { position: relative; aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--r); background: var(--sand); }
.product-photo img { width: 100%; height: 100%; object-fit: cover; transition: opacity .45s var(--ease), transform .7s var(--ease); }
.product-photo .alt-photo { position: absolute; inset: 0; opacity: 0; }
@media (hover: hover) {
  .product-card:hover .product-photo img:first-child { transform: scale(1.03); }
  .product-card:hover .product-photo .alt-photo { opacity: 1; transform: scale(1.03); }
}
.product-badges { position: absolute; top: 12px; left: 12px; z-index: 1; display: flex; flex-wrap: wrap; gap: 6px; }
.product-card .product-meta { display: grid; gap: 4px; }
.product-card .product-collection { font: 600 11px/1.4 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.product-card h3 { font: 500 15.5px/1.35 var(--sans); }
.product-card:hover h3 { text-decoration: underline; text-underline-offset: 3px; }
.price { display: inline-flex; align-items: baseline; gap: 8px; font-weight: 600; font-variant-numeric: tabular-nums; }
.price s { font-weight: 400; color: var(--faint); }
.price .sale { color: var(--ember); }
.swatches { display: flex; gap: 6px; align-items: center; margin-top: 4px; }
.swatch-dot { width: 14px; height: 14px; border-radius: 50%; border: 1px solid rgb(20 18 16 / .2); }
.swatches small { font-size: 12px; color: var(--muted); }
.skeleton { background: linear-gradient(100deg, var(--sand) 30%, #f6f1e8 50%, var(--sand) 70%); background-size: 300% 100%; animation: shimmer 1.4s infinite linear; border-radius: var(--r); }
@keyframes shimmer { to { background-position: -100% 0; } }
@media (prefers-reduced-motion: reduce) { .skeleton { animation: none; } }
.skeleton-card { aspect-ratio: 4 / 5.9; }

/* Home */
.campaign-hero { position: relative; isolation: isolate; min-height: min(88vh, 860px); display: flex; align-items: flex-end; overflow: hidden; background: var(--ink); color: var(--paper); }
/* The hero photo is a <picture> (small WebP files for phones); the picture box itself takes no space. */
.campaign-hero > picture { display: contents; }
.campaign-hero > img, .campaign-hero > picture > img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 62% 50%; }
.campaign-hero::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgb(14 12 10 / .88) 0%, rgb(14 12 10 / .55) 42%, rgb(14 12 10 / .05) 75%), linear-gradient(0deg, rgb(14 12 10 / .7), transparent 45%); }
.hero-copy { width: 100%; max-width: var(--wrap); margin-inline: auto; padding: clamp(80px, 12vw, 160px) var(--gutter) clamp(48px, 7vw, 96px); }
.hero-copy .display { max-width: 11ch; }
.hero-copy .display em { color: var(--ember-light); }
.hero-copy .lede { margin-top: 24px; max-width: 46ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: clamp(40px, 6vw, 72px); font: 500 12px/1.4 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: rgb(247 244 238 / .6); }

.featured-skeleton { aspect-ratio: 4 / 4.4; border-radius: var(--r-lg); }
.featured-drop { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.drop-intro .h2 { max-width: 13ch; }
.drop-intro .lede { margin-top: 20px; }
.drop-intro .link-arrow { margin-top: 30px; }
.hero-product-card { display: grid; gap: 18px; }
.hero-product-card .product-image-link { position: relative; display: block; aspect-ratio: 4 / 4.4; overflow: hidden; border-radius: var(--r-lg); background: var(--sand); }
.hero-product-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.hero-product-card .product-image-link:hover img { transform: scale(1.025); }
.edition-pill { position: absolute; top: 16px; left: 16px; }
.product-card-line { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; }
.product-card-line h3 { font: 400 clamp(24px, 2.4vw, 32px)/1.1 var(--serif); margin-top: 6px; }
.product-card-line p { font: 600 11px/1.4 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.product-buy { display: flex; align-items: center; gap: 16px; flex: none; }
.product-buy strong { font-size: 18px; font-variant-numeric: tabular-nums; }
@media (max-width: 860px) { .featured-drop { grid-template-columns: 1fr; } .product-card-line { flex-wrap: wrap; } }

.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 18px 32px; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head .lede { margin-top: 12px; }

.collection-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr)); gap: clamp(16px, 2vw, 24px); }
.story-collection-card { display: flex; flex-direction: column; overflow: hidden; border-radius: var(--r-lg); background: var(--card); border: 1px solid var(--line); transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.story-collection-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.collection-photos { display: grid; aspect-ratio: 16 / 11; background: var(--sand); }
.collection-photos-multiple { grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; gap: 3px; }
.collection-photos img { width: 100%; height: 100%; object-fit: cover; min-height: 0; }
.collection-photos-multiple img:first-child { grid-row: span 2; }
.collection-photos-multiple img:only-child { grid-column: span 2; }
.collection-card-copy { display: grid; gap: 8px; padding: 22px 24px 24px; }
.collection-author { font: 600 11px/1.4 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--ember); }
.collection-card-copy h2, .collection-card-copy h3 { font: 400 clamp(26px, 2.4vw, 32px)/1.08 var(--serif); }
.collection-card-copy > div { display: flex; justify-content: space-between; gap: 12px; margin-top: 8px; font-size: 14px; color: var(--muted); }
.collection-shop-link { color: var(--ink); font-weight: 600; }
.collection-shop-link::after { content: ' →'; }

.manifesto { background: var(--ink); color: var(--paper); }
.manifesto blockquote { margin: 0; max-width: 20ch; font: 400 clamp(36px, 5vw, 68px)/1.04 var(--serif); }
.manifesto blockquote em { color: var(--ember-light); }
.manifesto-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 56px); margin-top: clamp(48px, 7vw, 88px); padding-top: 32px; border-top: 1px solid rgb(247 244 238 / .16); }
.manifesto-grid span { font: 500 12px/1 var(--sans); letter-spacing: .14em; color: var(--ember-light); }
.manifesto-grid h3 { margin: 16px 0 10px; font: 400 26px/1.1 var(--serif); }
.manifesto-grid p { color: rgb(247 244 238 / .7); font-size: 15px; }
@media (max-width: 760px) { .manifesto-grid { grid-template-columns: 1fr; } }

.author-split { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.author-split .h2 { max-width: 15ch; }
.author-split .lede { margin-bottom: 28px; }
.earn-teaser { display: flex; align-items: baseline; gap: 14px; margin-bottom: 22px; padding: 18px 22px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); }
.earn-teaser strong { font: 600 40px/1 var(--sans); letter-spacing: -.03em; color: var(--ember); }
@media (max-width: 860px) { .author-split { grid-template-columns: 1fr; } }

/* Shop */
.shop-toolbar { position: sticky; top: var(--header-h); z-index: 20; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding-block: 14px; margin-bottom: 28px; background: rgb(247 244 238 / .94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.shop-search { position: relative; flex: 1 1 240px; max-width: 360px; }
.shop-search input { min-height: 42px; padding-left: 40px; border-radius: 999px; }
.shop-search svg { position: absolute; left: 14px; top: 50%; width: 17px; height: 17px; transform: translateY(-50%); color: var(--muted); }
.chip-row { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px; }
.chip-row::-webkit-scrollbar { display: none; }
.chip, .filter-chip { display: inline-flex; align-items: center; flex: none; min-height: 38px; padding: 0 16px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--card); font-size: 14px; font-weight: 500; white-space: nowrap; transition: background .2s, color .2s, border-color .2s; }
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"], .chip.active { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.shop-toolbar .toolbar-end { display: flex; align-items: center; gap: 10px; margin-left: auto; }
@media (max-width: 640px) {
  .shop-toolbar { position: static; }
  .shop-search { max-width: none; flex-basis: 100%; }
  .shop-toolbar .toolbar-end { flex-wrap: wrap; width: 100%; margin-left: 0; }
  .shop-toolbar .toolbar-end label:not(.toggle) { flex: 1 1 140px; }
  .shop-toolbar select { width: 100%; }
}
.shop-toolbar select { min-height: 42px; width: auto; border-radius: 999px; font-size: 14px; padding-block: 0; }
.toggle { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; white-space: nowrap; }
.result-count { font-size: 14px; color: var(--muted); }

/* Product page */
.product-shell { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 80px); padding-block: clamp(20px, 3vw, 40px) clamp(56px, 8vw, 96px); align-items: start; }
.product-gallery { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 14px; position: sticky; top: calc(var(--header-h) + 20px); }
.photo-stage { grid-column: 2; grid-row: 1; aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--r-lg); background: var(--sand); }
.photo-stage img { width: 100%; height: 100%; object-fit: cover; }
/* Hover to zoom: the photo enlarges around the pointer (storefront.js moves the zoom point with the mouse). */
@media (hover: hover) and (pointer: fine) {
  .photo-stage img { cursor: zoom-in; transform-origin: var(--zoom-x, 50%) var(--zoom-y, 50%); transition: transform .3s var(--ease); }
  .photo-stage:hover img { transform: scale(2.2); }
}
@media (prefers-reduced-motion: reduce) { .photo-stage img { transition: none; } }
.live-gallery { grid-column: 1; grid-row: 1; display: flex; flex-direction: column; gap: 10px; max-height: min(78vh, 760px); overflow-x: hidden; overflow-y: auto; scrollbar-width: none; }
.live-gallery::-webkit-scrollbar { display: none; }
.live-gallery button { flex: none; width: 84px; aspect-ratio: 4 / 5; padding: 0; overflow: hidden; border: 1.5px solid transparent; border-radius: var(--r-sm); background: var(--sand); opacity: .72; transition: opacity .2s, border-color .2s; }
.live-gallery button:hover { opacity: 1; }
.live-gallery button[aria-pressed="true"] { opacity: 1; border-color: var(--ink); }
.live-gallery img { width: 100%; height: 100%; object-fit: cover; }
.product-details { display: grid; gap: 22px; }
.product-details h1 { font: 400 clamp(34px, 3.6vw, 52px)/1.04 var(--serif); }
.product-story { font-size: 14.5px; color: var(--muted); }
.product-story a { color: var(--ember); font-weight: 600; text-decoration: none; }
.product-price-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px; }
.product-price-row .price { font-size: 22px; }
.product-price-row small { font-size: 13.5px; color: var(--muted); }
.live-description { white-space: pre-line; color: var(--ink-2); font-size: 15.5px; }
.option-block { display: grid; gap: 12px; }
.option-label { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; font-weight: 600; }
.option-label span { font-weight: 400; color: var(--muted); }
.option-list { display: flex; flex-wrap: wrap; gap: 8px; }
.color-option { position: relative; width: 40px; height: 40px; padding: 0; border-radius: 50%; border: 1px solid var(--line-strong); background: var(--swatch, var(--sand)); box-shadow: inset 0 0 0 3px var(--paper); transition: box-shadow .2s, border-color .2s; }
.color-option[aria-pressed="true"] { border-color: var(--ink); box-shadow: inset 0 0 0 3px var(--paper), 0 0 0 1.5px var(--ink); }
.size-option, .variant-option { min-width: 54px; min-height: 46px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: var(--r-sm); background: var(--card); font-size: 14.5px; font-weight: 500; transition: border-color .2s, background .2s, color .2s; }
.size-option:hover, .variant-option:hover { border-color: var(--ink); }
.size-option[aria-pressed="true"], .variant-option[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.size-option[data-unavailable], .variant-option[data-unavailable], .color-option[data-unavailable] { opacity: .45; background-image: linear-gradient(to top left, transparent calc(50% - 1px), var(--faint) 50%, transparent calc(50% + 1px)); }
.buy-row { display: grid; grid-template-columns: auto 1fr; gap: 10px; }
.quantity-control { display: inline-flex; align-items: center; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--card); }
.quantity-control button { width: 44px; height: 48px; border: 0; background: none; font-size: 18px; }
.quantity-control input { width: 44px; min-height: 48px; padding: 0; border: 0; background: none; text-align: center; font-weight: 600; -moz-appearance: textfield; }
.quantity-control input::-webkit-inner-spin-button { -webkit-appearance: none; }
.quantity-control input:focus { box-shadow: none; }
.product-add, .buy-now, .wishlist-toggle { width: 100%; }
.wishlist-toggle { min-height: 46px; border: 0; background: none; font-weight: 600; font-size: 14.5px; }
.wishlist-toggle[aria-pressed="true"] { color: var(--ember); }
.account-requirement { font-size: 13.5px; color: var(--muted); text-align: center; }
#liveProductStatus { font-size: 14.5px; }
#liveProductStatus:empty { margin-top: -22px; }
#liveProductStatus a { font-weight: 600; }
.product-perks { display: grid; gap: 10px; padding: 18px 20px; border-radius: var(--r); background: var(--sand); font-size: 14px; }
.product-perks div { display: flex; gap: 10px; align-items: center; }
.product-perks svg { width: 18px; height: 18px; flex: none; color: var(--ember); }
.accordion details, .product-accordions details { border-top: 1px solid var(--line); }
.accordion details:last-child, .product-accordions details:last-child { border-bottom: 1px solid var(--line); }
.accordion summary, .product-accordions summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 0; list-style: none; cursor: pointer; font-weight: 600; font-size: 15.5px; }
.accordion summary::-webkit-details-marker, .product-accordions summary::-webkit-details-marker { display: none; }
.accordion summary::after, .product-accordions summary::after { content: '+'; font: 300 24px/1 var(--sans); transition: transform .25s var(--ease); }
.accordion details[open] > summary::after, .product-accordions details[open] > summary::after, details[open] > .disclosure-summary::after { transform: rotate(45deg); }
.accordion details > :not(summary), .product-accordions details > :not(summary), .disclosure-content { padding-bottom: 18px; color: var(--ink-2); font-size: 15px; }
.disclosure-content > * + * { margin-top: 12px; }
.live-size-guide { margin-top: 12px; border-radius: var(--r-sm); background: #fff; }
@media (max-width: 900px) {
  .product-shell { grid-template-columns: 1fr; }
  .product-gallery { position: static; grid-template-columns: 1fr; }
  .photo-stage, .live-gallery { grid-column: 1; grid-row: auto; }
  .live-gallery { flex-direction: row; max-height: none; overflow-x: auto; overflow-y: hidden; }
  .live-gallery button { width: 64px; }
}

/* Bag + checkout */
.cart-shell { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(300px, 1fr); gap: clamp(28px, 5vw, 72px); align-items: start; padding-bottom: clamp(56px, 8vw, 96px); }
.cart-items { display: grid; }
.cart-item { display: grid; grid-template-columns: 112px minmax(0, 1fr) auto; gap: 20px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.cart-item:first-child { border-top: 1px solid var(--line); }
.cart-item-art { aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--r-sm); background: var(--sand); }
.cart-item-art img { width: 100%; height: 100%; object-fit: cover; }
.cart-item-copy { display: grid; gap: 4px; align-content: start; }
.cart-item-copy > p { font: 600 11px/1.4 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.cart-item-copy h3 { font: 500 16.5px/1.35 var(--sans); }
.cart-variant { font-size: 14px; color: var(--muted); }
.cart-item-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 12px; }
.cart-qty { display: inline-flex; align-items: center; border: 1px solid var(--line-strong); border-radius: 999px; }
.cart-qty button { width: 38px; height: 38px; border: 0; background: none; font-size: 17px; }
.cart-qty span { min-width: 26px; text-align: center; font-weight: 600; font-variant-numeric: tabular-nums; }
.remove-item { border: 0; background: none; padding: 0; font-size: 13.5px; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.remove-item:hover { color: var(--bad); }
.cart-item-price { font-weight: 600; font-variant-numeric: tabular-nums; }
.order-summary, .checkout-summary { position: sticky; top: calc(var(--header-h) + 20px); display: grid; gap: 14px; padding: clamp(22px, 3vw, 32px); border-radius: var(--r-lg); background: var(--card); border: 1px solid var(--line); }
.order-summary h2, .checkout-summary h2 { font: 400 30px/1.1 var(--serif); margin-bottom: 6px; }
.summary-line { display: flex; justify-content: space-between; gap: 16px; font-size: 14.5px; color: var(--muted); }
.summary-line strong { color: var(--ink); font-variant-numeric: tabular-nums; }
.summary-total { display: flex; justify-content: space-between; gap: 16px; padding-top: 16px; margin-top: 4px; border-top: 1px solid var(--line); font-size: 18px; font-weight: 600; }
.summary-total strong { font-variant-numeric: tabular-nums; }
.checkout-btn { margin-top: 8px; }
.trust-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 18px; font-size: 13px; color: var(--muted); }
.trust-row span { display: inline-flex; align-items: center; gap: 6px; }
.trust-row svg { width: 15px; height: 15px; }
#bagStatus, #checkoutStatus { min-height: 1.4em; margin-top: 16px; font-size: 14.5px; color: var(--muted); }
#bagStatus a, #checkoutStatus a { color: var(--ink); font-weight: 600; text-decoration: underline; }
.checkout-items { display: grid; gap: 14px; padding-bottom: 6px; }
.checkout-item { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 14px; align-items: center; }
.checkout-item-art { position: relative; aspect-ratio: 4 / 5; border-radius: var(--r-sm); background: var(--sand); }
.checkout-item-art img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--r-sm); }
.checkout-item-qty { position: absolute; top: -7px; right: -7px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--ink); color: var(--paper); font: 700 11.5px/22px var(--sans); text-align: center; }
.checkout-item h4 { font: 500 14.5px/1.35 var(--sans); }
.checkout-item p { font-size: 13px; color: var(--muted); }
.checkout-steps { display: flex; gap: 10px; align-items: center; margin-bottom: 28px; font-size: 13.5px; color: var(--muted); }
.checkout-steps span { display: inline-flex; align-items: center; gap: 8px; }
.checkout-steps b { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--sand); color: var(--ink); font-size: 12px; }
.checkout-steps .done b, .checkout-steps .current b { background: var(--ink); color: var(--paper); }
.checkout-steps .current { color: var(--ink); font-weight: 600; }
.checkout-steps i { width: 24px; height: 1px; background: var(--line-strong); }
.handoff { display: grid; gap: 18px; margin-top: 28px; }
.handoff-card { display: grid; grid-template-columns: auto 1fr; gap: 16px; padding: 20px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); }
.handoff-card svg { width: 26px; height: 26px; color: var(--ember); }
.handoff-card h2 { font: 600 16px/1.3 var(--sans); margin-bottom: 4px; }
.handoff-card p { font-size: 14.5px; color: var(--muted); }
.place-order { width: 100%; justify-content: space-between; min-height: 58px; padding-inline: 28px; font-size: 15.5px; }
.checkout-terms { font-size: 13.5px; color: var(--muted); }
@media (max-width: 900px) {
  .cart-shell { grid-template-columns: 1fr; }
  .order-summary, .checkout-summary { position: static; }
  .cart-item { grid-template-columns: 88px minmax(0, 1fr); }
  .cart-item-price { grid-column: 2; }
}

/* Account / auth */
.auth-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 80px); align-items: start; padding-block: clamp(40px, 6vw, 88px); }
.account-card { padding: clamp(26px, 4vw, 44px); border-radius: var(--r-lg); background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); }
.account-card h2 { font: 400 clamp(34px, 3.4vw, 46px)/1.04 var(--serif); margin-bottom: 10px; }
.account-card > p { color: var(--muted); }
.account-email { margin-top: 6px; font-weight: 600; color: var(--ink) !important; }
.account-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 26px 0 18px; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin: 24px 0 18px; padding: 4px; border-radius: 999px; background: var(--sand); }
.auth-tabs button { min-height: 42px; border: 0; border-radius: 999px; background: transparent; font-weight: 600; font-size: 14.5px; color: var(--muted); }
.auth-tabs button[aria-pressed="true"] { background: var(--card); color: var(--ink); box-shadow: 0 1px 3px rgb(20 18 16 / .1); }
.auth-google { width: 100%; background: var(--card); color: var(--ink); border-color: var(--line-strong); }
.auth-google:hover { background: var(--sand); color: var(--ink); }
.auth-divider { display: flex; align-items: center; gap: 12px; margin: 18px 0; font-size: 13px; color: var(--muted); }
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.customer-auth-form { display: grid; gap: 8px; margin-top: 8px; }
.customer-auth-form label:not(.auth-consent) { margin-top: 8px; font-size: 14px; font-weight: 600; }
.customer-auth-form small { color: var(--muted); font-size: 13px; }
.customer-auth-form .auth-consent { margin: 12px 0 4px; }
.customer-auth-form .btn { margin-top: 14px; }
.auth-status { min-height: 1.4em; margin-top: 14px; font-size: 14.5px; color: var(--muted); }
.auth-text-button, .signout-link { margin-top: 6px; padding: 0; border: 0; background: none; font-size: 14px; font-weight: 600; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.auth-benefits { display: grid; gap: 28px; padding-top: 12px; }
.auth-benefits > div { display: grid; grid-template-columns: 48px 1fr; gap: 16px; }
.auth-benefits b { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--sand); font: 600 16px/1 var(--sans); }
.auth-benefits h2 { font: 600 17px/1.3 var(--sans); margin-bottom: 4px; }
.auth-benefits p { color: var(--muted); font-size: 15px; }
@media (max-width: 860px) { .auth-layout { grid-template-columns: 1fr; } }

/* Wishlist + orders */
.wishlist-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)); gap: 24px; }
.wishlist-product { display: grid; gap: 14px; }
.wishlist-product img { aspect-ratio: 4 / 5; width: 100%; object-fit: cover; border-radius: var(--r); background: var(--sand); }
.wishlist-product p { font: 600 11px/1.4 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.wishlist-product h2 { font: 500 16px/1.35 var(--sans); margin: 4px 0 12px; }
.wishlist-product .item-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.wishlist-product .wish-option { flex: 1 1 100%; }
.wishlist-product .wish-option select { min-height: 42px; padding-block: 0; font-size: 14px; }
.wishlist-product .wish-footer { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-top: 12px; }
.wishlist-product .wish-status { font-size: 13.5px; color: var(--ink-2); }
.wishlist-product .wish-status a, .lookup-signin a { font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.wishlist-product [data-remove-saved] { margin-left: auto; border: 0; background: none; padding: 0; font-size: 14px; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.order-list { display: grid; gap: 16px; }
.order-card { display: grid; gap: 14px; padding: 22px 24px; border-radius: var(--r-lg); background: var(--card); border: 1px solid var(--line); }
.order-card header { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 20px; align-items: center; }
.order-card h3 { font: 600 17px/1.3 var(--sans); }
.order-card .order-date { font-size: 14px; color: var(--muted); }
.order-lines { display: grid; gap: 10px; }
.order-line { display: grid; grid-template-columns: 52px 1fr; gap: 12px; align-items: center; font-size: 14.5px; }
.order-line img, .order-line .ph { width: 52px; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 6px; background: var(--sand); }
.order-line small { display: block; color: var(--muted); }
.order-card footer { display: flex; justify-content: space-between; padding-top: 14px; border-top: 1px solid var(--line); font-weight: 600; }
.status-badge { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; background: var(--sand); font-size: 12.5px; font-weight: 600; text-transform: capitalize; }
.status-badge::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status-badge.good { background: var(--ok-tint); color: var(--ok); }
.status-badge.busy { background: var(--warn-tint); color: var(--warn); }
.status-badge.bad { background: var(--bad-tint); color: var(--bad); }
.order-pagination { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 28px; font-size: 14px; color: var(--muted); }
/* Find an order without an account */
.order-lookup { display: grid; gap: 14px; padding: 24px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--card); }
.order-lookup h2 { font: 600 19px/1.3 var(--sans); }
.order-lookup > p { color: var(--muted); font-size: 14.5px; }
.lookup-form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) auto; gap: 12px; align-items: end; }
.lookup-status:empty { display: none; }
.lookup-status { font-size: 14px; color: var(--ink-2); }
.lookup-signin { margin-top: 18px; text-align: center; }
.order-lookup-more { margin-top: 28px; }
.order-lookup-more summary { cursor: pointer; font-weight: 600; font-size: 14.5px; text-align: center; }
.order-lookup-more[open] summary { margin-bottom: 14px; }
@media (max-width: 640px) { .lookup-form { grid-template-columns: 1fr; } .order-lookup { padding: 18px; } }

/* Partner / authors page */
.partner-hero { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: end; }
.partner-hero .display { max-width: 12ch; }
.partner-hero .display em { color: var(--ember); }
.benefit-list { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.benefit-list li { display: grid; grid-template-columns: 36px 1fr; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.benefit-list b { font: 600 13px/1.9 var(--sans); letter-spacing: .1em; color: var(--ember); }
.benefit-list strong { display: block; font-size: 16px; margin-bottom: 2px; }
.benefit-list span { color: var(--muted); font-size: 15px; }
@media (max-width: 860px) { .partner-hero { grid-template-columns: 1fr; } }

.earnings-panel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 72px); align-items: center; padding: clamp(28px, 5vw, 64px); border-radius: var(--r-lg); background: var(--ink); color: var(--paper); }
.earnings-panel .h2 em { color: var(--ember-light); }
.earnings-panel .lede { margin-top: 16px; }
.calc { display: grid; gap: 22px; padding: clamp(22px, 3vw, 32px); border-radius: var(--r-lg); background: var(--ink-2); border: 1px solid rgb(247 244 238 / .1); }
.calc label { display: grid; gap: 10px; font-size: 14px; font-weight: 600; color: rgb(247 244 238 / .85); }
.calc label output { font-weight: 600; color: var(--paper); font-variant-numeric: tabular-nums; }
.calc .calc-label { display: flex; justify-content: space-between; }
.calc input[type="range"] { width: 100%; accent-color: var(--ember-light); min-height: auto; padding: 0; border: 0; background: none; box-shadow: none; }
.calc-result { display: grid; gap: 4px; padding-top: 20px; border-top: 1px solid rgb(247 244 238 / .14); }
.calc-result span { font-size: 13.5px; color: rgb(247 244 238 / .65); }
.calc-result strong { font: 600 clamp(40px, 4.4vw, 56px)/1 var(--sans); letter-spacing: -.03em; color: var(--ember-light); font-variant-numeric: tabular-nums; }
.calc-breakdown { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.calc-breakdown div { padding: 12px; border-radius: var(--r-sm); background: rgb(247 244 238 / .06); }
.calc-breakdown span { display: block; font-size: 12px; color: rgb(247 244 238 / .6); }
.calc-breakdown b { font-size: 16px; font-variant-numeric: tabular-nums; }
.calc-note { font-size: 13px; color: rgb(247 244 238 / .55); }
@media (max-width: 860px) { .earnings-panel { grid-template-columns: 1fr; } }

.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; counter-reset: step; margin: 0; padding: 0; list-style: none; }
.steps li { position: relative; padding: 24px; border-radius: var(--r-lg); background: var(--card); border: 1px solid var(--line); }
.steps li::before { counter-increment: step; content: '0' counter(step); display: block; margin-bottom: 26px; font: 600 15px/1 var(--sans); letter-spacing: .1em; color: var(--ember); }
.steps strong { display: block; font-size: 17px; margin-bottom: 6px; }
.steps p { font-size: 14.5px; color: var(--muted); }
@media (max-width: 960px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

.apply-layout { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.apply-layout > div:first-child { position: sticky; top: calc(var(--header-h) + 28px); }
.partner-account-gate { display: grid; gap: 14px; justify-items: start; }
.partner-account-gate h3 { font: 400 32px/1.1 var(--serif); }
.partner-account-gate p { color: var(--muted); }
.author-apply-form { display: grid; gap: 28px; }
.author-apply-form fieldset { display: grid; gap: 18px; margin: 0; padding: 0 0 28px; border: 0; border-bottom: 1px solid var(--line); }
.author-apply-form legend { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; padding: 0; font: 400 26px/1.1 var(--serif); }
.author-apply-form legend span { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: var(--paper); font: 600 13px/1 var(--sans); }
.partner-extra summary { cursor: pointer; font-weight: 600; font-size: 14.5px; }
.partner-extra summary span { font-weight: 400; color: var(--muted); }
.partner-extra .form-grid { margin-top: 16px; }
.author-apply-form small { font-size: 13px; color: var(--muted); }
@media (max-width: 900px) { .apply-layout { grid-template-columns: 1fr; } .apply-layout > div:first-child { position: static; } }

/* Prose & info pages */
.prose { font-size: 16.5px; line-height: 1.75; color: var(--ink-2); }
.prose > * + * { margin-top: 1em; }
.prose h2 { margin-top: 2.2em; font: 400 clamp(26px, 2.6vw, 34px)/1.15 var(--serif); color: var(--ink); }
.prose h2:first-child { margin-top: 0; }
.legal-note, .draft-note { padding: 14px 18px; border-radius: var(--r); background: var(--warn-tint); color: var(--warn); font-size: 14px; }
.value-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 2em !important; }
.value-grid div { padding: 22px; border-radius: var(--r-lg); background: var(--card); border: 1px solid var(--line); }
.value-grid strong { display: block; font: 400 26px/1.1 var(--serif); margin-bottom: 8px; color: var(--ink); }
.value-grid span { font-size: 14.5px; color: var(--muted); line-height: 1.55; display: block; }
@media (max-width: 760px) { .value-grid { grid-template-columns: 1fr; } }
.contact-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.contact-grid article { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; padding: 28px; border-radius: var(--r-lg); background: var(--card); border: 1px solid var(--line); }
.contact-grid h2 { font: 400 30px/1.1 var(--serif); }
.contact-grid p { color: var(--muted); font-size: 15px; flex: 1; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.side-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 36px; }
.error-page { display: grid; justify-items: center; gap: 18px; padding-block: clamp(80px, 12vw, 160px); text-align: center; }
.error-code { font: 400 clamp(110px, 18vw, 220px)/.85 var(--serif); color: var(--ember); }

/* Smooth disclosure (script.js animates details) */
.smooth-disclosure > summary { list-style: none; }
.smooth-disclosure > summary::-webkit-details-marker { display: none; }

/* Toast */
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 60; display: flex; gap: 14px; align-items: center; max-width: calc(100vw - 32px); padding: 14px 18px; border-radius: 999px; background: var(--ink); color: var(--paper); font-size: 14.5px; box-shadow: var(--shadow); transform: translate(-50%, 20px); opacity: 0; pointer-events: none; transition: opacity .25s var(--ease), transform .25s var(--ease); }
.toast.show { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.toast a { color: var(--ember-light); font-weight: 600; text-decoration: underline; }

/* Reveal */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
  .reveal.in { opacity: 1; transform: none; }
}

/* Policy pages */
.prose ul { padding-left: 1.2em; }
.prose li + li { margin-top: .4em; }
.policy-updated { margin-top: 2.5em !important; padding-top: 1.2em; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }

/* Accordion icon follows the click immediately, not the end of the animation. */
details.smooth-disclosure[data-expanded="true"] > summary::after { transform: rotate(45deg); }
details.smooth-disclosure[data-expanded="false"] > summary::after { transform: none; }

/* Bag lines a price check flagged, and the "finished your order?" prompt (storefront.js). */
.bag-issue, .cart-item-copy > .bag-issue { width: fit-content; margin-top: 6px; padding: 5px 10px; border-radius: var(--r-sm); background: var(--warn-tint); color: var(--warn); font: 600 13px/1.4 var(--sans); letter-spacing: 0; text-transform: none; }
.cart-item.is-unavailable .bag-issue, .checkout-item.is-unavailable .bag-issue { background: var(--bad-tint); color: var(--bad); }
.cart-item.is-unavailable .cart-item-art, .cart-item.is-unavailable h3, .cart-item.is-unavailable .cart-item-price, .checkout-item.is-unavailable .checkout-item-art, .checkout-item.is-unavailable strong { opacity: .5; }
.link-button { padding: 0; border: 0; background: none; font: inherit; font-weight: 600; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.bag-handoff { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 18px; margin-bottom: 18px; padding: 16px 18px; border: 1px solid var(--line-strong); border-radius: var(--r); background: var(--card); font-size: 14.5px; }
.bag-handoff p { max-width: 54ch; color: var(--ink-2); }
.bag-handoff div { display: flex; flex-wrap: wrap; gap: 8px; }

/* Products without photos get a calm placeholder instead of a broken image. */
.photo-placeholder { display: grid; place-items: center; width: 100%; height: 100%; min-height: 160px; aspect-ratio: 4 / 5; background: var(--sand); color: var(--faint); font: 600 13px/1 var(--sans); letter-spacing: .3em; }
.color-name-option { min-width: 0; }

/* Quantity: a visible focus ring for keyboard users. */
.quantity-control:focus-within { border-color: var(--ink); box-shadow: 0 0 0 3px rgb(20 18 16 / .08); }

.account-secondary { display: flex; flex-wrap: wrap; gap: 6px 22px; }

/* Phones: price + Add to bag, and total + Checkout, stay one tap away while the real buttons are off screen. */
.sticky-buy, .sticky-checkout { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: rgb(255 253 249 / .96); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 -8px 24px rgb(20 18 16 / .08); }
.sticky-buy[hidden], .sticky-checkout[hidden] { display: none; }
.sticky-buy div, .sticky-checkout div { display: grid; min-width: 0; }
.sticky-buy strong, .sticky-checkout strong { font-size: 17px; font-variant-numeric: tabular-nums; }
.sticky-buy small, .sticky-checkout small { overflow: hidden; color: var(--muted); font-size: 12.5px; text-overflow: ellipsis; white-space: nowrap; }
.sticky-buy .btn, .sticky-checkout .btn { flex: none; min-height: 46px; padding-inline: 26px; }
@media (min-width: 901px) { .sticky-buy, .sticky-checkout { display: none !important; } }
@media (max-width: 900px) { body:has(.sticky-buy:not([hidden])), body:has(.sticky-checkout:not([hidden])) { padding-bottom: 76px; } }
