/*
Theme Name: Aprada Studio
Description: Tema para la tienda artesanal de Alfonso Prada en Barcelona. Integrado con WooCommerce: los productos, precios, fotos y categorías se editan como productos normales y el diseño del taller (cajón de producto, selector de tejido y talla, pedido por WhatsApp, piezas únicas de upcycling) se construye con ellos.
Author: Aprada Studio
Version: 1.0.0
Requires at least: 6.4
Tested up to: 7.1
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: aprada-studio
Domain Path: /languages
Tags: e-commerce, one-column, custom-colors, custom-menu, featured-images, editor-style, threaded-comments, translation-ready, accessibility-ready
WC requires at least: 8.0
WC tested up to: 11.2

Aprada Studio, (C) 2026 Aprada Studio. Distribuido bajo GPL v2 o posterior.
Tokens del design system "Aprada Studio".
Fuentes (Playfair Display, Inter, Courier Prime): SIL Open Font License 1.1. Lenis: MIT.
*/
:root {
  --studio-bg: #F9F8F6;
  --studio-card: #F2EFE9;
  --studio-border: #DED8CC;
  --studio-ink: #36322E;
  --studio-ink-hover: #655D52;
  --studio-muted: #736E67;
  --studio-sage: #8A9A86;
  --studio-denim: #8598A8;
  --studio-tweed: #7A6A5A;
  --studio-linen: #C2C8C1;
  --studio-darkBg: #2E2823;
  --studio-darkCard: #3A332D;
  --studio-darkBorder: #4A423A;
  --studio-mark: #655D52;

  --font-serif: "Playfair Display", Georgia, serif;
  --font-sans: Inter, system-ui, sans-serif;
  --font-typewriter: "Courier Prime", "Courier New", monospace;

  --space-1: 4px; --space-2: 8px; --space-4: 16px; --space-8: 32px; --space-16: 64px;
  --radius-none: 0; --radius-sm: 2px; --radius-full: 9999px;

  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --theme-t: .9s;
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1320px;
  --header-h: 76px;
}
body.is-dark {
  --studio-bg: #2E2823;
  --studio-card: #3A332D;
  --studio-border: #4A423A;
  --studio-ink: #F2EFE9;
  --studio-ink-hover: #DED8CC;
  --studio-muted: #C2C8C1;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body {
  margin: 0;
  background: var(--studio-bg);
  color: var(--studio-ink);
  font-family: var(--font-sans);
  font-size: 16px; line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  transition: background-color var(--theme-t) var(--ease), color var(--theme-t) var(--ease);
  overflow-x: hidden;
}
body::before {
  content: ""; position: fixed; inset: 0; z-index: 90; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .21 0 0 0 0 .2 0 0 0 0 .18 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: .55;
}
::selection { background: var(--studio-sage); color: #36322E; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-serif); font-weight: 400; margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }
.sr-only, .screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; word-wrap: normal !important; }
.screen-reader-text:focus, .skip-link:focus {
  position: fixed; top: 8px; left: 8px; z-index: 1000; width: auto; height: auto; margin: 0; padding: 12px 18px;
  clip: auto; clip-path: none; overflow: visible; background: var(--studio-bg); color: var(--studio-ink); border: 1px solid var(--studio-ink);
  font-family: var(--font-typewriter); font-size: 14px; text-decoration: none;
}
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
:focus-visible { outline: 2px solid var(--studio-ink); outline-offset: 3px; }
.label { font-family: var(--font-typewriter); font-size: 12px; line-height: 16px; letter-spacing: .12em; text-transform: uppercase; }
.muted { color: var(--studio-muted); }

