/* Just Liaise, one-page brand site
   Palette sampled from the approved "twilight warmth" wordmark:
   deep twilight slate-blue, champagne-cream lettering, muted terracotta nodes. */

:root {
  --bg: #36425b;
  --bg-deep: #2b3550;
  --bg-panel: rgba(255, 255, 255, 0.045);
  --cream: #ebd3b2;
  --cream-soft: rgba(235, 211, 178, 0.9);
  --cream-faint: rgba(235, 211, 178, 0.75);
  --line: rgba(235, 211, 178, 0.16);
  --terra: #a86654;
  --terra-bright: #e2a983;
  --ink: #2b3550;
  --radius: 16px;
  --font-sans: "Century Gothic", Futura, "Avenir Next", "Trebuchet MS", "Segoe UI", Verdana, sans-serif;
  --font-serif: Georgia, "Times New Roman", serif;
}

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

html { scroll-behavior: smooth; }

html { background: var(--bg); }

body {
  background: var(--bg);
  color: var(--cream);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* Solid page wrapper: guarantees the dark canvas even in contexts
   (previews, embeds) where body/html backgrounds get stripped. */
.page {
  background: var(--bg);
  min-height: 100vh;
}

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

a {
  color: #ebd3b2;
  color: var(--cream);
}

.container {
  width: min(1080px, 92vw);
  margin: 0 auto;
}

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(54, 66, 91, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.04em;
  font-size: 18px;
}

.brand svg { display: block; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  list-style: none;
}

.nav-links a:not(.btn) {
  text-decoration: none;
  color: var(--cream-soft);
  font-size: 15px;
  letter-spacing: 0.02em;
}

.nav-links a:not(.btn):hover { color: var(--cream); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  text-decoration: none;
  border-radius: 999px;
  padding: 14px 32px;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: var(--font-sans);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.btn-primary {
  background: #ebd3b2;
  background: var(--cream);
  color: #2b3550;
  color: var(--ink);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.35);
}

.btn-ghost {
  border-color: var(--cream-faint);
  color: #ebd3b2;
  color: var(--cream);
  background: transparent;
}

.btn-ghost:hover { border-color: var(--cream); transform: translateY(-2px); }

.btn-small { padding: 10px 22px; font-size: 14px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: 110px 0 104px;
}

/* subtle constellation starfield */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(2px 2px at 12% 22%, rgba(235, 211, 178, 0.5), transparent 60%),
    radial-gradient(1.5px 1.5px at 28% 68%, rgba(235, 211, 178, 0.35), transparent 60%),
    radial-gradient(2px 2px at 44% 14%, rgba(216, 156, 126, 0.55), transparent 60%),
    radial-gradient(1.5px 1.5px at 58% 78%, rgba(235, 211, 178, 0.3), transparent 60%),
    radial-gradient(2px 2px at 71% 30%, rgba(235, 211, 178, 0.45), transparent 60%),
    radial-gradient(1.5px 1.5px at 82% 62%, rgba(216, 156, 126, 0.5), transparent 60%),
    radial-gradient(1.5px 1.5px at 90% 18%, rgba(235, 211, 178, 0.35), transparent 60%),
    radial-gradient(2px 2px at 20% 84%, rgba(235, 211, 178, 0.3), transparent 60%),
    radial-gradient(1.5px 1.5px at 64% 8%, rgba(235, 211, 178, 0.4), transparent 60%),
    radial-gradient(1.5px 1.5px at 36% 42%, rgba(235, 211, 178, 0.25), transparent 60%);
}

.hero > .container { position: relative; }

.wordmark {
  width: min(660px, 90vw);
  height: auto;
  overflow: visible;
  margin-bottom: 34px;
}

