/* HotCarbon, design 2: "Sidebar"
   A fixed purple column with the logo, the navigation and the next
   edition at a glance. Content on white, system sans-serif.
   No web fonts, no JavaScript. */

:root {
  --bg: #ffffff;
  --ink: #1d1724;
  --muted: #675f70;
  --rule: #ebe6ef;
  --purple: #521477;
  --purple-dark: #3b0d57;
  --purple-soft: #f5f0f8;
  --yellow: #fdfd86;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", Arial, sans-serif;
  --side: 17rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body { margin: 0; background: var(--bg); color: var(--ink); font: 1rem/1.6 var(--sans); }

a { color: var(--purple); text-underline-offset: .15em; }
a:hover { color: #8a2a9c; }

.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; background: #fff; padding: .5rem; z-index: 2; }

/* Shell */
.shell { display: grid; grid-template-columns: var(--side) 1fr; min-height: 100vh; }

.sidebar {
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
  background: var(--purple-dark); color: #efe6f5;
  padding: 2.25rem 1.75rem;
  display: flex; flex-direction: column; gap: 2rem;
}
.brand { display: block; color: #fff; text-decoration: none; }
.brand .logo { width: 3rem; height: 3rem; color: var(--yellow); display: block; margin-bottom: .9rem; }
.brand-name { display: block; font-size: 1.6rem; font-weight: 700; letter-spacing: -.01em; }
.brand-sub { display: block; font-size: .9rem; color: #cdbbd9; line-height: 1.35; margin-top: .2rem; }
.brand:hover { color: var(--yellow); }

.site-nav { display: flex; flex-direction: column; }
.site-nav a {
  color: #efe6f5; text-decoration: none; padding: .45rem .75rem; margin: 0 -.75rem;
  border-radius: 4px; font-weight: 500;
}
.site-nav a:hover { background: rgba(255,255,255,.08); color: #fff; }
.site-nav a[aria-current] { background: rgba(253,253,134,.12); color: var(--yellow); }
/* On pages of an older edition "Past editions" unrolls into the list of years */
.site-nav a.nav-open, .menu-panel a.nav-open { color: var(--yellow); }
.nav-sub { display: flex; flex-direction: column; margin: .1rem 0 .35rem .15rem; padding-left: .6rem; border-left: 1px solid rgba(255,255,255,.2); }
.site-nav .nav-sub a { margin: 0 -.75rem 0 0; padding: .3rem .75rem; font-size: .92rem; }

.side-edition { padding-top: 1.25rem; border-top: 1px solid rgba(255,255,255,.15); font-size: .9rem; }
.side-edition p { margin: 0 0 .4rem; }
.side-label { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: #b9a3c8; }
.side-year { font-size: 1.15rem; font-weight: 700; color: var(--yellow); }
.side-deadline span { display: block; font-size: .75rem; color: #b9a3c8; }

.main-col { min-width: 0; display: flex; flex-direction: column; }
main { flex: 1; width: 100%; max-width: 76rem; margin: 0 auto; padding: 3rem 3.5rem 4rem; }

/* Type */
h1, h2, h3, h4 { line-height: 1.25; letter-spacing: -.01em; }
h1 { font-size: 2.2rem; margin: 0 0 .5rem; }
h2 { font-size: 1.4rem; margin: 2.5rem 0 1rem; }
h3 { font-size: 1.1rem; margin: 1.75rem 0 .6rem; }
h4 { font-size: 1.05rem; margin: 0; }
p, ul, ol, dl { margin: 0 0 1rem; }
ul, ol { padding-left: 1.3rem; }
li { margin-bottom: .2rem; }
code { font-size: .9em; background: var(--purple-soft); padding: .05em .3em; border-radius: 3px; }
.muted, .affiliation { color: var(--muted); }

.eyebrow { margin: 0 0 .35rem; font-size: .78rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--purple); }
.eyebrow a { color: inherit; text-decoration: none; }
.subtitle { font-size: 1.15rem; color: var(--muted); margin: 0; }
.page-head { margin-bottom: 2rem; }
.subnav { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.25rem; }
.subnav a { padding: .3rem .85rem; border-radius: 999px; background: var(--purple-soft); text-decoration: none; font-size: .9rem; font-weight: 500; }
.subnav a[aria-current] { background: var(--purple); color: #fff; }

.notice, .notice--warning, .notice--primary, .notice--info {
  padding: .85rem 1.1rem; background: var(--purple-soft); border-radius: 6px; font-size: .95rem;
}

.actions { display: flex; flex-wrap: wrap; gap: .6rem; margin: 1.25rem 0; }
.button { display: inline-block; padding: .5rem 1.05rem; border-radius: 6px; background: var(--purple); color: #fff; text-decoration: none; font-weight: 600; font-size: .9rem; }
.button:hover { background: var(--purple-dark); color: var(--yellow); }

/* Facts as a list, one row per fact: label on the left, value on the right */
.facts { margin: 0 0 1rem; border-top: 1px solid var(--rule); }
.facts > div { display: grid; grid-template-columns: 11rem minmax(0, 1fr); column-gap: 1.5rem; align-items: baseline; padding: .6rem 0; border-bottom: 1px solid var(--rule); }
.facts dt { font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.facts dd { margin: 0; font-weight: 600; }
.facts dd .muted { font-weight: 400; font-size: .9rem; }
.proceedings { color: var(--muted); font-size: .95rem; }
.facts .contact { display: inline-block; margin-top: .3rem; font-size: .9rem; }
.contact-line { margin: -.2rem 0 1rem; font-size: .92rem; }

/* Home */
.hero { padding-bottom: 1rem; }
.hero .eyebrow { display: none; }
.hero h1 { font-size: 2.8rem; margin-bottom: .75rem; }
.hero .lead p { font-size: 1.2rem; color: #3a3242; }
.current { padding: 1.5rem 1.75rem; background: var(--purple-soft); border-radius: 10px; margin-top: 1.5rem; }
.current h2 { margin-top: 0; }
.current .more { margin: 0; }
.news-item { padding: 1.1rem 0; border-top: 1px solid var(--rule); }
.news-item h3, .news-item h2 { margin: .1rem 0 .4rem; font-size: 1.1rem; }
.news-item h3 a, .news-item h2 a { color: var(--ink); text-decoration: none; }
.news-item p { margin-bottom: .5rem; }
.date { margin: 0; font-size: .82rem; color: var(--muted); }
/* Past editions, one row per year, newest first */
.edition-list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: .6rem; }
.edition-list li { display: grid; grid-template-columns: 11rem minmax(0, 1fr); align-items: baseline; column-gap: 1.5rem; padding: .9rem 1.1rem; border: 1px solid var(--rule); border-radius: 8px; margin: 0; }
.edition-list a { font-weight: 700; font-size: 1.05rem; text-decoration: none; }
.edition-list .muted { font-size: .92rem; }

.people { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: .1rem 1.5rem; }
.people .affiliation { display: block; font-size: .88rem; margin-bottom: .4rem; }

/* Program */
.day { margin-top: 2.5rem; padding: .5rem .9rem; background: var(--purple-dark); color: #fff; border-radius: 6px; font-size: 1.05rem; }
.session { margin: 1rem 0; padding: 1rem 1.25rem; border: 1px solid var(--rule); border-left: 4px solid var(--purple); border-radius: 6px; }
.keynote { border-left-color: #c4a000; background: #fffef0; }
.session-head .time { margin: 0; font-size: .85rem; font-weight: 600; color: var(--purple); font-variant-numeric: tabular-nums; }
.session-number { display: inline-block; margin-right: .4rem; padding: .05rem .5rem; border-radius: 4px; background: var(--purple-soft); color: var(--purple); font-size: .75rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; vertical-align: .15em; }
.keynote .session-number { background: var(--yellow); color: #5a4800; }
.chair, .speaker { margin: .25rem 0 0; color: var(--muted); font-size: .92rem; }
.session-description { margin: .6rem 0 0; color: var(--muted); }
.note { margin-top: .6rem; font-size: .93rem; }
.note p { margin: 0; }
.slot { margin: .5rem 0; padding: .4rem 1.25rem; color: var(--muted); font-size: .92rem; }
.slot .time { display: inline-block; min-width: 7rem; font-variant-numeric: tabular-nums; }
.papers { list-style: none; padding: 0; margin: .9rem 0 0; }
.paper { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 2rem; padding: .75rem 0; border-top: 1px solid var(--rule); margin: 0; }
.paper > * { grid-column: 1; }
/* PDF, slides and video sit in a column on the right of each paper */
.paper > .links { grid-column: 2; grid-row: 1 / span 3; align-self: start; flex-wrap: nowrap; margin: .1rem 0 0; }
.paper > .links a { min-width: 3.4rem; text-align: center; }
.paper-title { margin: 0; font-weight: 600; }
.paper-title a { color: var(--ink); text-decoration: none; }
.paper-title a:hover { color: var(--purple); text-decoration: underline; }
.authors { margin: .2rem 0 0; color: var(--ink); font-size: .9rem; line-height: 1.5; }
.authors .affiliation, .authors em { color: var(--muted); font-style: normal; }
.award { display: inline-block; margin: 0 0 0 .4rem; padding: .05rem .5rem; border-radius: 4px; background: var(--yellow); color: #5a4800; font-size: .75rem; font-weight: 700; vertical-align: .1em; white-space: nowrap; }
.links { display: flex; flex-wrap: wrap; gap: .4rem; margin: .45rem 0 0; }
.links a { font-size: .78rem; font-weight: 600; padding: .1rem .55rem; border: 1px solid var(--rule); border-radius: 4px; text-decoration: none; }
.links a:hover { border-color: var(--purple); }
.links .size { margin-left: .2rem; color: var(--muted); font-weight: 400; white-space: nowrap; }
.abstract { margin-top: .6rem; }
.abstract summary { cursor: pointer; font-size: .88rem; font-weight: 600; color: var(--purple); }
.abstract p { font-size: .95rem; }

/* Transcripts */
.transcript-note { margin: 1.2rem 0 1.5rem; font-size: .88rem; color: var(--muted); }
.transcript p { margin: 0 0 1rem; }
.transcript .ts { display: inline-block; min-width: 3.2rem; margin-right: .4rem; font-size: .8rem; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--muted); text-decoration: none; }
.transcript a.ts:hover { color: var(--purple); text-decoration: underline; }

/* Footer */
.site-footer { width: 100%; max-width: 76rem; margin: 0 auto; padding: 1.5rem 3.5rem 2.5rem; border-top: 1px solid var(--rule); font-size: .85rem; color: var(--muted); }
.site-footer p { margin: 0 0 .3rem; }
.site-footer a { color: inherit; }

/* Phone menu. Hidden on wide screens, where the sidebar shows the links. */
.menu { display: none; }
.menu summary { list-style: none; }
.menu summary::-webkit-details-marker { display: none; }

@media (max-width: 52rem) {
  .shell { grid-template-columns: 1fr; }
  .sidebar { position: relative; z-index: 10; height: auto; overflow: visible; padding: 1rem 1.25rem; gap: 0; }
  .brand { display: grid; grid-template-columns: auto 1fr; column-gap: .7rem; align-items: center; padding-right: 6.5rem; }
  .brand .logo { grid-row: 1 / span 2; width: 2.25rem; height: 2.25rem; margin: 0; }
  .brand-name { font-size: 1.3rem; line-height: 1.2; }
  .brand-sub { font-size: .8rem; margin-top: 0; }
  .sidebar > .site-nav { display: none; }

  /* The button */
  .menu { display: block; }
  .menu summary {
    position: absolute; top: 50%; right: 1.25rem; transform: translateY(-50%);
    display: flex; align-items: center; gap: .5rem;
    padding: .45rem .8rem; border: 1px solid rgba(255,255,255,.35); border-radius: 4px;
    color: #fff; font-weight: 600; font-size: .95rem; line-height: 1; cursor: pointer; user-select: none;
  }
  .menu summary::before {
    content: ""; width: 1rem; height: .7rem;
    background:
      linear-gradient(currentColor 0 0) top / 100% 2px no-repeat,
      linear-gradient(currentColor 0 0) center / 100% 2px no-repeat,
      linear-gradient(currentColor 0 0) bottom / 100% 2px no-repeat;
  }
  .menu summary:hover { background: rgba(255,255,255,.08); }
  .menu summary:focus-visible { outline: 2px solid var(--yellow); outline-offset: 2px; }
  .menu[open] summary { background: var(--yellow); border-color: var(--yellow); color: var(--purple-dark); }
  .menu[open] summary::before {
    width: .75rem; height: .75rem;
    background:
      linear-gradient(45deg, transparent calc(50% - 1px), currentColor calc(50% - 1px) calc(50% + 1px), transparent calc(50% + 1px)),
      linear-gradient(-45deg, transparent calc(50% - 1px), currentColor calc(50% - 1px) calc(50% + 1px), transparent calc(50% + 1px));
  }
  .menu-label-close, .menu[open] .menu-label-open { display: none; }
  .menu[open] .menu-label-close { display: inline; }

  /* The panel floats out under the purple bar, over the page */
  .menu-panel {
    position: absolute; top: 100%; left: 0; right: 0;
    display: flex; flex-direction: column;
    padding: .5rem .75rem 1rem; background: var(--purple-dark);
    border-top: 1px solid rgba(255,255,255,.15);
    box-shadow: 0 12px 24px rgba(29, 23, 36, .25);
  }
  .menu-panel a {
    padding: .7rem .75rem; border-radius: 4px;
    color: #efe6f5; text-decoration: none; font-size: 1.1rem; font-weight: 500;
  }
  .menu-panel a + a { margin-top: .1rem; }
  .menu-panel a:hover { background: rgba(255,255,255,.08); color: #fff; }
  .menu-panel a[aria-current] { background: rgba(253,253,134,.12); color: var(--yellow); }
  .menu-panel .nav-sub a { padding: .5rem .75rem; font-size: 1rem; }
  .side-edition { display: none; }
  main { padding: 2rem 1.25rem 3rem; }
  .paper { display: block; }
  .edition-list li { grid-template-columns: 1fr; row-gap: .15rem; }
  .facts > div { grid-template-columns: 1fr; row-gap: .1rem; }
  .paper > .links { margin: .45rem 0 0; }
  .site-footer { padding: 1.5rem 1.25rem 2rem; }
  .hero h1 { font-size: 2.2rem; }
}
