/* Don Carlos – Modern v3
   ------------------------------------------------------------
   Design intent: modern editorial + stage vibe.
   No external fonts, no trackers, fast + GDPR-friendly by default.
*/

:root{
  --bg: #070A0F;
  --fg: rgba(255,255,255,.92);
  --muted: rgba(255,255,255,.68);
  --muted2: rgba(255,255,255,.52);
  --border: var(--t10);
  --surface: var(--t06);
  --surface2: var(--t09);

  /* Tone tokens (used instead of hard-coded rgba(255,255,255,α) so we can invert for light themes) */
  --t02: rgba(255,255,255,.02);
  --t03: rgba(255,255,255,.03);
  --t04: rgba(255,255,255,.04);
  --t05: rgba(255,255,255,.05);
  --t06: rgba(255,255,255,.06);
  --t08: rgba(255,255,255,.08);
  --t09: rgba(255,255,255,.09);
  --t10: rgba(255,255,255,.10);
  --t12: rgba(255,255,255,.12);
  --t14: rgba(255,255,255,.14);
  --t16: rgba(255,255,255,.16);
  --t18: rgba(255,255,255,.18);
  --t22: rgba(255,255,255,.22);

  /* Grain overlay controls */
  --grain-opacity: .10;
  --grain-blend: overlay;

  --shadow: 0 20px 60px rgba(0,0,0,.50);
  --shadow-soft: 0 14px 40px rgba(0,0,0,.35);

  --radius: 22px;
  --radius-sm: 16px;

  --max: 1180px;
  --gutter: 24px;

  /* Glass header background (overridden per theme) */
  --header-bg: rgba(7,10,15,.55);

  /* Hub default accents */
  --a1: #9AE6FF;
  --a2: #B6A7FF;
  --glow1: rgba(154,230,255,.18);
  --glow2: rgba(182,167,255,.14);

  --serif: ui-serif, "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

body[data-brand="books"]{
  /* Books – steel/anthracite, modern author studio */
  --bg: linear-gradient(180deg, #0B0F14 0%, #0A1018 46%, #05070A 100%);
  --fg: rgba(255,255,255,.92);
  --muted: rgba(255,255,255,.70);
  --muted2: rgba(255,255,255,.52);
  --border: var(--t10);
  --surface: var(--t06);
  --surface2: var(--t09);

  /* Cooler, editorial accents (steel + warm gold) */
  --a1: #8FB6FF;      /* steel blue */
  --a2: #C7A76C;      /* warm gold */
  --glow1: rgba(143,182,255,.16);
  --glow2: rgba(199,167,108,.12);

  --header-bg: rgba(11,15,20,.70);

  /* We override the global grain overlay with a steel texture below */
  --grain-opacity: .0;
  --grain-blend: normal;
}
body[data-brand="fiesta"]{
  /* Dark “stage” look + Spanish warm accents */
  --a1: #FF6A00;      /* Spanish orange */
  --a2: #FFB020;      /* Sun / amber */
  --glow1: rgba(255,106,0,.20);
  --glow2: rgba(255,212,59,.14);

  --grain-opacity: .10;
  --grain-blend: overlay;
}
body[data-brand="kitz"]{
  /* Kitz Club – bright, playful, warm (yellow/orange) */
  --bg: linear-gradient(180deg, #FFF0B5 0%, #FFE1A0 52%, #FFF7E6 100%);
  --fg: rgba(12,16,24,.92);
  --muted: rgba(12,16,24,.70);
  --muted2: rgba(12,16,24,.56);
  --border: rgba(12,16,24,.14);
  --surface: rgba(12,16,24,.04);
  --surface2: rgba(12,16,24,.06);

  /* Invert tone tokens */
  --t02: rgba(0,0,0,.02);
  --t03: rgba(0,0,0,.03);
  --t04: rgba(0,0,0,.04);
  --t05: rgba(0,0,0,.05);
  --t06: rgba(0,0,0,.06);
  --t08: rgba(0,0,0,.08);
  --t09: rgba(0,0,0,.09);
  --t10: rgba(0,0,0,.10);
  --t12: rgba(0,0,0,.12);
  --t14: rgba(0,0,0,.14);
  --t16: rgba(0,0,0,.16);
  --t18: rgba(0,0,0,.18);
  --t22: rgba(0,0,0,.22);

  --shadow: 0 18px 45px rgba(0,0,0,.12);
  --shadow-soft: 0 12px 30px rgba(0,0,0,.09);

  --radius: 30px;
  --radius-sm: 20px;

  /* Warm accents */
  --a1: #FFD43B;      /* sunny yellow */
  --a2: #FF7A18;      /* warm orange */
  --glow1: rgba(255,212,59,.30);
  --glow2: rgba(255,122,24,.20);

  /* Friendly headings for kids */
  --serif: var(--sans);

  /* Light glass header */
  --header-bg: rgba(255,247,230,.86);

  /* We override the global grain overlay with a playful pattern below */
  --grain-opacity: .0;
  --grain-blend: normal;
}

*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  color: var(--fg);
  font-family: var(--sans);
  background:
    radial-gradient(1200px 600px at 12% 8%, var(--glow1), transparent 60%),
    radial-gradient(900px 520px at 88% 12%, var(--glow2), transparent 62%),
    radial-gradient(700px 500px at 50% 110%, var(--t06), transparent 60%),
    var(--bg);
  min-height: 100vh;
  overflow-x:hidden;
}

a{ color:inherit; text-decoration:none; }

/* ------------------------------------------------------------
   Accessibility: clear focus styles
------------------------------------------------------------ */

:focus{
  outline: 3px solid var(--a1);
  outline-offset: 3px;
}

/* Hide focus ring for mouse users, keep it for keyboard users */
:focus:not(:focus-visible){
  outline: none;
}

:focus-visible{
  outline: 3px solid var(--a1); /* fallback */
  outline: 3px solid color-mix(in oklab, var(--a1) 70%, var(--a2) 30%);
  outline-offset: 3px;
}

a:focus-visible, button:focus-visible{
  border-radius: 14px;
}

a:hover{ text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .22em; }

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

.container{
  width: min(var(--max), calc(100% - (var(--gutter) * 2)));
  margin-inline:auto;
}

.skip{
  position:absolute; left:-999px; top:auto; width:1px; height:1px; overflow:hidden;
}
.skip:focus{
  left:16px; top:16px; width:auto; height:auto; padding:10px 12px;
  background:#fff; color:#000; border-radius:14px; z-index:9999;
}

/* Subtle “film grain” overlay */
body::before{
  content:"";
  position:fixed;
  inset:0;
  pointer-events:none;
  opacity: var(--grain-opacity);
  mix-blend-mode: var(--grain-blend);
  background-image: url("assets/grain.svg");
  background-size: 280px 280px;
  filter: contrast(120%);
}

/* Books: steel texture overlay (replaces grain) */
body[data-brand="books"]::before{
  background-image: url("assets/books-steel.svg");
  background-size: 900px 900px;
  opacity: .18;
  mix-blend-mode: overlay;
  filter: contrast(120%) saturate(85%);
}

/* Kitz Club: friendly background illustration (replaces grain) */
body[data-brand="kitz"]::before{
  background-image: url("assets/kitz-pattern.svg");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  opacity: .92;
  mix-blend-mode: normal;
  filter: saturate(112%) contrast(105%);
}

/* Kitz Club: colorful, friendly components */
body[data-brand="kitz"] .wave{
  background: url("assets/kitz-wave.svg") center/cover no-repeat;
  opacity:.88;
  filter:none;
}

body[data-brand="kitz"] .panel{
  background:
    radial-gradient(900px 320px at 10% 0%, rgba(255,212,59,.22), transparent 60%),
    radial-gradient(900px 320px at 90% 0%, rgba(255,122,24,.16), transparent 60%),
    rgba(255,255,255,.72);
  border-color: rgba(255,122,24,.22);
}

body[data-brand="kitz"] .card{
  background:
    radial-gradient(700px 220px at 20% 0%, rgba(255,212,59,.16), transparent 60%),
    radial-gradient(700px 220px at 80% 0%, rgba(255,122,24,.12), transparent 60%),
    rgba(255,255,255,.78);
  border-color: rgba(255,122,24,.18);
}

body[data-brand="kitz"] .badge,
body[data-brand="kitz"] .tag{
  background: rgba(255,212,59,.12);
  border-color: rgba(255,122,24,.20);
}

body[data-brand="kitz"] .btn.primary{
  background: linear-gradient(135deg, rgba(255,212,59,.48), rgba(255,122,24,.34));
  border-color: rgba(255,122,24,.28);
}

body[data-brand="kitz"] .btn.primary:hover{
  background: linear-gradient(135deg, rgba(255,212,59,.56), rgba(255,122,24,.38));
}

body[data-brand="kitz"] .section.alt{
  background:
    radial-gradient(1100px 460px at 12% 0%, rgba(255,212,59,.20), transparent 60%),
    radial-gradient(1100px 460px at 88% 0%, rgba(255,122,24,.14), transparent 60%),
    rgba(255,255,255,.40);
  border-top: 1px solid rgba(255,122,24,.18);
  border-bottom: 1px solid rgba(255,122,24,.18);
}

/* Kitz: artwork / covers */
body[data-brand="kitz"] .kitz-covers{
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 12px;
  margin: 2px 0 14px;
}

body[data-brand="kitz"] .kitz-cover{
  position:relative;
  overflow:hidden;
  border-radius: 22px;
  border: 1px solid rgba(12,16,24,.12);
  background: rgba(255,255,255,.55);
  box-shadow: 0 18px 40px rgba(0,0,0,.12);
}

body[data-brand="kitz"] .kitz-cover.main{
  grid-row: span 2;
  aspect-ratio: 1 / 1;
}

body[data-brand="kitz"] .kitz-cover.small{
  aspect-ratio: 1 / 1;
}

body[data-brand="kitz"] .kitz-cover::before{
  content:"";
  position:absolute;
  inset:0;
  background-position:center;
  background-size:cover;
  background-repeat:no-repeat;
  filter: saturate(110%);
  transform: scale(1.01);
}

body[data-brand="kitz"] .kitz-cover[data-bg]::before{
  background-image: var(--kitz-bg);
}

body[data-brand="kitz"] .kitz-cover .label{
  position:absolute;
  left:12px;
  bottom:12px;
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.72);
  border: 1px solid rgba(12,16,24,.10);
  font-size: 12px;
  color: rgba(12,16,24,.78);
}

body[data-brand="kitz"] .media-grid{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

body[data-brand="kitz"] .media{
  position:relative;
  overflow:hidden;
  border-radius: 22px;
  border: 1px solid rgba(12,16,24,.12);
  background: rgba(255,255,255,.55);
  box-shadow: 0 14px 34px rgba(0,0,0,.10);
  aspect-ratio: 1 / 1;
  margin-bottom: 12px;
}

body[data-brand="kitz"] .media::before{
  content:"";
  position:absolute;
  inset:0;
  background-image: var(--kitz-bg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: saturate(112%);
  transform: scale(1.01);
}



@media (max-width: 860px){
  body[data-brand="kitz"] .kitz-covers{
    grid-template-columns: 1fr 1fr;
  }
  body[data-brand="kitz"] .kitz-cover.main{
    grid-row: auto;
    grid-column: 1 / -1;
  }
  body[data-brand="kitz"] .media-grid{
    grid-template-columns: 1fr;
  }
}


/* ------------------------------------------------------------
   Header / Nav
------------------------------------------------------------ */

.site-header{
  position: sticky;
  top:0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: var(--header-bg);
  border-bottom: 1px solid var(--t10);
}

.header-inner{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 0;
}

.brand{
  display:flex;
  align-items: baseline;
  gap: 12px;
  white-space: nowrap;
}
.wordmark{
  font-family: var(--serif);
  font-weight: 650;
  letter-spacing: 0;
  text-transform: none;
  font-size: 18px;
}
.brand-sub{
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted2);
  letter-spacing: .08em;
  text-transform: uppercase;
}

.nav{
  display:flex;
  align-items:center;
  gap: 8px;
}
.nav a{
  padding: 10px 12px;
  border-radius: 14px;
  color: var(--muted);
  font-weight: 560;
  letter-spacing: .01em;
}
.nav a:hover{
  background: var(--t06);
  color: var(--fg);
  text-decoration:none;
}
.nav a[aria-current="page"]{
  color: var(--fg);
  background: var(--t06);
  border: 1px solid var(--t10);
}
.nav .pill{
  padding: 10px 12px;
  border: 1px solid var(--t12);
  border-radius: 999px;
  background: var(--t03);
  color: var(--muted);
}

.nav-cta{
  position: relative;
  border: 1px solid var(--t16);
  background: var(--t05);
  color: var(--fg) !important;
}
.nav-cta::before{
  content:"";
  position:absolute;
  inset:-1px;
  border-radius: inherit;
  padding:1px;
  background: linear-gradient(135deg, var(--a1), var(--a2));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events:none;
}

.menu-btn{
  display:none;
  background: transparent;
  border: 1px solid var(--t14);
  border-radius: 14px;
  padding: 10px 12px;
  color: var(--fg);
  cursor: pointer;
}
.menu-lines{
  display:block;
  width: 22px;
  height: 14px;
  position: relative;
}
.menu-lines::before,
.menu-lines::after{
  content:"";
  position:absolute;
  left:0;
  width:100%;
  height:2px;
  background: var(--fg);
  border-radius: 2px;
  opacity:.9;
}
.menu-lines::before{ top:2px; }
.menu-lines::after{ bottom:2px; }

.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;
}

/* ------------------------------------------------------------
   Hero
------------------------------------------------------------ */

.hero{
  padding: 54px 0 34px;
}
.hero-grid{
  display:grid;
  grid-template-columns: 1.25fr .75fr;
  gap: 18px;
  align-items: start;
}

.kicker{
  font-family: var(--mono);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted2);
  font-size: 12px;
  margin: 0 0 12px;
}

