/* Adapted from Tufte CSS by Dave Liepmann, under the MIT license.
   Source: https://github.com/edwardtufte/tufte-css.
   License: /licenses/tufte-css.txt. */

/* Define the shared palette, reading measure, and type scale. */
:root {
  --paper: #fff;
  --ink: #191919;
  --muted: #606060;
  --rule: #d8d8d8;
  --accent: #333;
  --wash: #f0f0f0;
  --measure: 64ch;
  --site-width: 1280px;
  --gutter: clamp(20px, 4vw, 64px);
  color-scheme: light;
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}
html {
  font-size: 20px;
  scroll-padding-top: 24px;
}
body {
  margin: 0;
  font-size: 20px;
  line-height: 1.6;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
figure {
  margin: 0;
  padding: 0;
  border: 0;
}
figcaption,
.fine-print {
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.5;
}
figcaption {
  margin-top: 12px;
}
figcaption p:last-child {
  margin-bottom: 0;
}
p,
ul,
ol,
dl {
  margin: 0 0 1.4rem;
}
ul,
ol {
  padding-left: 1.3em;
}
li + li {
  margin-top: 0.5rem;
}
strong {
  font-weight: 650;
}
h1,
h2,
h3 {
  font-weight: 500;
  line-height: 1.12;
  text-wrap: balance;
}
h1 {
  overflow-wrap: anywhere;
  hyphens: auto;
  margin: 0;
  font-size: clamp(2.8rem, 6.5vw, 5.6rem);
  letter-spacing: -0.055em;
}
h2 {
  margin: 2.1rem 0 1.4rem;
  font-size: clamp(1.65rem, 3vw, 2.35rem);
  letter-spacing: -0.035em;
}
h3 {
  margin: 2rem 0 1rem;
  font-size: 1.4rem;
  letter-spacing: -0.02em;
}
a {
  color: #000;
  text-underline-offset: 0.18em;
  text-decoration-thickness: 0.06em;
}
a:hover {
  color: #000;
}
button,
input,
textarea {
  font: inherit;
}
button,
summary {
  cursor: pointer;
}
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 5px;
}
::selection {
  background: #ddd;
  color: var(--ink);
}
hr {
  border: 0;
  border-top: 1px solid var(--rule);
  margin: 2rem 0;
}
.eyebrow {
  margin-bottom: 1rem;
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.lead {
  font-size: clamp(1.3rem, 2.5vw, 1.85rem);
  line-height: 1.45;
  letter-spacing: -0.025em;
}
.lead strong {
  font-weight: 500;
}

/* Keep the navigation accessible without JavaScript. */
.skip-link {
  position: absolute;
  z-index: 20;
  left: var(--gutter);
  top: -100px;
  padding: 12px;
  background: var(--paper);
}
.skip-link:focus {
  top: 12px;
}
.site-header {
  --ink: #fff;
  --muted: #b8b8b8;
  --rule: #333;
  --accent: #ddd;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 88px;
  margin: auto;
  padding: 0
    max(var(--gutter), calc((100% - var(--site-width)) / 2 + var(--gutter)));
  background: #000;
  color: var(--ink);
}
.site-header a {
  color: var(--ink);
}
.brand {
  display: block;
  align-self: flex-end;
  flex: 0 1 calc(100% - 64px);
  min-width: 0;
  padding: 4px 0 6px;
  overflow: hidden;
  line-height: 0;
}
.brand img {
  width: 100%;
  max-width: calc(120px * 1240 / 317);
  max-height: 120px;
}
.menu-toggle {
  display: none;
  width: 44px;
  min-height: 44px;
  padding: 0;
  flex: 0 0 44px;
  border: 0;
  background: none;
  color: var(--ink);
  font-size: 1rem;
}
.site-header[data-menu-open] .menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
}
.menu-icon {
  display: block;
  position: relative;
  width: 28px;
  height: 21px;
  border-top: 3px solid;
  border-bottom: 3px solid;
}
.menu-icon::before {
  position: absolute;
  top: 6px;
  left: 0;
  width: 100%;
  height: 3px;
  background: currentColor;
  content: "";
}
.site-nav {
  order: -1;
  flex-basis: 100%;
  font-size: 1.05rem;
}
.site-header[data-menu-open="false"] .site-nav {
  display: none;
}
.site-nav a,
.nav-group > summary {
  display: block;
  padding: 12px 0;
  text-decoration: none;
}
.site-nav [aria-current="page"],
.nav-group > summary.active {
  text-decoration: underline;
  text-underline-offset: 0.4em;
}
.nav-group > summary {
  list-style: none;
}
.nav-group > summary::-webkit-details-marker {
  display: none;
}
.nav-group > summary::after {
  content: "+";
  display: inline-block;
  margin-left: 10px;
  color: var(--muted);
}
.nav-group[open] > summary::after {
  content: "−";
}
.submenu {
  padding: 0 0 8px 20px;
  border-left: 1px solid var(--rule);
}
.submenu a {
  font-size: 1rem;
}

