/* ARC speech pages — primary-source reading layout */
:root {
  --speech-surface: rgba(7, 15, 29, 0.90);
  --speech-surface-soft: rgba(12, 28, 48, 0.68);
  --speech-border: rgba(99, 224, 255, 0.30);
  --speech-text: #eef8ff;
  --speech-muted: #b8cada;
  --speech-cyan: #76ebff;
  --speech-gold: #ffd982;
  --speech-violet: #cab4ff;
}

body.arc-speech-page {
  color: var(--speech-text);
  background:
    radial-gradient(circle at 18% 12%, rgba(39, 185, 229, 0.15), transparent 34rem),
    radial-gradient(circle at 83% 18%, rgba(128, 88, 238, 0.14), transparent 30rem),
    radial-gradient(circle at 50% 100%, rgba(255, 192, 87, 0.08), transparent 36rem),
    #050b14;
}

body.arc-speech-page[data-theme="light"] {
  --speech-surface: rgba(255, 255, 255, 0.94);
  --speech-surface-soft: rgba(243, 249, 253, 0.92);
  --speech-border: rgba(26, 118, 145, 0.22);
  --speech-text: #102130;
  --speech-muted: #506675;
  --speech-cyan: #006b86;
  --speech-gold: #875500;
  --speech-violet: #5f4a9e;
  background:
    radial-gradient(circle at 18% 12%, rgba(46, 169, 204, 0.12), transparent 34rem),
    radial-gradient(circle at 83% 18%, rgba(128, 88, 238, 0.10), transparent 30rem),
    #f4f8fb;
}

.speech-hero {
  padding: clamp(8.4rem, 15vw, 11rem) 1rem clamp(3.5rem, 8vw, 6rem);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.speech-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, black, transparent 88%);
}

.speech-hero-inner,
.speech-reading-shell {
  width: min(100%, 980px);
  margin-inline: auto;
  position: relative;
  z-index: 1;
}

.speech-kicker {
  display: inline-flex;
  gap: .55rem;
  align-items: center;
  padding: .55rem .9rem;
  border: 1px solid var(--speech-border);
  border-radius: 999px;
  color: var(--speech-cyan);
  background: rgba(5, 19, 32, .42);
  font-family: Inter, system-ui, sans-serif;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

[data-theme="light"] .speech-kicker { background: rgba(255,255,255,.72); }

.speech-hero h1 {
  max-width: 920px;
  margin: 1.25rem auto .75rem;
  color: var(--speech-text);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(3rem, 8vw, 6.8rem);
  font-weight: 700;
  line-height: .93;
  letter-spacing: -.035em;
}

.speech-byline {
  margin: .85rem auto 0;
  color: var(--speech-gold);
  font-size: clamp(1.03rem, 2.2vw, 1.34rem);
  font-weight: 650;
}

.speech-date {
  margin: .6rem auto 0;
  color: var(--speech-muted);
  font-size: .98rem;
}

.speech-reading {
  width: min(calc(100% - 2rem), 920px);
  margin: 0 auto 5rem;
  padding: clamp(1.35rem, 4vw, 3rem);
  border: 1px solid var(--speech-border);
  border-radius: 30px;
  background: linear-gradient(180deg, var(--speech-surface), var(--speech-surface-soft));
  box-shadow: 0 28px 90px rgba(0, 0, 0, .28);
  backdrop-filter: blur(18px);
}

.speech-reading article {
  max-width: 760px;
  margin-inline: auto;
}

.speech-reading h1 { display: none; }
.speech-reading h2 {
  margin: 3.6rem 0 1.15rem;
  color: var(--speech-cyan);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1.05;
  text-wrap: balance;
}

.speech-reading h3 {
  margin: 1rem 0 1.6rem;
  color: var(--speech-violet);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.35rem, 3vw, 1.8rem);
}

.speech-reading p,
.speech-reading li {
  color: var(--speech-text);
  font-family: Inter, system-ui, sans-serif;
  font-size: clamp(1.02rem, 1.65vw, 1.14rem);
  line-height: 1.83;
}

.speech-reading p { margin: 1rem 0; }
.speech-reading strong { color: var(--speech-gold); }
.speech-reading em { color: var(--speech-violet); }
.speech-reading ul,
.speech-reading ol { padding-left: 1.45rem; margin: 1.1rem 0 1.5rem; }
.speech-reading li { margin: .45rem 0; padding-left: .2rem; }
.speech-reading hr {
  border: 0;
  height: 1px;
  margin: 2.9rem 0;
  background: linear-gradient(90deg, transparent, var(--speech-border), transparent);
}
.speech-reading blockquote {
  margin: 2rem 0;
  padding: 1.15rem 1.35rem;
  border-left: 3px solid var(--speech-cyan);
  background: rgba(69, 196, 232, .07);
  border-radius: 0 14px 14px 0;
}
.speech-reading blockquote p { margin: 0; }