/* ---------- Page transition curtain ---------- */
.curtain {
  position: fixed; inset: 0; z-index: 200; pointer-events: none;
  background: var(--studio-card);
  display: grid; place-items: center;
  transform: translateY(0);
  transition: transform .75s var(--ease-out);
}
.curtain img { width: 64px; opacity: .9; transition: opacity .3s var(--ease); }
html.is-ready .curtain { transform: translateY(-101%); }
html.is-ready .curtain img { opacity: 0; }
html.is-leaving .curtain { transform: translateY(0); transition: transform .55s var(--ease-out); }
html.is-leaving .curtain img { opacity: .9; transition-delay: .2s; }
body.is-dark .curtain { background: #2E2823; }
html:not(.js) .curtain { display: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  min-height: 44px; padding: 10px 20px;
  font-family: var(--font-typewriter); font-weight: 700; font-size: 14px; line-height: 20px; letter-spacing: .04em;
  border: 1px solid var(--studio-ink); border-radius: var(--radius-sm);
  text-decoration: none; cursor: pointer; background: transparent; color: var(--studio-ink);
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.btn .arrow { display: inline-block; transition: transform .35s var(--ease-out); }
.btn:hover .arrow, a:hover > .arrow { transform: translateX(4px); }
.btn-primary { background: var(--studio-ink); color: var(--studio-bg); }
.btn-primary:hover { background: var(--studio-ink-hover); border-color: var(--studio-ink-hover); }
.btn-secondary:hover { background: var(--studio-card); }
.btn-ghost { border-color: transparent; padding-inline: var(--space-2); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.btn-ghost:hover { text-decoration-thickness: 2px; }
.btn-sm { min-height: 36px; padding: 6px 12px; font-size: 12px; line-height: 16px; }
.btn-block { width: 100%; }
.btn.is-disabled { opacity: .5; cursor: not-allowed; pointer-events: none; }
.link-arrow { display: inline-flex; gap: 8px; align-items: center; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px; }

/* ---------- Tag ---------- */
.tag {
  display: inline-flex; align-items: center; gap: var(--space-2);
  padding: var(--space-1) var(--space-2);
  font-family: var(--font-typewriter); font-size: 12px; line-height: 16px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--studio-ink); background: var(--studio-card);
  border: 1px solid var(--studio-border); border-radius: var(--radius-sm); white-space: nowrap;
  transition: background-color var(--theme-t) var(--ease), border-color var(--theme-t) var(--ease);
}
.tag::before { content: ""; width: 8px; height: 8px; border-radius: var(--radius-full); background: var(--dot, var(--studio-ink)); flex: none; }

/* ---------- Reveal motion ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease-out), transform 1.1s var(--ease-out); transition-delay: calc(var(--d, 0) * 90ms); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js .rule { transform: scaleX(0); transform-origin: left; transition: transform 1.4s var(--ease-out); }
.js .is-in .rule { transform: scaleX(1); }
.js .split .w { display: inline-block; opacity: 0; transform: translateY(.45em); transition: opacity .9s var(--ease-out), transform 1s var(--ease-out); transition-delay: calc(var(--i) * 55ms + 150ms); }
.js .split.is-in .w { opacity: 1; transform: none; }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: var(--studio-card);
  border-bottom: 1px solid var(--studio-border);
  transition: transform .5s var(--ease-out), background-color var(--theme-t) var(--ease), border-color var(--theme-t) var(--ease);
}
.header.is-hidden { transform: translateY(-100%); }
.header-inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: var(--space-4); height: var(--header-h); }
.admin-bar .header { top: 32px; }
@media (max-width: 782px) { .admin-bar .header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .header { top: 0; } }
.nav-list, .mobile-list { list-style: none; margin: 0; padding: 0; }
.nav-list { display: flex; gap: clamp(16px, 2.4vw, 32px); }
.nav a { text-decoration: none; position: relative; padding: 6px 0; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease-out); }
.nav a:hover::after, .nav a[aria-current="page"]::after, .nav .current-menu-item > a::after { transform: scaleX(1); transform-origin: left; }
.brand { position: relative; display: block; width: 58px; height: 43px; }
.brand img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; transition: opacity var(--theme-t) var(--ease), transform .5s var(--ease-out); }
.brand:hover img { transform: rotate(-4deg) scale(1.04); }
.brand .logo-cream, .swap-cream { opacity: 0; }
body.is-dark .brand .logo-ink { opacity: 0; }
body.is-dark .brand .logo-cream { opacity: 1; }
.header-cta { justify-self: end; display: flex; align-items: center; gap: var(--space-4); }
.menu-btn { display: none; background: none; border: 0; padding: 8px 0; cursor: pointer; justify-self: start; }
.progress { position: absolute; left: 0; bottom: -1px; height: 1px; width: 100%; background: var(--studio-ink); transform-origin: left; transform: scaleX(var(--p, 0)); opacity: .7; }

.mobile-menu {
  position: fixed; inset: 0; z-index: 60; background: var(--studio-bg);
  display: flex; flex-direction: column; justify-content: center; padding: var(--gutter);
  clip-path: circle(0% at 32px 38px); visibility: hidden;
  transition: clip-path .7s var(--ease-out), visibility 0s linear .7s, background-color var(--theme-t) var(--ease);
}
.mobile-menu.is-open { clip-path: circle(150% at 32px 38px); visibility: visible; transition: clip-path .8s var(--ease-out), visibility 0s; }
.mobile-list { counter-reset: m; }
.mobile-list li { counter-increment: m; }
.mobile-list a { font-family: var(--font-serif); font-size: clamp(36px, 10vw, 56px); line-height: 1.15; text-decoration: none; display: block; padding: 6px 0; }
.mobile-list a::before { content: counter(m, decimal-leading-zero); font-size: .5em; font-family: var(--font-typewriter); font-style: normal; letter-spacing: .1em; vertical-align: super; margin-right: 10px; }
.admin-bar .mobile-menu { top: 32px; }
@media (max-width: 782px) { .admin-bar .mobile-menu { top: 46px; } }
.mobile-menu .close { position: absolute; top: 22px; left: var(--gutter); background: none; border: 0; cursor: pointer; }
.mobile-menu .foot { margin-top: var(--space-8); display: flex; flex-direction: column; gap: var(--space-4); align-items: flex-start; }
@media (max-width: 860px) {
  :root { --header-h: 64px; }
  .nav { display: none; }
  .menu-btn { display: inline-flex; }
  .brand { width: 50px; height: 37px; }
}

/* ---------- Hero (home) ---------- */
.hero { position: relative; min-height: min(88vh, 860px); display: grid; place-items: center; text-align: center; padding-block: clamp(64px, 12vh, 140px); overflow: hidden; }
.glow {
  position: absolute; left: 50%; top: 50%; width: min(560px, 82vw); aspect-ratio: 1; translate: -50% -50%;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, rgba(194,200,193,.7) 0%, rgba(194,200,193,.42) 30%, rgba(234,229,217,.45) 50%, rgba(249,248,246,0) 70%);
  filter: blur(22px); animation: breathe 9s ease-in-out infinite; pointer-events: none;
}
.stitch-ring { position: absolute; left: 50%; top: 50%; width: min(600px, 88vw); aspect-ratio: 1; translate: -50% -50%; pointer-events: none; animation: spin 90s linear infinite; }
.stitch-ring circle { fill: none; stroke: var(--studio-ink); stroke-opacity: .28; stroke-width: 1.2; stroke-dasharray: 7 9; }
@keyframes breathe { 0%,100% { transform: scale(1); } 50% { transform: scale(1.07); } }
@keyframes spin { to { rotate: 360deg; } }
.hero-content { position: relative; max-width: 980px; }
.hero h1 { font-size: clamp(42px, 6.4vw, 92px); line-height: 1.04; letter-spacing: -0.02em; }
.hero .lead { max-width: 560px; margin: var(--space-8) auto 0; font-size: clamp(16px, 1.3vw, 18px); line-height: 1.7; }
.hero .actions { margin-top: var(--space-8); display: flex; gap: var(--space-4); justify-content: center; flex-wrap: wrap; }
.hero .eyebrow { margin-bottom: var(--space-8); }
.seal { position: absolute; right: clamp(16px, 6vw, 96px); bottom: clamp(24px, 6vh, 64px); width: clamp(96px, 10vw, 132px); aspect-ratio: 1; }
.seal svg.ring { width: 100%; height: 100%; animation: spin 26s linear infinite; }
.seal text { font-family: var(--font-typewriter); font-size: 10px; letter-spacing: 1px; fill: var(--studio-ink); text-transform: uppercase; }
.seal img { position: absolute; left: 50%; top: 50%; width: 42%; translate: -50% -50%; }
@media (max-width: 860px) { .seal { display: none; } }

/* ---------- Inner page hero ---------- */
.page-hero { position: relative; padding-block: clamp(72px, 12vw, 160px) clamp(40px, 6vw, 80px); overflow: hidden; }
.page-hero .glow { left: 78%; top: 40%; width: min(520px, 80vw); }
.page-hero .inner { position: relative; display: grid; gap: var(--space-8); }
.page-hero h1 { font-size: clamp(48px, 8vw, 120px); line-height: .98; letter-spacing: -0.025em; max-width: 11em; }
.page-hero .lead { max-width: 560px; font-size: clamp(16px, 1.3vw, 19px); }
body.is-dark .page-hero .glow { background: radial-gradient(circle, rgba(133,152,168,.45), rgba(133,152,168,.15) 40%, rgba(46,40,35,0) 70%); }

/* ---------- Sections ---------- */
.section { padding-block: clamp(72px, 11vw, 150px); position: relative; }
.section.tight-top { padding-top: 0; }
.section-head { display: grid; gap: var(--space-4); margin-bottom: clamp(40px, 6vw, 72px); }
.section-head .rule { height: 1px; background: var(--studio-ink); opacity: .85; }
.section-head .row { display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-4); flex-wrap: wrap; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; }
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: var(--radius-full); background: currentColor; }
.section-title { font-size: clamp(34px, 4.6vw, 64px); line-height: 1.06; letter-spacing: -0.02em; }
.section-note { color: var(--studio-muted); font-size: 15px; max-width: 380px; }
.title-row { display: flex; justify-content: space-between; align-items: flex-end; gap: var(--space-8); flex-wrap: wrap; margin-bottom: clamp(40px, 5vw, 64px); }

