/* ==========================================================================
   Veyora Studio — Core Design System & Stylesheet
   Palette derived from the official Veyora Studio emblem:
   Obsidian (#0D1015), Brushed Gold (#C8A253 / #8C6A28), Warm Ivory (#FAF8F4)
   ========================================================================== */

:root {
  /* Brand & Surface Colors */
  --bg-obsidian: #0D1015;
  --bg-obsidian-soft: #151A23;
  --bg-obsidian-card: #1A202B;
  --bg-ivory: #FAF8F4;
  --bg-surface: #FFFFFF;
  --bg-subtle: #F3EFE7;

  /* Gold Accents */
  --gold-primary: #C8A253;
  --gold-light: #E2C686;
  --gold-hover: #B68F40;
  --gold-text-on-light: #7D5C1E; /* WCAG AA/AAA >= 5.2:1 on white/ivory */
  --gold-tint: rgba(200, 162, 83, 0.12);

  /* Ink & Borders */
  --ink-primary: #14171D;
  --ink-secondary: #434A57;
  --ink-muted: #5C6473;
  --ink-on-dark: #F5F2EB;
  --ink-on-dark-muted: #B8BEC9;
  --border-light: #E5DFD3;
  --border-strong: #D4CBB8;
  --border-dark: rgba(226, 198, 134, 0.22);

  /* Semantic States */
  --error-text: #B42318;
  --error-bg: #FEF3F2;
  --error-border: #FECDCA;
  --success-text: #166534;
  --success-bg: #F0FDF4;
  --success-border: #BBF7D0;

  /* Typography */
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-serif: Georgia, "Iowan Old Style", "Palatino Linotype", "Book Antiqua", serif;

  /* Layout & Spacing */
  --container-max: 1200px;
  --container-narrow: 820px;
  --header-height: 76px;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 3px rgba(13, 16, 21, 0.06);
  --shadow-md: 0 8px 24px rgba(13, 16, 21, 0.08);
  --shadow-lg: 0 18px 40px rgba(13, 16, 21, 0.16);
  --transition: 0.2s ease;
}

/* Reset & Base */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink-primary);
  background-color: var(--bg-ivory);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

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

a {
  color: var(--gold-text-on-light);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color var(--transition), background-color var(--transition), border-color var(--transition);
}

a:hover {
  color: var(--ink-primary);
}

/* Visible Keyboard Focus */
:focus-visible {
  outline: 2px solid var(--gold-primary);
  outline-offset: 3px;
}

/* Accessibility Utilities */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 2000;
  padding: 10px 18px;
  background: var(--gold-primary);
  color: var(--bg-obsidian);
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius-sm);
}

.skip-link:focus {
  top: 12px;
}

/* Containers & Sections */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: 24px;
}

.container-narrow {
  width: 100%;
  max-width: var(--container-narrow);
  margin-inline: auto;
  padding-inline: 24px;
}

.section {
  padding-block: 72px;
}

.section-subtle {
  background-color: var(--bg-subtle);
  border-block: 1px solid var(--border-light);
}

.section-dark {
  background-color: var(--bg-obsidian);
  color: var(--ink-on-dark);
}

.section-header {
  max-width: 680px;
  margin-bottom: 40px;
}

.section-header-center {
  text-align: center;
  margin-inline: auto;
}

.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-text-on-light);
  margin-bottom: 10px;
}

.section-dark .eyebrow,
.hero .eyebrow,
.page-hero .eyebrow {
  color: var(--gold-light);
}

h1, h2, h3, h4 {
  margin-top: 0;
  line-height: 1.25;
  color: var(--ink-primary);
  letter-spacing: -0.015em;
}

.section-dark h1,
.section-dark h2,
.section-dark h3,
.hero h1,
.page-hero h1 {
  color: var(--ink-on-dark);
}

h1 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 3.8vw, 3.1rem);
  font-weight: 600;
  margin-bottom: 18px;
}

h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.55rem, 2.5vw, 2.15rem);
  font-weight: 600;
  margin-bottom: 14px;
}

h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 10px;
}

p {
  margin-top: 0;
  margin-bottom: 16px;
  color: var(--ink-secondary);
}

p:last-child {
  margin-bottom: 0;
}

.section-dark p,
.hero p,
.page-hero p {
  color: var(--ink-on-dark-muted);
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 900;
  background-color: var(--bg-obsidian);
  border-bottom: 1px solid var(--border-dark);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-height);
  gap: 20px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-logo {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(226, 198, 134, 0.35);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-name {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--gold-light);
}

