/* Carlos Rocha Artbook — site de produção
   Entry point de estilos. Importa os tokens vendorizados do design system
   e define os estilos das seções. HTML/CSS puro (S3-ready, sem build). */

@import "colors.css";
@import "typography.css";
@import "spacing.css";

/* ---------- Reset enxuto ---------- */
*, *::before, *::after { margin: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg-0);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: var(--lh-normal);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: var(--text-primary); text-decoration: none; }
a:hover { opacity: .75; }
::selection { background: var(--accent-ink); color: var(--accent-cream); }

/* Acessibilidade: foco visível sempre */
:focus-visible {
  outline: 3px solid var(--accent-red);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--accent-ink); color: var(--accent-cream);
  padding: 12px 20px; border-radius: var(--radius-pill);
  font-family: var(--font-mono); font-size: var(--text-small);
}
.skip-link:focus { left: 16px; top: 16px; opacity: 1; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Layout ---------- */
.section { padding: var(--space-9) clamp(24px, 6vw, 96px); }
.section--paper { background: var(--paper-0); color: var(--paper-fg); }
.container { max-width: 1280px; margin-inline: auto; }

.kicker {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: var(--text-mono);
  letter-spacing: var(--ls-eyebrow); text-transform: uppercase;
  color: var(--text-primary);
}
.kicker__index { color: var(--text-muted); }

.section__title {
  font-family: var(--font-display); text-transform: uppercase;
  line-height: var(--lh-tight); letter-spacing: var(--ls-display);
  margin: 16px 0 32px; font-weight: 400;
}
.section--galeria .section__title { font-size: clamp(36px, 6vw, 64px); }
.section--case .section__title { font-size: clamp(32px, 5vw, 56px); margin-bottom: 40px; }
.section--sobre .section__title { font-size: clamp(32px, 5vw, 52px); margin: 0 0 16px; }

/* ---------- Botões / tags ---------- */
.btn {
  display: inline-block; font-family: var(--font-body); font-weight: 700;
  font-size: 15px; padding: 16px 30px; border-radius: var(--radius-pill);
  cursor: pointer; transition: transform var(--dur-fast) var(--ease-out),
    box-shadow var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out);
}
.btn--primary { background: var(--accent-red); color: var(--accent-cream); box-shadow: var(--shadow-pop); border: none; }
.btn--primary:hover { transform: translateY(-2px) scale(1.02); opacity: 1; }
.btn--outline { border: 2px solid var(--border-1); color: var(--text-primary); background: transparent; }
.btn--outline:hover { opacity: 1; background: var(--accent-ink); color: var(--accent-cream); border-color: var(--accent-ink); }

.tag {
  font-family: var(--font-mono); font-size: var(--text-mono);
  letter-spacing: var(--ls-mono); text-transform: uppercase;
  padding: 6px 12px; border-radius: var(--radius-pill); display: inline-block;
  background: var(--surface-hover); color: var(--text-secondary);
}
.tag--ink { background: var(--accent-ink); color: var(--accent-cream); }

