/* ---------- Tokens ---------- */
:root {
  --cream: #f7f4ef;
  --cream-alt: #efe8da;
  --paper: #ffffff;
  --ink: #1b2a38;
  --ink-soft: #4a5a68;
  --navy: #234158;
  --navy-deep: #16283a;
  --blue: #3c658e;
  --slate: #5f7a91;
  --tan: #b99568;
  --tan-pale: #e4d6bd;
  --border: rgba(35, 65, 88, 0.14);
  --shadow: 0 12px 32px rgba(22, 40, 58, 0.10);

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Source Sans 3", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --max-width: 1160px;
}

/* ---------- Reset ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--navy); text-decoration: none; }
a:hover { color: var(--blue); }
main p a, main li a {
  text-decoration: underline; text-decoration-color: rgba(35, 65, 88, 0.4); text-underline-offset: 2px;
}
h1, h2, h3 { font-family: var(--font-display); color: var(--navy-deep); line-height: 1.15; margin: 0 0 0.5em; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
li { list-style: none; }
.wrap { max-width: var(--max-width); margin: 0 auto; padding: 0 28px; }

:focus-visible {
  outline: 2.5px solid var(--navy);
  outline-offset: 3px;
  border-radius: 4px;
}
.site-footer :focus-visible, .journal-card :focus-visible {
  outline-color: var(--tan-pale);
}

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--navy); color: #fff; padding: 10px 18px; z-index: 200;
}
.skip-link:focus { left: 12px; top: 12px; border-radius: 6px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ---------- Buttons & badges ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 24px; border-radius: 8px; font-weight: 600; font-size: 0.95rem;
  border: 1.5px solid transparent; transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  text-align: center;
}
.header-cta, .nav-toggle { white-space: nowrap; }
.btn-primary { background: var(--navy); color: #fff; box-shadow: var(--shadow); }
.btn-primary:hover { background: var(--blue); color: #fff; transform: translateY(-1px); }
.btn-secondary { background: var(--paper); color: var(--navy); border-color: var(--border); }
.btn-secondary:hover { border-color: var(--blue); color: var(--blue); }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--border); padding: 9px 18px; font-size: 0.9rem; }
.btn-ghost:hover { background: var(--paper); border-color: var(--blue); }

.badge {
  display: inline-block; padding: 6px 14px; border-radius: 999px;
  background: rgba(255,255,255,0.75); border: 1px solid rgba(255,255,255,0.6);
  font-size: 0.82rem; font-weight: 600; color: var(--navy-deep);
  backdrop-filter: blur(3px);
}
.badge em { font-style: italic; font-weight: 500; }
.badge-muted { background: var(--tan-pale); border-color: transparent; color: var(--navy-deep); }
.badge-link {
  transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
  animation: badge-pulse 2.8s ease-in-out infinite;
}
.badge-link:hover { background: #fff; color: var(--blue); transform: translateY(-1px); }
@keyframes badge-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(60, 101, 142, 0.22); }
  50% { box-shadow: 0 0 0 7px rgba(60, 101, 142, 0.07); }
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(247, 244, 239, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex; align-items: center; gap: 24px; height: 72px;
}
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; color: var(--navy-deep); margin-right: auto; }
.brand-mark { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; }
.site-nav { display: flex; gap: 28px; }
.site-nav a { font-weight: 600; font-size: 0.94rem; color: var(--ink-soft); padding: 6px 0; border-bottom: 2px solid transparent; }
.site-nav a:hover { color: var(--navy); border-color: var(--tan); }
.site-nav a.active { color: var(--navy); border-color: var(--tan); }
.header-cta { flex-shrink: 0; }
.nav-toggle { display: none; flex-direction: column; justify-content: center; gap: 5px; width: 40px; height: 40px; background: none; border: none; cursor: pointer; }
.nav-toggle span { display: block; height: 2px; width: 22px; background: var(--navy-deep); border-radius: 2px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: min(88vh, 720px);
  display: flex; align-items: center;
  overflow: hidden;
}
.hero-media {
  position: absolute; inset: 0;
  background-image: url("../Assets/Images/Header%20Image.png");
  background-size: cover; background-position: center 38%;
  animation: hero-float 18s ease-in-out infinite;
}
@keyframes hero-float {
  0%, 100% { transform: scale(1.05) translateY(0); }
  50% { transform: scale(1.05) translateY(-12px); }
}
.hero-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(247,244,239,0.15) 0%, rgba(247,244,239,0.55) 62%, var(--cream) 100%),
              radial-gradient(ellipse 60% 55% at 50% 38%, rgba(247,244,239,0.55) 0%, rgba(247,244,239,0) 70%);
}
.hero-floaters { position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.floater { position: absolute; transition: transform 0.6s ease-out; }
.floater-dot { display: block; border-radius: 50%; animation: floater-bob 10s ease-in-out infinite; }
@keyframes floater-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}
@media (max-width: 760px) { .hero-floaters { display: none; } }
.hero-inner { position: relative; z-index: 2; text-align: center; padding-top: 64px; padding-bottom: 56px; }
.eyebrow {
  font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.82rem;
  color: var(--blue); margin-bottom: 18px;
}
.hero h1 {
  font-size: clamp(2rem, 9vw, 4.4rem); font-weight: 600; margin-bottom: 6px;
  text-shadow: 0 2px 24px rgba(247,244,239,0.9);
}
.hero-subtitle {
  font-family: var(--font-display); font-size: clamp(1.15rem, 2.2vw, 1.5rem); font-weight: 500;
  color: var(--navy); margin-bottom: 18px;
}
.hero-meta { font-size: 0.98rem; color: var(--ink-soft); margin-bottom: 32px; }
.hero-meta .conf-name { font-weight: 700; color: var(--navy); }
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 28px; }
.hero-badges { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---------- Page hero (secondary pages) ---------- */
.page-hero { min-height: 0; }
.page-hero .hero-inner { padding-top: 72px; padding-bottom: 48px; }
.page-hero h1 { font-size: clamp(2rem, 6vw, 3.2rem); }
.page-subtitle {
  font-family: var(--font-display); font-style: italic; font-size: 1.1rem;
  color: var(--navy); max-width: 640px; margin: 0 auto;
}
.page-cta { text-align: center; margin-top: 48px; }

