/* Stable layout pass: predictable spacing, responsive navigation and readable content. */
:root {
  --stable-bg: #08090d;
  --stable-surface: #101117;
  --stable-surface-2: #151720;
  --stable-line: rgba(255, 255, 255, 0.11);
  --stable-line-strong: rgba(222, 184, 112, 0.34);
  --stable-text: #f5f1e8;
  --stable-muted: #aaa8a4;
  --stable-gold: #e0b96f;
  --stable-gold-dark: #9c743f;
  --stable-cyan: #71c3c5;
  --stable-danger: #df7f83;
  --stable-success: #6ecb9b;
  --stable-container: 1180px;
  --stable-reading: 820px;
}

html {
  overflow-x: hidden;
  scroll-padding-top: 136px;
}

body {
  min-width: 320px;
  overflow-x: hidden;
  background: var(--stable-bg);
  color: var(--stable-text);
  font-family: "Manrope", sans-serif;
  line-height: 1.65;
}

[hidden] {
  display: none !important;
}

img,
video {
  max-width: 100%;
}

button,
input,
textarea {
  font: inherit;
}

a,
button {
  -webkit-tap-highlight-color: transparent;
}

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

#conteudo {
  min-height: 65vh;
}

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

.eyebrow {
  margin: 0 0 10px;
  color: var(--stable-gold);
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.4;
  text-transform: uppercase;
  letter-spacing: 0;
}

.button {
  min-height: 44px;
  border-radius: 6px;
  gap: 9px;
  padding: 10px 17px;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0;
}

.button svg,
.text-link svg {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
}

.button.primary {
  border: 1px solid #eccb8c;
  background: var(--stable-gold);
  color: #15120c;
}

.button.primary:hover {
  background: #edcc8d;
  color: #15120c;
}

.button.ghost {
  border-color: var(--stable-line);
  background: rgba(255, 255, 255, 0.035);
  color: var(--stable-text);
}

.button.disabled,
.button[aria-disabled="true"] {
  pointer-events: none;
  border-color: var(--stable-line);
  background: rgba(255, 255, 255, 0.035);
  color: #77787e;
  opacity: 1;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--stable-gold);
  font-weight: 700;
  text-decoration: none;
}

/* Header */
.site-header {
  position: sticky;
  z-index: 80;
  top: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  min-height: 72px;
  padding: 8px max(20px, calc((100% - var(--stable-container)) / 2));
  border-bottom: 1px solid var(--stable-line);
  background: rgba(8, 9, 13, 0.94);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.14);
  backdrop-filter: blur(14px);
}

.site-header.is-scrolled {
  min-height: 64px;
  background: rgba(8, 9, 13, 0.98);
}

.brand {
  gap: 9px;
  min-width: 184px;
  color: var(--stable-text);
}

.brand img {
  width: 50px;
  height: 50px;
  flex: 0 0 50px;
  object-fit: contain;
  object-position: center;
  filter: none;
}

.brand span {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  line-height: 1;
}

.brand strong {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.35rem;
  line-height: 1;
  letter-spacing: 0;
}

.brand small {
  margin: 0;
  color: var(--stable-gold);
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0;
  text-transform: uppercase;
}

.main-nav {
  position: static;
  display: flex;
  justify-content: center;
  min-width: 0;
  gap: 4px;
  transform: none;
}

.main-nav a {
  min-height: 40px;
  gap: 7px;
  padding: 8px 11px;
  border: 1px solid transparent;
  border-radius: 6px;
  color: #c7c4bd;
  font-size: 0.79rem;
  white-space: nowrap;
}

.main-nav a svg {
  width: 16px;
  height: 16px;
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
  border-color: var(--stable-line);
  background: rgba(255, 255, 255, 0.045);
  color: var(--stable-text);
}

.main-nav a[aria-current="page"]::after {
  right: 11px;
  bottom: 3px;
  left: 11px;
  height: 1px;
  background: var(--stable-gold);
}

.header-actions {
  gap: 6px;
}

.icon-button,
.account-button {
  min-width: 40px;
  height: 40px;
  border-radius: 6px;
}

.account-button {
  padding-inline: 12px;
  background: var(--stable-gold);
  color: #15120c;
}

.menu-button {
  display: none;
}

.page-progress {
  bottom: -1px;
  height: 2px;
}

#moderncart-floating-cart,
#moderncart-slide-out-modal,
.wp-interactivity-router-loading-bar {
  display: none !important;
}

/* Secondary navigation */
.section-nav,
.museum-nav,
.wiki-index {
  position: sticky;
  z-index: 60;
  top: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 56px;
  gap: 20px;
  padding: 6px max(20px, calc((100% - var(--stable-container)) / 2));
  border-bottom: 1px solid var(--stable-line);
  background: rgba(11, 13, 18, 0.96);
  backdrop-filter: blur(12px);
}

.section-nav-title,
.museum-title {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--stable-text);
  text-decoration: none;
  white-space: nowrap;
}

.section-nav-title img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
}

