/* ============================================================
   NonAR-LM @ COLM 2026 — Workshop site styles
   Theme: "Scholarly Teal" — Source Serif 4 headings + Inter body,
   teal accent on a warm off-white base.
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  --bg:            #fbfaf7;
  --bg-subtle:     #f3f0e9;
  --surface:       #ffffff;
  --text:          #1c1b1a;
  --text-muted:    #5a554c;
  --border:        #e7e3da;
  --accent:        #0f766e;
  --accent-strong: #115e59;
  --accent-soft:   #e6f1ef;
  --accent-ink:    #0b4f49;
  --danger:        #b45309;

  --font-serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --font-sans:  "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --container: 1120px;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 1px 2px rgba(28,27,26,.04), 0 8px 24px rgba(28,27,26,.06);
  --shadow-lift: 0 10px 30px rgba(15,118,110,.14);
  --section-y: clamp(3.5rem, 7vw, 6rem);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
body {
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-strong); text-decoration: underline; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

h1, h2, h3, h4 { font-family: var(--font-serif); font-weight: 600; line-height: 1.14; color: var(--text); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.3rem); }
h3 { font-size: 1.18rem; }
p { color: var(--text); }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 1.4rem; }
.section { padding-block: var(--section-y); }
.section--alt { background: var(--bg-subtle); }
.section--tint { background: var(--accent-soft); }
.prose { max-width: 60ch; }
.prose p + p { margin-top: 1rem; }

.section-head { margin-bottom: 2.4rem; max-width: 70ch; }
.section-head .eyebrow { color: var(--accent-strong); }
.section-head p { color: var(--text-muted); margin-top: .6rem; font-size: 1.02rem; }

.eyebrow {
  font-family: var(--font-sans);
  font-size: .76rem; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent-strong); margin-bottom: .55rem; display: block;
}

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--accent); color: #fff; padding: .7rem 1rem; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------- Buttons / badges ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--font-sans); font-weight: 600; font-size: .92rem;
  padding: .72rem 1.25rem; border-radius: var(--radius-sm);
  border: 1.5px solid transparent; cursor: pointer; transition: all .16s ease;
  text-decoration: none; min-height: 44px;
}
.btn:hover { text-decoration: none; }
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-strong); color: #fff; transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent-strong); }
.btn--on-dark { border-color: rgba(255,255,255,.25); color: #fff; }
.btn--on-dark:hover { border-color: #fff; color: #fff; background: rgba(255,255,255,.08); }
.btn--disabled {
  background: var(--bg-subtle); color: var(--text-muted); border-color: var(--border);
  cursor: not-allowed; pointer-events: none;
}
.badge {
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: .76rem; font-weight: 600; letter-spacing: .02em;
  padding: .32rem .7rem; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent-ink); border: 1px solid #cfe4e0;
}
.badge--dot::before { content:""; width:7px; height:7px; border-radius:50%; background: var(--accent); }

/* ============================================================
   Header / nav
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(251,250,247,.86);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--border); box-shadow: 0 2px 14px rgba(28,27,26,.05); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 66px; }
.brand { display: flex; align-items: center; gap: .55rem; font-family: var(--font-serif); font-weight: 700; font-size: 1.2rem; color: var(--text); letter-spacing: -.01em; }
.brand:hover { text-decoration: none; color: var(--text); }
.brand .brand-dot { width: 16px; height: 16px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); flex: none; }
.nav-links { display: flex; align-items: center; gap: 1.35rem; list-style: none; }
.nav-links a { font-size: .9rem; font-weight: 500; color: var(--text-muted); position: relative; padding: .3rem 0; }
.nav-links a:hover { color: var(--accent-strong); text-decoration: none; }
.nav-links a.is-active { color: var(--accent-strong); }
.nav-links a.is-active::after { content:""; position:absolute; left:0; right:0; bottom:-2px; height:2px; background: var(--accent); border-radius: 2px; }
.nav-cta { display: flex; align-items: center; gap: .6rem; }
.nav-toggle {
  display: none; background: none; border: 1.5px solid var(--border); border-radius: 8px;
  width: 44px; height: 44px; cursor: pointer; align-items: center; justify-content: center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content:""; display:block; width: 19px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .2s ease, opacity .2s ease; position: relative;
}
.nav-toggle span::before { position:absolute; top:-6px; }
.nav-toggle span::after  { position:absolute; top:6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after  { transform: translateY(-6px) rotate(-45deg); }

/* ============================================================
   Hero
   ============================================================ */