.coming-soon { text-align: center; max-width: 560px; margin: 0 auto; }
.coming-soon img { width: 64px; height: 64px; margin: 0 auto 20px; }
.coming-soon p { color: var(--ink-soft); font-size: 1.02rem; }
.coming-soon .page-cta { margin-top: 28px; }

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section-tight-top { padding-top: 40px; }
.section-alt { background: var(--cream-alt); }
.kicker {
  font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.82rem;
  color: var(--tan); margin-bottom: 10px;
}
.section h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
.center { text-align: center; }
.section-intro { max-width: 640px; margin: 0 auto 48px; color: var(--ink-soft); }

/* ---------- Overview ---------- */
.overview-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: center; }
.overview-copy { max-width: 760px; }
.pull-quote {
  font-family: var(--font-display); font-size: 1.35rem; font-style: italic; font-weight: 500;
  color: var(--navy); border-left: 3px solid var(--tan); padding: 4px 0 4px 24px; margin: 28px 0;
}
.pull-quote strong { font-style: normal; }
.callout-title { font-weight: 700; color: var(--navy-deep); margin-bottom: 6px; font-size: 1.02rem; }

.overview-visual { position: relative; overflow: hidden; }
.overview-visual img { width: 100%; display: block; transition: transform 0.2s ease-out; }

@media (max-width: 900px) {
  .overview-grid { grid-template-columns: 1fr; }
  .overview-visual { max-width: 420px; margin: 0 auto; order: -1; }
}

/* ---------- At a Glance (inline in hero) ---------- */
.glance-inline {
  display: flex; justify-content: center; gap: 40px; flex-wrap: wrap;
  margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--border);
}
.glance-inline li { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.glance-inline img { width: 52px; height: 52px; flex-shrink: 0; }
.glance-inline div { display: flex; flex-direction: column; gap: 1px; }
.glance-inline strong { font-size: 0.85rem; color: var(--navy-deep); }
.glance-inline span { font-size: 0.85rem; color: var(--ink-soft); }

/* ---------- Topics ---------- */
.topics-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px;
}
.topic-card {
  display: flex; align-items: flex-start; gap: 14px;
  background: var(--paper); border: 1px solid var(--border); border-radius: 12px;
  padding: 16px; text-align: left; transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.topic-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.topic-card img { width: 40px; height: 40px; flex-shrink: 0; }
.topic-card h3 { font-size: 0.96rem; margin-bottom: 4px; }
.topic-card p { margin: 0; font-size: 0.88rem; color: var(--ink); }

/* ---------- Submissions ---------- */
.submissions-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 48px; align-items: start; }
.portal-row { margin-top: 24px; }
.journal-card {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: #fff; border-radius: 16px; padding: 28px; box-shadow: var(--shadow);
  display: flex; gap: 22px; align-items: flex-start;
}
.journal-card .callout-title { color: var(--tan-pale); }
.journal-card p { color: rgba(255,255,255,0.92); }
.journal-cover { width: 96px; flex-shrink: 0; border-radius: 6px; box-shadow: 0 6px 18px rgba(0,0,0,0.35); }
@media (max-width: 480px) {
  .journal-card { flex-direction: column; }
  .journal-cover { width: 84px; }
}

