/* An issue of Intentional. Built for the phone first; the wide layout is at the foot.
   Three families, each with one job: Fraunces speaks (title, heads, the lines that land), Inter reads (the essay),
   DM Mono gives the stage directions (labels, figure captions). Loaded after style.css. */
@font-face { font-family: "Fraunces"; font-weight: 100 900; src: url("assets/fonts/fraunces-latin-var.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Fraunces"; font-style: italic; font-weight: 100 900; src: url("assets/fonts/fraunces-latin-italic-var.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "DM Mono"; font-weight: 400; src: url("assets/fonts/dm-mono-latin-400.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "DM Mono"; font-weight: 500; src: url("assets/fonts/dm-mono-latin-500.woff2") format("woff2"); font-display: swap; }

html { overflow-x: clip; }
.issue { --serif: "Montserrat", system-ui, sans-serif; --ital: "Libre Baskerville", Georgia, serif; --label: "Montserrat", system-ui, sans-serif;
  --gut: 22px; --measure: 640px; --wide: 920px; --blue: #4e62c4; --panel: #f3eee4;
  --say: 420 44px/1.02 var(--serif); overflow-x: clip; counter-reset: sec; font-size: 18px; line-height: 1.66; }
.issue h1, .issue h2, .issue .banger, .issue .open-p, .pin-lines, .film blockquote p, .close p, .next a { font-variation-settings: "SOFT" 100, "WONK" 0; }
.issue .turn { font-family: var(--ital); font-style: italic; font-weight: 400; letter-spacing: -.01em; }
.issue .eyebrow { font: 500 12px/1.3 var(--label); letter-spacing: .2em; margin-bottom: 16px; }
.issue .bar b { font: 500 12.5px/1 var(--label); letter-spacing: .3em; }
.issue .bar .to { font: 400 12.5px/1 var(--label); letter-spacing: .06em; }
.issue footer { font-family: var(--label); font-size: 12.5px; }
.issue footer b { font-weight: 500; }

/* stage directions: small mono capitals */
.stage { font: 500 12px/1.4 var(--label); letter-spacing: .2em; text-transform: uppercase; color: var(--taupe); }

/* ===== the opening: clear water, one light glass plate, the sphere under your thumb, then the title ===== */
.hero { min-height: 100vh; min-height: 100svh; padding: 12px; }
.hero .plate { min-height: calc(100vh - 24px); min-height: calc(100svh - 24px); display: grid; grid-template-columns: minmax(0, 1fr); align-content: center; padding: 62px 22px 26px; }
.hero h1 { font-size: clamp(52px, 15.6vw, 66px); line-height: .92; font-weight: 380; letter-spacing: -.035em; }
.hero .deck { margin: 16px 0 0; font: italic 380 22px/1.3 var(--serif); color: var(--navy); }
.hero .byline { margin: 18px 0 0; font: 500 12px/1.4 var(--label); letter-spacing: .16em; text-transform: uppercase; color: var(--taupe); }
.press { margin: 0; display: contents; }
.press-stage { order: -1; justify-self: center; position: relative; width: min(336px, 100%); aspect-ratio: 1 / 1; margin: 0 0 6px; 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 { order: 2; min-height: 1.5em; margin-top: 22px; font: 400 12.5px/1.5 var(--label); letter-spacing: .04em; color: var(--taupe); opacity: 0; transition: opacity .9s ease; }
.press figcaption::before { content: "\2191\00a0\00a0"; color: var(--blue); }
.press figcaption.on { opacity: 1; }

/* ===== the essay ===== */
.essay { padding: 76px var(--gut) 8px; }
.essay.first { padding-top: 60px; }
.essay > *, .duo-text > *, .next > * { max-width: var(--measure); margin-left: auto; margin-right: auto; }
.essay p, .duo p, .next p { margin-top: 0; margin-bottom: 1.1em; }
.essay .stage { margin-bottom: 12px; }
.essay .open-p { font: 400 33px/1.08 var(--serif); letter-spacing: -.022em; color: var(--ink); margin-bottom: .8em; text-wrap: balance; }
.essay h2, .duo h2 { counter-increment: sec; font-size: 46px; line-height: .98; font-weight: 380; letter-spacing: -.03em; margin-top: 92px; margin-bottom: 24px; }
.essay h2::before, .duo h2::before { content: "0" counter(sec); display: block; margin-bottom: 14px; font: 500 12px/1 var(--label); letter-spacing: .2em; color: var(--taupe); font-variation-settings: normal; }
.essay h2:first-child, .duo h2:first-child { margin-top: 0; }

/* the lines that land: big, tight, left, with the one italic turn in the moving blue */
.essay .banger { font: var(--say); letter-spacing: -.03em; color: var(--ink); margin-top: .7em; margin-bottom: .78em; text-wrap: balance; }
.essay .banger.small { font-size: 36px; line-height: 1.04; }
.essay .banger.ask { font-style: italic; font-size: 48px; line-height: 1; }
.essay .banger.ask .turn { padding-right: .16em; }
.essay > .banger:last-child { margin-bottom: 0; }

/* figures: a quiet stone panel, a mono caption under it */
.fig, .duo .field { margin: 34px auto 40px; }
.fig figcaption, .field figcaption { margin-top: 12px; font: 400 12.5px/1.5 var(--label); letter-spacing: .02em; color: var(--taupe); }
.fig figcaption b, .field figcaption b { margin-right: .9em; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--navy); }
.cu-stage { position: relative; aspect-ratio: 4 / 3.3; border-radius: 3px; background: var(--panel); overflow: hidden; }
.cu-stage canvas, .field-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }

/* who gave, then when the tool gives: the field of dots sits in the column on a phone */
.duo { padding: 92px var(--gut) 8px; }
.duo-text { display: flex; flex-direction: column; }
.duo-text > * { order: 3; width: 100%; }
.duo-text > h2, .duo-text > h2 + p { order: 1; }
.duo .field { order: 2; margin-top: 8px; margin-bottom: 30px; }
.field-stage { position: relative; height: 270px; border-radius: 3px; background: var(--panel); }

/* the pinned line: three sentences that light one at a time as you scroll through */
.pin { padding: 84px var(--gut) 20px; }
.pin-in { max-width: var(--wide); margin: 0 auto; }
.pin-lines { margin: 0; font: var(--say); font-size: 47px; letter-spacing: -.03em; color: var(--ink); }
.pin-lines > span { display: block; margin-bottom: .44em; text-wrap: balance; }
.pin-lines .hard { font-weight: 600; letter-spacing: -.02em; }
.pin-lines .softw { font-family: var(--ital); font-style: italic; font-weight: 400; }
.pin .sig { margin: 30px 0 0; font: 500 12px/1.4 var(--label); letter-spacing: .18em; text-transform: uppercase; color: var(--taupe); }
.js .pin { height: 230vh; height: 230svh; padding-top: 0; padding-bottom: 0; }
.js .pin-in { position: sticky; top: 0; height: 100vh; height: 100svh; display: grid; align-content: center; }
.js .pin [data-in], .js .film [data-in] { opacity: .13; transition: opacity .7s ease; }
.js .pin .sig[data-in] { opacity: 0; }
.js .pin [data-in].in, .js .film [data-in].in { opacity: 1; }

/* the scrolled film: clouds turn from noon to evening under your thumb, the line on glass */
.film { position: relative; background: #8fa3bd; }
.film-pin { position: relative; min-height: 86vh; min-height: 86svh; display: grid; align-items: end; padding: 12px; overflow: hidden; }
.js .film { height: 290vh; height: 290svh; }
.js .film-pin { position: sticky; top: 0; height: 100vh; height: 100svh; }
.film canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; background: url("assets/seq/clouds/m/000.jpg") center / cover no-repeat; }
@media (min-aspect-ratio: 3/4) { .film canvas { background-image: url("assets/seq/clouds/d/000.jpg"); } }
.film .plate { margin: 0; max-width: 780px; padding: 26px 22px 28px; background: rgba(255,252,247,.7); }
.film blockquote p { margin: 0; font: var(--say); font-size: 40px; letter-spacing: -.028em; color: var(--navy); }
.film blockquote p > span { display: block; text-wrap: balance; }
.film blockquote p > span + span { margin-top: .32em; }

/* the confession: a text thread that does the work */
.thread-stage { position: relative; border-radius: 3px; background: var(--panel); padding: 18px 16px 24px; display: flex; flex-direction: column; gap: 9px; font: 400 16px/1.35 var(--sans); }
.thread-stage > * { margin: 0; }
.t-day { align-self: center; margin-bottom: 6px; font: 500 11px/1 var(--label); letter-spacing: .2em; text-transform: uppercase; color: var(--taupe); }
.t { max-width: 84%; padding: 10px 15px 11px; border-radius: 19px; }
.t.me { align-self: flex-end; background: var(--navy); color: #fff; border-bottom-right-radius: 5px; }
.t.ag { align-self: flex-start; background: #fff; color: var(--ink); border-bottom-left-radius: 5px; box-shadow: 0 1px 2px rgba(10,23,48,.07), 0 8px 22px -14px rgba(10,23,48,.3); }
.t-slot { position: relative; display: flex; }
.t.dots { position: absolute; left: 0; top: 0; display: flex; gap: 5px; padding: 15px 15px; background: #fff; border-bottom-left-radius: 5px; }
.t.dots i { width: 7px; height: 7px; border-radius: 50%; background: #8d93aa; animation: tdot 1.1s ease-in-out infinite; }
.t.dots i:nth-child(2) { animation-delay: .15s; } .t.dots i:nth-child(3) { animation-delay: .3s; }
@keyframes tdot { 0%, 60%, 100% { opacity: .3; transform: none; } 30% { opacity: 1; transform: translateY(-3px); } }
.t-work { list-style: none; align-self: flex-start; width: 84%; padding: 14px 15px; display: grid; gap: 12px; border-radius: 19px; border-bottom-left-radius: 5px; background: rgba(255,255,255,.55); border: 1px solid rgba(30,42,74,.09); }
.t-work li { display: flex; align-items: center; gap: 11px; }
.t-work li i { position: relative; flex: none; width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid rgba(30,42,74,.3); transition: background .3s ease, border-color .3s ease, transform .45s cubic-bezier(.2,1.5,.4,1); }
.t-work li i::after { content: ""; position: absolute; left: 5.5px; top: 2.5px; width: 4px; height: 8px; border: solid #fff; border-width: 0 1.8px 1.8px 0; transform: rotate(42deg) scale(0); transition: transform .3s cubic-bezier(.2,1.5,.4,1) .08s; }
.t-work li span { position: relative; height: 8px; border-radius: 4px; background: rgba(30,42,74,.2); flex: 0 0 62%; transition: background .4s ease; }
.t-work li:nth-child(2) span { flex-basis: 44%; } .t-work li:nth-child(3) span { flex-basis: 54%; }
.t-work li.on i { background: var(--blue); border-color: var(--blue); transform: scale(1.06); }
.t-work li.on i::after { transform: rotate(42deg) scale(1); }
.t-work li.on span { background: rgba(30,42,74,.09); }
.js [data-loop] [data-at]:not(li) { opacity: 0; transform: translateY(9px) scale(.97); transform-origin: 0 100%; transition: opacity .32s ease, transform .5s cubic-bezier(.2,.9,.3,1.15); }
.js [data-loop] .me[data-at] { transform-origin: 100% 100%; }
.js [data-loop] [data-at].on:not(li) { opacity: 1; transform: none; }

/* the close: stone worn smooth by water, the last line on glass; then the next issue on paper */
.close { min-height: 92vh; min-height: 92svh; display: grid; align-items: end; padding: 12px; margin-top: 56px; }
.close .close-photo { position: absolute; z-index: 0; inset: -7% 0; background: #c9b9a2 72% center / cover no-repeat; transform: translate3d(0, calc((var(--k, .5) - .5) * -9%), 0); will-change: transform; }
.close .plate { max-width: 780px; padding: 26px 22px 30px; }
.close p { margin: 0; font: var(--say); font-size: 42px; letter-spacing: -.03em; color: var(--navy); text-wrap: balance; }
.next { padding: 64px var(--gut) 84px; }
.next .stage { margin-top: 44px; margin-bottom: 12px; }
.next a { display: block; font: 420 38px/1.04 var(--serif); letter-spacing: -.028em; color: var(--navy); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 8px; text-decoration-color: rgba(30,42,74,.28); text-wrap: balance; }
.next a:hover { text-decoration-color: var(--navy); }

/* words rise in as they come into view */
.js .issue .rise { opacity: 0; transform: translateY(20px); transition: opacity .8s ease, transform .9s cubic-bezier(.2,.7,.2,1); }
.js .issue .rise.in { opacity: 1; transform: none; }

/* ===== wider than a phone ===== */
@media (min-width: 700px) {
  .issue { --gut: clamp(40px, 7vw, 150px); --say: 420 64px/1 var(--serif); font-size: 19px; line-height: 1.7; }
  .essay .open-p { font-size: 44px; }
  .essay h2, .duo h2 { font-size: 58px; }
  .essay .banger, .pin-lines, .next a { margin-left: max(0px, calc((100% - var(--measure)) / 2)); margin-right: 0; max-width: var(--wide); }
  .essay .banger.small { font-size: 50px; } .essay .banger.ask { font-size: 68px; }
  .pin-lines { font-size: 72px; margin-left: 0; }
  .pin-in { max-width: none; margin-left: max(0px, calc((100% - var(--measure)) / 2)); margin-right: 0; }
  .film-pin, .close { padding: 40px; }
  .film .plate, .close .plate { padding: 40px 44px 44px; }
  .film blockquote p { font-size: 60px; } .close p { font-size: 58px; }
  .cu-stage { aspect-ratio: 16 / 10; }
  .field-stage { height: 320px; }
  .thread-stage { padding: 26px 26px 32px; font-size: 17px; }
  .t, .t-work { max-width: 66%; } .t-work { width: 66%; }
  .next a { font-size: 50px; margin-left: auto; margin-right: auto; max-width: var(--measure); }
}
@media (min-width: 901px) {
  .hero { height: 100vh; height: 100svh; min-height: 640px; padding: 48px; }
  .hero .plate { height: 100%; min-height: 0; grid-template-columns: minmax(0, 1fr) minmax(0, 560px); align-items: center; align-content: normal; gap: clamp(24px, 4vw, 64px); padding: clamp(56px, 6vw, 96px) clamp(36px, 5vw, 88px) clamp(36px, 4vw, 64px); }
  .hero h1 { font-size: clamp(60px, 7vw, 112px); line-height: .9; }
  .hero .deck { font-size: 26px; margin-top: 26px; } .hero .byline { margin-top: 30px; }
  .press { display: flex; flex-direction: column; align-items: center; }
  .press-stage { order: 0; width: min(554px, 100%); margin: 0; }
  .press figcaption { order: 0; margin-top: 8px; text-align: center; }
  .issue .essay .banger { font-size: 76px; } .issue .essay .banger.small { font-size: 56px; } .issue .essay .banger.ask { font-size: 80px; }
  .pin-lines { font-size: 88px; }
}
@media (min-width: 1101px) {
  /* the field of dots moves to 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: 110px 24px 20px; }
  .duo-text { display: contents; }
  .duo-text > *, .duo-text > h2, .duo-text > h2 + p { grid-column: 2; order: 0; margin-left: 0; margin-right: 0; }
  .duo .field { grid-column: 3; grid-row: 1 / span 12; justify-self: start; align-self: start; position: sticky; top: 22vh; width: min(340px, 100%); margin: 0; }
  .field-stage { height: auto; aspect-ratio: 1 / 1; }
}
@media (prefers-reduced-motion: reduce) {
  .js .issue .rise { opacity: 1; transform: none; transition: none; }
  .js .pin { height: auto; padding: 84px var(--gut) 20px; } .js .pin-in { position: static; height: auto; display: block; }
  .js .film { height: auto; } .js .film-pin { position: relative; height: auto; }
  .js .pin [data-in], .js .film [data-in], .js .pin .sig[data-in] { opacity: 1; transition: none; }
  .js [data-loop] [data-at]:not(li) { opacity: 1; transform: none; transition: none; }
  .t.dots { display: none; } .t.dots i { animation: none; }
  .close .close-photo { transform: none; }
  .press figcaption { transition: none; }
}

/* Karst fonts (Kevin 11-24): Montserrat Light headlines, Libre Baskerville italic for the turn, Inter reading, Montserrat labels. */
.issue h1, .issue h2, .issue h3, .issue .banger, .issue .open-p, .issue .pin-lines, .issue .film blockquote p, .issue .close p, .issue .next a { font-family: var(--serif); font-weight: 300; letter-spacing: -.02em; font-variation-settings: normal; }
.issue em, .issue i { font-family: var(--ital); }
.issue .fig figcaption, .issue figcaption, .issue .label, .issue footer { font-family: var(--label); letter-spacing: .14em; }
.issue .turn { padding: 0 .08em .12em; margin: 0 -.08em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.issue .hero h1 { font-size: clamp(44px, 12.4vw, 54px); line-height: 1.02; letter-spacing: -.03em; }
.issue .hero .deck { font: italic 400 19px/1.4 var(--ital); }
@media (min-width: 900px) { .issue .hero h1 { font-size: clamp(56px, 6vw, 96px); } .issue .hero .deck { font-size: 22px; } }
