@font-face {
  font-family: "PPPangram Sans Rounded Compact";
  src: url("fonts/PPPangramSansRounded-CompactRegular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "PPPangram Sans Rounded";
  src: url("fonts/PPPangramSansRounded-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "EB Garamond";
  src: url("fonts/EBGaramond-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "EB Garamond";
  src: url("fonts/EBGaramond-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "EB Garamond";
  src: url("fonts/EBGaramond-Italic.ttf") format("truetype");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

:root {
  --left-bg: #c5bfff;
  --right-bg: #a1ee9a;
  --ink: #000;
  --pad-lg: 2vw;
  --pad-md: 1.6vw;
  --pad-sm: .85vw;
  /* Adjust each info-sheet body block independently. */
  --manifesto-1-left-offset: 17vw;
  --manifesto-2-left-offset: 27vw;
  --manifesto-3-left-offset: 12vw;
  --manifesto-4-left-offset: 17.5vw;
  --manifesto-1-width: 450px;
  --manifesto-2-width: 430px;
  --manifesto-3-width: 430px;
  --manifesto-4-width: 430px;
  --post-image-width: 390px;
  --post-image-ratio: 3 / 2;
  --fs-h2: clamp(40px, 2.45vw, 47px);
  --fs-h3: clamp(21px, 1.25vw, 24px);
  --fs-body: clamp(21px, 1.25vw, 24px);
  --window-diameter: clamp(500px, 38vw, 1000px);
  /* Drag the window into this top/bottom zone to auto-scroll. */
  --window-scroll-zone: 180px;
  --window-scroll-max-speed: 1100px;
  /* The reveal and line cut-outs share the drag position, but have separate looks. */
  --veil-window-diameter: var(--window-diameter);
  --veil-window-blur: 1000px;
  --line-window-diameter: clamp(600px, 45vw, 1000px);
  --line-window-blur: 100px;
  /* Mobile-only window controls. These take effect below 901px. */
  --mobile-window-diameter: clamp(100px, 90vw, 560px);
  --mobile-veil-window-diameter: var(--mobile-window-diameter);
  --mobile-veil-window-blur: clamp(100px, 30vw, 1000px);
  --mobile-line-window-diameter: clamp(480px, 70vw, 660px);
  --mobile-line-window-blur: clamp(75px, 25vw, 120px);
  /* Keep the original laptop size; grow only on genuinely large displays. */
  --visitor-circle-diameter: clamp(100px, 20vw, 1020px);
  --visitor-circle-text-padding: clamp(38px, 1.44vw, 54px);
}

*, *::before, *::after { box-sizing: border-box; }

html { background: #fff; }

body {
  margin: 0;
  color: var(--ink);
  cursor: default;
  font-family: "EB Garamond", Garamond, Georgia, serif;
  font-size: var(--fs-body);
  line-height: 1.34;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-user-select: none;
  user-select: none;
}

body.is-over-window { cursor: grab; }
body.is-dragging-window { cursor: grabbing; }

a, a:visited, a:hover, a:active {
  color: inherit;
  cursor: pointer;
  text-decoration-thickness: 1px;
  text-underline-offset: .09em;
}

.split {
  display: grid;
  grid-template-columns: 59fr 41fr;
  min-height: 100vh;
}

#left {
  background: var(--left-bg);
  container-type: inline-size;
  display: flex;
  flex-direction: column;
}
#right { background: var(--right-bg); min-width: 0; }
#mobile-footer { display: none; }

.left-wrap, .right-wrap { padding: var(--pad-lg); }

.left-wrap {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-height: 100vh;
}

.right-wrap {
  width: min(100%, 640px);
  margin-inline: auto;
  padding-top: clamp(31px, 1.85vw, 36px);
}

.left-title, .right-h2 {
  font-family: "PPPangram Sans Rounded", system-ui, sans-serif;
  font-weight: 700;
}

.left-title {
  max-width: 100%;
  margin: 13px 0 5px;
  /* Sized from the left panel itself: the longest title line fills its usable width. */
  font-size: 13.2vw;
  font-size: 22.4cqi;
  line-height: .8;
  letter-spacing: -.075em;
}

.left-manifesto, .right-body {
  margin: 0;
  font-size: var(--fs-body);
  font-weight: 400;
  letter-spacing: 0;
}

.left-manifesto {
  width: min(var(--manifesto-width), calc(100% - var(--manifesto-left-offset)));
  margin: 0 0 0 var(--manifesto-left-offset);
  text-align: left;
}

.manifesto-1 {
  --manifesto-left-offset: var(--manifesto-1-left-offset);
  --manifesto-width: var(--manifesto-1-width);
  margin-top: 0px;
}

.manifesto-2 {
  --manifesto-left-offset: var(--manifesto-2-left-offset);
  --manifesto-width: var(--manifesto-2-width);
}

.manifesto-3 {
  --manifesto-left-offset: var(--manifesto-3-left-offset);
  --manifesto-width: var(--manifesto-3-width);
}

.manifesto-4 {
  --manifesto-left-offset: var(--manifesto-4-left-offset);
  --manifesto-width: var(--manifesto-4-width);
}

.left-footer {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--pad-md);
  align-items: start;
  margin-top: auto;
  padding-top: clamp(66px, 6.8vw, 130px);
}

.left-h3, .right-h3 {
  margin: var(--pad-md) 0 var(--pad-sm);
  font-family: "PPPangram Sans Rounded Compact", system-ui, sans-serif;
  font-size: var(--fs-h3);
  font-weight: 400;
  letter-spacing: -.055em;
  text-align: center;
}

.left-block {
  margin: 0;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.4;
  text-align: center;
  white-space: normal;
}

/* The contact links are separate lines without preserving Sheet whitespace. */
.footer-col:nth-child(2) .left-block a { display: block; }
.footer-col:nth-child(2) .left-block br { display: none; }

.right-group + .right-group { margin-top: clamp(56px, 5.2vw, 100px); }

.right-group > .right-h3 { margin-top: 0; }

.blog-post + .blog-post { margin-top: clamp(60px, 5.5vw, 106px); }

.right-h2 {
  max-width: 22vw;
  margin: 0 auto var(--pad-sm);
  font-size: var(--fs-h2);
  line-height: .83;
  letter-spacing: -.07em;
  text-align: center;
}

.post-meta {
  margin: 0 auto clamp(29px, 2.1vw, 41px);
  font-family: "PPPangram Sans Rounded Compact", system-ui, sans-serif;
  font-size: var(--fs-h3);
  letter-spacing: -.055em;
  line-height: 1.03;
  text-align: center;
}
.post-meta time, .post-meta .location { display: block; }

.post-image-figure {
  width: min(100%, var(--post-image-width));
  margin: 0 auto clamp(20px, 1.1vw, 41px);
}

.post-image-frame {
  aspect-ratio: var(--post-image-ratio);
  overflow: hidden;
  background: var(--right-bg);
  background: color-mix(in srgb, var(--right-bg), #000 8%);
}

.post-image-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.post-image-credit {
  margin-top: 1em;
  font-size: clamp(15px, .95vw, 18px);
  font-style: italic;
  line-height: 1.1;
  text-align: center;
}

.right-body {
  max-width: 33vw;
  margin-inline: auto;
  line-height: 1.34;
}

.loading-message, .error-message { margin: 0; }

#discovery-veil {
  position: fixed;
  z-index: 1000;
  inset: 0;
  width: 100vw;
  height: 100vh;
  /* Keep Safari's SVG viewport aligned with its live browser viewport.
     Without this, its fixed 100vh box can be taller than the SVG viewBox,
     stretching every SVG circle vertically when the browser bars are visible. */
  height: 100dvh;
  pointer-events: none;
}

body.is-veil-hidden #discovery-veil { display: none; }

.shared-circle {
  position: fixed;
  z-index: 1001;
  top: 0;
  left: 0;
  width: var(--window-diameter);
  aspect-ratio: 1;
  cursor: grab;
  touch-action: none;
  user-select: none;
  will-change: transform;
  pointer-events: none;
}

.shared-circle.is-dragging { cursor: grabbing; }

#visitor-circles .visitor-circle {
  pointer-events: none;
  transform-box: view-box;
  transform-origin: 0 0;
  transition: transform 180ms cubic-bezier(.22, .61, .36, 1);
}

@media (min-width: 901px) {
  html, body {
    height: 100%;
    overflow: hidden;
  }

  .split {
    height: 100vh;
    min-height: 0;
    overflow: hidden;
  }

  #left, #right {
    height: 100vh;
    min-height: 0;
  }

  #left {
    position: relative;
    overflow: hidden;
  }

  .left-wrap { overflow: hidden; }

  .left-footer {
    position: absolute;
    right: var(--pad-lg);
    bottom: var(--pad-lg);
    left: var(--pad-lg);
    margin: 0;
    padding: 0;
  }

  #right {
    max-height: none;
    overflow-y: auto;
    overscroll-behavior: contain;
  }
}

