/* Deep Sea Fauna — dark gothic palette */

:root {
  --void: #09080c;
  --vault: #12101a;
  --catacomb: #1a1626;
  --bone: #e8e4dc;
  --mist: #8f887a;
  --accent: #9b7fc9;
  --blood: #b84d62;
  --tallow: #d4b56a;
}

* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

html,
body {
  max-width: 100vw;
  overflow-x: hidden;
  background-color: var(--vault);
  color: var(--bone);
  font-family: 'IM Fell English', 'Libre Baskerville', Georgia, 'Times New Roman', serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

html {
  scroll-behavior: smooth;
}

::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--void);
}

::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--tallow);
}

::selection {
  background-color: var(--accent);
  color: var(--void);
}

.text-bone { color: var(--bone); }
.text-void { color: var(--void); }
.text-vault { color: var(--vault); }
.text-mist { color: var(--mist); }
.text-accent { color: var(--accent); }
.text-blood { color: var(--blood); }
.text-tallow { color: var(--tallow); }

.bg-void { background-color: var(--void); }
.bg-vault { background-color: var(--vault); }
.bg-catacomb { background-color: var(--catacomb); }
.bg-accent { background-color: var(--accent); }
.bg-blood { background-color: var(--blood); }
.bg-tallow { background-color: var(--tallow); }

.border { border-width: 1px; border-style: solid; }
.border-bone { border-color: var(--bone); }
.border-accent { border-color: var(--accent); }
.border-transparent { border-color: transparent; }

.hover\:text-accent:hover { color: var(--accent); }
.hover\:bg-tallow:hover { background-color: var(--tallow); }
.hover\:bg-void:hover { background-color: var(--void); }
.hover\:text-bone:hover { color: var(--bone); }

/* Layout utilities */
.container { width: 100%; margin-left: auto; margin-right: auto; padding-left: 1rem; padding-right: 1rem; }
@media (min-width: 640px) { .container { max-width: 640px; } }
@media (min-width: 768px) { .container { max-width: 768px; } }
@media (min-width: 1024px) { .container { max-width: 1024px; } }
@media (min-width: 1280px) { .container { max-width: 1280px; } }
@media (min-width: 1536px) { .container { max-width: 1536px; } }