.speech-page-tools {
  width: min(calc(100% - 2rem), 920px);
  margin: -2.25rem auto 2rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .75rem;
}
.speech-page-tools a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: .72rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--speech-border);
  color: var(--speech-text);
  text-decoration: none;
  background: rgba(8, 22, 36, .7);
  font-weight: 700;
}
[data-theme="light"] .speech-page-tools a { background: rgba(255,255,255,.88); }
.speech-page-tools a:hover,
.speech-page-tools a:focus-visible {
  border-color: var(--speech-cyan);
  transform: translateY(-1px);
}

.speech-note {
  max-width: 760px;
  margin: 2.5rem auto 0;
  padding-top: 1.25rem;
  border-top: 1px solid var(--speech-border);
  color: var(--speech-muted);
  font: 500 .88rem/1.65 Inter, system-ui, sans-serif;
  text-align: center;
}

@media (max-width: 720px) {
  .speech-hero { padding-top: 7.3rem; }
  .speech-reading {
    width: min(calc(100% - 1rem), 920px);
    border-radius: 20px;
    padding: 1.25rem 1rem;
  }
  .speech-reading p,
  .speech-reading li { line-height: 1.72; }
  .speech-page-tools { width: calc(100% - 1rem); }
  .speech-page-tools a { flex: 1 1 220px; }
}

@media (prefers-reduced-motion: reduce) {
  .speech-page-tools a { transition: none; }
}


/* ARC community invitation */
.speech-community-invitation {
  position: relative;
  overflow: hidden;
  max-width: 760px;
  margin: 3.2rem auto .25rem;
  padding: clamp(1.5rem, 4vw, 2.6rem);
  border: 1px solid rgba(69, 196, 232, .45);
  border: 1px solid color-mix(in srgb, var(--speech-cyan) 52%, transparent);
  border-radius: 26px;
  text-align: center;
  background:
    radial-gradient(circle at 50% 0%, rgba(69, 196, 232, .16), transparent 44%),
    linear-gradient(180deg, rgba(14, 34, 53, .94), rgba(7, 20, 34, .96));
  box-shadow: 0 26px 70px rgba(0, 0, 0, .3), inset 0 1px 0 rgba(255,255,255,.07);
}
[data-theme="light"] .speech-community-invitation {
  background:
    radial-gradient(circle at 50% 0%, rgba(28, 143, 177, .12), transparent 44%),
    linear-gradient(180deg, rgba(255,255,255,.98), rgba(238,247,252,.98));
  box-shadow: 0 24px 55px rgba(32, 75, 100, .14), inset 0 1px 0 rgba(255,255,255,.8);
}
.speech-community-kicker {
  color: var(--speech-cyan);
  font: 800 .78rem/1.2 Inter, system-ui, sans-serif;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.speech-reading .speech-community-invitation h2 {
  margin: .65rem auto 1rem;
  color: var(--speech-text);
  font-size: clamp(2.15rem, 6vw, 4.15rem);
  line-height: .98;
}
.speech-community-lead,
.speech-community-copy {
  max-width: 650px;
  margin-inline: auto !important;
}
.speech-community-yes {
  margin: 1rem auto .8rem;
  color: var(--speech-gold);
  font: 900 clamp(3.2rem, 13vw, 7.8rem)/.9 Inter, system-ui, sans-serif;
  letter-spacing: -.06em;
  text-shadow: 0 0 30px rgba(255, 210, 107, .18);
}
.speech-community-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .75rem;
  margin: 1.6rem auto 1rem;
}
.speech-community-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: .78rem 1.05rem;
  border: 1px solid var(--speech-border);
  border-radius: 999px;
  color: var(--speech-text);
  background: rgba(255,255,255,.045);
  text-decoration: none;
  font: 800 .92rem/1.2 Inter, system-ui, sans-serif;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}
