/* shell.css — tokens, reset, base, footer, consent, toast — Cuervo Atelier */

@font-face {
  font-family: "CuervoDisplay";
  src: url("../fonts/display.woff2") format("woff2");
  font-weight: 600 800;
  font-display: swap;
}
@font-face {
  font-family: "CuervoText";
  src: url("../fonts/text.woff2") format("woff2");
  font-weight: 400 600;
  font-display: swap;
}

:root {
  --bg: #F6F4FA;
  --fg: #1A1426;
  --fg-soft: #4a4060;
  --divider: #e2dcef;
  --brand: #7B2FF7;
  --brand-light: #9D4EDD;
  --brand-deep: #2A0F4D;
  --accent: #FF3DAE;
  --night: #160A24;
  --night-2: #1f0f33;
  --card: #ffffff;

  --ff-display: "CuervoDisplay", "Segoe UI", "Trebuchet MS", system-ui, sans-serif;
  --ff-text: "CuervoText", "Segoe UI", system-ui, -apple-system, Helvetica, Arial, sans-serif;

  --radius: 14px;
  --radius-lg: 22px;
  --shadow-soft: 0 14px 40px rgba(42, 15, 77, 0.12);
  --shadow-glow: 0 0 0 1px rgba(123, 47, 247, 0.25), 0 16px 42px rgba(123, 47, 247, 0.32);
  --container: 1200px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--ff-text);
  font-size: 17px;
  line-height: 1.6;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 {
  font-family: var(--ff-display);
  line-height: 1.12;
  margin: 0 0 .5em;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.1rem, 1.4rem + 3vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 1.2rem + 1.8vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 1rem + .7vw, 1.55rem); }

p { margin: 0 0 1.1em; max-width: 68ch; }

a { color: var(--brand); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--brand-light); }

.wrap { width: min(var(--container), 100% - 40px); margin-inline: auto; }

.jump-to-main {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 200;
  background: var(--brand);
  color: #fff;
  padding: 10px 18px;
  border-radius: 0 0 10px 10px;
  transition: top .2s var(--ease);
}
.jump-to-main:focus { top: 0; color: #fff; }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.eyebrow {
  display: inline-block;
  font-family: var(--ff-text);
  font-weight: 600;
  font-size: .8rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 14px;
}

/* ---- footer ---- */
.colophon {
  background: var(--night);
  color: #d9cdf0;
  padding: 64px 0 36px;
  margin-top: 96px;
}
.colophon a { color: #e7dbff; text-decoration: none; }
.colophon a:hover { color: var(--accent); }
.colophon__grid {
  display: grid;
  gap: 40px 56px;
  grid-template-columns: 1fr;
}
.colophon__brand { font-family: var(--ff-display); font-size: 1.5rem; color: #fff; }
.colophon__brand span { color: var(--accent); }
.colophon h4 { color: #fff; font-size: 1rem; margin-bottom: 14px; }
.colophon ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.colophon__legal {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.12);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  font-size: .85rem;
  color: #9d8fbe;
}
@media (min-width: 760px) {
  .colophon__grid { grid-template-columns: 1.6fr 1fr 1fr; }
}

/* ---- consent banner ---- */
.privacy-bar {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 120;
  width: min(360px, calc(100vw - 36px));
  background: var(--night-2);
  color: #ece3ff;
  border: 1px solid rgba(123,47,247,.5);
  border-radius: var(--radius);
  box-shadow: var(--shadow-glow);
  padding: 18px 20px 20px;
}
.privacy-bar[hidden] { display: none; }
.privacy-bar__inner p { font-size: .9rem; margin: 0 0 14px; color: #d6c9f3; }
.privacy-bar__inner a { color: var(--accent); }
.privacy-bar__actions { display: flex; gap: 10px; flex-wrap: wrap; }
.privacy-bar .btn { font-size: .9rem; padding: 9px 18px; }

/* ---- toast ---- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  transform: translate(-50%, 22px);
  z-index: 130;
  background: var(--brand-deep);
  color: #fff;
  padding: 14px 22px;
  border-radius: 999px;
  box-shadow: var(--shadow-glow);
  font-weight: 600;
  font-size: .95rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity .28s var(--ease), transform .28s var(--ease);
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition-duration: .01ms !important; }
}