.mx-auto { margin-left: auto; margin-right: auto; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.py-20 { padding-top: 5rem; padding-bottom: 5rem; }
.pt-20 { padding-top: 5rem; }
.pb-20 { padding-bottom: 5rem; }
.mt-20 { margin-top: 5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-12 { margin-bottom: 3rem; }

/* Flexbox */
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.flex-col { flex-direction: column; }
.space-x-4 > * + * { margin-left: 1rem; }
.space-x-8 > * + * { margin-left: 2rem; }
.space-y-2 > * + * { margin-top: 0.5rem; }
.space-y-4 > * + * { margin-top: 1rem; }
.space-y-6 > * + * { margin-top: 1.5rem; }
.space-y-8 > * + * { margin-top: 2rem; }
.gap-2 { gap: 0.5rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }

/* Grid */
.grid { display: grid; }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (min-width: 768px) {
  .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .md\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .md\:flex { display: flex; }
  .md\:hidden { display: none; }
  .md\:p-2 { padding: 0.5rem; }
}
@media (min-width: 1024px) {
  .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lg\:col-span-1 { grid-column: span 1 / span 1; }
  .lg\:col-span-2 { grid-column: span 2 / span 2; }
  .lg\:block { display: block; }
}

/* Typography */
.text-xs { font-size: 0.75rem; line-height: 1rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
.text-5xl { font-size: 3rem; line-height: 1; }
.text-6xl { font-size: 3.75rem; line-height: 1; }
.text-8xl { font-size: 6rem; line-height: 1; }
@media (min-width: 768px) {
  .md\:text-2xl { font-size: 1.5rem; line-height: 2rem; }
  .md\:text-5xl { font-size: 3rem; line-height: 1; }
  .md\:text-6xl { font-size: 3.75rem; line-height: 1; }
  .md\:text-8xl { font-size: 6rem; line-height: 1; }
}

.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.font-medium { font-weight: 500; }
.font-mono { font-family: ui-monospace, monospace; }

.text-center { text-align: center; }
.leading-relaxed { line-height: 1.625; }

/* Positioning */
.fixed { position: fixed; }
.relative { position: relative; }
.absolute { position: absolute; }
.sticky { position: sticky; }
.top-0 { top: 0; }
.top-24 { top: 6rem; }
.left-0 { left: 0; }
.right-0 { right: 0; }
.bottom-20 { bottom: 5rem; }
.top-20 { top: 5rem; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.z-10 { z-index: 10; }
.z-50 { z-index: 50; }

/* Sizing */
.w-full { width: 100%; }
.w-10 { width: 2.5rem; }
.w-12 { width: 3rem; }
.w-14 { width: 3.5rem; }
.w-16 { width: 4rem; }
.w-18 { width: 4.5rem; }
.w-20 { width: 5rem; }
.w-22 { width: 5.5rem; }
.w-24 { width: 6rem; }
.w-26 { width: 6.5rem; }
.w-28 { width: 7rem; }
.w-30 { width: 7.5rem; }
.w-32 { width: 8rem; }
.w-34 { width: 8.5rem; }
.w-36 { width: 9rem; }
.w-38 { width: 9.5rem; }
.w-40 { width: 10rem; }
.w-44 { width: 11rem; }
.h-10 { height: 2.5rem; }
.h-12 { height: 3rem; }
.h-14 { height: 3.5rem; }
.h-16 { height: 4rem; }
.h-18 { height: 4.5rem; }
.h-20 { height: 5rem; }
.h-22 { height: 5.5rem; }
.h-24 { height: 6rem; }
.h-26 { height: 6.5rem; }
.h-28 { height: 7rem; }
.h-30 { height: 7.5rem; }
.h-32 { height: 8rem; }
.h-34 { height: 8.5rem; }
.h-36 { height: 9rem; }
.h-38 { height: 9.5rem; }
.h-40 { height: 10rem; }
.h-44 { height: 11rem; }
.h-80 { height: 20rem; }
.min-h-screen { min-height: 100vh; }
.max-w-2xl { max-width: 42rem; }
.max-w-4xl { max-width: 56rem; }
.max-w-6xl { max-width: 72rem; }

/* Borders & Rounded */
.rounded-lg { border-radius: 0.5rem; }
.rounded-full { border-radius: 9999px; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-2xl { border-radius: 1rem; }
.border-2 { border-width: 2px; }
.border-4 { border-width: 4px; }
.border-t { border-top-width: 1px; }

/* Shadows — cooler, deeper */
.shadow-lg {
  box-shadow:
    0 10px 25px -5px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(232, 228, 220, 0.06);
}
.shadow-xl {
  box-shadow:
    0 20px 40px -8px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(155, 127, 201, 0.12);
}
.shadow-2xl {
  box-shadow:
    0 28px 55px -12px rgba(0, 0, 0, 0.65),
    0 0 40px -10px rgba(155, 127, 201, 0.15);
}

/* Background gradients */
.bg-gradient-to-br { background-image: linear-gradient(to bottom right, var(--tw-gradient-stops)); }
.bg-gradient-to-t { background-image: linear-gradient(to top, var(--tw-gradient-stops)); }
.from-vault { --tw-gradient-from: var(--vault); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(18, 16, 26, 0)); }
.via-accent\/10 { --tw-gradient-stops: var(--tw-gradient-from), rgba(155, 127, 201, 0.1), var(--tw-gradient-to, rgba(155, 127, 201, 0.1)); }
.to-tallow\/10 { --tw-gradient-to: rgba(212, 181, 106, 0.12); }
.from-accent\/20 { --tw-gradient-from: rgba(155, 127, 201, 0.22); }
.to-tallow\/20 { --tw-gradient-to: rgba(212, 181, 106, 0.18); }
.from-bone\/60 { --tw-gradient-from: rgba(232, 228, 220, 0.08); }
.from-void\/60 { --tw-gradient-from: rgba(9, 8, 12, 0.65); }
.via-transparent { --tw-gradient-stops: var(--tw-gradient-from), transparent, var(--tw-gradient-to, transparent); }
.to-transparent { --tw-gradient-to: transparent; }

.flex-wrap { flex-wrap: wrap; }
.flex-1 { flex: 1 1 0%; }
.w-5 { width: 1.25rem; }
.h-5 { height: 1.25rem; }
.w-6 { width: 1.5rem; }
.h-6 { height: 1.5rem; }
.w-4 { width: 1rem; }
.h-4 { height: 1rem; }
.p-2 { padding: 0.5rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.px-8 { padding-left: 2rem; padding-right: 2rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-8 { margin-top: 2rem; }
.mt-16 { margin-top: 4rem; }
.-top-1 { top: -0.25rem; }
.-right-1 { right: -0.25rem; }
.gap-3 { gap: 0.75rem; }

/* Opacity */
.opacity-0 { opacity: 0; }
.opacity-30 { opacity: 0.3; }
.opacity-50 { opacity: 0.5; }
.opacity-80 { opacity: 0.8; }
.opacity-95 { opacity: 0.95; }

/* Transitions */
.transition-all { transition-property: all; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.transition-colors { transition-property: color, background-color, border-color; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.transition-opacity { transition-property: opacity; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.transition-transform { transition-property: transform; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.transition-shadow { transition-property: box-shadow; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.duration-300 { transition-duration: 300ms; }
.duration-500 { transition-duration: 500ms; }

/* Transform */
.transform { transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y)); }
.hover\:scale-105:hover { --tw-scale-x: 1.05; --tw-scale-y: 1.05; }
.hover\:scale-110:hover { --tw-scale-x: 1.1; --tw-scale-y: 1.1; }
.scale-110 { --tw-scale-x: 1.1; --tw-scale-y: 1.1; }

/* Overflow */
.overflow-hidden { overflow: hidden; }
.overflow-x-hidden { overflow-x: hidden; }

/* Object fit */
.object-cover { object-fit: cover; }
.object-contain { object-fit: contain; }

/* Aspect ratio */
.aspect-square { aspect-ratio: 1 / 1; }

/* Cursor */
.cursor-pointer { cursor: pointer; }
.cursor-not-allowed { cursor: not-allowed; }

/* Line clamp */
.line-clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* Backdrop blur */
.backdrop-blur-md { backdrop-filter: blur(12px); }

/* Blur */
.blur-sm { filter: blur(4px); }
.blur-md { filter: blur(12px); }
.blur-lg { filter: blur(16px); }
.blur-xl { filter: blur(24px); }
.blur-2xl { filter: blur(40px); }

/* List */
.list-inside { list-style-position: inside; }
.list-disc { list-style-type: disc; }

/* Flex shrink */
.flex-shrink-0 { flex-shrink: 0; }

/* Block */
.block { display: block; }
.inline-block { display: inline-block; }
.hidden { display: none; }

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

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

.animate-spin { animation: spin 1s linear infinite; }
.animate-fade-in { animation: fadeIn 0.5s ease-in-out; }
.animate-slide-up { animation: slideUp 0.5s ease-out; }

@media (min-width: 640px) {
  .sm\:flex-row { flex-direction: row; }
}

/* Group hover */
.group:hover .group-hover\:scale-110 { --tw-scale-x: 1.1; --tw-scale-y: 1.1; }
.group:hover .group-hover\:opacity-100 { opacity: 1; }
.group:hover .group-hover\:text-accent { color: var(--accent); }

/* Wordmark */
header .site-wordmark {
  letter-spacing: 0.18em;
  font-weight: 600;
}

@media (min-width: 768px) {
  header .site-wordmark {
    letter-spacing: 0.22em;
  }
}
