/* Herssa base layout + utilities (logical CSS) */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--ivory);
  color: var(--espresso);
  font-family: var(--font-serif);
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  transition: background-color 500ms ease, color 500ms ease;
}

html.dark body,
.dark body {
  background: var(--richblack) !important;
  color: var(--ivory);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  transition: opacity 0.5s ease-in-out, filter 0.7s ease, transform 1s ease;
}

a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: none; background: none; }

.skip-link {
  position: absolute;
  inset-inline-start: 1rem;
  top: -100%;
  z-index: 100;
  padding: 0.75rem 1.25rem;
  background: var(--espresso);
  color: var(--ivory);
  font-family: var(--font-sans);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border-radius: 999px;
}
.skip-link:focus { top: 1rem; outline: 2px solid var(--rosegold); outline-offset: 2px; }

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

/* Scrollbar DNA */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--ivory); }
::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 3px; }
.dark ::-webkit-scrollbar-track { background: var(--richblack); }
.dark ::-webkit-scrollbar-thumb { background: #341508; }

.font-serif { font-family: var(--font-serif); }
.font-sans { font-family: var(--font-sans); }
.font-light { font-weight: 300; }
.font-normal { font-weight: 400; }
.font-medium { font-weight: 500; }
.italic { font-style: italic; }
.not-italic { font-style: normal; }
.uppercase { text-transform: uppercase; }
.tracking-tight { letter-spacing: -0.02em; }
.tracking-wide { letter-spacing: 0.05em; }
.tracking-widest { letter-spacing: 0.2em; }
.tracking-\[0\.2em\] { letter-spacing: 0.2em; }
.tracking-\[0\.25em\] { letter-spacing: 0.25em; }
.tracking-\[0\.3em\] { letter-spacing: 0.3em; }
.tabular-nums { font-variant-numeric: tabular-nums; }
.leading-none { line-height: 1; }
.leading-relaxed { line-height: 1.7; }
.leading-loose { line-height: 2; }
.whitespace-nowrap { white-space: nowrap; }
.select-none { user-select: none; }
.antialiased { -webkit-font-smoothing: antialiased; }

.text-center { text-align: center; }
.text-start { text-align: start; }
.text-end { text-align: end; }

.text-\[10px\] { font-size: 10px; }
.text-xs { font-size: 0.75rem; }
.text-sm { font-size: 0.875rem; }
.text-base { font-size: 1rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.text-3xl { font-size: 1.875rem; }
.text-5xl { font-size: 3rem; }
.text-6xl { font-size: 3.75rem; }
.text-7xl { font-size: 4.5rem; }
.text-\[16vw\] { font-size: 16vw; }

.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.sticky { position: sticky; }
.inset-0 { inset: 0; }
.top-0 { top: 0; }
.top-\[1px\] { top: 1px; }
.z-0 { z-index: 0; }
.z-10 { z-index: 10; }
.z-50 { z-index: 50; }
.z-\[60\] { z-index: 60; }
.z-\[70\] { z-index: 70; }

.flex { display: flex; }
.inline-flex { display: inline-flex; }
.grid { display: grid; }
.hidden { display: none; }
.block { display: block; }
.inline-block { display: inline-block; }
.contents { display: contents; }

.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-end { align-items: flex-end; }
.items-start { align-items: flex-start; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.self-end { align-self: flex-end; }
.grow { flex-grow: 1; }
.shrink-0 { flex-shrink: 0; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.gap-10 { gap: 2.5rem; }
.gap-12 { gap: 3rem; }
.gap-20 { gap: 5rem; }

.w-full { width: 100%; }
.w-px { width: 1px; }
.w-4 { width: 1rem; }
.w-8 { width: 2rem; }
.w-12 { width: 3rem; }
.w-28 { width: 7rem; }
.h-full { height: 100%; }
.h-px { height: 1px; }
.h-2 { height: 0.5rem; }
.h-4 { height: 1rem; }
.h-12 { height: 3rem; }
.h-16 { height: 4rem; }
.h-20 { height: 5rem; }
.h-28 { height: 7rem; }
.h-screen { height: 100vh; min-height: 100dvh; }
.min-h-screen { min-height: 100vh; min-height: 100dvh; }
.aspect-\[4\/5\] { aspect-ratio: 4 / 5; }
.max-w-2xl { max-width: 42rem; }
.max-w-3xl { max-width: 48rem; }
.max-w-4xl { max-width: 56rem; }
.max-w-5xl { max-width: 64rem; }
.max-w-6xl { max-width: 72rem; }
.max-w-7xl { max-width: 80rem; }
.max-w-screen-2xl { max-width: 1536px; }
.mx-auto { margin-inline: auto; }
.mx-4 { margin-inline: 1rem; }
.mx-3 { margin-inline: 0.75rem; }
.ms-2 { margin-inline-start: 0.5rem; }
.me-2 { margin-inline-end: 0.5rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-10 { margin-bottom: 2.5rem; }
.mb-12 { margin-bottom: 3rem; }
.mb-16 { margin-bottom: 4rem; }
.mb-20 { margin-bottom: 5rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-8 { margin-top: 2rem; }
.mt-16 { margin-top: 4rem; }
.mt-20 { margin-top: 5rem; }
.pt-4 { padding-top: 1rem; }
.pt-20 { padding-top: 5rem; }
.pb-8 { padding-bottom: 2rem; }
.px-0 { padding-inline: 0; }
.px-3 { padding-inline: 0.75rem; }
.px-4 { padding-inline: 1rem; }
.px-6 { padding-inline: 1.5rem; }
.px-8 { padding-inline: 2rem; }
.px-10 { padding-inline: 2.5rem; }
.py-1 { padding-block: 0.25rem; }
.py-2 { padding-block: 0.5rem; }
.py-4 { padding-block: 1rem; }
.py-5 { padding-block: 1.25rem; }
.py-8 { padding-block: 2rem; }
.py-12 { padding-block: 3rem; }
.py-32 { padding-block: 8rem; }
.p-1 { padding: 0.25rem; }
.p-2 { padding: 0.5rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }
.p-10 { padding: 2.5rem; }
.ps-10 { padding-inline-start: 2.5rem; }

.overflow-hidden { overflow: hidden; }
.object-cover { object-fit: cover; }
.pointer-events-none { pointer-events: none; }
.opacity-0 { opacity: 0; }
.opacity-40 { opacity: 0.4; }
.opacity-60 { opacity: 0.6; }
.opacity-80 { opacity: 0.8; }
.opacity-100 { opacity: 1; }

.rounded-full { border-radius: 9999px; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-2xl { border-radius: 1rem; }
.rounded-3xl { border-radius: 1.5rem; }

.border { border-width: 1px; border-style: solid; }
.border-b { border-bottom-width: 1px; border-bottom-style: solid; }
.border-t { border-top-width: 1px; border-top-style: solid; }
.border-e { border-inline-end-width: 1px; border-inline-end-style: solid; }
.border-transparent { border-color: transparent; }

.shadow-sm { box-shadow: 0 1px 2px color-mix(in srgb, var(--espresso) 8%, transparent); }
.shadow-lg { box-shadow: 0 10px 30px color-mix(in srgb, var(--espresso) 12%, transparent); }
.backdrop-blur-md { backdrop-filter: blur(12px); }
.backdrop-blur-sm { backdrop-filter: blur(6px); }
.transition-all { transition: all var(--ease); }
.transition-colors { transition: color 300ms ease, background-color 300ms ease, border-color 300ms ease; }
.transition-opacity { transition: opacity 300ms ease; }
.transition-transform { transition: transform 300ms ease; }
.duration-300 { transition-duration: 300ms; }
.duration-500 { transition-duration: 500ms; }
.duration-700 { transition-duration: 700ms; }
.duration-1000 { transition-duration: 1000ms; }

.grid-cols-1 { grid-template-columns: 1fr; }
.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid-cols-4 { grid-template-columns: repeat(4, 1fr); }
.columns-2 { columns: 2; }
.gap-y-4 > * + * { margin-top: 1rem; }

.filter { filter: var(--filter, none); }
.grayscale { filter: grayscale(1); }
.sepia-\[0\.15\] { filter: sepia(0.15) contrast(0.9); }
.sepia-\[0\.1\] { filter: sepia(0.1); }
.contrast-\[0\.9\] { filter: sepia(0.15) contrast(0.9); }

.group:hover .group-hover\:grayscale-0,
.grayscale.hover\:grayscale-0:hover { filter: grayscale(0); }
.group:hover .group-hover\:scale-105 { transform: scale(1.05); }
.group:hover .group-hover\:bg-transparent { background: transparent; }
.group:hover .group-hover\:inset-0 { inset: 0; }
.group:hover .group-hover\:text-gold { color: var(--gold); }
.hover\:opacity-80:hover { opacity: 0.8; }
.hover\:text-gold:hover { color: var(--gold); }
.hover\:text-rosegold:hover { color: var(--rosegold); }
.hover\:text-white:hover { color: #fff; }
.hover\:bg-gold:hover { background-color: var(--gold); color: #fff; }
.hover\:bg-camel\/5:hover { background-color: color-mix(in srgb, var(--camel) 5%, transparent); }
.hover\:border-rosegold\/30:hover { border-color: color-mix(in srgb, var(--rosegold) 30%, transparent); }
.hover\:shadow-lg:hover { box-shadow: 0 10px 30px color-mix(in srgb, var(--espresso) 12%, transparent); }

.bg-gradient-to-b {
  background-image: linear-gradient(to bottom, var(--tw-gradient-from, transparent), var(--tw-gradient-via, transparent), var(--tw-gradient-to, transparent));
}

.-inset-4 { inset: -1rem; }
.inset-e-8 { inset-inline-end: 2rem; }
.top-8 { top: 2rem; }

.translate-x-full-start {
  transform: translateX(-100%);
}
[dir="rtl"] .translate-x-full-start {
  transform: translateX(100%);
}
.drawer-panel.is-open {
  transform: translateX(0);
}

.fade-in-section {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1s ease-out, transform 1s ease-out;
}
.fade-in-section.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .fade-in-section {
    opacity: 1;
    transform: none;
    transition: none;
  }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

.icon {
  width: 1.25em;
  height: 1.25em;
  display: inline-block;
  vertical-align: middle;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon-lg { width: 1.75em; height: 1.75em; }
.icon-xl { width: 2em; height: 2em; }

.btn-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2.5rem;
  border-radius: 9999px;
  font-family: var(--font-sans);
  font-size: 0.625rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  transition: all 500ms ease;
}
.btn-solid {
  background: var(--espresso);
  color: var(--ivory);
}
.dark .btn-solid {
  background: var(--ivory);
  color: var(--espresso);
}
.btn-solid:hover {
  background: var(--gold);
  color: #fff;
}
.btn-outline {
  border: 1px solid var(--gold);
  color: var(--gold);
  padding: 0.5rem 2rem;
}
.btn-outline:hover {
  background: var(--gold);
  color: #fff;
}

.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--nav-h);
  border-bottom: 1px solid color-mix(in srgb, var(--camel) 5%, transparent);
  background: color-mix(in srgb, var(--ivory) 90%, transparent);
  backdrop-filter: blur(12px);
}
.dark .site-nav {
  border-bottom-color: color-mix(in srgb, var(--ivory) 5%, transparent);
  background: color-mix(in srgb, var(--richblack) 90%, transparent);
}

.site-footer {
  background: var(--espresso);
  color: color-mix(in srgb, var(--ivory) 80%, transparent);
  padding-top: 5rem;
  overflow: hidden;
  border-top: 1px solid color-mix(in srgb, #fff 5%, transparent);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.footer-watermark {
  margin-top: 5rem;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  line-height: 0.75;
  user-select: none;
}
.footer-watermark h2 {
  font-size: 16vw;
  font-family: var(--font-serif);
  font-weight: 300;
  letter-spacing: -0.04em;
  color: color-mix(in srgb, var(--ivory) 10%, transparent);
  margin: 0;
  padding: 0;
  white-space: nowrap;
  line-height: 0.75;
}

.toast-host {
  position: fixed;
  inset-inline-end: 1.25rem;
  bottom: 1.25rem;
  z-index: 80;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.toast {
  min-width: 220px;
  max-width: 360px;
  padding: 0.9rem 1.2rem;
  background: var(--espresso);
  color: var(--ivory);
  font-family: var(--font-sans);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  border-radius: 0.75rem;
  border: 1px solid color-mix(in srgb, var(--rosegold) 40%, transparent);
  box-shadow: 0 12px 30px color-mix(in srgb, var(--richblack) 25%, transparent);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 250ms ease, transform 250ms ease;
}
.toast.is-on {
  opacity: 1;
  transform: none;
}
.dark .toast {
  background: var(--ivory);
  color: var(--espresso);
}

@media (min-width: 640px) {
  .sm\:flex { display: flex; }
}
@media (min-width: 768px) {
  .md\:grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
  .md\:text-3xl { font-size: 1.875rem; }
  .md\:text-5xl { font-size: 3rem; }
  .md\:text-6xl { font-size: 3.75rem; }
  .md\:text-8xl { font-size: 6rem; }
  .md\:text-9xl { font-size: 8rem; }
  .md\:text-start { text-align: start; }
  .md\:px-12 { padding-inline: 3rem; }
  .md\:p-16 { padding: 4rem; }
  .md\:gap-16 { gap: 4rem; }
  .md\:flex-row { flex-direction: row; }
  .md\:columns-3 { columns: 3; }
  .md\:ps-10 { padding-inline-start: 2.5rem; }
}
@media (min-width: 1024px) {
  .lg\:flex { display: flex; }
  .lg\:inline-flex { display: inline-flex; }
  .lg\:hidden { display: none; }
  .lg\:grid-cols-4 { grid-template-columns: repeat(4, 1fr); }
  .lg\:gap-12 { gap: 3rem; }
  .lg\:columns-4 { columns: 4; }
  .lg\:mx-0 { margin-inline: 0; }
}
@media (max-width: 1023px) {
  .lg\:flex { display: none; }
  .lg\:inline-flex { display: none; }
}