.speech-community-btn:hover,
.speech-community-btn:focus-visible {
  transform: translateY(-2px);
  border-color: var(--speech-cyan);
  background: rgba(69,196,232,.1);
}
.speech-community-primary {
  border-color: rgba(255, 210, 107, .72);
  border-color: color-mix(in srgb, var(--speech-gold) 72%, transparent);
  background: linear-gradient(135deg, rgba(255, 210, 107, .2), rgba(69, 196, 232, .13));
}
.speech-reading .speech-community-contact {
  margin-top: 1rem;
  color: var(--speech-muted);
  font-size: .95rem;
}
.speech-community-contact a { color: var(--speech-cyan); font-weight: 800; }
.speech-reading .speech-community-note {
  max-width: 620px;
  margin: 1.25rem auto 0;
  padding-top: 1rem;
  border-top: 1px solid var(--speech-border);
  color: var(--speech-muted);
  font-size: .82rem;
  line-height: 1.55;
}
@media (max-width: 720px) {
  .speech-community-invitation { border-radius: 20px; padding: 1.35rem 1rem; }
  .speech-community-actions { display: grid; grid-template-columns: 1fr; }
  .speech-community-btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .speech-community-btn { transition: none; }
}

/* Speeches hub — guided journey */
.speeches-hub-page .speech-hub-main {
  width: min(calc(100% - 2rem), 1120px);
  margin: 0 auto 5rem;
}

.speeches-hub-page .speech-hub-intro {
  margin: -1rem auto 2.2rem;
}

.speech-journey-sign {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  align-items: stretch;
  gap: .65rem;
  padding: .85rem;
  border: 1px solid var(--speech-border);
  border-radius: 24px;
  background: linear-gradient(180deg, var(--speech-surface), var(--speech-surface-soft));
  box-shadow: 0 20px 60px rgba(0,0,0,.22);
}

.journey-step {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: .38rem;
  min-height: 88px;
  padding: .8rem .65rem;
  border: 1px solid transparent;
  border-radius: 17px;
  color: var(--speech-muted);
  text-decoration: none;
  text-align: center;
  font-family: Inter, system-ui, sans-serif;
}

.journey-step span {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--speech-border);
  color: var(--speech-cyan);
  font-size: .75rem;
  font-weight: 900;
}

.journey-step b {
  font-size: .82rem;
  line-height: 1.2;
  letter-spacing: .02em;
}

.journey-step.done { color: var(--speech-text); }
.journey-step.current {
  color: var(--speech-text);
  border-color: color-mix(in srgb, var(--speech-gold) 60%, transparent);
  background: linear-gradient(135deg, rgba(255,217,130,.13), rgba(118,235,255,.08));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.025);
}
.journey-step.current span {
  border-color: var(--speech-gold);
  color: var(--speech-gold);
}
.journey-step.next {
  color: var(--speech-text);
  border-color: color-mix(in srgb, var(--speech-cyan) 35%, transparent);
}
.journey-step:hover,
.journey-step:focus-visible {
  color: var(--speech-text);
  border-color: var(--speech-cyan);
}

.journey-arrow {
  align-self: center;
  color: var(--speech-cyan);
  font: 800 1.15rem/1 Inter, system-ui, sans-serif;
  opacity: .7;
}

.speech-hub-lead {
  max-width: 800px;
  margin: 1.4rem auto 0;
  color: var(--speech-muted);
  text-align: center;
  font: 500 clamp(1rem, 2vw, 1.12rem)/1.72 Inter, system-ui, sans-serif;
}
.speech-hub-lead strong { color: var(--speech-gold); }

.speech-hub-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr);
  gap: 1.2rem;
  align-items: stretch;
}

.speech-hub-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: clamp(1.45rem, 3vw, 2.25rem);
  border: 1px solid var(--speech-border);
  border-radius: 26px;
  background: linear-gradient(180deg, var(--speech-surface), var(--speech-surface-soft));
  box-shadow: 0 24px 70px rgba(0,0,0,.22);
}

.speech-hub-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--speech-cyan), transparent);
  opacity: .7;
}

.speech-hub-card-primary {
  border-color: color-mix(in srgb, var(--speech-cyan) 48%, transparent);
  background:
    radial-gradient(circle at 15% 0%, rgba(118,235,255,.12), transparent 38%),
    linear-gradient(180deg, var(--speech-surface), var(--speech-surface-soft));
}
.speech-hub-card-primary::after {
  content: "01";
  position: absolute;
  right: 1rem;
  top: .65rem;
  color: rgba(118,235,255,.09);
  font: 900 clamp(4rem, 9vw, 7rem)/1 Inter, system-ui, sans-serif;
  letter-spacing: -.06em;
}