.hero { position: relative; overflow: hidden; padding-block: clamp(3.2rem, 7vw, 5.5rem) clamp(2.4rem,5vw,3.5rem); }
.hero::before {
  content:""; position:absolute; inset:0; z-index:-1;
  background:
    radial-gradient(60% 60% at 88% 6%, rgba(15,118,110,.10), transparent 70%),
    radial-gradient(50% 50% at 2% 100%, rgba(15,118,110,.07), transparent 70%);
}
.hero .eyebrow { font-size: .82rem; }
.hero h1 {
  font-family: var(--font-serif); font-weight: 600;
  font-size: clamp(1.8rem, 4.6vw, 3rem); line-height: 1.1; letter-spacing: -0.015em;
  max-width: 22ch; margin-bottom: 1rem; text-wrap: balance;
}
.nowrap { white-space: nowrap; }
.hero h1 em { font-style: italic; color: var(--accent); }
.hero .lede { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: var(--text-muted); max-width: 54ch; }
.hero-meta { display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; margin-top: 1.4rem; font-size: .95rem; color: var(--text-muted); }
.hero-meta span { display: inline-flex; align-items: center; gap: .5rem; }
.hero-meta svg { width: 17px; height: 17px; color: var(--accent); flex: none; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.8rem; }

/* ---------- Key dates strip ---------- */
.dates { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.date-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.1rem 1.2rem; box-shadow: var(--shadow); position: relative;
}
.date-card .date-label { font-size: .74rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--text-muted); }
.date-card .date-value { font-family: var(--font-serif); font-size: 1.32rem; font-weight: 600; margin-top: .35rem; color: var(--text); }
.date-card .date-sub { font-size: .82rem; color: var(--text-muted); margin-top: .15rem; }
.date-card.is-past { opacity: .55; }
.date-card.is-past .date-value { text-decoration: line-through; text-decoration-color: var(--text-muted); }
.date-card.is-next { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), var(--shadow); }
.date-card.is-next::after { content:"Up next"; position:absolute; top:-10px; right:12px; font-size:.66rem; font-weight:700; letter-spacing:.05em; text-transform:uppercase; background: var(--accent); color:#fff; padding:.18rem .5rem; border-radius: 999px; }
.dates-note { margin-top: 1rem; font-size: .85rem; color: var(--text-muted); }

/* ---------- News ---------- */
.news { display: flex; align-items: flex-start; gap: 1rem; flex-wrap: wrap; }
.news-list { list-style: none; display: flex; flex-direction: column; gap: .55rem; flex: 1; min-width: 280px; }
.news-list li { display: flex; gap: .9rem; align-items: baseline; font-size: .96rem; color: var(--text); }
.news-list time { font-variant-numeric: tabular-nums; color: var(--accent-ink); font-weight: 600; font-size: .82rem; white-space: nowrap; min-width: 6.2rem; }

/* ---------- Generic card grids ---------- */
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.cards-4 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.2rem; }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.5rem; box-shadow: var(--shadow); transition: transform .16s ease, box-shadow .16s ease;
}
.card h3 { margin-bottom: .5rem; }
.card p { color: var(--text-muted); font-size: .95rem; }
.card .card-num { font-family: var(--font-serif); font-size: 1.05rem; color: var(--accent); font-weight: 700; }
.card-icon { width: 38px; height: 38px; border-radius: 10px; background: var(--accent-soft); color: var(--accent-strong); display: grid; place-items: center; margin-bottom: .9rem; }
.card-icon svg { width: 20px; height: 20px; }

