/* AOM PDW 2015 — On the Beginning of a New Beginning
   Snow light: a quiet mountain range, and new forms dividing out of it. */

:root {
  --bg: #f5f7fa;
  --bg-2: #edf1f6;
  --surface: #ffffff;
  --ink: #1b2232;
  --ink-2: #465065;
  --muted: #6c778c;
  --line: rgba(27, 34, 50, 0.12);
  --line-2: rgba(27, 34, 50, 0.22);
  --accent: #4d6a93;
  --accent-2: #7f97b8;
  --display: "Cormorant Garamond", "Cormorant", Garamond, "Times New Roman", serif;
  --serif: "EB Garamond", Garamond, Georgia, serif;
  --sans: "Jost", "Futura", "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 1.1875rem/1.75 var(--serif);
  font-kerning: normal; text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
@media (max-width: 640px) { body { font-size: 1.0625rem; line-height: 1.7; } }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
::selection { background: rgba(77, 106, 147, 0.22); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

.wrap { width: min(100% - 3rem, 72rem); margin-inline: auto; }
.wrap.narrow { width: min(100% - 3rem, 42rem); }
@media (max-width: 520px) { .wrap, .wrap.narrow { width: calc(100% - 2rem); } }
.center { text-align: center; }

.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 100; padding: 0.7rem 1rem; border-radius: 3px;
  background: var(--ink); color: #fff; font: 500 0.75rem/1 var(--sans); letter-spacing: 0.12em; text-transform: uppercase; text-decoration: none;
  transition: top 0.2s;
}
.skip:focus { top: 1rem; }

/* ---------- header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.15rem clamp(1rem, 4vw, 2.75rem);
  border-bottom: 1px solid transparent;
  transition: background 0.45s ease, border-color 0.45s ease;
}
.site-header.is-scrolled {
  background: rgba(245, 247, 250, 0.84);
  -webkit-backdrop-filter: blur(14px) saturate(1.1); backdrop-filter: blur(14px) saturate(1.1);
  border-bottom-color: var(--line);
}
.wordmark {
  display: inline-flex; align-items: center; gap: 0.75rem; min-width: 0;
  font: 500 0.68rem/1.3 var(--sans); letter-spacing: 0.22em; text-transform: uppercase;
  text-decoration: none; color: var(--ink);
}
.cell-mark { width: 18px; height: 12px; flex: none; color: var(--accent); }
.site-nav { display: flex; gap: clamp(1.1rem, 2.3vw, 2.2rem); }
.site-nav a {
  position: relative; padding: 0.6rem 0; white-space: nowrap;
  font: 500 0.68rem/1 var(--sans); letter-spacing: 0.2em; text-transform: uppercase;
  text-decoration: none; color: var(--ink-2); transition: color 0.3s ease;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--ink); }
.site-nav a[aria-current="page"]::after {
  content: ""; position: absolute; left: 50%; bottom: -0.15rem; width: 5px; height: 5px; margin-left: -2.5px;
  border-radius: 50%; border: 1px solid var(--accent);
}
.menu-btn {
  display: none; align-items: center; gap: 0.55rem; flex: none;
  background: rgba(255, 255, 255, 0.55); border: 1px solid var(--line-2); border-radius: 999px;
  color: var(--ink); padding: 0.7rem 1.05rem; cursor: pointer;
  font: 500 0.66rem/1 var(--sans); letter-spacing: 0.22em; text-transform: uppercase;
}
@media (max-width: 960px) {
  .menu-btn { display: inline-flex; position: relative; z-index: 2; }
  .site-nav {
    position: fixed; inset: 0; z-index: 1;
    flex-direction: column; align-items: center; justify-content: center; gap: 1.7rem;
    background: var(--bg); opacity: 0; visibility: hidden; transition: opacity 0.35s ease, visibility 0.35s ease;
  }
  .site-nav a { font: 300 2.1rem/1.1 var(--display); letter-spacing: 0.01em; text-transform: none; color: var(--ink); }
  .site-nav a[aria-current="page"]::after { bottom: -0.4rem; }
  body.nav-open { overflow: hidden; }
  body.nav-open .site-nav { opacity: 1; visibility: visible; }
  body.nav-open .site-header { background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; border-bottom-color: transparent; }
  .wordmark { position: relative; z-index: 2; }
}
@media (max-width: 560px) { .wordmark .long { display: none; } }

/* ---------- snow scene (hero and page bands) ---------- */
.scene {
  position: relative; overflow: hidden; isolation: isolate;
  background:
    radial-gradient(70% 50% at 50% 78%, rgba(255, 255, 255, 0.9), transparent 70%),
    linear-gradient(180deg, #d9e1eb 0%, #e6ecf3 38%, #f1f4f8 70%, #f6f8fb 100%);
}
.scene svg.range { position: absolute; left: 0; bottom: 0; width: 100%; height: 72%; display: block; pointer-events: none; }
.scene .range--back { z-index: 0; }
.scene canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; display: block; opacity: 0.9; }
.scene .range--front { z-index: 2; }
.scene::after {
  content: ""; position: absolute; inset: auto 0 0; height: 22%; z-index: 3; pointer-events: none;
  background: linear-gradient(180deg, rgba(245, 247, 250, 0), var(--bg));
}

.hero { min-height: 100vh; min-height: 100svh; display: grid; place-items: start center; }
.hero__inner { position: relative; z-index: 4; text-align: center; padding: clamp(8rem, 20vh, 11rem) 1.25rem 0; max-width: 62rem; }
.eyebrow { margin: 0 0 1.5rem; color: var(--accent); font: 500 0.7rem/1.4 var(--sans); letter-spacing: 0.34em; text-transform: uppercase; }
.display {
  margin: 0; color: #121828; text-wrap: balance;
  font: 500 clamp(2.4rem, 5.8vw, 5rem)/1.04 var(--display); letter-spacing: -0.01em;
  text-shadow: 0 0 28px rgba(255, 255, 255, 0.8);
}
.display-sub {
  margin: 1rem 0 0; color: var(--ink); text-wrap: balance;
  font: italic 500 clamp(1.3rem, 2.5vw, 1.95rem)/1.3 var(--display);
  text-shadow: 0 0 22px rgba(255, 255, 255, 0.9);
}
.divider { width: 44px; height: 22px; margin: 2.1rem auto; color: var(--accent); display: block; }
.event-meta p { margin: 0; }
.event-meta .when { font: 500 0.74rem/2.1 var(--sans); letter-spacing: 0.24em; text-transform: uppercase; color: var(--ink); }
.event-meta .place { margin-top: 0.6rem; font: italic 400 clamp(1.15rem, 2vw, 1.35rem)/1.45 var(--display); color: var(--ink-2); }
.btn {
  display: inline-block; margin-top: 2.3rem; padding: 0.95rem 2.6rem; border-radius: 999px;
  border: 1px solid rgba(27, 34, 50, 0.35); background: rgba(255, 255, 255, 0.5);
  font: 500 0.7rem/1 var(--sans); letter-spacing: 0.3em; text-transform: uppercase; text-decoration: none; color: var(--ink);
  transition: background 0.35s, border-color 0.35s, box-shadow 0.35s;
}
.btn:hover { background: #fff; border-color: var(--accent); box-shadow: 0 10px 30px -12px rgba(77, 106, 147, 0.45); }

.band { min-height: clamp(21rem, 52vh, 32rem); display: grid; place-items: center; }
.band__inner { position: relative; z-index: 4; text-align: center; padding: 8rem 1.25rem 7rem; }
.band h1 {
  margin: 0; color: #121828; text-wrap: balance;
  font: 500 clamp(2.4rem, 5.4vw, 4.4rem)/1.06 var(--display); letter-spacing: 0.005em;
  text-shadow: 0 0 28px rgba(255, 255, 255, 0.85);
}
.band .display-sub { margin-top: 0.8rem; }

/* ---------- home ---------- */
.section { padding: clamp(4.5rem, 9vw, 7.5rem) 0; }
.section + .section { padding-top: 0; }
.section-title { margin: 0 0 1.3rem; font: 400 clamp(2rem, 3.4vw, 2.7rem)/1.15 var(--display); }
.label { margin: 0 0 1rem; color: var(--accent); font: 500 0.68rem/1.5 var(--sans); letter-spacing: 0.26em; text-transform: uppercase; }

.split { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(2.5rem, 6vw, 6rem); align-items: start; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }

.roster-card { background: var(--surface); border: 1px solid var(--line); border-radius: 4px; padding: clamp(1.75rem, 4vw, 2.75rem); box-shadow: 0 30px 70px -45px rgba(27, 34, 50, 0.35); }
.roster { list-style: none; margin: 0 0 2rem; padding: 0; border-top: 1px solid var(--line); }
.roster li { padding: 0.8rem 0; border-bottom: 1px solid var(--line); font: 400 1.12rem/1.4 var(--display); }
.roster .role { display: block; margin-bottom: 0.15rem; color: var(--muted); font: 500 0.62rem/1.4 var(--sans); letter-spacing: 0.22em; text-transform: uppercase; }
.more a {
  display: inline-flex; align-items: center; gap: 0.6rem; padding-bottom: 0.4rem;
  border-bottom: 1px solid rgba(77, 106, 147, 0.4); text-decoration: none; color: var(--accent);
  font: 500 0.7rem/1 var(--sans); letter-spacing: 0.24em; text-transform: uppercase;
}
.more a:hover { border-bottom-color: var(--accent); }

.prose p { margin: 0 0 1.4em; }
.prose a { color: var(--accent); text-decoration: underline; text-decoration-color: rgba(77, 106, 147, 0.4); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
.prose a:hover { text-decoration-color: var(--accent); }
.dropcap::first-letter { float: left; margin: 0.1em 0.12em 0 0; font: 400 4.4em/0.78 var(--display); color: var(--accent); }
.note { font-style: italic; color: var(--ink-2); }

.event { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
@media (max-width: 820px) { .event { grid-template-columns: 1fr; } }
.event p { margin: 0 0 1rem; }
.event .when-line { font: 500 0.74rem/1.8 var(--sans); letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-2); }
.event .when-line a { color: var(--accent); }
.photo { margin: 0; overflow: hidden; border-radius: 3px; box-shadow: 0 34px 80px -46px rgba(27, 34, 50, 0.6); }
.photo img { width: 100%; filter: saturate(0.85); }

.venue { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
@media (max-width: 820px) { .venue { grid-template-columns: 1fr; } }
.venue h2 { margin: 0 0 0.6rem; font: 400 clamp(1.8rem, 3vw, 2.4rem)/1.15 var(--display); }
.map { width: 100%; min-height: 22rem; border: 0; border-radius: 3px; background: var(--bg-2); filter: grayscale(1) contrast(0.92) brightness(1.04); }

/* ---------- about ---------- */
.article { padding: clamp(4rem, 8vw, 6rem) 0 clamp(4.5rem, 10vw, 8rem); }
.article h2 { display: flex; align-items: center; gap: 0.85rem; margin: 3.3rem 0 1.2rem; font: 400 clamp(1.7rem, 2.7vw, 2.15rem)/1.2 var(--display); }
.article h2:first-child { margin-top: 0; }
.article h2::before { content: ""; width: 7px; height: 7px; border-radius: 50%; flex: none; border: 1px solid var(--accent); }
.article h2.small { margin-top: 3.6rem; font: 500 0.72rem/1.2 var(--sans); letter-spacing: 0.26em; text-transform: uppercase; color: var(--ink-2); }
.refs { list-style: none; margin: 0; padding: 0; font-size: 0.98rem; line-height: 1.62; color: var(--ink-2); }
.refs li { margin: 0 0 0.85em; padding-left: 1.6em; text-indent: -1.6em; }

/* ---------- panelists ---------- */
.panel { padding: clamp(4rem, 8vw, 6rem) 0 clamp(4.5rem, 10vw, 8rem); }
.panel__list { list-style: none; margin: 0; padding: 0; }
.panelist {
  display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(1.5rem, 4.5vw, 4rem); align-items: start;
  padding: clamp(2.25rem, 4.5vw, 3.5rem) 0; border-top: 1px solid var(--line);
}
.panelist:last-child { border-bottom: 1px solid var(--line); }
.panelist__photo { aspect-ratio: 3 / 2; overflow: hidden; border-radius: 3px; background: var(--bg-2); }
.panelist__photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.02); transition: filter 0.7s ease, transform 0.9s ease; }
.panelist:hover .panelist__photo img { filter: grayscale(0); transform: scale(1.02); }
.panelist__role { margin: 0 0 0.35rem; color: var(--accent); font: 500 0.66rem/1.5 var(--sans); letter-spacing: 0.24em; text-transform: uppercase; }
.panelist__name { margin: 0 0 0.9rem; font: 400 clamp(1.7rem, 2.8vw, 2.2rem)/1.15 var(--display); }
.panelist__bio { margin: 0; font-size: 1.02rem; line-height: 1.68; color: var(--ink-2); }
@media (max-width: 720px) { .panelist { grid-template-columns: 1fr; gap: 1.25rem; } }

/* ---------- contact ---------- */
.contact { padding: clamp(4rem, 8vw, 6rem) 0 clamp(4.5rem, 10vw, 8rem); }
.contact .lead { margin: 0 auto 3rem; max-width: 40rem; text-align: center; font: 400 clamp(1.3rem, 2.1vw, 1.6rem)/1.5 var(--display); }
.contact .photo { max-width: 56rem; margin: 0 auto clamp(2rem, 4vw, 3rem); }
.contact .map { display: block; max-width: 56rem; margin: 0 auto; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 2.6rem 0 3rem; color: var(--muted); font: 400 0.68rem/1.8 var(--sans); letter-spacing: 0.18em; text-transform: uppercase; }
.site-footer .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; }
.site-footer p { margin: 0; }
.site-footer a { color: var(--ink-2); text-decoration: none; }
.site-footer a:hover { color: var(--accent); }

/* ---------- gentle reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 1.1s ease, transform 1.3s cubic-bezier(0.2, 0.7, 0.2, 1); }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } }

/* =====================================================================
   Pops of colour: the same six pastels the cells carry.
   Text uses the deeper "ink" version of each, so it stays easy to read.
   ===================================================================== */
:root {
  --rose: #e9a5b5;    --rose-ink: #a84a64;
  --apricot: #efbb94; --apricot-ink: #9c5626;
  --gold: #e9cf86;    --gold-ink: #806212;
  --mint: #a3d8c6;    --mint-ink: #267a64;
  --sky: #a5c8ea;     --sky-ink: #356b9e;
  --lilac: #bfb2ea;   --lilac-ink: #6d5bb0;
  --spectrum: linear-gradient(90deg, #e9a5b5, #efbb94, #e9cf86, #a3d8c6, #a5c8ea, #bfb2ea);
}
::selection { background: rgba(233, 165, 181, 0.35); }
:focus-visible { outline-color: var(--lilac-ink); }

/* dawn light behind the ridges */
.scene {
  background:
    radial-gradient(42% 40% at 14% 78%, rgba(233, 165, 181, 0.55), transparent 70%),
    radial-gradient(44% 42% at 88% 72%, rgba(165, 200, 234, 0.55), transparent 70%),
    radial-gradient(40% 36% at 52% 90%, rgba(239, 187, 148, 0.45), transparent 70%),
    radial-gradient(38% 32% at 72% 28%, rgba(191, 178, 234, 0.32), transparent 70%),
    radial-gradient(34% 30% at 26% 26%, rgba(163, 216, 198, 0.22), transparent 70%),
    linear-gradient(180deg, #dde3ee 0%, #e8ecf4 38%, #f2f4f8 70%, #f6f8fb 100%);
}

/* header: a spectrum hairline once you scroll */
.site-header::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: var(--spectrum); opacity: 0; transition: opacity 0.45s ease; }
.site-header.is-scrolled { border-bottom-color: transparent; }
.site-header.is-scrolled::after { opacity: 1; }
.cell-mark { width: 22px; height: 12px; color: var(--lilac-ink); }

/* each menu item has its own colour */
.site-nav a[aria-current="page"]::after { width: 6px; height: 6px; margin-left: -3px; border: 0; background: var(--rose); }
.site-nav a:nth-child(2)[aria-current="page"]::after { background: var(--apricot); }
.site-nav a:nth-child(3)[aria-current="page"]::after { background: var(--lilac); }
.site-nav a:nth-child(4)[aria-current="page"]::after { background: var(--mint); }
.site-nav a:nth-child(1):hover { color: var(--rose-ink); }
.site-nav a:nth-child(2):hover { color: var(--apricot-ink); }
.site-nav a:nth-child(3):hover { color: var(--lilac-ink); }
.site-nav a:nth-child(4):hover { color: var(--mint-ink); }

.eyebrow { color: var(--rose-ink); }
.divider { color: var(--lilac-ink); }
.btn {
  border-color: rgba(109, 91, 176, 0.45);
  background: linear-gradient(90deg, rgba(233, 165, 181, 0.32), rgba(191, 178, 234, 0.32), rgba(165, 200, 234, 0.32));
}
.btn:hover {
  border-color: var(--lilac-ink);
  background: linear-gradient(90deg, rgba(233, 165, 181, 0.5), rgba(191, 178, 234, 0.5), rgba(165, 200, 234, 0.5));
  box-shadow: 0 12px 34px -14px rgba(109, 91, 176, 0.55);
}

/* home */
.roster-card { position: relative; overflow: hidden; }
.roster-card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--spectrum); }
.label { color: var(--lilac-ink); }
.role--organizer { color: var(--gold-ink) !important; }
.role--presenter { color: var(--sky-ink) !important; }
.role--discussant { color: var(--rose-ink) !important; }
.more a { color: var(--lilac-ink); border-bottom-color: rgba(109, 91, 176, 0.4); }
.more a:hover { border-bottom-color: var(--lilac-ink); }
.prose a, .event .when-line a { color: var(--sky-ink); text-decoration-color: rgba(53, 107, 158, 0.4); }
.dropcap::first-letter { color: var(--rose-ink); }
.article .dropcap::first-letter { color: var(--lilac-ink); }
.note { color: var(--apricot-ink); }
.photo img { filter: none; }
.map { filter: saturate(0.6) contrast(0.95); }

