/* "What is Usenet?" (src/pages/what-is-usenet.html): the explainer. Paper and
   ink, the lemon and the leaf, the Z's slant, as on the home page; each section
   has one thing to tap (js/usenet.js). Everything reads without scripts and
   without motion: the demos then show their finished state and all their text. */

:root { --slope: clamp(36px, 6vw, 110px); --card: #fffdf6; }

.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
em { font-style: normal; }

/* The home page's type, repeated here so this page loads none of its demos' styles. */
.eyebrow { --cut: 9px; display: inline-flex; align-items: center; padding: 7px 20px 6px; margin-bottom: 22px; background: var(--ink); color: var(--paper); font-family: var(--display); font-weight: 900; font-size: 17px; letter-spacing: 0.1em; text-transform: uppercase; clip-path: var(--lean); }
.eyebrow--night { background: var(--lemon); color: var(--ink); }
.display { font-family: var(--display); text-transform: uppercase; font-weight: 900; font-size: clamp(50px, 7.4vw, 112px); line-height: 0.88; letter-spacing: 0; text-wrap: balance; }
.display em, .u-hero__title em { color: var(--ink); background: linear-gradient(var(--lemon), var(--lemon)) 0 46% / 100% 84% no-repeat; padding: 0 0.1em; margin: 0 -0.03em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.lede { margin-top: 24px; max-width: 54ch; font-size: clamp(18px, 1.5vw, 20px); line-height: 1.55; color: var(--ink-2); text-wrap: pretty; }
.night .lede, .u-quiz .lede { color: var(--bone-2); }
.btn { --cut: 12px; display: inline-flex; align-items: center; gap: 10px; height: 56px; padding: 0 32px 0 28px; background: var(--lemon); color: var(--ink); font-family: var(--display); font-weight: 900; font-size: 23px; letter-spacing: 0.06em; text-transform: uppercase; white-space: nowrap; clip-path: var(--lean); transition: transform 0.2s var(--ease), background 0.2s; }
.btn:hover { background: var(--lemon-2); transform: translate(2px, -2px); }
.btn:active { transform: scale(0.97); }
.ghost { position: absolute; left: 0; top: clamp(20px, 4vw, 70px); z-index: 0; margin: 0; white-space: nowrap; font-family: var(--display); font-weight: 900; font-size: clamp(130px, 24vw, 380px); line-height: 0.8; text-transform: uppercase; color: transparent; -webkit-text-stroke: 2px rgba(245, 240, 225, 0.08); pointer-events: none; user-select: none; }
@media (prefers-reduced-motion: no-preference) {
  .js .display[data-rise] { opacity: 1; transform: none; }
  .js .w { display: inline-block; overflow: hidden; vertical-align: top; }
  .js .w > span { display: inline-block; transform: translateY(108%) rotate(5deg); transform-origin: left bottom; transition: transform 0.75s var(--ease); transition-delay: calc(var(--i, 0) * 55ms); }
  .js .is-in .w > span { transform: none; }
}

.u-sec { position: relative; padding: clamp(84px, 11vw, 150px) 0; }
.u-sec > .wrap { position: relative; z-index: 1; }
.u-head { max-width: 980px; margin-bottom: clamp(36px, 5vw, 64px); }
.night { background: var(--night); color: var(--bone); }
.u-night { clip-path: polygon(0 var(--slope), 100% 0, 100% 100%, 0 100%); padding-top: var(--slope); overflow: clip; }

/* ---------- Hero: the first posts, pinned to a lemon board ---------- */
.u-hero { position: relative; padding: clamp(120px, 13vw, 170px) 0 clamp(56px, 7vw, 96px); overflow: clip; }
.u-hero__grid { display: grid; gap: 48px; align-items: center; }
@media (min-width: 1000px) {
  .u-hero__grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 40px; }
}
.u-hero__title { font-family: var(--display); text-transform: uppercase; font-weight: 900; font-size: clamp(64px, 10.4vw, 156px); line-height: 0.86; letter-spacing: 0; }
.u-hero__title .line { display: block; overflow: hidden; padding-bottom: 0.04em; margin-bottom: -0.04em; }
.u-hero__title .line > span { display: inline-block; }
@media (prefers-reduced-motion: no-preference) {
  .js .u-hero__title .line > span { transform: translateY(110%) rotate(4deg); transform-origin: left bottom; animation: u-line-up 1s var(--ease) forwards; }
  .js .u-hero__title .line:nth-child(2) > span { animation-delay: 0.09s; }
  .js .u-hero__title .line:nth-child(3) > span { animation-delay: 0.18s; }
}
@keyframes u-line-up { to { transform: none; } }
.u-hero__lede { margin-top: 30px; max-width: 46ch; font-size: clamp(19px, 1.7vw, 22px); line-height: 1.5; color: var(--ink-2); text-wrap: pretty; }
.u-jump { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 8px; max-width: 640px; }
.u-jump a { --cut: 8px; display: inline-flex; align-items: center; gap: 10px; height: 40px; padding: 0 20px 0 16px; background: rgba(10, 10, 10, 0.1); font-family: var(--display); font-weight: 900; font-size: 17px; letter-spacing: 0.06em; text-transform: uppercase; text-decoration: none; clip-path: var(--lean); transition: background 0.15s, color 0.15s; }
.u-jump a:hover { background: var(--ink); color: var(--paper); }
.u-jump b { color: var(--leaf-deep); }
.u-jump a:hover b { color: var(--lemon); }

.u-board { position: relative; aspect-ratio: 1 / 0.82; width: 100%; max-width: 560px; margin-inline: auto; }
.u-board::before { content: ''; position: absolute; left: 4%; top: -2%; width: 96%; height: 104%; background: var(--lemon); clip-path: polygon(63.6% 0, 100% 0, 36.4% 100%, 0 100%); }
.u-board::after { content: ''; position: absolute; left: 22%; top: 8%; width: 86%; height: 94%; background: var(--leaf); clip-path: polygon(63.6% 0, 72% 0, 8.4% 100%, 0 100%); }
.u-board__year { position: absolute; z-index: 1; right: 0; bottom: -2%; font-family: var(--display); font-weight: 900; font-size: clamp(96px, 17vw, 210px); line-height: 0.8; color: transparent; -webkit-text-stroke: 2.5px var(--ink); }
.u-note { position: absolute; z-index: 2; display: grid; gap: 6px; width: 62%; padding: 18px 20px 20px; background: var(--card); border: 2px solid var(--ink); box-shadow: 7px 7px 0 var(--ink); font-family: var(--mono); font-size: clamp(13px, 1.25vw, 15.5px); line-height: 1.4; transform: rotate(var(--r)); }
.u-note::before { content: ''; position: absolute; left: 50%; top: -9px; width: 26px; height: 13px; margin-left: -13px; background: var(--red); border: 2px solid var(--ink); transform: skewX(var(--slant)); }
.u-note b { font-weight: 650; }
.u-note--1 { left: 0; top: 4%; --r: -5deg; }
.u-note--2 { right: 0; top: 30%; --r: 4deg; }
.u-note--2::before { background: var(--leaf); }
.u-note--3 { left: 9%; top: 58%; --r: -2deg; }
.u-note--3::before { background: var(--lemon); }
@media (prefers-reduced-motion: no-preference) {
  .js .u-note { animation: u-pin 0.7s var(--ease) backwards; }
  .js .u-note--1 { animation-delay: 0.5s; }
  .js .u-note--2 { animation-delay: 1.15s; }
  .js .u-note--3 { animation-delay: 1.8s; }
}
@keyframes u-pin { from { opacity: 0; transform: translateY(-40px) rotate(calc(var(--r) * 3)) scale(1.12); } }

/* ---------- 1. The idea: a post spreads from server to server ---------- */
.u-idea { padding-top: clamp(56px, 7vw, 96px); }
.u-idea__grid { display: grid; gap: 40px; align-items: start; }
@media (min-width: 1000px) {
  .u-idea__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 56px; }
}
.u-net { background: var(--night); color: var(--bone); border: 2px solid var(--ink); box-shadow: 8px 8px 0 var(--lemon); }
.u-net__map { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
@media (max-width: 620px) { .u-net__map { aspect-ratio: 1 / 0.98; } }
.u-net__lines { position: absolute; inset: 0; width: 100%; height: 100%; }
.u-net__lines line { stroke: var(--night-line); stroke-width: 2; vector-effect: non-scaling-stroke; }
/* The lit copy of a line is drawn along its length; js/usenet.js sets that length in pixels
   (the lines keep their width whatever the box's shape, so dashes are measured on screen). */
.u-net__lines .u-net__lit line { stroke: var(--lemon); stroke-width: 3; opacity: 0; }
.u-net__lines .u-net__lit line.is-lit { opacity: 1; transition: stroke-dashoffset 0.42s linear; }
.u-node { position: absolute; display: grid; justify-items: center; gap: 6px; width: 96px; margin: -22px 0 0 -48px; padding: 4px 0; text-align: center; }
.u-node__box { position: relative; width: 36px; height: 36px; background: var(--night-3); border: 2px solid var(--bone-2); transition: background 0.25s, border-color 0.25s, transform 0.3s var(--ease); }
.u-node__box::before, .u-node__box::after { content: ''; position: absolute; left: 6px; right: 6px; height: 2px; background: var(--bone-2); transition: background 0.25s; }
.u-node__box::before { top: 9px; }
.u-node__box::after { top: 16px; box-shadow: 0 7px 0 var(--bone-2); transition: background 0.25s, box-shadow 0.25s; }
.u-node__name { padding: 0 5px; background: var(--night); font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.04em; color: var(--bone-2); white-space: nowrap; transition: color 0.25s; }
.u-node:hover .u-node__box { transform: translate(2px, -2px); border-color: var(--bone); }
.u-node.is-lit .u-node__box, html:not(.js) .u-node__box { background: var(--lemon); border-color: var(--lemon); }
.u-node.is-lit .u-node__box::before, html:not(.js) .u-node__box::before { background: var(--ink); }
.u-node.is-lit .u-node__box::after, html:not(.js) .u-node__box::after { background: var(--ink); box-shadow: 0 7px 0 var(--ink); }
.u-node.is-lit .u-node__name, html:not(.js) .u-node__name { color: var(--bone); }
.u-node.is-from .u-node__box { background: var(--leaf); border-color: var(--leaf); }
@media (prefers-reduced-motion: no-preference) {
  .u-node.is-lit .u-node__box { animation: u-got 0.45s var(--ease); }
  .u-net.is-idle .u-node--1 .u-node__box { animation: u-nudge 1.6s ease-in-out infinite; }
}
@keyframes u-got { 40% { transform: scale(1.3) rotate(-6deg); } }
@keyframes u-nudge { 50% { transform: translateY(-5px); border-color: var(--lemon); } }
.u-node--1 { left: 13%; top: 30%; }
.u-node--2 { left: 37%; top: 15%; }
.u-node--3 { left: 61%; top: 33%; }
.u-node--4 { left: 86%; top: 17%; }
.u-node--5 { left: 27%; top: 72%; }
.u-node--6 { left: 55%; top: 78%; }
.u-node--7 { left: 84%; top: 64%; }
@media (max-width: 620px) {
  .u-node { width: 78px; margin-left: -39px; }
  .u-node__name { font-size: 10.5px; }
}
.u-net__foot { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 20px; padding: 14px 18px 16px; border-top: 1px solid var(--night-line); }
.u-net__say { font-size: 15px; line-height: 1.4; min-height: 2.8em; flex: 1 1 240px; }
.u-net__count { font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--bone-2); white-space: nowrap; }
.u-net__count b { color: var(--lemon); font-weight: 650; }
@media (min-width: 621px) { .u-net__say { min-height: 1.4em; } }
.u-facts { display: grid; gap: 26px; }
.u-facts li { position: relative; padding-left: 34px; }
.u-facts li::before { content: ''; position: absolute; left: 2px; top: 0.45em; width: 18px; height: 10px; background: var(--leaf-deep); transform: skewX(var(--slant)); }
.u-facts h3 { font-family: var(--display); font-weight: 900; font-size: 27px; line-height: 1.05; text-transform: uppercase; margin-bottom: 6px; }
.u-facts p { color: var(--ink-2); font-size: 16.5px; }

