:root {
  color-scheme: light dark;
  --page: #fcf9ee;
  --text: #222;
  --quiet: #666259;
  --rule: #e3e0d6;
  --accent: #dcba3a;
  --heading: #222;
  --sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --serif: Georgia, "Times New Roman", serif;
  --mono: Menlo, "Courier New", monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --page: #222;
    --text: #eee;
    --quiet: #aaa;
    --rule: #393939;
    --accent: #f15403;
    --heading: #f15403;
  }
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--page); color: var(--text); font: 18px/1.5 var(--serif); }
a { color: inherit; text-underline-offset: 5px; }
a:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
.icons { position: absolute; }
.events-page { max-width: 1100px; margin: auto; padding: 38px 5% 28px; }
header { display: flex; justify-content: space-between; align-items: center; gap: 24px; }
header img { display: block; }
nav { display: flex; flex-wrap: wrap; gap: 20px; font: 12px/1.8 var(--mono); text-transform: uppercase; }
nav :is(a, [aria-current]) { text-decoration: underline 2px; text-underline-offset: 7px; }
nav [aria-current] { text-decoration-color: var(--accent); }
main { margin-top: 44px; }
.columns { display: grid; grid-template-columns: minmax(0, 1fr) minmax(240px, 31%); gap: 7%; }
.contact { grid-column: 2; grid-row: 1; }
.hangouts { grid-column: 1; grid-row: 1; }
h2 { font: bold italic 24px/1.3 var(--serif); text-align: center; margin: 0 0 34px; }
h2::after { content: ""; display: block; width: 80px; height: 5px; background: var(--accent); margin: 19px auto 0; }
h3 { font: bold 23px/1.22 var(--serif); margin: 0 0 9px; color: var(--heading); }
.contact h3 { font-size: 21px; color: var(--text); }
.contact section + section { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--rule); }
article { border-bottom: 1px solid var(--rule); padding-bottom: 27px; margin-bottom: 28px; }
article:last-child { margin-bottom: 0; }
.kind { display: flex; align-items: center; gap: 7px; font: 11px/1.6 var(--mono); text-transform: uppercase; color: var(--quiet); margin: 0 0 7px; }
p { margin: 0 0 14px; }
.links { display: flex; flex-wrap: wrap; gap: 10px 16px; }
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  max-width: 100%;
  padding: 8px 15px;
  border: 1px solid currentColor;
  border-radius: 50px;
  font: 500 14px/1.35 var(--sans);
  text-decoration: none;
  overflow-wrap: anywhere;
}
.pill:hover { background: var(--text); color: var(--page); border-color: var(--text); }
.pill svg, .kind svg { width: 15px; height: 15px; flex: 0 0 15px; }
/* Align the visible marks with their labels at 15px. */
:is(.pill, .kind) svg:has(use:is([href="#icon-video"], [href="#icon-film"], [href="#icon-globe"])) {
  transform: translateY(-.25px);
}
.pill svg:has(use:is([href="#icon-calendar"], [href="#icon-instagram"])) {
  transform: translateY(-.5px);
}

@media (width > 700px) {
  .contact {
    --page: light-dark(#181818, #fcf9ee);
    --text: light-dark(#eee, #222);
    --rule: color-mix(in srgb, currentColor 24%, transparent);
    align-self: start;
    background: var(--page);
    color: var(--text);
    padding: 26px clamp(18px, 2.4vw, 28px);
    border-radius: 16px;
  }
}

@media (max-width: 700px) {
  .events-page { max-width: 490px; padding: 38px 24px 28px; }
  header { flex-direction: column; gap: 22px; }
  h1 { font-size: 34px; }
  .columns { display: flex; flex-direction: column; gap: 46px; }
}


/* Match the gallery credits on this standalone page. */
.events-footer .credits {
  background: #111;
  color: rgba(255, 255, 255, .2);
  padding: 40px 16px;
  text-align: center;
  text-transform: uppercase;
  font: 900 16px/1.35 var(--mono);
  letter-spacing: .5px;
}
.events-footer hr {
  border: 0;
  height: 40px;
  margin: 0 0 30px;
  background: url(https://d32mxho067pe0f.cloudfront.net/images/writing/logos/logo-hr-light-mode@3x.png) center / 218px 40px no-repeat;
  filter: invert(1);
}
.events-footer .credits a { color: rgba(255, 255, 255, .8); text-decoration: none; white-space: nowrap; }
.events-footer .credits a:hover { color: #f15403; }
.events-footer .copyright { margin: 0; font-size: 12px; }