/* ---------- Polaroid + letter ---------- */
.about { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 7vw, 120px); align-items: start; }
.about.compact { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); align-items: center; }
.polaroid {
  position: relative; background: #FBFAF7; padding: 14px 14px 18px; margin: 0;
  box-shadow: 0 1px 0 rgba(54,50,46,.08), 0 18px 40px -22px rgba(54,50,46,.45);
  rotate: -2.2deg; transition: rotate .8s var(--ease-out); max-width: 440px;
}
.about:not(.compact) .polaroid { position: sticky; top: calc(var(--header-h) + 34px); }
.polaroid:hover { rotate: -0.6deg; }
.polaroid::before, .polaroid::after { content: ""; position: absolute; width: 96px; height: 28px; background: rgba(222,216,204,.78); box-shadow: 0 1px 2px rgba(54,50,46,.08); }
.polaroid::before { top: -12px; left: 22px; rotate: -8deg; }
.polaroid::after { top: -10px; right: 18px; rotate: 6deg; }
.photo {
  aspect-ratio: 4 / 5; display: grid; place-items: center; overflow: hidden; position: relative;
  background-color: #C2C8C1;
  background-image: repeating-linear-gradient(0deg, rgba(255,255,255,.18) 0 1px, transparent 1px 4px), repeating-linear-gradient(90deg, rgba(54,50,46,.07) 0 1px, transparent 1px 4px);
}
.photo img.mark { width: 38%; }
.photo img.real { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.polaroid figcaption { font-family: var(--font-serif); font-style: italic; font-size: 19px; color: #36322E; margin-top: 14px; text-align: center; }
.letter h2 { font-size: clamp(40px, 5.4vw, 76px); line-height: 1.02; letter-spacing: -0.02em; margin: var(--space-4) 0 var(--space-8); }
.letter .body { display: grid; gap: 1.1em; font-size: clamp(16px, 1.25vw, 18px); line-height: 1.75; max-width: 640px; }
.letter .body > * { margin: 0; }
.letter .body > p:first-child::first-letter { font-family: var(--font-serif); float: left; font-size: 4.2em; line-height: .8; padding: .08em .1em 0 0; }
.letter .more-link { margin-top: var(--space-8); }
.signoff { margin-top: var(--space-8); font-family: var(--font-serif); font-style: italic; font-size: clamp(20px, 1.8vw, 26px); line-height: 1.4; max-width: 560px; }
.signature { margin-top: var(--space-4); display: flex; align-items: center; gap: var(--space-4); }
.signature svg { width: 140px; height: 40px; }
.signature path { fill: none; stroke: var(--studio-ink); stroke-width: 1.6; stroke-linecap: round; stroke-dasharray: 600; stroke-dashoffset: 600; transition: stroke-dashoffset 2.4s var(--ease-out) .3s; }
.signature.is-in path { stroke-dashoffset: 0; }
@media (max-width: 900px) {
  .about, .about.compact { grid-template-columns: 1fr; }
  .polaroid, .about:not(.compact) .polaroid { position: relative; top: 0; max-width: 300px; margin-inline: auto; }
}

/* ---------- Statement band ---------- */
.band { background: var(--studio-linen); color: #36322E; text-align: center; }
.statement { font-family: var(--font-serif); font-size: clamp(30px, 4.4vw, 62px); line-height: 1.16; letter-spacing: -0.015em; max-width: 1080px; margin: var(--space-8) auto 0; }
.statement .w { transition: opacity .5s var(--ease); }
.js .statement .w { opacity: .22; }
.js .statement .w.on { opacity: 1; }

/* ---------- Process ---------- */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(24px, 3vw, 40px); position: relative; }
.steps .thread { position: absolute; left: 0; right: 0; top: 30px; height: 2px; pointer-events: none; width: 100%; }
.steps .thread line { stroke: var(--studio-ink); stroke-opacity: .5; stroke-width: 1.4; stroke-dasharray: 6 7; }
.js .steps .thread { clip-path: inset(0 100% 0 0); transition: clip-path 2.2s var(--ease-out) .2s; }
.js .steps.is-in .thread { clip-path: inset(0 0 0 0); }
.step .num { width: 60px; height: 60px; border-radius: var(--radius-full); display: grid; place-items: center; background: var(--studio-bg); border: 1px solid var(--studio-ink); font-family: var(--font-serif); font-style: italic; font-size: 22px; position: relative; transition: background-color var(--theme-t) var(--ease); }
.step h3 { font-size: clamp(22px, 2vw, 28px); line-height: 1.2; margin: var(--space-8) 0 var(--space-2); }
.step p { color: var(--studio-muted); font-size: 15px; line-height: 1.65; max-width: 280px; }
@media (max-width: 860px) {
  .steps { grid-template-columns: 1fr; gap: var(--space-8); }
  .steps .thread { display: none; }
  .step { display: grid; grid-template-columns: 60px 1fr; gap: 0 20px; }
  .step h3 { margin: 6px 0 4px; }
  .step p { grid-column: 2; }
}

/* ---------- Media frame + illustrations ---------- */
.media {
  position: relative; aspect-ratio: 4 / 5; background: var(--studio-card); overflow: hidden;
  display: grid; place-items: center; border: 1px solid var(--studio-border);
  transition: background-color var(--theme-t) var(--ease), border-color var(--theme-t) var(--ease);
}
.media img.photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease-out); }
.card:hover .media img.photo { transform: scale(1.04); }
.placeholder-mark { position: relative; width: 30%; height: auto; opacity: .35; }
.media .soft { position: absolute; width: 70%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(194,200,193,.85), rgba(194,200,193,0) 70%); filter: blur(10px); transition: transform 1.2s var(--ease-out); }
.media svg.illo { position: relative; width: 68%; height: auto; transition: transform .9s var(--ease-out); }
.illo .scaler { transform-box: view-box; transform-origin: 50% 94%; transition: transform .8s var(--ease-out); }
.illo.swap { animation: swap .7s var(--ease-out); }
@keyframes swap { 0% { opacity: .35; filter: blur(2px); } 100% { opacity: 1; filter: none; } }
.price-tag {
  position: absolute; right: 16px; top: 16px; background: var(--studio-bg); color: var(--studio-ink);
  font-family: var(--font-serif); font-size: 19px; line-height: 1.3; padding: 5px 14px 5px 22px; border: 1px solid var(--studio-border);
  clip-path: polygon(12px 0, 100% 0, 100% 100%, 12px 100%, 0 50%);
  transition: background-color var(--theme-t) var(--ease);
}
.price-tag del { opacity: .55; margin-right: .35em; }
.price-tag ins, .d-price ins, .piece .price ins { text-decoration: none; }
.price-tag::before { content: ""; position: absolute; left: 9px; top: 50%; width: 5px; height: 5px; border-radius: 50%; background: var(--studio-border); translate: 0 -50%; }

