
:root {
  color-scheme: light;
  --paper: #fff;
  --ink: #090a09;
  --grid: #c9ccca;
  --gutter: clamp(22px, 3.4vw, 40px);
  --balloon-size: clamp(140px, 20.5vw, 240px);
  --shape-space: 12px;
  --mono: 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: auto;
  scrollbar-color: #858585 #fff;
}

body {
  min-width: 300px;
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
}

body::before {
  position: fixed;
  z-index: -1;
  inset: 0;
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-position: 0 18px;
  background-size: 60px 60px;
  content: "";
  opacity: .65;
  mask-image: linear-gradient(145deg, #000 0%, #0009 28%, #0003 51%, transparent 72%);
  pointer-events: none;
}

.mark {
  position: fixed;
  z-index: 5;
  top: 24px;
  left: 22px;
  display: block;
  width: 36px;
  height: 30px;
  color: inherit;
  border-radius: 5px;
  -webkit-tap-highlight-color: transparent;
  transition: opacity 160ms ease, transform 160ms ease;
}

.mark svg {
  display: block;
  width: 100%;
  height: 100%;
}

.mark:hover {
  opacity: .68;
}

.mark:active {
  transform: scale(.94);
}

.mark:focus-visible {
  outline: 1px solid var(--ink);
  outline-offset: 5px;
}

.mark[aria-disabled="true"] {
  opacity: .35;
  pointer-events: none;
}

.flight {
  height: 350svh;
}

.frame {
  position: sticky;
  top: 0;
  height: 100svh;
}

.article {
  width: 78%;
  max-width: 1000px;
  margin-inline: auto;
  padding-top: 15.9svh;
}

h1,
h2 {
  font-family: var(--mono);
  font-size: clamp(22px, 3.2vw, 32px);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: 0;
}

h1 {
  margin: 0;
}

.columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--gutter);
  margin-top: clamp(28px, 4.8vw, 48px);
}

.column {
  display: flow-root;
  min-width: 0;
  font-size: clamp(12px, 1.6vw, 17px);
  line-height: 1.14;
  text-align: justify;
}

.column p {
  margin: 0 0 1em;
}

.column p:last-child {
  margin-bottom: 0;
}

.drop-cap {
  float: left;
  margin: 0 15px 0 0;
  font-size: clamp(30px, 4vw, 42px);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -.045em;
}

.exclusion {
  width: calc(var(--balloon-size) / 2);
  height: 100svh;
  shape-margin: var(--shape-space);
  pointer-events: none;
}

.left .exclusion {
  float: right;
  shape-outside: ellipse(100% 14% at 100% 29%);
}

.right .exclusion {
  float: left;
  shape-outside: ellipse(100% 14% at 0% 29%);
}

.balloon {
  position: absolute;
  z-index: 2;
  top: 0;
  left: 50%;
  width: var(--balloon-size);
  height: auto;
  transform: translate(-50%, calc(50svh - 50%));
  user-select: none;
  pointer-events: none;
  will-change: transform;
}

.outro {
  display: grid;
  place-items: center;
  min-height: 100svh;
  padding: 60px 24px;
}

.outro h2 {
  width: max-content;
  max-width: 100%;
  margin: 0;
}

@media (max-width: 700px), (max-height: 580px) and (max-width: 1000px) {
  :root {
    --gutter: 20px;
    --balloon-size: clamp(110px, 29vw, 150px);
    --shape-space: 8px;
  }

  .mark {
    position: absolute;
    top: 20px;
    left: 18px;
    width: 31px;
    height: 26px;
  }

  .flight {
    height: auto;
  }

  .frame {
    position: relative;
    height: auto;
    min-height: 100svh;
    padding-bottom: 48px;
  }

  .article {
    width: calc(100% - 44px);
    max-width: 700px;
    padding-top: 96px;
  }

  h1,
  h2 {
    font-size: clamp(18px, 4.15vw, 26px);
    line-height: 1.25;
    letter-spacing: -.03em;
  }

  h1 {
    max-width: 580px;
  }

  .columns {
    margin-top: 28px;
  }

  .column {
    font-size: clamp(10.5px, 2.7vw, 12px);
    line-height: 1.2;
    overflow-wrap: break-word;
  }

  .column p {
    margin-bottom: 1.15em;
  }

  .drop-cap {
    margin-right: 8px;
    font-size: 29px;
    line-height: 1;
  }

  .exclusion {
    height: 700px;
  }

  .outro h2 {
    width: 100%;
    max-width: 520px;
  }
}

@media (max-width: 360px) {
  :root {
    --gutter: 16px;
    --balloon-size: 104px;
    --shape-space: 6px;
  }

  .article {
    width: calc(100% - 36px);
  }

  h1,
  h2 {
    font-size: 17px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .flight {
    height: auto;
  }

  .frame {
    position: relative;
  }

  .mark {
    transition: none;
  }

  .balloon {
    will-change: auto;
  }
}