.brand-tagline {
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-on-dark-muted);
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-list {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 24px;
}

.nav-link {
  color: var(--ink-on-dark);
  text-decoration: none;
  font-size: 0.94rem;
  font-weight: 500;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
}

.nav-link:hover,
.nav-link[aria-current="page"] {
  color: var(--gold-light);
  border-bottom-color: var(--gold-primary);
}

.mobile-menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-sm);
  color: var(--ink-on-dark);
  cursor: pointer;
}

.mobile-menu-btn:hover {
  border-color: var(--gold-primary);
  color: var(--gold-light);
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  font-family: var(--font-sans);
  font-size: 0.94rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color var(--transition), color var(--transition), border-color var(--transition), transform var(--transition);
}

.btn-sm {
  padding: 9px 16px;
  font-size: 0.875rem;
}

.btn-gold {
  background-color: var(--gold-primary);
  color: var(--bg-obsidian);
  border-color: var(--gold-primary);
}

.btn-gold:hover {
  background-color: var(--gold-light);
  border-color: var(--gold-light);
  color: var(--bg-obsidian);
}

.btn-outline-light {
  background-color: transparent;
  color: var(--ink-on-dark);
  border-color: rgba(226, 198, 134, 0.45);
}

.btn-outline-light:hover {
  background-color: rgba(226, 198, 134, 0.12);
  border-color: var(--gold-light);
  color: var(--gold-light);
}

.btn-dark {
  background-color: var(--bg-obsidian);
  color: var(--ink-on-dark);
  border-color: var(--bg-obsidian);
}

.btn-dark:hover {
  background-color: var(--bg-obsidian-card);
  color: var(--gold-light);
}

.btn-outline-dark {
  background-color: transparent;
  color: var(--ink-primary);
  border-color: var(--border-strong);
}

.btn-outline-dark:hover {
  border-color: var(--ink-primary);
  background-color: var(--bg-subtle);
  color: var(--ink-primary);
}

.btn-affiliate-disabled {
  background-color: var(--bg-subtle);
  color: var(--ink-muted);
  border: 1px dashed var(--border-strong);
  cursor: not-allowed;
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

/* ==========================================================================
   Hero & Page Hero
   ========================================================================== */
.hero {
  background-color: var(--bg-obsidian);
  color: var(--ink-on-dark);
  padding-block: 76px 84px;
  border-bottom: 1px solid var(--border-dark);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  gap: 48px;
  align-items: center;
}

.hero-lead {
  font-size: 1.1rem;
  line-height: 1.7;
  max-width: 600px;
  margin-bottom: 28px;
}

.hero-note {
  margin-top: 22px;
  font-size: 0.85rem;
  color: var(--ink-on-dark-muted);
  border-left: 2px solid var(--gold-primary);
  padding-left: 14px;
  max-width: 560px;
}

.hero-emblem-card {
  background-color: var(--bg-obsidian-soft);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center;
}

.hero-emblem-img {
  width: 180px;
  height: 180px;
  margin-inline: auto;
  margin-bottom: 20px;
  border-radius: 50%;
  border: 1px solid rgba(226, 198, 134, 0.35);
}

.hero-emblem-title {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: var(--gold-light);
  margin-bottom: 8px;
}

.hero-emblem-text {
  font-size: 0.9rem;
  color: var(--ink-on-dark-muted);
  margin-bottom: 0;
}

.page-hero {
  background-color: var(--bg-obsidian);
  color: var(--ink-on-dark);
  padding-block: 54px;
  border-bottom: 1px solid var(--border-dark);
}

.page-hero p {
  max-width: 680px;
  font-size: 1.05rem;
}

.page-meta {
  font-size: 0.85rem;
  color: var(--gold-light);
  margin-top: 12px;
}

/* ==========================================================================
   Service Overview Grid (Homepage)
   ========================================================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.service-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 28px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}

.service-card:hover {
  border-color: var(--gold-primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.service-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.service-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background-color: var(--bg-subtle);
  border: 1px solid var(--border-light);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-text-on-light);
  flex-shrink: 0;
}

.service-num {
  font-family: var(--font-serif);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gold-text-on-light);
  letter-spacing: 0.08em;
}

.service-examples {
  list-style: none;
  margin: 12px 0 20px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.service-examples li {
  font-size: 0.82rem;
  color: var(--ink-secondary);
  background-color: var(--bg-ivory);
  border: 1px solid var(--border-light);
  border-radius: 999px;
  padding: 4px 11px;
}

.service-card-link {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
  color: var(--gold-text-on-light);
}

.service-card-link:hover {
  color: var(--ink-primary);
}

/* ==========================================================================
   Feature / Value Pillars & Steps
   ========================================================================== */
.pillars-grid,
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.pillar-card,
.step-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 26px;
}

