/* =====================================================================
   utilities.css — static, hand-written replacement for the Tailwind
   Play CDN script (cdn.tailwindcss.com).

   WHY THIS FILE EXISTS:
   The site previously loaded Tailwind's CDN "Play" build, which compiles
   utility classes to CSS at runtime in the browser using eval()-like
   code execution. Many hosting providers set a Content-Security-Policy
   header that blocks eval() for security reasons — when that happens,
   Tailwind's CDN script silently fails and the page renders completely
   unstyled. This file replaces it with plain, pre-written CSS covering
   every utility class actually used in index.html and main.js, so there
   is zero runtime code generation and nothing for a CSP to block.

   No class names changed in the HTML/JS — this is a drop-in swap.
   ===================================================================== */

/* ---------------------------------------------------------------------
   Preflight (minimal reset), matching the resets Tailwind's own
   Preflight applied, so removing the CDN script doesn't reintroduce
   default browser margins/spacing on headings, lists, buttons, etc.
--------------------------------------------------------------------- */
*, ::before, ::after {
  box-sizing: border-box;
  border-width: 0;
  border-style: solid;
  border-color: var(--color-line);
}
html {
  -webkit-text-size-adjust: 100%;
  tab-size: 4;
}
body {
  margin: 0;
}
h1, h2, h3, h4, h5, h6 {
  font-size: inherit;
  font-weight: inherit;
  margin: 0;
}
p {
  margin: 0;
}
a {
  color: inherit;
  text-decoration: inherit;
}
b, strong {
  font-weight: bolder;
}
button, input, optgroup, select, textarea {
  font-family: inherit;
  font-size: 100%;
  font-weight: inherit;
  line-height: inherit;
  color: inherit;
  margin: 0;
  padding: 0;
}
button, select {
  text-transform: none;
}
button, [type="button"], [type="reset"], [type="submit"] {
  -webkit-appearance: button;
  background-color: transparent;
  background-image: none;
  cursor: pointer;
}
:disabled {
  cursor: default;
}
img, svg, video, canvas, audio, iframe, embed, object {
  display: block;
  vertical-align: middle;
}
img, video {
  max-width: 100%;
  height: auto;
}
ul, ol {
  list-style: none;
  margin: 0;
  padding: 0;
}
[hidden] {
  display: none;
}
input::placeholder, textarea::placeholder {
  opacity: 1;
  color: var(--color-charcoal-soft);
}

/* ---------------------------------------------------------------------
   Layout / display
--------------------------------------------------------------------- */
.block { display: block; }
.flex { display: flex; }
.inline-flex { display: inline-flex; }
.grid { display: grid; }
.hidden { display: none; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.flex-grow { flex-grow: 1; }
.flex-shrink-0 { flex-shrink: 0; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.order-1 { order: 1; }
.order-2 { order: 2; }
.group { /* marker class for group-hover children */ }

.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.top-0 { top: 0; }
.top-3 { top: 0.75rem; }
.top-5 { top: 1.25rem; }
.bottom-0 { bottom: 0; }
.bottom-3 { bottom: 0.75rem; }
.bottom-8 { bottom: 2rem; }
.left-0 { left: 0; }
.left-3 { left: 0.75rem; }
.left-1\/2 { left: 50%; }
.right-0 { right: 0; }
.right-3 { right: 0.75rem; }
.right-5 { right: 1.25rem; }
.z-0 { z-index: 0; }
.z-10 { z-index: 10; }
.z-50 { z-index: 50; }
.z-\[9999\] { z-index: 9999; }
.z-\[10000\] { z-index: 10000; }
.z-\[10001\] { z-index: 10001; }

.overflow-hidden { overflow: hidden; }
.overflow-y-auto { overflow-y: auto; }
.scroll-mt-24 { scroll-margin-top: 6rem; }
.scroll-smooth { scroll-behavior: smooth; }
.cursor-pointer { cursor: pointer; }

.min-h-screen { min-height: 100vh; }
.mx-auto { margin-left: auto; margin-right: auto; }
.m-0 { margin: 0; }

.w-auto { width: auto; }
.w-full { width: 100%; }
.w-1\/2 { width: 50%; }
.w-1\/3 { width: 33.333333%; }
.w-3\/4 { width: 75%; }
.w-5 { width: 1.25rem; }
.w-16 { width: 4rem; }
.w-48 { width: 12rem; }
.h-full { height: 100%; }
.h-2 { height: 0.5rem; }
.h-4 { height: 1rem; }
.h-5 { height: 1.25rem; }
.h-14 { height: 3.5rem; }
.h-16 { height: 4rem; }
.h-44 { height: 11rem; }
.h-56 { height: 14rem; }
.h-60 { height: 15rem; }
.h-\[380px\] { height: 380px; }
.max-w-xl { max-width: 36rem; }
.max-w-2xl { max-width: 42rem; }
.max-w-3xl { max-width: 48rem; }
.max-w-4xl { max-width: 56rem; }
.max-w-none { max-width: none; }
.max-h-\[80vh\] { max-height: 80vh; }
.max-h-\[85vh\] { max-height: 85vh; }
.max-h-\[90vh\] { max-height: 90vh; }

.object-cover { object-fit: cover; }
.object-contain { object-fit: contain; }

.container { width: 100%; }
@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; } }