/* The horizontal Arcanum wordmark must never inherit square logo crops. */
img[src$="arcanum-wordmark.png"] {
  object-fit: contain;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.section-nav-title img[src$="arcanum-wordmark.png"] {
  width: 88px;
  height: 36px;
  flex: 0 0 88px;
}

.system-visual:has(img[src$="arcanum-wordmark.png"]) {
  display: grid;
  place-items: center;
  background: transparent;
}

.system-visual:has(img[src$="arcanum-wordmark.png"])::after {
  content: none;
}

.system-visual img[src$="arcanum-wordmark.png"] {
  width: 100%;
  height: auto;
  aspect-ratio: 1981 / 794;
  padding: 24px;
}

.detail-hero img[src$="arcanum-wordmark.png"],
.store-hero-art img[src$="arcanum-wordmark.png"],
.auth-copy > img[src$="arcanum-wordmark.png"] {
  width: min(380px, 100%);
  height: auto;
  aspect-ratio: 1981 / 794;
  object-fit: contain;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.forge-orbit::after {
  background-image: url('./worlds/arcanum-wordmark.png');
  background-size: contain;
  background-repeat: no-repeat;
}

.section-nav-title > span,
.museum-title > span {
  display: grid;
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.2;
}

.section-nav-title small,
.museum-title small {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 3px;
  color: var(--stable-muted);
  font-size: 0.57rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: uppercase;
}

.section-nav-title b,
.museum-title b {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--stable-success);
}

.section-nav > div,
.museum-nav > div,
.wiki-index > div {
  display: flex;
  align-items: center;
  gap: 2px;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.section-nav > div::-webkit-scrollbar,
.museum-nav > div::-webkit-scrollbar,
.wiki-index > div::-webkit-scrollbar {
  display: none;
}

.section-nav > div a,
.museum-nav > div a,
.wiki-index a {
  flex: 0 0 auto;
  min-height: 36px;
  padding: 8px 10px;
  border: 1px solid transparent;
  border-radius: 5px;
  color: var(--stable-muted);
  font-size: 0.72rem;
  font-weight: 600;
  text-decoration: none;
}

.section-nav > div a:hover,
.section-nav > div a[aria-current="page"],
.museum-nav > div a:hover,
.museum-nav > div a[aria-current="page"],
.wiki-index a:hover,
.wiki-index a[aria-current="page"] {
  border-color: var(--stable-line);
  background: rgba(255, 255, 255, 0.045);
  color: var(--stable-text);
}

.wiki-index {
  position: relative;
  top: auto;
  min-height: 48px;
  border-bottom-color: rgba(113, 195, 197, 0.18);
  background: #0b1418;
}

.wiki-index > span {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--stable-cyan);
  font-size: 0.72rem;
  font-weight: 700;
  white-space: nowrap;
}

.wiki-index svg {
  width: 16px;
  height: 16px;
}

/* Home */
.studio-hero {
  min-height: min(720px, calc(100svh - 118px));
  padding: 70px 24px 92px;
  isolation: isolate;
}

.studio-frame {
  inset: 16px;
  width: calc(100% - 32px);
  height: calc(100% - 32px);
  object-fit: fill;
  opacity: 0.45;
}

.studio-hero-copy {
  width: min(760px, 100%);
}

.studio-mark {
  width: 176px;
  height: 176px;
  margin-bottom: 10px;
  object-fit: contain;
  filter: none;
}

.studio-hero h1 {
  margin: 6px 0 14px;
  font-size: 4.8rem;
  line-height: 0.95;
  letter-spacing: 0;
}

.studio-hero .lead {
  width: min(680px, 100%);
  margin-inline: auto;
  font-size: 1rem;
  line-height: 1.7;
}

.studio-status {
  min-height: 70px;
}

.home-section {
  padding-block: 80px;
}

.section-heading {
  gap: 28px;
  margin-bottom: 30px;
}

.section-heading h2,
.studio-manifesto h2,
.home-community h2 {
  font-size: 2.65rem;
  line-height: 1.06;
  letter-spacing: 0;
}

.section-heading > p {
  max-width: 480px;
  color: var(--stable-muted);
  font-size: 0.92rem;
}

.world-grid {
  min-height: 540px;
}

.world-panel {
  border-radius: 6px;
}

.world-panel > div:last-child h3 {
  font-size: 2.4rem;
  letter-spacing: 0;
}

.capability-rail article,
.principle-grid article,
.value-list article {
  border-radius: 6px;
}

/* Codex Studio */
.studio-page {
  background: var(--stable-bg);
}

.studio-about-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.75fr);
  align-items: center;
  min-height: 620px;
  gap: 56px;
  width: min(var(--stable-container), calc(100% - 40px));
  margin-inline: auto;
  padding-block: 72px;
}

.studio-about-copy h1,
.detail-hero h1,
.staff-header h1,
.auth-copy h1 {
  margin: 0 0 18px;
  font-family: "Cormorant Garamond", serif;
  font-size: 4.4rem;
  line-height: 0.98;
  letter-spacing: 0;
}

.studio-about-copy .lead {
  max-width: 680px;
  color: #c3c0b9;
  font-size: 1.08rem;
}

.studio-emblem-wrap {
  display: grid;
  place-items: center;
  min-height: 440px;
  border-left: 1px solid var(--stable-line-strong);
}

.studio-emblem-wrap img {
  width: min(430px, 100%);
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 24px 40px rgba(0, 0, 0, 0.45));
}

.studio-principles,
.team-section,
.projects-band,
.social-hub {
  padding-block: 80px;
  border-top: 1px solid var(--stable-line);
}

.principle-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--stable-line);
  border-radius: 6px;
  background: var(--stable-line);
}

.principle-grid article {
  min-height: 230px;
  padding: 28px;
  background: var(--stable-surface);
}

.principle-grid svg {
  width: 26px;
  height: 26px;
  color: var(--stable-gold);
}

.principle-grid h3 {
  margin: 44px 0 8px;
  font-size: 1.1rem;
}

.principle-grid p {
  margin: 0;
  color: var(--stable-muted);
  font-size: 0.88rem;
}

.team-section {
  position: relative;
}

