:root {
  --polish-ink: #3a2330;
  --polish-plum: #6d3852;
  --polish-pink: #ff92c1;
  --polish-caramel: #eeb77d;
  --polish-cream: #fff9f4;
  --polish-line: rgba(109, 56, 82, 0.24);
  --polish-shadow: 0 18px 48px rgba(109, 56, 82, 0.13);
  --polish-shadow-hover: 0 22px 58px rgba(109, 56, 82, 0.2);
  --polish-focus: 0 0 0 4px rgba(255, 146, 193, 0.34);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scrollbar-color: var(--polish-plum) rgba(255, 249, 244, 0.55);
  scrollbar-width: thin;
}

body {
  min-width: 320px;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

::selection {
  color: var(--polish-cream);
  background: var(--polish-plum);
}

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

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

a,
button,
input,
select,
textarea {
  transition:
    color 160ms ease,
    background-color 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease,
    opacity 160ms ease,
    transform 160ms ease;
}

:where(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline: 2px solid var(--polish-plum);
  outline-offset: 3px;
  box-shadow: var(--polish-focus);
}

:where(button, [role="button"]):not(:disabled) {
  cursor: pointer;
}

:where(button, input, select, textarea):disabled {
  cursor: not-allowed;
}

.header-pill,
.builder-header,
.grid-header,
.siteHeader,
.honoraries-header {
  isolation: isolate;
  border-color: rgba(255, 212, 122, 0.76) !important;
  box-shadow: var(--polish-shadow);
  -webkit-backdrop-filter: blur(16px) saturate(115%);
  backdrop-filter: blur(16px) saturate(115%);
}

.header-logo,
.builder-brand,
.grid-brand,
.brand,
.honoraries-brand,
.footer-logo {
  flex: 0 0 auto;
}

.menu-btn,
.back-link,
.honoraries-back-link,
.header-social-link {
  min-width: 42px;
  min-height: 42px;
}

.menu-btn:hover,
.back-link:hover,
.honoraries-back-link:hover,
.header-social-link:hover {
  transform: translateY(-2px);
}

.hero,
.builder-shell,
.grid-shell,
.snapshot-page,
.honoraries-main {
  width: min(100%, 1440px);
  margin-inline: auto;
}

.hero-logo-wordmark {
  width: min(72vw, 900px);
  height: auto;
  filter: drop-shadow(0 12px 30px rgba(109, 56, 82, 0.08));
}

.hero-sub {
  max-width: 720px;
  margin-inline: auto;
  line-height: 1.55;
}

.hero-socials {
  gap: 12px;
}

.hero-socials .header-social-link {
  display: inline-grid;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 999px;
}

.hero-socials .header-social-link:hover,
.hero-socials .header-social-link:focus-visible {
  border-color: var(--polish-line);
  background: rgba(255, 249, 244, 0.55);
}

.hon-expand {
  border-radius: 22px;
  box-shadow: 0 14px 36px rgba(109, 56, 82, 0.1);
}

.hon-card {
  box-shadow: 0 10px 28px rgba(109, 56, 82, 0.1);
}

.hon-card:hover,
.hon-card:focus-within {
  z-index: 2;
  box-shadow: var(--polish-shadow-hover);
}

.trait-builder-card,
.viewer-card,
.preview-panel,
.traits-panel,
.collection-panel,
.control-panel,
.settings-panel,
.snapshot-intro-card,
.tool,
.honoraries-note,
.honorary-card {
  border-color: var(--polish-line) !important;
  box-shadow: var(--polish-shadow);
}

.trait-builder-card:hover,
.viewer-card:hover,
.honorary-card:hover,
.honorary-card:focus-within {
  box-shadow: var(--polish-shadow-hover);
}

.primary-action:hover,
.share-action:hover,
.lime-button:hover,
.download-button:hover,
.snapshot-enter:hover,
.honorary-card-actions a:hover {
  transform: translateY(-2px);
}

.canvas-frame,
.canvas-wrap,
.honorary-card-media {
  background-color: rgba(255, 249, 244, 0.64);
}

.honorary-card-art {
  background: linear-gradient(145deg, rgba(255, 249, 244, 0.9), rgba(251, 224, 224, 0.66));
}

.honorary-process-toggle {
  box-shadow: 0 8px 22px rgba(58, 35, 48, 0.2);
}

.honorary-process-toggle:hover,
.honorary-process-toggle:focus-visible {
  transform: translateY(-2px) scale(1.04);
}

.site-footer {
  border-top-color: var(--polish-line) !important;
}

.footer-inner {
  width: min(100%, 1440px);
  margin-inline: auto;
}

@media (max-width: 900px) {
  .header-pill,
  .builder-header,
  .grid-header,
  .siteHeader,
  .honoraries-header {
    width: calc(100% - 28px) !important;
    margin-inline: auto !important;
  }

  .hero-logo-wordmark {
    width: min(88vw, 720px);
  }

  .builder-shell,
  .grid-shell,
  .snapshot-page,
  .honoraries-main {
    width: 100%;
  }
}

@media (max-width: 600px) {
  .header-pill,
  .builder-header,
  .grid-header,
  .siteHeader,
  .honoraries-header {
    width: calc(100% - 20px) !important;
  }

  .menu-btn,
  .back-link,
  .honoraries-back-link,
  .header-social-link {
    min-width: 40px;
    min-height: 40px;
  }

  .hero-logo-wordmark {
    width: 92vw;
  }

  .hon-expand {
    border-radius: 16px;
  }

  .footer-inner {
    gap: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