/* ---------- Header / nav ---------- */
.nav {
  position: absolute; top: 32px; left: clamp(24px, 6vw, 96px); right: clamp(24px, 6vw, 96px);
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--font-mono); font-size: 13px; letter-spacing: var(--ls-mono);
  color: var(--text-secondary); z-index: 3;
}
.nav__brand { color: var(--text-primary); font-weight: 700; }
.nav__links { display: flex; gap: 28px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh; display: flex; flex-direction: column;
  justify-content: center; padding: 0 clamp(24px, 6vw, 96px); overflow: hidden;
  background: url("../img/hero-bg.png") center / cover no-repeat, var(--bg-0);
}
.hero__eyebrow {
  font-family: var(--font-mono); font-size: 13px; letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase; color: var(--text-primary); margin-bottom: 20px;
}
.hero__title {
  font-family: var(--font-display); font-size: clamp(56px, 11vw, 148px); line-height: .94;
  letter-spacing: var(--ls-display); color: var(--accent-cream);
  text-shadow: 0 4px 40px oklch(40% .12 42 / .35); text-transform: uppercase;
  font-weight: 400; max-width: 12ch;
}
.hero__lead {
  font-family: var(--font-body); font-size: clamp(16px, 2vw, 20px);
  color: var(--text-secondary); max-width: 560px; margin-top: 24px;
}
.hero__actions { display: flex; gap: 16px; margin-top: 40px; flex-wrap: wrap; }
.hero__figure {
  position: absolute; right: clamp(24px, 7vw, 120px); top: 50%; margin-top: -260px;
  width: clamp(240px, 24vw, 360px); z-index: 1; pointer-events: none;
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: 0 40px 80px -20px oklch(20% .08 42 / .55); border: 3px solid var(--accent-cream);
}
.hero__figure img { width: 100%; aspect-ratio: 3/4; object-fit: cover; }
.hero__figure figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 24px 14px 12px;
  background: linear-gradient(180deg, transparent, oklch(5% .01 42 / .7));
  font-family: var(--font-mono); font-size: 11px; letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase; color: var(--accent-cream);
}
@media (max-width: 820px) { .hero__figure { display: none; } }

/* ---------- Galeria ---------- */
.filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 36px; }
.filter {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: var(--ls-mono);
  text-transform: uppercase; padding: 10px 18px; border-radius: var(--radius-pill);
  border: none; cursor: pointer; background: var(--surface-hover); color: var(--text-secondary);
  transition: background var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}
.filter[aria-pressed="true"] { background: var(--accent-red); color: var(--accent-cream); }

.gallery-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px;
}
.piece {
  position: relative; border-radius: var(--radius-md); overflow: hidden;
  aspect-ratio: 4/5; background: var(--surface-card); cursor: pointer;
  box-shadow: var(--shadow-card);
  transition: transform var(--dur-med) var(--ease-out), box-shadow var(--dur-med) var(--ease-out);
}
.piece:hover, .piece:focus-within { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.piece img { width: 100%; height: 100%; object-fit: cover; }
.piece__overlay {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end;
  padding: 14px; background: linear-gradient(180deg, transparent 55%, oklch(10% .02 42 / .8) 100%);
}
.piece__material {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase; color: var(--accent-cream); margin-bottom: 4px;
}
.piece__title {
  font-family: var(--font-display); font-size: 18px; text-transform: uppercase;
  color: var(--accent-cream); line-height: 1.1; font-weight: 400;
}
.piece__scale { font-family: var(--font-mono); font-size: 11px; color: var(--accent-cream); opacity: .7; margin-top: 4px; }
.piece[hidden] { display: none; }

/* ---------- Estudo de caso ---------- */
.case-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: center; }
.case-grid .piece { aspect-ratio: 4/5; }
.case__body { display: flex; flex-direction: column; gap: 20px; }
.case__tags { display: flex; gap: 10px; flex-wrap: wrap; }
.case__text { font-size: 18px; opacity: .85; }
.case__stats { display: flex; gap: 32px; margin-top: 8px; flex-wrap: wrap; }
.stat__value { font-family: var(--font-display); font-size: 30px; font-weight: 400; }
.stat__label { font-family: var(--font-mono); font-size: 11px; opacity: .6; text-transform: uppercase; }
@media (max-width: 820px) { .case-grid { grid-template-columns: 1fr; gap: 28px; } }

