/* ============================================
   WILLOW ELECTROLYSIS — Design System
   ============================================ */

:root {
  --bone: #FDFCF7;
  --bone-deep: #F7F4EB;
  --cream: #FFFEFA;
  --ink: #2A2E26;
  --ink-soft: #4A4E45;
  --willow: #ABAC5A;
  --willow-deep: #7A7B33;
  --willow-pale: #D4D49C;
  --willow-mist: #EFEDD8;
  --slate: #496677;
  --slate-deep: #2F4651;
  --slate-pale: #B8C4CC;
  --accent: #8A6F4E;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--bone);
  color: var(--ink);
  line-height: 1.6;
  font-weight: 400;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  cursor: none;
}

main { flex: 1; }

/* ============ CUSTOM CURSOR ============ */
.cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 10px;
  height: 10px;
  background: var(--willow);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.25s ease, height 0.25s ease, background 0.25s ease, opacity 0.2s ease;
  mix-blend-mode: multiply;
  opacity: 0.9;
}

.cursor-outline {
  position: fixed;
  top: 0;
  left: 0;
  width: 38px;
  height: 38px;
  border: 1px solid var(--willow-deep);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: width 0.4s ease, height 0.4s ease, border-color 0.3s ease, opacity 0.3s ease;
  opacity: 0.5;
}

.cursor.hover {
  width: 0;
  height: 0;
  opacity: 0;
}

.cursor-outline.hover {
  width: 60px;
  height: 60px;
  border-color: var(--willow);
  opacity: 0.8;
  background: rgba(171, 172, 90, 0.08);
}

.cursor-outline.click {
  width: 28px;
  height: 28px;
  background: var(--willow);
  opacity: 0.4;
}

/* Hide cursor system on touch devices and small screens */
@media (max-width: 900px), (hover: none) {
  body { cursor: auto; }
  .cursor, .cursor-outline { display: none; }
}

/* Keep system cursor on form inputs so users know they can type */
input, textarea, select {
  cursor: text !important;
}

select {
  cursor: pointer !important;
}

/* ============ GRAIN OVERLAY ============ */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ============ NAV ============ */
nav {
  position: sticky;
  top: 0;
  background: rgba(244, 240, 232, 0.92);
  backdrop-filter: blur(12px);
  padding: 20px 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 50;
  border-bottom: 1px solid rgba(123, 140, 111, 0.15);
}

.logo {
  font-family: 'Fraunces', serif;
  font-size: 22px;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--ink);
  text-decoration: none;
}

.logo em {
  font-style: italic;
  font-weight: 300;
  font-size: 13px;
  opacity: 0.7;
  margin-left: 4px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 400;
}

.nav-links a {
  color: var(--ink);
  text-decoration: none;
  transition: opacity 0.2s;
  position: relative;
  padding-bottom: 2px;
}

.nav-links a:hover { opacity: 0.6; }

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--willow-deep);
}

.book-btn {
  padding: 10px 22px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  transition: all 0.3s;
}

.book-btn:hover {
  background: var(--ink);
  color: var(--bone);
}

/* ============ TYPOGRAPHY ============ */
.serif {
  font-family: 'Fraunces', serif;
  font-weight: 400;
  letter-spacing: -0.01em;
}

h1 {
  font-family: 'Fraunces', serif;
  font-weight: 400;
  font-size: clamp(44px, 5.5vw, 80px);
  line-height: 1.02;
  letter-spacing: -0.025em;
}

h1 em {
  font-style: italic;
  font-weight: 400;
}

h2 {
  font-family: 'Fraunces', serif;
  font-weight: 400;
  font-size: clamp(34px, 4vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

h2 em {
  font-style: italic;
  color: var(--willow-deep);
  font-weight: 400;
}

h3 {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  font-size: 24px;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--willow-deep);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.eyebrow::before {
  content: '';
  width: 28px;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}

.eyebrow.center::before { display: none; }

/* ============ LAYOUT ============ */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 48px;
}

section {
  padding: 100px 0;
}

.page-header {
  padding: 80px 0 60px;
  border-bottom: 1px solid rgba(90, 107, 80, 0.18);
  background: var(--bone);
}

.page-header .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: end;
}

.page-header h1 {
  font-size: clamp(40px, 4.5vw, 68px);
  margin-bottom: 0;
}

.page-header-intro {
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 480px;
}

/* ============ BUTTONS ============ */
.btn-primary {
  display: inline-block;
  background: var(--willow-deep);
  color: var(--cream);
  padding: 16px 32px;
  border-radius: 999px;
  text-decoration: none;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
  transition: all 0.3s;
  border: 1px solid var(--willow-deep);
}

.btn-primary:hover {
  background: var(--ink);
  border-color: var(--ink);
  transform: translateY(-1px);
}

.btn-outline {
  display: inline-block;
  background: transparent;
  color: var(--ink);
  padding: 15px 31px;
  border-radius: 999px;
  text-decoration: none;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
  transition: all 0.3s;
  border: 1px solid var(--ink);
}

.btn-outline:hover {
  background: var(--ink);
  color: var(--bone);
}

.btn-text {
  color: var(--willow-deep);
  text-decoration: none;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border-bottom: 1px solid currentColor;
  padding-bottom: 4px;
  transition: opacity 0.3s;
  font-weight: 500;
}

.btn-text:hover { opacity: 0.65; }

/* ============ FOOTER ============ */
footer {
  background: var(--ink);
  color: var(--bone);
  padding: 80px 48px 40px;
  margin-top: 80px;
}

.footer-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
}

footer .logo {
  color: var(--bone);
  font-size: 26px;
  display: inline-block;
  margin-bottom: 16px;
}

.footer-tagline {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 16px;
  opacity: 0.7;
  max-width: 280px;
  line-height: 1.5;
}

.footer-col h5 {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  opacity: 0.6;
  margin-bottom: 16px;
  font-weight: 500;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 10px;
  font-size: 14px;
  font-weight: 300;
}

.footer-col a {
  color: var(--bone);
  text-decoration: none;
  opacity: 0.85;
  transition: opacity 0.2s;
}

.footer-col a:hover { opacity: 1; }

.footer-legal {
  max-width: 1400px;
  margin: 64px auto 0;
  padding-top: 32px;
  border-top: 1px solid rgba(244, 240, 232, 0.12);
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.12em;
  opacity: 0.45;
  display: flex;
  justify-content: space-between;
}

/* ============ MOBILE ============ */
@media (max-width: 900px) {
  nav { padding: 14px 24px; }
  .nav-links { display: none; }
  .container { padding: 0 24px; }
  section { padding: 60px 0; }
  .page-header { padding: 48px 0 40px; }
  .page-header .container { grid-template-columns: 1fr; gap: 28px; }
  footer { padding: 56px 24px 32px; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-legal { flex-direction: column; gap: 12px; }
}
