/* Pisco Sour project page. Colours and type follow the supplementary video. */

@font-face {
  font-family: "Inter";
  src: url("../fonts/Inter-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #1a1a1a;
  --muted: #5f6368;
  --line: #e4e4e0;
  --soft: #f6f6f3;
  --pisco: #976c12;
  --sour: #4f7d00;
  --text-col: 760px;
  --wide-col: 960px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--sour); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--sour); outline-offset: 3px; border-radius: 4px; }

.pisco { color: var(--pisco); }
.sour { color: var(--sour); }

.wrap { width: 100%; max-width: var(--text-col); margin: 0 auto; padding: 0 20px; }
.wrap.wide { max-width: var(--wide-col); }

/* ---------- Header ---------- */

.hero { padding: 64px 0 8px; text-align: center; }

.hero-glass { display: block; height: 112px; width: auto; margin: 0 auto 18px; }

h1 { margin: 0; font-weight: 700; letter-spacing: -0.035em; line-height: 1.05; font-size: clamp(46px, 9vw, 76px); }

.subtitle {
  margin: 14px auto 0;
  padding: 0 20px;
  font-size: clamp(21px, 3.6vw, 30px);
  font-weight: 600;
  letter-spacing: -0.022em;
  line-height: 1.22;
  text-wrap: balance;
}

.authors { margin: 30px auto 0; max-width: 880px; padding: 0 20px; }
.author-row { display: flex; flex-wrap: wrap; justify-content: center; column-gap: 22px; row-gap: 2px; }
.author-row span { white-space: nowrap; }
.authors a { color: var(--ink); }
.authors a:hover { color: var(--sour); }
.authors sup, .affiliations sup { font-size: 0.68em; line-height: 0; margin-left: 1px; }

.affiliations {
  display: flex; flex-wrap: wrap; justify-content: center; column-gap: 20px; row-gap: 0;
  margin: 12px auto 0; max-width: 760px; padding: 0 20px;
  color: var(--muted); font-size: 15px;
}
.affiliations span { white-space: nowrap; }
.affiliations sup { margin: 0 2px 0 0; }

.note { margin: 8px 0 0; color: var(--muted); font-size: 13px; }

.links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 28px 0 0; padding: 0 20px; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 18px; border-radius: 999px;
  background: var(--ink); color: #fff; border: 1px solid var(--ink);
  font-size: 15px; font-weight: 600; line-height: 1.4;
}
.btn:hover { background: #000; text-decoration: none; }
.btn svg { width: 16px; height: 16px; flex: none; }
.btn.soon { background: #fff; color: var(--muted); border-color: var(--line); cursor: default; }

/* ---------- Sections ---------- */

section { padding: 44px 0 0; }

h2 { margin: 0 0 14px; font-size: 26px; font-weight: 650; letter-spacing: -0.02em; line-height: 1.2; }

p { margin: 0 0 14px; }

.video-frame {
  border: 1px solid var(--line); border-radius: 12px; overflow: hidden;
  background: #fff; line-height: 0;
}
.video-frame video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; background: #fff; }

figure { margin: 0; }
figure img { display: block; width: 100%; max-width: 700px; height: auto; margin: 6px auto 0; }
figcaption { margin: 16px 0 0; color: var(--muted); font-size: 15px; line-height: 1.55; }
figcaption b { color: var(--ink); font-weight: 600; }

.bibtex { position: relative; }
.bibtex pre {
  margin: 0; padding: 18px 20px; overflow-x: auto;
  background: var(--soft); border: 1px solid var(--line); border-radius: 10px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 13.5px; line-height: 1.6;
}
.copy {
  position: absolute; top: 10px; right: 10px;
  padding: 4px 11px; border-radius: 999px;
  background: #fff; color: var(--ink); border: 1px solid var(--line);
  font: inherit; font-size: 13px; font-weight: 550; cursor: pointer;
}
.copy:hover { border-color: var(--ink); }

main { padding-bottom: 72px; }

/* Below this width six names no longer fit in a row: let all eleven flow as one list. */
@media (max-width: 860px) {
  .authors { display: flex; flex-wrap: wrap; justify-content: center; column-gap: 18px; row-gap: 2px; }
  .author-row { display: contents; }
}

@media (max-width: 700px) {
  .br-wide { display: none; }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .hero { padding-top: 40px; }
  .hero-glass { height: 88px; }
  .authors { column-gap: 16px; }
  section { padding-top: 36px; }
  h2 { font-size: 23px; }
  .bibtex pre { font-size: 12.5px; padding-top: 44px; }
}
