/* ================================================================
   DESIGN TOKENS
   ================================================================ */
:root {
  --ground: #171719;
  --ground-2: #1c1c1f;
  --ground-deep: #111113;
  --wine: #171719;
  --wine-deep: #111113;
  --cream: #ebe0c4;
  --cream-strong: #f3e9cd;
  --cream-dim: rgba(235, 224, 196, 0.62);
  --cream-faint: rgba(235, 224, 196, 0.38);
  --rule: rgba(235, 224, 196, 0.14);
  --rule-soft: rgba(235, 224, 196, 0.08);
  --accent: #c7a96b;

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, sans-serif;
}

/* ================================================================
   RESET & GLOBALS
   ================================================================ */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  background: var(--ground);
  color: var(--cream);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Noise texture overlay for tactile depth */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.028;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
}

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

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

::selection { background: var(--cream); color: var(--ground); }

.container {
  width: 100%;
  max-width: 1480px;
  margin: 0 auto;
  padding: 0 40px;
}
@media (max-width: 800px) { .container { padding: 0 24px; } }

/* ================================================================
   TYPOGRAPHY
   ================================================================ */
.serif {
  font-family: var(--serif);
  font-variation-settings: "opsz" 144, "SOFT" 0, "WONK" 0;
  font-weight: 400;
}

h1, h2, h3 { margin: 0; font-family: var(--serif); font-weight: 400; }

h1.display, h2.display {
  font-family: var(--serif);
  font-variation-settings: "opsz" 144, "SOFT" 0, "WONK" 0;
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: 1.02;
  color: var(--cream);
}
h1.display { font-size: clamp(34px, 4.4vw, 64px); }
h2.display { font-size: clamp(30px, 3.6vw, 52px); }

/* ================================================================
   FIXED NAVIGATION
   ================================================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 24px 0;
  background: transparent;
  transition: background 400ms ease, backdrop-filter 400ms ease, padding 400ms ease;
}
.site-header.is-scrolled {
  background: rgba(23, 23, 25, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 18px 0;
}
.site-header .inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-wordmark {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1;
  color: var(--cream);
  text-decoration: none;
}
.nav-wordmark .monogram-18 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 16px;
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 0.85;
}
.nav-wordmark .monogram-rule {
  width: 24px;
  height: 1px;
  background: var(--cream);
  margin: 2px 0 1px;
}
.nav-wordmark .monogram-g {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 0.9;
}

nav.primary {
  display: flex;
  gap: 40px;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--cream);
}
nav.primary a {
  position: relative;
  padding-bottom: 2px;
  transition: color 300ms ease;
}
nav.primary a::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 400ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
nav.primary a:hover { color: var(--cream); }
nav.primary a:hover::after { transform: scaleX(1); }
nav.primary a.is-current::after { transform: scaleX(1); }

/* Hamburger button */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  width: 44px;
  height: 44px;
  position: relative;
  z-index: 200;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--cream);
  margin: 0 auto;
  transition: transform 300ms ease, opacity 200ms ease;
}
.hamburger span:nth-child(1) { margin-bottom: 6px; }
.hamburger span:nth-child(3) { margin-top: 6px; }

.hamburger.is-open span:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}
.hamburger.is-open span:nth-child(2) { opacity: 0; }
.hamburger.is-open span:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

/* Mobile menu overlay */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: var(--ground);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 40px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 400ms ease;
}
.mobile-menu.is-open {
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu a {
  font-family: var(--serif);
  font-variation-settings: "opsz" 144;
  font-size: 36px;
  font-weight: 400;
  color: var(--cream);
  transition: color 300ms ease;
}
.mobile-menu a:hover { color: var(--accent); }

@media (max-width: 800px) {
  nav.primary { display: none; }
  .hamburger { display: flex; flex-direction: column; justify-content: center; }
}

/* ================================================================
   EYEBROW
   ================================================================ */
.eyebrow {
  display: inline-block;
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--cream-dim);
  margin: 0 0 40px;
}

/* ================================================================
   CTA BUTTON
   ================================================================ */
.cta {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 16px 32px;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cream);
  background: transparent;
  border: 1px solid var(--cream-dim);
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
  transition: color 350ms ease, border-color 350ms ease;
  z-index: 1;
}
.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--cream);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 450ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
  z-index: -1;
  border-radius: 999px;
}
.cta .arrow {
  transition: transform 300ms ease;
  display: inline-block;
}
.cta:hover, .cta:focus {
  color: var(--ground);
  border-color: var(--cream);
}
.cta:hover::before, .cta:focus::before { transform: scaleX(1); }
.cta:hover .arrow, .cta:focus .arrow { transform: translateX(5px); }

/* ================================================================
   FOOTER
   ================================================================ */
footer.site-footer {
  background: var(--ground-deep);
  color: var(--cream-dim);
  padding: 80px 0 48px;
  border-top: 1px solid var(--rule);
}
footer.site-footer .row {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 32px;
  align-items: start;
}
footer.site-footer .foot-mark {
  grid-column: 1 / span 5;
}
footer.site-footer .foot-wordmark {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: 18px;
  line-height: 1;
  color: var(--cream);
}
footer.site-footer .foot-wordmark .monogram-18 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 30px;
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 0.85;
}
footer.site-footer .foot-wordmark .monogram-rule {
  width: 50px;
  height: 1.5px;
  background: var(--cream);
  margin: 3px 0 1px;
}
footer.site-footer .foot-wordmark .monogram-g {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 34px;
  font-weight: 400;
  line-height: 0.88;
}
footer.site-footer .foot-wordmark .monogram-name {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.28em;
  margin-top: 8px;
}
footer.site-footer .foot-tag {
  font-size: 12px;
  line-height: 1.65;
  color: var(--cream-dim);
  max-width: 38ch;
  display: block;
}
footer.site-footer nav.foot-nav {
  grid-column: 6 / span 3;
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 500;
}
footer.site-footer nav.foot-nav a {
  color: var(--cream);
  transition: color 300ms ease;
}
footer.site-footer nav.foot-nav a:hover { color: var(--accent); }

footer.site-footer .foot-contact {
  grid-column: 9 / span 4;
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-size: 12px;
}
footer.site-footer .foot-contact a {
  color: var(--cream);
  transition: color 300ms ease;
}
footer.site-footer .foot-contact a:hover { color: var(--accent); }

footer.site-footer .copyright {
  grid-column: 1 / -1;
  margin-top: 64px;
  padding-top: 28px;
  border-top: 1px solid var(--rule);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cream-faint);
}

@media (max-width: 900px) {
  footer.site-footer .foot-mark,
  footer.site-footer nav.foot-nav,
  footer.site-footer .foot-contact { grid-column: 1 / -1; }
  footer.site-footer nav.foot-nav { margin-top: 28px; }
  footer.site-footer .foot-contact { margin-top: 20px; }
}