h1{
  font-family: var(--serif);
  font-weight: 650;
  font-size: clamp(34px, 4.2vw, 62px);
  line-height: 1.02;
  letter-spacing: -0.01em;
  margin: 0 0 14px;
  text-wrap: balance;
}

.lead{
  font-size: 18px;
  line-height: 1.62;
  color: var(--muted);
  margin: 0 0 18px;
  max-width: 64ch;
}

.hero-actions{
  display:flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 0 0 18px;
}

.badges{
  display:flex;
  flex-wrap: wrap;
  gap: 10px;
}
.badge{
  display:inline-flex;
  align-items:center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid var(--t12);
  background: var(--t03);
  color: var(--muted);
  font-weight: 560;
}
.badge .dot{
  width:8px; height:8px; border-radius:999px;
  background: linear-gradient(135deg, var(--a1), var(--a2));
  box-shadow: 0 0 0 4px var(--t06);
}

.panel{
  border-radius: var(--radius);
  background: var(--t05);
  border: 1px solid var(--t12);
  box-shadow: var(--shadow);
  overflow:hidden;
}
.panel-inner{
  padding: 18px;
}
.panel-top{
  display:flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 10px;
}
.panel-title{
  font-weight: 720;
  letter-spacing: .01em;
}
.panel-meta{
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted2);
  letter-spacing: .08em;
  text-transform: uppercase;
}
.divider{
  height:1px;
  background: var(--t10);
  margin: 14px 0;
}

