:root {
  --black: #050504;
  --panel: rgba(18, 15, 11, .93);
  --panel-soft: rgba(25, 20, 14, .82);
  --cream: #f2e7d4;
  --muted: #c7bca9;
  --gold: #c8953f;
  --gold-light: #e1b668;
  --line: rgba(201, 149, 63, .5);
  --green: #20ad67;
}

* { box-sizing: border-box; }
html { color-scheme: dark; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--black);
  color: var(--cream);
  font-family: Arial, Helvetica, sans-serif;
  min-width: 320px;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .12;
  background-image: radial-gradient(rgba(255,255,255,.16) .45px, transparent .55px);
  background-size: 4px 4px;
  mix-blend-mode: soft-light;
  z-index: 20;
}

.site-header {
  height: 72px;
  padding: 0 clamp(24px, 3vw, 52px);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 28px;
  border-bottom: 1px solid var(--line);
  background: rgba(2,2,2,.96);
  position: relative;
  z-index: 10;
}

.brand {
  color: var(--gold-light);
  text-decoration: none;
  font: 700 clamp(22px, 2vw, 30px)/1 Georgia, 'Times New Roman', serif;
  letter-spacing: .035em;
}

.main-nav, .header-actions {
  display: flex;
  align-items: center;
  gap: clamp(24px, 3.2vw, 58px);
  color: #eee8dc;
  font-size: 16px;
  white-space: nowrap;
}

.header-actions { justify-self: end; gap: 28px; }
.join-button {
  border: 1px solid var(--gold);
  padding: 13px 23px;
  border-radius: 5px;
  color: var(--gold-light);
}

.hero {
  min-height: 590px;
  position: relative;
  display: grid;
  grid-template-columns: minmax(360px, .95fr) minmax(360px, 1.05fr) minmax(410px, .9fr);
  align-items: center;
  overflow: hidden;
  border-bottom: 1px solid rgba(201,149,63,.28);
  isolation: isolate;
}

.hero-media {
  position: absolute;
  inset: 0;
  background-image: url('images/hemingway-hero.jpg');
  background-size: min(66vw, 1040px) auto;
  background-position: 58% 23%;
  background-repeat: no-repeat;
  filter: saturate(.78) brightness(.76) contrast(1.06);
  z-index: -3;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, #030303 0%, rgba(3,3,3,.92) 23%, rgba(3,3,3,.24) 48%, rgba(3,3,3,.42) 67%, rgba(3,3,3,.92) 100%),
    linear-gradient(0deg, rgba(0,0,0,.92) 0%, transparent 22%, transparent 74%, rgba(0,0,0,.26) 100%);
  z-index: -2;
}

.hero-shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(circle at 55% 42%, transparent 0 18%, rgba(0,0,0,.12) 45%, rgba(0,0,0,.62) 100%);
}

.hero-copy {
  grid-column: 1 / 2;
  padding: 56px 0 56px clamp(36px, 5.5vw, 92px);
  max-width: 650px;
  z-index: 2;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--gold-light);
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: 12px;
}

h1, h2, h3 { font-family: Georgia, 'Times New Roman', serif; font-weight: 400; }
.hero-copy h1 {
  margin: 0;
  color: #f7ead5;
  font-size: clamp(48px, 5.2vw, 78px);
  line-height: 1.02;
  letter-spacing: -.035em;
  text-shadow: 0 2px 18px rgba(0,0,0,.55);
}

.intro {
  margin: 32px 0 38px;
  max-width: 500px;
  color: #d5c9b7;
  font-size: clamp(17px, 1.35vw, 21px);
  line-height: 1.65;
}

.speaker-select {
  width: min(100%, 500px);
  min-height: 66px;
  padding: 0 22px;
  display: flex;
  align-items: center;
  gap: 15px;
  border: 1px solid var(--gold);
  border-radius: 6px;
  background: rgba(9,8,7,.88);
  box-shadow: 0 12px 30px rgba(0,0,0,.35);
  font-size: 19px;
}

.speaker-select strong { font-family: Georgia, serif; font-weight: 400; font-size: 22px; }
.select-label { color: #ddd3c3; }
.person-icon, .visitor-avatar {
  width: 22px;
  height: 22px;
  border: 1.5px solid var(--gold-light);
  border-radius: 50%;
  position: relative;
  flex: 0 0 auto;
}
.person-icon::after, .visitor-avatar::after {
  content: "";
  position: absolute;
  width: 28px;
  height: 13px;
  left: -4px;
  bottom: -13px;
  border: 1.5px solid var(--gold-light);
  border-bottom: 0;
  border-radius: 18px 18px 0 0;
}
.chevron {
  margin-left: auto;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--gold-light);
  border-bottom: 2px solid var(--gold-light);
  transform: rotate(45deg) translateY(-3px);
}

.conversation-panel {
  grid-column: 3 / 4;
  margin: 42px clamp(38px, 5vw, 88px) 42px 10px;
  padding: 22px;
  background: linear-gradient(160deg, rgba(25,20,14,.94), rgba(9,8,7,.96));
  border: 1px solid var(--gold);
  border-radius: 14px;
  box-shadow: 0 22px 55px rgba(0,0,0,.6);
  backdrop-filter: blur(5px);
  z-index: 3;
}

.conversation-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 18px;
}
.conversation-heading h2 { margin: 0; font-size: 18px; }
.live { color: var(--gold-light); white-space: nowrap; }
.live i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--green); margin-right: 7px; box-shadow: 0 0 12px rgba(32,173,103,.7); }