/* ---------- Product cards ---------- */
.cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(20px, 2.4vw, 32px) clamp(16px, 2vw, 28px); }
.cards.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1080px) { .cards, .cards.three { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .cards, .cards.three { grid-template-columns: 1fr; } }
.card { display: flex; flex-direction: column; gap: 10px; text-decoration: none; color: inherit; cursor: pointer; transition: opacity .45s var(--ease), transform .6s var(--ease-out); }
.card:hover .media svg.illo { transform: translateY(-8px) rotate(-1.5deg); }
.card:hover .media .soft { transform: scale(1.14); }
.card .meta { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 6px; }
.card .meta .more { opacity: 0; transform: translateX(-6px); transition: opacity .35s var(--ease), transform .45s var(--ease-out); }
.card:hover .meta .more, .card:focus-visible .meta .more { opacity: 1; transform: none; }
.card h3 { font-size: clamp(22px, 1.9vw, 28px); line-height: 1.18; }
.card .price { font-family: var(--font-serif); font-size: 18px; }
.card .short { color: var(--studio-muted); font-size: 15px; }
.card.is-hidden { display: none; }
.card.is-fading { opacity: 0; transform: translateY(12px); }

.filters { display: flex; gap: 10px; flex-wrap: wrap; }
.filter {
  font-family: var(--font-typewriter); font-size: 13px; letter-spacing: .06em; text-transform: uppercase;
  padding: 8px 14px; border: 1px solid var(--studio-ink); border-radius: var(--radius-sm); background: transparent; cursor: pointer;
  transition: background-color .3s var(--ease), color .3s var(--ease);
}
.filter[aria-pressed="true"] { background: var(--studio-ink); color: var(--studio-bg); }
.filter:hover:not([aria-pressed="true"]) { background: var(--studio-card); }

/* ---------- Options (fabric + size) ---------- */
.opt { border: 0; padding: 0; margin: 0; min-width: 0; }
.opt legend { padding: 0; margin-bottom: 10px; display: flex; gap: 10px; align-items: baseline; width: 100%; }
.opt legend .val { font-family: var(--font-serif); font-style: italic; font-size: 17px; }
.swatches { display: flex; gap: 12px; flex-wrap: wrap; }
.swatch { position: relative; cursor: pointer; }
.swatch input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.swatch span.chip { display: block; width: 40px; height: 40px; border-radius: var(--radius-full); box-shadow: inset 0 0 0 1px rgba(54,50,46,.25); outline: 1.5px solid transparent; outline-offset: 3px; transition: outline-color .3s var(--ease), transform .4s var(--ease-out); }
.swatch:hover span.chip { transform: scale(1.08); }
.swatch input:checked + span.chip { outline-color: var(--studio-ink); }
.swatch input:focus-visible + span.chip { outline: 2px solid var(--studio-ink); outline-offset: 4px; }
.chip { background-color: var(--studio-linen); background-size: cover; background-position: center; }
.chip.lino { background-color: #C2C8C1; background-image: repeating-linear-gradient(0deg, rgba(255,255,255,.22) 0 1px, transparent 1px 4px), repeating-linear-gradient(90deg, rgba(54,50,46,.08) 0 1px, transparent 1px 4px); }
.chip.arena { background-color: #EAE5D9; background-image: repeating-linear-gradient(0deg, rgba(122,106,90,.08) 0 1px, transparent 1px 5px); }
.chip.lona { background-color: #8598A8; background-image: repeating-linear-gradient(45deg, rgba(54,50,46,.16) 0 1.2px, transparent 1.2px 5px); }
.chip.tweed { background-color: #7A6A5A; background-image: repeating-linear-gradient(60deg, rgba(255,255,255,.14) 0 1px, transparent 1px 6px), repeating-linear-gradient(-60deg, rgba(255,255,255,.1) 0 1px, transparent 1px 6px); }
.sizes { display: inline-flex; border: 1px solid var(--studio-ink); border-radius: var(--radius-sm); overflow: hidden; }
.sizes label { position: relative; cursor: pointer; }
.sizes input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.sizes span { display: block; padding: 9px 16px; font-family: var(--font-typewriter); font-size: 13px; letter-spacing: .04em; transition: background-color .3s var(--ease), color .3s var(--ease); }
.sizes label + label span { border-left: 1px solid var(--studio-ink); }
.sizes input:checked + span { background: var(--studio-ink); color: var(--studio-bg); }
.sizes input:focus-visible + span { outline: 2px solid var(--studio-ink); outline-offset: -5px; }
.summary { font-size: 14px; color: var(--studio-muted); }
.summary b { font-weight: 500; color: var(--studio-ink); }

/* ---------- Product panel: side drawer (shop) and single product page ---------- */
.drawer-backdrop { position: fixed; inset: 0; z-index: 70; background: rgba(46,40,35,.45); opacity: 0; pointer-events: none; transition: opacity .5s var(--ease); }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 71; width: min(980px, 100vw);
  background: var(--studio-bg); color: var(--studio-ink);
  transform: translateX(102%); visibility: hidden;
  transition: transform .75s var(--ease-out), visibility 0s linear .75s;
  box-shadow: -30px 0 60px -40px rgba(46,40,35,.6);
}
.admin-bar .drawer, .admin-bar .drawer-backdrop { top: 32px; }
@media (max-width: 782px) { .admin-bar .drawer, .admin-bar .drawer-backdrop { top: 46px; } }
.drawer.is-open { transform: none; visibility: visible; transition: transform .75s var(--ease-out), visibility 0s; }
.drawer.is-open + .drawer-backdrop, .drawer-backdrop.is-open { opacity: 1; pointer-events: auto; }
.drawer .panel { height: 100%; grid-template-rows: minmax(0, 1fr); }

.panel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.panel .d-media { position: relative; background: var(--studio-card); display: grid; place-items: center; overflow: hidden; border-right: 1px solid var(--studio-border); }
.panel .d-media .soft { position: absolute; width: 80%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(194,200,193,.9), rgba(194,200,193,0) 70%); filter: blur(12px); }
.panel .d-media svg.illo { position: relative; width: 74%; max-height: 80vh; }
.panel .d-media img.photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .6s var(--ease); }
.panel .d-media img.photo.is-active { opacity: 1; }
.d-thumbs { position: absolute; left: 16px; bottom: 16px; z-index: 2; display: flex; gap: 8px; }
.thumb { width: 48px; height: 60px; padding: 0; border: 1px solid var(--studio-ink); background: var(--studio-bg); cursor: pointer; opacity: .7; transition: opacity .3s var(--ease); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb:hover, .thumb.is-active { opacity: 1; }
.thumb.is-active { outline: 1.5px solid var(--studio-ink); outline-offset: 2px; }
.panel .d-body { padding: clamp(24px, 4vw, 56px); display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.drawer .panel .d-body { overflow-y: auto; overscroll-behavior: contain; }
.panel .d-top { display: flex; justify-content: space-between; align-items: center; gap: var(--space-4); }
.panel .d-close { background: none; border: 0; cursor: pointer; padding: 8px 0; display: inline-flex; gap: 8px; align-items: center; text-decoration: none; }
.panel .d-title { font-size: clamp(34px, 3.6vw, 52px); line-height: 1.05; letter-spacing: -0.02em; }
.panel .d-price { font-family: var(--font-serif); font-size: 26px; }
.panel .d-desc { font-size: 16px; max-width: 460px; }
.panel .d-desc > * + * { margin-top: .8em; }
.panel .d-note { font-family: var(--font-serif); font-style: italic; font-size: 17px; }
.panel .d-foot { margin-top: auto; display: grid; gap: 12px; padding-top: var(--space-4); border-top: 1px solid var(--studio-border); }
.panel .d-small { font-size: 13px; color: var(--studio-muted); }
.drawer .d-body > * { opacity: 0; transform: translateY(16px); transition: opacity .6s var(--ease-out), transform .7s var(--ease-out); }
.drawer.is-open .d-body > * { opacity: 1; transform: none; }
.drawer.is-open .d-body > *:nth-child(2) { transition-delay: .12s; }
.drawer.is-open .d-body > *:nth-child(3) { transition-delay: .18s; }
.drawer.is-open .d-body > *:nth-child(4) { transition-delay: .24s; }
.drawer.is-open .d-body > *:nth-child(5) { transition-delay: .3s; }
.drawer.is-open .d-body > *:nth-child(n+6) { transition-delay: .36s; }

/* Same panel as a normal page (single product) */
.panel--page { min-height: calc(100vh - var(--header-h)); }
.panel--page .d-media { position: sticky; top: var(--header-h); height: calc(100vh - var(--header-h)); align-self: start; }
.panel--page .d-body { justify-content: center; }
.panel--page .d-foot { margin-top: var(--space-8); }
.admin-bar .panel--page .d-media { top: calc(var(--header-h) + 32px); height: calc(100vh - var(--header-h) - 32px); }

@media (max-width: 760px) {
  .drawer .panel { grid-template-columns: 1fr; grid-template-rows: 38vh minmax(0, 1fr); }
  .panel .d-media { border-right: 0; border-bottom: 1px solid var(--studio-border); }
  .panel .d-media svg.illo { width: auto; height: 86%; }
  .panel--page { grid-template-columns: 1fr; }
  .panel--page .d-media, .admin-bar .panel--page .d-media { position: relative; top: 0; height: 62vh; }
}

.tbl-wrap { overflow-x: auto; }
.measures { width: 100%; border-collapse: collapse; font-family: var(--font-typewriter); font-size: 13px; }
.measures th, .measures td { text-align: left; padding: 9px 8px; border-bottom: 1px dashed var(--studio-border); }
.measures th { font-weight: 400; letter-spacing: .06em; }
.measures tr { transition: background-color .4s var(--ease); }
.measures tbody tr.is-sel { background: var(--studio-card); }
.measures tbody tr.is-sel td:first-child::before { content: "● "; }

/* ---------- Link blocks ---------- */
.paths { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 3vw, 40px); }
.paths a { display: grid; gap: 12px; align-content: start; padding-top: var(--space-4); border-top: 1px solid var(--studio-ink); text-decoration: none; }
.paths a h3 { font-size: clamp(26px, 2.4vw, 34px); line-height: 1.12; }
.paths a p { color: var(--studio-muted); }
.paths a .go { margin-top: 6px; }
@media (max-width: 860px) { .paths { grid-template-columns: 1fr; } }

/* ---------- Upcycling pieces ---------- */
.uc-intro { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 96px); align-items: end; margin-bottom: clamp(48px, 6vw, 88px); }
.uc-side { display: grid; gap: 24px; }
.uc-intro p { color: var(--studio-muted); font-size: clamp(16px, 1.25vw, 18px); }
@media (max-width: 900px) { .uc-intro { grid-template-columns: 1fr; } }
.unique { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(24px, 4vw, 56px); }
@media (max-width: 760px) { .unique { grid-template-columns: 1fr; } }
.piece { display: grid; gap: var(--space-4); align-content: start; }
.piece .media { aspect-ratio: 5 / 4; }
.piece .media .soft { background: radial-gradient(circle, rgba(133,152,168,.6), rgba(133,152,168,0) 70%); }
.piece .media svg.illo { width: 46%; margin-top: 6%; }
.piece .num { position: absolute; left: 18px; top: 14px; font-family: var(--font-serif); font-style: italic; font-size: clamp(30px, 3.4vw, 48px); line-height: 1; color: var(--studio-ink); }
.stamp { position: absolute; right: 18px; bottom: 18px; rotate: -8deg; border: 1.5px solid var(--studio-ink); color: var(--studio-ink); padding: 6px 12px; font-family: var(--font-typewriter); font-weight: 700; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; outline: 1px solid var(--studio-ink); outline-offset: 3px; }
.piece .row { display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-4); flex-wrap: wrap; }
.piece h3 { font-size: clamp(24px, 2.2vw, 32px); line-height: 1.15; }
.piece h3 a { text-decoration: none; }
.piece h3 a:hover { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }
.piece.is-sold .media img, .piece.is-sold .media svg { opacity: .55; }
.piece .price { font-family: var(--font-serif); font-size: 26px; }
.piece p { color: var(--studio-muted); }
.rescue { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 3vw, 40px); }
.rescue .item { border-top: 1px solid var(--studio-border); padding-top: var(--space-4); display: grid; gap: 10px; }
.rescue .item h3 { font-size: clamp(24px, 2.2vw, 32px); line-height: 1.15; }
.rescue .item p { color: var(--studio-muted); }
@media (max-width: 760px) { .rescue { grid-template-columns: 1fr; } }