/* ---------------------------------------------------------------------
   Spacing — gap / margin / padding
--------------------------------------------------------------------- */
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-7 { gap: 1.75rem; }
.gap-8 { gap: 2rem; }
.gap-10 { gap: 2.5rem; }
.gap-12 { gap: 3rem; }
.gap-14 { gap: 3.5rem; }

.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-5 { margin-bottom: 1.25rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-9 { margin-bottom: 2.25rem; }
.mb-10 { margin-bottom: 2.5rem; }
.mb-12 { margin-bottom: 3rem; }
.mb-14 { margin-bottom: 3.5rem; }
.mb-16 { margin-bottom: 4rem; }
.mb-24 { margin-bottom: 6rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-5 { margin-top: 1.25rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-14 { margin-top: 3.5rem; }

.p-2 { padding: 0.5rem; }
.p-4 { padding: 1rem; }
.p-5 { padding: 1.25rem; }
.p-6 { padding: 1.5rem; }
.px-2 { padding-left: 0.5rem; padding-right: 0.5rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.py-1\.5 { padding-top: 0.375rem; padding-bottom: 0.375rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-14 { padding-top: 3.5rem; padding-bottom: 3.5rem; }
.pl-6 { padding-left: 1.5rem; }
.pt-6 { padding-top: 1.5rem; }
.pb-1 { padding-bottom: 0.25rem; }

.space-y-2 > * + * { margin-top: 0.5rem; }
.space-y-3 > * + * { margin-top: 0.75rem; }
.space-y-5 > * + * { margin-top: 1.25rem; }

/* ---------------------------------------------------------------------
   Typography
--------------------------------------------------------------------- */
.font-display { font-family: var(--font-display); }
.font-body { font-family: var(--font-body); }
.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.font-medium { font-weight: 500; }
.italic { font-style: italic; }
.underline { text-decoration-line: underline; }
.text-left { text-align: left; }
.text-center { text-align: center; }
.tracking-wide { letter-spacing: 0.025em; }
.leading-none { line-height: 1; }
.leading-relaxed { line-height: 1.625; }
.leading-\[1\.1\] { line-height: 1.1; }

.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-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
.text-4xl { font-size: 2.25rem; line-height: 2.5rem; }

/* ---------------------------------------------------------------------
   Colors — background / text / border, incl. slash-opacity variants
--------------------------------------------------------------------- */
.bg-charcoal { background-color: var(--color-charcoal); }
.bg-charcoal\/70 { background-color: rgba(34, 30, 26, 0.7); }
.bg-cream { background-color: var(--color-cream); }
.bg-cream-deep { background-color: var(--color-cream-deep); }
.bg-cream\/98 { background-color: rgba(251, 248, 243, 0.98); }
.bg-paper { background-color: var(--color-paper); }
.bg-white { background-color: #ffffff; }
.bg-black\/90 { background-color: rgba(0, 0, 0, 0.9); }
.bg-bronze { background-color: var(--color-bronze); }

.bg-gradient-to-t { background-image: linear-gradient(to top, var(--tw-gradient-stops)); }
.bg-gradient-to-r { background-image: linear-gradient(to right, var(--tw-gradient-stops)); }
.from-charcoal\/80 { --tw-gradient-from: rgba(34, 30, 26, 0.8); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(34, 30, 26, 0)); }
.via-charcoal\/45 { --tw-gradient-stops: var(--tw-gradient-from), rgba(34, 30, 26, 0.45), var(--tw-gradient-to, rgba(34, 30, 26, 0)); }
.to-charcoal\/30 { --tw-gradient-to: rgba(34, 30, 26, 0.3); }
.from-bronze { --tw-gradient-from: var(--color-bronze); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(184, 134, 59, 0)); }
.to-bronze-light { --tw-gradient-to: var(--color-bronze-light); }

.text-charcoal { color: var(--color-charcoal); }
.text-charcoal-soft { color: var(--color-charcoal-soft); }
.text-cream { color: var(--color-cream); }
.text-cream\/60 { color: rgba(251, 248, 243, 0.6); }
.text-cream\/70 { color: rgba(251, 248, 243, 0.7); }
.text-cream\/80 { color: rgba(251, 248, 243, 0.8); }
.text-white { color: #ffffff; }
.text-white\/80 { color: rgba(255, 255, 255, 0.8); }
.text-white\/85 { color: rgba(255, 255, 255, 0.85); }
.text-bronze-dark { color: var(--color-bronze-dark); }
.text-bronze-light { color: var(--color-bronze-light); }

.border { border-width: 1px; }
.border-4 { border-width: 4px; }
.border-b { border-bottom-width: 1px; }
.border-t { border-top-width: 1px; }
.border-l-2 { border-left-width: 2px; }
.border-line { border-color: var(--color-line); }
.border-bronze { border-color: var(--color-bronze); }
.border-paper { border-color: var(--color-paper); }
.border-charcoal\/30 { border-color: rgba(34, 30, 26, 0.3); }
.border-cream\/15 { border-color: rgba(251, 248, 243, 0.15); }

.rounded { border-radius: 0.25rem; }
.rounded-md { border-radius: 0.375rem; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-2xl { border-radius: 1rem; }
.rounded-t-2xl { border-top-left-radius: 1rem; border-top-right-radius: 1rem; }
.rounded-full { border-radius: 9999px; }

.shadow-xl { box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1); }
.shadow-2xl { box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25); }

.backdrop-blur-sm { backdrop-filter: blur(4px); }
.backdrop-blur-md { backdrop-filter: blur(12px); }

/* ---------------------------------------------------------------------
   Transitions / transforms / animation
--------------------------------------------------------------------- */
.transition {
  transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;
  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;
}
.duration-500 { transition-duration: 500ms; }

.scale-110 { transform: scale(1.1); }
.-translate-x-1\/2 { transform: translateX(-50%); }
.translate-y-full { transform: translateY(100%); }

@keyframes bounce {
  0%, 100% { transform: translateY(-25%); animation-timing-function: cubic-bezier(0.8, 0, 1, 1); }
  50% { transform: none; animation-timing-function: cubic-bezier(0, 0, 0.2, 1); }
}
.animate-bounce { animation: bounce 1s infinite; }

/* ---------------------------------------------------------------------
   Accessibility utilities
--------------------------------------------------------------------- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}
.focus\:not-sr-only:focus {
  position: static;
  width: auto;
  height: auto;
  padding: 0;
  margin: 0;
  overflow: visible;
  clip: auto;
  white-space: normal;
}

/* ---------------------------------------------------------------------
   Prose (article modal body copy)
--------------------------------------------------------------------- */
.prose { color: var(--color-charcoal-soft); line-height: 1.75; }
.prose p { margin-top: 1.25em; margin-bottom: 1.25em; }
.prose p:first-child { margin-top: 0; }
.prose-neutral { color: var(--color-charcoal-soft); }

/* ---------------------------------------------------------------------
   Loading skeleton helper widths (used by the skeleton card templates)
--------------------------------------------------------------------- */
/* (skeleton itself is already defined in style.css) */

/* ---------------------------------------------------------------------
   Important-prefixed utilities (Tailwind's `!` prefix)
--------------------------------------------------------------------- */
.\!border-white { border-color: #ffffff !important; }
.\!pb-16 { padding-bottom: 4rem !important; }
.\!pb-24 { padding-bottom: 6rem !important; }
.\!pt-40 { padding-top: 10rem !important; }
.\!px-5 { padding-left: 1.25rem !important; padding-right: 1.25rem !important; }
.\!py-2 { padding-top: 0.5rem !important; padding-bottom: 0.5rem !important; }
.\!py-2\.5 { padding-top: 0.625rem !important; padding-bottom: 0.625rem !important; }
.\!text-white { color: #ffffff !important; }

/* ---------------------------------------------------------------------
   State variants — hover / focus / file / group-hover
--------------------------------------------------------------------- */
.hover\:bg-charcoal:hover { background-color: var(--color-charcoal); }
.hover\:text-cream:hover { color: var(--color-cream); }
.hover\:text-bronze-dark:hover { color: var(--color-bronze-dark); }
.hover\:text-bronze-light:hover { color: var(--color-bronze-light); }
.hover\:\!bg-white:hover { background-color: #ffffff !important; }
.hover\:\!text-charcoal:hover { color: var(--color-charcoal) !important; }

.focus\:outline-none:focus { outline: none; }
.focus\:bg-charcoal:focus { background-color: var(--color-charcoal); }
.focus\:text-cream:focus { color: var(--color-cream); }
.focus\:fixed:focus { position: fixed; }
.focus\:left-2:focus { left: 0.5rem; }
.focus\:top-2:focus { top: 0.5rem; }
.focus\:px-4:focus { padding-left: 1rem; padding-right: 1rem; }
.focus\:py-2:focus { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.focus\:rounded-md:focus { border-radius: 0.375rem; }
.focus\:z-\[10000\]:focus { z-index: 10000; }

.group:hover .group-hover\:scale-110 { transform: scale(1.1); }

.file\:border-0::file-selector-button { border-width: 0; }
.file\:mr-4::file-selector-button { margin-right: 1rem; }
.file\:py-2::file-selector-button { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.file\:px-4::file-selector-button { padding-left: 1rem; padding-right: 1rem; }
.file\:rounded-full::file-selector-button { border-radius: 9999px; }
.file\:font-semibold::file-selector-button { font-weight: 600; }
.file\:bg-charcoal::file-selector-button { background-color: var(--color-charcoal); }
.file\:text-cream::file-selector-button { color: var(--color-cream); }

/* ---------------------------------------------------------------------
   Responsive variants
   Breakpoints match Tailwind defaults: sm 640px, md 768px, lg 1024px
--------------------------------------------------------------------- */
@media (min-width: 640px) {
  .sm\:col-span-2 { grid-column: span 2 / span 2; }
  .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 768px) {
  .md\:flex-row { flex-direction: row; }
  .md\:gap-4 { gap: 1rem; }
  .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .md\:h-16 { height: 4rem; }
  .md\:items-start { align-items: flex-start; }
  .md\:order-1 { order: 1; }
  .md\:order-2 { order: 2; }
  .md\:p-8 { padding: 2rem; }
  .md\:p-10 { padding: 2.5rem; }
  .md\:px-12 { padding-left: 3rem; padding-right: 3rem; }
  .md\:text-left { text-align: left; }
  .md\:text-xl { font-size: 1.25rem; line-height: 1.75rem; }
  .md\:text-2xl { font-size: 1.5rem; line-height: 2rem; }
  .md\:text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
  .md\:text-5xl { font-size: 3rem; line-height: 1; }
  .md\:text-6xl { font-size: 3.75rem; line-height: 1; }
  .md\:w-32 { width: 8rem; }
}

@media (min-width: 1024px) {
  .lg\:flex { display: flex; }
  .lg\:hidden { display: none; }
  .lg\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