/* ---------- Sobre ---------- */
.about-grid { display: grid; grid-template-columns: auto 1fr; gap: 32px; align-items: flex-start; margin-top: 20px; }
.about__avatar {
  width: 96px; height: 96px; border-radius: 50%; background: var(--accent-ink);
  display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-pop); flex-shrink: 0;
  overflow: hidden;
}
.about__avatar span { font-family: var(--font-display); color: var(--accent-cream); font-size: 32px; }
.about__avatar img { width: 100%; height: 100%; object-fit: cover; }
.about__text { font-size: 18px; color: var(--text-secondary); max-width: 620px; margin: 0 0 28px; }
@media (max-width: 560px) { .about-grid { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.footer {
  padding: 48px clamp(24px, 6vw, 96px); display: flex; justify-content: space-between;
  align-items: center; gap: 16px; flex-wrap: wrap;
  font-family: var(--font-mono); font-size: 12px; color: var(--text-secondary);
  border-top: 1px solid var(--border-0);
}

/* ---------- Modal de detalhes ---------- */
/* ---------- Link do card (navega para a página de detalhe) ---------- */
.piece__link { position: absolute; inset: 0; z-index: 3; border-radius: var(--radius-md); }
.piece__link:focus-visible { outline: 3px solid var(--accent-red); outline-offset: 3px; }
.piece__overlay { pointer-events: none; }

/* ---------- Página de detalhe ---------- */
.detail { padding: var(--space-7) clamp(24px, 6vw, 96px) var(--space-8); max-width: 1120px; margin-inline: auto; }
.detail__back { font-family: var(--font-mono); font-size: 13px; text-transform: uppercase; letter-spacing: var(--ls-mono); display: inline-block; margin-bottom: 24px; }
.detail__grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 40px; align-items: start; }
@media (max-width: 860px) { .detail__grid { grid-template-columns: 1fr; gap: 24px; } }
.detail__title { font-family: var(--font-display); font-weight: 400; text-transform: uppercase; font-size: clamp(32px, 6vw, 56px); line-height: 1.12; margin: 14px 0 10px; }
.detail__material { font-family: var(--font-mono); font-size: 12px; letter-spacing: var(--ls-eyebrow); text-transform: uppercase; color: var(--text-muted); margin: 0 0 6px; }
.detail__desc { font-size: 17px; line-height: var(--lh-normal); margin: 16px 0; white-space: pre-line; }

/* ---------- Ficha ---------- */
.ficha { margin: 4px 0 0; display: flex; flex-direction: column; gap: 8px; }
.ficha__row { display: grid; grid-template-columns: 160px 1fr; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--border-0); }
.ficha__row dt { font-family: var(--font-mono); font-size: 11px; letter-spacing: var(--ls-eyebrow); text-transform: uppercase; color: var(--text-muted); margin: 0; }
.ficha__row dd { margin: 0; font-size: 15px; }
@media (max-width: 480px) { .ficha__row { grid-template-columns: 1fr; gap: 2px; } }

/* ---------- Carrossel ---------- */
.carousel { position: relative; background: var(--accent-ink); border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-card); }
.carousel__track { display: flex; transition: transform var(--dur-med, .3s) var(--ease-out, ease); will-change: transform; }
.carousel__slide { flex: 0 0 100%; min-width: 100%; }
.carousel__slide img { width: 100%; max-height: 72vh; object-fit: contain; display: block; }
.carousel__btn { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border: none; border-radius: var(--radius-pill); background: var(--accent-cream); color: var(--accent-ink); font-size: 22px; line-height: 1; cursor: pointer; z-index: 2; box-shadow: var(--shadow-pop); }
.carousel__btn:hover { background: var(--accent-red); color: var(--accent-cream); }
.carousel__btn--prev { left: 12px; }
.carousel__btn--next { right: 12px; }
.carousel__count { position: absolute; top: 12px; right: 12px; z-index: 2; font-family: var(--font-mono); font-size: 11px; background: oklch(10% 0.02 42 / 0.6); color: var(--accent-cream); padding: 4px 10px; border-radius: var(--radius-pill); }
.carousel__dots { display: flex; gap: 8px; justify-content: center; padding: 12px; flex-wrap: wrap; }
.carousel__dot { width: 10px; height: 10px; border-radius: 50%; border: none; background: var(--surface-hover); cursor: pointer; padding: 0; }
.carousel__dot[aria-current="true"] { background: var(--accent-red); }
.carousel--single .carousel__btn, .carousel--single .carousel__dots, .carousel--single .carousel__count { display: none; }

