/* ============================================================
   TWEASE — Design System
   Minimal luxury · warm sand / charcoal / gold
   ============================================================ */

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

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

:root {
  /* Palette */
  --sand:        #C9BAA2;
  --sand-light:  #EFE9DF;
  --sand-pale:   #F7F3EC;
  --sand-dark:   #A89880;
  --charcoal:    #17150F;
  --charcoal-2:  #232019;
  --charcoal-3:  #2E2A21;
  --gold:        #B8965A;
  --gold-light:  #D8B881;
  --cream:       #FBF8F2;
  --ink:         #1B1813;
  --text-muted:  #8A8276;
  --text-soft:   #ACA295;
  --border:      rgba(184,150,90,0.22);
  --border-soft: rgba(27,24,19,0.08);
  --white:       #FFFFFF;

  /* Type scale */
  --display:  'Cormorant Garamond', Georgia, serif;
  --body:     'Inter', system-ui, sans-serif;

  /* Motion */
  --ease:      cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out:  cubic-bezier(0.16, 1, 0.3, 1);

  /* Layout */
  --maxw: 1320px;
  --gutter: clamp(24px, 5vw, 80px);
}

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }

body {
  font-family: var(--body);
  background: var(--cream);
  color: var(--ink);
  overflow-x: hidden;
  line-height: 1.6;
}

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

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* ── Type helpers ── */
.eyebrow {
  font-size: 11px; font-weight: 600; letter-spacing: 0.32em;
  text-transform: uppercase; color: var(--gold);
}
.display {
  font-family: var(--display); font-weight: 300; line-height: 1.08;
  letter-spacing: -0.01em;
}
.display em { font-style: italic; color: var(--gold); }
.lede { font-weight: 300; color: var(--text-muted); }

/* ── Buttons ── */
.btn {
  --b: var(--charcoal);
  position: relative; display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase;
  padding: 17px 34px; border: 1px solid var(--b);
  overflow: hidden; isolation: isolate;
  transition: color 0.4s var(--ease), border-color 0.4s var(--ease);
  white-space: nowrap;
}
.btn svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2; transition: transform 0.4s var(--ease); }
.btn::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: var(--b); transform: translateY(0); transition: transform 0.45s var(--ease-out);
}
.btn-solid { color: var(--cream); background: var(--charcoal); }
.btn-solid::before { background: var(--gold); transform: translateY(101%); }
.btn-solid:hover { border-color: var(--gold); }
.btn-solid:hover::before { transform: translateY(0); }
.btn-solid:hover svg { transform: translateX(4px); }
.btn-ghost { color: var(--ink); border-color: var(--border); background: transparent; }
.btn-ghost::before { background: var(--ink); transform: translateY(101%); }
.btn-ghost:hover { color: var(--cream); border-color: var(--ink); }
.btn-ghost:hover::before { transform: translateY(0); }
.btn-light { color: var(--cream); background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.25); }
.btn-light::before { background: var(--gold); transform: translateY(101%); }
.btn-light:hover { border-color: var(--gold); }
.btn-light:hover::before { transform: translateY(0); }

/* ── Reveal animation ── */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity 1s var(--ease-out), transform 1s var(--ease-out); }
.reveal.in { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: 0.08s; }
.reveal-d2 { transition-delay: 0.16s; }
.reveal-d3 { transition-delay: 0.24s; }

/* ── Announcement bar ── */
.announce {
  background: var(--charcoal); color: var(--cream);
  text-align: center; font-size: 11px; font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase; padding: 10px 16px;
}
.announce a { color: var(--gold-light); border-bottom: 1px solid transparent; transition: border-color 0.3s; }
.announce a:hover { border-color: var(--gold-light); }

/* ── Nav ── */
.nav {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px var(--gutter);
  background: rgba(251,248,242,0.72); backdrop-filter: blur(18px) saturate(1.4);
  border-bottom: 1px solid transparent;
  transition: border-color 0.4s, padding 0.4s, background 0.4s;
}
.nav.scrolled { border-color: var(--border-soft); padding-top: 14px; padding-bottom: 14px; }
.nav-logo {
  font-family: var(--display); font-size: 23px; font-weight: 400;
  letter-spacing: 0.26em; text-transform: uppercase;
}
.nav-logo sup { font-size: 9px; letter-spacing: 0.1em; color: var(--gold); vertical-align: super; }
.nav-links { display: flex; gap: 38px; list-style: none; }
.nav-links a {
  position: relative; font-size: 12px; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-muted);
  transition: color 0.3s;
}
.nav-links a::after {
  content: ''; position: absolute; left: 0; bottom: -6px; height: 1px; width: 0;
  background: var(--gold); transition: width 0.35s var(--ease);
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { width: 100%; }
.nav-right { display: flex; align-items: center; gap: 24px; }
.nav-cart { position: relative; color: var(--ink); display: flex; }
.nav-cart svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.5; }
.nav-burger { display: none; flex-direction: column; gap: 5px; background: none; border: none; padding: 8px; }
.nav-burger span { width: 22px; height: 1.5px; background: var(--ink); transition: 0.3s; }

