@import "tailwindcss";

@theme {
  --color-ink: #0c0b0a;
  --color-ink-soft: #141210;
  --color-ink-elevated: #1c1916;
  --color-ivory: #f4efe6;
  --color-ivory-dim: #e8dfd0;
  --color-beige: #d4c4a8;
  --color-gold: #c4a574;
  --color-gold-deep: #8f7349;
  --color-muted: #9c9286;
  --color-line: #2c2822;
  --color-line-strong: #4a4338;

  --font-serif: "Cormorant Garamond", "Times New Roman", serif;
  --font-sans: "Outfit", ui-sans-serif, system-ui, sans-serif;
  --font-display: "Berkshire Swash", "Cormorant Garamond", serif;

  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  --ease-smooth-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
}

@layer base {
  html {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background: var(--color-ink);
    color: var(--color-ivory);
    scroll-behavior: smooth;
  }

  body {
    font-family: var(--font-sans);
    background: var(--color-ink);
    color: var(--color-ivory);
    min-height: 100dvh;
  }

  h1,
  h2,
  h3,
  h4 {
    font-family: var(--font-serif);
    text-wrap: balance;
    letter-spacing: -0.02em;
    font-weight: 500;
    line-height: 1.12;
  }

  p {
    text-wrap: pretty;
    line-height: 1.65;
  }

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

  ::selection {
    background: color-mix(in oklab, var(--color-gold) 45%, transparent);
    color: var(--color-ivory);
  }

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

  input,
  textarea,
  select {
    font-family: inherit;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal,
  .ken-burns,
  .hero-fade {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    filter: none !important;
    transform: none !important;
  }
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(18px);
    filter: blur(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

@keyframes ken {
  from {
    transform: scale(1.08);
  }
  to {
    transform: scale(1);
  }
}

@keyframes pulse-line {
  0%,
  100% {
    opacity: 0.35;
  }
  50% {
    opacity: 1;
  }
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  filter: blur(6px);
  transition:
    opacity 700ms var(--ease-smooth-out),
    transform 700ms var(--ease-smooth-out),
    filter 700ms var(--ease-smooth-out);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

.ken-burns {
  animation: ken 14s var(--ease-out) both;
}

.hero-fade {
  transition:
    opacity 700ms var(--ease-smooth-out),
    filter 700ms var(--ease-smooth-out);
}

.hero-clip {
  object-fit: cover;
  object-position: center center;
}

@media (max-aspect-ratio: 3/4) {
  .hero-clip {
    object-position: var(--hero-focus, center 40%);
  }
}

.gold-rule {
  height: 1px;
  width: 3rem;
  background: var(--color-gold);
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 80;
  background: var(--color-ivory);
  color: var(--color-ink);
  padding: 0.6rem 1rem;
  border-radius: 9999px;
}

.skip-link:focus {
  top: 1rem;
}
