/* Builders Resource Center Launch Party
   Palette and typography drawn from the event presentation:
   cream ground, mocha accents, dark brown ink, letterspaced serif display. */

:root {
  --cream: #F2EDE4;
  --cream-deep: #E9E2D5;
  --white: #FDFCF9;
  --mocha: #A68B6F;
  --mocha-deep: #8A7156;
  --ink: #3E342A;
  --ink-soft: #6E5F4E;
  --line: rgba(62, 52, 42, 0.16);
  --serif-display: "Cormorant Garamond", Georgia, serif;
  --serif-body: "EB Garamond", Georgia, serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--serif-body);
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 32px; }
.wrap.narrow { max-width: 880px; }

.dot { color: var(--mocha); padding: 0 0.15em; }

/* ---------- kickers, titles ---------- */

.kicker {
  font-family: var(--serif-body);
  font-size: 13px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--mocha-deep);
  margin-bottom: 18px;
}

.kicker.light { color: var(--cream-deep); }

.section-title {
  font-family: var(--serif-display);
  font-weight: 500;
  font-size: clamp(34px, 4.4vw, 54px);
  line-height: 1.1;
  margin-bottom: 22px;
}

.section-title em { font-style: italic; color: var(--mocha-deep); }
.section-title.light { color: var(--white); }
.section-title.light em { color: var(--cream-deep); }

.lede { font-size: 19px; color: var(--ink-soft); max-width: 62ch; margin-left: auto; margin-right: auto; }
.lede.light { color: rgba(253, 252, 249, 0.82); }

/* ---------- buttons ---------- */

.btn {
  display: inline-block;
  font-family: var(--serif-body);
  font-size: 13px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 15px 34px;
  border: 1px solid var(--ink);
  color: var(--ink);
  background: transparent;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
  text-align: center;
}

.btn-solid { background: var(--ink); color: var(--cream); }
.btn-solid:hover { background: var(--mocha-deep); border-color: var(--mocha-deep); color: var(--white); }
.btn-ghost:hover { background: var(--ink); color: var(--cream); }
.btn-small { padding: 10px 22px; font-size: 11.5px; }
.btn-wide { width: 100%; margin-top: 10px; }

/* ---------- top bar ---------- */

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 32px;
  background: var(--cream);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 40;
}

.topbar-brand {
  font-family: var(--serif-body);
  font-size: 14px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
}

.topbar-nav { display: flex; gap: 28px; }

.topbar-nav a {
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink-soft);
  transition: color 0.2s ease;
}

.topbar-nav a:hover { color: var(--ink); }

/* ---------- hero ---------- */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  min-height: calc(100vh - 62px);
}

.hero-media { position: relative; overflow: hidden; }

.hero-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 72px 48px;
  background:
    linear-gradient(180deg, rgba(166, 139, 111, 0) 82%, rgba(166, 139, 111, 0.35) 100%),
    var(--cream);
}

.hero-inner { max-width: 600px; text-align: center; }

.hero-title {
  font-family: var(--serif-display);
  font-weight: 500;
  font-size: clamp(44px, 5.4vw, 78px);
  line-height: 1.14;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mocha-deep);
}

.hero-sub {
  font-family: var(--serif-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(30px, 3vw, 44px);
  color: var(--ink);
  margin-top: 10px;
}

.hero-rule {
  width: 220px;
  height: 2px;
  background: var(--mocha);
  margin: 30px auto 30px;
}

.hero-when, .hero-where { font-size: 19px; color: var(--ink); }
.hero-where { color: var(--ink-soft); margin-top: 4px; }

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  align-items: stretch;
  margin-top: 34px;
  flex-wrap: wrap;
}

.hero-hosts {
  margin-top: 44px;
  font-size: 11.5px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--mocha-deep);
  line-height: 2;
}

/* calendar popover */

.cal-menu { position: relative; }
.cal-menu summary { list-style: none; }
.cal-menu summary::-webkit-details-marker { display: none; }

.cal-pop {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 230px;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 18px 40px rgba(62, 52, 42, 0.14);
  z-index: 30;
}

.cal-pop a {
  display: block;
  padding: 13px 20px;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}

.cal-pop a:last-child { border-bottom: none; }
.cal-pop a:hover { background: var(--cream); }

/* ---------- details cards ---------- */

.details { background: var(--cream-deep); padding: 96px 0; }

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.card {
  background: var(--white);
  padding: 44px 38px 40px;
  text-align: center;
  border-top: 3px solid var(--mocha);
}

.card-kicker {
  font-size: 12px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--mocha-deep);
  margin-bottom: 14px;
}

.card-title {
  font-family: var(--serif-display);
  font-weight: 500;
  font-size: 30px;
  line-height: 1.15;
  margin-bottom: 14px;
}

.card-copy { color: var(--ink-soft); font-size: 17.5px; }

