/* IACS Symposium 2027 — mobile-first stylesheet.
   Palette taken from the host logos: UBB blue, Faculty burgundy, Faculty teal. */

:root {
  --blue: #004e84;
  --blue-deep: #0b2d4d;
  --blue-ink: #0f1f33;
  --burgundy: #991b49;
  --teal: #325e61;

  --bg: #fbfaf7;
  --surface: #ffffff;
  --tint: #f1efe9;
  --text: #1c2430;
  --muted: #5a6472;
  --line: #e1ddd3;
  --link: var(--blue);
  --accent: var(--burgundy);

  --serif: "Cormorant Garamond", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Source Sans 3", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --gutter: 1rem;
  --maxw: 80rem;
  --radius: 10px;
  --header-h: 64px;
}

@media (min-width: 48rem) {
  :root { --gutter: 2rem; }
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  overflow-x: hidden;
}

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

a { color: var(--link); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--accent); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 3px; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.1;
  color: var(--blue-ink);
  margin: 0 0 0.5em;
  text-wrap: balance;
}
h2 { font-size: clamp(2rem, 1.6rem + 1.8vw, 2.75rem); }
h3 { font-size: 1.6rem; }
p { margin: 0 0 1em; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

.skip-link {
  position: absolute; left: 1rem; top: -3rem; z-index: 100;
  background: var(--blue); color: #fff; padding: 0.5rem 1rem; border-radius: 6px;
}
.skip-link:focus { top: 0.75rem; color: #fff; }

/* ---------- Header / navigation ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 250, 247, 0.92);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  min-height: var(--header-h);
  gap: 1rem;
}

.brand {
  display: flex; align-items: center; gap: 0.65rem;
  text-decoration: none; color: var(--blue-ink);
}
.brand img { height: 38px; width: auto; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: var(--serif); font-weight: 700; font-size: 1.3rem; }
.brand-year { font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }

.nav-toggle {
  display: none;
  position: relative;
  width: 44px; height: 44px;
  border: 1px solid var(--line); border-radius: 8px;
  background: var(--surface); cursor: pointer;
}
.nav-toggle-bar,
.nav-toggle-bar::before,
.nav-toggle-bar::after {
  position: absolute; left: 11px; width: 20px; height: 2px;
  background: var(--blue-ink); border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle-bar { top: 21px; }
.nav-toggle-bar::before, .nav-toggle-bar::after { content: ""; left: 0; }
.nav-toggle-bar::before { top: -6px; }
.nav-toggle-bar::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::after { transform: translateY(-6px) rotate(-45deg); }

.site-nav ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 0.25rem;
}
.site-nav a {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  color: var(--text); text-decoration: none; font-weight: 600; font-size: 0.97rem;
  white-space: nowrap;
}
.site-nav a:hover { background: var(--tint); color: var(--blue); }
.site-nav a[aria-current="page"] { color: var(--blue); box-shadow: inset 0 -2px 0 var(--burgundy); border-radius: 8px 8px 0 0; }

.pill {
  font-size: 0.66rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 0.1rem 0.4rem; border-radius: 999px;
  color: var(--burgundy); background: rgba(153, 27, 73, 0.09);
  line-height: 1.4;
}

/* Mobile menu: only collapse when JS is available to open it again. */
@media (max-width: 63.99rem) {
  .js .nav-toggle { display: block; }
  .js .site-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 12px 24px rgba(15, 31, 51, 0.08);
    display: none;
  }
  .js .site-nav.is-open { display: block; }
  .js .site-nav ul {
    flex-direction: column; gap: 0;
    padding: 0.5rem var(--gutter) 1rem;
    max-width: var(--maxw); margin-inline: auto;
  }
  .js .site-nav a {
    display: flex; justify-content: space-between;
    padding: 0.85rem 0.25rem; border-radius: 0;
    border-bottom: 1px solid var(--line); font-size: 1.05rem;
  }
  .js .site-nav li:last-child a { border-bottom: 0; }
  .js .site-nav a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--burgundy); padding-left: 0.75rem; border-radius: 0; }
  html:not(.js) .header-inner { flex-wrap: wrap; padding-block: 0.5rem; }
}