/* about: section markers in colour */
.article h2::before { border-color: var(--lilac-ink); background: var(--lilac); }

/* panelists: portraits in colour, roles by colour */
.panelist__photo img { filter: saturate(0.92); }
.panelist:hover .panelist__photo img { filter: saturate(1); }

/* footer: a spectrum line */
.site-footer { position: relative; border-top: 0; }
.site-footer::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--spectrum); }

/* ---------- a shorter gap between the page title and the text below ---------- */
.band { min-height: clamp(18rem, 44vh, 27rem); place-items: end center; }
.band__inner { padding: 8.5rem 1.25rem clamp(2.25rem, 4vw, 2.75rem); }
.article, .contact { padding-top: clamp(2rem, 4vw, 3rem); }
.panel { padding-top: 0.75rem; }

/* ---------- Related Event + venue: two cards side by side, small images underneath ---------- */
.ev-cards { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 3vw, 2.5rem); align-items: stretch; }
.ev-card {
  position: relative; overflow: hidden; display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line); border-radius: 4px;
  padding: clamp(1.75rem, 3.5vw, 2.5rem); box-shadow: 0 30px 70px -45px rgba(27, 34, 50, 0.35);
}
.ev-card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--spectrum); }
.ev-card .section-title { font-size: clamp(1.7rem, 2.6vw, 2.1rem); margin-bottom: 1rem; }
.ev-card p { margin: 0 0 0.9rem; }
.ev-card__media { margin: auto 0 0; padding-top: 1.4rem; }
.ev-card__media img, .ev-card__media .map { display: block; width: 100%; height: 210px; min-height: 0; object-fit: cover; border: 0; border-radius: 3px; }
@media (max-width: 820px) { .ev-cards { grid-template-columns: 1fr; } .ev-card__media img, .ev-card__media .map { height: 200px; } }
.ev-card .when-line { font: 500 0.74rem/1.8 var(--sans); letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-2); }
.ev-card .when-line a { color: var(--sky-ink); text-decoration-color: rgba(53, 107, 158, 0.4); }
