@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  --background: 0 0% 5%;
  --foreground: 40 10% 92%;

  --card: 0 0% 8%;
  --card-foreground: 40 10% 92%;

  --popover: 0 0% 8%;
  --popover-foreground: 40 10% 92%;

  --primary: 38 70% 50%;
  --primary-foreground: 0 0% 5%;

  --primary-gold-start: 43 80% 60%;
  --primary-gold-mid: 38 75% 50%;
  --primary-gold-end: 30 65% 40%;
  --primary-gold-shine: 45 90% 70%;

  --secondary: 0 0% 7%;
  --secondary-foreground: 40 10% 92%;

  --surface-elevated: 0 0% 9%;
  --surface-sunken: 0 0% 3.5%;

  --muted: 0 0% 12%;
  --muted-foreground: 0 0% 50%;

  --accent: 38 70% 50%;
  --accent-foreground: 0 0% 5%;

  --destructive: 0 84.2% 60.2%;
  --destructive-foreground: 210 40% 98%;

  --border: 0 0% 14%;
  --input: 0 0% 14%;
  --ring: 38 70% 50%;

  --radius: 0rem;

  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Inter', system-ui, sans-serif;

  --ease-luxe: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-reveal: cubic-bezier(0.25, 0.1, 0.25, 1);

  --tracking-ultra-wide: 0.25em;
  --tracking-mega-wide: 0.4em;

  /* 1280px of content (the original's max-w-7xl) plus the 2x48px lg gutter,
     so the inner content column lands at exactly 1280px on wide screens. */
  --container-max: 1376px;
}

*, *::before, *::after {
  box-sizing: border-box;
  border-color: hsl(var(--border));
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  background-color: hsl(var(--background));
  color: hsl(var(--foreground));
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  margin: 0;
  font-weight: 300;
}

p {
  margin: 0;
}

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

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

button {
  font-family: inherit;
  cursor: pointer;
  background: none;
  border: none;
  color: inherit;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

::selection {
  background: hsl(var(--primary) / 0.3);
  color: hsl(var(--foreground));
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/*
 * The chrome (site header + footer) sits on a narrower measure than the page
 * sections do: its padding is inside a 1280px box, so its content column is
 * 1184px and starts further in. Page sections instead centre a full 1280px
 * content column inside their gutters.
 */
.container-narrow {
  width: 100%;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* Sections that sit on a 1152px measure (the original's max-w-6xl blocks). */
.container-md {
  width: 100%;
  max-width: 1248px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

@media (min-width: 1024px) {
  .container,
  .container-narrow,
  .container-md {
    padding-left: 3rem;
    padding-right: 3rem;
  }
}

.font-serif { font-family: var(--font-serif); }
.font-sans { font-family: var(--font-sans); }

.tracking-ultra-wide { letter-spacing: var(--tracking-ultra-wide); }
.tracking-mega-wide { letter-spacing: var(--tracking-mega-wide); }

.text-gold {
  background: linear-gradient(135deg,
    hsl(var(--primary-gold-start)) 0%,
    hsl(var(--primary-gold-shine)) 25%,
    hsl(var(--primary-gold-mid)) 50%,
    hsl(var(--primary-gold-shine)) 75%,
    hsl(var(--primary-gold-end)) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.bg-gold {
  background: linear-gradient(135deg,
    hsl(var(--primary-gold-start)) 0%,
    hsl(var(--primary-gold-shine)) 25%,
    hsl(var(--primary-gold-mid)) 50%,
    hsl(var(--primary-gold-shine)) 75%,
    hsl(var(--primary-gold-end)) 100%);
}

.surface-base { background-color: hsl(var(--background)); }
.surface-elevated { background-color: hsl(var(--surface-elevated)); }
.surface-sunken { background-color: hsl(var(--surface-sunken)); }

.divider-gold {
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    hsl(var(--primary-gold-mid) / 0.35) 15%,
    hsl(var(--primary-gold-shine) / 0.6) 50%,
    hsl(var(--primary-gold-mid) / 0.35) 85%,
    transparent 100%);
}

.divider-subtle {
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    hsl(var(--border) / 0.4) 25%,
    hsl(var(--border) / 0.6) 50%,
    hsl(var(--border) / 0.4) 75%,
    transparent 100%);
}

.section-glow-top { position: relative; }
.section-glow-top::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 240px; height: 1px;
  background: linear-gradient(90deg, transparent, hsl(var(--primary-gold-mid) / 0.35), transparent);
}
.section-glow-top::after {
  content: '';
  position: absolute;
  top: -1px; left: 50%;
  transform: translateX(-50%);
  width: 160px; height: 60px;
  background: radial-gradient(ellipse at center top, hsl(var(--primary-gold-mid) / 0.05) 0%, transparent 70%);
  pointer-events: none;
}

.section-ambient-glow { position: relative; }
.section-ambient-glow::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 200px;
  background: radial-gradient(ellipse 80% 100% at 50% 0%, hsl(var(--primary-gold-mid) / 0.025) 0%, transparent 100%);
  pointer-events: none;
}

.section-inset-shadow {
  box-shadow: inset 0 1px 0 hsl(var(--border) / 0.15), inset 0 20px 60px -20px hsl(0 0% 0% / 0.3);
}

.section-fade-bottom { position: relative; }
.section-fade-bottom::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0; height: 120px;
  background: linear-gradient(to bottom, transparent, hsl(0 0% 0% / 0.15));
  pointer-events: none;
}

.icon-frame {
  border: 1px solid hsl(var(--primary) / 0.12);
  transition: all 0.7s var(--ease-luxe);
}
.icon-frame:hover, .group:hover .icon-frame {
  border-color: hsl(var(--primary) / 0.3);
  box-shadow: 0 0 20px -6px hsl(var(--primary-gold-mid) / 0.1);
}