.carousel-toolbar {
  position: absolute;
  top: 86px;
  right: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.carousel-status {
  min-width: 64px;
  color: var(--stable-muted);
  font-size: 0.74rem;
  text-align: center;
}

.team-viewport {
  overflow: hidden;
}

.team-track {
  display: grid;
  grid-auto-columns: calc((100% - 36px) / 3);
  grid-auto-flow: column;
  gap: 18px;
  transition: transform 420ms cubic-bezier(0.22, 1, 0.36, 1);
}

.team-card {
  min-height: 430px;
  overflow: hidden;
  border: 1px solid var(--stable-line);
  border-radius: 6px;
  background: var(--stable-surface);
}

.team-portrait {
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  border-bottom: 1px solid var(--stable-line);
  background: #17141a;
  color: var(--stable-gold);
  font-family: "Cormorant Garamond", serif;
  font-size: 4rem;
}

.team-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-portrait svg {
  width: 54px;
  height: 54px;
}

.team-card > div:last-child {
  padding: 22px;
}

.team-card small,
.project-list a > span {
  color: var(--stable-gold);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
}

.team-card h3 {
  margin: 4px 0 8px;
  font-size: 1.25rem;
}

.team-card p {
  margin: 0;
  color: var(--stable-muted);
  font-size: 0.86rem;
}

.team-socials {
  display: flex;
  gap: 8px;
  margin-top: 18px;
}

.team-socials a {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--stable-line);
  color: var(--stable-gold);
  transition: border-color 180ms ease, background-color 180ms ease, color 180ms ease;
}

.team-socials a:hover {
  border-color: var(--stable-gold);
  background: var(--stable-gold);
  color: #171208;
}

.team-socials svg {
  width: 18px;
  height: 18px;
}

.team-empty {
  grid-column: 1 / -1;
  width: 100%;
  margin: 0;
  padding: 56px 24px;
  border: 1px solid var(--stable-line);
  color: var(--stable-muted);
  text-align: center;
}

.team-section:not(.has-team-navigation) .carousel-toolbar,
.team-section:not(.has-team-navigation) .carousel-dots {
  display: none;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 7px;
  margin-top: 22px;
}

.carousel-dots button {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #46474d;
}

.carousel-dots button[aria-current="true"] {
  background: var(--stable-gold);
}

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

.project-list a {
  position: relative;
  min-height: 250px;
  padding: 30px;
  border: 1px solid var(--stable-line);
  border-radius: 6px;
  background: var(--stable-surface);
  color: var(--stable-text);
  text-decoration: none;
}

.project-list h3 {
  margin: 70px 0 5px;
  font-family: "Cormorant Garamond", serif;
  font-size: 2.2rem;
}

.project-list p {
  margin: 0;
  color: var(--stable-muted);
}

.project-list > a > svg {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 20px;
}

.social-hub {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
  gap: 60px;
  align-items: start;
}

.social-hub h2 {
  margin: 0 0 12px;
  font-family: "Cormorant Garamond", serif;
  font-size: 2.8rem;
  line-height: 1;
}

.social-hub > div > p:last-child {
  color: var(--stable-muted);
}

.social-hub nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.social-hub nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 10px 14px;
  border: 1px solid var(--stable-line);
  border-radius: 6px;
  background: var(--stable-surface);
  color: var(--stable-text);
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
}

.social-hub nav svg {
  width: 18px;
}

/* Arcanum */
.arcanum-hero-v2 {
  min-height: 660px;
  padding: 88px max(24px, calc((100% - var(--stable-container)) / 2)) 116px;
}

.arcanum-hero-copy {
  width: min(720px, 100%);
}

.arcanum-hero-copy h1 {
  font-size: 5rem;
  letter-spacing: 0;
}

.arcanum-overview {
  padding-block: 68px;
}

.arcanum-guide-grid,
.museum-directory {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  margin-block: 30px 80px;
  border: 1px solid var(--stable-line);
  border-radius: 6px;
  background: var(--stable-line);
}

.arcanum-guide-grid > a,
.museum-directory > a {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: start;
  min-height: 170px;
  gap: 13px;
  padding: 22px;
  background: var(--stable-surface);
  color: var(--stable-text);
  text-decoration: none;
}

.arcanum-guide-grid > a > svg,
.museum-directory > a > svg {
  width: 20px;
  color: var(--stable-gold);
}

.arcanum-guide-grid > a > svg:last-child,
.museum-directory > a > svg:last-child {
  width: 16px;
  color: var(--stable-muted);
}

.arcanum-guide-grid span,
.museum-directory span {
  display: grid;
}

.arcanum-guide-grid small,
.museum-directory small {
  color: var(--stable-muted);
  font-size: 0.64rem;
  text-transform: uppercase;
}

.arcanum-guide-grid strong,
.museum-directory strong {
  margin-top: 2px;
  font-size: 0.94rem;
}

.arcanum-guide-grid p {
  margin: 20px 0 0;
  color: var(--stable-muted);
  font-size: 0.78rem;
}

.arcanum-system-section,
.arcanum-feature-grid,
.academy-feature,
.launcher-release-section,
.arcanum-community-band {
  margin-top: 0;
  margin-bottom: 0;
}

.launcher-release-section {
  grid-template-columns: minmax(0, 1fr) 380px;
}

.arcanum-detail-page {
  padding-bottom: 0;
}

.detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.65fr);
  align-items: center;
  min-height: 480px;
  gap: 60px;
  width: min(var(--stable-container), calc(100% - 40px));
  margin-inline: auto;
  padding-block: 64px;
}

.detail-hero > div > p:last-child {
  max-width: 700px;
  color: #c3c0b9;
  font-size: 1rem;
}

.detail-hero img {
  width: 100%;
  max-height: 360px;
  border: 1px solid var(--stable-line);
  border-radius: 6px;
  object-fit: cover;
}

.steps-section,
.editorial-split,
.value-list,
.system-directory,
.world-story,
.world-philosophy,
.faq-list,
.download-callout,
.next-path {
  padding-block: 72px;
  border-top: 1px solid var(--stable-line);
}

.journey-steps {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
}

.journey-steps li {
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr);
  gap: 26px;
  padding: 34px 0;
  border-bottom: 1px solid var(--stable-line);
}

.journey-steps > li > span {
  color: var(--stable-gold);
  font-family: "Cormorant Garamond", serif;
  font-size: 2.1rem;
}

.journey-steps h2,
.editorial-split h2,
.system-directory h2,
.world-story h2,
.world-philosophy h2,
.download-callout h2,
.next-path h2 {
  margin: 0 0 8px;
  font-family: "Cormorant Garamond", serif;
  font-size: 2.25rem;
  line-height: 1.05;
  letter-spacing: 0;
}

