@import url("https://fonts.googleapis.com/css2?family=Libre+Baskerville:wght@400;700&display=swap");

:root {
  color-scheme: dark;
  --ink: #070604;
  --panel: #14100d;
  --panel-2: #1c1712;
  --line: rgba(224, 185, 116, 0.22);
  --gold: #d8ad61;
  --amber: #9f6c35;
  --blood: #8b2635;
  --moss: #58614a;
  --text: #f4ead9;
  --paper: #f4ead9;
  --muted: #b9aa93;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: linear-gradient(135deg, #070706 0%, #12110e 52%, #090807 100%);
  color: var(--text);
  font-family: Inter, system-ui, sans-serif;
}

body.menu-open { overflow: hidden; }

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 10px;
  left: 10px;
  padding: 10px 14px;
  background: var(--gold);
  color: var(--ink);
  font-weight: 800;
  transform: translateY(-150%);
  transition: transform 160ms ease;
}

.skip-link:focus { transform: translateY(0); }

.welcome-page { background: #060504; }
.welcome-screen { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.welcome-entry { display: grid; justify-items: center; gap: 18px; color: var(--text); text-align: center; }
.welcome-entry > span { color: var(--muted); font-family: Cinzel, Georgia, serif; font-size: clamp(1rem, 2vw, 1.35rem); letter-spacing: 0.12em; text-transform: uppercase; }
.welcome-entry img { width: min(280px, 60vw); height: min(280px, 60vw); object-fit: contain; filter: invert(0.92) sepia(0.25) saturate(0.8); transition: transform 300ms ease, filter 300ms ease; }
.welcome-entry small { color: var(--gold); font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; }
.welcome-entry:hover img { transform: scale(1.06); filter: invert(0.95) sepia(0.55) saturate(1.1) drop-shadow(0 0 22px rgba(216, 173, 97, 0.3)); }

.welcome-entry { animation: welcome-arrival 800ms cubic-bezier(0.16, 1, 0.3, 1) both; }

@keyframes welcome-arrival {
  from { opacity: 0; transform: translateY(18px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.welcome-leaving .welcome-entry { animation: welcome-departure 560ms cubic-bezier(0.7, 0, 0.84, 0) both; }

@keyframes welcome-departure {
  to { opacity: 0; transform: scale(1.22); filter: blur(5px); }
}

.page-transition {
  position: fixed;
  z-index: 500;
  inset: 0;
  pointer-events: none;
  background: #070604;
  clip-path: inset(0 100% 0 0);
  transition: clip-path 360ms cubic-bezier(0.7, 0, 0.84, 0);
}

.page-transition.is-active { clip-path: inset(0); }

body[data-page] main { animation: portal-content-in 520ms cubic-bezier(0.16, 1, 0.3, 1); }
body.page-leaving main { opacity: 0.72; transform: translateY(8px); transition: opacity 260ms ease, transform 260ms ease; }
body.portal-entering main { animation-duration: 780ms; }

@keyframes portal-content-in {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}

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

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

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

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

.site-shell {
  display: block;
  min-height: 100vh;
}

.side-nav {
  position: fixed;
  z-index: 70;
  top: 0;
  left: 0;
  height: 100dvh;
  width: min(350px, calc(100vw - 36px));
  padding: 30px 32px 34px;
  border-right: 0;
  background:
    radial-gradient(circle at 12% 10%, rgba(111, 27, 40, 0.2), transparent 34%),
    linear-gradient(165deg, rgba(17, 10, 11, 0.98), rgba(7, 6, 4, 0.99) 62%);
  backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  gap: 42px;
  transform: translateX(-105%);
  transition: transform 220ms ease;
  box-shadow: 24px 0 70px rgba(0, 0, 0, 0.62);
  overflow-y: auto;
}

.side-nav.is-open { transform: translateX(0); }

.menu-scrim {
  position: fixed;
  z-index: 60;
  inset: 0;
  display: none;
  border: 0;
  padding: 0;
  background: rgba(0, 0, 0, 0.58);
}

.menu-scrim.is-visible { display: block; }

.menu-close,
.menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 38px;
  padding: 0 12px;
  border: 0;
  background: transparent;
  color: var(--text);
  font-size: 0.82rem;
  border-radius: 6px;
}

.menu-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 36px;
  padding: 0;
  border-radius: 0;
  font-size: 1.4rem;
  color: #d8c9bb;
  transition: color 180ms ease, transform 180ms ease;
}

.menu-close:hover { color: #efe5da; transform: rotate(6deg); }

.menu-toggle > span:first-child {
  width: 16px;
  height: 11px;
  border-top: 1px solid #cfc1b3;
  border-bottom: 1px solid #cfc1b3;
  position: relative;
}

.menu-toggle > span:first-child::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 0;
  width: 16px;
  border-top: 1px solid #cfc1b3;
}

.brand {
  display: flex;
  gap: 16px;
  align-items: center;
  padding-right: 36px;
}

.brand-mark {
  width: 54px;
  height: 54px;
  object-fit: contain;
}

.brand strong,
h1,
h2 {
  font-family: "Libre Baskerville", Georgia, serif;
  font-weight: 800;
  letter-spacing: 0;
}

.brand small {
  display: block;
  margin-top: 4px;
  max-width: 205px;
  color: #b9aa9b;
  font-size: 0.72rem;
  line-height: 1.45;
}

.side-nav .brand strong {
  color: #efe5da;
  font-size: 1.05rem;
  line-height: 1.25;
}

.side-nav nav {
  display: grid;
  gap: 3px;
}

.side-nav nav a {
  padding: 11px 0;
  color: #d8c9bb;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  transition: color 180ms ease, transform 180ms ease;
}

.side-nav nav a:hover {
  color: #efe5da;
  transform: translateX(4px);
}

.side-nav nav .side-account-link {
  margin: 4px 0 6px;
  padding: 8px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #d8c9bb;
}

.side-nav nav a[aria-current="page"] { color: #efe5da; font-weight: 800; }
.side-nav nav .side-account-link[aria-current="page"] { padding-inline: 0; border: 0; background: transparent; color: #efe5da; }
.header-account-link { color: #cfc1b3 !important; }

.exit-link {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border: 1px solid var(--line);
  color: var(--gold);
  background: rgba(216, 173, 97, 0.08);
  border-radius: 6px;
}

.exit-link:hover {
  border-color: var(--gold);
  background: rgba(216, 173, 97, 0.14);
  transform: translateY(-1px);
}

.nav-card {
  margin-top: auto;
  padding: 18px;
  border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(216, 173, 97, 0.1), rgba(139, 38, 53, 0.12));
}

.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  display: inline-block;
  background: #78b36f;
  box-shadow: 0 0 18px #78b36f;
}

.nav-card p,
.nav-card strong {
  margin: 8px 0 0;
}

.nav-card p,
.eyebrow,
small,
.product-card span,
.library-list span,
.calendar-cards span {
  color: var(--muted);
}

main {
  overflow: visible;
}

body[data-page] main { padding-top: 72px; }
body[data-page].has-site-notice main { padding-top: 110px; }
body[data-page].has-site-notice.notice-is-hidden main { padding-top: 72px; }

.topbar {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto minmax(220px, 1fr);
  gap: 14px;
  align-items: center;
  min-height: 64px;
  padding: 10px clamp(18px, 3vw, 40px);
  border-bottom: 0;
  isolation: isolate;
  background: linear-gradient(180deg, rgba(7, 6, 4, 0.97) 0%, rgba(7, 6, 4, 0.88) 100%);
  backdrop-filter: blur(18px);
}

.topbar::after {
  content: "";
  position: absolute;
  top: 100%;
  right: 0;
  left: 0;
  height: 76px;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(180deg, #070604 0%, rgba(7, 6, 4, 0.9) 18%, rgba(7, 6, 4, 0.48) 56%, transparent 100%);
  transition: opacity 180ms ease;
}

body.has-site-notice .topbar::after { opacity: 0; }
body.has-site-notice.notice-is-hidden .topbar::after { opacity: 1; }

.topbar > * {
  position: relative;
  z-index: 1;
}

.topbar-start {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  justify-self: start;
}

.topbar .menu-toggle { flex: 0 0 auto; }

.page-content-back {
  position: absolute;
  top: 16px;
  left: clamp(14px, 2.4vw, 34px);
  z-index: 3;
  width: 40px;
  height: 40px;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0 0 4px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--muted);
  font-size: 1.4rem;
  font-weight: 400;
  box-shadow: none;
  transition: color 180ms ease, transform 180ms ease;
}

.page-content-back:hover { background: transparent; color: var(--gold); transform: translateX(-2px); }
main > section.page-has-back { position: relative; padding-top: max(72px, 5vw); }

.topbar-brand {
  display: inline-flex;
  align-items: center;
  justify-self: end;
  gap: 10px;
  min-width: 0;
  color: var(--text);
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.topbar-brand img { width: 34px; height: 34px; object-fit: contain; }

.header-nav {
  display: flex;
  justify-content: center;
  gap: 4px;
  min-width: 0;
}

.header-nav a {
  min-width: 78px;
  padding: 9px 14px;
  border: 0;
  border-radius: 0;
  color: #cfc1b3;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  white-space: nowrap;
  transition: color 180ms ease, background 180ms ease;
}

.header-nav a:hover,
.header-nav a[aria-current="page"] {
  color: #efe5da;
  background: transparent;
}

.topbar .menu-toggle {
  width: 42px;
  height: 42px;
  padding: 0;
}

.ticker {
  display: flex;
  gap: 26px;
  overflow: hidden;
  color: var(--gold);
  font-size: 0.82rem;
  white-space: nowrap;
}

section,
footer {
  padding: 72px clamp(20px, 5vw, 72px);
}

.hero {
  min-height: calc(100vh - 64px);
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.75fr);
  align-items: center;
  gap: 48px;
  border-bottom: 1px solid var(--line);
}

.eyebrow {
  margin: 0 0 14px;
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
}

h1 {
  max-width: 900px;
  margin: 0;
  font-size: clamp(2.8rem, 5.4vw, 5.7rem);
  line-height: 1.02;
}

h2 {
  margin: 0;
  font-size: clamp(2rem, 3.8vw, 4.1rem);
  line-height: 1.02;
}

h3 {
  margin: 0;
  font-size: 1.1rem;
}

/* Compact surfaces need a separate type scale from page and section titles. */
.product-card h2,
.tradition-grid article h2,
.calendar-cards article h2,
.home-routes h2,
.library-page-grid article h2 {
  margin: 14px 0 10px;
  font-family: Cinzel, Georgia, serif;
  font-size: clamp(1.25rem, 1.8vw, 1.65rem);
  line-height: 1.18;
  overflow-wrap: anywhere;
}

.hero-copy > p:not(.eyebrow),
.section-copy p,
.feature-band > div > p,
.goetia-header p,
.traditions > p + h2 + .tradition-grid,
.community p,
footer p {
  color: var(--muted);
  line-height: 1.75;
}

.hero-copy > p:not(.eyebrow) {
  max-width: 760px;
  font-size: 1.08rem;
}

.home-hero { min-height: calc(100svh - 72px); }
.home-hero-note {
  position: absolute;
  right: clamp(28px, 7vw, 110px);
  bottom: 170px;
  z-index: 1;
  display: grid;
  gap: 5px;
  max-width: 220px;
  padding: 14px 16px;
  border-left: 2px solid var(--gold);
  background: rgba(7, 6, 4, 0.68);
  backdrop-filter: blur(10px);
}
.home-hero-note span,
.home-hero-note small { color: var(--muted); font-size: 0.72rem; }
.home-hero-note strong { font-size: 0.94rem; }

.search-panel,
.newsletter {
  margin-top: 28px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

input,
textarea {
  min-width: 0;
  width: 100%;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.045);
  color: var(--text);
  padding: 15px 16px;
  font: inherit;
  outline: none;
  border-radius: 6px;
}

textarea { resize: vertical; }

input:focus,
textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(216, 173, 97, 0.14);
}

button:disabled { cursor: wait; opacity: 0.72; }

button,
.button {
  border: 1px solid var(--gold);
  border-radius: 6px;
  padding: 14px 18px;
  color: var(--text);
  background: transparent;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.button:hover { transform: translateY(-2px); }

button,
.button.primary {
  background: linear-gradient(135deg, var(--gold), var(--amber));
  color: #17100a;
}

.button.secondary {
  border-color: var(--line);
  color: var(--gold);
}

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

.hero-art {
  position: relative;
  min-height: 540px;
  display: grid;
  place-items: center;
}

.hero-art::before {
  content: "";
  position: absolute;
  inset: 6%;
  border: 1px solid var(--line);
  transform: rotate(7deg);
  background:
    linear-gradient(90deg, transparent 49%, rgba(216, 173, 97, 0.18) 50%, transparent 51%),
    linear-gradient(0deg, transparent 49%, rgba(216, 173, 97, 0.18) 50%, transparent 51%);
}

.hero-art img {
  position: relative;
  width: min(360px, 82vw);
  max-height: 520px;
  object-fit: cover;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  filter: sepia(0.3) contrast(1.08);
}

.home-hero {
  position: relative;
  isolation: isolate;
  grid-template-columns: minmax(0, 1fr);
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(7, 6, 4, 0.96) 0%, rgba(7, 6, 4, 0.78) 46%, rgba(7, 6, 4, 0.2) 100%),
    linear-gradient(0deg, rgba(7, 6, 4, 0.82), transparent 48%),
    url("assets/img/hero/paimon-portal.png") center / cover;
}

.home-hero .hero-copy { position: relative; z-index: 1; max-width: 780px; }

.home-hero-seal {
  position: absolute;
  z-index: 1;
  right: clamp(28px, 6vw, 100px);
  bottom: 46px;
  width: clamp(72px, 9vw, 128px);
  height: clamp(72px, 9vw, 128px);
  object-fit: contain;
  filter: invert(0.92) sepia(0.25) saturate(0.8);
  opacity: 0.92;
}

.home-hero .orbital-card { z-index: 1; right: clamp(28px, 6vw, 100px); bottom: 190px; }

.orbital-card {
  position: absolute;
  right: 0;
  bottom: 42px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  background: rgba(20, 16, 13, 0.92);
  box-shadow: var(--shadow);
}

.orbital-card span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  margin-bottom: 5px;
}

.category-strip {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-top: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.category-strip a {
  flex: 0 0 auto;
  border: 1px solid var(--line);
  color: var(--gold);
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.035);
  font-weight: 700;
  border-radius: 6px;
}

.home-routes,
.library-page-grid,
.store-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.home-routes { gap: 16px; }

.home-routes a,
.library-page-grid article {
  min-height: 238px;
  border: 1px solid var(--line);
  padding: 24px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.02));
  transition: border-color 180ms ease, transform 180ms ease;
}