.speech-hub-card-secondary {
  opacity: .88;
  box-shadow: 0 16px 42px rgba(0,0,0,.16);
}

.speech-card-label {
  position: relative;
  z-index: 1;
  width: fit-content;
  margin-bottom: 1.15rem;
  padding: .48rem .72rem;
  border: 1px solid color-mix(in srgb, var(--speech-gold) 58%, transparent);
  border-radius: 999px;
  color: var(--speech-gold);
  background: rgba(255,217,130,.07);
  font: 900 .7rem/1 Inter, system-ui, sans-serif;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.speech-card-label.secondary {
  border-color: var(--speech-border);
  color: var(--speech-muted);
  background: transparent;
}

.speech-hub-date {
  position: relative;
  z-index: 1;
  color: var(--speech-cyan);
  font: 800 .82rem/1.2 Inter, system-ui, sans-serif;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.speech-hub-card h2 {
  position: relative;
  z-index: 1;
  margin: .7rem 0 .9rem;
  color: var(--speech-text);
  font: 700 clamp(2rem, 4.5vw, 3.55rem)/.98 "Cormorant Garamond", Georgia, serif;
  letter-spacing: -.025em;
  text-wrap: balance;
}
.speech-hub-card-secondary h2 {
  font-size: clamp(1.75rem, 3.3vw, 2.55rem);
}

.speech-hub-card p {
  position: relative;
  z-index: 1;
  margin: 0 0 1.35rem;
  color: var(--speech-muted);
  font: 500 1rem/1.68 Inter, system-ui, sans-serif;
}

.speech-hub-link {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 46px;
  margin-top: auto;
  padding: .76rem 1rem;
  border: 1px solid var(--speech-border);
  border-radius: 999px;
  color: var(--speech-text);
  text-decoration: none;
  font: 800 .9rem/1.2 Inter, system-ui, sans-serif;
}
.speech-hub-link-primary {
  border-color: var(--speech-cyan);
  background: linear-gradient(135deg, rgba(118,235,255,.16), rgba(202,180,255,.10));
}
.speech-hub-link:hover,
.speech-hub-link:focus-visible {
  border-color: var(--speech-gold);
  transform: translateY(-2px);
}

.speech-hub-next {
  max-width: 880px;
  margin: 2.4rem auto 0;
  padding: clamp(1.6rem, 4vw, 2.6rem);
  border: 1px solid color-mix(in srgb, var(--speech-gold) 42%, transparent);
  border-radius: 28px;
  text-align: center;
  background:
    radial-gradient(circle at 50% 0%, rgba(255,217,130,.09), transparent 50%),
    linear-gradient(180deg, var(--speech-surface), var(--speech-surface-soft));
}
.speech-next-kicker {
  color: var(--speech-gold);
  font: 900 .73rem/1 Inter, system-ui, sans-serif;
  letter-spacing: .15em;
  text-transform: uppercase;
}
.speech-hub-next h2 {
  margin: .7rem 0 .8rem;
  color: var(--speech-text);
  font: 700 clamp(2rem, 5vw, 3.25rem)/1 "Cormorant Garamond", Georgia, serif;
}
.speech-hub-next p {
  max-width: 650px;
  margin: 0 auto 1.3rem;
  color: var(--speech-muted);
  font: 500 1rem/1.65 Inter, system-ui, sans-serif;
}
.speech-next-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: .82rem 1.15rem;
  border: 1px solid var(--speech-cyan);
  border-radius: 999px;
  color: var(--speech-text);
  background: linear-gradient(135deg, rgba(118,235,255,.15), rgba(202,180,255,.11));
  text-decoration: none;
  font: 900 .94rem/1.2 Inter, system-ui, sans-serif;
}
.speech-next-button:hover,
.speech-next-button:focus-visible {
  border-color: var(--speech-gold);
  transform: translateY(-2px);
}

@media (max-width: 860px) {
  .speech-journey-sign {
    grid-template-columns: 1fr;
    gap: .4rem;
  }
  .journey-step { min-height: 58px; flex-direction: row; }
  .journey-arrow { transform: rotate(90deg); justify-self: center; }
  .speech-hub-grid { grid-template-columns: 1fr; }
  .speech-hub-card-secondary { opacity: 1; }
}

@media (max-width: 720px) {
  .speeches-hub-page .speech-hub-main { width: min(calc(100% - 1rem), 1120px); }
  .speech-hub-card,
  .speech-hub-next,
  .speech-journey-sign { border-radius: 20px; }
}
