/* Edit text, organizers, and talks in the HTML files, not here.
   This stylesheet controls the shared layout, colors, and typography. */
:root {
  color-scheme: light;
  --navy: #172b4d;
  --ink: #1e2c3d;
  --muted: #617086;
  --blue: #315fbd;
  --teal: #2a8883;
  --line: #dfe6ee;
  --paper: #f5f7fa;
  --white: #fff;
  --shadow: 0 18px 48px rgba(25, 45, 75, .09);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  min-height: 100vh;
  margin: 0;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.7;
}
a { color: var(--blue); text-underline-offset: .22em; text-decoration-thickness: 1px; }
a:hover { color: #214a9d; text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid #e0a63b; outline-offset: 4px; border-radius: 4px; }
.skip-link { position: absolute; left: 1rem; top: -5rem; z-index: 20; padding: .55rem 1rem; border-radius: 8px; background: white; color: var(--navy); }
.skip-link:focus { top: .5rem; }

.nav-wrap {
  background: radial-gradient(circle at 80% -100%, rgba(91, 160, 181, .48), transparent 44%), linear-gradient(115deg, #142747, #1c3862 62%, #234d6d);
  color: white;
  box-shadow: 0 5px 24px rgba(17, 37, 65, .16);
}
nav {
  max-width: 1200px;
  min-height: 76px;
  margin: auto;
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
}
.site-title { color: white; text-decoration: none; font-family: Georgia, "Times New Roman", serif; font-size: 1.35rem; font-weight: 700; letter-spacing: -.025em; line-height: 1.3; }
.site-title:hover { color: white; }
.nav-links { display: flex; flex-wrap: wrap; list-style: none; padding: 0; margin: 0; gap: .35rem; }
.nav-links a { display: inline-block; color: rgba(255,255,255,.82); text-decoration: none; font-size: .93rem; padding: .48rem .82rem; border-radius: 999px; transition: background-color .18s ease, color .18s ease; }
.nav-links a:hover, .nav-links a[aria-current="page"] { background: rgba(255,255,255,.14); color: white; }

main { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 1.5rem 4rem; flex: 1; }
h1, h2, h3 { color: var(--navy); line-height: 1.2; }
h1, h2 { font-family: Georgia, "Times New Roman", serif; letter-spacing: -.025em; }
h1 { font-size: clamp(2.5rem, 5.7vw, 4.5rem); margin: 0 0 1.15rem; }
h2 { font-size: 1.65rem; margin: 0 0 .8rem; }
h3 { font-size: 1.05rem; margin: 0 0 .5rem; }
p { margin: 0 0 1rem; }
.eyebrow { margin: 0 0 .75rem; color: var(--teal); font-size: .73rem; font-weight: 800; letter-spacing: .16em; line-height: 1.4; text-transform: uppercase; }
.surface-card { background: var(--white); border: 1px solid rgba(217, 226, 236, .9); border-radius: 18px; box-shadow: var(--shadow); }

.home-page { padding-top: 2.8rem; }
.intro-grid { position: relative; isolation: isolate; display: grid; grid-template-columns: 1.14fr .86fr; align-items: center; gap: clamp(2rem, 6vw, 5.5rem); padding: 2rem 0 4.3rem; }
.intro-grid::before { content: ""; position: absolute; z-index: -1; width: 430px; height: 430px; right: -115px; top: -65px; border-radius: 50%; background: radial-gradient(circle at 40% 37%, rgba(77, 156, 159, .15), rgba(79, 121, 181, .07) 48%, transparent 70%); }
.intro-grid > div:first-child { max-width: 650px; }
.home-page h1 { max-width: 9ch; margin-bottom: 1.35rem; }
.home-page .intro-grid > div:first-child > p:not(.eyebrow) { max-width: 56ch; color: #51627a; font-size: 1.08rem; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; margin-top: 1.8rem; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; min-height: 46px; padding: .65rem 1rem; border: 1px solid transparent; border-radius: 10px; font-size: .93rem; font-weight: 700; text-decoration: none; transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease; }
.button:hover { transform: translateY(-2px); text-decoration: none; }
.button-primary { background: var(--blue); color: white; box-shadow: 0 8px 20px rgba(49, 95, 189, .2); }
.button-primary:hover { background: #274f9f; color: white; box-shadow: 0 11px 24px rgba(49, 95, 189, .25); }
.button-secondary { border-color: var(--line); background: rgba(255,255,255,.65); color: var(--navy); }
.button-secondary:hover { border-color: #bdcad9; background: white; color: var(--navy); }
.next-talk { position: relative; padding: 2rem; overflow: hidden; }
.next-talk::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 5px; background: linear-gradient(90deg, var(--teal), #78b1af 55%, #d5e8e6); }
.next-talk > .eyebrow { margin-bottom: .8rem; }
.next-talk > .talk-card { margin: 0; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.next-talk .talk-card h2 { margin-bottom: .7rem; font-size: 1.4rem; }
.next-talk .empty-state { margin: 0; padding: .9rem 1rem; border-radius: 10px; background: #f3f7f8; color: #53677a; }
.meeting-link-box { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 1rem; padding: 1rem; border: 1px solid #d1e5e2; border-radius: 12px; background: #f2f9f8; }
.meeting-link-box .eyebrow { margin: 0 0 .15rem; }
.meeting-note { margin: 0; color: #53677a; font-size: .9rem; }
.organizers-section { padding: 1.8rem 2rem; margin: .2rem 0 1.4rem; }
.organizers-section h2, .interests h2 { margin-bottom: 1rem; }
.organizers { display: flex; flex-wrap: wrap; gap: .6rem; list-style: none; margin: 0; padding: 0; }
.organizers li { padding: .42rem .8rem; border: 1px solid #dce7e9; border-radius: 999px; background: #f6faf9; color: #315c61; font-size: .92rem; font-weight: 650; }
.interests { margin-top: 1.4rem; padding: 1.8rem 2rem 2rem; }
.interests ul { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .8rem; list-style: none; margin: 1.3rem 0 0; padding: 0; }
.interests li { display: flex; align-items: flex-start; gap: .65rem; min-height: 78px; padding: .9rem; border: 1px solid var(--line); border-radius: 12px; background: #fbfcfd; color: #46566a; }
.interests li::before { content: "✦"; flex: 0 0 auto; color: var(--teal); font-size: .9rem; line-height: 1.8; }
.subscribe-line { margin: 1.5rem 0 0; padding-top: 1.1rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .92rem; }
.subscribe-line a { font-weight: 650; overflow-wrap: anywhere; }

.talk-page { max-width: 900px; padding-top: 3.5rem; }
.talk-page > .eyebrow { margin-bottom: .55rem; }
.talk-page > h1 { margin-bottom: .75rem; font-size: clamp(2.45rem, 5vw, 3.6rem); }
.page-intro { max-width: 62ch; margin: 0 0 2.2rem; color: var(--muted); font-size: 1.05rem; }
.talk-card { margin: 1rem 0; padding: 1.45rem 1.6rem .6rem; border: 1px solid var(--line); border-radius: 15px; background: var(--white); box-shadow: 0 9px 26px rgba(25, 45, 75, .05); }
.talk-card h2 { margin-bottom: .55rem; font-size: 1.35rem; }
.speaker-line { display: flex; flex-wrap: wrap; align-items: baseline; gap: .15rem .7rem; margin-bottom: .4rem; }
.speaker-name { color: #263b58; font-weight: 750; }
.speaker-affiliation { color: var(--muted); font-size: .94rem; }
.speaker-affiliation::before { content: "·"; padding-right: .7rem; color: #9ba8b7; }
.talk-date { display: flex; flex-wrap: wrap; gap: .2rem .6rem; align-items: baseline; margin: .75rem 0 .35rem; color: #405571; font-size: .92rem; }
.date-label { color: var(--muted); font-size: .73rem; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.date-value { color: var(--muted); font-size: .92rem; }
.talk-description { margin-top: .7rem; border-top: 1px solid #e9edf2; }
.talk-description summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .78rem 0 .9rem; color: var(--blue); cursor: pointer; font-size: .94rem; font-weight: 700; list-style: none; }
.talk-description summary::-webkit-details-marker { display: none; }
.talk-description summary::after { content: "+"; display: grid; place-items: center; width: 1.65rem; height: 1.65rem; border-radius: 50%; background: #eef3fc; color: var(--blue); font-size: 1.2rem; line-height: 1; }
.talk-description[open] summary::after { content: "−"; }
.talk-description summary:hover { color: #214a9d; }
.description-content { padding: .15rem 0 .7rem; color: #51627a; }
.description-content p:last-child { margin-bottom: .3rem; }
.empty-state { margin-top: 1.8rem; padding: 1.1rem 1.25rem; border: 1px dashed #c9d4e0; border-radius: 12px; background: rgba(255,255,255,.55); color: var(--muted); }
.references { margin: 1.5rem 0; padding-left: 1.3rem; }
.references li { margin-bottom: .9rem; padding-left: .25rem; }
.talk-page > p:not(.eyebrow) { max-width: 65ch; }

footer { width: calc(100% - 3rem); max-width: 1152px; margin: auto; padding: 1.2rem 0 1.6rem; border-top: 1px solid var(--line); color: #718096; font-size: .88rem; }

@media (max-width: 800px) {
  nav { flex-wrap: wrap; gap: .65rem; padding: .9rem 1.25rem; }
  .nav-links { width: 100%; gap: .25rem; }
  .nav-links a { padding: .4rem .65rem; font-size: .88rem; }
  main { padding: 0 1.25rem 3rem; }
  .home-page { padding-top: 1.7rem; }
  .intro-grid { grid-template-columns: 1fr; gap: 1.4rem; padding: 1rem 0 2.4rem; }
  .intro-grid::before { width: 280px; height: 280px; right: -65px; top: 40px; }
  .home-page h1 { max-width: 12ch; }
  .next-talk { padding: 1.5rem; }
  .meeting-link-box { align-items: stretch; flex-direction: column; }
  .meeting-link-box .button { width: 100%; }
  .interests ul { grid-template-columns: 1fr; }
  .interests li { min-height: auto; }
  .talk-page { padding-top: 2.3rem; }
}
@media (max-width: 480px) {
  .site-title { font-size: 1.2rem; }
  .nav-links { display: grid; grid-template-columns: 1fr 1fr; }
  .nav-links a { width: 100%; }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .hero-actions .button { width: 100%; }
  .organizers-section, .interests { padding: 1.35rem; }
  .talk-card { padding: 1.15rem 1.15rem .45rem; }
  .speaker-affiliation::before { padding-right: .4rem; }
  footer { width: calc(100% - 2.5rem); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
@media print {
  .nav-wrap, footer, .hero-actions, .talk-description summary { display: none; }
  body { background: white; }
  main { max-width: none; padding: 0; }
  .talk-description > .description-content { display: block !important; }
}
