/* ravenwood.art — shared theme
   Dark, mystical mood with petrol/türkis accents drawn from the CATWhisper painting. */

:root {
  --bg: #4a4d4e;
  --bg-soft: #11171a;
  --surface: #141c20;
  --border: #223238;

  --petrol-deep: #0f6e6b;
  --petrol: #149a92;
  --petrol-bright: #1fb5b0;
  --beige: #d8c4a3;

  --text: #e8edec;
  --text-dim: #9fb0ae;
  --text-faint: #6f827f;

  --maxw: 1100px;
  --radius: 16px;
  --shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.8);

  --font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-brand: "Audiowide", "Trebuchet MS", "Segoe UI", system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Mystical backdrop: petrol radial glow + faint vignette/grain */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(60% 50% at 50% 0%, rgba(31, 181, 176, 0.18), transparent 70%),
    radial-gradient(80% 60% at 80% 100%, rgba(15, 110, 107, 0.16), transparent 70%),
    var(--bg);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(120% 120% at 50% 40%, transparent 55%, rgba(0, 0, 0, 0.6) 100%);
  opacity: 0.9;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--petrol-bright);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--beige);
}

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* Typography */
h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.08;
  margin: 0 0 0.4em;
  letter-spacing: 0.01em;
}

/* page titles use the Audiowide display face */
h1 {
  font-family: var(--font-brand);
  font-weight: 400;
  letter-spacing: 0.02em;
}

.eyebrow {
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.32em;
  font-size: 0.72rem;
  color: var(--petrol-bright);
  margin: 0 0 1.1rem;
}

.lede {
  font-size: 1.15rem;
  color: var(--text-dim);
  max-width: 60ch;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  padding: 0.95em 1.8em;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.btn-primary {
  color: #04110f;
  background: linear-gradient(135deg, var(--petrol-bright), var(--petrol-deep));
  box-shadow: 0 14px 40px -14px rgba(31, 181, 176, 0.7);
}

.btn-primary:hover {
  color: #04110f;
  transform: translateY(-2px);
  box-shadow: 0 20px 48px -14px rgba(31, 181, 176, 0.85);
}

.btn-ghost {
  color: var(--text);
  border-color: var(--border);
  background: rgba(255, 255, 255, 0.02);
}

.btn-ghost:hover {
  color: var(--beige);
  border-color: var(--petrol);
}

/* Header / nav */
.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 5;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  padding-bottom: 24px;
}

.brand-mark {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-brand);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  color: var(--text);
}

.brand-mark img {
  height: 36px;
  width: auto;
}

.nav-link {
  font-family: var(--font-brand);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  color: var(--text-dim);
}

/* Hero — home */
.hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 140px 24px 80px;
}

.hero-logo {
  width: min(260px, 60vw);
  height: auto;
  margin: 0 auto 2rem;
  filter: drop-shadow(0 20px 50px rgba(31, 181, 176, 0.35));
}

.hero h1 {
  font-size: clamp(1.8rem, 7vw, 4rem);
}

.hero .brand-word {
  color: var(--beige);
}

.hero-tagline {
  font-size: clamp(1.05rem, 2.4vw, 1.4rem);
  color: var(--text-dim);
  max-width: 38ch;
  margin: 0 auto 2.4rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Generic section */
section {
  padding: 90px 0;
}

.section-narrow {
  max-width: 760px;
}

.passion {
  text-align: center;
}

.passion h2 {
  font-size: clamp(2rem, 5vw, 3rem);
}

.divider {
  width: 70px;
  height: 2px;
  margin: 1.6rem auto;
  background: linear-gradient(90deg, transparent, var(--petrol-bright), transparent);
  border: 0;
}

/* CATWhisper page */
.product {
  padding-top: 150px;
}

.product-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.product-figure {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  background:
    linear-gradient(135deg, rgba(31, 181, 176, 0.12), transparent 60%),
    var(--surface);
}

.product-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-figure-fallback {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 2rem;
  color: var(--text-faint);
  font-family: var(--font-display);
  font-size: 1.4rem;
}

.product-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin: 2rem 0 0.5rem;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 48px 0;
  color: var(--text-faint);
  font-size: 0.85rem;
}

.site-footer .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.site-footer a {
  color: var(--text-dim);
}

/* Scroll fade-in */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  html {
    scroll-behavior: auto;
  }
}

/* Responsive */
@media (max-width: 820px) {
  .product-grid {
    grid-template-columns: 1fr;
  }
  .product-figure {
    max-width: 460px;
    margin: 0 auto;
  }
  section {
    padding: 64px 0;
  }
}

@media (max-width: 520px) {
  .nav-link {
    display: none;
  }
}