/* ---------- Buttons, tags ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 0.6rem 1.25rem;
  border-radius: 999px; border: 1.5px solid transparent;
  font-weight: 700; font-size: 0.98rem; text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-deep); color: #fff; }
.btn-ghost { border-color: currentColor; color: var(--blue); }
.btn-ghost:hover { background: var(--blue); border-color: var(--blue); color: #fff; }
.btn-lg { font-size: 1.05rem; padding: 0.8rem 1.5rem; overflow-wrap: anywhere; }

.tag {
  display: inline-block;
  font-family: var(--sans); font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.07em; text-transform: uppercase;
  color: var(--teal); background: rgba(50, 94, 97, 0.1);
  padding: 0.15rem 0.55rem; border-radius: 999px;
  vertical-align: middle; margin: 0;
}

.kicker, .eyebrow {
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--burgundy); margin-bottom: 0.6rem;
}

/* ---------- Landing: hero ---------- */

.hero {
  padding: 1.75rem 0 2rem;
  background:
    radial-gradient(60rem 30rem at 110% -10%, rgba(0, 78, 132, 0.09), transparent 60%),
    radial-gradient(40rem 24rem at -10% 110%, rgba(153, 27, 73, 0.06), transparent 60%),
    var(--bg);
  border-bottom: 1px solid var(--line);
}

.hero-grid { display: grid; gap: 1.5rem; }
@media (min-width: 64rem) {
  .hero-grid { grid-template-columns: minmax(0, 1fr) 21rem; gap: 2.5rem; align-items: start; }
}
@media (min-width: 80rem) {
  .hero-grid { grid-template-columns: minmax(0, 1fr) 23rem; gap: 3rem; }
}

.host-logos {
  display: flex; align-items: center; flex-wrap: wrap; gap: 0.9rem;
  margin-bottom: 1.25rem;
}
.host-logos img { height: 48px; width: auto; }
.host-logos .logo-ubb { height: 62px; margin-block: -7px; } /* the UBB file has built-in padding */
.host-logos img + img { padding-left: 0.9rem; border-left: 1px solid var(--line); box-sizing: content-box; }

.eyebrow { margin-bottom: 0.4rem; }
.hero-title {
  font-size: clamp(2.5rem, 1.8rem + 3.2vw, 4rem);
  font-weight: 600; letter-spacing: -0.01em;
  margin-bottom: 0.1em;
}
.hero-subtitle {
  font-family: var(--serif);
  font-size: clamp(1.25rem, 1.1rem + 0.8vw, 1.65rem);
  line-height: 1.25; color: var(--blue);
  margin-bottom: 1.25rem;
}
.hero-subtitle em { color: var(--burgundy); }

.overview { font-size: 1rem; line-height: 1.6; }
.overview p { margin-bottom: 0.75em; }
.overview p:last-child { margin-bottom: 0; }
.lead { font-size: 1.1rem; line-height: 1.5; color: var(--blue-ink); font-weight: 600; }

.hero-aside { display: grid; gap: 1rem; }

/* ---------- Cards ---------- */

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem 1.35rem;
  font-size: 0.97rem; line-height: 1.55;
}
.card p { margin-bottom: 0.75em; }
.card > :last-child { margin-bottom: 0; }
.card-title {
  font-size: 1.55rem; margin-bottom: 0.6rem;
}
.card-subtitle { font-size: 1.25rem; margin: 1.1rem 0 0.4rem; }
.card-note { color: var(--muted); font-size: 0.92rem; margin-top: 0.9rem; }
.card-note-top { margin: -0.2rem 0 0.6rem; }

