/* Intentional, a Karst writing series. Paper, light glass over sharp photographs, the one moving blue, and the turning sphere
   from the cohort site. Labels in Montserrat, reading text in Inter, headlines in Instrument Serif, editorial italic in Libre Baskerville. */
@font-face { font-family: "Instrument Serif"; src: url("assets/fonts/instrument-serif-normal.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Instrument Serif"; font-style: italic; src: url("assets/fonts/instrument-serif-italic.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Montserrat"; font-weight: 300 900; src: url("assets/fonts/montserrat-latin-300-900.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Inter"; font-weight: 300 700; src: url("assets/fonts/inter-latin-300-700.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Libre Baskerville"; font-style: italic; font-weight: 400; src: url("assets/fonts/libre-baskerville-latin-italic-400.woff2") format("woff2"); font-display: swap; }
:root { --paper: #fffcf7; --ink: #22231f; --navy: #1e2a4a; --body: #4b4f5c; --taupe: #6e6355;
  --serif: "Instrument Serif", Georgia, serif; --sans: "Inter", system-ui, sans-serif; --label: "Montserrat", system-ui, sans-serif; --ital: "Libre Baskerville", Georgia, serif;
  --gut: clamp(20px, 7vw, 150px); --measure: 640px;
  --moving: linear-gradient(90deg, #2a3560, #5a6aaa, #8a8ec8, #a0b8dc, #7a8abc, #5a6aaa, #2a3560); }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--body); font: 400 19px/1.7 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--navy); outline-offset: 3px; border-radius: 3px; }
.skip { position: absolute; left: -999px; top: 8px; } .skip:focus { left: 12px; z-index: 50; background: #fff; color: var(--ink); padding: 8px 12px; }

h1, h2, h3 { font-family: var(--serif); font-weight: 400; color: var(--ink); margin: 0; letter-spacing: -.01em; text-wrap: balance; }
h1 { font-size: clamp(46px, 6.2vw, 96px); line-height: 1.0; }
h2 { font-size: clamp(30px, 3vw, 40px); line-height: 1.08; }
/* the turn: italic, in the slowly cycling blue, with room so the gradient never clips a letter */
.turn { font-style: italic; color: transparent; background: var(--moving); background-size: 300% 100%; -webkit-background-clip: text; background-clip: text; animation: moving 10s ease-in-out infinite;
  padding: .06em .14em .12em .1em; margin: 0 -.08em 0 -.1em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.glass .turn { color: #fff; background: none; animation: none; }
@keyframes moving { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
.eyebrow { font: 600 11.5px/1.3 var(--label); letter-spacing: .26em; text-transform: uppercase; color: var(--taupe); margin: 0 0 22px; }

/* glass over a photograph: dark glass on the series home, light glass in the issues */
.glass { position: relative; overflow: hidden; color: #fff; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.32); border-radius: 18px;
  -webkit-backdrop-filter: blur(18px) saturate(1.2); backdrop-filter: blur(18px) saturate(1.2); box-shadow: 0 30px 80px rgba(20,17,12,.3), inset 0 1px 0 rgba(255,255,255,.4); }
.glass h1, .glass h2 { color: #fff; }
.glass::after { content: ""; position: absolute; inset: -40% -60%; pointer-events: none; background: linear-gradient(105deg, transparent 38%, rgba(255,255,255,.10) 47%, rgba(255,255,255,.16) 50%, rgba(255,255,255,.10) 53%, transparent 62%); transform: translateX(-40%); transition: transform 2.6s cubic-bezier(.2,.7,.2,1); }
.glass[data-fx~="sheen"]::after { transition: none; transform: translate3d(calc(var(--k, .5) * 70% - 35%), 0, 0); }
.light { position: relative; border-radius: 3px; color: var(--navy); background: rgba(255,252,247,.72); border: 1px solid rgba(255,255,255,.7);
  -webkit-backdrop-filter: blur(22px) saturate(1.05); backdrop-filter: blur(22px) saturate(1.05); box-shadow: inset 0 1px 0 rgba(255,255,255,.85), 0 30px 80px -24px rgba(10,23,48,.3); }
.light h1, .light h2 { color: var(--navy); }
.light .eyebrow { color: var(--taupe); }

.js [data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity 1s ease, transform 1.1s cubic-bezier(.2,.7,.2,1); }
.js [data-reveal].in { opacity: 1; transform: none; }
[data-d="1"] { transition-delay: .1s; } [data-d="2"] { transition-delay: .2s; } [data-d="3"] { transition-delay: .3s; }
[data-fx~="rise"] { transform: translate3d(0, calc((1 - var(--e, 1)) * 56px), 0) scale(calc(.955 + var(--e, 1) * .045)); opacity: var(--e, 1); will-change: transform, opacity; }

/* top bar: the cohort site's glass slab, clear while it sits over the opening; it steps aside while you read down */
.bar { position: fixed; z-index: 20; top: 10px; left: clamp(10px, 2vw, 28px); right: clamp(10px, 2vw, 28px); height: 56px; display: flex; align-items: center; justify-content: space-between; padding: 0 clamp(14px, 2vw, 26px); color: var(--navy); border: 1px solid rgba(255,255,255,.5); border-radius: 18px; isolation: isolate;
  background: radial-gradient(130% 160% at 8% -20%, rgba(255,255,255,.66), rgba(255,255,255,0) 55%), radial-gradient(90% 120% at 96% 120%, rgba(122,138,188,.16), rgba(122,138,188,0) 60%), linear-gradient(180deg, rgba(255,255,255,.3), rgba(255,255,255,.06)), rgba(255,255,255,.26);
  -webkit-backdrop-filter: blur(42px) saturate(1.9) brightness(1.04); backdrop-filter: blur(42px) saturate(1.9) brightness(1.04);
  box-shadow: 0 1px 2px rgba(10,23,48,.05), 0 18px 50px -6px rgba(10,23,48,.2), inset 0 1px 0 rgba(255,255,255,.9), inset 0 -1px 0 rgba(255,255,255,.22), inset 0 0 22px rgba(255,255,255,.18);
  transition: transform .45s cubic-bezier(.2,.7,.2,1), top .5s cubic-bezier(.2,.7,.2,1), left .5s cubic-bezier(.2,.7,.2,1), right .5s cubic-bezier(.2,.7,.2,1), background .4s ease, border-color .4s ease, box-shadow .4s ease, color .4s ease, border-radius .5s ease; }
.bar::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; padding: 1px; pointer-events: none; transition: opacity .4s ease;
  background: linear-gradient(118deg, rgba(255,255,255,.95), rgba(255,255,255,.28) 28%, rgba(255,255,255,.06) 50%, rgba(255,255,255,.22) 72%, rgba(255,255,255,.8));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.js .bar.atop { top: 0; left: 0; right: 0; height: 60px; padding: 0 var(--gut); border-color: transparent; border-radius: 0; background: rgba(255,255,255,0); -webkit-backdrop-filter: blur(0) saturate(1); backdrop-filter: blur(0) saturate(1); box-shadow: none; color: #fff; }
.js .bar.atop::before { opacity: 0; }
.js .bar.away { transform: translateY(calc(-100% - 24px)); box-shadow: none; }
.bar b { font: 600 12.5px/1 var(--label); letter-spacing: .36em; }
.bar b a { text-decoration: none; color: inherit; }
.bar .to { font: 500 13px/1 var(--label); letter-spacing: .04em; text-decoration: none; color: inherit; opacity: .86; padding: 11px 4px; transition: opacity .25s ease; }
.bar .to:hover { opacity: 1; }
.js .issue .bar.atop { height: 48px; padding: 0 clamp(64px, 5vw, 80px); color: #fff; text-shadow: 0 1px 10px rgba(20,17,12,.35); }

/* photographs */
.photo { position: relative; overflow: hidden; padding: clamp(100px, 16vh, 180px) var(--gut); background: #3b4a52 center / cover no-repeat; }
.photo::before { content: ""; position: absolute; inset: 0; z-index: 1; background: rgba(20,17,12,.34); }
.photo > * { position: relative; z-index: 2; }
.photo.clear { background-color: #c9d3d8; }
.photo.clear::before { display: none; }

/* ===== the issue ===== */

/* the opening: the clear water photograph, one light glass plate inset so the photo frames it; the title left, the sphere right */
.hero { height: 100vh; height: 100svh; min-height: 640px; padding: 48px; }
.hero .plate { height: 100%; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 560px); align-items: center; gap: clamp(24px, 4vw, 64px); padding: clamp(56px, 6vw, 96px) clamp(36px, 5vw, 88px) clamp(36px, 4vw, 64px); }
.hero h1 { font-size: clamp(46px, 6.1vw, 88px); line-height: .98; }
.hero .deck { margin: 22px 0 0; font: italic 400 22px/1.45 var(--ital); color: var(--navy); }
.hero .byline { margin: 30px 0 0; font: 500 12.5px/1.4 var(--label); letter-spacing: .16em; text-transform: uppercase; color: var(--taupe); }
.press { margin: 0; display: flex; flex-direction: column; align-items: center; }
.press-stage { position: relative; width: min(554px, 100%); aspect-ratio: 1 / 1; touch-action: pan-y; cursor: pointer; -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent; }
.press-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.press figcaption { min-height: 1.5em; margin-top: 6px; font: italic 400 19px/1.4 var(--ital); color: var(--taupe); text-align: center; opacity: 0; transition: opacity .9s ease; }
.press figcaption.on { opacity: 1; }

/* the essay: one comfortable column */
.essay { padding: clamp(80px, 12vh, 130px) var(--gut) clamp(40px, 7vh, 80px); }
.essay > * { max-width: var(--measure); margin-left: auto; margin-right: auto; }
.essay p, .duo p { margin-top: 0; margin-bottom: 1.15em; }
.essay h2, .duo h2 { font-size: 40px; line-height: 1.08; margin-top: 96px; margin-bottom: 20px; }
.essay h2:first-child, .duo h2:first-child { margin-top: 0; }
.essay .open-p { font-size: 24px; line-height: 1.45; color: var(--ink); }
.essay .beat { font: 400 34px/1.2 var(--serif); color: var(--ink); margin: 1em auto; }
.essay .says, .duo .says { font: 400 34px/1.22 var(--serif); color: var(--ink); margin: 1em auto; }
.essay .bend { font: italic 400 34px/1.22 var(--serif); margin: .9em auto; }
.essay .bend span { padding-right: .2em; }

/* who gave, then when the tool gives: the field of dots sits in the right margin and stays with you as you read */
.duo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, var(--measure)) minmax(0, 1fr); column-gap: 40px; padding: 96px 24px 40px; }
.duo-text { display: contents; }
.duo-text > * { grid-column: 2; }
.duo .field { grid-column: 3; grid-row: 1 / span 12; justify-self: start; align-self: start; position: sticky; top: 22vh; width: min(340px, 100%); aspect-ratio: 1 / 1; margin: 0; }
.field canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }

/* the screenshot line: one quiet screen of paper */
.screen { min-height: 100vh; min-height: 100svh; display: grid; place-content: center; padding: 80px var(--gut); text-align: center; }
.screen p { margin: 0 auto; max-width: 15em; font: 400 56px/1.1 var(--serif); color: var(--ink); text-wrap: balance; }
.screen .sig { max-width: none; margin-top: 34px; font: 500 12px/1.4 var(--label); letter-spacing: .2em; text-transform: uppercase; color: var(--taupe); }

/* the mid band: one line on light glass over the calm water */
.band { min-height: 70vh; min-height: 70svh; display: grid; place-items: center; }
.band .plate { max-width: 820px; padding: clamp(28px, 4vw, 56px) clamp(28px, 4.4vw, 64px); background: rgba(255,252,247,.62); }
.band blockquote { margin: 0; }
.band blockquote p { margin: 0; font: italic 400 clamp(25px, 2.8vw, 40px)/1.34 var(--ital); color: var(--navy); text-wrap: balance; }

/* the close: stone worn smooth by water, the last line on glass at lower left; then the next issue as a line on paper */
.close { min-height: 90vh; min-height: 90svh; display: grid; align-items: end; padding: 48px; }
.close .plate { max-width: 760px; padding: clamp(28px, 3.6vw, 52px) clamp(28px, 4vw, 60px); }
.close p { margin: 0; font: 400 52px/1.08 var(--serif); color: var(--navy); text-wrap: balance; }
.next { padding: clamp(70px, 10vh, 110px) var(--gut); text-align: center; }
.next a { font: 400 clamp(26px, 2.6vw, 34px)/1.3 var(--serif); color: var(--navy); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 7px; text-decoration-color: rgba(30,42,74,.3); }
.next a:hover { text-decoration-color: var(--navy); }

/* ===== the series home ===== */
.home-top { min-height: 0; padding-top: clamp(150px, 22vh, 230px); padding-bottom: clamp(80px, 12vh, 130px); }
.home-top .plate { max-width: 1080px; margin: 0 auto; padding: clamp(30px, 4.6vw, 64px); background: rgba(22,26,36,.30); }
.glass .eyebrow { color: rgba(255,255,255,.86); }
.home-top h1 { font-size: clamp(64px, 10vw, 150px); line-height: .95; }
.home-top .lede { margin: 26px 0 0; max-width: 30em; font: italic 400 clamp(19px, 1.6vw, 23px)/1.55 var(--ital); color: rgba(255,255,255,.95); }
.issues { padding: clamp(70px, 11vh, 120px) var(--gut) clamp(80px, 12vh, 140px); }
.issues ol { list-style: none; margin: 0 auto; padding: 0; max-width: 1080px; }
.issues li { display: grid; grid-template-columns: minmax(120px, 1fr) 3fr; gap: 12px clamp(24px, 4vw, 64px); padding: clamp(28px, 4vw, 44px) 0; border-top: 1px solid rgba(30,42,74,.14); }
.issues li:last-child { border-bottom: 1px solid rgba(30,42,74,.14); }
.issues .no { font: 600 11.5px/1.5 var(--label); letter-spacing: .26em; text-transform: uppercase; color: var(--taupe); padding-top: 12px; }
.issues h2 { font-size: clamp(32px, 3.6vw, 54px); line-height: 1.05; }
.issues h2 a { text-decoration: none; }
.issues h2 a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; text-decoration-color: rgba(30,42,74,.3); }
.issues p { margin: 14px 0 18px; max-width: 40em; }
.issues .soon h2 { color: rgba(34,35,31,.6); }
.issues .soon p { margin-bottom: 0; }
.issues a.more { font: 500 14px/1 var(--label); color: var(--navy); text-underline-offset: 5px; text-decoration-color: rgba(30,42,74,.3); }

footer { padding: 30px var(--gut) 40px; display: flex; flex-wrap: wrap; gap: 10px 30px; justify-content: space-between; font: 400 14px/1.5 var(--sans); color: var(--taupe); background: var(--paper); border-top: 1px solid rgba(30,42,74,.07); }
footer b { color: var(--navy); font: 600 12px/1.5 var(--label); letter-spacing: .3em; }
footer a { text-decoration: none; }
footer a:hover { text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 1100px) {
  /* the field comes into the column, once per section */
  .duo { display: block; padding: 80px var(--gut) 30px; }
  .duo-text { display: flex; flex-direction: column; max-width: var(--measure); margin: 0 auto; }
  .duo-text > * { order: 3; }
  .duo-text > h2, .duo-text > h2 + p { order: 1; }
  .duo .field { order: 2; position: relative; top: auto; width: 100%; aspect-ratio: auto; height: 280px; margin: 10px 0 34px; }
}
@media (max-width: 900px) {
  .glass, .light { -webkit-backdrop-filter: blur(14px) saturate(1.05); backdrop-filter: blur(14px) saturate(1.05); }
  .hero { padding: 14px; height: auto; min-height: 100svh; }
  .hero .plate { min-height: calc(100svh - 28px); grid-template-columns: 1fr; align-content: center; gap: 10px; padding: 72px 22px 26px; }
  .hero .press { display: contents; }
  .hero .press-stage { order: -1; justify-self: center; }
  .hero .press figcaption { order: 2; margin-top: 4px; text-align: left; }
  .issues li { grid-template-columns: 1fr; }
  .issues .no { padding-top: 0; }
}
@media (max-width: 680px) {
  body { font-size: 18px; line-height: 1.7; }
  .js .issue .bar.atop { height: 60px; padding: 0 30px; color: var(--navy); text-shadow: none; }
  .hero h1 { font-size: 46px; }
  .hero .deck { font-size: 19px; margin-top: 12px; }
  .hero .byline { margin-top: 16px; }
  .press-stage { width: 320px; max-width: 100%; }
  .essay h2, .duo h2 { font-size: 30px; }
  .essay .open-p { font-size: 21px; }
  .essay .beat, .essay .says, .duo .says, .essay .bend { font-size: 30px; }
  .screen p { font-size: 34px; }
  .band { padding-left: 14px; padding-right: 14px; }
  .close { padding: 14px; }
  .close p { font-size: 34px; }
  .home-top { padding-left: 14px; padding-right: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
  [data-fx] { transform: none; opacity: 1; will-change: auto; }
  .glass::after { display: none; }
  .turn { animation: none; }
  .bar, .press figcaption { transition: none; }
}
