/* ============================================================
   WCOM Fall 2026 — minimalist theme
   To restyle, adjust the variables in :root.
   ============================================================ */

:root {
  --ink:    #1b1b1f;   /* main text */
  --muted:  #6b7280;   /* secondary text */
  --accent: #4b2e83;   /* UW purple — used sparingly */
  --line:   #e6e6ea;   /* hairline borders */
  --soft:   #fafafa;   /* subtle row fill */
  --bg:     #ffffff;
  --max:    1040px;
  --sidebar: 188px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 2px; }

.site { max-width: var(--max); margin: 0 auto; padding: 0 28px 3rem; }

/* ---------- Masthead: photo banner + title ---------- */
.masthead { padding-top: 28px; }
.banner {
  display: block;
  position: relative;
  height: 260px;
  border-radius: 10px;
  background-color: #2c2440;          /* fallback if photo missing */
  background-size: cover;
  background-position: center 40%;
  overflow: hidden;
}
.banner:hover { text-decoration: none; }
.banner-text {
  position: absolute;
  left: 28px;
  bottom: 22px;
  color: #fff;
}
.banner-title {
  display: block;
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: .01em;
  line-height: 1.1;
  text-shadow: 0 1px 8px rgba(0,0,0,.35);
}
.banner-sub {
  display: block;
  margin-top: .3rem;
  font-size: .9rem;
  font-weight: 400;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #e9e6f2;
  text-shadow: 0 1px 6px rgba(0,0,0,.4);
}

/* ---------- Layout: sidebar + content ---------- */
.layout {
  display: flex;
  gap: 2.6rem;
  align-items: flex-start;
  margin-top: 1.8rem;
}
.sidebar {
  flex: 0 0 var(--sidebar);
  width: var(--sidebar);
  border-right: 1px solid var(--line);
  padding-right: 1.4rem;
  position: sticky;
  top: 24px;
}
.site-nav { display: flex; flex-direction: column; }
.site-nav a {
  color: var(--ink);
  padding: .32rem 0;
  font-size: .96rem;
  border-left: 2px solid transparent;
  padding-left: .7rem;
  margin-left: -.7rem;
}
.site-nav a:hover { color: var(--accent); text-decoration: none; }
.site-nav a.active {
  color: var(--accent);
  font-weight: 600;
  border-left-color: var(--accent);
}
.nav-toggle, .nav-toggle-label { display: none; }

.content { flex: 1 1 auto; min-width: 0; }

/* ---------- Typography in content ---------- */
.page-title { font-size: 1.6rem; font-weight: 600; margin: .2rem 0 .15rem; }
.page-subtitle { color: var(--muted); margin: 0 0 1.6rem; font-size: 1.02rem; }
h2 { font-size: 1.2rem; font-weight: 600; margin-top: 2rem; }
h3 { font-size: 1.02rem; font-weight: 600; margin-bottom: .2rem; }
p, li { color: var(--ink); }

/* ---------- Tables (schedule / participants) ---------- */
table { border-collapse: collapse; width: 100%; margin: 1.2rem 0; font-size: .96rem; }
th {
  text-align: left;
  font-size: .76rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  padding: .5rem .7rem;
  border-bottom: 2px solid var(--ink);
}
td { padding: .6rem .7rem; border-bottom: 1px solid var(--line); vertical-align: top; }

.sched-time { white-space: nowrap; font-variant-numeric: tabular-nums; color: var(--muted); width: 6rem; }
.sched-speaker { font-weight: 600; }
.sched-affil { color: var(--muted); font-weight: 400; font-size: .88rem; }

/* break / meal / admin rows: quiet and centered-feeling */
.row-break td, .row-meal td { background: var(--soft); color: var(--muted); font-style: italic; }
.row-admin td { color: var(--ink); font-weight: 600; }

/* ---------- Abstracts ---------- */
.abstract { padding: 0 0 0 1rem; border-left: 2px solid var(--line); margin: 1.6rem 0; }
.abstract h3 { margin: 0 0 .15rem; }
.abstract .by { color: var(--muted); margin: 0 0 .5rem; font-size: .9rem; }

/* ---------- Simple key/value table on home & registration ---------- */
.facts { border-collapse: collapse; margin: 1.2rem 0; font-size: .98rem; }
.facts td { padding: .35rem 1.4rem .35rem 0; border: none; }
.facts td:first-child { color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer {
  margin-top: 3rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .85rem;
}
.site-footer p { margin: .15rem 0; }

/* ---------- Responsive: stack nav on top for narrow screens ---------- */
@media (max-width: 720px) {
  .site { padding: 0 18px 2rem; }
  .banner { height: 200px; }
  .banner-title { font-size: 1.5rem; }
  .layout { flex-direction: column; gap: 1rem; margin-top: 1rem; }
  .sidebar {
    width: 100%; flex-basis: auto; position: static;
    border-right: none; border-bottom: 1px solid var(--line);
    padding-right: 0; padding-bottom: .6rem;
  }
  .nav-toggle-label {
    display: inline-block; cursor: pointer; font-weight: 600;
    color: var(--accent); padding: .3rem 0;
  }
  .site-nav { display: none; flex-direction: row; flex-wrap: wrap; gap: .3rem .9rem; padding-top: .5rem; }
  .nav-toggle:checked ~ .site-nav { display: flex; }
  .site-nav a { padding-left: 0; margin-left: 0; border-left: none; }
  .site-nav a.active { border-left: none; text-decoration: underline; }
}