.message {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  gap: 14px;
  align-items: start;
  padding: 17px 15px 14px;
  margin-bottom: 14px;
  border: 1px solid rgba(201,149,63,.3);
  border-radius: 10px;
  background: rgba(255,255,255,.025);
}
.message-avatar { width: 42px; height: 42px; object-fit: cover; border-radius: 50%; border: 1px solid var(--gold); }
.visitor-avatar { width: 32px; height: 32px; margin: 5px; }
.message h3 { margin: 0 0 8px; color: var(--gold-light); font: 600 16px/1.2 Arial, sans-serif; }
.message p { margin: 0; color: #eee3d2; line-height: 1.45; font-size: 16px; }
.message time { align-self: end; color: #897c69; font-size: 11px; white-space: nowrap; }

.primary-button, .secondary-button {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  border-radius: 6px;
  font-family: Georgia, serif;
  font-size: 18px;
}
.primary-button { margin-top: 2px; color: #17110a; background: linear-gradient(#e5bd73, #c99743); border: 1px solid #eac779; }
.secondary-button { margin-top: 13px; color: var(--gold-light); border: 1px solid rgba(201,149,63,.45); }
.group-icon::before { content: "♙♙"; letter-spacing: -5px; font-family: Georgia, serif; }

.more-conversations { padding: 0 clamp(28px, 5vw, 82px) 34px; background: linear-gradient(#050504, #020202); }
.section-heading { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; transform: translateY(-2px); }
.section-heading span { height: 1px; background: linear-gradient(90deg, transparent, var(--line)); }
.section-heading span:last-child { background: linear-gradient(90deg, var(--line), transparent); }
.section-heading h2 { margin: 17px 0 18px; color: #dcb36a; font-size: clamp(28px, 2.4vw, 38px); }

.conversation-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.legend-card {
  min-height: 132px;
  display: grid;
  grid-template-columns: 136px 1fr auto;
  gap: 16px;
  align-items: center;
  border: 1px solid rgba(201,149,63,.62);
  border-radius: 10px;
  background: linear-gradient(130deg, rgba(30,24,17,.88), rgba(10,9,8,.92));
  overflow: hidden;
  position: relative;
}
.legend-card img { width: 136px; height: 132px; object-fit: cover; filter: sepia(.12) saturate(.8); }
.legend-card h3 { margin: 0 0 9px; color: #e7d3ae; font-size: 19px; }
.legend-card p { margin: 0; color: #c9bead; font-size: 14px; line-height: 1.45; }
.card-arrow { align-self: end; padding: 0 14px 15px 0; color: var(--gold-light); font-size: 24px; }

.press-quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 22px auto 0; max-width: 1000px; text-align: center; color: #aa9574; }
.press-quotes blockquote { margin: 0; font-family: Georgia, serif; font-size: 14px; }
.press-quotes cite { display: block; margin-top: 6px; color: var(--gold); font-style: normal; }

@media (max-width: 1180px) {
  .site-header { grid-template-columns: 1fr auto; }
  .main-nav { display: none; }
  .hero { grid-template-columns: 1fr 1fr; min-height: 760px; align-items: end; }
  .hero-media { background-size: 880px auto; background-position: 70% 4%; }
  .hero-copy { grid-column: 1 / 2; align-self: start; padding-top: 70px; }
  .conversation-panel { grid-column: 2 / 3; margin: 60px 34px 54px 18px; }
  .conversation-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  .site-header { height: 64px; padding: 0 18px; }
  .brand { font-size: 22px; }
  .header-actions { gap: 0; }
  .sign-in { display: none; }
  .join-button { padding: 10px 13px; font-size: 13px; }

  .hero {
    display: block;
    min-height: auto;
    padding-top: 250px;
  }
  .hero-media {
    height: 360px;
    bottom: auto;
    background-size: 460px auto;
    background-position: 58% 3%;
    mask-image: linear-gradient(to bottom, #000 70%, transparent 100%);
  }
  .hero::after {
    background: linear-gradient(0deg, #030303 0%, rgba(3,3,3,.96) 55%, rgba(3,3,3,.15) 100%);
  }
  .hero-copy { padding: 26px 20px 22px; max-width: none; }
  .eyebrow { margin-bottom: 12px; }
  .hero-copy h1 { font-size: clamp(40px, 12vw, 56px); }
  .intro { margin: 22px 0 28px; font-size: 17px; line-height: 1.55; }
  .speaker-select { min-height: 58px; padding: 0 16px; font-size: 15px; gap: 10px; }
  .speaker-select strong { font-size: 17px; }
  .select-label { display: none; }

  .conversation-panel { margin: 0 16px 36px; padding: 17px; }
  .conversation-heading { align-items: flex-start; }
  .conversation-heading h2 { font-size: 17px; }
  .message { grid-template-columns: 38px 1fr; }
  .message-avatar { width: 38px; height: 38px; }
  .message time { grid-column: 2; justify-self: end; }
  .message p { font-size: 15px; }

  .more-conversations { padding: 0 16px 28px; }
  .section-heading { gap: 12px; }
  .section-heading h2 { font-size: 27px; text-align: center; }
  .conversation-grid { grid-template-columns: 1fr; }
  .legend-card { grid-template-columns: 110px 1fr auto; min-height: 112px; }
  .legend-card img { width: 110px; height: 112px; }
  .press-quotes { grid-template-columns: 1fr; gap: 13px; }
}

@media (max-width: 390px) {
  .join-button { display: none; }
  .site-header { grid-template-columns: 1fr; }
  .hero-copy h1 { font-size: 39px; }
  .speaker-select strong { font-size: 16px; }
}