/* ---------- Motion (scroll-reveal) ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
@keyframes rise { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: translateY(0); } }
.rise { animation: rise var(--dur-slow) var(--ease-out) both; }

/* Respeita quem prefere menos movimento */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
  .hero__figslide { animation: none !important; opacity: 0; }
  .hero__figslide:first-child { opacity: 1; }
}

/* ---------- Hero: quadro com crossfade de várias peças ---------- */
.hero__figure { aspect-ratio: 3 / 4; }
.hero__figslide {
  position: absolute; inset: 0; opacity: 0;
  animation: heroFig 24s linear infinite;
}
.hero__figslide img { width: 100%; height: 100%; object-fit: cover; }
.hero__figslide:nth-child(1) { animation-delay: 0s; }
.hero__figslide:nth-child(2) { animation-delay: 6s; }
.hero__figslide:nth-child(3) { animation-delay: 12s; }
.hero__figslide:nth-child(4) { animation-delay: 18s; }
@keyframes heroFig {
  0%   { opacity: 0; }
  4%   { opacity: 1; }
  25%  { opacity: 1; }
  29%  { opacity: 0; }
  100% { opacity: 0; }
}

/* ---------- Nav sólido (páginas internas) ---------- */
.nav--solid {
  position: static; background: var(--bg-0);
  padding: 20px clamp(24px, 6vw, 96px);
}