/* ---------- Call for papers ---------- */
.cfp-grid { display: grid; grid-template-columns: 1.35fr .85fr; gap: 2.4rem; align-items: center; }
.cfp-facts { list-style: none; display: flex; flex-direction: column; gap: .85rem; }
.cfp-facts li { display: flex; gap: .75rem; font-size: .98rem; }
.cfp-facts svg { width: 20px; height: 20px; color: var(--accent); flex: none; margin-top: 2px; }
.cfp-facts b { font-weight: 600; }
.cfp-side { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.6rem; box-shadow: var(--shadow); position: sticky; top: 86px; }
.cfp-side h3 { margin-bottom: .3rem; }
.cfp-side .muted { color: var(--text-muted); font-size: .9rem; margin-bottom: 1.1rem; }
.cfp-side .btn { width: 100%; justify-content: center; }
.cfp-side .soon-note { font-size: .8rem; color: var(--text-muted); text-align: center; margin-top: .7rem; }

/* ---------- Schedule ---------- */
.schedule { border-left: 2px solid var(--border); margin-left: .5rem; }
.slot { display: grid; grid-template-columns: 7.5rem 1fr; gap: 1.2rem; padding: .55rem 0 1.15rem 1.4rem; position: relative; }
.slot::before { content:""; position:absolute; left: -7px; top: 1.1rem; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); border: 2px solid var(--bg); }
.slot.is-break::before { background: var(--border); }
.slot .slot-time { font-variant-numeric: tabular-nums; font-size: .9rem; font-weight: 600; color: var(--accent-ink); white-space: nowrap; }
.slot .slot-title { font-weight: 600; font-size: 1.02rem; }
.slot .slot-kind { font-size: .85rem; color: var(--text-muted); margin-top: .1rem; }
.slot.is-break .slot-title { font-weight: 500; color: var(--text-muted); font-style: italic; }
.slot.is-keynote .slot-title { color: var(--text); }
.schedule-note { margin-top: 1.2rem; font-size: .85rem; color: var(--text-muted); }
.section--alt .slot::before { border-color: var(--bg-subtle); }

/* ---------- People grids ---------- */
.people-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 1.6rem 1.2rem; }
.people-grid.is-compact { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
.person { text-align: center; display: flex; flex-direction: column; height: 100%; }
.person figcaption { display: flex; flex-direction: column; flex: 1 1 auto; }
.person .avatar {
  width: 138px; height: 138px; border-radius: 50%; object-fit: cover; margin: 0 auto .85rem;
  border: 3px solid var(--surface); box-shadow: 0 0 0 1px var(--border), var(--shadow);
  background: var(--bg-subtle); transition: transform .18s ease, box-shadow .18s ease;
}
.person a.person-link:hover .avatar { transform: translateY(-3px); box-shadow: 0 0 0 1px var(--accent), var(--shadow-lift); }
.person .person-name { font-family: var(--font-serif); font-weight: 600; font-size: 1.04rem; }
.person .person-name a { color: var(--text); }
.person .person-name a:hover { color: var(--accent-strong); }
.person .person-aff { font-size: .85rem; color: var(--text-muted); margin-top: .15rem; line-height: 1.4; min-height: 2.4em; }
.person .person-contact { font-size: .78rem; line-height: 1.35; margin-top: .4rem; color: var(--text-muted); }
.person .person-contact a { color: var(--accent); word-break: break-word; }
.person .person-role { font-size: .72rem; color: var(--accent-ink); font-weight: 700; margin-top: auto; padding-top: .6rem; text-transform: uppercase; letter-spacing: .06em; }
.person .person-links { display: flex; gap: .6rem; justify-content: center; margin-top: auto; padding-top: .7rem; }
.person .person-links a { width: 30px; height: 30px; border-radius: 8px; background: var(--surface); border: 1px solid var(--border); display: grid; place-items: center; color: var(--text-muted); }
.person .person-links a:hover { color: var(--accent-strong); border-color: var(--accent); }
.person .person-links svg { width: 15px; height: 15px; }
.subhead { font-family: var(--font-sans); font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-strong); margin: 2.6rem 0 1.6rem; display: flex; align-items: center; justify-content: center; gap: 1rem; }
.subhead::before, .subhead::after { content:""; flex:1; max-width: 120px; height:1px; background: var(--border); }
.subhead:first-child { margin-top: 0; }