/* ---------- CTA ---------- */
.cta { position: relative; overflow: hidden; padding-block: clamp(72px, 10vw, 170px) clamp(96px, 14vw, 200px); }
.cta .glow-warm {
  position: absolute; left: 50%; bottom: -55%; width: min(1500px, 160vw); aspect-ratio: 1.6; translate: -50% 0; border-radius: 50%;
  background: radial-gradient(ellipse at 50% 50%, rgba(122,106,90,.55) 0%, rgba(194,170,140,.38) 32%, rgba(234,229,217,.25) 52%, rgba(249,248,246,0) 70%);
  filter: blur(24px); pointer-events: none; animation: breathe 11s ease-in-out infinite;
}
body.is-dark .cta .glow-warm { background: radial-gradient(ellipse at 50% 50%, rgba(133,152,168,.42) 0%, rgba(122,106,90,.3) 34%, rgba(46,40,35,0) 70%); }
.cta .inner { position: relative; display: grid; gap: var(--space-8); }
.cta h2 { font-size: clamp(42px, 7vw, 104px); line-height: 1.02; letter-spacing: -0.025em; max-width: 13em; }
.cta .actions { display: flex; gap: var(--space-4); flex-wrap: wrap; align-items: center; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--studio-border); padding-block: var(--space-16) var(--space-8); background: var(--studio-bg); transition: background-color var(--theme-t) var(--ease), border-color var(--theme-t) var(--ease); }
.footer-grid { display: grid; grid-template-columns: auto 1fr; gap: var(--space-16); align-items: end; }
.footer .logo-wrap { position: relative; width: 200px; }
.footer .logo-wrap img { width: 200px; height: auto; transition: opacity var(--theme-t) var(--ease); }
.footer .logo-wrap .logo-cream { position: absolute; inset: 0; opacity: 0; }
body.is-dark .footer .logo-wrap .logo-ink { opacity: 0; }
body.is-dark .footer .logo-wrap .logo-cream { opacity: 1; }
.footer .cols { display: flex; justify-content: flex-end; gap: clamp(32px, 6vw, 96px); flex-wrap: wrap; }
.footer h4 { font-family: var(--font-typewriter); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 12px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 15px; }
.footer ul a, .footer ul button { text-decoration: none; background: none; border: 0; padding: 0; cursor: pointer; text-align: left; }
.footer ul a:hover, .footer ul button:hover { text-decoration: underline; text-underline-offset: 4px; }
.footer .base { margin-top: var(--space-16); padding-top: var(--space-4); border-top: 1px solid var(--studio-border); display: flex; justify-content: space-between; gap: var(--space-4); flex-wrap: wrap; font-size: 13px; color: var(--studio-muted); }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; gap: var(--space-8); } .footer .cols { justify-content: flex-start; } }