/* Backup SVG paint rules in case presentation attributes are stripped by an embed/sanitizer */
.wordmark text { fill: #ebd3b2; }
.wordmark circle { fill: #a86654; }
.wordmark .const-lines,
.wordmark .const-lines path { stroke: #a86654; fill: none; }
.brand svg circle { fill: #a86654; }
.brand svg path { stroke: #a86654; fill: none; }

.tagline {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(20px, 3.2vw, 27px);
  color: var(--cream);
  margin-bottom: 18px;
}

.hero-mission {
  font-size: clamp(16px, 2.2vw, 19px);
  color: var(--cream-soft);
  max-width: 620px;
  margin: 0 auto 38px;
}

.hero-ctas {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- Sections ---------- */
.section { padding: 92px 0; scroll-margin-top: 70px; }

.section.alt { background: rgba(0, 0, 0, 0.12); }

.eyebrow {
  color: var(--terra-bright);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 14px;
}

h2 {
  color: #ebd3b2;
  color: var(--cream);
  font-size: clamp(30px, 4.6vw, 44px);
  line-height: 1.18;
  letter-spacing: 0.01em;
  margin-bottom: 20px;
  font-weight: 700;
}

h3 {
  color: #ebd3b2;
  color: var(--cream);
}

.prose { max-width: 700px; }

.prose p { color: var(--cream-soft); margin-bottom: 16px; font-size: 18px; }

.prose p strong { color: var(--cream); font-weight: 700; }

.signoff-line {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(19px, 2.8vw, 24px);
  color: var(--cream);
  margin-top: 26px;
}

/* thin constellation divider */
.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 0 auto;
  padding: 6px 0;
}

.divider::before,
.divider::after {
  content: "";
  height: 1px;
  width: min(180px, 30vw);
  background: var(--line);
}

.divider span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--terra);
  box-shadow: -18px 0 0 -1px var(--terra-bright), 18px 0 0 -1px var(--terra-bright);
  opacity: 0.9;
}

/* ---------- Guardrails ---------- */
.rules {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 34px;
  max-width: 860px;
}

.rule {
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 24px 22px 58px;
  position: relative;
}

.rule::before {
  content: "";
  position: absolute;
  left: 24px;
  top: 30px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--terra);
  box-shadow: 0 0 0 4px rgba(168, 102, 84, 0.22);
}

.rule h3 {
  font-size: 17px;
  margin-bottom: 6px;
  letter-spacing: 0.01em;
}

.rule p { color: var(--cream-soft); font-size: 15.5px; }

.meetup-note {
  margin-top: 34px;
  max-width: 700px;
  color: var(--cream-soft);
  font-size: 18px;
}

.meetup-note a { color: var(--terra-bright); }

/* ---------- Form ---------- */
.form-panel {
  background: var(--bg-deep);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: clamp(26px, 4vw, 44px);
  max-width: 660px;
  margin-top: 34px;
}

.field { margin-bottom: 20px; }

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.field-label {
  display: block;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #e8cfa8;
  color: var(--cream-soft);
  margin-bottom: 8px;
}

input[type="text"],
input[type="email"] {
  width: 100%;
  background: var(--bg-deep);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--cream);
  font-family: var(--font-sans);
  font-size: 16px;
  padding: 13px 15px;
}

input[type="text"]:focus,
input[type="email"]:focus {
  outline: none;
  border-color: var(--terra-bright);
  box-shadow: 0 0 0 3px rgba(216, 156, 126, 0.25);
}

input::placeholder {
  color: rgba(235, 211, 178, 0.72);
  opacity: 1;
}

.role-pills { display: flex; gap: 12px; flex-wrap: wrap; }

.pill { cursor: pointer; }

.pill input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.pill span {
  display: inline-block;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 11px 22px;
  font-size: 15px;
  color: var(--cream-soft);
  transition: all 0.16s ease;
}

.pill input:checked + span {
  border-color: var(--terra-bright);
  color: var(--cream);
  background: rgba(168, 102, 84, 0.22);
}

.pill input:focus-visible + span {
  outline: 2px solid var(--terra-bright);
  outline-offset: 2px;
}

.check {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  cursor: pointer;
  color: var(--cream-soft);
  font-size: 16px;
}

.check input {
  width: 20px;
  height: 20px;
  margin-top: 3px;
  accent-color: var(--terra-bright);
  flex-shrink: 0;
  cursor: pointer;
}

.form-note {
  margin-top: 18px;
  font-size: 14px;
  color: var(--cream-faint);
}

.form-success {
  text-align: center;
  padding: 30px 10px;
}

.form-success h3 {
  font-size: 24px;
  margin-bottom: 10px;
}

.form-success p { color: var(--cream-soft); }

.form-success .big-dot {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--terra);
  margin: 0 auto 20px;
  position: relative;
}

.form-success .big-dot::after {
  content: "";
  position: absolute;
  left: 17px;
  top: 17px;
  width: 20px;
  height: 10px;
  border-left: 3px solid var(--cream);
  border-bottom: 3px solid var(--cream);
  transform: rotate(-45deg);
}

.form-error {
  margin-top: 16px;
  padding: 14px 18px;
  border-radius: 10px;
  background: rgba(168, 102, 84, 0.18);
  border: 1px solid var(--terra);
  color: var(--cream);
  font-size: 14px;
}

.form-error a { color: var(--cream); }

/* ---------- Footer ---------- */
footer {
  background: var(--bg-deep);
  border-top: 1px solid var(--line);
  text-align: center;
  padding: 70px 0 44px;
}

.footer-signoff {
  color: #ebd3b2;
  color: var(--cream);
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(26px, 4vw, 36px);
  margin-bottom: 22px;
}

.footer-contact { margin-bottom: 8px; }

.footer-contact a {
  color: var(--terra-bright);
  text-decoration: none;
  font-size: 18px;
}

.footer-contact a:hover { text-decoration: underline; }

.footer-social {
  margin-bottom: 6px;
  display: flex;
  justify-content: center;
  gap: 14px;
}

.footer-social a {
  display: inline-block;
  border-radius: 10px;
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.footer-social a:hover { transform: translateY(-2px); opacity: 0.92; }

.footer-social svg { display: block; }

/* backup paint rules in case presentation attributes are stripped */
.footer-social svg rect { fill: #a86654; }
.footer-social svg text { fill: #ebd3b2; }
.footer-social svg .tile { fill: #a86654; }
.footer-social svg .glyph-fill { fill: #ebd3b2; }
.footer-social svg .glyph-stroke { fill: none; stroke: #ebd3b2; }
.footer-social svg .glyph-knockout { fill: #a86654; }

.copyright {
  margin-top: 26px;
  font-size: 14px;
  color: var(--cream-faint);
}

/* ---------- Responsive ---------- */
@media (max-width: 720px) {
  body { font-size: 16px; }
  .nav-links li:not(:last-child) { display: none; }
  .hero { padding: 76px 0 70px; }
  .section { padding: 64px 0; }
  .rules { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .hero-ctas .btn { width: 100%; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid var(--terra-bright);
  outline-offset: 3px;
}