/* Mobile menu */
.mobile-menu {
  position: fixed; inset: 0; z-index: 99; background: var(--cream);
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  gap: 28px; opacity: 0; pointer-events: none; transition: opacity 0.4s var(--ease);
}
.mobile-menu.open { opacity: 1; pointer-events: auto; }
.mobile-menu a {
  font-family: var(--display); font-size: 34px; font-weight: 300; color: var(--ink);
}
.mobile-menu a em { font-style: italic; color: var(--gold); }

/* ── Section scaffolding ── */
.section { padding: clamp(80px, 11vw, 150px) var(--gutter); }
.wrap { max-width: var(--maxw); margin: 0 auto; }
.section-head { max-width: 760px; }
.section-head.center { margin: 0 auto; text-align: center; }
.section-head .eyebrow { display: block; margin-bottom: 18px; }
.section-title { font-family: var(--display); font-weight: 300; line-height: 1.1; font-size: clamp(34px, 4.6vw, 62px); }
.section-title em { font-style: italic; color: var(--gold); }
.section-sub { margin-top: 22px; font-size: 17px; font-weight: 300; line-height: 1.7; color: var(--text-muted); max-width: 560px; }
.section-head.center .section-sub { margin-left: auto; margin-right: auto; }

/* ── Product float ── */
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-16px); } }
.floats { animation: float 7s ease-in-out infinite; }

/* ── Marquee ── */
.marquee { background: var(--charcoal); padding: 20px 0; overflow: hidden; }
.marquee-track { display: flex; width: max-content; animation: marquee 32s linear infinite; }
@keyframes marquee { to { transform: translateX(-50%); } }
.marquee-item {
  font-family: var(--display); font-style: italic; font-size: 22px; font-weight: 300;
  color: rgba(251,248,242,0.55); padding: 0 36px; white-space: nowrap;
}
.marquee-dot { color: var(--gold); align-self: center; }

/* ── Footer ── */
.footer { background: var(--charcoal); color: var(--cream); padding: clamp(64px,8vw,100px) var(--gutter) 40px; }
.footer-grid { display: grid; grid-template-columns: 2.2fr 1fr 1fr 1.4fr; gap: 56px; max-width: var(--maxw); margin: 0 auto; padding-bottom: 56px; border-bottom: 1px solid rgba(255,255,255,0.07); }
.footer-logo { font-family: var(--display); font-size: 30px; letter-spacing: 0.2em; text-transform: uppercase; margin-bottom: 18px; }
.footer-tag { font-size: 14px; font-weight: 300; line-height: 1.75; color: rgba(251,248,242,0.5); max-width: 300px; }
.footer-col h4 { font-size: 10px; font-weight: 600; letter-spacing: 0.26em; text-transform: uppercase; color: var(--gold); margin-bottom: 20px; }
.footer-col ul { list-style: none; }
.footer-col li + li { margin-top: 13px; }
.footer-col a { font-size: 14px; font-weight: 300; color: rgba(251,248,242,0.55); transition: color 0.25s; }
.footer-col a:hover { color: var(--cream); }
.footer-news p { font-size: 14px; font-weight: 300; color: rgba(251,248,242,0.55); margin-bottom: 18px; line-height: 1.6; }
.footer-news form { display: flex; border: 1px solid rgba(255,255,255,0.15); }
.footer-news input { flex: 1; background: transparent; border: none; outline: none; color: var(--cream); padding: 13px 16px; font-size: 14px; }
.footer-news input::placeholder { color: rgba(251,248,242,0.4); }
.footer-news button { background: var(--gold); border: none; color: var(--charcoal); padding: 0 18px; display: flex; align-items: center; transition: background 0.3s; }
.footer-news button:hover { background: var(--gold-light); }
.footer-news button svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; }
.footer-bottom { max-width: var(--maxw); margin: 0 auto; padding-top: 32px; display: flex; justify-content: space-between; align-items: center; }
.footer-copy { font-size: 12px; font-weight: 300; color: rgba(251,248,242,0.35); }
.footer-social { display: flex; gap: 12px; }
.footer-social a { width: 38px; height: 38px; border: 1px solid rgba(255,255,255,0.12); display: flex; align-items: center; justify-content: center; color: rgba(251,248,242,0.5); transition: all 0.3s; }
.footer-social a:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-2px); }
.footer-social svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.6; }

/* ── Responsive ── */
@media (max-width: 920px) {
  .nav-links { display: none; }
  .nav-burger { display: flex; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .footer-news { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; gap: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
