/* Bravo Cigar Bible Study — "Ember Lounge" */

:root {
  --bg: #17130F;
  --surface-alt: #201A14;
  --card: #241D16;
  --card-2: #2A221A;
  --border: #3A2F24;
  --border-strong: #5A4A3A;
  --text: #F2EBE1;
  --text-muted: #CFC3B4;
  --text-subtle: #B9AC9C;
  --accent: #E39A4B;
  --accent-ink: #1A140E;
  --link: #E9A55A;
  --link-hover: #F6C891;

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --max: 1160px;
  --gutter: 24px;
  --section-y: clamp(72px, 10vw, 112px);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 24px;
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
@media (min-width: 900px) {
  body { font-size: 19px; }
}

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

a { color: var(--link); text-underline-offset: 3px; }
a:hover { color: var(--link-hover); }
a:focus-visible, .btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

h1, h2, h3 {
  margin: 0;
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
p { margin: 0; }

.container {
  width: 100%;
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section { padding: var(--section-y) 0; }
.section--alt { background: var(--surface-alt); }

.eyebrow {
  margin: 0 0 16px;
  color: var(--accent);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.18em;
  line-height: 1.4;
  text-transform: uppercase;
}

.h2 { font-size: clamp(2.125rem, 5vw, 3rem); }

.lead { font-size: 1.1em; }

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  padding: 8px 16px;
  background: var(--accent);
  color: var(--accent-ink);
  border-radius: 999px;
  font-weight: 600;
  z-index: 10;
}
.skip-link:focus { top: 16px; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 28px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.btn--primary { background: var(--accent); color: var(--accent-ink); }
.btn--primary:hover { background: var(--link-hover); color: var(--accent-ink); }
.btn--outline { border-color: var(--border-strong); color: var(--text); }
.btn--outline:hover { border-color: var(--accent); color: var(--text); }
.btn--sm { padding: 12px 22px; font-size: 15px; }

/* Header */
.site-header { border-bottom: 1px solid var(--border); }
.site-header .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 32px;
  padding-top: 20px;
  padding-bottom: 20px;
}
.wordmark {
  color: var(--text);
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
}
.wordmark:hover { color: var(--text); }
.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-nav a {
  color: var(--text-muted);
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
}
.site-nav a:hover { color: var(--text); }

@media (max-width: 640px) {
  .site-nav { order: 3; width: 100%; }
  .site-nav ul { gap: 4px 24px; }
}

/* Hero */
.hero { padding-top: clamp(56px, 8vw, 96px); }
.hero__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: 48px 64px;
  align-items: center;
}
@media (min-width: 960px) {
  .hero__grid { grid-template-columns: 1.4fr 1fr; }
}
.hero h1 {
  font-size: clamp(2.75rem, 8vw, 4.5rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
}
.hero__intro { margin-top: 24px; max-width: 34em; }
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}

.gathering {
  padding: 32px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
}
.gathering .eyebrow { margin-bottom: 12px; }
.gathering__date {
  color: var(--text);
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.125rem);
  font-weight: 500;
  line-height: 1.15;
  text-wrap: balance;
}
.gathering__details {
  display: grid;
  gap: 16px;
  margin: 24px 0;
  padding: 24px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.gathering__details div {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 16px;
}
.gathering__details dt {
  color: var(--text-subtle);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.12em;
  line-height: 1.9;
  text-transform: uppercase;
}
.gathering__details dd { margin: 0; color: var(--text); }
.gathering__address {
  display: block;
  color: var(--text-subtle);
  font-size: 16px;
}
.gathering__note { color: var(--text-subtle); font-size: 16px; }

.hero__art {
  margin: clamp(56px, 8vw, 88px) 0 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--card);
}
.hero__art img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: 50% 30%;
}
@media (min-width: 720px) {
  .hero__art img { aspect-ratio: 21 / 9; }
}

/* Pillars */
.section-head { max-width: 40rem; margin-bottom: 56px; }
.pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
  gap: 40px 32px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.pillar {
  padding-top: 24px;
  border-top: 2px solid var(--accent);
}
.pillar__num {
  display: block;
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 500;
  line-height: 1;
}
.pillar h3 {
  margin: 20px 0 10px;
  font-size: 1.625rem;
}

/* Meetings */
.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: 32px 64px;
  align-items: start;
}
.split__body > * + * { margin-top: 20px; }
.schedule {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 36px 0 0;
  padding: 0;
  list-style: none;
}
.schedule li {
  padding: clamp(14px, 3vw, 18px) clamp(12px, 3vw, 20px);
  border: 1px solid var(--border);
  border-radius: 16px;
}
.schedule time {
  display: block;
  color: var(--text);
  font-family: var(--font-display);
  font-size: clamp(1.125rem, 4.4vw, 1.5rem);
  white-space: nowrap;
  line-height: 1.2;
}
.schedule span {
  color: var(--text-subtle);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* Connect */
.connect__intro { max-width: 46rem; margin-top: 20px; }
.connect-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 16px;
  margin: 48px 0 0;
  padding: 0;
  list-style: none;
}
.connect-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  height: 100%;
  padding: 28px;
  background: var(--card-2);
  border: 1px solid var(--border);
  border-radius: 16px;
  color: var(--text-muted);
  text-decoration: none;
  transition: border-color .15s ease;
}
.connect-card:hover { border-color: var(--accent); color: var(--text-muted); }
.connect-card h3 {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 1.5rem;
}
.connect-card h3 span {
  color: var(--accent);
  font-family: var(--font-body);
  font-size: 1.125rem;
  transition: transform .15s ease;
}
.connect-card:hover h3 span { transform: translateX(4px); }
.connect-card p { font-size: 16px; }

/* Footer */
.site-footer {
  padding: 40px 0;
  border-top: 1px solid var(--border);
  color: var(--text-subtle);
  font-size: 15px;
}
.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 40px;
}
.site-footer p:last-child { max-width: 32rem; }