.journey-steps p {
  max-width: 700px;
  margin: 0 0 12px;
  color: var(--stable-muted);
}

.availability {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--stable-muted);
  font-size: 0.8rem;
}

.availability b {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--stable-danger);
}

.availability.is-open b {
  background: var(--stable-success);
}

.download-callout,
.world-philosophy,
.next-path {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.download-callout > div,
.world-philosophy > div,
.next-path > div {
  max-width: 720px;
}

.editorial-split {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 60px;
}

.editorial-split > div > p {
  color: var(--stable-muted);
}

.quote-panel {
  padding: 32px;
  border-left: 2px solid var(--stable-gold);
  background: var(--stable-surface);
}

.quote-panel svg {
  color: var(--stable-gold);
}

.quote-panel blockquote {
  margin: 28px 0;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.65rem;
  line-height: 1.25;
}

.quote-panel span {
  color: var(--stable-muted);
  font-size: 0.74rem;
}

.value-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--stable-line);
}

.value-list article {
  min-height: 220px;
  padding: 24px;
  background: var(--stable-bg);
}

.value-list article > span {
  color: var(--stable-gold);
  font-size: 0.75rem;
}

.value-list h3 {
  margin: 52px 0 8px;
  font-size: 1rem;
}

.value-list p {
  margin: 0;
  color: var(--stable-muted);
  font-size: 0.83rem;
}

.system-directory {
  display: grid;
  gap: 24px;
}

.system-directory article {
  display: grid;
  grid-template-columns: minmax(280px, 0.75fr) minmax(0, 1.25fr);
  min-height: 310px;
  overflow: hidden;
  border: 1px solid var(--stable-line);
  border-radius: 6px;
  background: var(--stable-surface);
}

.system-directory article:nth-child(even) img {
  order: 2;
}

.system-directory img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.system-directory article > div {
  padding: 34px;
}

.system-directory small {
  color: var(--stable-gold);
  font-weight: 700;
  text-transform: uppercase;
}

.system-directory p,
.system-directory li {
  color: var(--stable-muted);
}

.feature-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
  margin-bottom: 72px;
  overflow: hidden;
  border: 1px solid var(--stable-line);
  border-radius: 6px;
  background: var(--stable-line);
}

.feature-strip span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 80px;
  gap: 9px;
  background: var(--stable-surface);
  font-size: 0.8rem;
  font-weight: 700;
}

.feature-strip svg {
  width: 18px;
  color: var(--stable-gold);
}

.world-story {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.85fr);
  gap: 0;
}

.world-story > img {
  width: 100%;
  height: 100%;
  min-height: 460px;
  object-fit: cover;
}

.world-story > div {
  padding: 42px;
  border: 1px solid var(--stable-line);
  background: var(--stable-surface);
}

.world-story dl {
  margin: 30px 0 0;
}

.world-story dl > div {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 9px 0;
  border-top: 1px solid var(--stable-line);
}

.world-story dt {
  color: var(--stable-muted);
}

.world-story dd {
  margin: 0;
  font-weight: 700;
}

.faq-list {
  max-width: var(--stable-reading);
}

.faq-list details {
  border-bottom: 1px solid var(--stable-line);
}

.faq-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 76px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 700;
  list-style: none;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary svg {
  width: 18px;
  transition: transform 180ms ease;
}

.faq-list details[open] summary svg {
  transform: rotate(45deg);
}

.faq-list details p {
  margin: -4px 0 24px;
  color: var(--stable-muted);
}

/* Museum */
.museum-page-hero {
  min-height: 430px;
  padding: 64px max(24px, calc((100% - 1040px) / 2));
}

.museum-page-hero-main {
  min-height: 590px;
  grid-template-columns: minmax(0, 1fr);
  place-items: center;
  padding-block: 72px;
  text-align: center;
}

.museum-hero-copy {
  max-width: 760px;
}

.museum-page-hero-main .museum-hero-copy {
  display: grid;
  justify-items: center;
  width: min(820px, 100%);
  max-width: none;
}

.museum-page-hero-main .museum-kicker {
  justify-content: center;
}

.museum-hero-copy > img {
  width: min(400px, 72vw);
  max-height: 190px;
  object-fit: contain;
}

.museum-page-hero-main .museum-hero-copy > img {
  width: min(620px, 86vw);
  max-height: 300px;
  margin: 10px auto 24px;
}

.museum-page-hero-main .museum-hero-copy > p {
  margin-inline: auto;
  font-size: 1rem;
}

.museum-page-hero h1 {
  margin-top: 16px;
  font-size: 4rem;
  line-height: 1;
  letter-spacing: 0;
}

.museum-preservation-note {
  width: min(1040px, calc(100% - 40px));
  margin: 28px auto;
  padding: 14px 16px;
  border-radius: 6px;
}

.museum-directory {
  width: min(1040px, calc(100% - 40px));
  margin-block: 28px 44px;
}

.museum-directory > a {
  min-height: 110px;
}

.museum-page .preserved-content {
  width: min(1040px, calc(100% - 40px));
  margin: 0 auto 80px;
  overflow: visible;
}

.museum-page .preserved-content > .entry-content {
  width: 100%;
}

.museum-page .preserved-content .wp-block-cover {
  min-height: 0 !important;
  padding: 44px 28px !important;
  border: 1px solid var(--stable-line);
  border-radius: 6px;
  background: var(--stable-surface) !important;
}

.museum-page .preserved-content .wp-block-cover__image-background,
.museum-page .preserved-content .wp-block-cover__background {
  opacity: 0.1 !important;
}

.museum-page .preserved-content .wp-block-cover__inner-container {
  width: 100%;
  max-width: 900px;
  margin-inline: auto;
}

.museum-page .preserved-content :where(.wp-block-group, .wp-block-media-text) {
  max-width: 900px;
  margin-inline: auto;
}