/* Show each page’s place in the site hierarchy. */
.breadcrumbs {
  padding-top: 24px;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.5;
}
.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.breadcrumbs li {
  display: flex;
  align-items: baseline;
  gap: 12px;
  min-width: 0;
  margin: 0;
}
.breadcrumbs li + li::before {
  content: "/";
  color: var(--muted);
}
.breadcrumbs a,
.breadcrumbs span {
  padding-block: 8px;
  overflow-wrap: anywhere;
}
.breadcrumbs [aria-current] {
  color: var(--ink);
}

/* Put titles and photographs before the reading column. */
.page {
  max-width: var(--site-width);
  margin: auto;
  padding: 0 var(--gutter) 64px;
}
.page-heading,
.home-heading {
  display: grid;
  gap: 32px;
  padding: 40px 0;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--rule);
}
.heading-copy {
  align-self: center;
  min-width: 0;
}
.heading-photo img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}
.heading-photo figcaption {
  max-width: 55ch;
}
.home-photo img {
  width: 100%;
  object-fit: cover;
}
.home-heading h1 {
  font-size: clamp(2.4rem, 6vw, 5.1rem);
}
.festival-date {
  margin: 1.5rem 0;
  font-size: 1.2rem;
  line-height: 1.4;
}
.text-link {
  display: inline-block;
  padding: 8px 0;
  font-size: 1rem;
}

/* Adapt Tufte's reading column and margin notes to a mobile-first grid. */
.reading-layout {
  display: grid;
  gap: 40px;
  padding-top: 32px;
}
.prose {
  min-width: 0;
  max-width: var(--measure);
}
.prose > :first-child,
.profile-body > :first-child {
  margin-top: 0;
}
.prose > :last-child {
  margin-bottom: 0;
}
.prose p,
.profile-body p,
.collection > p {
  overflow-wrap: break-word;
}
.prose h2 {
  color: var(--accent);
  font-weight: 600;
  font-size: clamp(1.5rem, 2.8vw, 2rem);
  line-height: 1.2;
}
.prose .lede {
  color: var(--ink);
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  line-height: 1.5;
  margin-bottom: 2.4rem;
}
.content-section {
  margin-top: 3rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--rule);
}
.content-section:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}
.content-section > h2 {
  margin: 0 0 1.2rem;
}
.content-section > :last-child,
.course > :last-child,
.venue > :last-child {
  margin-bottom: 0;
}
.course,
.venue {
  margin-top: 2.4rem;
}
.course + .course,
.venue + .venue {
  padding-top: 2rem;
  border-top: 1px solid var(--rule);
}
.course > h3,
.venue > h3 {
  margin: 0 0 0.8rem;
  font-size: clamp(1.2rem, 2.2vw, 1.5rem);
  font-weight: 600;
  line-height: 1.3;
}
.metadata {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
}
.detail-label {
  margin: 1.8rem 0 0.6rem;
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 650;
  line-height: 1.4;
  letter-spacing: 0.035em;
}
.detail {
  color: #454545;
  font-size: 1rem;
  line-height: 1.7;
}
.venue-address {
  padding: 1rem 1.2rem;
  border-left: 2px solid var(--accent);
  background: var(--wash);
  font-size: 1rem;
  line-height: 1.7;
}
.prose .photo {
  margin: 2rem 0;
}
.prose .photo img {
  max-height: 560px;
  object-fit: contain;
  object-position: left;
}
.prose .button {
  margin: 0.5rem 0 1.5rem;
}
.page-aside {
  border-top: 1px solid var(--rule);
  padding-top: 24px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}