/* ---------- Sponsors ---------- */
.sponsors { display: flex; flex-wrap: wrap; gap: 1.4rem; align-items: stretch; justify-content: center; }
.sponsor {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.8rem 2.4rem; display: grid; place-items: center; min-width: 240px; flex: 1; max-width: 360px; box-shadow: var(--shadow);
}
.sponsor img { max-height: 44px; width: auto; object-fit: contain; }
.sponsor img.logo-ifm { max-height: 54px; max-width: 100%; }
.sponsor .sponsor-cap { font-size: .8rem; color: var(--text-muted); margin-top: .9rem; text-align: center; }
.sponsors-note { text-align: center; color: var(--text-muted); font-size: .9rem; margin-top: 1.2rem; }

/* ---------- Diversity / travel ---------- */
.callout { background: var(--surface); border: 1px solid var(--border); border-left: 4px solid var(--accent); border-radius: var(--radius); padding: 1.6rem 1.8rem; box-shadow: var(--shadow); }
.callout h2, .callout h3 { font-size: 1.2rem; margin-bottom: .5rem; }
.callout p { color: var(--text-muted); }
.callout p + p { margin-top: .8rem; }

/* ---------- Footer ---------- */
.site-footer { background: #14201e; color: #c9d6d3; padding-block: 3rem 2rem; }
.site-footer a { color: #9fded6; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
.footer-brand { font-family: var(--font-serif); font-weight: 700; font-size: 1.2rem; color: #fff; display:flex; align-items:center; gap:.5rem; }
.footer-brand .brand-dot { width:14px; height:14px; border-radius:50%; background: var(--accent); flex:none; }
.site-footer p { color: #b9c6c3; font-size: .92rem; margin-top: .7rem; max-width: 38ch; }
.footer-col h4 { font-family: var(--font-sans); font-size: .78rem; letter-spacing: .07em; text-transform: uppercase; color: #c2cfcc; margin-bottom: .8rem; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: .5rem; font-size: .93rem; }
.footer-bottom { border-top: 1px solid #2a3a37; margin-top: 2.4rem; padding-top: 1.4rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: .6rem; font-size: .84rem; color: #c2cfcc; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1024px) {
  .cfp-grid { grid-template-columns: 1fr; align-items: stretch; }
  .cfp-side { position: static; }
  .dates { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 820px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: absolute; top: 66px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--border);
    padding: .5rem 1.4rem 1rem; box-shadow: var(--shadow);
    display: none;
  }
  .nav-links.is-open { display: flex; }
  .nav-links a { padding: .7rem 0; border-bottom: 1px solid var(--border); }
  .nav-links a.is-active::after { display: none; }
  .nav .nav-cta .btn { padding: .55rem .9rem; }
  .cards-3 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.6rem; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .cards-4 { grid-template-columns: 1fr; }
  .dates { grid-template-columns: 1fr; }
  .slot { grid-template-columns: 1fr; gap: .2rem; padding-left: 1.2rem; }
  .slot .slot-time { font-size: .82rem; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .people-grid { grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 1.3rem .8rem; }
  .person .avatar { width: 110px; height: 110px; }
  .brand { font-size: 1.05rem; }
}

/* ============================================================
   Centered layout pass
   ============================================================ */
.section-head { margin-inline: auto; text-align: center; }
.section-head p { margin-inline: auto; }
.hero .container { text-align: center; }
.hero h1 { margin-inline: auto; }
.hero .lede { margin-inline: auto; }
.hero-meta { justify-content: center; }
.hero-actions { justify-content: center; }
.prose { margin-inline: auto; }
.dates-note, .schedule-note { text-align: center; }
.schedule { max-width: 640px; margin-inline: auto; }

/* Balanced people rows: speakers 3-up (3,3), organizers + panel 4-up */
.speakers-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 760px; margin-inline: auto; }
.org-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); max-width: 920px; margin-inline: auto; }
.panel-people { grid-template-columns: repeat(4, minmax(0, 1fr)); max-width: 740px; margin-inline: auto; }
@media (max-width: 920px) {
  .speakers-grid, .org-grid, .panel-people { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 540px; }
}
@media (max-width: 540px) {
  .speakers-grid, .org-grid, .panel-people { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: none; gap: 1.4rem .7rem; }
}