.home-routes a {
  padding: 0;
  overflow: hidden;
  display: grid;
  grid-template-rows: 150px 1fr;
}

.home-routes a > img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  filter: saturate(0.72) contrast(1.08);
  transition: transform 300ms ease, filter 300ms ease;
}

.home-routes a > div { padding: 20px 22px 24px; }
.home-routes a:hover > img { transform: scale(1.05); filter: saturate(0.92) contrast(1.08); }
.home-routes a:nth-child(1) > img { object-position: center 36%; }
.home-routes a:nth-child(2) > img { object-position: center 60%; }
.home-routes a:nth-child(3) > img { object-position: center 62%; }
.home-routes a:nth-child(4) > img { object-position: center 38%; }

.home-routes a:hover { border-color: var(--gold); transform: translateY(-4px); }
.home-routes a,
.library-page-grid article,
.product-card,
.book-card,
.demonology-cards article,
.tradition-grid article,
.calendar-cards article { border-radius: 8px; box-shadow: 0 14px 38px rgba(0, 0, 0, 0.16); }
.home-routes span,
.library-page-grid span { color: var(--gold); font-family: Cinzel, serif; }
.home-routes h2 { margin: 14px 0 10px; }
.home-hero h1,
.home-routes h2 { font-family: "Libre Baskerville", Georgia, serif; }
.route-link { display: inline-flex; gap: 8px; align-items: center; margin-top: 20px; color: var(--gold); font-size: 0.82rem; }
.home-routes p,
.library-page-grid p,
.reference-band p,
.page-intro > p:not(.eyebrow),
.note-band p,
.planet-table span { color: var(--muted); line-height: 1.7; }

.reference-band,
.note-band {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 32px;
  align-items: center;
  background: rgba(255, 255, 255, 0.025);
  border-block: 1px solid var(--line);
}

.reference-band p { margin: 0; }
.reference-band a,
.library-page-grid a { color: var(--gold); font-weight: 700; }

.page-intro { max-width: 1020px; padding-bottom: 42px; }
.page-intro h1 { font-size: clamp(2.8rem, 5.4vw, 5.2rem); }
.page-intro > p:not(.eyebrow) { max-width: 760px; font-size: 1.08rem; }
.library-page-grid article h2 { margin: 14px 0 10px; }
.library-page-grid article a { display: inline-block; margin-top: 14px; }
.note-band { margin-top: 34px; }
.home-signature { display: grid; grid-template-columns: 0.9fr 1fr auto; gap: 34px; align-items: end; border-top: 1px solid var(--line); }
.home-signature h2 { max-width: 520px; font-size: clamp(2rem, 4vw, 4rem); }
.home-signature > p { max-width: 460px; margin: 0; color: var(--muted); line-height: 1.75; }
.home-signature .text-link { margin: 0; white-space: nowrap; }
.library-catalog { padding-top: 24px; }
.catalog-heading { max-width: 780px; margin-bottom: 34px; }
.catalog-heading > p:not(.eyebrow) { color: var(--muted); line-height: 1.7; }
.catalog-group + .catalog-group { margin-top: 34px; }
.catalog-group > h3 { margin-bottom: 14px; color: var(--gold); font-family: Cinzel, Georgia, serif; font-size: 1.15rem; }
.library-shelf { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.book-card { min-height: 245px; padding: 22px; border: 1px solid var(--line); background: linear-gradient(160deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.02)); display: flex; flex-direction: column; }
.book-card > span { color: var(--gold); font-size: 0.68rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.book-card h4 { margin: 16px 0 10px; font-family: Cinzel, Georgia, serif; font-size: 1.18rem; line-height: 1.25; }
.book-card p { margin: 0; color: var(--muted); font-size: 0.9rem; line-height: 1.65; }
.book-card a { margin-top: auto; padding-top: 18px; color: var(--gold); font-weight: 700; }
.traditions-page-grid { padding-inline: clamp(20px, 5vw, 72px); grid-template-columns: repeat(2, minmax(0, 1fr)); }
.calendar-page-grid { padding-inline: clamp(20px, 5vw, 72px); grid-template-columns: repeat(4, minmax(0, 1fr)); }
.calendar-page-grid article { min-height: 220px; }
.planet-table { padding: 28px clamp(20px, 5vw, 72px) 72px; display: grid; gap: 0; }
.planet-table > p { margin-bottom: 14px; }
.planet-table div { display: grid; grid-template-columns: 150px 1fr; gap: 20px; padding: 16px 0; border-top: 1px solid var(--line); }
.planet-table strong { color: var(--gold); }
.goetia-page { min-height: calc(100vh - 64px); }
.community-page { min-height: calc(100vh - 64px); }
.demonology-hero { min-height: calc(100vh - 64px); display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 54px; align-items: center; }
.demonology-hero > div > p:not(.eyebrow), .section-heading > p:not(.eyebrow) { max-width: 720px; color: var(--muted); line-height: 1.75; font-size: 1.05rem; }
.demonology-hero .button { display: inline-flex; margin-top: 20px; }
.demonology-hero figure { position: relative; margin: 0; min-height: 500px; border: 1px solid var(--line); overflow: hidden; }
.demonology-hero figure > img:first-child { width: 100%; height: 100%; min-height: 500px; object-fit: cover; object-position: center; filter: saturate(0.7) contrast(1.06); }
.demonology-seal { position: absolute; right: 24px; bottom: 24px; width: 92px; height: 92px; object-fit: contain; filter: invert(0.92) sepia(0.25) saturate(0.8); }
.demonology-map { border-top: 1px solid var(--line); }
.section-heading { max-width: 840px; margin-bottom: 32px; }
.demonology-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.demonology-cards article { overflow: hidden; border: 1px solid var(--line); background: linear-gradient(160deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.02)); }
.demonology-cards article > img { width: 100%; height: 190px; object-fit: cover; filter: saturate(0.7) contrast(1.05); }
.demonology-cards article > div { padding: 20px; }
.demonology-cards span { color: var(--gold); font-size: 0.7rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.demonology-cards h3 { margin: 12px 0 8px; font-family: Cinzel, Georgia, serif; font-size: 1.25rem; }
.demonology-cards p, .demonology-timeline p { margin: 0; color: var(--muted); line-height: 1.7; }
.demonology-timeline { background: rgba(255, 255, 255, 0.025); border-block: 1px solid var(--line); }
.demonology-timeline > h2 { margin-bottom: 30px; }
.demonology-timeline > div { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.demonology-timeline article { border-top: 1px solid var(--gold); padding-top: 14px; }
.demonology-timeline strong { display: block; margin-bottom: 10px; color: var(--gold); font-family: Cinzel, Georgia, serif; }
.demonology-reading { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 34px; align-items: center; }
.demonology-reading > div:last-child { display: grid; gap: 12px; }
.demonology-reading a { padding: 16px; border: 1px solid var(--line); color: var(--gold); font-weight: 700; }

.feature-band {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 32px;
  align-items: start;
  background: rgba(255, 255, 255, 0.02);
}

.product-grid,
.tradition-grid,
.calendar-cards,
.daemon-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.product-card,
.library-list article,
.daemon-grid article,
.tradition-grid article,
.calendar-cards article,
details {
  border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.02));
  padding: 22px;
}

.product-card {
  min-height: 260px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.product-card p,
.library-list p,
.daemon-grid small,
.tradition-grid p,
.calendar-cards small,
details p {
  color: var(--muted);
  line-height: 1.65;
}

.product-card strong {
  color: var(--gold);
}

.split-section {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 42px;
  align-items: center;
}

.text-link {
  display: inline-block;
  margin-top: 12px;
  color: var(--gold);
  font-weight: 800;
}

.library-list {
  display: grid;
  gap: 14px;
}

.goetia-section {
  background:
    linear-gradient(rgba(7, 6, 4, 0.82), rgba(7, 6, 4, 0.92)),
    url("assets/img/hero/paimon-portal.png") center / cover;
  border-block: 1px solid var(--line);
}

.goetia-header {
  max-width: 760px;
  margin-bottom: 28px;
}

.goetia-tools {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) minmax(170px, 0.35fr) auto;
  gap: 14px;
  align-items: end;
  margin-bottom: 24px;
}

.daemon-search-label,
.daemon-filter-label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.goetia-tools input,
.goetia-tools select {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: rgba(9, 9, 8, 0.82);
  color: var(--paper);
  font: inherit;
  padding: 0 12px;
}

.goetia-tools select option { background: #15130f; }

#daemon-count {
  margin: 0 0 11px;
  color: var(--gold);
  font-family: Cinzel, serif;
  font-size: 0.83rem;
  white-space: nowrap;
}

.daemon-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.daemon-grid .daemon-card {
  min-height: 285px;
  padding: 0;
  overflow: hidden;
  position: relative;
  isolation: isolate;
  display: grid;
  align-content: end;
  appearance: none;
  color: var(--paper);
  cursor: pointer;
  text-align: left;
}

.daemon-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(7, 6, 4, 0.03) 16%, rgba(7, 6, 4, 0.88) 78%, rgba(7, 6, 4, 0.98));
}

.daemon-card img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 28%;
  filter: saturate(0.78) contrast(1.08);
  transition: transform 300ms ease, filter 300ms ease;
}

.daemon-card:hover img {
  transform: scale(1.04);
  filter: saturate(0.95) contrast(1.08);
}

.daemon-card > div {
  display: grid;
  gap: 5px;
  padding: 22px;
}

.daemon-card .daemon-seal {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 48px;
  height: 48px;
  object-fit: contain;
  filter: invert(0.92) sepia(0.25) saturate(0.8);
  opacity: 0.92;
}

.daemon-card:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.daemon-grid span {
  color: var(--gold);
  font-family: Cinzel, serif;
  font-size: 1.8rem;
}

.daemon-source {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.daemon-source a {
  color: var(--gold);
}

.daemon-empty {
  grid-column: 1 / -1;
  min-height: 220px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  padding: 28px;
  border: 1px dashed var(--line);
  text-align: center;
}

.daemon-empty p { margin: 0 0 10px; color: var(--muted); }
.daemon-empty button { padding: 10px 14px; }

.daemon-modal {
  width: min(900px, calc(100vw - 32px));
  max-height: min(860px, calc(100vh - 32px));
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #11100d;
  color: var(--paper);
}

.daemon-modal::backdrop { background: rgba(0, 0, 0, 0.76); backdrop-filter: blur(3px); }

.daemon-modal-content { position: relative; padding: 28px; overflow: auto; max-height: inherit; }

.modal-close {
  position: absolute;
  z-index: 2;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--paper);
  font-size: 1.5rem;
  cursor: pointer;
}