.page-aside .eyebrow {
  margin-bottom: 16px;
}
.page-aside .aside-title {
  color: var(--ink);
  font-size: 1.3rem;
}
.page-aside:has(.contents) {
  order: -1;
  border-top: 0;
  padding-top: 0;
}
.contents-menu > summary {
  padding-block: 8px;
  color: var(--ink);
}
.contents {
  display: grid;
  gap: 4px;
}
.contents a {
  padding: 6px 0;
}
.collection {
  padding-top: 32px;
}
.collection > p,
.collection > h2,
.collection > ul {
  max-width: var(--measure);
}
.profile {
  display: grid;
  gap: 28px;
  padding: 40px 0;
  border-top: 1px solid var(--rule);
}
.profile:first-child {
  border-top: 0;
  padding-top: 0;
}
.profile > .photo img {
  width: 100%;
}
.profile-body {
  min-width: 0;
}
.profile-body h2 {
  font-size: clamp(1.6rem, 3vw, 2.3rem);
}
.profile-body .photo-caption {
  color: var(--muted);
  font-size: 0.8rem;
}
.archive-entry {
  display: grid;
  gap: 24px;
  padding: 40px 0;
  border-top: 1px solid var(--rule);
}
.archive-year h2 {
  margin: 0 0 20px;
  font-size: 3rem;
  letter-spacing: -0.05em;
}
.archive-links {
  font-size: 0.9rem;
  line-height: 2;
}
.archive-body {
  min-width: 0;
}
.archive-body ul {
  margin-bottom: 0;
}
.video {
  margin: 0 0 28px;
  aspect-ratio: 16 / 9;
  background: var(--ink);
}
.video iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Give the homepage a magazine-like rhythm. */
.intro-copy {
  max-width: var(--measure);
  padding: 32px 0;
}
.feature {
  display: grid;
  gap: 32px;
  align-items: center;
  margin: 24px 0 48px;
}
.feature .photo img {
  width: 100%;
}
.quotation {
  padding: 16px 0;
}
blockquote {
  margin: 0 0 24px;
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: -0.035em;
}
.statistics {
  display: grid;
  gap: 24px;
  padding: 32px 0;
  margin: 0 0 48px;
  border-block: 1px solid var(--rule);
}
.stat p {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
}
.stat .stat-number {
  color: var(--ink);
  font-size: clamp(2.8rem, 5vw, 4.5rem);
  line-height: 1.15;
  letter-spacing: -0.05em;
}
.explore {
  display: grid;
  gap: 48px;
  margin-bottom: 64px;
}
.feature-link {
  display: flex;
  flex-direction: column;
  align-items: start;
}
.feature-link .photo {
  width: 100%;
}
.feature-link img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}
.feature-link h2 {
  margin: 20px 0 12px;
  font-size: 1.7rem;
}
.feature-link p {
  font-size: 1rem;
}
.feature-link .button {
  margin-top: auto;
}
.newsletter {
  padding: 32px 24px;
  background: var(--wash);
}
.newsletter h2 {
  margin-top: 0;
}
.newsletter p {
  max-width: 54ch;
}
.newsletter .fine-print {
  margin: 20px 0 0;
}

