/* PA i PUNT · base compartida */
@font-face { font-family: 'Instrument Serif'; src: url('../fonts/instrument-serif-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Instrument Serif'; src: url('../fonts/instrument-serif-latin-400-italic.woff2') format('woff2'); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: 'Inter Tight'; src: url('../fonts/inter-tight-latin-wght-normal.woff2') format('woff2'); font-weight: 100 900; font-style: normal; font-display: swap; }

:root {
  --ink: #141413;
  --ink-2: #3b3a36;
  --ink-3: #6f6c64;
  --paper: #f4f0e8;        /* farina */
  --paper-2: #ebe5d9;
  --crust: #d9cbb3;
  --mint: #e5f4ef;         /* fons del logo */
  --mint-2: #c9e6da;
  --sage: #73a38f;         /* verd de les seves històries */
  --sage-d: #4f7d6a;
  --orange: #c66e30;       /* taronja d'"Encàrrecs" */
  --orange-d: #a9561d;
  --line: rgba(20, 20, 19, .14);
  --serif: 'Instrument Serif', 'Times New Roman', serif;
  --sans: 'Inter Tight', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --r: 14px;
  --shadow: 0 10px 30px -12px rgba(20, 20, 19, .25);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--sans); color: var(--ink); background: var(--paper); font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
.serif { font-family: var(--serif); font-weight: 400; letter-spacing: -.01em; }
.caps { font-family: var(--sans); font-weight: 800; text-transform: uppercase; letter-spacing: -.01em; }
.eyebrow { font-family: var(--sans); font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
[hidden] { display: none !important; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.logo { display: inline-flex; color: var(--ink); line-height: 0; }
.logo svg { height: 100%; width: auto; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55em; border: 0; border-radius: 999px; padding: 15px 26px; font-weight: 700; font-size: 15px; text-decoration: none; letter-spacing: -.005em; transition: transform .2s ease, background .2s ease, color .2s ease, box-shadow .2s; white-space: nowrap; }
.btn:active { transform: scale(.98); }
.btn-dark { background: var(--ink); color: var(--paper); }
.btn-dark:hover { background: #2b2a27; }
.btn-orange { background: var(--orange); color: #fff; }
.btn-orange:hover { background: var(--orange-d); }
.btn-light { background: var(--paper); color: var(--ink); }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }
.btn[disabled] { opacity: .45; pointer-events: none; }
.btn .arr { transition: transform .2s; }
.btn:hover .arr { transform: translateX(3px); }

.pill { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px 7px 11px; border-radius: 999px; font-size: 13px; font-weight: 600; background: rgba(255, 255, 255, .7); backdrop-filter: blur(6px); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--sage); box-shadow: 0 0 0 0 rgba(115, 163, 143, .6); animation: pulse 2s infinite; flex: none; }
.dot.off { background: var(--orange); animation: none; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(115, 163, 143, 0); } 100% { box-shadow: 0 0 0 0 rgba(115, 163, 143, 0); } }

/* Vores de paper estripat, com a les seves històries d'Instagram */
.torn { position: relative; }
.torn-top::before, .torn-bottom::after { content: ''; position: absolute; left: 0; right: 0; height: 28px; background: inherit; -webkit-mask: url('../img/torn.svg') repeat-x 0 0 / 600px 28px; mask: url('../img/torn.svg') repeat-x 0 0 / 600px 28px; z-index: 2; pointer-events: none; }
.torn-top::before { top: -27px; }
.torn-bottom::after { bottom: -27px; transform: scaleY(-1); }

.demo-flag { background: var(--ink); color: var(--mint); font-size: 12px; text-align: center; padding: 6px 12px; letter-spacing: .02em; }
.demo-flag b { color: #fff; }

:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; border-radius: 6px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
