/* Pune KnOT. White, black and the red of the logo. One type family. The posters carry the colour. */
:root {
  --ink: #141414;
  --paper: #fff;
  --red: #be0000;
  --muted: #6a6a6a;
  --rule: #e2e2e2;
  --head: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: "Barlow", "Helvetica Neue", Arial, sans-serif;
  --w: 1080px;
  --pad: clamp(20px, 5vw, 40px);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 18px/1.6 var(--body); }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-color: var(--red); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--red); }
h1, h2, h3, p, ol, ul { margin: 0; }
h1, h2 { font-family: var(--head); font-weight: 600; letter-spacing: -.005em; }
main, .top, .foot { max-width: var(--w); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }
main { display: block; }

.label { font: 500 15px/1 var(--head); text-transform: uppercase; letter-spacing: .14em; color: var(--red); }
.lede { font-size: clamp(19px, 2vw, 22px); line-height: 1.5; color: #333; max-width: 34em; }
.btn { display: inline-block; background: var(--ink); color: var(--paper); font: 500 17px/1 var(--head); text-transform: uppercase; letter-spacing: .1em; text-decoration: none; padding: 14px 20px 13px; white-space: nowrap; }
.btn:hover { background: var(--red); color: var(--paper); }

/* header */
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px 32px; flex-wrap: wrap; padding-top: 18px; padding-bottom: 18px; border-bottom: 1px solid var(--rule); }
.mark { display: flex; align-items: center; gap: 12px; text-decoration: none; font: 600 21px/1 var(--head); text-transform: uppercase; letter-spacing: .06em; }
.mark:hover { color: inherit; }
.mark img { width: 44px; height: 44px; }
.top nav { display: flex; flex-wrap: wrap; gap: 6px 26px; }
.top nav a { font: 500 16px/1.2 var(--head); text-transform: uppercase; letter-spacing: .12em; text-decoration: none; padding: 4px 0; border-bottom: 2px solid transparent; }
.top nav a[aria-current] { border-bottom-color: var(--red); }

/* home */
.hero { display: grid; grid-template-columns: 300px 1fr; gap: clamp(28px, 6vw, 72px); align-items: center; padding: clamp(40px, 8vw, 96px) 0 clamp(40px, 7vw, 80px); }
.hero h1 { font-size: clamp(38px, 5.4vw, 64px); line-height: 1.04; }
.hero .lede { margin-top: 20px; }
.where { margin-top: 22px; font: 500 17px/1.4 var(--head); text-transform: uppercase; letter-spacing: .1em; }

