@font-face {
  font-family: Newsreader;
  src: url("assets/newsreader.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}
html[data-theme="dark"] { --pf-bg: #000; color-scheme: dark; background: var(--pf-bg); }
body { background: var(--pf-bg); color: var(--pf-ink); isolation: isolate; }
.letter-glass {
  --scroll: 0;
  --gutter: clamp(18px, min(23vw, calc((100vw - 596px) / 2 - 6px)), 420px);
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.mast, .page, footer { position: relative; z-index: 1; }
.glass-edge {
  position: absolute;
  inset-block: 0;
  perspective: 950px;
  width: var(--gutter);
  overflow: hidden;
  mask-image: linear-gradient(var(--fade), #000 0%, #000 40%, transparent 100%);
  -webkit-mask-image: linear-gradient(var(--fade), #000 0%, #000 40%, transparent 100%);
}
.glass-left {
  --fade: to right;
  --travel: -9%;
  --turn: 2deg;
  --pivot: 0%;
  --glint: var(--left-light, 48%);
  --angle: 154deg;
  left: 0;
}
.glass-right {
  --fade: to left;
  --travel: 10%;
  --turn: -2.5deg;
  --pivot: 100%;
  --glint: var(--right-light, 64%);
  --angle: 205deg;
  right: 0;
}
.glass-face {
  position: absolute;
  top: -14%;
  height: 128%;
  width: max(88px, 114%);
  background: center / 100% 100% no-repeat;
  opacity: .96;
  filter: grayscale(1) brightness(1.18);
  transform-origin: var(--pivot) 50%;
  translate: 0 calc(var(--scroll) * var(--travel));
  rotate: calc(var(--scroll) * var(--turn));
}
/* Keep texture URLs on image properties. WebKit can drop variable-backed images on scroll. */
.glass-left .glass-face { left: -3%; background-image: url("assets/obsidian-left.webp"); }
.glass-right .glass-face { right: -3%; background-image: url("assets/obsidian-right.webp"); }
/* Clip the moving light to the facets of the original glass. */
.glass-face::after {
  content: "";
  position: absolute;
  inset: 0;
  mix-blend-mode: screen;
  background: linear-gradient(var(--angle), transparent 31%, #08332f60 41%,
    #74878280 46%, #c6cecc 48.3%, #fff 49.4%, #abb3b1c9 50.7%,
    #29423e70 54%, #07302c42 59%, transparent 65%)
    center var(--glint) / 100% 205% no-repeat;
  mask-position: center;
  mask-size: 100% 100%;
  mask-repeat: no-repeat;
}
.glass-left .glass-face::after { mask-image: url("assets/obsidian-left.webp"); }
.glass-right .glass-face::after { mask-image: url("assets/obsidian-right.webp"); }

/* The whole textured facet turns in perspective. Its glint travels in local coordinates. */
@media (prefers-reduced-motion: no-preference) {
  .glass-left .glass-face {
    --direction: 1;
    animation: glass-turn 15s ease-in-out -3s infinite alternate;
  }
  .glass-right .glass-face {
    --direction: -1;
    animation: glass-turn 19s ease-in-out -12s infinite alternate-reverse;
  }
  @keyframes glass-turn {
    0% {
      transform: translate3d(calc(-9% * var(--direction)), -2%, -32px)
        rotateY(calc(28deg * var(--direction))) rotateX(-3deg) rotateZ(calc(-2deg * var(--direction)));
    }
    55% {
      transform: translate3d(calc(-2% * var(--direction)), 2%, 38px)
        rotateY(calc(-9deg * var(--direction))) rotateX(4deg) rotateZ(calc(1deg * var(--direction)));
    }
    100% {
      transform: translate3d(calc(-5% * var(--direction)), 4%, 12px)
        rotateY(calc(-24deg * var(--direction))) rotateX(1deg) rotateZ(calc(2deg * var(--direction)));
    }
  }
  .glass-left .glass-face::after { animation: glass-reflection 15s ease-in-out -3s infinite alternate; }
  .glass-right .glass-face::after { animation: glass-reflection 19s ease-in-out -12s infinite alternate-reverse; }
  @keyframes glass-reflection {
    from { background-position: center calc(var(--glint) - 22%); }
    to { background-position: center calc(var(--glint) + 22%); }
  }
}
@media (max-width: 640px) {
  .letter-glass { --gutter: clamp(13px, 4.5vw, 20px); }
  .glass-face { width: 73px; opacity: .78; }
  .glass-left .glass-face { left: -11px; }
  .glass-right .glass-face { right: -10px; }
}
@media (prefers-reduced-motion: reduce) {
  .glass-face { transform: none; }
}
@media print, (forced-colors: active) {
  .letter-glass { display: none; }
}
::selection { background: #31564e; color: var(--pf-ink); }
a:hover { color: var(--pf-accent); }
.skip { background: var(--pf-ink); color: var(--pf-bg); z-index: 1; }
.skip:hover { color: var(--pf-bg); }
.mast nav, footer {
  width: min(1080px, calc(100% - 64px));
  border-color: var(--pf-rule);
}
.mast nav { height: 74px; }
.mast img { width: 89px; height: auto; }
.blog-link, footer a { color: #c5c1b8; }
footer .waitlist-link { color: var(--pf-accent); }
.page { width: min(920px, calc(100% - 48px)); }
.article-header {
  padding: clamp(44px, 5.2vw, 76px) 0 0;
  text-align: center;
  border: 0;
}
.metadata {
  justify-content: center;
  gap: .8em;
  font-size: 11px;
  letter-spacing: .105em;
  text-transform: uppercase;
  color: #afa99e;
}
.metadata span { color: #918b80; }
.article-header h1 {
  max-width: none;
  margin: .28em 0 .26em;
  font: 400 clamp(46px, 7.2vw, 103px)/.99 var(--pf-font-display);
  letter-spacing: -.052em;
}
.article-header h1 span, .article-header h1 i { display: block; }
.article-header h1 i { font-weight: 400; }
.deck {
  max-width: 46ch;
  margin-inline: auto;
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.48;
  color: #c1bdb5;
  text-wrap: balance;
}
.byline { margin-top: 21px; font-size: 14px; color: var(--pf-ink); }
.byline .author-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  vertical-align: middle;
  text-decoration: none;
}
.author-link img {
  display: block;
  border-radius: 50%;
  object-fit: cover;
}
.author-link span {
  text-decoration: underline;
  text-decoration-color: #73716b;
  text-underline-offset: .23em;
}
.author-link:hover span, .author-link:focus-visible span { text-decoration-color: currentColor; }
.article-header::after {
  content: "";
  display: block;
  width: 52px;
  height: 1px;
  background: #67645c;
  margin: clamp(26px, 3.1vw, 46px) auto 0;
}
.prose {
  max-width: 596px;
  margin-inline: auto;
  padding: clamp(26px, 3vw, 44px) 0 clamp(60px, 7vw, 96px);
  color: #d7d2c8;
  font: 400 clamp(19px, 1.46vw, 21px)/1.63 Georgia, "Times New Roman", serif;
  font-variant-numeric: oldstyle-nums;
  overflow-wrap: break-word;
}
.prose p { margin-bottom: .9em; }
.prose .lede {
  font-family: var(--pf-font-body);
  font-variant-numeric: lining-nums;
  font-size: 1.15em;
  line-height: 1.44;
  letter-spacing: -.017em;
  color: var(--pf-ink);
}
.prose h2 {
  margin: 1.3em 0 .4em;
  font-family: Newsreader, Georgia, serif;
  font-size: clamp(29px, 3vw, 37px);
  font-weight: 500;
  font-variant-numeric: normal;
  letter-spacing: -.025em;
}
.prose blockquote {
  max-width: 28ch;
  margin: 1.15em auto;
  padding: 0 .5em;
  font-size: clamp(26px, 2.15vw, 31px);
  text-align: center;
  text-wrap: balance;
}
.prose a {
  color: var(--pf-accent);
  text-decoration-thickness: 1px;
  text-decoration-color: currentColor;
}
footer { padding-block: 25px 35px; }
@media(max-width: 700px) {
  .mast nav, footer { width: calc(100% - 40px); }
  .mast nav { height: 60px; }
  .mast img { width: 76px; }
  .page { width: calc(100% - 42px); }
  .article-header h1 { font-size: clamp(36px, 8.55vw, 60px); line-height: 1.04; margin: .38em 0; }
  .deck { max-width: 38ch; }
  .byline { margin-top: 18px; }
  .prose { line-height: 1.58; }
}
@media print {
  html[data-theme="dark"] { color-scheme: light; --pf-ink: #171717; --pf-accent: #005f56; }
  html[data-theme="dark"], body { background: white; color: #171717; }
  .page .prose, .page .deck, .page .metadata { color: #302e2a; }
  .page, .prose { width: 100%; max-width: none; }
  .article-header { padding-top: 0; }
  .article-header h1 { font-size: 36pt; }
  .prose { font-size: 11pt; }
}
