/* Landing hub (D117): one modern look, light or dark with the system. Every visual choice goes through the tokens
   on :root. */
:root {
  --bg: #fff; --fg: #0f0f10; --muted: #6b6b73; --accent: #e5322d;
  --card: #f6f6f8; --card-border: #e6e6ea; --btn-bg: #0f0f10; --btn-fg: #fff;
  --btn-border: transparent; --btn-image: none; --link: #0f0f10; --link-deco: none;
  --radius: 16px; --pill: 999px; --text: 16px;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --display-font: var(--font);
  --shadow: 0 1px 2px rgb(15 15 16 / .05), 0 18px 40px -18px rgb(15 15 16 / .28);
  --glow-red: rgb(255 0 0 / .09); --glow-yellow: rgb(255 196 0 / .13);
  --texture: radial-gradient(42% 30% at 12% 0%, var(--glow-red), transparent 70%), radial-gradient(38% 28% at 40% 2%, var(--glow-yellow), transparent 70%);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e0e10; --fg: #f2f2f4; --muted: #9a9aa3; --accent: #ff5a4f;
    --card: #18181b; --card-border: #2a2a30; --btn-bg: #f2f2f4; --btn-fg: #0e0e10; --link: #f2f2f4;
    --shadow: 0 1px 2px rgb(0 0 0 / .4), 0 18px 40px -18px rgb(0 0 0 / .8);
    --glow-red: rgb(255 40 30 / .16); --glow-yellow: rgb(255 196 0 / .10);

    color-scheme: dark;
  }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html { background: var(--texture) no-repeat, var(--bg); min-height: 100%; }
body {
  margin: 0 auto; max-width: 1180px; padding: 0 16px 40px;
  color: var(--fg);
  font: var(--text)/1.5 var(--font); -webkit-font-smoothing: antialiased;
}
@media (min-width: 720px) { body { padding: 0 32px 56px; } }
/* The network bar (D125): fixed on top once its script defines it; its room is kept only then. */
body:has(> oi-bar:defined) { padding-top: var(--oi-bar-height, 40px); }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* Header: the wordmark with the faded "old", as in the eras (D75). */
.lh-top { padding: 48px 0 28px; }
/* The wordmark: the site icon (favicon.svg: the play tube split red / yellow) + a faded lowercase "old" (as the pages' own "old")
   + "You" + a red "Tube" (no box), after YouTube's classic logo (Oswald stands in for
   its Alternate Gothic). */
.lh-mark { display: inline-flex; align-items: center; gap: .06em; margin: 0; font: 600 clamp(44px, 9vw, 76px)/1 Oswald, "Arial Narrow", Arial, sans-serif;
  letter-spacing: -.01em; }
