/* ink's two fonts and 1px hairlines, on paper: near-black type on a warm off-white printed with a fine
   dot grid, so ink's own screens, true black with warm white type, sit on it as objects */
@font-face { font-family: "Archivo Black"; src: url(/fonts/archivo_black.ttf) format("truetype"); font-display: swap; }
@font-face { font-family: Silkscreen; src: url(/fonts/silkscreen.ttf) format("truetype"); font-display: swap; }

:root {
  --ink: #121211;
  --mid: rgba(18, 18, 17, .62);
  --dim: rgba(18, 18, 17, .26);
  --line: rgba(18, 18, 17, .14);
  --ease: cubic-bezier(.16, 1, .3, 1);
  --page: #ecebe6;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { background: var(--page); }
body { margin: 0; color: var(--ink); background: radial-gradient(circle, rgba(18, 18, 17, .14) 1px, transparent 1.4px) 0 0 / 10px 10px, var(--page); }
body { font: 15px/1.6 Silkscreen, monospace; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
a { color: var(--ink); text-decoration: none; }
a:hover, a:focus-visible { text-decoration: underline; text-underline-offset: 4px; outline: none; }
::selection { background: var(--ink); color: var(--page); }

.wrap { width: 100%; max-width: 1300px; margin: 0 auto; padding-left: 16px; padding-right: 16px; }
@media (min-width: 720px) { .wrap { padding-left: 48px; padding-right: 48px; } }

.head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding-top: 28px; padding-bottom: 28px; }
.head .name { font: 28px/1 "Archivo Black", sans-serif; letter-spacing: -.03em; text-transform: uppercase; }
.head nav { display: flex; gap: 24px; }
.head nav a { color: var(--mid); white-space: nowrap; }
@media (max-width: 480px) { .head nav { gap: 14px; font-size: 12px; } }
.head nav a:hover, .head nav a[aria-current] { color: var(--ink); }

h1, h2, h3 { font-family: "Archivo Black", sans-serif; font-weight: normal; text-transform: uppercase; letter-spacing: -.03em; line-height: .92; margin: 0; }
h1 { font-size: clamp(56px, 13vw, 168px); }
h2 { font-size: clamp(40px, 8vw, 96px); }
h3 { font-size: 24px; letter-spacing: -.02em; }
p { margin: 0 0 12px; color: var(--mid); max-width: 60ch; }
p strong, li strong { color: var(--ink); font-weight: normal; }

section { border-top: 1px solid var(--line); padding: 72px 0; display: grid; gap: 40px; }
.hero { display: grid; gap: 48px; padding-bottom: 88px; }
.hero-words p:last-child { margin-top: 20px; }
/* on a phone the live screen says it: straight from the lede to the screen */
@media (max-width: 719px) { .hero-words p:last-child { display: none; } }
@media (min-width: 1100px) {
  .hero { grid-template-columns: minmax(0, 1fr) 400px; column-gap: 72px; align-items: center; }
  .hero h1 { font-size: min(6.6vw, 104px); }
}

/* ink's home screen, running (ink.js plays it). sized to its own width in cqw, as the phone sizes to its
   screen, always upright: that's how a phone is held. a true black screen, square, the artist running edge to edge inside it */
.live-box { container-type: inline-size; width: min(100%, 400px); justify-self: center; }
.live-box .cap { margin: 16px 0 0; text-align: center; color: var(--mid); font-size: 12px; max-width: none; }
.live { display: grid; grid-template-areas: "bar" "left" "now" "mq"; align-content: start;
  background: #000; padding: 7cqw 6cqw 0; overflow: hidden; color: var(--ink);
  --ink: #f1f0ec; --mid: rgba(241, 240, 236, .55); --dim: rgba(241, 240, 236, .17);
  font-family: Silkscreen, monospace; text-transform: uppercase; letter-spacing: .06em; line-height: 1.3;
  --s: max(9px, 2.6cqw); --line: var(--ink); }
.live button { all: unset; cursor: pointer; }
.live button:hover, .live button:focus-visible, .l-bar a:hover { text-decoration: underline; text-underline-offset: 4px; }
.pane[hidden], .dev[hidden] { display: none; }
.l-bar { grid-area: bar; display: flex; justify-content: space-between; font-size: var(--s); color: var(--dim); margin-bottom: 8cqw; }
.l-tabs { display: flex; gap: 2.4em; }
.l-tabs b { font-weight: normal; color: var(--ink); }
.l-bar a { color: var(--dim); }
.l-left { grid-area: left; display: flex; flex-direction: column; }
.l-clock { font: 19cqw/.82 "Archivo Black", sans-serif; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.l-date { font-size: var(--s); color: var(--mid); margin-top: 3cqw; }
.l-apps { list-style: none; padding: 0; margin: 10cqw 0 0; font: 6.6cqw/1.18 "Archivo Black", sans-serif; letter-spacing: -.01em; }
.l-now { grid-area: now; margin-top: 12cqw; min-width: 0; }
.l-times { display: flex; justify-content: space-between; font-size: var(--s); color: var(--dim); margin-bottom: 1.4cqw; }
.l-line { height: 2px; background: #1d1d1d; }
.l-line i { display: block; height: 100%; width: 0; background: var(--line); transition: width 1s linear, background .4s; }
.l-np { display: grid; grid-template-columns: 28cqw minmax(0, 1fr); gap: 5cqw; align-items: end; }
.l-cover { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; }
.l-meta { display: grid; gap: .6cqw; min-width: 0; }
.l-title { font: 5.8cqw/.95 "Archivo Black", sans-serif; letter-spacing: -.02em; margin-bottom: 2cqw; }
.l-artist, .l-src { font-size: var(--s); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.l-artist { color: var(--mid); }
.l-src { color: var(--dim); }
.l-cover, .l-meta { transition: opacity .18s; }
.live.swap .l-cover, .live.swap .l-meta { opacity: 0; }
.l-ctl { display: flex; gap: 9cqw; margin-top: 4cqw; font-size: max(10px, 3cqw); }
.l-lyrics { margin-left: auto; color: var(--dim); }
.l-marquee { grid-area: mq; overflow: hidden; white-space: nowrap; margin: 3cqw -6cqw 0; }
.l-marquee .track { display: inline-flex; animation: drift 22s linear infinite; will-change: transform; }
.l-marquee span { font: 22cqw/.9 "Archivo Black", sans-serif; letter-spacing: -.03em; padding-right: .7em; }
.live.paused .l-marquee .track { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) { .l-marquee .track { animation: none; } }


/* the stage: phone or tv in the big face, the one chosen lit; under it that device's tabs in the pixel
   face as ink's own bar has them; one shot at a time, its words beside it */
.devices { display: flex; gap: .45em; font: clamp(40px, 8vw, 96px)/.92 "Archivo Black", sans-serif; text-transform: uppercase; letter-spacing: -.03em; }
.devices button, .tabs button { all: unset; cursor: pointer; color: var(--dim); }
.devices button[aria-selected=true], .tabs button[aria-selected=true] { color: var(--ink); }
.devices button:hover, .tabs button:hover { color: var(--mid); }
.devices button:focus-visible, .tabs button:focus-visible { text-decoration: underline; text-underline-offset: 6px; }
.dev .intro { margin: 24px 0 0; }
.tabs { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 32px; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; }
.panes { display: grid; gap: 72px; margin-top: 48px; }
.pane { display: grid; gap: 28px; justify-items: start; }
.pane img { display: block; width: 100%; height: auto; background: #000; }
.pane .words p { margin-top: 14px; }
.dev-phone .frame { width: min(300px, 64vw); justify-self: center; }
@media (min-width: 720px) {
  .dev-phone .pane { grid-template-columns: 300px minmax(0, 44ch); gap: 72px; align-items: center; }
  .dev-phone .frame { justify-self: start; }
}
.dev-tv .frame { width: min(960px, 100%); }
.dev-tv .pane { gap: 40px; }
html:not(.js) .devices, html:not(.js) .tabs { display: none; }
.js .pane:not([hidden]) { animation: show 200ms var(--ease) both; }
@keyframes show { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .js .pane:not([hidden]) { animation: none; } }

.split { display: grid; gap: 48px; align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); } }
.given-card { display: grid; gap: 8px; justify-items: start; }
.given-card p { margin: 0; color: var(--ink); }
.given-card .dim, .dim { color: var(--mid); }
.huge { font-size: clamp(64px, 16vw, 200px); }
.sub { display: grid; gap: 8px; padding-top: 24px; }
.big3 { font-size: clamp(28px, 4.4vw, 52px); }
.lede { color: var(--ink); font-size: 17px; margin-top: 20px; }

/* the time given back: the one place the pixel face goes big */
.given { font: clamp(96px, 13vw, 200px)/.8 Silkscreen, monospace; letter-spacing: -.04em; white-space: nowrap; }

.words-list { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 22px; }
@media (min-width: 720px) { .words-list { grid-template-columns: 1fr 1fr; column-gap: 48px; } }
.words-list li { border-top: 1px solid var(--line); padding-top: 14px; }
.words-list li p { margin: 6px 0 0; }

.cta { display: inline-block; margin-top: 24px; font: 24px/1 "Archivo Black", sans-serif; text-transform: uppercase; letter-spacing: -.02em; }
.cta::after { content: " \2192"; }

/* the artist marquee: a name and a gap of 0.7 its size as a tile, a screen width every 22 s */
.marquee { overflow: hidden; white-space: nowrap; padding: 24px 0 8px; border-top: 1px solid var(--line); }
.marquee .track { display: inline-flex; animation: drift 22s linear infinite; will-change: transform; }
.marquee span { font: clamp(96px, 22vw, 260px)/.9 "Archivo Black", sans-serif; text-transform: uppercase; letter-spacing: -.04em; padding-right: .7em; }
@keyframes drift { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee .track { animation: none; } }

.foot { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; padding-top: 24px; padding-bottom: 40px; color: var(--dim); }
.foot a { color: var(--mid); }

/* arrival: drift 20px and fade, ease-out-expo, 50 ms apart */
.arrive { animation: arrive 260ms var(--ease) both; }
.arrive:nth-child(2) { animation-delay: 50ms; }
.arrive:nth-child(3) { animation-delay: 100ms; }
.arrive:nth-child(4) { animation-delay: 150ms; }
@keyframes arrive { from { opacity: 0; transform: translateY(20px); } }
@media (prefers-reduced-motion: reduce) { .arrive { animation: none; } }

/* long pages (privacy) */
.doc h2 { font-size: 26px; margin: 40px 0 10px; padding-top: 20px; border-top: 1px solid var(--line); }
.doc ul { padding-left: 18px; color: var(--mid); }
.doc li { margin: 0 0 10px; }