.museum-page .preserved-content .wp-block-media-text {
  gap: 28px;
  margin-block: 28px;
}

.museum-original-record {
  margin-top: 0;
  margin-bottom: 80px;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--stable-line);
  border-radius: 6px;
  background: var(--stable-surface);
}

.museum-original-record > summary {
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 24px;
  cursor: pointer;
  list-style: none;
}

.museum-original-record > summary::-webkit-details-marker {
  display: none;
}

.museum-original-record > summary > span:first-child {
  display: grid;
  gap: 3px;
}

.museum-original-record > summary small {
  color: var(--stable-cyan);
  font-size: 0.64rem;
  font-weight: 800;
  text-transform: uppercase;
}

.museum-original-record > summary strong {
  color: var(--stable-text);
  font-size: 1rem;
}

.museum-original-record > summary > span:last-child {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--stable-muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.museum-original-record > summary svg {
  width: 17px;
  transition: transform 180ms ease;
}

.museum-original-record[open] > summary {
  border-bottom: 1px solid var(--stable-line);
}

.museum-original-record[open] > summary svg {
  transform: rotate(180deg);
}

.museum-original-record .preserved-content {
  width: 100%;
  margin: 0;
  padding: 28px;
}

.museum-page .preserved-content :where(h1, h2) {
  font-size: 2.3rem !important;
  line-height: 1.1 !important;
  letter-spacing: 0 !important;
}

.museum-page .preserved-content h3 {
  font-size: 1.3rem !important;
  letter-spacing: 0 !important;
}

.museum-page .preserved-content :where(p, li) {
  font-size: 0.93rem !important;
  line-height: 1.7 !important;
}

.museum-page .preserved-content img {
  height: auto !important;
  object-fit: contain;
}

.museum-page .preserved-content .wp-block-cover__inner-container > figure:first-of-type,
.museum-page .preserved-content .wp-block-cover__inner-container > .wp-block-columns:first-of-type {
  display: none;
}

.archive-missing-page {
  display: grid;
  place-items: center;
  min-height: 660px;
  padding: 70px 20px;
}

.archive-missing-card {
  width: min(720px, 100%);
  padding: 46px;
  border: 1px solid var(--stable-line);
  border-radius: 6px;
  background: var(--stable-surface);
  text-align: center;
}

.archive-missing-card > svg {
  width: 42px;
  height: 42px;
  color: var(--stable-cyan);
}

.archive-missing-card h1 {
  margin: 10px 0;
  font-family: "Cormorant Garamond", serif;
  font-size: 3.2rem;
  letter-spacing: 0;
}

.archive-missing-card > p:not(.eyebrow) {
  color: var(--stable-muted);
}

.archive-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 28px 0;
  border-block: 1px solid var(--stable-line);
}

.archive-facts span {
  display: grid;
  padding: 14px;
  color: var(--stable-muted);
  font-size: 0.74rem;
}

/* Store */
.store-hero-v2 {
  min-height: 480px;
  padding: 72px max(24px, calc((100% - var(--stable-container)) / 2));
}

.store-hero-copy h1 {
  font-size: 4.6rem;
  letter-spacing: 0;
}

.store-shell {
  width: min(var(--stable-container), calc(100% - 40px));
  padding: 52px 0 82px;
}

.store-toolbar {
  position: sticky;
  z-index: 30;
  top: 80px;
  grid-template-columns: minmax(220px, 1fr) auto auto;
  border-radius: 6px;
}

.store-live-products.raw-loja {
  width: 100%;
  padding: 0;
}

.store-live-products.raw-loja > .entry-content > *:not(.wc-block-product-template):not(.wp-block-query) {
  display: none !important;
}

.raw-loja .wc-block-product-template {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.store-live-products .wc-block-components-product-image img {
  object-fit: contain;
  padding: 20px;
  background: #08090d;
}

.raw-loja .wc-block-product,
.future-product {
  border-radius: 6px;
}

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

/* Account and private screens */
.account-page,
.auth-page {
  width: min(1040px, calc(100% - 40px));
  min-height: 680px;
  margin-inline: auto;
  padding-block: 72px;
}

.account-page {
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 60px;
}

.account-intro > img,
.auth-copy > img {
  width: 150px;
  height: 150px;
  object-fit: contain;
}

.account-intro > img {
  border: 0;
  border-radius: 0;
  background: transparent;
}

.account-intro h1 {
  font-size: 3.5rem;
  letter-spacing: 0;
}

.login-panel,
.auth-form,
.account-session {
  border: 1px solid var(--stable-line);
  border-radius: 6px;
  background: var(--stable-surface);
}

.auth-page {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 430px;
  align-items: center;
  gap: 70px;
}

.auth-copy > p:not(.eyebrow),
.auth-copy li {
  color: var(--stable-muted);
}

.auth-copy ul {
  margin-top: 28px;
  padding-left: 20px;
}

.auth-surface {
  min-width: 0;
}

.auth-form {
  display: grid;
  gap: 17px;
  padding: 30px;
}

.auth-form h2 {
  margin: -4px 0 4px;
  font-family: "Cormorant Garamond", serif;
  font-size: 2.2rem;
}

.auth-form label,
.control-field {
  display: grid;
  gap: 6px;
  color: #d8d4cc;
  font-size: 0.76rem;
  font-weight: 700;
}

.auth-form label small,
.control-field small {
  color: var(--stable-muted);
  font-weight: 500;
}

.auth-form input,
.control-field textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--stable-line);
  border-radius: 5px;
  background: #0b0c11;
  color: var(--stable-text);
}

.form-message {
  margin: 0;
  color: var(--stable-muted);
  font-size: 0.75rem;
}

.form-message.success {
  color: var(--stable-success);
}

.form-message.error {
  color: var(--stable-danger);
}

.account-session {
  align-self: center;
  padding: 30px;
}

