/* artCode shop - shared stylesheet, written by hand: tokens, reset, type, components, layout of the shared blocks, helpers.
   Loaded by every page; each page adds its own file (home.css, products.css, product.css, checkout.css).
   No framework and no build step: a class used in the markup exists only if it is written in one of these files. */

/* ---------- fonts ----------
   Served from this site, not from Google: one variable file per family and alphabet (latin, and latin-ext for
   the rarer accented letters, taken only by a page that uses them). The layout preloads the two latin files.
   The ?v= keeps them in the browser for a year: raise it when a file is replaced. */
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 400 800; font-display: swap; src: url("/assets/fonts/plus-jakarta-sans-latin.woff2?v=1") 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: "Plus Jakarta Sans"; font-style: normal; font-weight: 400 800; font-display: swap; src: url("/assets/fonts/plus-jakarta-sans-latin-ext.woff2?v=1") 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: "JetBrains Mono"; font-style: normal; font-weight: 400 600; font-display: swap; src: url("/assets/fonts/jetbrains-mono-latin.woff2?v=1") 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: "JetBrains Mono"; font-style: normal; font-weight: 400 600; font-display: swap; src: url("/assets/fonts/jetbrains-mono-latin-ext.woff2?v=1") 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 {
  /* brand, from theartcode.dev logo and css */
  --ac-cyan: #23aecd;          /* logo "Code", decorative or as fill under ink text */
  --ac-cyan-ink: #0a7390;      /* cyan for text on light, 5.4:1 */
  --ac-mauve: #b55694;         /* logo "art", large text only on white (4.45:1) */
  --ac-mauve-ink: #9c3f7c;     /* mauve for small text, 6.1:1 */
  --ac-magenta: #d20085;       /* site accent, primary action, white text 5.1:1 */
  --ac-magenta-edge: #8a0058;
  --ac-blue: #2563eb;          /* secondary action text and edge, 5.2:1 */
  --ac-blue-brand: #3f84f6;
  --ac-blue-product: #5d84ff;  /* artCode button shell */
  /* neutrals */
  --ink: #222121;
  --muted: #5b5560;
  --line: #ecdbe7;
  --paper: #ffffff;
  --blush: #fdf4fa;
  --blush-2: #f7e3f2;
  --blush-3: #f3d3ee;
  --night: #1c1a22;
  --stage: #dce0df;            /* intro photo background */
  /* christmas collection, from the ornament specs */
  --pine: #234f32;
  --pine-deep: #1b3d27;
  --gold: #d9a83e;
  --gold-soft: #f2c66b;
  /* states */
  --ok: #0f7a43;
  --ok-edge: #09502c;
  --error: #c0262d;
  /* shape and depth */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 24px;
  --r-pill: 999px;
  --key-depth: 4px;
  --shadow-card: 0 1px 2px rgba(34, 33, 33, .06), 0 12px 32px -16px rgba(120, 30, 90, .28);
  --shadow-pop: 0 24px 60px -20px rgba(28, 26, 34, .45);
  /* motion */
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-key: cubic-bezier(.32, .72, 0, 1);
  --t-fast: 120ms;
  --t-base: 240ms;
  --t-slow: 480ms;
  --font-sans: "Plus Jakarta Sans", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

/* ---------- reset ---------- */
*, ::before, ::after { box-sizing: border-box; border: 0 solid #e5e7eb; }
html { line-height: 1.5; -webkit-text-size-adjust: 100%; -moz-tab-size: 4; tab-size: 4; font-family: var(--font-sans); -webkit-tap-highlight-color: transparent; }
body { margin: 0; line-height: inherit; }
hr { height: 0; color: inherit; border-top-width: 1px; }
abbr:where([title]) { text-decoration: underline dotted; }
h1, h2, h3, h4, h5, h6 { font-size: inherit; font-weight: inherit; }
a { color: inherit; text-decoration: inherit; }
b, strong { font-weight: bolder; }
code, kbd, samp, pre { font-family: var(--font-mono); font-size: 1em; }
small { font-size: 80%; }
sub, sup { font-size: 75%; line-height: 0; position: relative; vertical-align: baseline; }
sub { bottom: -.25em; }
sup { top: -.5em; }
table { text-indent: 0; border-color: inherit; border-collapse: collapse; }
button, input, optgroup, select, textarea { font-family: inherit; font-feature-settings: inherit; font-variation-settings: inherit; font-size: 100%; font-weight: inherit; line-height: inherit; letter-spacing: inherit; color: inherit; margin: 0; padding: 0; }
button, select { text-transform: none; }
button, input:where([type="button"]), input:where([type="reset"]), input:where([type="submit"]) { -webkit-appearance: button; background-color: transparent; background-image: none; }
:-moz-focusring { outline: auto; }
:-moz-ui-invalid { box-shadow: none; }
progress { vertical-align: baseline; }
::-webkit-inner-spin-button, ::-webkit-outer-spin-button { height: auto; }
::-webkit-search-decoration { -webkit-appearance: none; }
::-webkit-file-upload-button { -webkit-appearance: button; font: inherit; }
summary { display: list-item; }
blockquote, dl, dd, h1, h2, h3, h4, h5, h6, hr, figure, p, pre { margin: 0; }
fieldset { margin: 0; padding: 0; }
legend { padding: 0; }
ol, ul, menu { list-style: none; margin: 0; padding: 0; }
dialog { padding: 0; }
textarea { resize: vertical; }
input::placeholder, textarea::placeholder { opacity: 1; color: #9ca3af; }
img, svg, video, canvas, audio, iframe, embed, object { display: block; vertical-align: middle; }
img, video { max-width: 100%; height: auto; }

/* ---------- base ---------- */
html { scroll-behavior: smooth; }
body { font-family: var(--font-sans); color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
::selection { background: var(--ac-cyan); color: var(--ink); }
:focus-visible { outline: 3px solid var(--ac-cyan); outline-offset: 3px; border-radius: 6px; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 14px; background: var(--ink); color: #fff; border-radius: var(--r-md); }
.skip-link:focus { top: 12px; }

/* type scale, modular 1.25 */
.t-display { font-size: clamp(2.5rem, 1.6rem + 4.2vw, 5.25rem); line-height: 1.02; font-weight: 800; letter-spacing: -.035em; }
.t-h1 { font-size: clamp(2rem, 1.5rem + 2.4vw, 3.5rem); line-height: 1.06; font-weight: 800; letter-spacing: -.03em; }
.t-h2 { font-size: clamp(1.75rem, 1.35rem + 1.6vw, 2.75rem); line-height: 1.1; font-weight: 800; letter-spacing: -.025em; }
.t-h3 { font-size: clamp(1.25rem, 1.1rem + .6vw, 1.5rem); line-height: 1.25; font-weight: 700; letter-spacing: -.01em; }
.t-lead { font-size: clamp(1.0625rem, 1rem + .3vw, 1.25rem); line-height: 1.6; color: var(--muted); }
.t-body { font-size: 1rem; line-height: 1.65; }
.t-small { font-size: .875rem; line-height: 1.5; }
.t-mono { font-family: var(--font-mono); font-size: .8125rem; letter-spacing: 0; }
.t-eyebrow { font-family: var(--font-mono); font-size: .75rem; font-weight: 600; letter-spacing: .06em; text-transform: lowercase; color: var(--ac-cyan-ink); }

/* "Where art meets code" two-tone heading, as on theartcode.dev */
.two-tone .c { color: var(--ac-cyan-ink); }
.two-tone .m { color: var(--ac-mauve-ink); }
.brace { font-family: var(--font-mono); font-weight: 600; }
.brace--c { color: var(--ac-cyan); }
.brace--m { color: var(--ac-mauve); }

/* page backgrounds */
.bg-blush { background: var(--blush) linear-gradient(180deg, var(--blush-3) 0%, var(--blush) 46%, var(--paper) 100%); }
.bg-dots { background-image: radial-gradient(rgba(181, 86, 148, .18) 1px, transparent 1.2px); background-size: 22px 22px; }

/* ---------- keycap buttons: every button is a key that sinks when pressed ---------- */
.key {
  --key-bg: var(--paper); --key-fg: var(--ink); --key-edge: var(--ink);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 48px; padding: 0 1.25rem; border-radius: var(--r-md);
  font: 700 .9375rem/1 var(--font-sans); letter-spacing: -.005em; white-space: nowrap; text-decoration: none;
  color: var(--key-fg); background: var(--key-bg); border: 2px solid var(--key-edge);
  box-shadow: 0 var(--key-depth) 0 var(--key-edge);
  transform: translateY(0); cursor: pointer; user-select: none; -webkit-tap-highlight-color: transparent;
  transition: transform var(--t-fast) var(--ease-key), box-shadow var(--t-fast) var(--ease-key), background-color var(--t-base) var(--ease-out), color var(--t-base) var(--ease-out);
}
.key:hover { transform: translateY(-1px); box-shadow: 0 calc(var(--key-depth) + 1px) 0 var(--key-edge); }
.key:active, .key[data-pressed="true"] { transform: translateY(var(--key-depth)); box-shadow: 0 0 0 var(--key-edge); }
.key:focus-visible { outline: 3px solid var(--ac-cyan); outline-offset: 4px; }
.key[disabled], .key[aria-disabled="true"] { cursor: not-allowed; opacity: .45; transform: none; box-shadow: 0 var(--key-depth) 0 var(--key-edge); }
.key svg { width: 18px; height: 18px; flex: none; }
.key--primary { --key-bg: var(--ac-magenta); --key-fg: #fff; --key-edge: var(--ac-magenta-edge); }
.key--primary:hover { --key-bg: #e0008e; }
.key--pink { --key-bg: var(--paper); --key-fg: var(--ac-magenta); --key-edge: var(--ac-magenta); }
.key--pink:hover { --key-bg: #fff0f8; }
.key--blue { --key-bg: var(--paper); --key-fg: var(--ac-blue); --key-edge: var(--ac-blue); }
.key--blue:hover { --key-bg: #eff5ff; }
.key--dark { --key-bg: var(--ink); --key-fg: #fff; --key-edge: #000; }
.key--dark:hover { --key-bg: #343232; }
.key--cyan { --key-bg: var(--ac-cyan); --key-fg: var(--ink); --key-edge: #137a91; }
.key--sm { min-height: 38px; padding: 0 .9rem; font-size: .8125rem; --key-depth: 3px; border-radius: 10px; }
.key--lg { min-height: 56px; padding: 0 1.6rem; font-size: 1.0625rem; }
.key--icon { width: 44px; min-height: 44px; padding: 0; }
.key--block { width: 100%; }

/* add-to-cart key, from 21st "Add to Cart Button" (bidyut10): idle -> loading (stays sunk) -> added (green) */
.btn-cart .btn-cart__icons { position: relative; width: 18px; height: 18px; flex: none; }
.btn-cart .btn-cart__icons > *, .btn-cart .btn-cart__labels > * { transition: opacity 200ms var(--ease-out); }
.btn-cart .btn-cart__icons > * { position: absolute; inset: 0; display: grid; place-items: center; }
.btn-cart .btn-cart__labels { display: grid; }
.btn-cart .btn-cart__labels > * { grid-area: 1 / 1; text-align: center; }
.btn-cart [data-show] { opacity: 0; }
.btn-cart[data-phase="idle"] [data-show="idle"],
.btn-cart[data-phase="loading"] [data-show="loading"],
.btn-cart[data-phase="added"] [data-show="added"] { opacity: 1; transition-delay: 160ms; transition-duration: 300ms; }
.btn-cart[data-phase="loading"] { transform: translateY(var(--key-depth)); box-shadow: 0 0 0 var(--key-edge); --key-bg: var(--ac-magenta-edge); cursor: progress; }
.btn-cart[data-phase="added"] { --key-bg: var(--ok); --key-edge: var(--ok-edge); --key-fg: #fff; }
.btn-cart .spin { animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- chips, badges, code tags ---------- */
.chip {
  display: inline-flex; align-items: center; gap: .4rem; min-height: 40px; padding: 0 1rem; border-radius: var(--r-pill);
  font: 600 .875rem/1 var(--font-sans); color: var(--ink); background: var(--paper); border: 1.5px solid var(--line); cursor: pointer;
  transition: background-color var(--t-base) var(--ease-out), border-color var(--t-base) var(--ease-out), color var(--t-base) var(--ease-out);
}
.chip:hover { border-color: var(--ac-mauve); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip .chip__count { font: 600 .6875rem/1 var(--font-mono); padding: .2rem .4rem; border-radius: 6px; background: var(--blush-2); color: var(--ac-mauve-ink); }
.chip[aria-pressed="true"] .chip__count { background: rgba(255, 255, 255, .16); color: #fff; }

.badge { display: inline-flex; align-items: center; gap: .3rem; height: 26px; padding: 0 .6rem; border-radius: var(--r-pill); font: 700 .6875rem/1 var(--font-mono); letter-spacing: .02em; white-space: nowrap; }
.badge svg { width: 13px; height: 13px; }
.badge--nfc { background: var(--ac-cyan); color: var(--ink); }
.badge--brand { background: var(--paper); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); gap: .4rem; }
.badge__dots { display: inline-flex; }
.badge__dots i { width: 9px; height: 9px; border-radius: 50%; box-shadow: 0 0 0 1.5px var(--paper); }
.badge__dots i + i { margin-left: -3px; }
.badge--xmas { background: var(--pine); color: var(--gold-soft); }
.badge--new { background: var(--ac-magenta); color: #fff; }
.badge--muted { background: var(--blush-2); color: var(--muted); }

.code-tag { display: inline-block; font: 500 .8125rem/1.4 var(--font-mono); color: var(--ac-cyan-ink); background: rgba(35, 174, 205, .1); padding: .15rem .45rem; border-radius: 6px; }

/* ---------- product card ---------- */
.card {
  position: relative; display: flex; flex-direction: column; border-radius: var(--r-lg); background: var(--paper);
  box-shadow: var(--shadow-card); outline: 1px solid var(--line); outline-offset: -1px; overflow: hidden;
  transition: transform var(--t-slow) var(--ease-out), box-shadow var(--t-slow) var(--ease-out);
}
.card:hover { transform: translateY(-4px); box-shadow: 0 2px 4px rgba(34, 33, 33, .06), 0 28px 50px -22px rgba(120, 30, 90, .4); }
.card__media { position: relative; aspect-ratio: 1; overflow: hidden; background: #efefef; }
.card__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity var(--t-slow) var(--ease-out), transform 900ms var(--ease-out); }
.card__media .card__alt { opacity: 0; }
.card:hover .card__media .card__alt { opacity: 1; }
.card:hover .card__media img { transform: scale(1.04); }
.card__badges { position: absolute; left: 12px; top: 12px; display: flex; flex-wrap: wrap; gap: 6px; z-index: 1; }
.card__body { display: flex; flex-direction: column; gap: .35rem; padding: 1.1rem 1.15rem 1.2rem; flex: 1; }
.card__title { font-size: 1.125rem; font-weight: 800; letter-spacing: -.01em; }
.card__title a { color: inherit; text-decoration: none; }
.card__title a::after { content: ""; position: absolute; inset: 0; z-index: 0; }
.card__foot { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-top: auto; padding-top: .6rem; }
.card__foot .key { position: relative; z-index: 2; }
.price { font: 800 1.25rem/1 var(--font-sans); letter-spacing: -.02em; }
.price small { font-size: .75rem; font-weight: 600; color: var(--muted); }

/* ---------- form fields ---------- */
.field { display: grid; gap: .4rem; }
.field label { font-weight: 700; font-size: .875rem; }
.field .hint { font-size: .8125rem; color: var(--muted); }
.input {
  width: 100%; min-height: 48px; padding: .7rem .9rem; border-radius: var(--r-md); border: 2px solid var(--line); background: var(--paper);
  font: 500 1rem/1.3 var(--font-sans); color: var(--ink); transition: border-color var(--t-base) var(--ease-out), box-shadow var(--t-base) var(--ease-out);
}
.input::placeholder { color: #8d8691; }
.input:hover { border-color: #dcc3d4; }
.input:focus { outline: none; border-color: var(--ac-cyan); box-shadow: 0 0 0 4px rgba(35, 174, 205, .2); }
.input[aria-invalid="true"] { border-color: var(--error); }
.field .error { display: none; font-size: .8125rem; font-weight: 600; color: var(--error); }
.field .input[aria-invalid="true"] ~ .error { display: block; }
.input--mono { font-family: var(--font-mono); font-size: .9375rem; }

/* swatch radio (variants) */
.swatch { position: relative; display: flex; align-items: center; gap: .7rem; padding: .7rem .9rem; border-radius: var(--r-md); border: 2px solid var(--line); cursor: pointer; background: var(--paper); transition: border-color var(--t-base) var(--ease-out); }
.swatch:hover { border-color: #dcc3d4; }
.swatch input { position: absolute; opacity: 0; pointer-events: none; }
.swatch:has(input:checked) { border-color: var(--ink); box-shadow: 0 3px 0 var(--ink); }
.swatch:has(input:focus-visible) { outline: 3px solid var(--ac-cyan); outline-offset: 3px; }
.swatch__dots { display: flex; }
.swatch__dots i { width: 22px; height: 22px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, .12); }
.swatch__dots i + i { margin-left: -7px; }

/* quantity stepper */
.qty { display: inline-flex; align-items: center; border: 2px solid var(--line); border-radius: var(--r-md); background: var(--paper); }
.qty button { width: 40px; height: 44px; display: grid; place-items: center; border: 0; background: none; cursor: pointer; color: var(--ink); border-radius: 10px; }
.qty button:hover { background: var(--blush); }
.qty output { min-width: 2ch; text-align: center; font: 700 1rem/1 var(--font-mono); }
.qty--sm button { width: 32px; height: 34px; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(255, 255, 255, .82); -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid rgba(236, 219, 231, .9); }
.nav-link { position: relative; font-weight: 600; font-size: .8125rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink); text-decoration: none; padding: .5rem .25rem; }   /* caps, centred in the header */
.nav-link::after { content: ""; position: absolute; left: .25rem; right: .25rem; bottom: .2rem; height: 2px; border-radius: 2px; background: var(--ac-magenta); transform: scaleX(0); transform-origin: left; transition: transform var(--t-base) var(--ease-out); }
.nav-link:hover::after, .nav-link[aria-current="page"]::after { transform: scaleX(1); }
/* mobile nav is absolute under the header: a fixed child would use the blurred header as containing block */
.mobile-nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: 0 20px 40px -24px rgba(28, 26, 34, .4); }
.mobile-nav[hidden] { display: none; }
.cart-count { position: absolute; top: -8px; right: -8px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--ac-magenta); color: #fff; font: 700 .75rem/22px var(--font-mono); text-align: center; border: 2px solid #fff; }
.cart-count[data-empty="true"] { display: none; }

/* ---------- cart drawer ---------- */
.overlay { position: fixed; inset: 0; z-index: 60; background: rgba(28, 26, 34, .45); opacity: 0; transition: opacity var(--t-base) var(--ease-out); }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; z-index: 61; width: min(440px, 100vw); display: flex; flex-direction: column; background: var(--paper); box-shadow: var(--shadow-pop); transform: translateX(104%); transition: transform var(--t-slow) var(--ease-out); }
.cart-open .overlay { opacity: 1; }
.cart-open .drawer { transform: none; }
.drawer[hidden], .overlay[hidden] { display: none; }
.line-item { display: grid; grid-template-columns: 76px minmax(0, 1fr) auto; gap: .9rem; align-items: start; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.line-item img { width: 76px; height: 76px; border-radius: 14px; object-fit: cover; background: #efefef; }
.link-btn { border: 0; background: none; padding: 0; font: 600 .8125rem/1.4 var(--font-sans); color: var(--muted); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.link-btn:hover { color: var(--error); }

/* toast */
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 70; width: max-content; max-width: calc(100vw - 32px); white-space: nowrap; display: flex; align-items: center; gap: .6rem; padding: .8rem 1.1rem; border-radius: var(--r-md); background: var(--ink); color: #fff; font-weight: 600; font-size: .9375rem; box-shadow: var(--shadow-pop); transform: translate(-50%, 140%); transition: transform var(--t-slow) var(--ease-out); }
.toast.is-on { transform: translate(-50%, 0); }

/* ---------- curved marquee, from Originkit "Curved Marquee" ---------- */
.curved-marquee { position: relative; width: 100%; overflow: hidden; }
.curved-marquee svg { display: block; width: 100%; height: auto; overflow: visible; user-select: none; touch-action: pan-y; }
.curved-marquee text { cursor: grab; }

/* ---------- product gallery ---------- */
.gallery-main { position: relative; aspect-ratio: 4 / 3; border-radius: var(--r-lg); overflow: hidden; background: #efefef; }
.gallery-main img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.thumb { flex: none; width: 84px; height: 64px; border-radius: 12px; overflow: hidden; border: 2px solid transparent; padding: 0; background: #efefef; cursor: pointer; transition: border-color var(--t-base) var(--ease-out); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb[aria-current="true"] { border-color: var(--ink); }
.spec-row { display: grid; grid-template-columns: 9.5rem minmax(0, 1fr); gap: 1rem; padding: .8rem 0; border-bottom: 1px solid var(--line); font-size: .9375rem; }
.spec-row dt { color: var(--muted); font-weight: 600; }

/* accordion */
.acc { border-bottom: 1px solid var(--line); }
.acc summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.1rem 0; font-weight: 700; font-size: 1.0625rem; cursor: pointer; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary .acc__icon { width: 28px; height: 28px; flex: none; display: grid; place-items: center; border-radius: 8px; background: var(--blush-2); color: var(--ac-mauve-ink); font: 700 1rem/1 var(--font-mono); transition: transform var(--t-base) var(--ease-out); }
.acc[open] summary .acc__icon { transform: rotate(45deg); }
.acc .acc__body { padding: 0 0 1.2rem; color: var(--muted); line-height: 1.65; max-width: 62ch; }

/* footer */
.site-footer { background: var(--night); color: rgba(255, 255, 255, .72); }
.site-footer a, .site-footer button { color: #fff; text-decoration: none; }
.site-footer a:hover, .site-footer button:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- NFC scene (assets/js/nfc-scene.js): 800 x 900 stage scaled to its box, flat cyan world as in the reel.
   Home (freccia) and artCode button product page. ---------- */
.nfcfx { position: relative; aspect-ratio: 8 / 9; border-radius: 28px; overflow: hidden; background: var(--ac-cyan); }
.nfcfx__stage { position: absolute; left: 0; top: 0; width: 800px; height: 900px; transform-origin: 0 0; }
#fx-sticker { transform-box: fill-box; transform-origin: center; }
.nfcfx__title { position: absolute; left: 0; top: 52px; width: 800px; margin: 0; text-align: center; color: var(--ink); font: 800 60px/1.04 var(--font-sans); letter-spacing: -.02em; }
.nfcfx__title .w { display: inline-block; }
.nfcfx__arrow { position: absolute; left: 192px; top: 250px; width: 416px; height: 560px; }
.nfcfx__arrow svg { width: 100%; height: 100%; overflow: visible; }
.nfcfx__phone { position: absolute; left: 250px; top: 236px; width: 300px; height: 614px; padding: 12px; border-radius: 50px; background: #111; box-shadow: 0 18px 0 rgba(0, 0, 0, .16); transform-origin: 50% 0; }
.nfcfx__screen { position: relative; height: 100%; border-radius: 39px; overflow: hidden; background: #f6f7f8; }
.nfcfx__island { position: absolute; left: 50%; top: 14px; width: 84px; height: 24px; margin-left: -42px; border-radius: 12px; background: #111; z-index: 3; }
.nfcfx__head { position: absolute; inset: 0 0 auto; height: 142px; background: #ec007f; }
.nfcfx__head svg { position: absolute; left: 28px; top: 58px; width: 46px; height: 62px; }
.fx-msg { position: absolute; left: 28px; top: 172px; width: 230px; }
.fx-msg p { margin: 0; }
.fx-msg__title { color: #c3006f; font: 800 42px/1.02 var(--font-sans); letter-spacing: -.02em; }
.fx-msg__body { margin-top: 18px !important; color: var(--ink); font: 400 24px/1.25 var(--font-sans); }
.fx-msg__sign { margin-top: 12px !important; color: var(--ink); font: 600 21px/1.2 var(--font-mono); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nfcfx__off { position: absolute; inset: 0; background: #1b1b1b; z-index: 2; }
.nfcfx__waves { position: absolute; left: 0; top: 0; width: 800px; height: 900px; overflow: visible; pointer-events: none; }
/* the artCode button as the object (product page): colours follow the chosen variant */
.nfcfx__arrow--button { left: 229.5px; top: 384.8px; width: 558px; height: 322.4px; }
.nfcfx { --fx-h: #ec007f; --fx-h-edge: #a3005c; --fx-k: #5d84ff; --fx-k-edge: #3f5fd8; }
.nfcfx[data-variant="invertito"] { --fx-h: #5d84ff; --fx-h-edge: #3f5fd8; --fx-k: #ec007f; --fx-k-edge: #a3005c; }
.nfcfx--daily { --fx-h: #d9c49a; --fx-h-edge: #b29d72; --fx-k: #d97757; --fx-k-edge: #a8553a; }
.nfcfx--daily[data-variant="invertito"] { --fx-h: #d97757; --fx-h-edge: #a8553a; --fx-k: #d9c49a; --fx-k-edge: #b29d72; }
.nfcfx--php { --fx-h: #2e3142; --fx-h-edge: #1c1e29; --fx-k: #777bb4; --fx-k-edge: #555990; }
.nfcfx--php[data-variant="invertito"] { --fx-h: #777bb4; --fx-h-edge: #555990; --fx-k: #2e3142; --fx-k-edge: #1c1e29; }
.fxb-h { fill: var(--fx-h); transition: fill .5s var(--ease-out); }
.fxb-h-edge { fill: var(--fx-h-edge); transition: fill .5s var(--ease-out); }
.fxb-k { fill: var(--fx-k); transition: fill .5s var(--ease-out); }
.fxb-k-edge { fill: var(--fx-k-edge); transition: fill .5s var(--ease-out); }
.nfcfx__head--h { background: var(--fx-h); transition: background-color .5s var(--ease-out); }
.nfcfx__head--k { background: var(--fx-k); transition: background-color .5s var(--ease-out); }
/* the freccia NFC: top and bottom shell (plus their edges and the floor under the tag) follow the variant */
.nfcfx { --fa-t: #ec007f; --fa-t-edge: #a3005c; --fa-b: #5d84ff; --fa-b-edge: #3f5fd8; --fa-b-deep: #34479e; }
.nfcfx[data-variant="claude"] { --fa-t: #d97757; --fa-t-edge: #a8553a; --fa-b: #d9c49a; --fa-b-edge: #b29d72; --fa-b-deep: #8a7650; }
.nfcfx[data-variant="php"] { --fa-t: #777bb4; --fa-t-edge: #555990; --fa-b: #2e3142; --fa-b-edge: #1c1e29; --fa-b-deep: #15161e; }
.fxa-t { fill: var(--fa-t); transition: fill .5s var(--ease-out); }
.fxa-t-edge { fill: var(--fa-t-edge); transition: fill .5s var(--ease-out); }
.fxa-b { fill: var(--fa-b); transition: fill .5s var(--ease-out); }
.fxa-b-edge { fill: var(--fa-b-edge); transition: fill .5s var(--ease-out); }
.fxa-b-deep { fill: var(--fa-b-deep); transition: fill .5s var(--ease-out); }
.nfcfx__head--fa { background: var(--fa-t); transition: background-color .5s var(--ease-out); }
/* without the cyan box (product page): the scene sits on the section, edges fade where the phone enters */
.nfcfx--bare { background: none; border-radius: 0;
  -webkit-mask-image: linear-gradient(transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(transparent, #000 6%, #000 94%, transparent); }
.nfcfx--bare .fx-ripple { stroke: var(--ac-cyan); }

/* ---------- states that win over the components above ----------
   Kept after the components on purpose: an element with the hidden attribute stays hidden even when its class
   sets a display, and a disabled control loses the pointer. The layout classes below can still override them. */
[type="search"] { -webkit-appearance: textfield; outline-offset: -2px; }
button, [role="button"] { cursor: pointer; }
:disabled { cursor: default; }
[hidden]:where(:not([hidden="until-found"])) { display: none; }

/* ---------- layout of the shared blocks: header, footer, catalogue grid, christmas, nfc, cart ---------- */
.anchor { scroll-margin-top: 5rem; }
.section-pad { padding-top: 5rem; padding-bottom: 5rem; }
.measure { max-width: 42rem; }
.is-relative { position: relative; }
.step-num--accent { background-color: var(--ac-magenta); color: #fff; }
.split { display: grid; grid-template-columns: minmax(0, 1fr); gap: 3rem; align-items: center; }
.xmas-section { color: #fff; position: relative; overflow: hidden; }
.nfc-section { background-color: var(--night); color: #fff; overflow: hidden; }
.catalogue { padding-top: 1.5rem; padding-bottom: 5rem; }
.ink-mauve { color: var(--ac-mauve-ink); }
.ink-cyan { color: var(--ac-cyan-ink); }
.section-head { display: flex; flex-direction: column; justify-content: space-between; gap: 1.5rem; }
.chip-row { display: flex; flex-wrap: wrap; gap: .5rem; }
.product-grid { display: grid; gap: 1.25rem; }
.grid-empty { padding-top: 4rem; padding-bottom: 4rem; text-align: center; }
.crumbs__link:hover { color: var(--ink); text-decoration-line: underline; }
.crumbs__link { text-underline-offset: 4px; }
.cover { position: absolute; inset: 0; pointer-events: none; }
.eyebrow--gold { color: var(--gold-soft) !important; }
.code-word { font-family: var(--font-mono); font-weight: 600; color: var(--gold-soft); }
.xmas__lead { font-size: 1.125rem; line-height: 1.625; color: rgba(255, 255, 255, .8); }
.xmas__grid { display: grid; gap: 1.5rem; }
/* price row on the bottom line of every card (a title on two lines would push it down); three cards:
   on tablets the third one takes the whole row with a lower photo, from 1024 px three columns (below) */
.xmas-card { display: flex; flex-direction: column; }
.xmas-card__body { flex: 1; }
.xmas-card__foot { margin-top: auto; }
@media (min-width: 768px) and (max-width: 1023px) {
  .xmas-card--wide { grid-column: span 2; }
  .xmas-card--wide .media { aspect-ratio: 21 / 9; }
}
.xmas-card__body { padding: 1.5rem; display: flex; flex-direction: column; gap: 1.25rem; }
.ink-gold { color: var(--gold-soft); }
.xmas-card__title { font-size: 1.5rem; line-height: 2rem; font-weight: 800; }
/* the whole card opens the product, as the cards of the grid do: the link of the title covers it, and the button
   of the cart stays above so it still adds without leaving the page */
.xmas-card__title a::after { content: ""; position: absolute; inset: 0; z-index: 0; }
.xmas-card__foot .key { position: relative; z-index: 1; }
.xmas-card:hover .xmas-card__title a { text-decoration-thickness: 2px; }
.link-underline:hover { text-decoration-line: underline; }
.link-underline { text-underline-offset: 4px; }
.xmas-card__text { color: rgba(255, 255, 255, .75); }
.xmas-card__foot { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-top: 1rem; border-top-width: 1px; border-color: rgba(255, 255, 255, .15); }
.site-footer__inner { padding-top: 4rem; padding-bottom: 2rem; }
.site-footer__cols { display: grid; gap: 2.5rem; padding-bottom: 3rem; border-bottom-width: 1px; border-color: rgba(255, 255, 255, .1); }
.site-footer__logo { height: 2.25rem; width: auto; }
.site-footer__claim { max-width: 20rem; }
.site-footer__heading { color: rgba(255, 255, 255, .5); }
.stack-list { display: grid; gap: .625rem; }
.site-footer__legal { padding-top: 2rem; display: grid; gap: 1.5rem; }
.site-footer__address { font-style: normal; line-height: 1.625; }
.site-footer__links { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; }
.iubenda-cs-preferences-link { cursor: pointer; }   /* the link iubenda turns into "cookie preferences" */
/* iubenda adds its own floating button whatever the configuration says: the footer link takes its place, as on theartcode.dev */
.iubenda-tp-btn-container { display: none !important; }
/* the button carries its own inline "display": it is taken out of sight and of reach instead */
button.iubenda-tp-btn { visibility: hidden !important; opacity: 0 !important; pointer-events: none !important; }
.site-footer__note { padding-top: 2rem; }
.site-header__bar { position: relative; height: 72px; display: flex; align-items: center; gap: 1.5rem; }
.site-header__brand { display: flex; align-items: center; gap: .625rem; flex-shrink: 0; }
.site-header__logo { height: 1.75rem; width: auto; }
.site-header__tag { font-weight: 600; color: var(--ac-mauve-ink); background-color: var(--blush-2); border-radius: .375rem; padding-left: .375rem; padding-right: .375rem; padding-top: .125rem; padding-bottom: .125rem; }
.site-header__nav { display: none; align-items: center; gap: .75rem; position: absolute; left: 50%; transform: translateX(-50%); }
.site-header__tools { margin-left: auto; display: flex; align-items: center; gap: .75rem; }
.site-header__blog { display: none; align-items: center; gap: .375rem; font-weight: 600; }
.site-header__blog:hover { color: var(--ink); }
.mobile-nav__list { padding-left: 1rem; padding-right: 1rem; padding-top: .75rem; padding-bottom: .75rem; display: grid; }
.mobile-nav__link { padding-top: .75rem; padding-bottom: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; border-bottom-width: 1px; border-color: var(--line); }
.mobile-nav__blog { padding-top: .75rem; padding-bottom: .75rem; font-weight: 600; }
.nfc__scene { position: relative; order: 2; }
.nfc__copy { order: 1; }
.eyebrow--cyan { color: var(--ac-cyan) !important; }
.nfc__lead { font-size: 1.125rem; line-height: 1.625; color: rgba(255, 255, 255, .75); max-width: 36rem; }
.nfc__steps { display: grid; gap: 1.5rem; }
.nfc__step { display: flex; gap: 1rem; }
.step-num--ghost { background-color: rgba(255, 255, 255, .1); color: var(--ac-cyan); }
.title-sm { font-size: 1.125rem; line-height: 1.75rem; font-weight: 700; }
.nfc__step-text { color: rgba(255, 255, 255, .7); }
.button-row { display: flex; flex-wrap: wrap; gap: .75rem; }
.align-start { align-self: flex-start; }
.cart__head { display: flex; align-items: center; justify-content: space-between; padding-left: 1.25rem; padding-right: 1.25rem; height: 72px; border-bottom-width: 1px; border-color: var(--line); }
.cart__title { font-size: 1.25rem; line-height: 1.75rem; font-weight: 800; letter-spacing: -.025em; }
.cart__lines { flex: 1 1 0%; overflow-y: auto; padding-left: 1.25rem; padding-right: 1.25rem; }
.cart__foot { border-top-width: 1px; border-color: var(--line); padding-left: 1.25rem; padding-right: 1.25rem; padding-top: 1.25rem; padding-bottom: 1.25rem; }
.shrinkable { min-width: 0; }
.cart-line__name { font-weight: 700; line-height: 1.25; }
.cart-line__name:hover { text-decoration-line: underline; }
.cart-line__qty { display: flex; align-items: center; gap: .75rem; }
.price-strong { font-weight: 800; }
.cart__empty { padding-top: 3.5rem; padding-bottom: 3.5rem; text-align: center; }
.total-row { display: flex; align-items: baseline; justify-content: space-between; }
.ship-row { display: flex; justify-content: space-between; padding-top: .5rem; }
/* how much is missing for free shipping: the one line of the totals meant to be noticed */
.ship-nudge { margin-top: .625rem; padding: .5rem .75rem; border-radius: var(--r-md); background: var(--blush-2); color: var(--ac-magenta); font-size: .8125rem; font-weight: 600; line-height: 1.35; }
.ship-nudge strong { font-weight: 800; }
.strong { font-weight: 700; }
.total-row__sum { font-size: 1.5rem; line-height: 2rem; font-weight: 800; letter-spacing: -.025em; }
.toast__icon { color: var(--ac-cyan); }
.toast__link { text-decoration-line: underline; text-underline-offset: 2px; margin-left: .25rem; }
@media (min-width: 640px) {
  .section-pad { padding-top: 7rem; padding-bottom: 7rem; }
  .catalogue { padding-top: 2.5rem; padding-bottom: 7rem; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
  .xmas__grid { gap: 2rem; }
  .xmas-card__body { padding: 1.75rem; }
  .site-header__logo { height: 2rem; }
  .cart__head { padding-left: 1.5rem; padding-right: 1.5rem; }
  .cart__lines { padding-left: 1.5rem; padding-right: 1.5rem; }
  .cart__foot { padding-left: 1.5rem; padding-right: 1.5rem; }
}
@media (min-width: 768px) {
  .only-mobile { display: none; }
  .section-head { flex-direction: row; align-items: flex-end; }
  .xmas__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-footer__cols { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr); }
  .site-footer__legal { grid-template-columns: minmax(0, 1fr) auto; align-items: flex-end; }
  .site-header__nav { display: flex; }
}
@media (min-width: 1024px) {
  .xmas__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .split { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4rem; }
  .sticky-col { position: sticky; top: 6rem; }
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .site-header__nav { gap: 1.5rem; }
  .site-header__blog { display: inline-flex; }
  .nfc__scene { order: 1; }
  .nfc__copy { order: 2; }
}

/* ---------- helpers ----------
   The only generic classes of the site. Spacing below (mb-) and above (mt-) on a 4 px scale: mb-3 is 12 px.
   They are written here one by one: a step that is not listed does not exist. */
.text-muted { color: var(--muted); }
.mb-1 { margin-bottom: .25rem; }
.mb-2 { margin-bottom: .5rem; }
.mb-3 { margin-bottom: .75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-5 { margin-bottom: 1.25rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-10 { margin-bottom: 2.5rem; }
.mb-12 { margin-bottom: 3rem; }
.mt-1 { margin-top: .25rem; }
.mt-2 { margin-top: .5rem; }
.mt-3 { margin-top: .75rem; }
.mt-4 { margin-top: 1rem; }
.mt-8 { margin-top: 2rem; }
.mt-10 { margin-top: 2.5rem; }
.shell { max-width: 80rem; margin-left: auto; margin-right: auto; padding-left: 1rem; padding-right: 1rem; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border-width: 0; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (min-width: 640px) { .shell { padding-left: 1.5rem; padding-right: 1.5rem; } }

/* reveal on scroll, driven by Motion; visible by default without js */
.js [data-reveal] { opacity: 0; transform: translateY(18px); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 1ms !important; animation-duration: 1ms !important; animation-iteration-count: 1 !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .key:hover, .card:hover { transform: none; }
}