/* ---------- Legal dialog ---------- */
dialog.legal { border: 1px solid var(--studio-border); background: var(--studio-bg); color: var(--studio-ink); padding: 0; width: min(560px, calc(100vw - 32px)); max-height: 85vh; }
dialog.legal::backdrop { background: rgba(46,40,35,.55); backdrop-filter: blur(3px); }
dialog.legal[open] { animation: pop .45s var(--ease-out); }
@keyframes pop { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.legal .in { padding: clamp(24px, 4vw, 40px); display: grid; gap: var(--space-4); }
.legal h3 { font-size: 28px; }
.legal .txt { display: grid; gap: 12px; font-size: 15px; }
.legal .x { justify-self: end; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .js [data-reveal], .js .split .w, .drawer .d-body > * { opacity: 1 !important; transform: none !important; }
  .js .statement .w { opacity: 1 !important; }
  .js .rule { transform: none !important; }
  .js .steps .thread { clip-path: none !important; }
  .signature path { stroke-dashoffset: 0 !important; }
  .curtain { display: none; }
}

/* ---------- WordPress content: pages, posts, blocks ---------- */
.entry-content { max-width: 760px; font-size: clamp(16px, 1.25vw, 18px); line-height: 1.75; }
.entry-content > * + * { margin-top: 1.1em; }
.entry-content h2, .entry-content h3, .entry-content h4 { margin-top: 1.6em; line-height: 1.15; }
.entry-content h2 { font-size: clamp(28px, 3vw, 40px); }
.entry-content h3 { font-size: clamp(22px, 2.2vw, 30px); }
.entry-content a { text-underline-offset: 3px; }
.entry-content img, .entry-content video { height: auto; max-width: 100%; }
.entry-content ul, .entry-content ol { padding-left: 1.4em; }
.entry-content blockquote { margin-inline: 0; padding-left: 1.2em; border-left: 2px solid var(--studio-ink); font-family: var(--font-serif); font-style: italic; font-size: 1.15em; }
.entry-content hr { border: 0; border-top: 1px solid var(--studio-ink); opacity: .6; }
.entry-content table { width: 100%; border-collapse: collapse; }
.entry-content th, .entry-content td { padding: 8px; border-bottom: 1px dashed var(--studio-border); text-align: left; }
.entry-content .alignwide { max-width: var(--max); }
.entry-content.extra { margin-top: var(--space-16); }
.alignleft { float: left; margin: 0 1.5em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.5em; }
.aligncenter { display: block; margin-inline: auto; }
.wp-caption { max-width: 100%; }
.wp-caption-text, .gallery-caption, figcaption { font-size: 14px; color: var(--studio-muted); }
.sticky, .bypostauthor { display: block; }
.entry-thumb { margin: 0 0 var(--space-8); }
.entry-thumb img { width: 100%; height: auto; }
.page-links { margin-top: var(--space-4); font-family: var(--font-typewriter); font-size: 13px; }

.entries { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 3vw, 40px); }
.entry-card { display: grid; gap: 10px; align-content: start; }
.entry-card h2 { font-size: clamp(24px, 2.2vw, 32px); line-height: 1.15; }
.entry-card h2 a { text-decoration: none; }
.entry-card .entry-thumb { display: block; margin: 0 0 6px; aspect-ratio: 4 / 5; overflow: hidden; background: var(--studio-card); border: 1px solid var(--studio-border); }
.entry-card .entry-thumb img { height: 100%; object-fit: cover; }
@media (max-width: 900px) { .entries { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .entries { grid-template-columns: 1fr; } }
.actions-row { display: flex; gap: var(--space-4); flex-wrap: wrap; }
.search-wrap { margin-top: var(--space-16); max-width: 480px; }

.pagination { margin-top: var(--space-16); }
.pagination .nav-links { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; font-family: var(--font-typewriter); font-size: 13px; letter-spacing: .06em; text-transform: uppercase; }
.pagination .page-numbers { padding: 8px 14px; border: 1px solid var(--studio-ink); border-radius: var(--radius-sm); text-decoration: none; }
.pagination .page-numbers.current, .pagination a.page-numbers:hover { background: var(--studio-ink); color: var(--studio-bg); }
.post-navigation .nav-links { display: flex; justify-content: space-between; gap: var(--space-4); margin-top: var(--space-16); font-family: var(--font-serif); font-size: 20px; }
.post-navigation a { text-decoration: none; }

/* Forms */
input[type="text"], input[type="email"], input[type="tel"], input[type="url"], input[type="password"], input[type="search"], input[type="number"], textarea, select {
  width: 100%; min-height: 44px; padding: 10px 14px; font: inherit; color: var(--studio-ink);
  background: var(--studio-bg); border: 1px solid var(--studio-ink); border-radius: var(--radius-sm);
}
textarea { min-height: 140px; }
label { display: inline-block; }
.search-form { display: flex; gap: 8px; }
.search-form label { flex: 1; }
.search-form .search-submit, .comment-form .submit, .entry-content .wp-block-button__link {
  min-height: 44px; padding: 10px 20px; font-family: var(--font-typewriter); font-weight: 700; font-size: 14px; letter-spacing: .04em;
  background: var(--studio-ink); color: var(--studio-bg); border: 1px solid var(--studio-ink); border-radius: var(--radius-sm); cursor: pointer; text-decoration: none;
}
.search-form .search-submit:hover, .comment-form .submit:hover { background: var(--studio-ink-hover); border-color: var(--studio-ink-hover); }

/* Comments */
.comments-area { max-width: 760px; margin-top: var(--space-16); }
.comments-title { font-size: clamp(24px, 2.4vw, 34px); margin-bottom: var(--space-4); }
.comment-list { list-style: none; margin: 0 0 var(--space-8); padding: 0; display: grid; gap: var(--space-4); }
.comment-list .children { list-style: none; padding-left: var(--space-8); margin-top: var(--space-4); }
.comment-body { padding-top: var(--space-4); border-top: 1px solid var(--studio-border); }
.comment-meta { font-family: var(--font-typewriter); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.comment-form { display: grid; gap: var(--space-4); }
.comment-form p { margin: 0; }