/* ---------- Página de detalhe: split ao meio (foto = laranja, texto = branco) ---------- */
.detail--split { max-width: none; margin: 0; padding: 0; }
.detail--split .detail__grid {
  grid-template-columns: 1fr 1fr; gap: 0; align-items: stretch;
  min-height: calc(100vh - 66px);
}
.detail__side { display: flex; flex-direction: column; justify-content: center; padding: clamp(24px, 4vw, 64px); }
.detail__side--media { background: var(--bg-0); }              /* laranja */
.detail__side--info  { background: #fff; color: var(--fg-0); } /* branco */
.detail__side--info .detail__material { color: var(--fg-2); }
.detail__side .detail__back { margin-bottom: 20px; }
/* Carrossel transparente para o laranja aparecer atrás da foto */
.detail--split .carousel { background: transparent; box-shadow: none; }
.detail--split .carousel__slide img { max-height: 66vh; }
.detail--split .detail__info { max-width: 460px; }
/* Mobile: mesma lógica na horizontal (empilhado — foto em cima, texto embaixo) */
@media (max-width: 860px) {
  .detail--split .detail__grid { grid-template-columns: 1fr; min-height: 0; }
  .detail__side { justify-content: flex-start; }
}

/* ---------- Tela de login do admin ---------- */
.login { display: flex; align-items: center; justify-content: center; min-height: 68vh; padding: clamp(24px, 8vh, 72px) 0; }
.login__card {
  background: var(--accent-ink); color: var(--accent-cream);
  border: 1px solid oklch(100% 0 0 / .08);
  border-radius: 22px;
  box-shadow: 0 40px 90px -30px oklch(0% 0 0 / .65), 0 0 0 1px oklch(0% 0 0 / .25);
  padding: clamp(28px, 5vw, 44px); max-width: 460px; width: 100%;
}
.login__badge {
  width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center;
  background: var(--bg-0); color: var(--accent-ink);
  font-family: var(--font-display); font-size: 22px; font-weight: 400; letter-spacing: 1px;
  box-shadow: 0 0 26px oklch(75% .15 65 / .55); margin-bottom: 22px;
}
.login__title { font-family: var(--font-display); font-weight: 400; text-transform: uppercase; font-size: clamp(28px, 5vw, 38px); line-height: 1.1; letter-spacing: var(--ls-display); margin-bottom: 10px; }
.login__lead { color: oklch(96% .015 85 / .7); font-size: 15px; line-height: var(--lh-normal); margin-bottom: 26px; }
.login__field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.login__field label { font-family: var(--font-mono); font-size: 11px; letter-spacing: var(--ls-mono); text-transform: uppercase; color: oklch(96% .015 85 / .6); }
.login__field input {
  font: inherit; font-size: 15px; padding: 14px 16px; border-radius: 12px;
  background: oklch(100% 0 0 / .05); color: var(--accent-cream);
  border: 1px solid oklch(100% 0 0 / .14);
  transition: border-color var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out);
}
.login__field input::placeholder { color: oklch(96% .015 85 / .35); }
.login__hint { font-family: var(--font-mono); font-size: 11px; color: oklch(96% .015 85 / .5); line-height: 1.45; }
.login__field input:focus { outline: none; border-color: var(--bg-0); background: oklch(100% 0 0 / .07); }
.login__field input:focus-visible { outline: 2px solid var(--bg-0); outline-offset: 2px; }
.login__status { font-family: var(--font-mono); font-size: 13px; line-height: 1.4; color: #ff9270; margin: 2px 0 14px; }
.login__status.is-ok { color: oklch(84% .13 150); }
.login__submit {
  width: 100%; text-align: center; background: var(--bg-0); color: var(--accent-ink); border: none;
  box-shadow: 0 12px 32px -8px oklch(75% .15 65 / .6); margin-top: 6px;
}
.login__submit:hover { transform: translateY(-2px) scale(1.01); opacity: 1; }
.login__submit[disabled] { opacity: .6; cursor: progress; transform: none; }
.login__forgot { display: block; text-align: center; margin-top: 16px; color: var(--accent-cream); font-family: var(--font-mono); font-size: 13px; }
.login__forgot:hover { color: var(--bg-0); opacity: 1; }
.login__fineprint { text-align: center; margin-top: 22px; font-family: var(--font-mono); font-size: 11px; color: oklch(96% .015 85 / .45); line-height: 1.55; }
.login__fallback { display: block; text-align: center; margin-top: 14px; font-family: var(--font-mono); font-size: 12px; color: oklch(96% .015 85 / .55); }
.login__fallback:hover { color: var(--bg-0); opacity: 1; }

/* ---------- Páginas de erro (400/500) — humor com o UI kit ---------- */
.errorpage { min-height: 100vh; display: flex; flex-direction: column; }
.errorpage__main {
  flex: 1; display: flex; flex-direction: column; align-items: center;
  justify-content: center; text-align: center;
  padding: clamp(40px, 8vh, 96px) clamp(24px, 6vw, 96px);
  max-width: 760px; margin-inline: auto;
}
.errorpage__code {
  font-family: var(--font-display); font-weight: 400; line-height: .85;
  font-size: clamp(120px, 30vw, 260px); color: var(--accent-red);
  letter-spacing: var(--ls-display); margin-bottom: 8px;
  text-shadow: 5px 5px 0 var(--accent-ink);
}
.errorpage__wink { display: inline-block; transform: rotate(-10deg); color: var(--accent-ink); }
.errorpage__title {
  font-family: var(--font-display); font-weight: 400; text-transform: uppercase;
  font-size: clamp(28px, 6vw, 52px); line-height: 1.05; letter-spacing: var(--ls-display);
  margin-bottom: 16px;
}
.errorpage__lead { font-size: 18px; line-height: var(--lh-normal); max-width: 52ch; margin: 0 auto 32px; color: var(--text-secondary); }
.errorpage__actions { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
.errorpage__fineprint { margin-top: 28px; font-family: var(--font-mono); font-size: 12px; letter-spacing: var(--ls-mono); text-transform: uppercase; color: var(--text-muted); }
.errorpage--server .errorpage__code { color: var(--accent-ink); text-shadow: 5px 5px 0 var(--accent-red); }
.errorpage--server .errorpage__wink { color: var(--accent-red); }

/* ============================================================
   ADMIN — TEMA CLARO (escopado, NÃO afeta o site público)
   Só vale sob .admin-page / .admin. index.html não tem essas classes,
   então a galeria pública continua laranja. Nada é redefinido no :root.
   ============================================================ */

/* Fundo neutro só na página do admin (troca o laranja global). */
.admin-page { background: #f4f4f6; }

/* Tema claro confortável: redefine variáveis SEMÂNTICAS localmente.
   Como .card, .field input, .muted, table etc. já usam essas variáveis,
   herdam o tema claro só dentro de .admin. Contrastes conferidos p/ AA. */
.admin {
  --surface-card: #ffffff;    /* cards brancos */
  --surface-hover: #ececef;   /* hover neutro */
  --paper-0: #ffffff;         /* fundo de inputs */
  --paper-fg: #1a1a1a;        /* texto em inputs */
  --text-primary: #1a1a1a;    /* AA sobre branco/neutro */
  --text-secondary: #3a3a3a;  /* AA */
  --text-muted: #5a5a5f;      /* AA (>= 4.5:1 sobre #fff/#f4f4f6) */
  --border-0: #e2e2e6;        /* hairlines claras */
  --border-1: #b8b8c0;        /* bordas de input (AA para não-texto) */
  color: var(--text-primary);
}

/* Abas (WAI-ARIA tabs) — identidade da marca no estado ativo (vermelho). */
.admin__tabs {
  display: flex; gap: 4px; flex-wrap: wrap;
  border-bottom: 2px solid var(--border-0); margin-bottom: 28px;
}
.admin__tab {
  font-family: var(--font-mono); font-size: 13px; letter-spacing: var(--ls-mono);
  text-transform: uppercase; padding: 12px 18px; border: none; background: transparent;
  color: var(--text-secondary); cursor: pointer; border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  box-shadow: inset 0 -2px 0 transparent; margin-bottom: -2px;
  transition: color var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out),
    box-shadow var(--dur-fast) var(--ease-out);
}
.admin__tab:hover { color: var(--text-primary); background: var(--surface-hover); }
.admin__tab[aria-selected="true"] {
  color: var(--accent-red); font-weight: 700;
  box-shadow: inset 0 -3px 0 var(--accent-red);
}

/* Cabeçalho de painel (ex.: título + "Nova peça" / "Voltar à lista"). */
.admin__panel-head {
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px; flex-wrap: wrap; margin-bottom: 16px;
}

/* ---------- Ícone do Instagram (máscara CSS: herda currentColor) ---------- */
.ig-icon {
  display: inline-block; width: 1.15em; height: 1.15em; vertical-align: -0.2em;
  background-color: currentColor;
  -webkit-mask: url("../img/instagram.svg") center / contain no-repeat;
  mask: url("../img/instagram.svg") center / contain no-repeat;
}
.ig-link { display: inline-flex; align-items: center; gap: 8px; }

/* ---------- Editor rich text (admin) ---------- */
.rte { border: 2px solid var(--border-1); border-radius: var(--radius-sm); overflow: hidden; background: #fff; }
.rte__bar { display: flex; flex-wrap: wrap; gap: 4px; padding: 6px; background: var(--surface-hover); border-bottom: 1px solid var(--border-0); }
.rte__btn { font: inherit; font-size: 13px; line-height: 1; padding: 6px 10px; border: 1px solid var(--border-1); border-radius: 6px; background: #fff; color: var(--text-primary); cursor: pointer; }
.rte__btn:hover { background: var(--accent-ink); color: var(--accent-cream); border-color: var(--accent-ink); }
.rte__area { min-height: 120px; max-height: 320px; overflow: auto; padding: 12px 14px; font-family: var(--font-body); font-size: 15px; line-height: 1.6; color: var(--text-primary); outline: none; }
.rte__area:focus-visible { outline: 2px solid var(--accent-red); outline-offset: -2px; }
.rte__area p { margin: 0 0 10px; }
.rte__area ul, .rte__area ol { margin: 0 0 10px 20px; }
.rte__area a { text-decoration: underline; }
