/* GFX - the broadcast text-page look (home page and JSFX page). Loaded after site.css on <body class="tt">.
   A 1980s text-service page: page numbers, double-height titles, separated mosaic graphics, four coloured keys. */
body.tt {
  --bg: #050506; --panel: #0d0e12; --panel-2: #14151b; --line: #1d1e25;
  --ink: #f2efe6; --ink-2: #c9c6bd; --ink-3: #8e8b84;
  --cy: #43dce4; --ye: #f0dc4a; --re: #ee5a3e; --gr: #62d870; --bl: #3d5bd8; --ma: #d256c8;
  --accent-2: #f0dc4a;
  --tt: "VT323", "Courier New", monospace;
  --body: "Atkinson Hyperlegible", "Trebuchet MS", "Segoe UI", sans-serif;
  background: var(--bg); color: var(--ink); font: 18px/1.6 var(--body);
}
.tt .crt { position: fixed; inset: 0; pointer-events: none; z-index: 40;
  background: repeating-linear-gradient(0deg, rgba(0,0,0,.08) 0 1px, transparent 1px 3px); }   /* JG 23 Oct: softer */
.tt a { color: var(--ye); }
.tt .glow { text-shadow: 0 0 2px color-mix(in srgb, currentColor 40%, transparent); }   /* JG 23 Oct: less glow */
.tt .w { color: var(--ink); } .tt .y { color: var(--ye); } .tt .c { color: var(--cy); }
.tt .r { color: var(--re); } .tt .g { color: var(--gr); } .tt .m { color: var(--ma); }

/* the page-number row at the top */
.tt .row { font-family: var(--tt); font-size: 30px; line-height: 1; display: flex; flex-wrap: wrap; gap: 6px 28px;
  padding-block: 18px 10px; letter-spacing: .5px; }
.tt .row a { text-decoration: none; }
.tt .row .clock { margin-left: auto; }

.tt .mast { display: block; width: 100%; max-width: 640px; height: auto; image-rendering: pixelated; }   /* JG 23 Oct: smaller */
.tt .mastrow { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; }   /* GFX left, sun right */
.tt .mastrow .mast.gfx { width: min(250px, 39%); }
@media (min-width: 861px) { .tt .mastrow .mast.gfx { width: 430px; height: 112px; } }   /* wider GFX, same height as the sun */
.tt .mastrow .mast.sun { width: min(358px, 56%); aspect-ratio: 224 / 70; height: auto; max-width: none; image-rendering: auto; }
@media (min-width: 861px) { .tt .mastrow .mast.sun { width: calc((100% - 56px) / 2.05); aspect-ratio: auto; height: 112px; } }   /* lines reach the "What is GFX?" column edge */
/* double height, the text-service way */
.tt .dh { font-family: var(--tt); font-weight: 400; font-size: clamp(28px, 4.2vw, 46px); line-height: 1; color: var(--ye);
  transform: scaleY(1.9); transform-origin: top left; margin: 10px 0 calc(clamp(28px, 4.2vw, 46px) * .9 + 26px); }

.tt .grid2 { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: start; }
.tt .grid2 > * { min-width: 0; }
.tt .grid2.opener { margin-top: 18px; }
.tt .grid2.opener .dh { margin-top: 0; }

/* the index: name ........ page */
.tt .idx { font-family: var(--tt); font-size: 34px; line-height: 1.28; }
.tt .idx a { display: flex; gap: 10px; text-decoration: none; }
.tt .idx .n { color: var(--cy); white-space: nowrap; }
.tt .idx .n small { font-size: 24px; color: var(--ink-3); margin-left: 8px; }
.tt .idx .d { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; color: var(--bl); }
.tt .idx .d::after { content: "................................................................................"; }
.tt .idx .p { color: var(--ye); }
.tt .idx a.sub .n { padding-left: 36px; color: var(--ink); }
.tt .idx a.sub .p { color: var(--ink-3); }
.tt .idx a:hover .n, .tt .idx a:focus-visible .n { background: var(--cy); color: var(--bg); text-shadow: none; }
.tt .idx a:focus-visible { outline: none; }

/* a page band: P101 TITLE ..... 1/1 */
.tt .band { font-family: var(--tt); font-size: 30px; line-height: 1.2; background: var(--bl); color: var(--ink);
  padding: 4px 12px; display: flex; justify-content: space-between; gap: 16px; margin: 0 0 18px; white-space: nowrap; overflow: hidden; }