.card-links { margin-top: 18px; font-size: 15px; }
.card-links a { color: var(--mocha-deep); text-underline-offset: 3px; }
.card-links a:hover { color: var(--ink); }

/* ---------- ecosystem ---------- */

.ecosystem { padding: 110px 0 104px; text-align: center; }
.ecosystem .lede { margin: 0 auto; }

.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 64px;
}

.pillar h3 {
  font-family: var(--serif-display);
  font-weight: 600;
  font-size: 23px;
  margin-bottom: 10px;
}

.pillar p { color: var(--ink-soft); font-size: 16.5px; }

.pillar {
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

/* ---------- photo band ---------- */

.band { height: 52vh; min-height: 340px; overflow: hidden; }
.band img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; }

/* ---------- sponsors ---------- */

.sponsors { padding: 104px 0; text-align: center; }

.logo-row {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 46px;
}

.logo-card {
  background: var(--white);
  border: 1px solid var(--line);
  min-height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 26px;
}

.logo-card img {
  max-height: 86px;
  max-width: 82%;
  width: auto;
  object-fit: contain;
}

/* ---------- rsvp ---------- */

.rsvp {
  background:
    linear-gradient(180deg, rgba(62, 52, 42, 0.18), rgba(62, 52, 42, 0.18)),
    var(--mocha-deep);
  padding: 104px 0 120px;
  text-align: center;
}

.form-card {
  background: var(--white);
  margin-top: 48px;
  padding: 52px 56px;
  text-align: left;
  box-shadow: 0 30px 70px rgba(40, 32, 24, 0.35);
}

.field { margin-bottom: 26px; }

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

.field label, .field legend {
  display: block;
  font-size: 12.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 9px;
}

.req { color: var(--mocha-deep); }

.field input[type="text"],
.field input[type="email"],
.field select {
  width: 100%;
  font-family: var(--serif-body);
  font-size: 17px;
  color: var(--ink);
  padding: 13px 14px;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 0;
  outline: none;
  transition: border-color 0.2s ease, background 0.2s ease;
  appearance: none;
}

.field select {
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%233E342A' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px;
}

.field input:focus, .field select:focus {
  border-color: var(--mocha-deep);
  background: var(--white);
}

fieldset.field { border: none; }

.radio-row { display: flex; gap: 14px; flex-wrap: wrap; }

.radio-pill { position: relative; margin-bottom: 0 !important; }

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

.radio-pill span {
  display: inline-block;
  padding: 11px 22px;
  border: 1px solid var(--line);
  background: var(--cream);
  font-size: 15px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.radio-pill input:checked + span {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--cream);
}

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

.hp-field { position: absolute; left: -9999px; }

.form-status { margin-top: 14px; font-size: 15.5px; color: var(--mocha-deep); text-align: center; min-height: 1.4em; }
.form-status.error { color: #8c3a2b; }

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

.success-title {
  font-family: var(--serif-display);
  font-style: italic;
  font-size: 42px;
  color: var(--mocha-deep);
  margin-bottom: 12px;
}

.success-copy { color: var(--ink-soft); max-width: 46ch; margin: 0 auto 26px; }

.success-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- footer ---------- */

.footer {
  background: var(--ink);
  color: rgba(253, 252, 249, 0.85);
  padding: 56px 0 40px;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.footer-brand {
  font-family: var(--serif-body);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  font-size: 14px;
  color: var(--white);
  margin-bottom: 12px;
}

.footer-line { font-size: 15.5px; line-height: 1.9; }
.footer-line a { color: var(--cream-deep); text-underline-offset: 3px; }
.footer-line a:hover { color: var(--white); }
.footer-right { text-align: right; }

.footer-partners {
  margin-top: 40px;
  padding: 26px 32px 0;
  border-top: 1px solid rgba(253, 252, 249, 0.16);
  text-align: center;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(253, 252, 249, 0.55);
}

/* ---------- reveal ---------- */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- responsive ---------- */

@media (max-width: 1020px) {
  .cards { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; }
  .logo-row { grid-template-columns: repeat(2, 1fr); max-width: 640px; margin-left: auto; margin-right: auto; margin-top: 46px; }
  .pillars { grid-template-columns: 1fr; max-width: 460px; margin-left: auto; margin-right: auto; margin-top: 48px; }
}

@media (max-width: 880px) {
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero-media { height: 44vh; min-height: 300px; position: relative; }
  .hero-media img { position: absolute; }
  .hero-panel { padding: 64px 28px 72px; }
  .topbar-nav { display: none; }
}

@media (max-width: 620px) {
  .wrap { padding: 0 22px; }
  .form-card { padding: 38px 26px; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .footer-right { text-align: left; }
  .hero-actions .btn { width: 100%; }
  .cal-menu { width: 100%; }
  .cal-menu summary.btn { width: 100%; }
  .details { padding: 72px 0; }
  .ecosystem, .sponsors { padding: 80px 0; }
}