@media (max-width: 900px) {
  :root {
    /* Adjust these mobile values independently from the desktop window above. */
    --window-diameter: var(--mobile-window-diameter);
    --veil-window-diameter: var(--mobile-veil-window-diameter);
    --veil-window-blur: var(--mobile-veil-window-blur);
    --line-window-diameter: var(--mobile-line-window-diameter);
    --line-window-blur: var(--mobile-line-window-blur);
    --mobile-visitor-circle-diameter: 65vw;
    --mobile-visitor-circle-text-padding: 30px;
    --visitor-circle-diameter: var(--mobile-visitor-circle-diameter);
    --visitor-circle-text-padding: var(--mobile-visitor-circle-text-padding);
    --fs-body: clamp(17px, 3.1vw, 19px);
    --fs-h2: clamp(38px, 7.8vw, 46px);
    --fs-h3: clamp(19px, 3.8vw, 22px);
    --post-image-width: 75vw;
  }

  html, body { overflow-x: hidden; }
  .split { grid-template-columns: 1fr; }
  .left-wrap {
    min-height: 0;
    padding: 10px 8px clamp(40px, 8vw, 56px);
  }
  .left-title { margin: 0 0 27px; }
  .manifesto-1, .manifesto-2, .manifesto-3, .manifesto-4 {
    width: min(var(--manifesto-width), calc(100% - var(--manifesto-left-offset)));
    margin: 0 0 0 var(--manifesto-left-offset);
  }
  .manifesto-1 { --manifesto-1-left-offset: 18vw; --manifesto-1-width: 66vw; }
  .manifesto-2 { --manifesto-2-left-offset: 32vw; --manifesto-2-width: 62vw; }
  .manifesto-3 { --manifesto-3-left-offset: 3vw; --manifesto-3-width: 76vw; }
  .manifesto-4 { --manifesto-4-left-offset: 18vw; --manifesto-4-width: 66vw; }
  #info-content > .left-footer { display: none; }
  .right-wrap {
    width: 100%;
    padding: 55px 20px 66px;
  }
  .right-group + .right-group { margin-top: 72px; }
  .right-h2 {
    max-width: 74vw;
    margin-bottom: 18px;
  }
  .post-meta { margin-bottom: 28px; }
  .post-image-figure { margin-bottom: 14px; }
  .post-image-credit { margin-top: 9px; }
  .right-body {
    width: var(--post-image-width);
    max-width: 100%;
    padding-inline: 0;
    font-size: var(--fs-body);
    line-height: 1.34;
  }
  .blog-post + .blog-post { margin-top: 74px; }
  #mobile-footer {
    display: block;
    background: var(--left-bg);
  }
  #mobile-footer .left-footer {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    margin: 0;
    padding: 36px 20px;
  }
  #mobile-footer .left-h3 {
    margin: 0 0 var(--pad-sm);
    font-size: var(--fs-h3);
  }
  #mobile-footer .left-block {
    /* Match the mobile post body rather than the previously smaller footer copy. */
    font-size: clamp(21px, 4vw, 24px);
    line-height: 1.3;
  }
  #mobile-footer .footer-col + .footer-col {
    margin-top: 36px;
  }
}