.lh-icon { width: 1.05em; height: 1.05em; margin-right: .12em; flex: none; }
.lh-old { color: var(--muted); opacity: .75; margin-right: .08em; }
.lh-you { color: var(--fg); }
.lh-tube { color: #e8160c; } /* no box: the red word, beside the icon's red / yellow */
.lh-tag { margin: 10px 0 0; color: var(--muted); font-size: clamp(16px, 2.2vw, 20px); }

/* Years (D142): 12 laptops (6 per row on desktop, 4 on tablets, 2 on phones), each its period's notebook (silver 2005-08,
   piano-black gloss 2009-12, aluminium 2013-16) seen from the front and a little above. Closed it shows the lid's back
   with the site icon; hovered or focused, the lid swings open on that year's homepage. Geometry, in the tile's own
   width (container units): the rig is 80cqw wide, the lid and the deck 50cqw deep, hinged at --hinge from the top. */
.lh-years { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px 14px; margin: 0; padding-top: 24px; }
@media (min-width: 560px) { .lh-years { grid-template-columns: repeat(4, 1fr); gap: 30px 18px; } }
@media (min-width: 900px) { .lh-years { grid-template-columns: repeat(6, 1fr); gap: 34px 20px; } }
.lh-year { --lid: -90deg; --glow: 0; position: relative; display: flex; flex-direction: column; align-items: center; text-decoration: none; color: var(--muted);
  border-radius: var(--radius); container-type: inline-size; }
.lh-year:hover, .lh-year:focus-visible { --lid: 14deg; --glow: 1; z-index: 1; } /* the open lid rises over the row above */
.lh-lap { position: relative; display: block; width: 100%; height: 46cqw; perspective: 420cqw; perspective-origin: 50% 20%; }
.lh-rig { position: absolute; left: 10cqw; width: 80cqw; top: 17cqw; height: 0; transform-style: preserve-3d; transform: rotateX(-32deg); }
.lh-rig > span, .lh-lid > span { position: absolute; left: 0; width: 100%; display: block; }
/* The deck lies flat toward the viewer; its front edge stands at its far end. */
.lh-base { top: 0; height: 50cqw; transform-origin: 50% 0; transform: rotateX(90deg); border-radius: 0 0 2.4cqw 2.4cqw; background: var(--deck-bg);
  box-shadow: inset 0 0 0 .4cqw rgb(0 0 0 / .08); }
.lh-keys { position: absolute; left: 7%; right: 7%; top: 9%; height: 46%; border-radius: 1cqw;
  background: repeating-linear-gradient(90deg, var(--key) 0 5.2%, transparent 5.2% 6.6%), repeating-linear-gradient(0deg, transparent 0 4%, var(--deck-flat) 4% 20%);
  background-blend-mode: normal; opacity: .95; }
.lh-pad { position: absolute; left: 36%; width: 28%; top: 62%; height: 28%; border-radius: 1.2cqw; background: rgb(0 0 0 / .1); box-shadow: inset 0 0 0 .3cqw rgb(0 0 0 / .08); }
.lh-edge { top: -1.6cqw; height: 3.2cqw; transform: translateZ(50cqw); border-radius: 0 0 2cqw 2cqw; background: var(--edge-bg); }
/* The lid: hinged at its bottom edge; --lid -90deg closed (front face down on the keyboard), 14deg open (leaning back). */
.lh-lid { bottom: 1.6cqw; height: 50cqw; transform-origin: 50% 100%; transform: rotateX(var(--lid)); transform-style: preserve-3d;
  transition: transform .7s cubic-bezier(.3, 1.25, .45, 1); }
.lh-lid-front, .lh-lid-back { top: 0; height: 100%; backface-visibility: hidden; -webkit-backface-visibility: hidden; border-radius: 2.4cqw 2.4cqw .8cqw .8cqw; }
.lh-lid-front { background: var(--bezel); padding: 3cqw 3cqw 4cqw; }
.lh-screen { display: block; width: 100%; height: 100%; overflow: hidden; background: #000; border-radius: .6cqw; }
.lh-screen img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; filter: brightness(calc(.15 + .85 * var(--glow)));
  transition: filter .5s .15s; }
.lh-lid > .lh-lid-back { transform: rotateX(180deg); background: var(--lid-bg); display: flex; align-items: center; justify-content: center;
  box-shadow: inset 0 0 0 .4cqw rgb(255 255 255 / .12); }
.lh-lid-back img { width: 17cqw; height: auto; opacity: .92; filter: drop-shadow(0 .3cqw .6cqw rgb(0 0 0 / .25)); }
.lh-year[data-period=silver] { --lid-bg: linear-gradient(160deg, #eceef1, #c4c7cc 55%, #b0b3b8); --bezel: #2b2c30; --deck-bg: linear-gradient(#d3d5d9, #bfc2c6);
  --deck-flat: #c9cbcf; --key: #3a3b40; --edge-bg: linear-gradient(#a9acb1, #8e9196); }
.lh-year[data-period=gloss] { --lid-bg: radial-gradient(120% 90% at 30% 10%, #3a3b40, #111214 60%); --bezel: #101113; --deck-bg: linear-gradient(#2a2b30, #1b1c20);
  --deck-flat: #232428; --key: #0b0c0e; --edge-bg: linear-gradient(#26272b, #0d0e10); }
.lh-year[data-period=alu] { --lid-bg: linear-gradient(160deg, #e4e6e9, #c3c6cb 60%, #b7babf); --bezel: #0b0b0c; --deck-bg: linear-gradient(#dfe1e4, #cbced2);
  --deck-flat: #d6d8db; --key: #26272a; --edge-bg: linear-gradient(#c3c6ca, #9da0a5); }
/* Under each laptop: the year. */
.lh-label { display: flex; flex-direction: column; align-items: center; margin-top: 6px; }
.lh-num { font: 650 clamp(15px, 2vw, 18px)/1 var(--display-font); font-variant-numeric: tabular-nums; letter-spacing: -.01em; transition: color .2s; }
.lh-year:hover .lh-num, .lh-year:focus-visible .lh-num { color: var(--fg); }
.lh-year:focus-visible { outline: none; }
.lh-year:focus-visible .lh-num { text-decoration: underline 2px var(--accent); text-underline-offset: 4px; }
/* Dark: the piano-black lids get a rim of light. */
@media (prefers-color-scheme: dark) {
  .lh-year[data-period=gloss] .lh-lid > .lh-lid-back { box-shadow: inset 0 0 0 .5cqw rgb(255 255 255 / .22); }
  .lh-year[data-period=gloss] .lh-base { box-shadow: inset 0 0 0 .4cqw rgb(255 255 255 / .16); }
}
@media (prefers-reduced-motion: reduce) { .lh-lid { transition: none; } }
/* Touch screens: no hover, so the laptops stand open (and get the room an open lid needs). */
@media (hover: none) { .lh-year { --lid: 14deg; --glow: 1; } .lh-lap { height: 82cqw; } .lh-rig { top: 50cqw; } .lh-lap::before { top: 62cqw; } .lh-years { padding-top: 8px; } }

/* The years' heading: a title and a one-line hint. */
.lh-pick { margin-top: 12px; }
.lh-pick-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; margin-bottom: 4px; }
.lh-pick h2 { margin: 0; font: 750 clamp(24px, 3.4vw, 32px)/1.15 var(--display-font); letter-spacing: -.02em; }
.lh-hint { margin: 0; color: var(--muted); font-size: 15px; }
/* A soft shadow on the desk under each laptop. */
.lh-lap::before { content: ""; position: absolute; left: 2cqw; right: 2cqw; top: 29cqw; height: 22cqw; border-radius: 50%;
  background: radial-gradient(closest-side, rgb(0 0 0 / .22), transparent); }
@media (prefers-color-scheme: dark) { .lh-lap::before { background: radial-gradient(closest-side, rgb(0 0 0 / .6), transparent); } }

/* Support: Ko-fi (coral, in every theme) and the other apps as large cards, side by side from 720px. */
.lh-support { margin-top: 64px; }
.lh-support h2 { margin: 0; font: 750 clamp(24px, 3.4vw, 32px)/1.15 var(--display-font); letter-spacing: -.02em; }
/* The header's wordmark inline in the heading (D154): same art, sized so its letters stand as tall as the heading's,
   never split across lines (the heading wraps around it on phones). */
.lh-mark-inline { display: inline-flex; vertical-align: -.12em; font-size: 1.18em; white-space: nowrap; }
.lh-mark-inline .lh-icon { width: .95em; height: .95em; margin-right: .1em; }
.lh-support-lead { margin: 8px 0 22px; color: var(--muted); max-width: 46ch; }
.lh-cards { display: grid; gap: 14px; }
@media (min-width: 720px) { .lh-cards { grid-template-columns: repeat(2, 1fr); gap: 18px; } }
.lh-card {
  display: grid; grid-template-columns: auto 1fr; grid-template-rows: 1fr auto; column-gap: 16px; row-gap: 14px; align-items: start;
  padding: 22px; border-radius: var(--radius); text-decoration: none; color: var(--fg);
  background: var(--card); border: 1px solid var(--card-border); transition: transform .25s cubic-bezier(.2, .7, .2, 1), box-shadow .25s;
}
.lh-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.lh-card-icon { grid-row: 1 / span 2; width: 60px; height: 60px; }
.lh-card-icon svg, .lh-card-icon img { display: block; width: 100%; height: 100%; }
.lh-card-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.lh-card-text small { font: 700 12px/1.2 var(--font); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.lh-card-text b { font: 750 clamp(20px, 2.4vw, 24px)/1.15 var(--display-font); letter-spacing: -.015em; }
.lh-card-text span { color: var(--muted); font-size: 15px; line-height: 1.45; }
.lh-card em {
  justify-self: start; display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 18px; border-radius: var(--pill);
  font: 650 15px/1 var(--font); font-style: normal; background: var(--btn-image), var(--btn-bg); color: var(--btn-fg); border: 1px solid var(--btn-border);
}
.lh-card em::after { content: "\2197"; transition: transform .2s; }
.lh-card:hover em::after { transform: translate(2px, -2px); }
.lh-kofi { background: linear-gradient(135deg, #ff5e5b, #ff8a5b); border-color: transparent; color: #fff; }
.lh-kofi .lh-card-text small, .lh-kofi .lh-card-text span { color: rgb(255 255 255 / .85); }
.lh-kofi .lh-card-icon svg rect { fill: rgb(255 255 255 / .2); }
.lh-kofi em { background: #fff; color: #e2443f; border-color: #fff; }
.lh-discord { background: linear-gradient(135deg, #5865f2, #7983f5); border-color: transparent; color: #fff; }
.lh-discord .lh-card-text small, .lh-discord .lh-card-text span { color: rgb(255 255 255 / .85); }
.lh-discord .lh-card-icon svg rect { fill: rgb(255 255 255 / .2); }
.lh-discord em { background: #fff; color: #4752c4; border-color: #fff; }

.lh-foot { margin-top: 56px; padding-top: 20px; border-top: 1px solid var(--card-border); color: var(--muted); font-size: 13px; }