/* Keep actions, labels, and form fields comfortable to use on a phone. */
.button {
  display: inline-block;
  max-width: 100%;
  min-height: 48px;
  padding: 12px 22px;
  border: 1px solid #000;
  border-radius: 0;
  background: #000;
  color: var(--paper);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.45;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  overflow: hidden;
}
.button-label {
  display: inline-block;
  transition: transform 300ms ease-in-out;
}
.button:focus-visible .button-label {
  transform: scale(1.55);
}
@media (hover: hover) and (pointer: fine) {
  .button:hover .button-label {
    transform: scale(1.55);
  }
}
@media (prefers-reduced-motion: reduce) {
  .button-label {
    transition: none;
  }
  .button:hover .button-label,
  .button:focus-visible .button-label {
    transform: none;
  }
}
.button:hover {
  background: #000;
  border-color: #000;
  color: var(--paper);
}
.contact label {
  display: block;
  margin-bottom: 24px;
  font-size: 1rem;
}
.contact input,
.contact textarea {
  display: block;
  width: 100%;
  margin-top: 8px;
  padding: 12px;
  border: 1px solid #878787;
  border-radius: 0;
  color: var(--ink);
  background: transparent;
}
.contact textarea {
  resize: vertical;
}
.contact .fine-print {
  margin-top: 20px;
}
.name-fields {
  display: grid;
  gap: 0 24px;
}

/* Keep the footer quiet and useful. */
.site-footer {
  padding: 40px var(--gutter);
  border-top: 1px solid var(--rule);
  text-align: center;
}
.site-footer > p {
  max-width: 55ch;
  margin: 0 auto;
  font-size: 1rem;
  line-height: 1.6;
}
.site-footer strong {
  font-weight: 400;
}
.social-links {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 24px;
}
.social-links a {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #000;
  color: #fff;
}
.social-links a:hover {
  background: var(--accent);
}
.social-icon {
  display: block;
  width: 22px;
  height: 22px;
}

/* Expand the composition when there is room for adjacent content. */
@media (min-width: 600px) {
  .statistics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .name-fields {
    grid-template-columns: 1fr 1fr;
  }
  .newsletter {
    padding: 48px;
  }
}

@media (min-width: 900px) {
  body {
    font-size: 22px;
  }
  .brand {
    flex-basis: 40%;
  }
  .site-header {
    min-height: 0;
    flex-wrap: nowrap;
    padding-block: 0;
  }
  .site-header[data-menu-open] .menu-toggle {
    display: none;
  }
  .site-nav,
  .site-header[data-menu-open="false"] .site-nav {
    display: flex;
    order: 0;
    flex-basis: auto;
    align-items: center;
    gap: 28px;
    font-size: 1rem;
  }
  .nav-group {
    position: relative;
  }
  .submenu {
    position: absolute;
    z-index: 10;
    top: 100%;
    right: 0;
    width: 280px;
    padding: 12px 24px;
    background: #000;
    border: 1px solid var(--rule);
    box-shadow: 0 12px 24px #19191910;
  }
  .page-heading,
  .home-heading {
    gap: 56px;
    padding: 56px 0;
    margin-bottom: 24px;
  }
  .page-heading {
    align-items: start;
  }
  .home-photo img {
    min-height: 460px;
  }
  .reading-layout {
    grid-template-columns: minmax(0, 3fr) minmax(0, 1fr);
    gap: clamp(48px, 7vw, 100px);
    padding-top: 40px;
  }
  .page-aside:has(.contents) {
    order: 1;
    border-top: 1px solid var(--rule);
    padding-top: 16px;
  }
  .page-aside {
    align-self: start;
    position: sticky;
    top: 32px;
    padding-top: 16px;
  }
  .profile {
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
    gap: 56px;
    padding: 56px 0;
  }
  .profile > .photo {
    max-width: 360px;
  }
  .archive-entry {
    grid-template-columns: 160px minmax(0, 1fr);
    gap: 40px;
    padding: 48px 0;
  }
  .archive-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    align-items: start;
  }
  .archive-body .video {
    grid-column: 2;
    grid-row: 1;
  }
  .archive-body > ul {
    grid-column: 1;
    grid-row: 1;
    font-size: 1rem;
  }
  .intro-copy {
    padding-block: 40px;
    margin-left: 8%;
  }
  .feature {
    grid-template-columns: 1.2fr 1fr;
    gap: 64px;
    margin-bottom: 64px;
  }
  .explore {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 32px;
  }
  .site-footer {
    padding-block: 56px;
  }
}