.step-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background-color: var(--bg-obsidian);
  color: var(--gold-light);
  font-weight: 700;
  font-size: 0.88rem;
  margin-bottom: 14px;
}

/* ==========================================================================
   Services Directory Page (services.html)
   ========================================================================== */
.category-jump-nav {
  background-color: var(--bg-surface);
  border-bottom: 1px solid var(--border-light);
  padding-block: 16px;
}

.jump-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.jump-list a {
  display: inline-block;
  font-size: 0.84rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--ink-secondary);
  background-color: var(--bg-ivory);
  border: 1px solid var(--border-light);
  border-radius: 999px;
  padding: 6px 13px;
}

.jump-list a:hover {
  border-color: var(--gold-primary);
  color: var(--ink-primary);
  background-color: var(--bg-subtle);
}

.services-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 200px;
  gap: 36px;
  align-items: start;
}

.services-layout:not(:has(.services-sidebar .ad-slot-wrapper:not([hidden]))) {
  grid-template-columns: minmax(0, 1fr);
}

.services-sidebar {
  position: sticky;
  top: calc(var(--header-height) + 24px);
}

.services-sidebar:not(:has(.ad-slot-wrapper:not([hidden]))) {
  height: 0;
  overflow: hidden;
}

.service-detail-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 32px;
  margin-bottom: 28px;
  scroll-margin-top: calc(var(--header-height) + 24px);
}

.service-detail-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.subservice-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 20px;
  list-style: none;
  margin: 18px 0 24px;
  padding: 0;
}

.subservice-list li {
  position: relative;
  padding-left: 18px;
  font-size: 0.94rem;
  color: var(--ink-primary);
}

.subservice-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--gold-primary);
}

.affiliate-slot-box {
  padding-top: 20px;
  border-top: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
}

.affiliate-pending-note {
  font-size: 0.84rem;
  color: var(--ink-muted);
  margin: 0;
}

.affiliate-inline-disclosure {
  font-size: 0.86rem;
  line-height: 1.55;
  color: var(--ink-primary);
  background-color: var(--bg-subtle);
  border-left: 3px solid var(--gold-primary);
  padding: 10px 14px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 0;
  width: 100%;
}

/* ==========================================================================
   Notice & Disclosure Callouts
   ========================================================================== */
.info-callout {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-left: 4px solid var(--gold-primary);
  border-radius: var(--radius-sm);
  padding: 20px 24px;
  margin-block: 24px;
}

.cta-banner {
  background-color: var(--bg-obsidian);
  color: var(--ink-on-dark);
  border-radius: var(--radius-lg);
  padding: 44px 40px;
  border: 1px solid var(--border-dark);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.cta-banner h2 {
  color: var(--ink-on-dark);
  margin-bottom: 8px;
}

.cta-banner p {
  color: var(--ink-on-dark-muted);
  max-width: 600px;
}

/* ==========================================================================
   Contact Page & Form
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 36px;
  align-items: start;
}

.contact-card,
.form-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 32px;
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--ink-primary);
  margin-bottom: 6px;
}

.form-hint {
  display: block;
  font-size: 0.82rem;
  color: var(--ink-muted);
  margin-bottom: 6px;
}

.form-control {
  width: 100%;
  padding: 11px 14px;
  font-family: var(--font-sans);
  font-size: 0.96rem;
  color: var(--ink-primary);
  background-color: var(--bg-ivory);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  transition: border-color var(--transition), background-color var(--transition);
}

.form-control:focus {
  background-color: var(--bg-surface);
  border-color: var(--gold-primary);
}

.form-control[aria-invalid="true"] {
  border-color: var(--error-text);
  background-color: var(--error-bg);
}

textarea.form-control {
  min-height: 140px;
  resize: vertical;
}

.field-error {
  display: block;
  font-size: 0.84rem;
  color: var(--error-text);
  margin-top: 6px;
  min-height: 1.2em;
}

.form-status {
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
  font-size: 0.92rem;
}

.form-status.is-error {
  background-color: var(--error-bg);
  border: 1px solid var(--error-border);
  color: var(--error-text);
}

.form-status.is-success {
  background-color: var(--success-bg);
  border: 1px solid var(--success-border);
  color: var(--success-text);
}

.form-status[hidden] {
  display: none;
}

/* ==========================================================================
   Prose / Legal Documents
   ========================================================================== */
.prose {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 40px;
}

.prose h2 {
  font-size: 1.4rem;
  margin-top: 32px;
  margin-bottom: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--border-light);
}