/* ---------- 2. Time machine ---------- */
.u-history { background: var(--paper-2); border-block: 2px solid var(--ink); }
.u-time { display: grid; gap: 28px; }
.u-time li { display: grid; gap: 6px; max-width: 64ch; }
.u-time h3 { font-family: var(--display); font-weight: 900; font-size: 34px; line-height: 1; color: var(--leaf-deep); }
.u-time__head { font-family: var(--display); font-weight: 900; font-size: clamp(30px, 4vw, 52px); line-height: 0.98; text-transform: uppercase; text-wrap: balance; }
.u-time li p:last-child { color: var(--ink-2); font-size: 18px; }
/* With scripts: one year at a time, picked from a row of years. */
.u-time__years { position: relative; display: flex; gap: 6px; margin-bottom: clamp(28px, 4vw, 44px); overflow-x: auto; padding: 4px 4px 16px; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); scrollbar-width: none; }
.u-time__years::-webkit-scrollbar { display: none; }
.u-time__year { --cut: 10px; flex: none; height: 54px; padding: 0 26px; background: rgba(10, 10, 10, 0.1); font-family: var(--display); font-weight: 900; font-size: 26px; letter-spacing: 0.04em; clip-path: var(--lean); transition: background 0.2s, color 0.2s, transform 0.2s var(--ease); }
.u-time__year:hover { background: rgba(10, 10, 10, 0.2); }
.u-time__year[aria-selected='true'] { background: var(--ink); color: var(--lemon); }
.u-time.is-live { display: block; min-height: 300px; }
.u-time.is-live li { display: none; }
.u-time.is-live li.is-on { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
@media (min-width: 860px) {
  .u-time.is-live { min-height: 250px; }
  .u-time.is-live li.is-on { grid-template-columns: auto minmax(0, 1fr); column-gap: 48px; max-width: none; align-items: start; }
  .u-time.is-live li.is-on h3 { grid-row: 1 / 3; }
  .u-time.is-live li.is-on p:last-child { max-width: 58ch; }
}
.u-time.is-live h3 { font-size: clamp(96px, 15vw, 210px); line-height: 0.78; color: var(--lemon); -webkit-text-stroke: 2.5px var(--ink); }
@media (prefers-reduced-motion: no-preference) {
  .u-time.is-live li.is-on > * { animation: u-turn 0.5s var(--ease) backwards; }
  .u-time.is-live li.is-on > :nth-child(2) { animation-delay: 0.06s; }
  .u-time.is-live li.is-on > :nth-child(3) { animation-delay: 0.12s; }
}
@keyframes u-turn { from { opacity: 0; transform: translateY(22px); } }
.u-time__step { display: flex; gap: 10px; margin-top: 28px; }
.u-time__step button { --cut: 8px; height: 42px; padding: 0 20px; background: var(--ink); color: var(--paper); font-family: var(--display); font-weight: 900; font-size: 17px; letter-spacing: 0.06em; text-transform: uppercase; clip-path: var(--lean); }
.u-time__step button:disabled { opacity: 0.25; cursor: default; }

/* ---------- 3. Follow a file ---------- */
.u-file__grid { display: grid; gap: 44px; align-items: start; }
@media (min-width: 1000px) {
  .u-file__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 72px; }
  .u-file__copy { position: sticky; top: 120px; }
}
.u-file__stage { background: var(--night-2); border: 1px solid var(--night-line); padding: clamp(18px, 2.6vw, 30px); box-shadow: 8px 8px 0 var(--lemon); }
.u-file__lane { font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--bone-2); margin-bottom: 10px; }
.u-file__row { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 0; height: clamp(54px, 9vw, 76px); transition: gap 0.5s var(--ease); }
.u-p { position: relative; display: grid; place-items: center; background: var(--bone); color: var(--ink); font-family: var(--mono); font-size: clamp(10px, 1.5vw, 13px); font-weight: 650; transition: transform 0.5s var(--ease), opacity 0.35s, background 0.35s, color 0.35s; transition-delay: calc(var(--n, 0) * 28ms); }
.u-p b { font-weight: inherit; opacity: 0; transition: opacity 0.3s; }
.u-file__stage[data-step='1'] .u-file__row, .u-file__stage[data-step='2'] .u-file__row, .u-file__stage[data-step='3'] .u-file__row, .u-file__stage[data-step='4'] .u-file__row { gap: clamp(2px, 0.5vw, 6px); }
.u-file__stage[data-step='1'] .u-p b, .u-file__stage[data-step='3'] .u-p b, .u-file__stage[data-step='4'] .u-p b { opacity: 1; }
.u-file__stage[data-step='2'] .u-p { transform: translateY(64px) scale(0.5); opacity: 0; }
.u-file__stage[data-step='3'] .u-p.is-lost { background: transparent; color: var(--red); box-shadow: inset 0 0 0 2px var(--red); }
.u-file__stage[data-step='3'] .u-p.is-lost b { opacity: 0; }
.u-file__stage[data-step='3'] .u-p.is-lost::after { content: '?'; position: absolute; font-size: 1.5em; }
.u-file__stage[data-step='4'] .u-p.is-lost { background: var(--leaf); }
.u-file__stage[data-step='5'] .u-p { background: var(--lemon); }
@media (prefers-reduced-motion: no-preference) {
  .u-file__stage[data-step='3'] .u-p.is-lost { animation: u-shake 0.5s 0.5s; }
  .u-file__stage[data-step='4'] .u-p.is-lost { animation: u-got 0.5s var(--ease); }
}
@keyframes u-shake { 20%, 60% { transform: translateX(-3px); } 40%, 80% { transform: translateX(3px); } }
.u-file__note { min-height: 1.6em; margin: 12px 0 22px; font-family: var(--mono); font-size: 13px; color: var(--bone-2); }
.u-file__stage[data-step='3'] .u-file__note { color: var(--red); }
.u-file__stage[data-step='4'] .u-file__note { color: var(--leaf); }
.u-file__stage[data-step='5'] .u-file__note { color: var(--lemon); }
.u-file__servers { display: grid; gap: 10px; }
.u-srv { display: grid; grid-template-columns: 78px minmax(0, 1fr); align-items: center; gap: 12px; }
.u-srv__name { font-family: var(--mono); font-size: 12.5px; color: var(--bone-2); transition: color 0.3s; }
/* Twelve pieces and three spares, as fifteen ticks. */
.u-srv__bar { position: relative; height: 16px; background: linear-gradient(90deg, #2d2c27 0 78%, transparent 78%) 0 0 / calc(100% / 15) 100%; }
.u-srv__bar::before, .u-srv__bar::after { content: ''; position: absolute; inset: 0; clip-path: inset(0 100% 0 0); transition: clip-path 0.7s var(--ease); transition-delay: var(--wait, 0s); }
.u-srv__bar::before { background: linear-gradient(90deg, var(--bone) 0 78%, transparent 78%) 0 0 / calc(100% / 15) 100%; }
.u-srv__bar::after { background: linear-gradient(90deg, var(--leaf) 0 78%, transparent 78%) 0 0 / calc(100% / 15) 100%; }
.u-srv:nth-child(2) { --wait: 0.35s; }
.u-srv:nth-child(3) { --wait: 0.7s; }
.u-file__stage:not([data-step='0']):not([data-step='1']) .u-srv__bar::before { clip-path: inset(0 20% 0 0); }
.u-file__stage:not([data-step='0']):not([data-step='1']) .u-srv__bar::after { clip-path: inset(0 0 0 80%); }
.u-file__stage:not([data-step='0']):not([data-step='1']) .u-srv__name { color: var(--bone); }
.u-file__key { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 18px; font-size: 13px; color: #8a8576; }
.u-file__key span { width: 14px; height: 14px; }
.u-file__key-piece { background: var(--bone); }
.u-file__key-spare { background: var(--leaf); margin-left: 14px; }

/* Each step's number is its own value="", so it keeps it when it is the only one shown. */
.u-steps { margin-top: 28px; display: grid; gap: 22px; }
.u-steps li { position: relative; padding-left: 58px; }
.u-steps li::before { content: attr(value); position: absolute; left: 0; top: -4px; font-family: var(--display); font-weight: 900; font-size: 50px; line-height: 1; color: var(--lemon); }
.u-steps h3 { font-family: var(--display); font-weight: 900; font-size: clamp(26px, 3vw, 34px); line-height: 1.02; text-transform: uppercase; margin-bottom: 6px; }
.u-steps p { color: var(--bone-2); max-width: 52ch; }
.js .u-steps { min-height: 150px; }
.js .u-steps li { display: none; }
.js .u-steps li.is-on { display: block; }
@media (prefers-reduced-motion: no-preference) {
  .js .u-steps li.is-on { animation: u-turn 0.45s var(--ease) backwards; }
}
.u-file__bar { display: none; }
.js .u-file__bar { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 26px; }
/* Until it is first pressed the button jiggles now and then, so it reads as something to press. */
@media (prefers-reduced-motion: no-preference) {
  .u-file__go.is-waiting { animation: u-jiggle 2.2s var(--ease) infinite; }
  .u-file__go.is-waiting:hover { animation: none; }
}
@keyframes u-jiggle { 0%, 62%, 100% { transform: none; } 68% { transform: rotate(-4deg) scale(1.06); } 76% { transform: rotate(4deg) scale(1.06); } 84% { transform: rotate(-3deg) scale(1.04); } 92% { transform: rotate(2deg); } }
.u-file__at { display: flex; gap: 6px; }
.u-file__at i { width: 26px; height: 8px; background: var(--night-line); transform: skewX(var(--slant)); transition: background 0.3s; }
.u-file__at i.is-done { background: var(--lemon); }

/* ---------- 4. What you need: three plugs and a screen ---------- */
.u-need__grid { display: grid; gap: 36px; align-items: start; }
@media (min-width: 1000px) {
  .u-need__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; }
  .u-tv { position: sticky; top: 120px; }
}
html:not(.js) .u-tv { display: none; }
/* On a phone the screen comes after the plugs, so it is in view when the last one goes in. */
@media (max-width: 999px) { .u-tv { order: 2; max-width: 460px; width: 100%; margin-inline: auto; } }
.u-tv__screen { position: relative; display: grid; place-items: center; aspect-ratio: 16 / 9; background: var(--night); border: 9px solid #121210; border-radius: 12px; box-shadow: 0 0 0 1px #2c2b27, 8px 8px 0 var(--ink); overflow: hidden; transition: background 0.5s; }
.u-tv__off { font-family: var(--mono); font-size: 14px; letter-spacing: 0.14em; text-transform: uppercase; color: #6b6759; }
.u-tv__on { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 4px; background: var(--lemon); color: var(--ink); font-family: var(--display); font-weight: 900; font-size: clamp(36px, 5vw, 60px); line-height: 1; text-transform: uppercase; clip-path: polygon(0 0, 0 0, 0 100%, 0 100%); transition: clip-path 0.7s var(--ease); }
.is-ready .u-tv__on { clip-path: polygon(0 0, 140% 0, 100% 100%, 0 100%); }
@media (prefers-reduced-motion: no-preference) {
  .u-tv__off { animation: u-blink 2.4s steps(2, jump-none) infinite; }
}
@keyframes u-blink { 50% { opacity: 0.35; } }
.u-tv__lamps { display: flex; justify-content: center; gap: 10px; margin-top: 18px; }
.u-tv__lamps i { width: 34px; height: 12px; background: var(--paper-3); box-shadow: 0 0 0 1.5px var(--ink); transform: skewX(var(--slant)); transition: background 0.3s; }
.u-tv__lamps i.is-on { background: var(--leaf); }
.u-tv__say { margin-top: 14px; text-align: center; font-weight: 600; min-height: 3.2em; }
.u-plugs { display: grid; gap: 18px; }
.u-plug { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 22px; align-items: start; width: 100%; padding: 22px 24px 24px; text-align: left; background: var(--card); border: 2px solid var(--ink); box-shadow: 8px 8px 0 var(--ink); transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s; }
html:not(.js) .u-plug { cursor: default; }
.u-plug__n { grid-row: 1 / 3; font-family: var(--display); font-weight: 900; font-size: clamp(72px, 9vw, 104px); line-height: 0.8; color: var(--lemon); -webkit-text-stroke: 2px var(--ink); transition: color 0.25s; }
.u-plug__body { display: grid; gap: 4px; }
.u-plug__tag { font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); }
.u-plug__name { font-family: var(--display); font-weight: 900; font-size: clamp(30px, 3.6vw, 40px); line-height: 0.98; text-transform: uppercase; }
.u-plug__text { margin-top: 4px; color: var(--ink-2); font-size: 16px; line-height: 1.5; }
.u-plug__state { --cut: 7px; justify-self: start; grid-column: 2; margin-top: 12px; padding: 5px 16px 4px; background: var(--ink); color: var(--paper); font-family: var(--display); font-weight: 900; font-size: 15px; letter-spacing: 0.08em; text-transform: uppercase; clip-path: var(--lean); }
html:not(.js) .u-plug__state { display: none; }
.u-plug__state::before { content: 'Tap to plug in'; }
.u-plug[aria-pressed='true'] { background: var(--lemon); transform: translate(5px, 5px); box-shadow: 3px 3px 0 var(--ink); }
.u-plug[aria-pressed='true'] .u-plug__n { color: var(--card); }
.u-plug[aria-pressed='true'] .u-plug__state { background: var(--leaf-deep); }
.u-plug[aria-pressed='true'] .u-plug__state::before { content: 'Plugged in'; }
.u-plug[aria-pressed='true'] .u-plug__tag { color: var(--ink-2); }
@media (hover: hover) {
  .js .u-plug[aria-pressed='false']:hover { transform: translate(-4px, -4px); box-shadow: 12px 12px 0 var(--ink); }
}
.u-need__note { margin-top: clamp(36px, 5vw, 56px); max-width: 70ch; padding: 20px 24px; border-left: 10px solid var(--ink); background: var(--paper-2); font-size: 17px; }
.u-need__note a { font-weight: 600; text-decoration-color: var(--lemon-deep); text-decoration-thickness: 2px; white-space: nowrap; }
.u-need__note a:hover { background: var(--lemon); }

/* ---------- 5. The words ---------- */
.u-words { background: var(--paper-2); border-top: 2px solid var(--ink); padding-bottom: calc(clamp(84px, 11vw, 150px) + var(--slope)); }
.u-words__grid { display: grid; gap: 16px; align-items: start; }
@media (min-width: 620px) { .u-words__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 960px) { .u-words__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; } }
.u-word { background: var(--card); border: 2px solid var(--ink); box-shadow: 6px 6px 0 var(--ink); transition: background 0.25s, box-shadow 0.25s, transform 0.25s var(--ease); }
.u-word summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px 16px; cursor: pointer; list-style: none; font-family: var(--display); font-weight: 900; font-size: clamp(28px, 3vw, 34px); line-height: 1; text-transform: uppercase; }
.u-word summary::-webkit-details-marker { display: none; }
.u-word summary::after { content: ''; flex: none; width: 22px; height: 22px; background: linear-gradient(var(--ink), var(--ink)) center / 100% 4px no-repeat, linear-gradient(var(--ink), var(--ink)) center / 4px 100% no-repeat; transition: transform 0.3s var(--ease); }
.u-word[open] { background: var(--ink); color: var(--paper); box-shadow: 6px 6px 0 var(--lemon); }
.u-word[open] summary { color: var(--lemon); }
.u-word[open] summary::after { background: linear-gradient(var(--lemon), var(--lemon)) center / 100% 4px no-repeat; transform: rotate(180deg); }
.u-word p { padding: 0 20px 20px; font-size: 16.5px; line-height: 1.5; }
@media (hover: hover) {
  .u-word:not([open]):hover { transform: translate(-3px, -3px); box-shadow: 9px 9px 0 var(--ink); }
}
@media (prefers-reduced-motion: no-preference) {
  .u-word[open] p { animation: u-turn 0.35s var(--ease) backwards; }
}

/* ---------- 6. True or not? ---------- */
.u-quiz { background: var(--night); color: var(--bone); clip-path: polygon(0 0, 100% var(--slope), 100% 100%, 0 100%); margin-top: calc(-1 * var(--slope)); padding-top: calc(clamp(84px, 11vw, 150px) + var(--slope)); padding-bottom: calc(clamp(84px, 11vw, 150px) + var(--slope)); }
.u-qs { display: grid; gap: 14px; max-width: 900px; counter-reset: q; }
.u-q { counter-increment: q; position: relative; padding: 22px 24px 24px 76px; background: var(--night-2); border: 1px solid var(--night-line); transition: border-color 0.3s; }
.u-q::before { content: counter(q); position: absolute; left: 22px; top: 16px; font-family: var(--display); font-weight: 900; font-size: 46px; line-height: 1; color: var(--night-line); transition: color 0.3s; }
.u-q__say { font-size: clamp(20px, 2.2vw, 25px); font-weight: 600; line-height: 1.3; text-wrap: balance; }
.u-q__pick { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.u-q__pick button { --cut: 9px; height: 44px; padding: 0 24px; background: var(--night-3); color: var(--bone); font-family: var(--display); font-weight: 900; font-size: 19px; letter-spacing: 0.06em; text-transform: uppercase; clip-path: var(--lean); transition: background 0.2s, color 0.2s, opacity 0.2s; }
.u-q__pick button:hover:not(:disabled) { background: var(--lemon); color: var(--ink); }
.u-q__pick button:disabled { cursor: default; opacity: 0.4; }
.u-q__pick button.is-picked { opacity: 1; }
.u-q.is-right .u-q__pick button.is-picked { background: var(--leaf); color: var(--ink); }
.u-q.is-wrong .u-q__pick button.is-picked { background: var(--red); color: var(--ink); }
.u-q__why { margin-top: 14px; color: var(--bone-2); max-width: 62ch; }
.u-q__why b { color: var(--lemon); font-weight: 650; }
.js .u-q:not(.is-done) .u-q__why { display: none; }
.u-q.is-right { border-color: var(--leaf); }
.u-q.is-right::before { color: var(--leaf); }
.u-q.is-wrong { border-color: var(--red); }
.u-q.is-wrong::before { color: var(--red); }
@media (prefers-reduced-motion: no-preference) {
  .u-q.is-done .u-q__why { animation: u-turn 0.4s var(--ease) backwards; }
}
.u-score { margin-top: 28px; min-height: 1.2em; font-family: var(--display); font-weight: 900; font-size: clamp(32px, 4.6vw, 58px); line-height: 1; text-transform: uppercase; color: var(--lemon); text-wrap: balance; }

/* ---------- The end ---------- */
.u-end { position: relative; background: var(--lemon); text-align: center; clip-path: polygon(0 var(--slope), 100% 0, 100% 100%, 0 100%); margin-top: calc(-1 * var(--slope)); padding: calc(clamp(90px, 12vw, 170px) + var(--slope)) 0 clamp(84px, 10vw, 140px); }
.u-end .wrap { display: grid; justify-items: center; }
/* The ink slab is one block on its own line, so it never cuts into the line above it. */
.u-end .display em { display: inline-block; margin-top: 0.1em; padding: 0.06em 0.14em 0.02em; color: var(--lemon); background: var(--ink); }
.u-end .lede { margin: 28px auto 36px; color: var(--ink); }
.u-end .cta--end { background: var(--ink); color: var(--paper); }
.u-end .cta--end .cta__icon { color: var(--lemon); }
.u-end a.cta--end:hover { background: var(--night-3); }
.u-end__small { margin-top: 34px; max-width: 60ch; font-size: 14px; color: rgba(10, 10, 10, 0.75); }
@media (max-width: 560px) {
  .cta--end { --cut: 12px; height: 58px; padding: 0 26px 0 22px; font-size: 21px; }
}