.daemon-detail-head { display: grid; grid-template-columns: minmax(180px, 0.72fr) 1fr; gap: 28px; align-items: center; }
.daemon-detail-art { position: relative; aspect-ratio: 0.9; overflow: hidden; border: 1px solid var(--line); background: #1a1710; }
.daemon-detail-art > img:first-child { width: 100%; height: 100%; object-fit: cover; object-position: center 24%; }
.daemon-detail-seal { position: absolute; right: 14px; bottom: 14px; width: 66px; height: 66px; object-fit: contain; filter: invert(0.92) sepia(0.25) saturate(0.8); }
.daemon-detail-number { color: var(--gold); font-family: Cinzel, serif; font-size: 0.8rem; letter-spacing: 0.1em; }
.daemon-detail-copy h3 { margin: 6px 0 8px; font-family: Cinzel, serif; font-size: clamp(1.8rem, 4vw, 2.8rem); }
.daemon-detail-rank { color: var(--gold); margin: 0; }
.daemon-detail-domains { margin: 16px 0 0; color: var(--muted); font-size: 0.84rem; }
.daemon-description { margin: 28px 0; color: var(--muted); line-height: 1.72; }
.daemon-details { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.daemon-details div { min-height: 78px; padding: 13px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.daemon-details dt { color: var(--gold); font-size: 0.68rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.daemon-details dd { margin: 7px 0 0; color: var(--paper); font-size: 0.86rem; }
.daemon-modal-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 22px; }
.daemon-modal-nav button { display: grid; gap: 5px; text-align: left; background: transparent; color: var(--text); border-color: var(--line); }
.daemon-modal-nav button:last-child { text-align: right; }
.daemon-modal-nav span { color: var(--muted); font-size: 0.68rem; text-transform: uppercase; }
.daemon-modal-nav strong { color: var(--gold); font-family: Cinzel, Georgia, serif; }

.traditions,
.calendar-band {
  border-bottom: 1px solid var(--line);
}

.traditions h2 {
  max-width: 840px;
  margin-bottom: 28px;
}

.calendar-band {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 28px;
  align-items: start;
}

.community {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
  background: linear-gradient(135deg, rgba(139, 38, 53, 0.17), rgba(88, 97, 74, 0.12));
}

.newsletter small {
  grid-column: 1 / -1;
  color: var(--muted);
}

.contact-section { align-items: start; }
.contact-channels { padding-top: 24px; }
.contact-channels-heading { max-width: 880px; margin-bottom: 28px; }
.contact-channels-heading h2 { font-size: clamp(1.9rem, 3.5vw, 3.5rem); }
.contact-channels-heading > p:last-child { margin: 14px 0 0; color: var(--muted); font-size: 1.05rem; }
.contact-channel-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; max-width: 980px; align-items: start; }
.contact-channel { min-width: 0; display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 13px; align-items: center; padding: 16px; border: 1px solid var(--line); border-radius: 6px; background: rgba(255, 255, 255, 0.035); transition: border-color 180ms ease, background 180ms ease, transform 180ms ease; }
.contact-channel:hover { border-color: var(--gold); background: rgba(216, 173, 97, 0.08); transform: translateY(-2px); }
.contact-channel-mark { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; color: var(--ink); font-size: 0.72rem; font-weight: 900; }
.contact-channel-mark img { width: 21px; height: 21px; }
.instagram-mark { background: var(--gold); }
.whatsapp-mark { background: #78b36f; }
.contact-channel strong { display: block; color: var(--text); font-family: Cinzel, Georgia, serif; font-size: 0.92rem; overflow-wrap: anywhere; }
.contact-channel small { display: block; margin-top: 4px; color: var(--muted); overflow-wrap: anywhere; }
.contact-channel-arrow { color: var(--gold); font-size: 1.1rem; }
.attendants-picker { margin: 0; padding: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 6px; background: rgba(255, 255, 255, 0.035); transition: border-color 180ms ease, background 180ms ease; }
.attendants-picker[open] { border-color: var(--gold); background: rgba(216, 173, 97, 0.06); }
.attendants-picker summary { min-width: 0; display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 13px; align-items: center; padding: 16px; list-style: none; }
.attendants-picker summary::-webkit-details-marker { display: none; }
.attendants-picker summary strong { display: block; font-family: Cinzel, Georgia, serif; font-size: 0.92rem; }
.attendants-picker summary small { display: block; margin-top: 4px; color: var(--muted); font-weight: 400; }
.attendants-chevron { color: var(--gold); font-size: 1.25rem; transition: transform 180ms ease; }
.attendants-picker[open] .attendants-chevron { transform: rotate(180deg); }
.attendants-list { border-top: 1px solid var(--line); }
.attendants-list a { display: flex; justify-content: space-between; gap: 18px; align-items: center; padding: 15px 16px; transition: background 180ms ease; }
.attendants-list a + a { border-top: 1px solid var(--line); }
.attendants-list a:hover { background: rgba(216, 173, 97, 0.08); }
.attendants-list strong { display: block; color: var(--gold); font-family: Cinzel, Georgia, serif; }
.attendants-list small { display: block; margin-top: 5px; color: var(--muted); line-height: 1.45; }
.attendants-list > a > img { flex: 0 0 auto; width: 20px; height: 20px; filter: invert(67%) sepia(22%) saturate(816%) hue-rotate(66deg) brightness(92%); }
.contact-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.contact-form label { display: grid; gap: 8px; color: var(--muted); font-size: 0.78rem; font-weight: 700; }
.contact-form .form-field-wide { grid-column: 1 / -1; }
.contact-form button { width: fit-content; }
.form-status { align-self: center; margin: 0; color: var(--gold); font-size: 0.82rem; }

.contact-simple {
  min-height: calc(100svh - 72px);
  display: grid;
  align-content: center;
  gap: clamp(26px, 4vw, 42px);
  background:
    radial-gradient(circle at 12% 24%, rgba(111, 27, 40, 0.12), transparent 38%),
    linear-gradient(145deg, #0b0808, #12100e 58%, #090807);
}

.contact-simple-heading {
  max-width: 680px;
}

.contact-simple-heading .eyebrow {
  margin-bottom: 10px;
  font-weight: 600;
}

.contact-simple h1 {
  margin: 0;
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: clamp(2.15rem, 4.6vw, 4.25rem);
  font-weight: 400;
  line-height: 1.12;
}

.contact-simple-heading > p:last-child {
  max-width: 610px;
  margin: 16px 0 0;
  color: #c7b9aa;
  font-size: clamp(0.92rem, 1.4vw, 1.04rem);
  font-weight: 400;
  line-height: 1.7;
}

.contact-simple .contact-channel-grid {
  width: 100%;
  max-width: 820px;
  gap: 12px;
}

.contact-simple .contact-channel {
  padding: 18px;
  border-color: rgba(224, 185, 116, 0.14);
  background: rgba(255, 255, 255, 0.025);
}

.contact-simple .contact-channel:hover {
  border-color: rgba(224, 185, 116, 0.32);
  background: rgba(255, 255, 255, 0.05);
}

.contact-simple .contact-channel strong {
  font-family: inherit;
  font-size: 0.94rem;
  font-weight: 600;
}

.contact-simple .contact-channel small {
  font-size: 0.78rem;
  font-weight: 400;
}

.contact-channel-action {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #d8c9bb;
  font-size: 0.76rem;
  font-weight: 500;
  white-space: nowrap;
}

.contact-simple-note {
  margin: -10px 0 0;
  color: #9f9285;
  font-size: 0.78rem;
  font-weight: 400;
}

.rituals-hero {
  min-height: min(650px, calc(100svh - 72px));
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  place-items: center;
  overflow: hidden;
  text-align: center;
  background:
    linear-gradient(180deg, rgba(7, 6, 4, 0.88) 0%, rgba(7, 6, 4, 0.12) 24%, rgba(7, 6, 4, 0.58) 100%),
    radial-gradient(circle at center, rgba(13, 8, 9, 0.24), rgba(7, 6, 4, 0.78) 64%),
    url("assets/img/rituais/rituais-hero.jpg") center 45% / cover no-repeat,
    #090706;
}

.rituals-hero-copy {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 760px;
  min-width: 0;
  padding: clamp(26px, 4vw, 48px);
  background: radial-gradient(ellipse at center, rgba(8, 6, 6, 0.9), rgba(8, 6, 6, 0.5) 58%, transparent 74%);
}

.rituals-hero h1 {
  margin: 0;
  color: #efe5da;
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: clamp(2.25rem, 5.2vw, 4.8rem);
  font-weight: 400;
  line-height: 1.08;
  overflow-wrap: anywhere;
  text-shadow: 0 3px 18px rgba(0, 0, 0, 0.9);
}

.rituals-hero-copy > p:not(.eyebrow) {
  max-width: 620px;
  margin: 20px auto 0;
  color: #d0c2b4;
  font-size: clamp(0.9rem, 1.35vw, 1.04rem);
  line-height: 1.7;
}

.ritual-jump-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 24px;
  margin-top: 28px;
}

.ritual-jump-nav a {
  color: #d8c9bb;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.ritual-jump-nav a:hover { color: #fff5e9; }

.rituals-catalog {
  background:
    radial-gradient(circle at 88% 8%, rgba(74, 25, 35, 0.14), transparent 32%),
    #0c0908;
}

.rituals-heading {
  max-width: 720px;
  margin-bottom: 34px;
}

.rituals-heading h2 {
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 400;
}

.rituals-heading > p:last-child {
  margin: 14px 0 0;
  color: var(--muted);
  line-height: 1.65;
}

.rituals-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.ritual-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(224, 185, 116, 0.18);
  border-radius: 8px;
  background: #15110f;
  scroll-margin-top: 120px;
}

.ritual-card-art {
  position: relative;
  min-height: 300px;
  overflow: hidden;
  background-color: #030303;
  background-image:
    linear-gradient(180deg, transparent 48%, rgba(8, 6, 5, 0.18) 70%, #15110f 100%),
    var(--ritual-cover);
  background-repeat: no-repeat;
  background-position: center;
  background-size: 100% 100%, contain;
}

.ritual-card[data-ritual="paimon"] { --ritual-cover: url("assets/img/rituais/capa-paimon.png"); }
.ritual-card[data-ritual="lilith"] { --ritual-cover: url("assets/img/rituais/capa-lilith.png"); }
.ritual-card[data-ritual="orobas"] { --ritual-cover: url("assets/img/rituais/capa-orobas.png"); }
.ritual-card[data-ritual="stolas"] { --ritual-cover: url("assets/img/rituais/capa-stolas.png"); }
.ritual-card[data-ritual="gremory"] { --ritual-cover: url("assets/img/rituais/capa-gremory.png"); }
.ritual-card[data-ritual="sitri"] { --ritual-cover: url("assets/img/rituais/capa-sitri.png"); }

.ritual-sigil {
  position: absolute;
  right: 22px;
  bottom: 14px;
  width: clamp(112px, 13vw, 158px);
  aspect-ratio: 1;
  object-fit: contain;
  opacity: 0.76;
  filter: invert(1) sepia(0.16) drop-shadow(0 4px 18px rgba(0, 0, 0, 0.9));
  mix-blend-mode: screen;
}

.ritual-sigil-editorial { opacity: 0.68; }

.ritual-card-content {
  display: flex;
  flex-direction: column;
  min-height: 470px;
  padding: clamp(22px, 3vw, 34px);
}

.ritual-rank {
  margin: 0 0 9px;
  color: #c69d5a;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.ritual-card h2 {
  margin: 0;
  color: #efe5da;
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: clamp(2rem, 3.6vw, 3rem);
  font-weight: 400;
}

.ritual-card-content > p:not(.ritual-rank) {
  margin: 14px 0 0;
  color: #c9bbad;
  line-height: 1.7;
}

.ritual-intentions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.ritual-intentions li {
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(216, 173, 97, 0.08);
  color: #cbbcab;
  font-size: 0.7rem;
}

.ritual-details {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid rgba(224, 185, 116, 0.13);
}

.ritual-details summary {
  color: #d8c9bb;
  font-size: 0.78rem;
  font-weight: 600;
}

.ritual-details dl {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 16px 0 0;
}

.ritual-details dl div { min-width: 0; }
.ritual-details dt { color: #8f8378; font-size: 0.65rem; text-transform: uppercase; }
.ritual-details dd { margin: 4px 0 0; color: #d8c9bb; font-size: 0.78rem; }
.ritual-details > p { margin: 14px 0 0; color: #a99b8e; font-size: 0.78rem; line-height: 1.6; }

.ritual-contact {
  width: fit-content;
  margin-top: auto;
  padding-top: 26px;
  color: #dfbd7d;
  font-size: 0.8rem;
  font-weight: 700;
}

.ritual-contact:hover { color: #fff0d4; }

.ritual-source-note {
  max-width: 980px;
  margin-top: 34px;
  padding: 20px 0 0;
  border-top: 1px solid rgba(224, 185, 116, 0.12);
}

.ritual-source-note p {
  margin: 0;
  color: #95887d;
  font-size: 0.72rem;
  line-height: 1.65;
}

.ritual-source-note div { display: flex; flex-wrap: wrap; gap: 12px 22px; margin-top: 12px; }
.ritual-source-note a { color: #c5a66f; font-size: 0.72rem; }

@media (max-width: 860px) {
  .rituals-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .ritual-card-content { min-height: 0; }
  .ritual-contact { margin-top: 24px; padding-top: 0; }
}

@media (max-width: 680px) {
  body[data-page="rituais"] { overflow-x: clip; }

  body[data-page="rituais"] .topbar {
    grid-template-columns: 34px minmax(0, 1fr) 26px;
  }

  body[data-page="rituais"] .topbar .menu-toggle { width: 34px; padding-inline: 8px; }
  body[data-page="rituais"] .topbar-brand img { width: 26px; height: 26px; }
  body[data-page="rituais"] .header-nav { gap: 4px; }
  body[data-page="rituais"] .header-nav a { min-width: 0; padding-inline: 2px; font-size: 0.62rem; }

  .rituals-hero {
    min-height: 560px;
    background-position: center, center, center 44%, center;
  }

  .rituals-hero-copy { padding-inline: 8px; }
  .rituals-hero h1 { font-size: clamp(1.85rem, 9.4vw, 2.75rem); }
  .ritual-jump-nav { gap-inline: 18px; }
  .rituals-grid { gap: 8px; }
  .ritual-card { border-radius: 6px; }
  .ritual-card-art { min-height: 158px; }
  .ritual-sigil { right: 8px; bottom: 7px; width: 70px; }
  .ritual-card-content { min-height: 285px; padding: 14px 12px; }
  .ritual-rank { min-height: 25px; margin-bottom: 6px; font-size: 0.5rem; line-height: 1.4; }
  .ritual-card h2 { font-size: clamp(1.2rem, 5.5vw, 1.55rem); }
  .ritual-card-content > p:not(.ritual-rank) {
    display: -webkit-box;
    margin-top: 9px;
    overflow: hidden;
    font-size: 0.7rem;
    line-height: 1.5;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 5;
  }
  .ritual-intentions { display: none; }
  .ritual-details {
    display: block;
    margin-top: 14px;
    padding-top: 10px;
  }
  .ritual-details summary {
    font-size: 0.66rem;
    line-height: 1.4;
  }
  .ritual-details dl {
    grid-template-columns: 1fr;
    gap: 6px;
    margin-top: 10px;
  }
  .ritual-details > p {
    margin-top: 10px;
    font-size: 0.66rem;
    line-height: 1.5;
  }
  .ritual-contact { margin-top: auto; padding-top: 14px; font-size: 0.7rem; }
  .ritual-source-note { margin-top: 24px; }
}

.faq {
  max-width: 980px;
}

details {
  margin-top: 12px;
}

summary {
  cursor: pointer;
  font-weight: 800;
  color: var(--text);
}

footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
}

footer strong {
  color: var(--text);
  font-family: Cinzel, serif;
  font-size: 1.4rem;
}

footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 18px;
  color: var(--gold);
}

.legal-bar { display: flex; justify-content: space-between; gap: 18px; align-items: center; max-width: 1180px; margin-top: 48px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.75rem; }
.legal-bar nav { margin: 0; gap: 16px; font-size: 0.75rem; }
.legal-bar a { color: var(--gold); }

.legal-content { max-width: 900px; display: grid; gap: 14px; }
.legal-content article { padding: 22px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.025); }
.legal-content h2 { margin: 0 0 10px; font-size: clamp(1.25rem, 2vw, 1.65rem); }
.legal-content p { margin: 0; color: var(--muted); line-height: 1.7; }

/* Shared product language: one readable type scale and one restrained surface. */
.product-card h2,
.tradition-grid article h2,
.calendar-cards article h2,
.home-routes h2,
.library-page-grid article h2,
.book-card h4,
.demonology-cards h3,
.demonology-timeline strong,
.catalog-group > h3,
.daemon-detail-copy h3,
.daemon-modal-nav strong,
.contact-channel strong,
.attendants-picker summary strong,
.attendants-list strong,
footer strong { font-family: "Libre Baskerville", Georgia, serif; font-weight: 700; }

footer { padding-block: 52px 28px; }
.footer-compact { display: flex; align-items: center; gap: 24px; max-width: 1180px; }
.footer-brand { display: inline-flex; align-items: center; gap: 12px; margin-right: auto; }
.footer-brand strong { font-size: 1rem; }
.footer-mark { width: 42px; height: 42px; }
.footer-contact { grid-column: auto; margin: 0; padding: 10px 14px; border-radius: 6px; }
.footer-social { display: flex; align-items: center; gap: 14px; margin: 0; }
.footer-social a { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font-size: 0.82rem; }
.footer-social a:hover { color: var(--gold); }
.footer-social img { width: 17px; height: 17px; filter: invert(75%) sepia(31%) saturate(601%) hue-rotate(355deg) brightness(91%); }
.footer-social a:nth-child(2) img { filter: invert(67%) sepia(22%) saturate(816%) hue-rotate(66deg) brightness(92%); }
.legal-bar { max-width: 1180px; margin-top: 30px; }

@media (max-width: 1020px) {
  .site-shell {
    display: block;
  }

  section,
  footer { padding-block: 54px; }

  .hero { gap: 28px; }
  .home-routes { gap: 14px; }

  .side-nav {
    position: fixed;
    height: 100dvh;
    border-right: 0;
    border-bottom: 0;
  }

  .side-nav nav {
    grid-template-columns: 1fr;
  }

  .hero,
  .feature-band,
  .split-section,
  .calendar-band,
  .community,
  .demonology-hero,
  .demonology-reading {
    grid-template-columns: 1fr;
  }

  .home-routes,
  .library-page-grid,
  .store-grid,
  .calendar-page-grid,
  .library-shelf,
  .demonology-cards,
  .demonology-timeline > div { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .reference-band,
  .note-band { grid-template-columns: 1fr; }

  .hero {
    min-height: auto;
  }

  .product-grid,
  .tradition-grid,
  .calendar-cards,
  .daemon-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .daemon-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

  .home-signature { grid-template-columns: 1fr 1fr; }
  .home-signature .text-link { grid-column: 1 / -1; }
}

@media (max-width: 680px) {
  body[data-page] main { padding-top: 56px; }
  body[data-page].has-site-notice main { padding-top: 102px; }

  .site-notice { top: 56px; }

  .topbar {
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    min-height: 56px;
    padding: 8px 12px;
  }

  .header-nav { display: flex; gap: 2px; }
  .topbar-brand { font-size: 0.76rem; }
  .topbar-start { gap: 8px; }
  .topbar-brand img { width: 30px; height: 30px; }
  .header-nav a { min-width: 58px; padding: 8px 6px; font-size: 0.72rem; text-align: center; }
  .menu-toggle { min-height: 38px; padding: 8px 11px; font-size: 0.76rem; }
  .topbar .menu-toggle { width: 38px; height: 38px; }

  section,
  footer {
    padding: 30px 16px;
  }

  .hero { gap: 18px; }
  .hero-copy > p:not(.eyebrow) { padding-block: 14px; }
  .hero-actions { flex-wrap: wrap; }
  .contact-form,
  .contact-channel-grid,
  .attendants-list { gap: 8px; }
  .contact-form input,
  .contact-form textarea { padding: 11px 12px; }

  .side-nav {
    width: min(310px, calc(100vw - 24px));
    padding: 22px 20px 28px;
    gap: 30px;
  }

  .side-nav nav { gap: 3px; }
  .side-nav nav a { padding-block: 10px; font-size: 0.86rem; }

  .side-nav nav,
  .product-grid,
  .tradition-grid,
  .calendar-cards,
  .daemon-grid,
  .search-panel,
  .newsletter {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: clamp(2.2rem, 10.5vw, 3.25rem);
    line-height: 1;
  }

  h2 { font-size: clamp(1.7rem, 8vw, 2.45rem); line-height: 1.08; }
  .page-intro { padding-bottom: 26px; }
  .page-intro h1 { font-size: clamp(2.2rem, 10.5vw, 3.25rem); }
  .page-intro > p:not(.eyebrow),
  .hero-copy > p:not(.eyebrow) { font-size: 0.95rem; line-height: 1.65; }
  .eyebrow { margin-bottom: 10px; font-size: 0.66rem; }

  .hero-actions { gap: 9px; margin-top: 16px; }
  .hero-actions .button { min-height: 42px; padding: 11px 13px; font-size: 0.8rem; }

  .hero-art {
    min-height: 330px;
  }

  .home-hero { min-height: min(620px, calc(100svh - 56px)); background-position: 65% 24%; }
  .home-hero-seal { right: 16px; bottom: 16px; width: 62px; height: 62px; }
  .home-hero-note { right: 16px; bottom: 92px; max-width: 190px; padding: 11px 13px; }
  .home-hero-note strong { font-size: 0.82rem; }

  .home-routes a { min-height: 0; grid-template-rows: 118px 1fr; }
  .home-routes a > img { height: 118px; }
  .home-routes a > div { padding: 17px 18px 20px; }
  .home-routes h2,
  .library-page-grid article h2 { margin: 9px 0 7px; font-size: 1.25rem; }
  .home-routes p,
  .library-page-grid p { margin-bottom: 0; font-size: 0.9rem; line-height: 1.6; }

  .library-page-grid article,
  .product-card,
  .tradition-grid article,
  .calendar-page-grid article,
  .book-card,
  .legal-content article { min-height: 0; padding: 18px; }

  .demonology-hero { gap: 28px; }
  .demonology-hero figure,
  .demonology-hero figure > img:first-child { min-height: 330px; }
  .demonology-cards article > img { height: 150px; }
  .demonology-timeline > h2 { margin-bottom: 22px; }
  .demonology-reading { gap: 22px; }

  .community { gap: 24px; }
  .newsletter { margin-top: 18px; }

  .home-routes,
  .library-page-grid,
  .store-grid,
  .traditions-page-grid,
  .calendar-page-grid,
  .library-shelf,
  .demonology-cards,
  .demonology-timeline > div { grid-template-columns: 1fr; }
  .home-signature { grid-template-columns: 1fr; gap: 16px; }
  .home-signature .text-link { grid-column: auto; }

  .footer-compact { align-items: flex-start; flex-wrap: wrap; gap: 16px; }
  .footer-brand { width: 100%; margin-right: 0; }
  .footer-contact { margin-right: auto; }
  .footer-social { width: 100%; }
  .legal-bar { align-items: flex-start; flex-direction: column; margin-top: 28px; }

  .planet-table div { grid-template-columns: 1fr; gap: 6px; }

  .orbital-card {
    right: 10px;
    bottom: 20px;
  }

  .goetia-tools,
  .daemon-detail-head,
  .daemon-details { grid-template-columns: 1fr; }

  .contact-form { grid-template-columns: 1fr; }
  .contact-form .form-field-wide { grid-column: auto; }
  .contact-channels { padding-top: 18px; }
  .contact-channels-heading { margin-bottom: 20px; }
  .contact-channels-heading h2 { font-size: clamp(1.65rem, 7.5vw, 2.2rem); }
  .contact-channel-grid { grid-template-columns: 1fr; gap: 10px; }
  .contact-channel { padding: 13px; }
  .attendants-picker summary { padding: 13px; }
  .attendants-list a { padding: 14px 13px; }

  #daemon-count { margin-bottom: 0; }

  .daemon-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .daemon-grid .daemon-card { min-height: 225px; }
  .daemon-card > div { gap: 3px; padding: 14px; }
  .daemon-card .daemon-seal { top: 10px; right: 10px; width: 38px; height: 38px; }
  .daemon-grid span { font-size: 1.35rem; }
  .daemon-grid small { font-size: 0.7rem; line-height: 1.35; }

  .daemon-modal { width: calc(100vw - 16px); max-height: calc(100vh - 16px); }
  .daemon-modal-content { padding: 18px; }
  .daemon-detail-copy h3 { font-size: 1.8rem; }
  .daemon-description { margin: 20px 0; font-size: 0.9rem; }
  .daemon-details div { min-height: 0; padding: 11px; }
  .daemon-modal-nav { gap: 8px; }
  .daemon-modal-nav button { padding: 10px; }

  .daemon-detail-art { max-width: 240px; margin-inline: auto; }

  .welcome-screen { padding: 18px; }
  .welcome-entry { gap: 14px; }
  .welcome-entry img { width: min(210px, 52vw); height: min(210px, 52vw); }
  .welcome-entry > span { font-size: 0.9rem; }
}

/* Privacy and administration */
.cookie-banner {
  position: fixed;
  z-index: 120;
  right: 18px;
  bottom: 18px;
  left: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  max-width: 1080px;
  margin-inline: auto;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(20, 16, 13, 0.96);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}
.cookie-banner p { margin: 0; color: var(--muted); line-height: 1.55; font-size: 0.82rem; }
.cookie-banner .eyebrow { margin-bottom: 6px; color: var(--gold); font-size: 0.68rem; }
.cookie-banner a { color: var(--gold); }
.cookie-actions { display: flex; flex: 0 0 auto; gap: 8px; }
.cookie-actions button { min-height: 40px; padding: 9px 12px; font-size: 0.75rem; }

.site-notice {
  position: fixed;
  z-index: 39;
  top: 64px;
  right: 0;
  left: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  min-height: 46px;
  padding: 10px clamp(18px, 4vw, 40px);
  border: 0;
  background:
    radial-gradient(circle at 18% 50%, rgba(141, 34, 52, 0.2), transparent 42%),
    linear-gradient(90deg, #130b0e 0%, #24131a 48%, #140d11 100%);
  color: var(--text);
  font-size: 0.76rem;
  box-shadow: none;
  transition: transform 240ms ease, opacity 180ms ease;
}
.site-notice::after {
  content: "";
  position: absolute;
  top: 100%;
  right: 0;
  left: 0;
  height: 58px;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(19, 11, 14, 0.88) 0%, rgba(10, 7, 7, 0.42) 48%, transparent 100%);
}
.site-notice.is-hidden { opacity: 0; pointer-events: none; transform: translateY(-110%); }
.site-notice span {
  max-width: 980px;
  color: #f5dec1;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.35;
}
.site-notice button { min-width: 30px; min-height: 30px; padding: 0; border: 0; background: transparent; color: var(--gold); font-size: 1.15rem; line-height: 1; }

.admin-warning { display: grid; gap: 4px; max-width: 760px; margin-top: 24px; padding: 14px 16px; border-left: 2px solid var(--gold); background: rgba(216, 173, 97, 0.08); color: var(--muted); line-height: 1.55; }
.admin-warning strong { color: var(--gold); }
.admin-auth { max-width: 700px; padding-top: 0; }
.admin-auth h2 { margin: 0 0 18px; font-size: clamp(1.6rem, 3vw, 2.5rem); }
.admin-auth[hidden], .admin-dashboard[hidden] { display: none; }
.admin-forgot { margin-top: 14px; border: 0; background: transparent; color: var(--gold); }
.admin-reset-form { margin-top: 18px; }
.reset-page { max-width: 620px; }
.reset-form { max-width: 420px; margin-top: 28px; }
.admin-dashboard { display: grid; gap: 20px; padding-top: 0; }
.admin-toolbar { position: sticky; z-index: 12; top: 68px; display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 13px 16px; background: rgba(10, 8, 7, 0.94); backdrop-filter: blur(14px); }
.admin-toolbar nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.admin-toolbar a, .admin-toolbar button { padding: 8px 0; color: var(--muted); font-size: 0.75rem; }
.admin-toolbar a:hover, .admin-toolbar a.is-active { color: var(--text); }
.admin-toolbar a.is-active { box-shadow: inset 0 -1px var(--text); }
.admin-view[hidden] { display: none; }
.admin-overview { display: grid; gap: 24px; }
.admin-view-heading { max-width: 760px; }
.admin-view-heading h2 { font-size: clamp(1.8rem, 3vw, 2.8rem); }
.admin-view-heading > p:last-child { max-width: 620px; margin: 8px 0 0; color: var(--muted); line-height: 1.6; }
.admin-stats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; padding-top: 0; }
.admin-stats > div { display: grid; gap: 8px; padding: 18px; border: 1px solid var(--line); border-radius: 8px; background: rgba(255, 255, 255, 0.035); }
.admin-stats span, .admin-muted { color: var(--muted); font-size: 0.8rem; }
.admin-stats strong { color: var(--gold); font-size: 1.8rem; }
.admin-shortcuts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.admin-shortcuts a { display: grid; align-content: start; gap: 7px; min-height: 150px; padding: 18px; border: 1px solid var(--line); border-radius: 8px; background: rgba(255, 255, 255, 0.025); transition: border-color 160ms ease, background 160ms ease, transform 160ms ease; }
.admin-shortcuts a:hover { border-color: rgba(244, 234, 217, 0.5); background: rgba(255, 255, 255, 0.045); transform: translateY(-2px); }
.admin-shortcuts span, .admin-shortcuts small { color: var(--muted); font-size: 0.72rem; }
.admin-shortcuts strong { color: var(--text); font-family: "Libre Baskerville", Georgia, serif; font-size: 1.05rem; }
.admin-shortcuts small { margin-top: auto; line-height: 1.45; }
.admin-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 18px; }
.admin-panel { min-width: 0; padding: 22px; border: 1px solid var(--line); border-radius: 8px; background: rgba(255, 255, 255, 0.025); }
.admin-panel-wide { grid-column: 1 / -1; }
.admin-panel-heading { display: flex; justify-content: space-between; align-items: start; gap: 16px; margin-bottom: 20px; }
.admin-panel-heading h2 { font-size: clamp(1.4rem, 2.4vw, 2rem); }
.admin-subheading { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }
.admin-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.admin-form label { display: grid; gap: 7px; color: var(--muted); font-size: 0.76rem; font-weight: 700; }
.admin-form .form-field-wide { grid-column: 1 / -1; }
.admin-form button { width: fit-content; }
.admin-form input[type="file"] { padding: 9px; font-size: 0.76rem; }
.admin-form label > span { font-weight: 400; }
.admin-upload-field small { color: #82786f; font-weight: 400; }
.admin-product-options { display: flex; flex-wrap: wrap; gap: 10px 22px; padding: 13px 0; }
.admin-product-options label, .admin-inline-check { display: flex !important; grid-column: auto; flex-direction: row; align-items: center; gap: 8px !important; }
.admin-product-options input, .admin-inline-check input { width: 17px; height: 17px; min-height: 0; margin: 0; padding: 0; accent-color: var(--gold); }
.admin-form-actions { display: flex; align-items: center; gap: 16px; }
.admin-form-actions .form-status { margin: 0; }
.form-status.is-error { color: #d9868e; }
.admin-menu-form { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.admin-menu-form label { min-width: 0; display: flex; align-items: center; justify-content: flex-start; gap: 8px; padding: 10px 11px; border: 1px solid var(--line); border-radius: 6px; color: var(--muted); font-size: 0.8rem; line-height: 1.25; }
.admin-menu-form input[type="checkbox"] { flex: 0 0 16px; width: 16px; height: 16px; min-height: 0; margin: 0; padding: 0; accent-color: var(--gold); }
.admin-list { display: grid; gap: 9px; margin-top: 22px; }
.admin-list-item { display: grid; grid-template-columns: 58px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px; border: 1px solid var(--line); border-radius: 7px; background: rgba(255, 255, 255, 0.025); }
.admin-list-item img { width: 58px; height: 58px; object-fit: cover; border-radius: 5px; }
.admin-list-item strong, .admin-list-item span { display: block; }
.admin-list-item strong { color: var(--text); font-size: 0.9rem; }
.admin-list-item span, .admin-list-item p, .admin-list-item small { color: var(--muted); font-size: 0.76rem; }
.admin-list-item p { margin: 5px 0 0; line-height: 1.45; }
.admin-item-actions { display: flex; flex-wrap: wrap; justify-content: end; gap: 6px; }
.admin-item-actions button { padding: 7px 9px; border: 1px solid var(--line); border-radius: 5px; background: transparent; color: var(--gold); font-size: 0.72rem; }
.admin-product-item { grid-template-columns: 72px minmax(0, 1fr) auto auto; }
.admin-product-item img { width: 72px; height: 72px; }
.admin-product-item.is-inactive { opacity: 0.56; }
.admin-product-price { display: grid; justify-items: end; gap: 4px; }
.admin-product-price > span { max-width: 150px; color: var(--gold); text-align: right; }
.admin-order { grid-template-columns: minmax(0, 1fr) auto auto; }
.admin-order select { max-width: 150px; padding: 9px; font-size: 0.75rem; }
.admin-order-total { display: grid; justify-items: end; gap: 4px; }
.admin-filter-row { display: grid; grid-template-columns: minmax(220px, 1fr) minmax(170px, 0.35fr); gap: 10px; }
.admin-filter-row input, .admin-filter-row select { min-height: 42px; }
.admin-user-item { grid-template-columns: 42px minmax(0, 1fr) auto; }
.admin-user-avatar { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; background: rgba(216, 173, 97, 0.1); color: var(--gold); font-family: Cinzel, Georgia, serif; }
.admin-role { color: var(--gold) !important; }
.admin-log-item { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.admin-log-item span { color: var(--muted); font-size: 0.74rem; }
.admin-log-link { display: inline-flex; margin-top: 18px; }
.log-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-bottom: 18px; }
.log-table { display: grid; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.log-row { display: grid; grid-template-columns: minmax(140px, 0.7fr) minmax(180px, 1fr); gap: 18px; padding: 13px 16px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 0.82rem; }
.log-row:last-child { border-bottom: 0; }
.log-row strong { color: var(--text); }

.client-intro { padding-bottom: 34px; }
.client-auth { max-width: 720px; padding-top: 0; }
.client-auth[hidden], .client-dashboard[hidden] { display: none; }
.client-auth-tabs { display: inline-grid; grid-template-columns: 1fr 1fr; gap: 4px; margin-bottom: 20px; padding: 4px; border: 1px solid var(--line); border-radius: 8px; background: rgba(255, 255, 255, 0.025); }
.client-auth-tabs button { min-height: 38px; padding: 8px 14px; border: 0; border-radius: 5px; background: transparent; color: var(--muted); font-size: 0.78rem; }
.client-auth-tabs button.is-active { background: var(--gold); color: var(--ink); }
.client-auth-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.client-auth-form label { display: grid; gap: 7px; color: var(--muted); font-size: 0.76rem; font-weight: 700; }
.client-auth-form [hidden], .client-admin-access[hidden] { display: none; }
.client-auth-form button { width: fit-content; }
.client-welcome { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 18px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.client-welcome h2 { font-size: clamp(1.7rem, 3vw, 2.8rem); }
.client-welcome > div > span { display: block; margin-top: 7px; color: var(--muted); font-size: 0.82rem; }
.client-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.client-stats > div { display: grid; gap: 6px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 8px; background: rgba(255, 255, 255, 0.03); }
.client-stats span { color: var(--muted); font-size: 0.75rem; }
.client-stats strong { color: var(--gold); font-size: 1.55rem; }
.client-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }
.client-panel { min-width: 0; padding: 20px; border: 1px solid var(--line); border-radius: 8px; background: rgba(255, 255, 255, 0.025); }
.client-orders-panel { grid-column: 1 / -1; }
.client-panel-heading { margin-bottom: 16px; }
.client-panel-heading h2 { font-size: clamp(1.35rem, 2.2vw, 1.9rem); }
.client-order-list { display: grid; gap: 9px; }
.client-order { display: grid; grid-template-columns: minmax(130px, 0.7fr) minmax(180px, 1.3fr) auto; gap: 16px; align-items: center; padding: 14px; border: 1px solid var(--line); border-radius: 7px; }
.client-order > div:first-child strong, .client-order > div:first-child span { display: block; }
.client-order > div:first-child span, .client-order-items span { margin-top: 4px; color: var(--muted); font-size: 0.75rem; }
.client-order-items { display: flex; flex-wrap: wrap; gap: 5px 12px; }
.client-order-meta { display: grid; justify-items: end; gap: 7px; }
.order-status { padding: 5px 8px; border: 1px solid var(--line); border-radius: 999px; color: var(--gold); font-size: 0.68rem; }
.order-status[data-status="Concluído"] { border-color: rgba(120, 179, 111, 0.45); color: #91c987; }
.order-status[data-status="Cancelado"] { border-color: rgba(139, 38, 53, 0.55); color: #d87582; }
.client-cart-item { display: flex; gap: 8px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.client-cart-item span { color: var(--gold); }
.client-panel-link { display: inline-flex; margin-top: 18px; }
.client-admin-access { grid-column: 1 / -1; border-color: rgba(216, 173, 97, 0.42); background: rgba(216, 173, 97, 0.06); }
.client-admin-access p { max-width: 680px; margin: 0; color: var(--muted); line-height: 1.6; }
.client-danger-panel { border-color: rgba(139, 38, 53, 0.45); }
.client-danger-panel > p { margin: 0; color: var(--muted); font-size: 0.84rem; line-height: 1.6; }
.client-delete-account { margin-top: 18px; padding: 11px 14px; border: 1px solid rgba(216, 117, 130, 0.55); border-radius: 5px; background: transparent; color: #df929c; font-weight: 700; }
.client-delete-account:hover { background: rgba(139, 38, 53, 0.16); color: #f0b0b8; }
.account-deletion-page { min-height: min(680px, calc(100svh - 72px)); }
.account-deletion-page .hero-actions { margin-top: 28px; }
.account-deletion-note { margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 0.82rem !important; }
.client-access-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.client-access-list a { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 6px; color: var(--text); }
.client-access-list small { color: var(--gold); }
.client-empty { margin: 0; color: var(--muted); font-size: 0.82rem; }
.auth-callback-page { min-height: min(560px, calc(100svh - 72px)); display: flex; flex-direction: column; justify-content: center; }

@media (max-width: 760px) {
  .cookie-banner { right: 10px; bottom: 10px; left: 10px; flex-direction: column; align-items: stretch; gap: 14px; padding: 16px; }
  .cookie-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .admin-page, .admin-intro { min-width: 0; overflow-x: hidden; }
  .admin-page > section, .admin-intro > div, .admin-intro > div > p { max-width: 100%; }
  .admin-intro h1 { max-width: 100%; font-size: clamp(2.55rem, 10.8vw, 3rem); line-height: 1.03; }
  .admin-intro > div > p { overflow-wrap: anywhere; }
  .admin-auth input, .admin-auth label { min-width: 0; width: 100%; }
  .admin-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-shortcuts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-shortcuts a { min-height: 135px; padding: 14px; }
  .admin-columns, .admin-form { grid-template-columns: 1fr; }
  .admin-panel-wide { grid-column: auto; }
  .admin-form .form-field-wide { grid-column: auto; }
  .admin-panel { padding: 17px; }
  .admin-list-item { grid-template-columns: 48px minmax(0, 1fr); }
  .admin-list-item img { width: 48px; height: 48px; }
  .admin-item-actions, .admin-order select { grid-column: 2; justify-content: start; }
  .admin-product-item, .admin-order { grid-template-columns: 48px minmax(0, 1fr); }
  .admin-product-item img { width: 48px; height: 48px; }
  .admin-product-price, .admin-order-total { grid-column: 2; justify-items: start; }
  .admin-filter-row { grid-template-columns: 1fr; }
  .admin-toolbar { top: 56px; overflow-x: auto; }
  .admin-toolbar nav { flex-wrap: nowrap; }
  .admin-toolbar a { white-space: nowrap; }
  .admin-menu-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .log-toolbar { align-items: stretch; flex-direction: column; }
  .log-row { grid-template-columns: 1fr; gap: 4px; }
  .client-auth-form, .client-stats, .client-grid { grid-template-columns: 1fr; }
  .client-orders-panel { grid-column: auto; }
  .client-welcome { align-items: flex-start; flex-direction: column; }
  .client-order { grid-template-columns: 1fr; gap: 10px; }
  .client-order-meta { justify-items: start; }
  .client-auth-form input { font-size: 16px; }
}

@media (max-width: 420px) {
  .admin-stats, .admin-shortcuts { grid-template-columns: 1fr; }
  .admin-menu-form { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .topbar-brand span { display: none; }
  .header-nav a { min-width: 54px; }
  .site-notice {
    top: 56px;
    min-height: 46px;
    padding: 9px 10px 9px 14px;
  }
  .site-notice span { font-size: 0.74rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: 1ms !important; }
}

/* Storefront */
body.cart-open { overflow: hidden; }

.store-hero {
  position: relative;
  isolation: isolate;
  min-height: min(560px, calc(100svh - 72px));
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  padding: clamp(42px, 6vw, 72px);
  background:
    linear-gradient(90deg, rgba(7, 6, 4, 0.95) 0%, rgba(7, 6, 4, 0.66) 50%, rgba(7, 6, 4, 0.18) 100%),
    linear-gradient(0deg, rgba(7, 6, 4, 0.84), transparent 62%),
    url("assets/img/loja/loja-hero.png") center / cover;
}

.store-hero-copy { position: relative; z-index: 1; max-width: 650px; }
.store-hero-copy h1 {
  max-width: 640px;
  font-size: clamp(2.55rem, 5vw, 4.7rem);
  line-height: 1.04;
}
.store-hero-copy > p:not(.eyebrow) { max-width: 560px; color: var(--muted); font-size: 1rem; line-height: 1.65; }
.store-hero-copy .button { display: inline-flex; margin-top: 20px; }

.store-hero-mark {
  position: absolute;
  z-index: 1;
  top: 36%;
  right: clamp(24px, 7vw, 110px);
  display: grid;
  gap: 6px;
  padding-left: 16px;
  border-left: 1px solid var(--gold);
  color: var(--gold);
}

.store-hero-mark span { font-size: 0.7rem; letter-spacing: 0.15em; }
.store-hero-mark strong { font-size: 1.1rem; line-height: 1.15; }

.store-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  padding-block: 36px 22px;
}

.store-result-count { margin: 0; color: var(--muted); }

.cart-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--gold);
  border-radius: 7px;
  background: transparent;
  color: var(--gold);
}

.cart-count {
  min-width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--gold);
  color: var(--ink);
  font-size: 0.75rem;
}

.store-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.product-category-card {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
  width: 100%;
  min-height: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(216, 173, 97, 0.32);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.025);
  color: var(--text);
  text-align: left;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}
.product-category-card:hover {
  border-color: var(--gold);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.3);
  transform: translateY(-4px);
}
.oil-category-card { align-self: stretch; }
.oil-category-visual {
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #111;
}
.oil-category-visual img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  transition: transform 400ms ease;
}
.product-category-card:hover .oil-category-visual img { transform: scale(1.04); }
.product-category-copy { display: flex; flex: 1; flex-direction: column; gap: 9px; padding: 22px; }
.product-category-copy small {
  color: var(--gold);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.product-category-copy strong {
  color: var(--text);
  font-family: Cinzel, Georgia, serif;
  font-size: clamp(1.45rem, 2vw, 1.9rem);
  letter-spacing: 0.04em;
}
.product-category-copy > span { color: var(--muted); font-size: 0.86rem; }
.product-category-copy b { margin-top: auto; padding-top: 14px; color: var(--gold); font-size: 0.82rem; }
.product-collection-dialog {
  width: min(1240px, calc(100vw - 40px));
  max-width: none;
  max-height: calc(100dvh - 40px);
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(216, 173, 97, 0.42);
  border-radius: 12px;
  background: #100d0c;
  color: var(--text);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.7);
}
.product-collection-dialog::backdrop {
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(5px);
}
.product-collection-dialog-shell {
  position: relative;
  max-height: calc(100dvh - 42px);
  padding: clamp(22px, 3vw, 38px);
  overflow: auto;
  background: radial-gradient(circle at top left, rgba(94, 35, 42, 0.24), transparent 34%);
}
.product-collection-close {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 2;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--text);
  font-size: 1.35rem;
}
.product-collection-header {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 28px;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}
.product-collection-header h2 {
  margin-top: 8px;
  font-family: Cinzel, Georgia, serif;
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  letter-spacing: 0.05em;
}
.product-collection-header > p {
  max-width: 500px;
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}
.oil-product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.store-product { min-height: 0; padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.product-image-wrap { position: relative; overflow: hidden; aspect-ratio: 1 / 1; background: #111; }
.product-image-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 400ms ease; }
.store-product:hover .product-image-wrap img { transform: scale(1.035); }
.sigil-product-image {
  background: radial-gradient(circle at center, #3d171f 0%, #140c0f 58%, #080706 100%);
}
.sigil-product-image img {
  padding: clamp(34px, 5vw, 58px);
  object-fit: contain;
  filter: invert(1) sepia(0.28) saturate(0.75);
  mix-blend-mode: screen;
  opacity: 0.82;
}
.store-product:hover .sigil-product-image img { transform: scale(1.025); }

.product-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 6px 8px;
  border: 1px solid rgba(244, 234, 217, 0.2);
  border-radius: 999px;
  background: rgba(7, 6, 4, 0.76);
  color: var(--text);
  font-size: 0.68rem;
}

.product-info { display: flex; flex: 1; flex-direction: column; padding: 22px; }
.product-info > span { color: var(--gold); font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; }
.store-grid .product-info h2 {
  margin: 10px 0 10px;
  font-family: Cinzel, Georgia, serif;
  font-size: clamp(1.18rem, 1.55vw, 1.5rem);
  font-weight: 600;
  line-height: 1.24;
  overflow-wrap: normal;
}
.product-info p { margin: 0; color: var(--muted); font-size: 0.93rem; line-height: 1.6; }
.product-info p + p { margin-top: 10px; }
.product-stock { display: block; margin-top: 14px; color: var(--gold); font-size: 0.74rem; font-weight: 700; }
.out-of-stock-text { color: var(--muted); }
.is-out-of-stock .product-buy button:disabled { cursor: not-allowed; opacity: 0.48; }
.product-buy { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: auto; padding-top: 22px; }
.product-price { color: var(--text); font-size: 1.05rem; }
.product-price:has(del), .is-promotional-price { display: grid; gap: 2px; }
.product-price del { color: var(--muted); font-size: 0.7rem; font-weight: 400; }
.product-price > span { color: #e7c27e; }
.store-product.is-promoted { border-color: rgba(216, 173, 97, 0.62); }
.product-buy button { min-height: 40px; padding: 9px 12px; font-size: 0.78rem; }

.store-note { display: grid; grid-template-columns: 0.7fr 1.3fr; gap: 30px; max-width: 900px; padding-top: 38px; }
.store-note > p:last-child { margin: 0; color: var(--muted); line-height: 1.7; }

.cart-scrim { position: fixed; z-index: 80; inset: 0; background: rgba(0, 0, 0, 0.62); backdrop-filter: blur(4px); }
.cart-scrim[hidden] { display: none; }
.cart-drawer {
  position: fixed;
  z-index: 90;
  top: 0;
  right: 0;
  width: min(430px, 100vw);
  height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 26px;
  border-left: 1px solid var(--line);
  background: #11100d;
  box-shadow: var(--shadow);
  transform: translateX(105%);
  transition: transform 260ms ease;
}

.cart-drawer.is-open { transform: translateX(0); }
.cart-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; }
.cart-header h2 { font-size: 2rem; }
.cart-close { width: 38px; height: 38px; padding: 0; border: 0; border-radius: 0; background: transparent; color: var(--text); font-size: 1.35rem; }
.cart-items { flex: 1; overflow: auto; padding-block: 20px; }
.cart-item { display: grid; grid-template-columns: 70px 1fr; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.cart-item img { width: 70px; height: 70px; object-fit: cover; border-radius: 6px; }
.cart-item-info > strong { display: block; font-size: 0.9rem; }
.cart-item-info > span { display: block; margin-top: 4px; color: var(--muted); font-size: 0.8rem; }
.cart-quantity { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 10px; }
.cart-quantity button { min-width: 28px; min-height: 28px; padding: 2px 7px; border-color: var(--line); background: transparent; color: var(--text); font-size: 0.82rem; }
.cart-quantity button:disabled { cursor: not-allowed; opacity: 0.38; }
.cart-quantity span { min-width: 16px; text-align: center; }
.cart-quantity .cart-remove { padding: 2px 4px; border: 0; color: var(--gold); font-size: 0.72rem; }
.cart-empty { padding: 28px 0; color: var(--muted); }
.cart-empty strong { display: block; color: var(--text); }
.cart-empty p { margin: 8px 0 0; }
.cart-checkout { max-height: 64dvh; overflow-y: auto; padding: 18px 4px 0 0; border-top: 1px solid var(--line); }
.cart-checkout label { display: grid; gap: 7px; margin-bottom: 12px; color: var(--muted); font-size: 0.75rem; font-weight: 700; }
.cart-checkout label span { font-weight: 400; }
.cart-checkout input, .cart-checkout textarea { padding: 11px 12px; font-size: 0.88rem; }
.shipping-calculator[hidden],
#shipping-total-row[hidden] { display: none; }
.shipping-calculator { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.shipping-calculate-button { width: 100%; min-height: 42px; border: 1px solid rgba(216, 173, 97, 0.34); background: transparent; color: var(--text); }
.shipping-calculate-button:disabled { cursor: wait; opacity: 0.55; }
.shipping-options { display: grid; gap: 8px; margin-top: 12px; }
.shipping-option {
  grid-template-columns: auto minmax(0, 1fr) auto !important;
  align-items: center;
  gap: 10px !important;
  margin: 0 !important;
  padding: 11px;
  border: 1px solid rgba(216, 173, 97, 0.18);
  border-radius: 6px;
  cursor: pointer;
}
.shipping-option:has(input:checked) { border-color: rgba(216, 173, 97, 0.68); background: rgba(216, 173, 97, 0.07); }
.shipping-option input { width: 16px; height: 16px; margin: 0; padding: 0; accent-color: var(--gold); }
.shipping-option span { display: grid; gap: 3px; min-width: 0; }
.shipping-option strong { overflow: hidden; color: var(--text); font-size: 0.72rem; text-overflow: ellipsis; white-space: nowrap; }
.shipping-option small { color: var(--muted); font-size: 0.64rem; font-weight: 400; }
.shipping-option b { color: var(--gold); font-size: 0.72rem; white-space: nowrap; }
.cart-summary { display: grid; gap: 8px; margin: 18px 0; padding-top: 14px; border-top: 1px solid var(--line); }
.cart-summary > div { display: flex; justify-content: space-between; gap: 16px; color: var(--muted); font-size: 0.78rem; }
.cart-summary strong { color: var(--text); }
.cart-total { display: flex; justify-content: space-between; margin: 4px 0 0; padding-top: 10px; border-top: 1px solid rgba(216, 173, 97, 0.13); color: var(--muted); }
.cart-total strong { color: var(--text); font-size: 1.1rem; }
.checkout-button { width: 100%; }
.checkout-whatsapp-fallback { display: block; margin-top: 13px; color: var(--muted); font-size: 0.72rem; text-align: center; text-decoration: underline; text-underline-offset: 4px; }
.checkout-whatsapp-fallback[hidden] { display: none; }
.cart-status { min-height: 20px; margin: 10px 0 0; color: var(--gold); font-size: 0.76rem; line-height: 1.4; }

.payment-return-page { min-height: 100svh; display: grid; place-items: center; padding: 100px 20px 48px; }
.payment-return-card { width: min(620px, 100%); padding: clamp(28px, 6vw, 58px); text-align: center; }
.payment-return-card h1 { margin-top: 12px; font-size: clamp(2rem, 6vw, 3.6rem); }
.payment-return-card > p:not(.eyebrow) { max-width: 520px; margin: 20px auto 0; color: var(--muted); line-height: 1.7; }
.payment-return-actions { display: flex; justify-content: center; gap: 22px; margin-top: 30px; }
.payment-return-actions a { color: var(--text); text-decoration: underline; text-underline-offset: 5px; }
#payment-app-return[hidden] { display: none; }

/* Áreas seguras do aplicativo nativo (câmera, barra de status e indicador inferior). */
.native-app body { min-height: 100dvh; padding-bottom: env(safe-area-inset-bottom); }
.native-app .topbar { padding-top: calc(8px + env(safe-area-inset-top)); }
.native-app body[data-page] main { padding-top: calc(72px + env(safe-area-inset-top)); }
.native-app body[data-page].has-site-notice main { padding-top: calc(110px + env(safe-area-inset-top)); }
.native-app body[data-page].has-site-notice.notice-is-hidden main { padding-top: calc(72px + env(safe-area-inset-top)); }
.native-app .site-notice { top: calc(64px + env(safe-area-inset-top)); }
.native-app .side-nav { padding-top: calc(22px + env(safe-area-inset-top)); padding-bottom: calc(28px + env(safe-area-inset-bottom)); }
.native-app .cart-drawer { padding-bottom: calc(22px + env(safe-area-inset-bottom)); }

@media (max-width: 1020px) {
  .store-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; }
  .store-grid .product-category-copy strong,
  .store-grid .product-info h2 { font-size: clamp(1.05rem, 2.8vw, 1.35rem); }
  .store-grid .product-category-copy > span,
  .store-grid > .store-product .product-info p {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
  }
  .store-grid > .store-product .product-info p + p { display: none; }
  .oil-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .store-hero-mark { right: 30px; }
  .store-note { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .store-hero { min-height: 500px; padding: 36px 16px; background-position: 65% center; }
  .store-hero-copy h1 { font-size: clamp(2.25rem, 13vw, 3.5rem); }
  .store-hero-mark { top: 22%; right: 16px; }
  .store-toolbar { flex-direction: column; align-items: flex-start; gap: 18px; padding-block: 30px 16px; }
  .cart-button { width: 100%; justify-content: space-between; }
  .store-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; align-items: stretch; }
  .oil-category-visual,
  .product-image-wrap { aspect-ratio: 1 / 1; }
  .product-category-copy,
  .product-info { padding: 12px; }
  .product-category-copy { gap: 6px; }
  .product-category-copy small,
  .product-info > span { font-size: 0.56rem; letter-spacing: 0.07em; }
  .product-category-copy strong,
  .store-grid .product-info h2 {
    margin: 5px 0 6px;
    font-size: clamp(0.86rem, 4.1vw, 1.02rem);
    line-height: 1.22;
  }
  .product-category-copy > span,
  .product-info p {
    display: -webkit-box;
    overflow: hidden;
    font-size: 0.72rem;
    line-height: 1.4;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
  }
  .product-info p + p { display: none; }
  .product-category-copy b { margin-top: 5px; font-size: 0.7rem; }
  .product-stock { margin-top: 8px; font-size: 0.64rem; }
  .product-buy { flex-direction: column; align-items: stretch; gap: 7px; padding-top: 12px; }
  .product-price { font-size: 0.88rem; }
  .product-buy button { width: 100%; min-width: 0; min-height: 40px; padding: 8px 7px; font-size: 0.7rem; }
  .product-collection-dialog { width: calc(100vw - 16px); max-height: calc(100dvh - 16px); }
  .product-collection-dialog-shell { max-height: calc(100dvh - 18px); padding: 20px 14px; }
  .product-collection-close { position: sticky; top: 2px; right: 2px; float: right; width: 36px; height: 36px; margin: -4px -2px -38px 0; }
  .product-collection-header { align-items: flex-start; flex-direction: column; gap: 10px; }
  .oil-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .oil-product-grid .product-info { padding: 12px; }
  .oil-product-grid .product-info h2 { font-size: 0.9rem; }
  .oil-product-grid .product-info p {
    display: -webkit-box;
    overflow: hidden;
    font-size: 0.72rem;
    line-height: 1.4;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }
  .store-note { padding-top: 28px; }
  .cart-drawer { padding: 20px 16px; }
  .cart-checkout input,
  .cart-checkout textarea { font-size: 16px; }
  .cart-checkout { max-height: 68dvh; }
  .shipping-option strong { font-size: 0.68rem; }
}

/* Eden Demonolatry */
.eden-site {
  --ink: #080706;
  --panel: #15110f;
  --panel-2: #201715;
  --line: rgba(213, 174, 112, 0.24);
  --gold: #d6ad67;
  --amber: #a65b3d;
  --blood: #8d2234;
  --moss: #526851;
  --text: #fff3e4;
  --muted: #c6b7a7;
  background:
    radial-gradient(circle at 16% 18%, rgba(141, 34, 52, 0.26), transparent 32%),
    linear-gradient(135deg, #080706 0%, #14100e 48%, #090807 100%);
}

.eden-welcome-page {
  background: #0a0707;
}

.eden-entry-screen {
  min-height: 100svh;
}

.eden-entry img {
  width: min(220px, 52vw);
  height: min(220px, 52vw);
  object-fit: contain;
  opacity: 0.96;
}

.eden-entry > span {
  color: var(--text);
  font-family: Cinzel, Georgia, serif;
  font-weight: 600;
  letter-spacing: 0.11em;
}

.eden-entry small {
  max-width: 300px;
  color: var(--gold);
  line-height: 1.45;
}

.eden-hero {
  position: relative;
  isolation: isolate;
  min-height: min(620px, calc(100svh - 72px));
  grid-template-columns: minmax(0, 1fr);
  place-items: center;
  overflow: hidden;
  padding: clamp(48px, 8vh, 78px) clamp(28px, 5vw, 76px);
  text-align: center;
  background:
    linear-gradient(180deg, #070604 0%, rgba(7, 6, 4, 0.72) 7%, transparent 22%),
    radial-gradient(circle at 50% 52%, rgba(65, 17, 24, 0.68), transparent 50%),
    linear-gradient(90deg, #090706 0%, #16090d 38%, #180a0f 62%, #090706 100%),
    #0a0707;
}

.eden-hero::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: 0;
  bottom: 0;
  left: 0;
  width: 54%;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(7, 6, 4, 0.94) 0%, rgba(7, 6, 4, 0.32) 17%, transparent 34%),
    linear-gradient(90deg, rgba(7, 6, 4, 0.16), rgba(12, 7, 7, 0.22) 58%, rgba(12, 7, 7, 0.72) 100%),
    url("assets/img/eden/eden-hero-lilith-left.jpeg") center 25% / cover no-repeat;
  opacity: 0.64;
  -webkit-mask-image: linear-gradient(90deg, #000 0%, #000 52%, rgba(0, 0, 0, 0.72) 70%, transparent 100%);
  mask-image: linear-gradient(90deg, #000 0%, #000 52%, rgba(0, 0, 0, 0.72) 70%, transparent 100%);
}

.eden-hero::after {
  content: "";
  position: absolute;
  z-index: 0;
  top: 0;
  right: 0;
  bottom: 0;
  width: 54%;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(7, 6, 4, 0.94) 0%, rgba(7, 6, 4, 0.32) 17%, transparent 34%),
    linear-gradient(270deg, rgba(7, 6, 4, 0.08), rgba(12, 7, 7, 0.16) 58%, rgba(12, 7, 7, 0.66) 100%),
    url("assets/img/eden/eden-hero-lilith.jpeg") center 36% / cover no-repeat;
  opacity: 0.76;
  -webkit-mask-image: linear-gradient(270deg, #000 0%, #000 52%, rgba(0, 0, 0, 0.72) 70%, transparent 100%);
  mask-image: linear-gradient(270deg, #000 0%, #000 52%, rgba(0, 0, 0, 0.72) 70%, transparent 100%);
}

.eden-hero .hero-copy {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  max-width: 780px;
  width: 100%;
}

.eden-hero h1 {
  max-width: 760px;
  color: #efe5da;
  font-family: Cinzel, Georgia, serif;
  font-size: clamp(2rem, 5vw, 3.9rem);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.78), 0 0 26px rgba(40, 9, 14, 0.38);
  text-transform: uppercase;
}

.eden-hero .hero-copy > p:not(.eyebrow):not(.eden-slogan) {
  max-width: 660px;
  margin-top: 18px;
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  line-height: 1.65;
  text-transform: uppercase;
}

.eden-hero .eden-slogan {
  margin: 12px 0 0;
  color: #efe5da;
  font-family: Cinzel, Georgia, serif;
  font-size: clamp(1rem, 2vw, 1.35rem);
  font-weight: 500;
  letter-spacing: 0.12em;
  line-height: 1.35;
  text-transform: uppercase;
}

.eden-main-logo {
  width: min(220px, 50vw);
  height: auto;
  margin-bottom: 18px;
  object-fit: contain;
}

.eden-hero .hero-actions {
  justify-content: center;
  margin-top: 10px;
}

.eden-hero .hero-actions .button {
  flex: 0 0 auto;
  min-height: auto;
  padding: 8px 10px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.eden-hero .hero-actions .button.primary { background: transparent; color: #d8c9bb; }
.eden-hero .hero-actions .button.primary:hover { color: var(--gold); }
.eden-hero .hero-actions .button.secondary { color: #d8c9bb; }
.eden-hero .hero-actions .button.secondary:hover { color: var(--gold); }

.hero .button,
.eden-hero .button,
.store-hero .button,
.classes-hero .button {
  border: 0;
  box-shadow: none;
}

.eden-routes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.eden-routes a {
  display: grid;
  grid-template-rows: 170px 1fr;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
  transition: transform 180ms ease, border-color 180ms ease;
}

.eden-routes a:hover {
  border-color: var(--gold);
  transform: translateY(-4px);
}

.eden-routes img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.78) contrast(1.08);
}

.eden-routes .eden-route-visual {
  position: relative;
  min-height: 0;
  padding: 0;
  overflow: hidden;
}

.eden-routes .eden-route-visual::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 72%;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 0%, rgba(7, 6, 4, 0.9) 100%);
}

.eden-routes .eden-route-copy {
  padding: 20px 22px 24px;
}

.eden-routes span {
  color: var(--gold);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.eden-routes h2 {
  position: absolute;
  right: 20px;
  bottom: 16px;
  left: 20px;
  z-index: 1;
  margin: 0;
  color: var(--text);
  font-size: clamp(1.2rem, 1.6vw, 1.55rem);
  line-height: 1.18;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.86);
}

.eden-routes p,
.eden-intro > p {
  color: var(--muted);
  line-height: 1.7;
}

.classes-hero {
  display: grid;
  grid-template-columns: minmax(280px, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(24px, 5vw, 64px);
  align-items: center;
  padding: clamp(34px, 6vw, 76px) clamp(20px, 5vw, 72px);
  border-bottom: 1px solid var(--line);
  background: radial-gradient(circle at 50% 0%, rgba(88, 17, 24, 0.24), rgba(7, 6, 4, 0.94) 58%);
}

.classes-hero img {
  width: min(100%, 520px);
  justify-self: center;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border: 1px solid rgba(216, 173, 97, 0.24);
  border-radius: 8px;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.45);
}

.classes-hero-copy {
  max-width: 660px;
}

.classes-hero-copy h1 {
  margin: 14px 0 18px;
  font-size: clamp(2.6rem, 6vw, 5.7rem);
  line-height: 0.95;
}

.classes-hero-copy > p:not(.eyebrow) {
  color: var(--muted);
  font-size: clamp(1rem, 1.35vw, 1.18rem);
  line-height: 1.75;
}

.classes-hero-copy .button {
  margin-top: 24px;
}

.classes-flow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding: clamp(26px, 5vw, 64px) clamp(20px, 5vw, 72px);
}

.classes-flow article {
  min-width: 0;
  padding: clamp(20px, 3vw, 30px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.classes-flow span {
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.classes-flow h2 {
  margin: 12px 0 10px;
  font-size: clamp(1.25rem, 1.8vw, 1.65rem);
}

.classes-flow p {
  color: var(--muted);
  line-height: 1.7;
}

.about-single {
  min-height: calc(100svh - 72px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 360px);
  gap: clamp(42px, 8vw, 120px);
  align-items: center;
  background:
    radial-gradient(circle at 24% 44%, rgba(67, 19, 25, 0.34), transparent 42%),
    #0c0909;
}

.about-single-copy { max-width: 780px; }
.about-single h1 { margin-bottom: 28px; font-size: clamp(3rem, 6.5vw, 6.2rem); }
.about-single-copy > p:not(.eyebrow):not(.about-signature) {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.75;
}
.about-single-copy > p + p { margin-top: 16px; }
.about-signature {
  color: var(--gold);
  font-family: Cinzel, Georgia, serif;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.about-profile-links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.about-profile-links .button { display: inline-flex; align-items: center; justify-content: center; }
.about-single-mark {
  width: 100%;
  max-height: 380px;
  object-fit: contain;
  filter: drop-shadow(0 24px 50px rgba(0, 0, 0, 0.55));
}

.eden-intro {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(24px, 5vw, 54px);
  align-items: center;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}

.eden-intro h2 {
  max-width: 520px;
  color: var(--text);
  font-family: Cinzel, Georgia, serif;
  font-size: clamp(1.5rem, 2.7vw, 2.65rem);
  font-weight: 600;
  line-height: 1.16;
}

.eden-intro > p {
  max-width: 620px;
  margin: 0;
  font-size: 1rem;
}

.eden-store-hero {
  background:
    linear-gradient(90deg, rgba(8, 7, 6, 0.94) 0%, rgba(8, 7, 6, 0.68) 50%, rgba(8, 7, 6, 0.16) 100%),
    linear-gradient(0deg, rgba(8, 7, 6, 0.84), transparent 62%),
    url("assets/img/eden/eden-hero-altar.png") center / cover;
}

@media (max-width: 1020px) {
  .eden-routes {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .classes-hero {
    grid-template-columns: 1fr;
  }

  .classes-hero img {
    max-height: 520px;
  }

  .classes-flow {
    grid-template-columns: 1fr;
  }

  .eden-intro {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .eden-hero {
    min-height: 540px;
    padding-inline: 18px;
  }

  .eden-hero h1 {
    font-size: clamp(1.9rem, 10vw, 3rem);
    letter-spacing: 0.08em;
  }

  .eden-hero .hero-copy > p:not(.eyebrow) {
    font-size: 0.75rem;
    letter-spacing: 0.08em;
  }

  .eden-main-logo {
    width: min(180px, 54vw);
  }

  .eden-routes {
    grid-template-columns: 1fr;
  }

  .eden-routes a {
    grid-template-rows: 150px 1fr;
  }
}

/* Responsive polish */
img { max-width: 100%; }

.button,
.product-buy button,
.checkout-button,
.contact-form button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1.2;
}

.product-info h2,
.eden-routes h2,
.page-intro h1,
.store-hero-copy h1 {
  overflow-wrap: anywhere;
}

@media (max-width: 1020px) {
  section,
  .store-toolbar {
    padding-inline: clamp(22px, 4vw, 40px);
  }

  .eden-store-hero {
    min-height: 480px;
  }

  .store-hero-copy {
    max-width: 560px;
  }
}

@media (max-width: 680px) {
  section,
  .store-toolbar {
    padding-inline: 16px;
  }

  .topbar {
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 4px;
    padding-inline: 8px;
  }

  .topbar-start { gap: 2px; }
  .topbar .menu-toggle { width: 38px; height: 38px; min-height: 38px; }
  .page-content-back { top: 8px; left: 12px; width: 36px; height: 36px; min-height: 36px; }
  main > section.page-has-back { padding-top: 56px; }

  .topbar-brand {
    justify-self: end;
  }

  .topbar-brand span {
    display: none;
  }

  .header-nav {
    justify-self: center;
    gap: 6px;
    min-width: 0;
  }

  .header-nav a {
    min-width: auto;
    padding: 8px 4px;
    font-size: 0.68rem;
    white-space: nowrap;
  }

  .header-account-link {
    display: none;
  }

  .site-notice {
    min-height: 50px;
    gap: 10px;
  }

  .site-notice span {
    line-height: 1.35;
  }

  body[data-page].has-site-notice main {
    padding-top: 106px;
  }

  body[data-page].has-site-notice.notice-is-hidden main {
    padding-top: 56px;
  }

  .eden-hero {
    min-height: auto;
    grid-template-columns: 1fr;
    padding-block: 38px 44px;
    background:
      linear-gradient(180deg, #070604 0%, rgba(7, 6, 4, 0.68) 8%, transparent 24%),
      radial-gradient(circle at center, rgba(50, 15, 19, 0.58), transparent 52%),
      linear-gradient(90deg, #090706 0%, #16090d 42%, #16090d 58%, #090706 100%),
      #0a0707;
  }

  .eden-hero::before {
    width: 62%;
    background-position: 52% 24%;
    opacity: 0.42;
    -webkit-mask-image: linear-gradient(90deg, #000 0%, rgba(0, 0, 0, 0.8) 52%, transparent 100%);
    mask-image: linear-gradient(90deg, #000 0%, rgba(0, 0, 0, 0.8) 52%, transparent 100%);
  }

  .eden-hero::after {
    width: 62%;
    background-position: 58% 34%;
    opacity: 0.48;
    -webkit-mask-image: linear-gradient(270deg, #000 0%, rgba(0, 0, 0, 0.8) 52%, transparent 100%);
    mask-image: linear-gradient(270deg, #000 0%, rgba(0, 0, 0, 0.8) 52%, transparent 100%);
  }

  .eden-main-logo {
    width: min(150px, 44vw);
    margin-bottom: 12px;
  }

  .eden-hero h1 {
    font-size: clamp(1.75rem, 9vw, 2.7rem);
    line-height: 1.12;
  }

  .eden-hero .eden-slogan {
    font-size: 0.88rem;
  }

  .hero-actions,
  .product-buy {
    width: 100%;
  }

  .hero-actions .button {
    flex: 1 1 145px;
  }

  .eden-routes .eden-route-copy {
    padding: 17px 18px 20px;
  }

  .eden-routes h2 { right: 16px; bottom: 13px; left: 16px; font-size: 1.08rem; }

  .eden-intro {
    gap: 16px;
  }

  .eden-intro h2 {
    font-size: clamp(1.45rem, 7vw, 2rem);
  }

  .eden-store-hero {
    min-height: 420px;
    align-items: flex-end;
    padding: 32px 16px;
  }

  .store-hero-copy h1 {
    max-width: 12ch;
    font-size: clamp(2rem, 11vw, 3rem);
  }

  .store-hero-mark {
    display: none;
  }

  .product-buy {
    align-items: stretch;
  }

  .product-buy button {
    min-width: 0;
  }

  .contact-form button,
  .checkout-button {
    width: 100%;
  }

  .footer-compact,
  .legal-bar {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  .footer-social,
  .legal-bar nav {
    flex-wrap: wrap;
  }
}

@media (max-width: 680px) {
  .about-single { min-height: auto; grid-template-columns: 1fr; gap: 30px; }
  .about-single h1 { font-size: clamp(2.7rem, 15vw, 4.2rem); }
  .about-single-mark { width: min(180px, 52vw); justify-self: center; }
  .about-profile-links { flex-direction: column; }
  .about-profile-links .button { width: 100%; }
}

@media (max-width: 380px) {
  .header-nav { gap: 3px; }
  .header-nav a {
    padding-inline: 3px;
    font-size: 0.62rem;
  }

  .hero-actions,
  .product-buy {
    flex-direction: column;
  }

  .hero-actions .button,
  .product-buy button {
    width: 100%;
  }

  .cart-drawer {
    padding-inline: 14px;
  }
}

/* Product pages */
.store-product.is-product-link {
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.store-product.is-product-link:hover {
  border-color: rgba(214, 173, 103, 0.72);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.3);
  transform: translateY(-3px);
}

.store-product.is-product-link:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.store-product.is-product-link button { cursor: pointer; }

.product-detail-page {
  width: min(1240px, 100%);
  margin-inline: auto;
  padding-top: clamp(34px, 5vw, 64px);
}

.product-detail-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 24px;
}

.product-breadcrumb {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.product-breadcrumb a { color: var(--gold); font-weight: 700; }
.product-breadcrumb span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.product-detail-card {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  min-height: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018));
}

.product-detail-media {
  position: relative;
  min-height: 620px;
  margin: 0;
  overflow: hidden;
  background: #0d0b0a;
}

.product-detail-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.product-detail-media.sigil-product-image img {
  padding: clamp(54px, 9vw, 120px);
  object-fit: contain;
}

.product-detail-content {
  display: flex;
  flex-direction: column;
  padding: clamp(28px, 4vw, 58px);
}

.product-detail-content h1 {
  max-width: 760px;
  margin: 6px 0 16px;
  font-family: Cinzel, Georgia, serif;
  font-size: clamp(2rem, 4vw, 3.7rem);
  font-weight: 600;
  line-height: 1.08;
}

.product-detail-summary {
  margin: 0;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
  color: var(--gold);
  font-size: 1rem;
  font-weight: 650;
  line-height: 1.6;
}

.product-detail-description {
  display: grid;
  gap: 13px;
  margin-top: 22px;
}

.product-detail-description p {
  margin: 0;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.72;
}

.product-detail-content .product-stock { margin-top: 24px; }
.product-detail-buy { max-width: 470px; margin-top: auto; padding-top: 30px; }
.product-detail-buy .product-price { font-size: 1.3rem; }
.product-detail-buy button { min-width: 170px; }

.product-detail-missing {
  max-width: 760px;
  padding: clamp(34px, 6vw, 76px);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
}

.product-detail-missing h1 { margin: 8px 0 14px; font-family: Cinzel, Georgia, serif; font-size: clamp(2rem, 5vw, 3.8rem); }
.product-detail-missing > p:not(.eyebrow) { margin: 0 0 24px; color: var(--muted); }

.menu-close,
.modal-close,
.product-collection-close,
.cart-close,
.site-notice button {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

@media (max-width: 860px) {
  .product-detail-card { grid-template-columns: 1fr; }
  .product-detail-media { min-height: 0; aspect-ratio: 1 / 1; }
  .product-detail-content { padding: clamp(22px, 6vw, 38px); }
  .product-detail-buy { max-width: none; }
}

@media (max-width: 680px) {
  .native-app body[data-page] main { padding-top: calc(56px + env(safe-area-inset-top)); }
  .native-app body[data-page].has-site-notice main { padding-top: calc(102px + env(safe-area-inset-top)); }
  .native-app body[data-page].has-site-notice.notice-is-hidden main { padding-top: calc(56px + env(safe-area-inset-top)); }
  .native-app .site-notice { top: calc(56px + env(safe-area-inset-top)); }
  .menu-close { top: 10px; right: 10px; width: 40px; height: 40px; }
  .modal-close { top: 8px; right: 8px; width: 40px; height: 40px; }
  .site-notice button { flex: 0 0 36px; width: 36px; height: 36px; min-width: 36px; min-height: 36px; margin-right: -4px; }
  .cart-close { width: 40px; height: 40px; margin: -5px -5px 0 0; }
  .product-collection-close { top: 2px; right: 0; width: 40px; height: 40px; margin: -6px -2px -40px 0; }
  .product-detail-page { padding: 24px 14px 34px; }
  .product-detail-top { align-items: stretch; flex-direction: column; margin-bottom: 14px; }
  .product-detail-top .cart-button { width: 100%; justify-content: space-between; }
  .product-detail-content h1 { font-size: clamp(1.7rem, 9vw, 2.55rem); }
  .product-detail-summary { font-size: 0.9rem; }
  .product-detail-description p { font-size: 0.9rem; line-height: 1.65; }
  .product-detail-buy { width: 100%; flex-direction: column; align-items: stretch; }
  .product-detail-buy button { width: 100%; min-width: 0; }
}

@media (max-width: 420px) {
  .cookie-actions { grid-template-columns: 1fr; }
}