.prose h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.prose ul {
  padding-left: 22px;
  margin-bottom: 18px;
  color: var(--ink-secondary);
}

.prose li {
  margin-bottom: 8px;
}

/* ==========================================================================
   Advertising Containers (Adsterra — Consent-Gated)
   ========================================================================== */
.ad-slot-wrapper {
  margin-block: 32px;
  padding: 16px;
  background-color: var(--bg-subtle);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  text-align: center;
  overflow: hidden;
}

.ad-slot-wrapper[hidden] {
  display: none;
}

.ad-slot-sidebar {
  margin-block: 0;
  padding: 12px;
}

.ad-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 10px;
}

.ad-mount {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-inline: auto;
  max-width: 100%;
  overflow-x: auto;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background-color: var(--bg-obsidian);
  color: var(--ink-on-dark);
  border-top: 1px solid var(--border-dark);
  padding-top: 60px;
  padding-bottom: 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: 36px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border-dark);
}

.footer-brand-desc {
  margin-top: 14px;
  font-size: 0.9rem;
  color: var(--ink-on-dark-muted);
  max-width: 340px;
}

.footer-heading {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 14px;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a,
.footer-link-btn {
  color: var(--ink-on-dark-muted);
  text-decoration: none;
  font-size: 0.9rem;
  background: none;
  border: 0;
  padding: 0;
  font-family: inherit;
  cursor: pointer;
  text-align: left;
}

.footer-links a:hover,
.footer-link-btn:hover {
  color: var(--gold-light);
  text-decoration: underline;
}

.footer-bottom {
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  font-size: 0.84rem;
  color: var(--ink-on-dark-muted);
}

.footer-disclaimer {
  margin-top: 14px;
  font-size: 0.8rem;
  color: var(--ink-on-dark-muted);
  line-height: 1.55;
}

/* ==========================================================================
   Cookie Consent Banner & Native <dialog> Preferences Modal
   ========================================================================== */
.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 1200;
  max-width: 980px;
  margin-inline: auto;
  background-color: var(--bg-obsidian);
  color: var(--ink-on-dark);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.cookie-banner[hidden] {
  display: none;
}

.cookie-banner-copy {
  flex: 1 1 420px;
}

.cookie-banner-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--gold-light);
  margin: 0 0 6px;
}

.cookie-banner-text {
  font-size: 0.88rem;
  color: var(--ink-on-dark-muted);
  margin: 0;
}

.cookie-banner-text a {
  color: var(--gold-light);
}

.cookie-banner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* Native Modal Dialog — Modern Web Guidance Compliant */
dialog.cookie-dialog {
  padding: 0;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  background-color: var(--bg-surface);
  color: var(--ink-primary);
  max-width: 560px;
  width: calc(100% - 32px);
  box-shadow: var(--shadow-lg);
}

dialog.cookie-dialog:modal {
  overscroll-behavior: contain;
}

dialog.cookie-dialog::backdrop {
  background-color: rgba(13, 16, 21, 0.65);
  backdrop-filter: blur(2px);
  overflow: hidden;
  overscroll-behavior: contain;
}

.cookie-dialog-inner {
  padding: 28px;
}

.cookie-dialog-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.cookie-dialog-title {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  margin: 0;
  color: var(--ink-primary);
}

.cookie-dialog-close {
  background: transparent;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  color: var(--ink-primary);
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}

.cookie-dialog-close:hover {
  background-color: var(--bg-subtle);
}

.cookie-option {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 16px;
  margin-bottom: 14px;
  background-color: var(--bg-ivory);
}

.cookie-option-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}

.cookie-option-label {
  font-weight: 600;
  color: var(--ink-primary);
  font-size: 0.96rem;
}

.cookie-option-desc {
  font-size: 0.86rem;
  color: var(--ink-secondary);
  margin: 0;
}

.cookie-toggle {
  width: 20px;
  height: 20px;
  accent-color: var(--bg-obsidian);
  cursor: pointer;
}

.cookie-dialog-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
}

/* 404 Page */
.error-card {
  max-width: 600px;
  margin-inline: auto;
  text-align: center;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 52px 32px;
}

.error-code {
  font-family: var(--font-serif);
  font-size: 3.5rem;
  font-weight: 600;
  color: var(--gold-text-on-light);
  line-height: 1;
  margin-bottom: 12px;
}

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