/* Re:nu — Design tokens */
:root {
  --c-bg: #f5efe6;
  --c-bg-alt: #ebe4d6;
  --c-ink: #0f2d2a;
  --c-ink-soft: #2d4744;
  --c-muted: #6b7370;
  --c-line: #d9d2c5;
  --c-line-soft: #e5ddcd;
  --c-accent: #b87849;
  --c-accent-deep: #8e5930;
  --c-dark: #0a1f1d;
  --c-dark-2: #143531;
  --c-white: #ffffff;
  --c-success: #3c6e50;

  --radius-sm: 4px;
  --radius-md: 10px;
  --radius-lg: 20px;
  --radius-xl: 32px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(15,45,42,.06), 0 2px 8px rgba(15,45,42,.04);
  --shadow-md: 0 4px 14px rgba(15,45,42,.08), 0 10px 40px rgba(15,45,42,.06);
  --shadow-lg: 0 20px 60px rgba(15,45,42,.18);

  --font-display: 'Fraunces', 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --max-w: 1320px;
  --pad-x: clamp(20px, 5vw, 80px);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-body);
  color: var(--c-ink);
  background: var(--c-bg);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--c-ink);
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: clamp(44px, 6vw, 84px); line-height: 1.02; }
h2 { font-size: clamp(32px, 4vw, 52px); line-height: 1.08; }
h3 { font-size: clamp(22px, 2.4vw, 30px); line-height: 1.2; }
h4 { font-size: 20px; line-height: 1.3; }
p { margin: 0; text-wrap: pretty; }
a { color: inherit; text-decoration: none; }

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

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding-left: var(--pad-x);
  padding-right: var(--pad-x);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.01em;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform .15s ease, background .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease;
  white-space: nowrap;
  text-decoration: none;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--c-ink);
  color: var(--c-bg);
}
.btn-primary:hover { background: var(--c-dark); box-shadow: var(--shadow-md); }

.btn-accent {
  background: var(--c-accent);
  color: #fff;
}
.btn-accent:hover { background: var(--c-accent-deep); box-shadow: var(--shadow-md); }

.btn-ghost {
  background: transparent;
  color: var(--c-ink);
  border-color: var(--c-line);
}
.btn-ghost:hover { border-color: var(--c-ink); background: rgba(15,45,42,0.04); }

.btn-ghost-light {
  background: transparent;
  color: var(--c-bg);
  border-color: rgba(245,239,230,0.3);
}
.btn-ghost-light:hover { border-color: var(--c-bg); background: rgba(245,239,230,0.06); }

.btn-sm { padding: 10px 18px; font-size: 14px; }
.btn-lg { padding: 18px 32px; font-size: 16px; }

/* Chips / tags */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  background: rgba(15,45,42,0.06);
  color: var(--c-ink);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.chip-dark {
  background: rgba(245,239,230,0.1);
  color: var(--c-bg);
  border: 1px solid rgba(245,239,230,0.14);
}
.chip-accent {
  background: rgba(184,120,73,0.14);
  color: var(--c-accent-deep);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-accent);
}
.eyebrow::before {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--c-accent);
}

/* Navigation */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(245,239,230,0.85);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, background .2s ease;
}
.nav.scrolled { border-bottom-color: var(--c-line); }
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px var(--pad-x);
  max-width: var(--max-w);
  margin: 0 auto;
  gap: 24px;
}
.nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 26px;
  letter-spacing: -0.02em;
  color: var(--c-ink);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-link {
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  font-size: 15px;
  font-weight: 450;
  color: var(--c-ink-soft);
  transition: color .15s, background .15s;
  position: relative;
}
.nav-link:hover { color: var(--c-ink); background: rgba(15,45,42,0.04); }
.nav-link.active {
  color: var(--c-ink);
  background: rgba(15,45,42,0.06);
}
.nav-right { display: flex; align-items: center; gap: 10px; }

.mobile-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-pill);
  padding: 8px;
  cursor: pointer;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
}

/* Footer */
.footer {
  background: var(--c-dark);
  color: var(--c-bg);
  padding: 100px var(--pad-x) 40px;
  margin-top: 120px;
}
.footer-inner { max-width: var(--max-w); margin: 0 auto; }
.footer-top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 60px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(245,239,230,0.12);
}
.footer h4 {
  color: var(--c-bg);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-family: var(--font-body);
  font-weight: 500;
  margin-bottom: 20px;
  opacity: 0.65;
}
.footer-links { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.footer-links a { color: rgba(245,239,230,0.8); font-size: 15px; transition: color .15s; }
.footer-links a:hover { color: var(--c-accent); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 30px;
  font-size: 13px;
  color: rgba(245,239,230,0.5);
  flex-wrap: wrap;
  gap: 16px;
}

/* Sections */
.section { padding: 100px 0; }
.section-sm { padding: 60px 0; }

/* Cards */
.card {
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--c-line-soft);
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--c-line);
}

/* Sticky book CTA */
.sticky-cta {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 22px;
  background: var(--c-ink);
  color: var(--c-bg);
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  cursor: pointer;
  border: none;
  transition: transform .2s, background .2s;
}
.sticky-cta:hover { transform: scale(1.04); background: var(--c-dark); }
.sticky-cta .pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c-accent);
  box-shadow: 0 0 0 0 rgba(184,120,73,0.6);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(184,120,73,0.6); }
  70% { box-shadow: 0 0 0 10px rgba(184,120,73,0); }
  100% { box-shadow: 0 0 0 0 rgba(184,120,73,0); }
}

/* Utility */
.text-muted { color: var(--c-muted); }
.text-accent { color: var(--c-accent); }
.italic-serif { font-family: var(--font-display); font-style: italic; font-weight: 400; }
.divider { height: 1px; background: var(--c-line); border: none; margin: 0; }

/* Fade in on mount */
.fade-in { animation: fadeIn .5s ease both; }
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(10,31,29,0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn .2s ease;
}
.modal {
  background: var(--c-bg);
  border-radius: var(--radius-xl);
  max-width: 860px;
  width: 100%;
  max-height: 92vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  animation: modalIn .3s cubic-bezier(.2,.9,.3,1.2);
}
@keyframes modalIn {
  from { opacity: 0; transform: translateY(20px) scale(.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Forms */
.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.form-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--c-ink-soft);
  letter-spacing: 0.02em;
}
.form-input, .form-select, .form-textarea {
  padding: 14px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--c-line);
  background: #fff;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--c-ink);
  transition: border-color .15s, box-shadow .15s;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--c-ink);
  box-shadow: 0 0 0 3px rgba(15,45,42,0.1);
}
.form-textarea { resize: vertical; min-height: 100px; font-family: var(--font-body); }

/* Responsive */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .mobile-toggle { display: inline-flex; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 40px; }
  .footer { padding-top: 60px; margin-top: 80px; }
  .section { padding: 70px 0; }
  .sticky-cta { bottom: 16px; right: 16px; padding: 12px 18px; font-size: 13px; }
}
@media (max-width: 600px) {
  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  body { font-size: 16px; }
}

/* Print friendly */
@media print {
  .nav, .footer, .sticky-cta { display: none; }
}