.staff-page {
  width: min(1040px, calc(100% - 40px));
  min-height: 720px;
  margin-inline: auto;
  padding: 60px 0 90px;
}

.staff-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--stable-line);
}

.staff-header h1 {
  font-size: 3.8rem;
}

.staff-header > div > p:last-child {
  margin: 0;
  color: var(--stable-muted);
}

.secure-badge,
.preview-note {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  border: 1px solid var(--stable-line-strong);
  border-radius: 5px;
  color: var(--stable-gold);
  font-size: 0.7rem;
  font-weight: 700;
  white-space: nowrap;
}

.secure-badge svg {
  width: 16px;
}

.staff-gate {
  display: grid;
  justify-items: center;
  max-width: 620px;
  margin: 80px auto;
  padding: 50px 32px;
  border: 1px solid var(--stable-line);
  border-radius: 6px;
  background: var(--stable-surface);
  text-align: center;
}

.staff-gate > svg {
  width: 38px;
  height: 38px;
  color: var(--stable-gold);
}

.staff-gate h2 {
  margin: 16px 0 4px;
}

.staff-gate p {
  color: var(--stable-muted);
}

.loading-mark {
  width: 34px;
  height: 34px;
  border: 2px solid var(--stable-line);
  border-top-color: var(--stable-gold);
  border-radius: 50%;
  animation: stable-spin 0.8s linear infinite;
}

@keyframes stable-spin {
  to { transform: rotate(360deg); }
}

.staff-dashboard {
  display: grid;
  gap: 24px;
  padding-top: 34px;
}

.staff-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.staff-summary article {
  display: grid;
  min-height: 130px;
  padding: 20px;
  border: 1px solid var(--stable-line);
  border-radius: 6px;
  background: var(--stable-surface);
}

.staff-summary small,
.staff-summary span {
  color: var(--stable-muted);
  font-size: 0.7rem;
}

.staff-summary strong {
  align-self: center;
  font-size: 1.1rem;
}

.control-panel {
  display: grid;
  padding: 30px;
  border: 1px solid var(--stable-line);
  border-radius: 6px;
  background: var(--stable-surface);
}

.control-panel > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--stable-line);
}

.control-panel h2 {
  margin: 0;
  font-size: 1.35rem;
}

.control-switch {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
  min-height: 86px;
  border-bottom: 1px solid var(--stable-line);
  cursor: pointer;
}

.control-switch > span {
  display: grid;
}

.control-switch small {
  margin-top: 3px;
  color: var(--stable-muted);
  font-size: 0.73rem;
}

.control-switch input {
  position: absolute;
  opacity: 0;
}

.control-switch > i {
  position: relative;
  width: 44px;
  height: 24px;
  border: 1px solid var(--stable-line);
  border-radius: 999px;
  background: #292b32;
}

.control-switch > i::after {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #a5a6ab;
  content: "";
  transition: 180ms ease;
}

.control-switch input:checked + i {
  border-color: rgba(110, 203, 155, 0.55);
  background: rgba(110, 203, 155, 0.22);
}

.control-switch input:checked + i::after {
  transform: translateX(20px);
  background: var(--stable-success);
}

.control-switch input:focus-visible + i {
  outline: 2px solid var(--stable-gold);
  outline-offset: 3px;
}

.control-field {
  margin-top: 24px;
}

.control-field textarea {
  resize: vertical;
}

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

.staff-security {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 18px;
  border-left: 2px solid var(--stable-success);
  background: rgba(110, 203, 155, 0.06);
}

.staff-security svg {
  flex: 0 0 auto;
  color: var(--stable-success);
}

.staff-security p {
  margin: 3px 0 0;
  color: var(--stable-muted);
  font-size: 0.78rem;
}

/* Footer and dialogs */
.site-footer {
  border-top: 1px solid var(--stable-line);
}

.footer-main {
  grid-template-columns: minmax(260px, 1.1fr) minmax(320px, 1fr) minmax(240px, 0.8fr);
  width: min(var(--stable-container), calc(100% - 40px));
  padding-block: 54px;
}

.footer-brand img {
  width: 82px;
  height: 82px;
  object-fit: contain;
}

.login-modal,
.search-modal,
.product-modal {
  border-radius: 6px;
}