/* ---------- Timeline ---------- */
.timeline { max-width: 720px; margin: 0 auto 48px; display: flex; flex-direction: column; }
.timeline li {
  display: grid; grid-template-columns: 160px 1fr; gap: 20px; align-items: baseline;
  padding: 16px 0; border-bottom: 1px solid var(--border);
}
.timeline li:last-child { border-bottom: none; }
.timeline-date { font-family: var(--font-display); font-weight: 600; color: var(--navy); font-size: 1.05rem; }
.timeline-label { color: var(--ink-soft); font-size: 0.96rem; }
.timeline-label em { font-style: italic; color: var(--tan); }
.timeline-highlight .timeline-date, .timeline-highlight .timeline-label { color: var(--navy-deep); font-weight: 700; }

.venue-card {
  display: flex; gap: 18px; align-items: flex-start; max-width: 720px; margin: 0 auto;
  background: var(--paper); border: 1px solid var(--border); border-radius: 14px; padding: 24px;
}
.venue-card + .venue-card { margin-top: 20px; }
.venue-icon { width: 62px; height: 62px; flex-shrink: 0; }
.venue-note { color: var(--ink-soft); font-size: 0.92rem; margin-top: 6px; margin-bottom: 0; }

/* ---------- Organizers ---------- */
.committee-group-label {
  font-family: var(--font-body); font-size: 0.95rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--slate); text-align: center; margin: 48px 0 20px;
}
.committee-group-label:first-of-type { margin-top: 8px; }
.organizers-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 300px)); gap: 28px;
  justify-content: center; margin-bottom: 8px;
}
.organizer-card {
  background: var(--paper); border: 1px solid var(--border); border-radius: 14px;
  padding: 32px 24px; text-align: center;
}
.organizer-photo { width: 160px; height: 160px; margin: 0 auto 18px; border-radius: 50%; object-fit: cover; border: 4px solid var(--tan-pale); }
.organizer-card h3 { font-size: 1.15rem; margin-bottom: 4px; }
.organizer-card p { color: var(--ink-soft); font-size: 0.9rem; margin-bottom: 6px; }
.organizer-country { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--slate); margin-bottom: 10px; }
.organizer-card a { font-weight: 600; font-size: 0.9rem; }
.organizers-note { text-align: center; color: var(--ink-soft); font-size: 0.9rem; margin-top: 40px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); color: rgba(255,255,255,0.85); padding: 56px 0 24px; }
.footer-inner { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.footer-brand { display: flex; gap: 14px; align-items: center; }
.footer-title { font-family: var(--font-display); font-size: 1.2rem; color: #fff; margin: 0; }
.footer-sub { font-size: 0.85rem; margin: 2px 0 0; color: rgba(255,255,255,0.65); }
.footer-meta p { margin: 0 0 6px; font-size: 0.9rem; }
.footer-contacts a { color: var(--tan-pale); font-weight: 600; }
.footer-contacts a:hover { color: #fff; }
.footer-copy {
  max-width: var(--max-width); margin: 32px auto 0; padding: 20px 28px 0;
  border-top: 1px solid rgba(255,255,255,0.14); font-size: 0.8rem; color: rgba(255,255,255,0.55);
}

/* ---------- Back to top ---------- */
.to-top {
  position: fixed; bottom: 28px; right: 28px; width: 44px; height: 44px; border-radius: 50%;
  background: var(--navy); color: #fff; border: none; font-size: 1.1rem; cursor: pointer;
  box-shadow: var(--shadow); opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
  transform: translateY(8px); z-index: 90;
}
.to-top.visible { opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0); }
.to-top:hover { background: var(--blue); }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .overview-grid, .submissions-grid { grid-template-columns: 1fr; }
  .quick-facts { position: static; }
}

@media (max-width: 760px) {
  .site-nav {
    position: absolute; top: 72px; left: 0; right: 0; background: var(--cream);
    flex-direction: column; padding: 12px 28px 20px; gap: 4px;
    border-bottom: 1px solid var(--border); box-shadow: var(--shadow);
    display: none;
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 10px 0; border-bottom: 1px solid var(--border); }
  .nav-toggle { display: flex; }
  .header-cta { display: none; }
  .hero-meta { display: flex; flex-direction: column; gap: 4px; }
  .hero-meta [aria-hidden] { display: none; }
  .footer-inner { flex-direction: column; }
}

@media (max-width: 520px) {
  .section { padding: 64px 0; }
  .section-tight-top { padding-top: 32px; }
  .hero-actions { flex-direction: column; width: 100%; }
  .hero-actions .btn { width: 100%; }
  .timeline li { grid-template-columns: 1fr; gap: 4px; }
  .glance-inline { flex-direction: column; gap: 22px; }
}