.card-dark { background: var(--blue-deep); border-color: var(--blue-deep); color: #dbe5f0; }
.card-dark .card-title { color: #fff; }

.facts dl { margin: 0 0 1rem; display: grid; gap: 0.7rem; }
.facts dt { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.facts dd { margin: 0.05rem 0 0; font-weight: 600; color: var(--blue-ink); line-height: 1.35; }
.btn-block { display: flex; width: 100%; }

/* Important dates */
.dates { list-style: none; margin: 0; padding: 0; }
.dates li {
  position: relative;
  display: flex; flex-wrap: wrap; justify-content: space-between; column-gap: 1rem;
  padding: 0.45rem 0 0.45rem 1.1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.dates li:last-child { border-bottom: 0; }
.dates li::before {
  content: ""; position: absolute; left: 0; top: 0.95rem;
  width: 7px; height: 7px; border-radius: 50%; background: #9fb8d0;
}
.dates li.is-key::before { background: #f3a9c4; }
.dates time { font-weight: 700; color: #fff; }
.dates span { color: #b9cbe0; }

/* Invited speakers */
.speakers { list-style: none; margin: 0; padding: 0; }
.speakers li { padding: 0.4rem 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; }
.speakers li:first-child { border-top: 0; padding-top: 0; }
.speaker-name { font-family: var(--serif); font-size: 1.25rem; font-weight: 600; color: var(--blue-ink); line-height: 1.2; }
.speaker-aff { color: var(--muted); font-size: 0.92rem; }
.speaker-aff .tag { margin-left: 0.25rem; }

/* ---------- Landing: content rows ---------- */

.section { padding: 2rem 0; }
.section-tint { background: var(--tint); }

.cols-3 { display: grid; gap: 1rem; align-items: start; }
@media (min-width: 48rem) { .cols-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 64rem) { .cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; } }
@media (min-width: 48rem) and (max-width: 63.99rem) { .cols-3 > :last-child { grid-column: 1 / -1; } }

/* Lines of inquiry */
.inquiries { list-style: none; margin: 0; padding: 0; counter-reset: q; }
.inquiries li {
  counter-increment: q;
  display: grid; grid-template-columns: 1.75rem 1fr;
  padding: 0.4rem 0; border-top: 1px solid var(--line);
  font-family: var(--serif); font-size: 1.12rem; line-height: 1.25; color: var(--blue-ink);
}
.inquiries li:first-child { border-top: 0; }
.inquiries li::before {
  content: counter(q, decimal-leading-zero);
  font-family: var(--sans); font-size: 0.75rem; font-weight: 700; color: var(--burgundy);
  padding-top: 0.2rem;
}

/* Topics */
.topics { list-style: none; margin: 0; padding: 0; }
.topics li {
  position: relative;
  padding: 0.3rem 0 0.3rem 1rem;
  border-top: 1px solid var(--line);
  line-height: 1.35;
}
.topics li:first-child { border-top: 0; }
.topics li::before {
  content: ""; position: absolute; left: 0; top: 0.8rem;
  width: 6px; height: 6px; border-radius: 50%; background: var(--teal);
}

/* Guidelines */
.guidelines { margin: 0.5rem 0 0; }
.guidelines > div { padding: 0.35rem 0; border-top: 1px solid var(--line); }
.guidelines dt { font-weight: 700; color: var(--blue-ink); display: inline; }
.guidelines dt::after { content: ": "; }
.guidelines dd { margin: 0; display: inline; }

.callout {
  margin-top: 0.9rem; padding: 0.7rem 0.9rem;
  border-left: 4px solid var(--burgundy);
  background: rgba(153, 27, 73, 0.06);
  border-radius: 0 8px 8px 0;
}
.callout p { margin: 0; }

.email { font-weight: 700; overflow-wrap: anywhere; }

/* Venue + committee */
.cols-venue { display: grid; gap: 1rem; align-items: start; }
@media (min-width: 64rem) { .cols-venue { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 1.25rem; } }
.card address { font-style: normal; margin-bottom: 0.8rem; }
.map {
  position: relative; overflow: hidden;
  border-radius: 8px; border: 1px solid var(--line);
  aspect-ratio: 4 / 3;
}
@media (min-width: 64rem) { .map { aspect-ratio: 16 / 11; } }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.people {
  list-style: none; margin: 0; padding: 0;
  display: grid; column-gap: 1.5rem;
}
@media (min-width: 40rem) { .people { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.people li { padding: 0.45rem 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; }
.person-name { font-family: var(--serif); font-size: 1.15rem; font-weight: 600; color: var(--blue-ink); line-height: 1.2; }
.person-aff { color: var(--muted); font-size: 0.86rem; line-height: 1.4; }

/* ---------- Inner pages ---------- */

.page-hero {
  padding: 3rem 0 2.5rem;
  background:
    radial-gradient(50rem 24rem at 110% -20%, rgba(0, 78, 132, 0.10), transparent 60%),
    var(--bg);
  border-bottom: 1px solid var(--line);
}
.page-hero h1 { font-size: clamp(2.6rem, 1.9rem + 3.5vw, 4.25rem); }
.page-lede { font-size: 1.2rem; color: var(--muted); max-width: 40rem; margin: 0; }
.page-hero .btn { margin-top: 1.5rem; }

.wip-card {
  display: grid; gap: 1.25rem;
  max-width: 48rem;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  padding: 1.5rem;
}
@media (min-width: 40rem) { .wip-card { grid-template-columns: auto 1fr; padding: 2.25rem; gap: 1.75rem; } }
.wip-icon {
  width: 4rem; height: 4rem; border-radius: 50%;
  display: grid; place-items: center;
  color: var(--burgundy); background: rgba(153, 27, 73, 0.08);
}
.wip-icon svg { width: 2rem; height: 2rem; }
.wip-card h2 { font-size: 2rem; margin-top: 0.6rem; }
.wip-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 1.5rem 0 0; }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--blue-ink); color: #c5d2e0;
  padding: 3rem 0 1.5rem; font-size: 0.97rem;
}
.site-footer a { color: #fff; overflow-wrap: anywhere; }
.site-footer a:hover { color: #f3a9c4; }
.site-footer p { margin: 0 0 0.35rem; }
.footer-grid { display: grid; gap: 2rem; }
@media (min-width: 48rem) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer-title { font-family: var(--serif); font-size: 1.3rem; font-weight: 600; color: #fff; }
.footer-bottom { margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid rgba(255, 255, 255, 0.12); font-size: 0.85rem; color: #8ea3ba; }

/* Invited speakers row under the overview (landing hero) */
.speakers-row { margin-top: 1.5rem; padding-top: 1.1rem; border-top: 1px solid var(--line); }
.row-title { font-size: 1.35rem; margin-bottom: 0.6rem; }
.speakers-row .speakers { display: grid; gap: 0.6rem; }
@media (min-width: 40rem) { .speakers-row .speakers { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; } }
.speakers-row .speakers li { border-top: 0; padding: 0 0 0 0.8rem; border-left: 3px solid var(--blue); }
.speakers-row .speakers li:nth-child(2) { border-left-color: var(--burgundy); }
.speakers-row .speakers li:nth-child(3) { border-left-color: var(--teal); }

/* Phones/tablets: show the key facts right after the title, before the long overview. */
@media (max-width: 63.99rem) {
  .hero-main, .hero-aside { display: contents; }
  .hero-head { order: 0; }
  .hero-head .hero-subtitle { margin-bottom: 0; }
  .facts { order: 1; }
  .overview { order: 2; }
  .speakers-row { order: 3; margin-top: 0; }
  #dates { order: 4; }
  #publication { order: 5; }
}