/* Responsive */
@media (max-width: 1100px) {
  .main-nav a {
    padding-inline: 8px;
  }

  .main-nav a svg {
    display: none;
  }

  .discord-button {
    display: none;
  }

  .arcanum-guide-grid,
  .museum-directory,
  .value-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .raw-loja .wc-block-product-template {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  html {
    scroll-padding-top: 116px;
  }

  .site-header {
    grid-template-columns: minmax(0, 1fr) auto;
    min-height: 64px;
    padding: 7px 16px;
  }

  .brand img {
    width: 44px;
    height: 44px;
  }

  .main-nav {
    position: absolute;
    top: 100%;
    right: 12px;
    left: 12px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 3px;
    padding: 8px;
    border: 1px solid var(--stable-line);
    border-radius: 6px;
    background: #0d0e13;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
  }

  .site-header.menu-open .main-nav {
    display: flex;
  }

  .main-nav a {
    justify-content: flex-start;
    width: 100%;
    min-height: 44px;
    padding-inline: 12px;
  }

  .main-nav a svg {
    display: block;
  }

  .menu-button {
    display: inline-grid;
  }

  .account-button span {
    display: none;
  }

  .section-nav,
  .museum-nav {
    top: 64px;
    min-height: 52px;
    padding-inline: 16px;
  }

  .section-nav-title,
  .museum-title {
    display: none;
  }

  .section-nav > div,
  .museum-nav > div {
    width: 100%;
  }

  .wiki-index {
    display: grid;
    gap: 4px;
    padding: 8px 16px;
  }

  .wiki-index > span {
    display: none;
  }

  .studio-hero h1,
  .arcanum-hero-copy h1 {
    font-size: 4rem;
  }

  .studio-about-hero,
  .detail-hero,
  .auth-page,
  .account-page,
  .editorial-split,
  .world-story,
  .social-hub {
    grid-template-columns: 1fr;
  }

  .studio-about-hero {
    min-height: 0;
  }

  .studio-emblem-wrap {
    min-height: 360px;
    border-top: 1px solid var(--stable-line-strong);
    border-left: 0;
  }

  .principle-grid {
    grid-template-columns: 1fr;
  }

  .team-track {
    grid-auto-columns: calc((100% - 18px) / 2);
  }

  .carousel-toolbar {
    position: static;
    justify-content: flex-end;
    margin: -12px 0 16px;
  }

  .launcher-release-section {
    grid-template-columns: 1fr;
  }

  .system-directory article {
    grid-template-columns: 1fr;
  }

  .system-directory article:nth-child(even) img {
    order: 0;
  }

  .system-directory img {
    max-height: 290px;
  }

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

  .store-toolbar {
    position: static;
    grid-template-columns: 1fr;
  }

  .raw-loja .wc-block-product-template {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .store-how ol,
  .staff-summary {
    grid-template-columns: 1fr;
  }

  .footer-main {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 580px) {
  .content-band,
  .studio-about-hero,
  .detail-hero,
  .museum-page .preserved-content,
  .museum-preservation-note,
  .museum-directory,
  .store-shell,
  .account-page,
  .auth-page,
  .staff-page,
  .footer-main {
    width: min(100% - 28px, var(--stable-container));
  }

  .brand {
    min-width: 0;
  }

  .brand span {
    display: none;
  }

  .header-actions {
    gap: 4px;
  }

  .search-button {
    display: none;
  }

  .studio-hero {
    min-height: calc(100svh - 112px);
    padding: 54px 18px 84px;
  }

  .arcanum-hero-v2 {
    min-height: 760px;
    padding: 160px 22px 206px;
  }

  .arcanum-hero-copy .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .arcanum-hero-copy .hero-actions .button {
    width: 100%;
  }

  .arcanum-hero-meta {
    right: 22px;
    bottom: 24px;
    left: 22px;
  }

  .studio-frame {
    inset: 7px;
    width: calc(100% - 14px);
    height: calc(100% - 14px);
  }

  .studio-mark {
    width: 138px;
    height: 138px;
  }

  .studio-hero h1,
  .arcanum-hero-copy h1,
  .studio-about-copy h1,
  .detail-hero h1,
  .staff-header h1,
  .auth-copy h1,
  .museum-page-hero h1,
  .store-hero-copy h1 {
    font-size: 3rem;
  }

  .studio-hero .lead {
    font-size: 0.9rem;
  }

  .studio-status {
    grid-template-columns: 1fr;
    min-height: 54px;
  }

  .studio-status > span:not(:first-child) {
    display: none;
  }

  .home-section,
  .studio-principles,
  .team-section,
  .projects-band,
  .social-hub,
  .steps-section,
  .editorial-split,
  .value-list,
  .system-directory,
  .world-story,
  .world-philosophy,
  .faq-list,
  .download-callout,
  .next-path {
    padding-block: 54px;
  }

  .section-heading {
    display: grid;
    gap: 12px;
  }

  .section-heading h2,
  .studio-manifesto h2,
  .home-community h2,
  .social-hub h2 {
    font-size: 2.2rem;
  }

  .world-grid,
  .project-list,
  .arcanum-guide-grid,
  .museum-directory,
  .value-list,
  .social-hub nav,
  .archive-facts {
    grid-template-columns: 1fr;
  }

  .world-grid {
    min-height: 0;
  }

  .world-panel {
    min-height: 470px;
  }

  .team-track {
    grid-auto-columns: 100%;
  }

  .team-card {
    min-height: 400px;
  }

  .detail-hero {
    min-height: 0;
    gap: 28px;
    padding-block: 46px;
  }

  .detail-hero img {
    max-height: 250px;
  }

  .journey-steps li {
    grid-template-columns: 50px minmax(0, 1fr);
    gap: 12px;
  }

  .download-callout,
  .world-philosophy,
  .next-path,
  .staff-header,
  .control-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .feature-strip {
    grid-template-columns: 1fr 1fr;
  }

  .world-story > div {
    padding: 26px;
  }

  .museum-page-hero,
  .museum-page-hero-main {
    min-height: 0;
    padding: 48px 18px;
  }

  .museum-seal {
    display: none;
  }

  .museum-page .preserved-content .wp-block-cover {
    padding: 30px 14px !important;
  }

  .museum-page .preserved-content .wp-block-media-text {
    display: grid !important;
    grid-template-columns: 1fr !important;
  }

  .museum-page .preserved-content :where(h1, h2) {
    font-size: 1.85rem !important;
  }

  .archive-missing-card {
    padding: 32px 20px;
  }

  .raw-loja .wc-block-product-template {
    grid-template-columns: 1fr;
  }

  .account-page,
  .auth-page {
    min-height: 0;
    gap: 36px;
    padding-block: 48px;
  }

  .auth-form,
  .control-panel {
    padding: 22px 18px;
  }

  .staff-header {
    align-items: flex-start;
  }

  .control-panel > header {
    display: grid;
  }

  .control-switch {
    min-height: 96px;
  }

  .footer-main {
    grid-template-columns: 1fr;
  }

  .footer-brand {
    grid-column: auto;
  }
}

/* UX clarity pass: readable hierarchy, contextual feedback and purposeful motion. */
.main-nav a {
  font-size: 0.875rem;
}

.section-nav-title small,
.store-section-title > span,
.future-product-copy > small,
.museum-card small,
.archive-facts small {
  font-size: 0.75rem;
  line-height: 1.45;
}

.section-heading > p,
.world-panel p,
.studio-manifesto p,
.project-copy p,
.overview-lead > p:last-child,
.arcanum-guide-grid p,
.system-copy p,
.system-copy li,
.feature-primary p,
.arcanum-feature-grid article p,
.launcher-copy p,
.store-hero-copy > p,
.store-how li p,
.store-support small,
.auth-copy > p:not(.eyebrow),
.auth-copy li,
.staff-header p,
.control-switch small,
.staff-security p {
  font-size: 0.9375rem;
  line-height: 1.7;
}

.store-toolbar {
  margin-bottom: 48px;
}

.store-search input,
.store-filters button,
.favorites-filter {
  font-size: 0.8125rem;
}

.store-filters button,
.favorites-filter {
  min-height: 44px;
  padding-inline: 13px;
}

.store-empty {
  margin: 0 0 48px;
  padding: 18px 20px;
  border-left: 3px solid var(--stable-gold);
  background: rgba(224, 185, 111, 0.06);
  color: #d9d4ca;
  font-size: 0.9375rem;
}

.store-live-products .product-summary,
.future-product-copy p {
  min-height: 4.8em;
  color: var(--stable-muted);
  font-size: 0.875rem;
  line-height: 1.6;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.store-live-products .wp-block-woocommerce-product-button .wp-block-button__link,
.product-detail-button {
  min-height: 44px;
  font-size: 0.8125rem;
  font-weight: 700;
}

.product-action-message {
  min-height: 1.45em;
  margin: -8px 19px 14px;
  color: var(--stable-muted);
  font-size: 0.75rem;
  line-height: 1.45;
  text-align: left;
}

.product-action-message.success {
  color: var(--stable-success);
}

.product-action-message.error {
  color: var(--stable-danger);
}

.add_to_cart_button.is-busy {
  cursor: wait;
  opacity: 0.72;
}

.add_to_cart_button.is-success {
  background: var(--stable-success) !important;
  color: #07120c !important;
}

.add_to_cart_button.is-error {
  border-color: rgba(223, 127, 131, 0.55) !important;
}

.login-panel,
.auth-form {
  gap: 0;
}

.login-panel h2,
.auth-form h2 {
  margin-bottom: 8px;
}

.login-panel .form-intro {
  margin-bottom: 4px;
  color: var(--stable-muted);
  font-size: 0.875rem;
}

.login-panel label,
.auth-form label,
.control-field {
  gap: 7px;
  margin-top: 18px;
  color: #e4dfd5;
  font-size: 0.875rem;
  line-height: 1.4;
}

.login-panel input,
.auth-form input,
.control-field textarea {
  min-height: 48px;
  padding: 11px 13px;
  font-size: 0.9375rem;
  transition: border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}

.login-panel input:focus,
.auth-form input:focus,
.control-field textarea:focus {
  border-color: var(--stable-gold);
  box-shadow: 0 0 0 3px rgba(224, 185, 111, 0.12);
}

.login-panel label.has-error input,
.auth-form label.has-error input {
  border-color: var(--stable-danger);
  background: rgba(223, 127, 131, 0.045);
  box-shadow: 0 0 0 3px rgba(223, 127, 131, 0.08);
}

.field-hint,
.field-error {
  font-size: 0.75rem !important;
  font-weight: 500 !important;
  line-height: 1.5;
}

.field-hint {
  color: var(--stable-muted) !important;
}

.field-error {
  color: var(--stable-danger) !important;
}

.login-panel .button[type="submit"],
.auth-form .button[type="submit"] {
  margin-top: 24px;
}

.login-message,
.form-message {
  margin-top: 12px;
  color: var(--stable-muted);
  font-size: 0.8125rem;
  line-height: 1.55;
}

.login-message.error,
.login-message.success,
.form-message.error,
.form-message.success {
  padding: 10px 12px;
  border-left: 3px solid currentColor;
  background: rgba(255, 255, 255, 0.025);
}

.login-links,
.auth-form .text-link {
  margin-top: 16px;
}

.button svg,
.text-link svg,
.icon-button svg,
.favorite-button svg,
.product-detail-button svg,
.social-link svg {
  transform-origin: center;
  transition: transform 180ms cubic-bezier(0.2, 0.8, 0.2, 1), color 180ms ease;
}

.button:hover .lucide-arrow-right,
.text-link:hover .lucide-arrow-right {
  transform: translateX(3px);
}

.button:hover .lucide-arrow-up-right,
.text-link:hover .lucide-arrow-up-right {
  transform: translate(2px, -2px);
}

.button:hover .lucide-download,
.button:hover .lucide-monitor-down {
  transform: translateY(2px);
}

.favorite-button:hover svg,
.favorites-filter:hover svg,
.favorite-button.is-favorite svg {
  transform: scale(1.14);
}

.icon-button:hover .lucide-search,
.product-detail-button:hover .lucide-eye {
  transform: scale(1.1);
}

.menu-toggle[aria-expanded="true"] svg {
  transform: rotate(90deg);
}

.add_to_cart_button.is-success {
  animation: cart-confirm 360ms ease;
}

@keyframes cart-confirm {
  0% { transform: scale(1); }
  45% { transform: scale(0.97); }
  100% { transform: scale(1); }
}

@media (max-width: 860px) {
  .store-filters {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: thin;
  }

  .store-filters button {
    flex: 0 0 auto;
  }
}

@media (max-width: 580px) {
  .studio-hero-copy h1,
  .arcanum-hero-copy h1,
  .museum-page-hero h1,
  .store-hero-copy h1,
  .account-intro h1,
  .auth-copy h1,
  .staff-header h1 {
    font-size: 2.55rem;
    line-height: 1.02;
  }

  .section-heading h2,
  .studio-manifesto h2,
  .home-community h2,
  .social-hub h2,
  .store-section-title h2 {
    font-size: 2rem;
  }

  .store-toolbar {
    margin-bottom: 36px;
  }

  .store-live-products .wc-block-product {
    min-height: 0;
  }

  .store-live-products .product-summary,
  .future-product-copy p {
    min-height: 0;
    -webkit-line-clamp: 4;
  }

  .product-action-message {
    margin-inline: 17px;
  }
}

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