.list{
  display:grid;
  gap: 10px;
}
.item{
  display:grid;
  gap: 6px;
  padding: 12px 12px;
  border-radius: 16px;
  background: var(--t03);
  border: 1px solid var(--t10);
}
.item:hover{
  background: var(--t05);
  text-decoration:none;
}
.item small{
  font-family: var(--mono);
  color: var(--muted2);
  letter-spacing: .10em;
  text-transform: uppercase;
}
.item strong{
  font-weight: 720;
}
.item span{
  color: var(--muted);
  line-height: 1.5;
}

.wave{
  height: 64px;
  background: url("assets/wave.svg") center/cover no-repeat;
  opacity:.60;
  filter: saturate(120%);
}

/* ------------------------------------------------------------
   Sections
------------------------------------------------------------ */

.section{
  padding: 58px 0;
}
.section.alt{
  background: var(--t03);
  border-top: 1px solid var(--t08);
  border-bottom: 1px solid var(--t08);
}

.section-head{
  display:flex;
  align-items:end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
h2{
  font-family: var(--serif);
  font-weight: 650;
  letter-spacing: -.01em;
  margin: 0;
  font-size: 28px;
}
.sub{
  color: var(--muted);
  line-height: 1.6;
  max-width: 72ch;
}

.grid3{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.grid2{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* ------------------------------------------------------------
   About: Portrait + Bio
------------------------------------------------------------ */

.bio-grid{
  display:grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 18px;
  align-items:start;
}

.portrait{
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--t12);
  box-shadow: var(--shadow);
  min-height: 520px;

  /* The actual photo is provided via CSS variable --portrait */
  background:
    radial-gradient(700px 420px at 20% 18%, var(--t12), transparent 62%),
    linear-gradient(180deg, rgba(0,0,0,.06), rgba(0,0,0,.34)),
    var(--portrait);

  background-size: cover;
  background-position: center;
}

.portrait::after{
  /* subtle watermark (optional, very light) */
  content: "Don Carlos";
  position:absolute;
  right: 14px;
  bottom: 12px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.72);
  background: rgba(0,0,0,.18);
  border: 1px solid rgba(255,255,255,.16);
  padding: 6px 10px;
  border-radius: 999px;
  backdrop-filter: blur(10px);
}

body[data-brand="books"] .portrait::after,
body[data-brand="kitz"] .portrait::after{
  color: rgba(255,255,255,.80);
  background: rgba(0,0,0,.22);
}

.portrait-shield{
  position:absolute;
  inset:0;
  background: transparent; /* blocks easy right-click saving */
}

.no-save{
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
}


.card{
  border-radius: var(--radius);
  background: var(--t05);
  border: 1px solid var(--t12);
  padding: 18px;
  box-shadow: var(--shadow-soft);
}
.card.soft{ box-shadow:none; background: var(--t04); }
.card h3{
  margin: 0 0 8px;
  font-size: 16px;
  letter-spacing: .01em;
}
.card p{ margin:0; color: var(--muted); line-height:1.6; }

.meta-row{
  display:flex; gap: 10px; flex-wrap: wrap;
  margin-top: 12px;
  color: var(--muted2);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .10em;
  text-transform: uppercase;
}
.tag{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid var(--t14);
  background: var(--t04);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .10em;
  text-transform: uppercase;
  color: var(--fg);
}
.tag .dot{
  width:8px; height:8px; border-radius:999px;
  background: linear-gradient(135deg, var(--a1), var(--a2));
}


/* Per-card theme accents (used on Hub) */
.theme-books{ --a1:#1E3A8A; --a2:#C7A76C; }
.theme-fiesta{ --a1:#FF6A00; --a2:#FFB020; }
.theme-kitz{ --a1:#FFB020; --a2:#FF6A00; }

.card.hover{
  transition: transform .16s ease, border-color .16s ease, background .16s ease;
}
.card.hover:hover{
  transform: translateY(-2px);
  border-color: var(--t22);
  background: var(--t06);
}

.cover{
  border-radius: var(--radius);
  overflow:hidden;
  border: 1px solid var(--t12);
  background:
    radial-gradient(600px 320px at 18% 20%, var(--t10), transparent 55%),
    linear-gradient(135deg, var(--t04), var(--t02));
  min-height: 340px;
  position: relative;
}
.cover::after{
  content:"";
  position:absolute;
  inset:0;
  background: linear-gradient(135deg, rgba(0,0,0,.00), rgba(0,0,0,.25));
  pointer-events:none;
}
.cover .cover-inner{
  position: absolute;
  inset: 0;
  display:flex;
  flex-direction: column;
  /* PATCH v13.6: keep book card titles aligned at the top while actions stay at the bottom */
  justify-content: flex-start;
  padding: 18px;
}

/* PATCH v13.6: push actions to the bottom of the cover cards (overrides old inline margin-top) */
.cover .hero-actions{ margin-top: auto !important; }
.cover .title{
  font-family: var(--serif);
  font-size: 20px;
  margin: 0 0 6px;
}
.cover .desc{
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
  max-width: 52ch;
}

.hr{
  height:1px;
  background: var(--t10);
  margin: 18px 0;
}

.bullets{
  margin: 10px 0 0 18px;
  color: var(--muted);
  line-height: 1.65;
}
.bullets li{ margin: 6px 0; }

/* ------------------------------------------------------------
   Buttons
------------------------------------------------------------ */

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--t16);
  font-weight: 720;
  cursor:pointer;
  text-decoration:none !important;
  background: var(--t04);
}
.btn:hover{ background: var(--t06); }

.btn.primary{
  position: relative;
  border-color: var(--t18);
  background: var(--t06);
}
.btn.primary::before{
  content:"";
  position:absolute;
  inset:-1px;
  border-radius: inherit;
  padding:1px;
  background: linear-gradient(135deg, var(--a1), var(--a2));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events:none;
}
.btn.ghost{
  background: transparent;
  border-color: var(--t14);
}
.btn.small{
  padding: 10px 12px;
  border-radius: 13px;
  font-size: 14px;
}
.btn.link{
  padding:0;
  border:none;
  background: none;
  color: var(--fg);
  text-decoration: underline;
  text-underline-offset: .22em;
}

/* ------------------------------------------------------------
   Language Switch
------------------------------------------------------------ */

.lang-switch{
  display:flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 14px;
}
.lang-switch button{
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid var(--t14);
  background: var(--t03);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .10em;
  text-transform: uppercase;
  cursor:pointer;
}
.lang-switch button.active{
  color: var(--fg);
  background: var(--t06);
  border-color: var(--t22);
}
[data-lang] { display:none; }
[data-lang].show { display:block; }

/* ------------------------------------------------------------
   Footer
------------------------------------------------------------ */

.footer{
  padding: 28px 0 42px;
  border-top: 1px solid var(--t10);
  background: rgba(0,0,0,.12);
}
.footer-inner{
  display:flex;
  align-items:flex-start;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}
.footer small{
  color: var(--muted2);
  font-family: var(--mono);
  letter-spacing: .08em;
  text-transform: uppercase;
}

.footer small a{
  color: inherit;
  text-decoration: none;
  border-radius: 8px;
  padding: 2px 4px;
}
.footer small a:hover{
  text-decoration: underline;
}

.footer-links{
  display:flex;
  gap: 14px;
  flex-wrap: wrap;
  color: var(--muted);
}
.footer-links a{ color: var(--muted); }
.footer-links a:hover{ color: var(--fg); }

/* ------------------------------------------------------------
   Reveal animations (optional)
------------------------------------------------------------ */

.reveal{
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .55s ease, transform .55s ease;
}
.reveal.in{
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  .reveal{ opacity: 1; transform: none; transition: none; }
  body::before{ display:none; }
}

/* ------------------------------------------------------------
   Responsive
------------------------------------------------------------ */

@media (max-width: 960px){
  .hero-grid{ grid-template-columns: 1fr; }
  .bio-grid{ grid-template-columns: 1fr; }
  .portrait{ min-height: 420px; }
  .grid3{ grid-template-columns: 1fr; }
  .grid2{ grid-template-columns: 1fr; }
}

@media (max-width: 760px){
  .menu-btn{ display:inline-flex; }
  .nav{
    position:absolute;
    right: var(--gutter);
    top: 64px;
    display:none;
    flex-direction: column;
    align-items: stretch;
    width: min(360px, calc(100vw - (var(--gutter) * 2)));
    padding: 10px;
    background: rgba(7,10,15,.92);
    border: 1px solid var(--t14);
    border-radius: 18px;
    box-shadow: var(--shadow);
  }
  .nav a{ padding: 12px 12px; }
  .nav.open{ display:flex; }
}


/* Link state helpers */
.is-disabled{
  opacity: .62;
  filter: saturate(.9);
}
.is-disabled:hover{
  background: var(--t04) !important;
}

/* Small toast for “missing link” hint */
.toast{
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%) translateY(14px);
  padding: 10px 14px;
  border-radius: 14px;
  background: rgba(12,14,20,.86);
  border: 1px solid var(--t18);
  color: rgba(255,255,255,.92);
  font-weight: 650;
  letter-spacing: .2px;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
  z-index: 9999;
}
.toast.show{
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}


/* Legal */
.legal-text{
  white-space: pre-wrap;
  font-size: 15px;
  line-height: 1.72;
  color: var(--muted);
  margin: 0;
}
.legal-text a{
  text-decoration: underline;
  text-underline-offset: .22em;
}



/* --------------------------------------------
   Media thumbnails / cover tiles
   (gives the site more "life" without real art yet)
-------------------------------------------- */
.card-media{
  height: 170px;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--t12);
  background:
    radial-gradient(600px 180px at 30% 0%, var(--t10), transparent 60%),
    linear-gradient(135deg, var(--t04), var(--t02));
  background-size: cover;
  background-position: center;
  margin: 12px 0 14px;
  position: relative;
  box-shadow: var(--shadow-soft);
}
.card-media::after{
  content:"";
  position:absolute;
  inset:0;
  background: linear-gradient(180deg, rgba(0,0,0,.00), rgba(0,0,0,.28));
  pointer-events:none;
}
.card-media.small{
  height: 120px;
  margin-top: 12px;
}

/* soften cover overlay for bright Kitz theme */
body[data-brand="kitz"] .card-media{
  border-color: rgba(12,16,24,.14);
  box-shadow: 0 12px 26px rgba(0,0,0,.10);
}
body[data-brand="kitz"] .card-media::after{
  background: linear-gradient(180deg, rgba(255,255,255,.00), rgba(255,255,255,.35));
}

/* make the grid breathe a bit when covers exist */
.grid3 .card,
.grid2 .card{
  overflow: hidden;
}