.next { display: grid; grid-template-columns: 300px 1fr auto; gap: 16px clamp(28px, 6vw, 72px); align-items: center; padding: 26px 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.next h2 { font-size: clamp(26px, 3vw, 34px); line-height: 1.1; }
.next h2 a { text-decoration: none; }
.next-body p { color: var(--muted); margin-top: 4px; }

.sechead { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.sechead h2 { font-size: clamp(28px, 3.4vw, 38px); }
.sechead a { font: 500 16px/1 var(--head); text-transform: uppercase; letter-spacing: .12em; }
.recent { padding: clamp(40px, 7vw, 80px) 0; }
.posters { display: grid; grid-template-columns: repeat(4, 1fr); gap: 36px 24px; }
.posters a { text-decoration: none; display: block; }
.posters img { width: 100%; aspect-ratio: 5 / 7; object-fit: cover; object-position: top; margin-bottom: 12px; }
.posters b { display: block; font: 600 21px/1.15 var(--head); }
.posters span { display: block; font-size: 15px; line-height: 1.4; color: var(--muted); margin-top: 3px; }

/* page heads */
.pagehead { padding: clamp(40px, 7vw, 80px) 0 clamp(24px, 4vw, 40px); }
.pagehead h1 { font-size: clamp(46px, 7vw, 76px); line-height: 1; margin-bottom: 14px; }

/* talk list */
.list { padding-bottom: clamp(40px, 6vw, 72px); }
.list .label { margin-bottom: 12px; }
.talklist { list-style: none; padding: 0; border-top: 1px solid var(--ink); }
.talklist a { display: grid; grid-template-columns: 60px 1fr 12em 7em; gap: 20px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--rule); text-decoration: none; }
.talklist img, .nothumb { width: 60px; height: 84px; object-fit: cover; object-position: top; }
.talklist .t b { display: block; font: 600 24px/1.15 var(--head); }
.talklist .t span { display: block; color: var(--muted); font-size: 17px; }
.talklist .f { font: 500 15px/1.2 var(--head); text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.talklist .d { font-size: 16px; text-align: right; white-space: nowrap; color: var(--muted); }
.talklist a:hover { color: inherit; }
.talklist a:hover .t b { color: var(--red); }

/* one talk */
.talk { display: grid; grid-template-columns: 1fr minmax(240px, 400px); gap: clamp(28px, 6vw, 72px); padding: clamp(40px, 7vw, 80px) 0; align-items: start; }
.talk h1 { font-size: clamp(40px, 5.6vw, 64px); line-height: 1.02; margin-top: 14px; }
.talk .sub { font-size: 21px; line-height: 1.35; color: #333; margin-top: 10px; }
.talk .who { font: 600 clamp(24px, 2.6vw, 30px)/1.15 var(--head); margin-top: 22px; }
.talk .date { color: var(--muted); margin-top: 2px; }
.talk .ticket { margin-top: 22px; }
.talk .prose { margin-top: 28px; }
.talk h2 { font: 500 15px/1 var(--head); text-transform: uppercase; letter-spacing: .14em; color: var(--red); margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--rule); }
.talk h2 + .prose { margin-top: 14px; }
.note { margin-top: 18px; color: var(--muted); font-size: 16px; font-style: italic; }
.back { margin-top: 40px; font: 500 16px/1 var(--head); text-transform: uppercase; letter-spacing: .12em; }
.talk-poster img { width: 100%; }

/* prose and long pages */
.prose { max-width: 38em; }
.prose p, .prose ul, .prose ol { margin-top: 14px; }
.page { padding-bottom: clamp(40px, 6vw, 72px); }
.page > :first-child { margin-top: 0; }
.page h2 { font-size: clamp(28px, 3.2vw, 36px); line-height: 1.1; margin-top: 52px; padding-top: 22px; border-top: 1px solid var(--ink); max-width: none; }
.page > h2:first-child { margin-top: 0; }
.page ul, .page ol { list-style: none; padding: 0; }
.page li { padding: 12px 0; border-bottom: 1px solid var(--rule); }
.page ol { counter-reset: n; }
.page ol li { counter-increment: n; position: relative; padding-left: 44px; }
.page ol li::before { content: counter(n); position: absolute; left: 0; top: 9px; font: 600 26px/1 var(--head); color: var(--red); }
.page p > strong:first-child { display: block; font-weight: 600; margin-top: 24px; }
.people b { font-weight: 600; margin-right: 6px; }

/* the evening */
.evening { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-bottom: clamp(36px, 5vw, 56px); }
.evening li { border-top: 1px solid var(--ink); padding-top: 14px; font-size: 16px; line-height: 1.45; color: #333; }
.evening .clock { display: block; font: 600 clamp(40px, 5vw, 56px)/1 var(--head); color: var(--ink); }
.evening b { display: block; font: 500 15px/1 var(--head); text-transform: uppercase; letter-spacing: .14em; color: var(--red); margin: 8px 0 6px; }

/* join */
.join { display: flex; align-items: center; justify-content: space-between; gap: 20px 40px; flex-wrap: wrap; padding: 26px 0; margin-bottom: clamp(40px, 6vw, 72px); border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.join p { max-width: 36em; }
.join b { font-weight: 600; }

/* footer */
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 32px; padding-top: 22px; padding-bottom: 40px; border-top: 1px solid var(--rule); font-size: 15px; color: var(--muted); }

a:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }

@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; }
  .hero img { width: 200px; }
  .next { grid-template-columns: 1fr; }
  .posters { grid-template-columns: repeat(2, 1fr); gap: 28px 16px; }
  .talk { grid-template-columns: 1fr; }
  .talk-poster { max-width: 340px; }
  .talklist a { grid-template-columns: 60px 1fr; gap: 4px 16px; }
  .talklist img { grid-row: span 3; }
  .talklist .f, .talklist .d { grid-column: 2; text-align: left; font-size: 14px; }
  .evening { grid-template-columns: 1fr 1fr; }
}

/* header and footer rules line up with the content column */
.top, .foot { width: calc(100% - 2 * var(--pad)); max-width: calc(var(--w) - 2 * var(--pad)); padding-left: 0; padding-right: 0; }
.posters span span { display: inline; white-space: nowrap; }
