/* Quiet Room — shared site styles */
:root {
  --paper: #F4F8F7;
  --paper-2: #E6EFED;
  --ink: #1e3a45;
  --muted: #5a6e72;
  --line: rgba(44, 79, 94, .14);
  --forest: #2c4f5e;
  --forest-soft: #3d6b6b;
  --forest-deep: #143d39;
  --hill-green: #2d5a47;
  --teal: #4a8b84;
  --teal-light: #7eb8ae;
  --accent: #e8941a;
  --accent-gold: #f5c842;
  --accent-soft: #fde8c8;
  --nav-bg: #0a0a0a;
  --max: 72rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, system-ui, -apple-system, sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 {
  font-family: Fraunces, Georgia, serif;
  font-weight: 500;
  letter-spacing: -.02em;
  line-height: 1.12;
  margin: 0;
  color: var(--forest);
}
p { margin: 0; }

.container {
  width: min(100%, var(--max));
  margin: 0 auto;
  padding-left: clamp(1.25rem, 4vw, 2rem);
  padding-right: clamp(1.25rem, 4vw, 2rem);
}

/* Logo */
.brand-lockup {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}
.brand-lockup:hover { opacity: .9; }
.logo-img {
  height: 44px;
  width: auto;
  display: block;
}
.logo-img--sm { height: 36px; }
.logo-img--center {
  height: clamp(48px, 10vw, 64px);
  margin: 0 auto;
}

/* Nav */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  background: rgba(10, 10, 10, .94);
  backdrop-filter: blur(12px);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 72px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.5vw, 1.75rem);
  font-size: .88rem;
  font-weight: 500;
  color: rgba(255, 255, 255, .62);
}
.nav-links a:hover { color: #fff; }
.nav-cta {
  display: none;
  font-size: .84rem;
  font-weight: 600;
  padding: .52rem 1.05rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent-gold), var(--accent));
  color: #1a1208;
}
.nav-cta:hover { filter: brightness(1.06); }
@media (min-width: 640px) {
  .nav-cta { display: inline-flex; align-items: center; }
}
@media (max-width: 520px) {
  .nav-links { display: none; }
  .logo-img { height: 38px; }
}

/* Centered header (guide, thank-you) */
.site-header {
  padding: clamp(1.25rem, 4vw, 1.75rem) 0;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  background: var(--nav-bg);
  text-align: center;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: .92rem;
  padding: .78rem 1.35rem;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  transition: transform .15s ease, filter .15s ease, background .15s ease;
}
.btn-accent {
  background: linear-gradient(135deg, var(--accent-gold), var(--accent));
  color: #1a1208;
}
.btn-accent:hover { filter: brightness(1.06); transform: translateY(-1px); }
.btn-accent:disabled {
  opacity: .5;
  cursor: not-allowed;
  transform: none;
}
.btn-light {
  background: var(--paper);
  color: var(--forest);
}
.btn-light:hover { transform: translateY(-1px); background: #fff; }
.btn-outline {
  border: 1px solid rgba(255, 255, 255, .35);
  color: #fff;
  background: rgba(255, 255, 255, .06);
}
.btn-outline:hover {
  background: rgba(255, 255, 255, .12);
  transform: translateY(-1px);
}
.btn-secondary {
  background: rgba(255, 255, 255, .55);
  border: 1px solid var(--line);
  color: var(--forest);
}
.btn-secondary:hover { background: #fff; transform: translateY(-1px); }
.btn-teal {
  background: var(--forest);
  color: var(--paper);
}
.btn-teal:hover { background: var(--forest-soft); transform: translateY(-1px); }

/* Section utilities */
.section-label {
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: .75rem;
}
.section-dark .section-label { color: var(--accent-gold); }

/* Footer */
.site-footer {
  border-top: 1px solid rgba(255, 255, 255, .08);
  background: var(--nav-bg);
  color: rgba(255, 255, 255, .58);
  padding-top: 2.5rem;
  padding-bottom: max(4.5rem, calc(env(safe-area-inset-bottom, 0px) + 3.5rem));
}
.footer-grid {
  display: grid;
  gap: 2rem;
}
@media (min-width: 640px) {
  .footer-grid { grid-template-columns: 1.5fr 1fr 1fr; }
}
.footer-brand p {
  margin-top: 1rem;
  font-size: .88rem;
  color: rgba(255, 255, 255, .52);
  max-width: 22rem;
  line-height: 1.6;
}
.footer-col h4 {
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent-gold);
  margin: 0 0 .85rem;
}
.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: .88rem;
}
.footer-col li + li { margin-top: .45rem; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, .08);
  font-size: .82rem;
  color: rgba(255, 255, 255, .45);
  text-align: center;
}

/* Simple footer (legal pages) */
.footer-simple {
  border-top: 1px solid var(--line);
  padding-top: 1.75rem;
  padding-bottom: max(4.5rem, calc(env(safe-area-inset-bottom, 0px) + 3.5rem));
  font-size: .84rem;
  color: var(--muted);
  text-align: center;
  background: var(--paper-2);
}
.footer-simple .links {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem 1.1rem;
  justify-content: center;
  margin-top: .75rem;
}
.footer-simple a {
  color: var(--forest);
  text-decoration: underline;
  text-underline-offset: .16em;
}

/* Legal topbar */
.legal-topbar {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin-bottom: 1.25rem;
  min-height: 2.75rem;
}
.legal-back {
  position: absolute;
  left: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 999px;
  color: var(--ink);
  border: 1px solid var(--line);
  font-size: 1.1rem;
  line-height: 1;
}
.legal-back:hover { background: rgba(255, 255, 255, .5); }