.tt .band.r { background: var(--re); } .tt .band.g { background: #2f8a3c; } .tt .band.m { background: #8c3486; }

.tt .copy p { margin: 0 0 14px; max-width: 62ch; }
.tt .copy p.k { color: var(--cy); }
.tt .copy em { font-style: normal; color: var(--ye); }
.tt .copy a { color: var(--ye); }
.tt .copy .sig { font-family: var(--tt); font-size: 28px; color: var(--ye); }

.tt .ticker { margin-top: 44px; font-family: var(--tt); font-size: 30px; white-space: nowrap; overflow: hidden;
  border-block: 2px solid var(--line); padding-block: 8px; }
.tt .ticker span { display: inline-block; animation: tt-tick 48s linear infinite; }
.tt .ticker b { font-weight: 400; margin-right: 34px; }
@keyframes tt-tick { to { transform: translateX(-50%); } }

/* the four coloured keys */
.tt .fast { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; font-family: var(--tt); font-size: 36px; padding-block: 18px 30px; }
.tt .fast a { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.tt .fast a::before { content: ""; width: 26px; height: 26px; background: currentColor; flex: none; }
.tt .fast a:hover { text-decoration: underline; }

.tt section.pg { padding-block: 34px 10px; }
.tt .keys { display: flex; flex-wrap: wrap; gap: 12px; margin: 6px 0 4px; }
.tt .key { font-family: var(--tt); font-size: 28px; line-height: 1; padding: 10px 16px; text-decoration: none;
  border: 2px solid currentColor; color: var(--ye); background: transparent; cursor: pointer; }
.tt .key:hover { background: var(--ye); color: var(--bg); }
.tt .key.c { color: var(--cy); } .tt .key.c:hover { background: var(--cy); color: var(--bg); }

/* house parts restyled for the page */
.tt .step { background: var(--panel); border: 0; border-left: 4px solid var(--cy); border-radius: 0; }
.tt .step h3 { font-family: var(--tt); font-weight: 400; font-size: 28px; color: var(--cy); }
.tt .step h3::before { border-radius: 0; background: var(--cy); color: var(--bg); font-family: var(--tt); font-size: 22px; }
.tt .step p { color: var(--ink-2); font-size: 16px; }
.tt h3.way { font-family: var(--tt); font-weight: 400; font-size: 30px; color: var(--ye); margin: 26px 0 12px; }
.tt h3.way small { font-family: var(--body); font-size: 15px; color: var(--ink-3); }
.tt code { background: var(--panel-2); color: var(--ink); border-radius: 0; }
.tt .note { color: var(--ink-3); font-size: 15px; max-width: 80ch; }
.tt .rpurl button { border-radius: 0; background: var(--panel-2); color: var(--ink); }
.tt .contact { margin-top: 0; }
.tt .contact input, .tt .contact select, .tt .contact textarea { border-radius: 0; background: var(--panel); color: var(--ink); border-color: var(--line); }
.tt .contact .btn.primary { border-radius: 0; background: var(--ye); border-color: var(--ye); color: var(--bg); font-family: var(--tt); font-size: 26px; font-weight: 400; padding: 6px 22px; }
.tt .small { color: var(--ink-3); font-size: 15px; }
.tt .thanks { border-radius: 0; border-left-color: var(--ye); background: var(--panel); }
.tt footer { border-top: 2px solid var(--line); color: var(--ink-3); }

@media (max-width: 860px) {
  .tt .grid2 { grid-template-columns: 1fr; gap: 34px; }
  .tt .fast { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .tt .row { font-size: 24px; } .tt .idx { font-size: 27px; } .tt .idx a.sub .n { padding-left: 20px; }
  .tt .fast { font-size: 30px; } .tt .band { font-size: 24px; }
}
@media (prefers-reduced-motion: reduce) { .tt .ticker span { animation: none; } }
@media (max-width: 700px) {
  .tt .dh { transform: none; font-size: 42px; line-height: 1.02; margin: 12px 0 26px; }
}
.tt footer { padding-bottom: 104px; }   /* room for the floating Ko-fi button, bottom left */
/* the poodle and gramophone: a small mark at the right of every footer */
.tt footer .pood { float: right; display: flex; flex-direction: column; align-items: center; gap: 6px; margin: 0 0 12px 24px; opacity: .9; }
.tt footer .pood img { width: auto; height: 64px; }
.tt footer .pood small { font: 400 13px/1 "American Typewriter", "Courier Prime", "Courier New", Courier, monospace; letter-spacing: 2.5px; color: #f2efe6; }
/* the panel crawl under the quick keys: every plug-in panel scrolling slowly left; hover pauses it */
.tt .crawl { overflow: hidden; margin: 4px 0 26px; border-block: 2px solid var(--line); padding-block: 14px 10px; }
.tt .crawl-track { display: flex; gap: 18px; width: max-content; animation: tt-tick 600s linear infinite; }
.tt .crawl:hover .crawl-track { animation-play-state: paused; }
.tt .crawl a { display: flex; flex-direction: column; align-items: center; gap: 6px; text-decoration: none; flex: none; }
.tt .crawl img { height: 120px; width: auto; display: block; background: #000; }
.tt .crawl span { font: 400 22px/1 var(--tt); color: var(--ink-2); white-space: nowrap; }
.tt .crawl a:hover span { color: var(--ye); }
@media (max-width: 520px) { .tt .crawl img { height: 90px; } .tt .crawl span { font-size: 20px; } }
@media (prefers-reduced-motion: reduce) { .tt .crawl { overflow-x: auto; } .tt .crawl-track { animation: none; } }
/* home: the index spreads down so its last line (Contact) sits level with the JGWizrad signature (JG 23 Oct) */
@media (min-width: 861px) {
  .tt .grid2.opener { align-items: stretch; }
  .tt .grid2.opener > div:first-child { display: flex; flex-direction: column; }
  .tt .grid2.opener .idx { flex: 1; display: flex; flex-direction: column; justify-content: space-between; }
  .tt .grid2.opener .copy > :last-child { margin-bottom: 0; }
}
