@font-face { font-family: "xkcd Script"; src: url("xkcd-script.ttf") format("truetype"); font-display: swap; }

/* the e-ink look; zen.css themes remap --bg/--text/--accent like on the other zjt.im sites */
:root { --bg: #f4f1ea; --card: #fbfaf6; --text: #1e1e1c; --muted: #6b6860; --line: #1e1e1c; --accent: #1e1e1c; --hand: "xkcd Script", "Comic Neue", "Comic Sans MS", system-ui, sans-serif; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --bg: #1b1b19; --card: #232321; --text: #ecebe6; --muted: #a29f96; --line: #ecebe6; --accent: #ecebe6; }
}
:root[data-theme="dark"] { --bg: #1b1b19; --card: #232321; --text: #ecebe6; --muted: #a29f96; --line: #ecebe6; --accent: #ecebe6; }

* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); }
body { font: 18px/1.4 var(--hand); }
main { max-width: 720px; margin: 0 auto; padding: 16px 16px 40px; }
a { color: inherit; }
.small { font-size: 15px; color: var(--muted); }

.top { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap;
  padding-bottom: 12px; border-bottom: 3px solid var(--line); border-radius: 0 0 2px 6px / 0 0 6px 2px; }
.date { font-size: clamp(20px, 5vw, 28px); text-transform: uppercase; letter-spacing: .02em; }
.clock { font-size: clamp(84px, 24vw, 150px); line-height: .9; font-variant-numeric: tabular-nums; }
.weather { display: flex; align-items: center; gap: 10px; }
.weather svg { width: clamp(64px, 16vw, 92px); height: clamp(64px, 16vw, 92px); stroke: var(--text); fill: none; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.temp { font-size: clamp(48px, 13vw, 76px); line-height: 1; }
.deg { font-size: .55em; vertical-align: top; }
.sky { font-size: 20px; }

.comic { margin: 20px 0; }
.ctitle { font-size: 22px; font-weight: normal; margin: 0 0 8px; }
figure { margin: 0; background: var(--card); border: 2px solid var(--line); border-radius: 10px 4px 9px 5px / 5px 9px 4px 10px; padding: 12px; }
figure img { display: block; max-width: 100%; height: auto; margin: 0 auto; min-height: 120px; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) figure img { filter: invert(.92) hue-rotate(180deg); } }
:root[data-theme="dark"] figure img { filter: invert(.92) hue-rotate(180deg); }
.alt { margin-top: 12px; font-size: 16px; color: var(--muted); text-align: center; }
.buttons { display: flex; gap: 10px; justify-content: center; margin-top: 12px; }
button { font: inherit; font-size: 17px; color: var(--text); background: var(--card); border: 2px solid var(--line);
  border-radius: 9px 4px 8px 5px / 5px 8px 4px 9px; padding: 6px 16px; cursor: pointer; }
button:hover { transform: rotate(-1deg); }
button:focus-visible, a:focus-visible { outline: 3px dashed var(--accent); outline-offset: 3px; }

.strip { display: flex; align-items: center; gap: 14px; padding-top: 14px; border-top: 3px solid var(--line); border-radius: 6px 2px 0 0 / 2px 6px 0 0; }
.art { width: 88px; height: 88px; object-fit: cover; border: 2px solid var(--line); border-radius: 6px; background: var(--card); flex: none; }
.art[src=""], .art:not([src]) { visibility: hidden; }
.np { flex: 1; min-width: 0; }
.song { font-size: 26px; line-height: 1.15; overflow-wrap: anywhere; }
.artist { font-size: 19px; }
.kexp { font: 800 22px/1 system-ui, sans-serif; letter-spacing: .04em; text-decoration: none; border: 3px solid var(--line); padding: 6px 8px; flex: none; }

footer { margin-top: 28px; font-size: 16px; }
footer p { margin: 0 0 10px; }
@media (max-width: 420px) { .art { width: 64px; height: 64px; } .song { font-size: 22px; } .kexp { display: none; } }
@media (prefers-reduced-motion: reduce) { button:hover { transform: none; } }
