saturn
- 187 commits
- 2 branches
- 0 tags
- updated
- CI 2/2
global.css
56.9 KB · 3072 lines
1/*============================*/23/* josh comeau css reset */4/* https://www.joshwcomeau.com/css/custom-css-reset/*/5/*============================*/67*,8*::before,9*::after {10 box-sizing: border-box;11}1213* {14 margin: 0;15}1617@media (prefers-reduced-motion: no-preference) {18 html {19 interpolate-size: allow-keywords;20 }21}2223body {24 line-height: 1.5;25 -webkit-font-smoothing: antialiased;26}2728img,29picture,30video,31canvas,32svg {33 display: block;34 max-width: 100%;35}3637input,38button,39textarea,40select {41 font: inherit;42}4344p,45h1,46h2,47h3,48h4,49h5,50h6 {51 overflow-wrap: break-word;52}5354@media (min-width: 769px) {55 p {56 text-wrap: pretty;57 }58}5960h1,61h2,62h3,63h4,64h5,65h6 {66 text-wrap: balance;67}6869/*============================*/70/* fonts - geist pixel square (one weight, no italic), geist mono */71/*============================*/7273/* the weight range stops the browser faking bold */74@font-face {75 font-family: "Geist Pixel";76 src: url("./assets/fonts/geistpixel/GeistPixel-Square.woff2")77 format("woff2");78 font-weight: 100 900;79 font-style: normal;80 font-display: swap;81}8283/* geist mono, code blocks only: pixel type is proportional, so columns drift */84@font-face {85 font-family: "Geist Mono";86 src: url("./assets/fonts/geistmono/GeistMono-Regular.woff2") format("woff2");87 font-weight: 400;88 font-style: normal;89 font-display: swap;90}9192@font-face {93 font-family: "Geist Mono";94 src: url("./assets/fonts/geistmono/GeistMono-Italic.woff2") format("woff2");95 font-weight: 400;96 font-style: italic;97 font-display: swap;98}99100/*============================*/101/* tokens */102/*============================*/103104html {105 height: 100%;106 font-size: 16px;107 scrollbar-gutter: stable;108 color-scheme: dark;109110 /* moss: flexoki greens and base greys, stephango.com/flexoki (MIT) */111 --background-dark: #1a1e0c;112 --surface: #252d09;113 --borders: #313d07;114 --text-headings: #f2f0e5;115 --text-body: #dad8ce;116 --text-secondary: #9f9d96;117 --accent: #a0af54;118 --accent-muted: #536907;119120 /* rating scale (out of 5, half steps allowed) */121 --rating-terrible: #e86b6b;122 --rating-below-average: #d9a441;123 --rating-good: #bdbd7f;124 --rating-above-average: #a9c94f;125 --rating-great: #7ec98f;126127 /* syntax: same roles as the zed, helix and warp themes */128 --syn-fg: #c2c4ba;129 --syn-punct: #a2a49b;130 --syn-comment: #909585;131 --syn-keyword: #ad9be2;132 --syn-function: #6fb1d7;133 --syn-builtin: #7ac4ad;134 --syn-type: #ddc56c;135 --syn-variable: #e0775d;136 --syn-constant: #e7a86e;137 --syn-string: #a9b767;138}139140/* other palettes, picked by theme.js; moss is the no-js default */141[data-theme="ink"] {142 --background-dark: #101a24;143 --surface: #12253b;144 --borders: #133051;145 --accent: #66a0c8;146 --accent-muted: #1a4f8c;147148 /* syntax */149 --syn-fg: #bdc3ca;150 --syn-punct: #9ea4aa;151 --syn-comment: #838d98;152 --syn-keyword: #a79eec;153 --syn-function: #6fb2df;154 --syn-builtin: #73c6be;155 --syn-type: #dbc777;156 --syn-variable: #e0796e;157 --syn-constant: #eaa77c;158 --syn-string: #a2ba75;159}160161[data-theme="wine"] {162 --background-dark: #24131d;163 --surface: #39172b;164 --borders: #4f1b39;165 --accent: #e47da8;166 --accent-muted: #87285e;167168 /* syntax */169 --syn-fg: #cabfc4;170 --syn-punct: #a9a0a5;171 --syn-comment: #978790;172 --syn-keyword: #b896e2;173 --syn-function: #75afdd;174 --syn-builtin: #77c4b6;175 --syn-type: #ebbe6e;176 --syn-variable: #e57268;177 --syn-constant: #f0a17b;178 --syn-string: #b3b365;179}180181[data-theme="plum"] {182 --background-dark: #1a1623;183 --surface: #261c39;184 --borders: #31234e;185 --accent: #a699d0;186 --accent-muted: #4f3685;187188 /* syntax */189 --syn-fg: #c3c1cb;190 --syn-punct: #a4a1aa;191 --syn-comment: #8c8897;192 --syn-keyword: #b19ee7;193 --syn-function: #7db1de;194 --syn-builtin: #7fc5c2;195 --syn-type: #e4c584;196 --syn-variable: #de7c7b;197 --syn-constant: #eba78c;198 --syn-string: #adb87b;199}200201[data-theme="teal"] {202 --background-dark: #101f1d;203 --surface: #122f2c;204 --borders: #143f3c;205 --accent: #5abdac;206 --accent-muted: #1c6c66;207208 /* syntax */209 --syn-fg: #bac5c4;210 --syn-punct: #9ca5a4;211 --syn-comment: #859794;212 --syn-keyword: #a59ee7;213 --syn-function: #6bb1da;214 --syn-builtin: #73c5b5;215 --syn-type: #d6c872;216 --syn-variable: #de7965;217 --syn-constant: #e5a873;218 --syn-string: #9fb970;219}220221[data-theme="flexoki"] {222 --background-dark: #100f0f;223 --surface: #1c1b1a;224 --borders: #282726;225 --accent: #e8705f;226 --accent-muted: #575653;227228 /* syntax */229 --syn-fg: #c6c2bb;230 --syn-punct: #a6a29d;231 --syn-comment: #8a847a;232 --syn-keyword: #af98ec;233 --syn-function: #69b1e0;234 --syn-builtin: #6dc6b5;235 --syn-type: #e3c363;236 --syn-variable: #e8705f;237 --syn-constant: #f0a26d;238 --syn-string: #a9b761;239}240241/*============================*/242/* base - elements */243/*============================*/244245body {246 max-width: 78ch;247 min-height: 100vh;248 min-height: 100svh;249250 display: flex;251 flex-direction: column;252253 margin: 0 auto;254 padding: min(3rem, 8vw) min(2rem, 5vw);255 font-family:256 "Geist Pixel", ui-monospace, "SF Mono", Menlo, Consolas,257 "Liberation Mono", "Courier New", monospace;258 color: var(--text-body);259 background-color: var(--background-dark);260}261262::selection {263 background: var(--accent);264 color: var(--background-dark);265}266267h1 {268 font-size: 1.75rem;269 color: var(--text-headings);270 margin: 0 0 0.3rem 0;271 line-height: 1.2;272}273274h2 {275 font-size: 1.35rem;276 color: var(--text-headings);277 margin: 3rem 0 0.6rem 0;278}279280h3 {281 font-size: 1.125rem;282 color: var(--text-headings);283 margin: 2.25rem 0 0.5rem 0;284}285286/* small label, same as the post kicker */287h4 {288 font-size: 0.78rem;289 color: var(--text-secondary);290 margin: 1.5rem 0 0.5rem 0;291 letter-spacing: 0.12em;292}293294p {295 margin: 0 0 1.2rem 0;296 color: var(--text-body);297}298299p,300ul,301ol {302 font-size: 0.9375rem;303}304305p,306li {307 line-height: 1.65;308}309310a {311 color: var(--text-headings);312 text-decoration: none;313 transition:314 border-color 0.15s ease,315 color 0.15s ease;316}317318/* text links; classed links are components and style themselves */319:where(p, li, td, dd, blockquote, figcaption) > a:not([class]) {320 border-bottom: 1px solid var(--accent-muted);321}322323:where(p, li, td, dd, blockquote, figcaption) > a:not([class]):hover {324 color: var(--accent);325 border-bottom-color: var(--accent);326}327328blockquote {329 margin: 1.75rem 0;330 padding-left: 1.2rem;331 border-left: 3px solid var(--accent-muted);332 color: var(--text-secondary);333 font-style: italic;334}335336img {337 width: 100%;338 height: auto;339 border: 1px solid var(--borders);340 border-radius: 2px;341}342343figcaption {344 font-size: 0.85rem;345 color: var(--text-secondary);346 margin-top: 0.6rem;347}348349code {350 font-family:351 "Geist Pixel", ui-monospace, "SF Mono", Menlo, Consolas,352 "Liberation Mono", "Courier New", monospace;353 font-size: 0.9rem;354 color: var(--text-headings);355 background: var(--surface);356 padding: 0.2rem 0.4rem;357 border-radius: 4px;358 border: 1px solid var(--borders);359}360361pre {362 margin: 2rem 0;363 padding: 1.25rem;364 background: var(--surface);365 border: 1px solid var(--borders);366 border-radius: 6px;367 overflow-x: auto;368 tab-size: 4;369 scrollbar-color: var(--borders) transparent;370}371372pre code {373 background: none;374 padding: 0;375 display: block;376 font-family:377 "Geist Mono", ui-monospace, "SF Mono", Menlo, Consolas,378 "Liberation Mono", monospace;379 color: var(--syn-fg);380 font-size: 0.84rem;381 font-synthesis: none;382 border: none;383 box-shadow: none;384 line-height: 1.5;385}386387/* syntax roles, set by scripts/highlight.mjs */388.hl-comment {389 color: var(--syn-comment);390 font-style: italic;391}392393.hl-keyword {394 color: var(--syn-keyword);395}396397.hl-function,398.hl-link {399 color: var(--syn-function);400}401402.hl-builtin,403.hl-escape {404 color: var(--syn-builtin);405}406407.hl-type,408.hl-self,409.hl-changed {410 color: var(--syn-type);411}412413.hl-variable,414.hl-heading,415.hl-removed {416 color: var(--syn-variable);417}418419.hl-constant {420 color: var(--syn-constant);421}422423.hl-string,424.hl-added {425 color: var(--syn-string);426}427428.hl-punct {429 color: var(--syn-punct);430}431432figure {433 margin: 1.5rem 0;434}435436ul,437ol {438 margin: 0 0 1.2rem 1.5rem;439 padding: 0;440}441442li {443 margin: 0.35rem 0;444 display: list-item;445}446447hr {448 border: 0;449 height: 1px;450 background: var(--borders);451 margin-top: 1rem;452 margin-bottom: 1rem;453 width: 100%;454}455456/*============================*/457/* base - focus */458/*============================*/459460/* Focus visible for keyboard navigation */461a:focus-visible,462button:focus-visible {463 outline: 2px solid var(--accent);464 outline-offset: 2px;465 border-radius: 2px;466}467468/* Remove default focus for mouse users */469a:focus:not(:focus-visible) {470 outline: none;471}472473/*============================*/474/* layout - page width */475/*============================*/476477/* wider layout for photo and media walls */478body.page--wide {479 max-width: min(100rem, 94vw);480}481482@media (max-width: 480px) {483 body.page--wide {484 max-width: 100%;485 }486}487488/*============================*/489/* layout - site header */490/*============================*/491492.site-header {493 display: flex;494 flex-wrap: wrap;495 align-items: baseline;496 justify-content: space-between;497 gap: 0.5rem 1.5rem;498 padding: 0.5rem 0.5rem 0.75rem;499 margin-bottom: 2rem;500}501502.site-name {503 color: var(--text-body);504 font-size: 30px;505}506507.site-name:hover {508 color: var(--accent);509}510511@media (max-width: 600px) {512 .site-header {513 flex-direction: column;514 align-items: flex-start;515 gap: 0.75rem;516 margin-bottom: 1rem;517 }518519 .site-name {520 font-size: 26px;521 }522523 /* one row */524 .site-header nav {525 width: 100%;526 justify-content: space-between;527 }528}529530/*============================*/531/* layout - main, footer, nav */532/*============================*/533534main {535 flex: 1;536 padding: 0.5rem;537}538539footer {540 margin-top: 3rem;541 padding: 0.5rem;542}543544/* quieter than the header nav: grey until hovered */545footer nav {546 font-size: 0.8rem;547 letter-spacing: 0.08em;548}549550footer nav a {551 color: var(--text-secondary);552}553554/* theme.js shows it; without js it would do nothing */555.theme-button {556 display: none;557 padding: 0;558 border: 0;559 background: none;560 color: var(--text-secondary);561 letter-spacing: inherit;562 cursor: pointer;563 align-self: flex-start;564}565566[data-theme] .theme-button {567 display: inline;568}569570footer nav p {571 color: var(--accent-muted);572}573574@media (max-width: 600px) {575 footer nav p,576 footer nav a[href="/pgp.asc"] {577 display: none;578 }579}580581@media (max-width: 480px) {582 footer nav a[href="/changelog/"] {583 display: none;584 }585}586587nav {588 display: flex;589 flex-wrap: wrap;590 gap: 0.35rem 1.25rem;591 font-size: 0.88rem;592}593594.site-header nav a {595 color: var(--text-body);596}597598.site-header nav a[aria-current="page"] {599 color: var(--accent);600}601602.site-header nav a,603footer nav a,604.theme-button {605 border-bottom: 1px solid transparent;606607 transition:608 color 220ms ease 60ms,609 border-bottom-color 220ms ease 60ms;610}611612.site-header nav a:hover,613footer nav a:hover,614.theme-button:hover {615 color: var(--accent);616 border-bottom-color: var(--accent);617}618619nav p {620 margin: 0 0.5rem 0 0;621}622623/*============================*/624/* responsive - small screens (768px, then 480px) */625/*============================*/626627@media (max-width: 768px) {628 body {629 padding: min(2.5rem, 7vw) min(1.75rem, 4vw);630 }631632 h1 {633 font-size: 1.6rem;634 }635}636637@media (max-width: 480px) {638 body {639 padding: min(2rem, 6vw) 1rem;640 }641642 .site-header,643 main,644 footer {645 padding-inline: 0;646 }647648 h1 {649 font-size: 1.5rem;650 }651652 h2 {653 font-size: 1.2rem;654 margin-top: 1.75rem;655 padding-top: 1rem;656 }657658 h3 {659 font-size: 1.05rem;660 margin-top: 1.75rem;661 }662663 nav {664 gap: 0.25rem 0.75rem;665 }666667 pre {668 padding: 1rem;669 margin: 1.5rem -0.5rem;670 border-radius: 4px;671 }672673 pre code {674 font-size: 0.8rem;675 }676}677678/*============================*/679/* components - page header */680/*============================*/681682.page-header {683 margin-bottom: 2.75rem;684}685686.page-header h1 {687 line-height: 1.4;688}689690.page-header .meta {691 font-size: 0.88rem;692}693694/* the home hero is the one heading in the accent */695.page-header--home h1 {696 color: var(--accent);697}698699/* posts: kicker, title, date */700.page-header-kicker {701 margin: 0 0 0.5rem;702 font-size: 0.78rem;703 letter-spacing: 0.12em;704 text-transform: uppercase;705 color: var(--text-secondary);706}707708.page-header--post h1 {709 font-size: 1.6rem;710 line-height: 1.3;711 margin-bottom: 0.6rem;712}713714.page-header--post .meta {715 margin: 0;716 font-size: 0.8rem;717 letter-spacing: 0.06em;718}719720/* a section page (/books/, /posts/, ...): the kicker is its parent and links721 back up, and the meta is a sentence about the page, not a date */722.page-header-kicker a {723 color: var(--text-secondary);724 border-bottom: 1px solid var(--accent-muted);725 transition:726 color 150ms ease,727 border-bottom-color 150ms ease;728}729730.page-header-kicker a:hover {731 color: var(--accent);732 border-bottom-color: var(--accent);733}734735.page-header--post .meta:not(.caps) {736 font-size: 0.88rem;737 letter-spacing: normal;738 line-height: 1.6;739}740741/* posts: optional banner photo above the header */742.post-banner {743 display: block;744 aspect-ratio: 2 / 1;745 margin-bottom: 2rem;746}747748.post-banner img {749 display: block;750 width: 100%;751 height: 100%;752 object-fit: cover;753}754755/* crop focus: centre by default. on the banner, or on one photo in a row */756.post-banner--high img,757.post-banner img.post-banner--high {758 object-position: 50% 30%;759}760761.post-banner--low img,762.post-banner img.post-banner--low {763 object-position: 50% 70%;764}765766.post-banner--left img,767.post-banner img.post-banner--left {768 object-position: 30% 50%;769}770771.post-banner--right img,772.post-banner img.post-banner--right {773 object-position: 70% 50%;774}775776/* several photos side by side; phones keep the middle one */777.post-banner--row {778 display: flex;779 gap: 1px;780 background: var(--borders);781}782783.post-banner--row img {784 flex: 1;785 min-width: 0;786}787788@media (max-width: 600px) {789 .post-banner--row img:not(:nth-child(2)) {790 display: none;791 }792}793794@media (max-width: 480px) {795 .post-banner {796 aspect-ratio: 4 / 3;797 }798}799800/*============================*/801/* components - meta line */802/*============================*/803804.meta {805 font-size: 0.85rem;806 color: var(--text-secondary);807 margin-top: 0.4rem;808 margin-bottom: 1.25rem;809}810811.meta-split {812 display: flex;813 flex-wrap: wrap;814 align-items: baseline;815 gap: 0.2rem 0.6rem;816}817818.meta-sep {819 opacity: 0.6;820}821822@media (max-width: 600px) {823 .meta-split {824 flex-direction: column;825 gap: 0.15rem;826 }827828 .meta-sep {829 display: none;830 }831}832833/*============================*/834/* components - breadcrumb */835/*============================*/836837.breadcrumb {838 font-size: 0.9rem;839 color: var(--text-secondary);840 margin-bottom: 1.5rem;841 display: block;842}843844.breadcrumb a {845 color: var(--text-secondary);846 border-bottom: 1px solid var(--accent-muted);847}848849.breadcrumb a:hover {850 color: var(--accent);851}852853/*============================*/854/* components - section label */855/*============================*/856857.section-label {858 font-size: 0.78rem;859 letter-spacing: 0.12em;860 text-transform: uppercase;861 color: var(--text-secondary);862 margin: 2.5rem 0 0.75rem 0;863 padding: 0;864}865866/*============================*/867/* components - likes + comments */868/*============================*/869870/* written in by social/functions/_middleware.js */871.post-social {872 margin-top: 3rem;873 padding-top: 1.25rem;874 border-top: 1px dashed var(--borders);875}876877.post-social > .meta {878 margin: 0;879}880881.social-head {882 display: flex;883 justify-content: space-between;884 align-items: center;885 gap: 1rem;886 margin-bottom: 0.5rem;887}888889.social-title {890 margin: 0;891 font-size: 0.78rem;892 letter-spacing: 0.12em;893 color: var(--text-secondary);894}895896.comment-thread {897 list-style: none;898 margin: 0;899 padding: 0;900}901902.comment-thread li {903 margin: 0;904}905906/* replies: one level, on a rule */907.comment-thread .comment-thread {908 margin-top: 0.25rem;909 padding-left: 1rem;910 border-left: 1px solid var(--borders);911}912913.comment {914 padding: 1rem 0;915}916917.comment .meta {918 display: flex;919 flex-wrap: wrap;920 gap: 0.25rem 0.75rem;921 margin: 0 0 0.5rem;922 font-size: 0.78rem;923 letter-spacing: 0.04em;924}925926.comment-name {927 color: var(--text-headings);928}929930.comment-author {931 padding: 0 0.35rem;932 border: 1px solid var(--borders);933 font-size: 0.7rem;934 letter-spacing: 0.08em;935 color: var(--accent);936}937938.comment-time,939.comment-link {940 color: var(--text-secondary);941 transition: color 150ms ease;942}943944.comment-time:hover,945.comment-link:hover {946 color: var(--accent);947}948949.comment-body p {950 margin: 0 0 0.5rem;951}952953.comment-link {954 font-size: 0.75rem;955 letter-spacing: 0.08em;956}957958.social-foot {959 display: flex;960 flex-wrap: wrap;961 justify-content: space-between;962 align-items: baseline;963 gap: 0.5rem 1rem;964 margin-top: 1.5rem;965}966967.social-foot .meta {968 margin: 0;969 font-size: 0.8rem;970}971972.like-form {973 margin: 0;974}975976.like-button {977 display: inline-flex;978 align-items: center;979 gap: 0.4rem;980 min-height: 2.25rem;981 padding: 0 0.85rem;982 border: 1px solid var(--borders);983 background: none;984 color: var(--text-secondary);985 font-size: 0.85rem;986 letter-spacing: 0.06em;987 cursor: pointer;988 transition:989 color 150ms ease,990 border-color 150ms ease;991}992993.like-button:hover {994 color: var(--accent);995 border-color: var(--accent);996}997998/* already liked today */999.like-button:disabled {1000 color: var(--accent);1001 border-color: var(--borders);1002 cursor: default;1003}10041005.like-icon {1006 width: 0.95em;1007 height: 0.95em;1008 fill: none;1009 stroke: currentColor;1010 stroke-width: 2;1011 stroke-linejoin: round;1012}10131014.like-button:disabled .like-icon {1015 fill: currentColor;1016}10171018/* /api/moderate */1019.moderate-actions {1020 display: flex;1021 gap: 0.75rem;1022}10231024/*============================*/1025/* components - pager */1026/*============================*/10271028.pager {1029 display: grid;1030 grid-template-columns: 1fr 1fr;1031 gap: 1rem;1032 margin-top: 3.5rem;1033}10341035.pager-link {1036 display: flex;1037 flex-direction: column;1038 gap: 0.3rem;1039 padding: 1rem 1.25rem;1040 border: 1px solid var(--borders);1041 transition: border-color 150ms ease;1042}10431044.pager-link:hover {1045 border-color: var(--accent);1046}10471048.pager-next {1049 grid-column: 2;1050 text-align: right;1051}10521053.pager-label {1054 font-size: 0.75rem;1055 letter-spacing: 0.1em;1056 text-transform: uppercase;1057 color: var(--text-secondary);1058 transition: color 150ms ease;1059}10601061.pager-title {1062 font-size: 0.95rem;1063 line-height: 1.35;1064 color: var(--text-headings);1065 transition: color 150ms ease;1066}10671068.pager-link:hover .pager-label,1069.pager-link:hover .pager-title {1070 color: var(--accent);1071}10721073@media (max-width: 600px) {1074 .pager {1075 grid-template-columns: 1fr;1076 gap: 0.75rem;1077 }10781079 .pager-link {1080 padding: 1rem;1081 }10821083 .pager-next {1084 grid-column: auto;1085 }1086}10871088/*============================*/1089/* components - cards */1090/*============================*/10911092.card-grid {1093 display: flex;1094 flex-wrap: wrap;1095 gap: 0.75rem;1096}10971098.card {1099 box-sizing: border-box;1100 flex: 1 1 calc(50% - 0.4rem);1101 min-width: 11rem;1102 display: flex;1103 flex-direction: column;1104 gap: 0.35rem;1105 padding: 0.875rem 1rem;1106 border-radius: 10px;1107 border: 1px solid var(--borders);1108 background: var(--background-dark);1109 cursor: pointer;1110 transition: border-color 150ms ease;1111}11121113.card p {1114 margin: 0;1115 padding: 0;1116}11171118.card:hover {1119 border-color: var(--accent);1120}11211122.card-title {1123 color: var(--text-headings);1124 font-size: 0.95rem;1125 line-height: 1.2;1126}11271128.card-desc {1129 color: var(--text-secondary);1130 font-size: 0.78rem;1131 line-height: 1.4;1132}11331134.card:hover .card-title,1135.card:hover .card-type {1136 color: var(--accent);1137}11381139.card-type {1140 font-size: 0.75rem;1141 letter-spacing: 0.1em;1142 color: var(--text-secondary);1143}11441145/* muted "view all" variant: a centred bar under the grid */1146.card--more {1147 border-style: dashed;1148 opacity: 0.65;1149 justify-content: center;1150 align-items: center;1151 padding-block: 1.1rem;1152}11531154.card--more:hover {1155 opacity: 1;1156}11571158.card:focus-visible {1159 outline: 2px solid var(--accent);1160 outline-offset: 4px;1161 transform: scale(1.03);1162}11631164/*============================*/1165/* components - pills */1166/*============================*/11671168.pills {1169 display: flex;1170 flex-wrap: wrap;1171 gap: 0.4rem;1172 margin-top: 0.6rem;1173}11741175.pill {1176 display: inline-flex;1177 align-items: center;1178 gap: 0.45rem;1179 padding: 0.2rem 0.6rem;1180 border: 1px solid var(--borders);1181 border-radius: 999px;1182 font-size: 0.68rem;1183 letter-spacing: 0.08em;1184 line-height: 1.4;1185 color: var(--text-secondary);1186 white-space: nowrap;1187}11881189/* in development: a slow pulsing dot (reduced motion stops it).1190 switched off for now; uncomment to bring it back */1191/*1192.pill--dev::before {1193 content: "";1194 width: 0.4rem;1195 height: 0.4rem;1196 border-radius: 50%;1197 background: currentColor;1198 animation: pill-pulse 2.4s ease-in-out infinite;1199}12001201@keyframes pill-pulse {1202 50% {1203 opacity: 0.25;1204 }1205}1206*/12071208/*============================*/1209/* components - table */1210/*============================*/12111212.table {1213 width: 100%;1214 border-collapse: collapse;1215 font-size: 0.88rem;1216 margin-top: 0.5rem;1217}12181219/* column headers */1220.table thead th {1221 text-align: left;1222 font-size: 0.75rem;1223 letter-spacing: 0.12em;1224 text-transform: uppercase;1225 color: var(--text-secondary);1226 padding: 0 1rem 0.6rem 0;1227 border-bottom: 1px solid var(--borders);1228}12291230.table thead th.table-col-date {1231 width: 7rem;1232}12331234.table thead th.table-col-tag {1235 width: 5.5rem;1236}12371238.table thead th.table-col-rating {1239 width: 5rem;1240}12411242.table thead th.table-col-label {1243 width: 11rem;1244}12451246.table thead th.table-col-desc {1247 width: 45%;1248}12491250/* rows */1251.table-row td {1252 padding: 0.75rem 1rem 0.75rem 0;1253 vertical-align: baseline;1254 border-bottom: 1px solid var(--borders);1255}12561257.table-row:first-child td {1258 border-top: 1px solid var(--borders);1259}12601261.table-row:last-child td {1262 border-bottom: none;1263}12641265.table-row:hover {1266 background: var(--surface);1267 cursor: pointer;1268}12691270/* title link */1271.table-title {1272 color: var(--text-headings);1273 font-size: 0.9rem;1274}12751276.table-title:hover {1277 color: var(--accent);1278}12791280.table-row:hover .table-title {1281 color: var(--accent);1282}12831284/* date column */1285.table-date {1286 color: var(--text-secondary);1287 font-size: 0.82rem;1288 white-space: nowrap;1289}12901291/* tag column */1292.table-tag {1293 color: var(--text-secondary);1294 font-size: 0.82rem;1295 white-space: nowrap;1296}12971298/* description column */1299.table-desc {1300 color: var(--text-secondary);1301 font-size: 0.82rem;1302}13031304/* mobile: stack title above date + tag */1305@media (max-width: 600px) {1306 .table,1307 .table thead,1308 .table tbody {1309 display: block;1310 }13111312 .table thead {1313 display: none;1314 }13151316 .table-row {1317 display: flex;1318 flex-wrap: wrap;1319 align-items: baseline;1320 gap: 0 0.75rem;1321 padding: 0.7rem 0;1322 border-bottom: 1px solid var(--borders);1323 }13241325 .table-row:first-child {1326 border-top: 1px solid var(--borders);1327 }13281329 .table-row:last-child {1330 border-bottom: none;1331 }13321333 .table .table-row td,1334 .table .table-row:first-child td,1335 .table .table-row:last-child td {1336 display: block;1337 border-bottom: none;1338 border-top: none;1339 padding: 0;1340 }13411342 .table-row td:first-child {1343 flex: 0 0 100%;1344 margin-bottom: 0.25rem;1345 }13461347 .table-date,1348 .table-tag,1349 .table-desc {1350 font-size: 0.78rem;1351 }1352}13531354/*============================*/1355/* components - archive list */1356/*============================*/13571358/* /blog/'s index: one line per entry, title . . . . tag date. no header row1359 and no rules; the dotted leader carries the eye to the date */1360.archive {1361 list-style: none;1362 margin: 0;1363 padding: 0;1364}13651366.archive li {1367 margin: 0;1368}13691370.archive-row {1371 display: flex;1372 align-items: baseline;1373 align-items: last baseline;1374 gap: 0 0.75rem;1375 padding: 0.45rem 0;1376 color: var(--text-secondary);1377}13781379/* the leader: an empty flex item whose dotted bottom border sits on the1380 baseline, under the last line of a wrapped title */1381.archive-row::after {1382 content: "";1383 order: 1;1384 flex: 1 1 2rem;1385 min-width: 2rem;1386 border-bottom: 1px dotted var(--borders);1387 transition: border-color 150ms ease;1388}13891390.archive-title {1391 order: 0;1392 color: var(--text-headings);1393 font-size: 0.9rem;1394 line-height: 1.45;1395 transition: color 150ms ease;1396}13971398.archive-tag,1399.archive-date {1400 flex: none;1401 font-size: 0.75rem;1402 letter-spacing: 0.08em;1403 white-space: nowrap;1404}14051406/* fixed width so the dates line up whatever the tag; the widest1407 (#projects) is ~11.1ch in the pixel font's caps */1408.archive-tag {1409 order: 2;1410 width: 11.5ch;1411}14121413.archive-date {1414 order: 3;1415 font-variant-numeric: tabular-nums;1416}14171418.archive-row:hover .archive-title {1419 color: var(--accent);1420}14211422.archive-row:hover::after {1423 border-bottom-color: var(--text-secondary);1424}14251426/* writing, then notes */1427.archive + .section-label {1428 margin-top: 1.75rem;1429}14301431/* phones: title on its own line, tag and date under it, no leader */1432@media (max-width: 600px) {1433 .archive-row {1434 flex-wrap: wrap;1435 gap: 0.15rem 0.75rem;1436 padding: 0.55rem 0;1437 }14381439 .archive-row::after {1440 display: none;1441 }14421443 .archive-title {1444 flex: 0 0 100%;1445 }14461447 .archive-tag {1448 width: auto;1449 }1450}14511452/*============================*/1453/* components - posts feed */1454/*============================*/14551456/* my bluesky posts on / and /posts/, written in by social/posts.js.1457 a quiet log: dashed rules between posts, grey meta row, lime only on1458 links */1459.post-item {1460 display: flex;1461 flex-direction: column;1462 gap: 0.75rem;1463 padding: 1.5rem 0;1464 scroll-margin-top: 1rem;1465}14661467.post-item + .post-item {1468 border-top: 1px dashed var(--borders);1469}14701471/* arriving from a permalink: the post sits in the panel colour */1472.post-item:target {1473 margin-inline: -1rem;1474 padding-inline: 1rem;1475 background-color: var(--surface);1476 box-shadow: inset 2px 0 0 var(--accent);1477}14781479/* time left, reply right; both grey until hovered, like the footer */1480.post-item-meta {1481 display: flex;1482 flex-wrap: wrap;1483 justify-content: space-between;1484 align-items: baseline;1485 gap: 0.25rem 1rem;1486 margin: 0;1487 font-size: 0.75rem;1488 letter-spacing: 0.08em;1489}14901491.post-item-time,1492.post-item-reply {1493 color: var(--text-secondary);1494 border-bottom: 1px solid transparent;1495 transition:1496 color 150ms ease,1497 border-bottom-color 150ms ease;1498}14991500.post-item-time:hover,1501.post-item-reply:hover {1502 color: var(--accent);1503 border-bottom-color: var(--accent);1504}15051506.post-item-body {1507 margin: 0;1508}15091510/* one image keeps its shape, and so do video thumbnails */1511.post-item-media img,1512.post-item-video img {1513 width: auto;1514 height: auto;1515 max-height: 26rem;1516 border: 1px solid var(--borders);1517 border-radius: 2px;1518}15191520/* two or more: a cropped grid, two across */1521.post-item-media--grid {1522 display: grid;1523 grid-template-columns: 1fr 1fr;1524 gap: 0.4rem;1525}15261527.post-item-media--grid img {1528 width: 100%;1529 height: 100%;1530 aspect-ratio: 1;1531 object-fit: cover;1532}15331534/* a video: its thumbnail with a play mark, linking to bluesky to play */1535.post-item-video {1536 position: relative;1537 align-self: flex-start;1538}15391540.post-item-video::after {1541 content: "\25B6";1542 position: absolute;1543 inset: 50% auto auto 50%;1544 translate: -50% -50%;1545 display: grid;1546 place-items: center;1547 width: 3rem;1548 height: 3rem;1549 padding-left: 0.2rem;1550 border: 1px solid var(--borders);1551 background-color: color-mix(in srgb, var(--background-dark) 80%, transparent);1552 color: var(--text-headings);1553 font-size: 1rem;1554 transition:1555 color 150ms ease,1556 border-color 150ms ease;1557}15581559.post-item-video:hover::after {1560 color: var(--accent);1561 border-color: var(--accent);1562}15631564/* link cards and quoted posts */1565.post-item-card {1566 display: flex;1567 flex-direction: column;1568 gap: 0.3rem;1569 padding: 0.875rem 1rem;1570 border: 1px solid var(--borders);1571 background-color: var(--surface);1572 transition: border-color 150ms ease;1573}15741575.post-item-card:hover {1576 border-color: var(--accent);1577}15781579.post-item-card-title {1580 color: var(--text-headings);1581 font-size: 0.9375rem;1582}15831584.post-item-card-desc,1585.post-item-quote-text {1586 color: var(--text-body);1587 font-size: 0.85rem;1588 line-height: 1.55;1589 display: -webkit-box;1590 -webkit-box-orient: vertical;1591 -webkit-line-clamp: 2;1592 overflow: hidden;1593}15941595.post-item-quote-text {1596 -webkit-line-clamp: 4;1597}15981599.post-item-card-meta {1600 color: var(--text-secondary);1601 font-size: 0.75rem;1602 letter-spacing: 0.04em;1603}16041605.post-item-quote .post-item-card-meta {1606 color: var(--text-headings);1607}16081609.post-item-quote .post-item-card-meta span {1610 color: var(--text-secondary);1611}16121613.post-item-note {1614 margin: 0;1615 font-size: 0.85rem;1616}16171618/* a repost: small label before the time, the original post in a panel */1619.post-item-label {1620 margin-right: 0.5rem;1621 color: var(--text-secondary);1622}16231624.post-item-label::before {1625 content: "\21BB\00A0";1626}16271628.post-item-repost {1629 display: flex;1630 flex-direction: column;1631 gap: 0.75rem;1632 padding: 1rem;1633 border: 1px solid var(--borders);1634 background-color: var(--surface);1635}16361637.post-item-repost > .post-item-card-meta {1638 margin: 0;1639 color: var(--text-headings);1640}16411642.post-item-repost > .post-item-card-meta span {1643 color: var(--text-secondary);1644}16451646/* cards inside the panel step back down to the page colour */1647.post-item-repost .post-item-card {1648 background-color: var(--background-dark);1649}16501651/* the first post sits right under the label */1652.post-feed > .post-item:first-child:not(:target) {1653 padding-top: 0.25rem;1654}16551656.post-feed > .meta {1657 margin: 0;1658}16591660.post-feed > .post-item:last-child:not(:target) {1661 padding-bottom: 0.25rem;1662}16631664/* the newest post on /blog/: a small panel, set apart from the list1665 under it */1666.post-card {1667 display: flex;1668 flex-direction: column;1669 gap: 0.5rem;1670 padding: 1rem 1.25rem;1671 border: 1px solid var(--borders);1672 background-color: var(--surface);1673 transition: border-color 150ms ease;1674}16751676.post-card:hover {1677 border-color: var(--accent);1678}16791680.post-card-meta {1681 display: flex;1682 flex-wrap: wrap;1683 justify-content: space-between;1684 gap: 0.25rem 1rem;1685}16861687.post-card-meta,1688.post-card-extra {1689 font-size: 0.72rem;1690 letter-spacing: 0.08em;1691 color: var(--text-secondary);1692}16931694.post-card-text {1695 color: var(--text-headings);1696 font-size: 0.9375rem;1697 line-height: 1.6;1698 display: -webkit-box;1699 -webkit-box-orient: vertical;1700 -webkit-line-clamp: 4;1701 overflow: hidden;1702}17031704/* "all posts ->" under the posts on / and /blog/ */1705.post-feed-more {1706 margin: 1rem 0 0;1707 font-size: 0.85rem;1708}17091710/*============================*/1711/* components - id list */1712/*============================*/17131714/* /id/: one account or key per row, the kind on the left, the value and1715 a grey note on the right. dashed rules between, like the posts feed */1716.id-list {1717 margin: 0;1718}17191720.id-row {1721 display: grid;1722 grid-template-columns: 9ch minmax(0, 1fr);1723 gap: 0 1rem;1724 padding: 0.7rem 0;1725}17261727.id-row + .id-row {1728 border-top: 1px dashed var(--borders);1729}17301731.id-row dt {1732 padding-top: 0.15rem;1733 font-size: 0.75rem;1734 letter-spacing: 0.08em;1735 color: var(--text-secondary);1736}17371738.id-row dd {1739 display: flex;1740 flex-direction: column;1741 align-items: flex-start;1742 gap: 0.25rem;1743 margin: 0;1744 font-size: 0.9375rem;1745 line-height: 1.5;1746 color: var(--text-headings);1747}17481749.id-note {1750 font-size: 0.8rem;1751 color: var(--text-secondary);1752}17531754.id-note > a {1755 border-bottom: 1px solid var(--accent-muted);1756}17571758.id-note > a:hover {1759 color: var(--accent);1760 border-bottom-color: var(--accent);1761}17621763/* fingerprints and dids: the code font, free to break anywhere */1764.id-mono {1765 font-family:1766 "Geist Mono", ui-monospace, "SF Mono", Menlo, Consolas,1767 "Liberation Mono", monospace;1768 font-size: 0.8rem;1769 color: var(--text-body);1770 overflow-wrap: anywhere;1771}17721773.id-note.id-mono {1774 color: var(--text-secondary);1775}17761777/* the public key wraps instead of scrolling; copying still gets one line */1778.id-key code {1779 white-space: pre-wrap;1780 overflow-wrap: anywhere;1781}17821783/* phones: kind above value */1784@media (max-width: 480px) {1785 .id-row {1786 grid-template-columns: minmax(0, 1fr);1787 gap: 0.3rem;1788 }1789}17901791/*============================*/1792/* components - rating */1793/*============================*/17941795.rating {1796 color: var(--rating-color, var(--text-secondary));1797 white-space: nowrap;1798}17991800a.rating,1801a.rating:visited {1802 color: var(--rating-color, var(--text-secondary));1803 border-bottom: 1px solid transparent;1804}18051806a.rating:hover,1807a.rating:focus-visible {1808 color: var(--rating-color, var(--text-secondary));1809 border-bottom-color: currentColor;1810}18111812a.rating:focus-visible {1813 outline-color: var(--rating-color, var(--text-secondary));1814}18151816.rating--terrible {1817 --rating-color: var(--rating-terrible);1818}18191820.rating--below-average {1821 --rating-color: var(--rating-below-average);1822}18231824.rating--good {1825 --rating-color: var(--rating-good);1826}18271828.rating--above-average {1829 --rating-color: var(--rating-above-average);1830}18311832.rating--great {1833 --rating-color: var(--rating-great);1834}18351836/*============================*/1837/* components - code block */1838/*============================*/18391840/* optional file label over a pre, like bat's header */1841.code-block {1842 margin: 2rem 0;1843}18441845.code-block pre {1846 margin: 0;1847 border-top-left-radius: 0;1848 border-top-right-radius: 0;1849}18501851.code-label {1852 margin: 0;1853 padding: 0.45rem 1.25rem;1854 border: 1px solid var(--borders);1855 border-bottom: 0;1856 border-radius: 6px 6px 0 0;1857 background: var(--background-dark);1858 font-size: 0.78rem;1859 color: var(--text-secondary);1860}18611862@media (max-width: 480px) {1863 .code-block {1864 margin: 1.5rem -0.5rem;1865 }18661867 .code-label {1868 padding-inline: 1rem;1869 border-radius: 4px 4px 0 0;1870 }1871}18721873/*============================*/1874/* components - images and layout helpers */1875/*============================*/18761877.img-scaled {1878 width: auto;1879 height: auto;1880 max-width: 100%;1881 max-height: var(--img-max-height, 26rem);1882 margin-inline: auto;1883}18841885.img-scaled--short {1886 --img-max-height: 18rem;1887}18881889.img-scaled--medium {1890 --img-max-height: 24rem;1891}18921893.img-scaled--tall {1894 --img-max-height: 30rem;1895}18961897figure:has(.img-scaled) {1898 width: fit-content;1899 max-width: 100%;1900 margin-inline: auto;1901}19021903figure:has(.img-scaled) figcaption {1904 text-align: center;1905}19061907.two-col-list {1908 display: flex;1909 flex-wrap: wrap;1910 gap: 0 2.5rem;1911}19121913.two-col-list > * {1914 flex: 1 1 14rem;1915 min-width: 0;1916}19171918/*============================*/1919/* projects - project cards */1920/*============================*/19211922.project-card {1923 display: flex;1924 flex-direction: row;19251926 margin-bottom: 1rem;1927 border-radius: 16px;1928 padding: 1.25rem;19291930 border: 1px solid var(--borders);19311932 background: var(--background-dark);1933 box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);1934 color: inherit;19351936 /* for overlay + smoothness */1937 position: relative;1938 overflow: hidden;1939 transform: translateZ(0);1940 transform-origin: center;19411942 /* transitions */1943 transition:1944 transform 220ms ease,1945 box-shadow 220ms ease;1946 will-change: transform;1947}19481949.project-card h2 {1950 padding: 0rem;1951 margin: 0rem;1952 font-size: 1.75rem;1953 color: var(--text-headings);1954 transition: color 220ms ease;1955}19561957.project-card:hover h2 {1958 color: var(--accent);1959}19601961.project-card p {1962 padding: 0rem;1963 margin: 0rem;1964}19651966.project-card-left {1967 flex: 1;1968 display: flex;1969 flex-direction: column;1970 justify-content: space-between;1971 margin-right: 1rem;1972}19731974.project-card-right {1975 padding: 0rem;1976 margin: 0rem;1977}19781979.project-card::before {1980 content: "";1981 position: absolute;1982 inset: 0;1983 border-radius: inherit;19841985 background: radial-gradient(1986 ellipse at top left,1987 color-mix(in srgb, var(--accent) 6%, transparent),1988 transparent 70%1989 );19901991 opacity: 0;1992 transition: opacity 220ms ease;1993 pointer-events: none;1994}19951996.project-card:hover {1997 transform: scale(1.05);1998 box-shadow:1999 0 20px 50px rgba(0, 0, 0, 0.5),2000 0 0 0 1px color-mix(in srgb, var(--accent) 15%, transparent);2001}20022003.project-card:hover::before {2004 opacity: 1;2005}20062007/* keep actual content above overlay */2008.project-card > * {2009 position: relative;2010 z-index: 1;2011}20122013.project-card-img {2014 width: 30rem;2015 height: auto;2016 display: block;2017 border-radius: 12px;2018 border: 1px solid var(--borders);2019 box-shadow:2020 0 8px 24px rgba(0, 0, 0, 0.5),2021 0 2px 8px rgba(0, 0, 0, 0.3);2022 transition:2023 transform 220ms ease,2024 box-shadow 220ms ease;2025}20262027.project-card:hover .card-type {2028 color: var(--accent);2029}20302031.project-card:hover .project-card-img {2032 transform: scale(1.02);2033 box-shadow:2034 0 12px 32px rgba(0, 0, 0, 0.6),2035 0 4px 12px rgba(0, 0, 0, 0.4),2036 0 0 0 1px color-mix(in srgb, var(--accent) 25%, transparent);2037}20382039.project-card:focus-visible {2040 outline: 2px solid currentColor;2041 outline-offset: 4px;2042 transform: scale(1.05);2043}20442045@media (max-width: 768px) {2046 .project-card {2047 flex-direction: column;2048 gap: 1rem;2049 }20502051 .project-card-left {2052 margin-right: 0;2053 }20542055 .project-card-img {2056 width: 100%;2057 }20582059 .project-card:hover,2060 .project-card:focus-visible {2061 transform: none;2062 }2063}20642065@media (prefers-reduced-motion: reduce) {2066 .project-card,2067 .project-card::before,2068 .project-card-img {2069 transition: none;2070 }2071}20722073/*============================*/2074/* projects - project page */2075/*============================*/20762077.project-banner {2078 position: relative;2079 border: 1px solid var(--borders);2080 border-radius: 0.75rem;2081 overflow: hidden;2082 background: linear-gradient(2083 135deg,2084 var(--surface) 0%,2085 var(--background-dark) 50%,2086 var(--surface) 100%2087 );2088 padding: 2rem;2089 height: 20rem;2090 box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);2091}20922093.project-banner-background {2094 position: absolute;2095 inset: 0;2096}20972098.project-banner-img {2099 position: relative;2100 display: block;2101 width: 93%;2102 height: auto;2103 margin: 2rem auto 0;2104 border: 3px solid rgba(255, 255, 255, 0.25);2105 border-radius: 0.5rem;2106}21072108/* the saturn screenshot follows the palette theme.js picked */2109.saturn-shot {2110 aspect-ratio: 961 / 1101;2111 background: url("https://assets.danieldaum.net/img/misc/saturn-moss.webp")2112 center / cover;2113}21142115/* on /projects/'s card: portrait, so narrower than the other card images;2116 leaves the text about half the card. the project page banner keeps its size */2117@media (min-width: 769px) {2118 .project-card .saturn-shot {2119 width: 18rem;2120 }2121}21222123[data-theme="ink"] .saturn-shot {2124 background-image: url("https://assets.danieldaum.net/img/misc/saturn-ink.webp");2125}21262127[data-theme="wine"] .saturn-shot {2128 background-image: url("https://assets.danieldaum.net/img/misc/saturn-wine.webp");2129}21302131[data-theme="plum"] .saturn-shot {2132 background-image: url("https://assets.danieldaum.net/img/misc/saturn-plum.webp");2133}21342135[data-theme="teal"] .saturn-shot {2136 background-image: url("https://assets.danieldaum.net/img/misc/saturn-teal.webp");2137}21382139[data-theme="flexoki"] .saturn-shot {2140 background-image: url("https://assets.danieldaum.net/img/misc/saturn-flexoki.webp");2141}21422143.project-header {2144 display: flex;2145 flex-direction: column;2146 gap: 0.35rem;2147 margin-top: 2rem;2148}21492150.project-header-title {2151 margin: 0;2152 font-size: 2rem;2153 line-height: 1.2;2154 color: var(--accent);2155}21562157.project-header-desc {2158 font-size: 0.95rem;2159 color: var(--text-secondary);2160}21612162.project-stats {2163 display: flex;2164 flex-wrap: wrap;2165 gap: 1.5rem 2.5rem;2166 margin: 0.5rem 0 2.75rem;2167 padding: 1.5rem 0;2168 border-top: 1px solid var(--borders);2169 border-bottom: 1px solid var(--borders);2170}21712172.project-stat-label {2173 font-size: 0.72rem;2174 letter-spacing: 0.12em;2175 text-transform: uppercase;2176 color: var(--text-secondary);2177 margin-bottom: 0.4rem;2178}21792180.project-stat-value {2181 font-size: 0.92rem;2182 color: var(--text-headings);2183}21842185@media (max-width: 600px) {2186 .project-stats {2187 flex-direction: column;2188 gap: 1.25rem;2189 }2190}21912192/*============================*/2193/* projects - version history */2194/*============================*/21952196/* past versions of a project, oldest first: date and commit, title,2197 screenshot, a line or two */2198.version-list {2199 list-style: none;2200 margin: 0;2201 padding: 1rem 0 1rem min(2.25rem, 6vw);2202 border-left: 1px solid var(--borders);2203}22042205.version-list > li {2206 margin: 0;2207}22082209.version-list > li + li {2210 margin-top: 3rem;2211}22122213.version-meta {2214 display: flex;2215 gap: 1rem;2216 margin: 0;2217 font-size: 0.75rem;2218 letter-spacing: 0.1em;2219 color: var(--text-secondary);2220}22212222.version-hash {2223 color: var(--text-secondary);2224}22252226.version-hash:hover {2227 color: var(--accent);2228}22292230.version-list h3 {2231 margin: 0.3rem 0 0.75rem 0;2232}22332234.version-list figure {2235 margin: 0 0 1rem 0;2236}22372238/*============================*/2239/* projects - commit log */2240/*============================*/22412242/* recent commits, written by hand. stands in for a screenshot: in the2243 project banner and on the /projects/ card */2244.commit-log {2245 position: relative;2246 width: 100%;2247 max-width: 40rem;2248 margin: 0 auto;2249 padding: 1rem 1.25rem;2250 border: 1px solid var(--borders);2251 border-radius: 0.5rem;2252 background: var(--surface);2253 box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);2254}22552256.commit-log-head a {2257 color: var(--text-secondary);2258}22592260.commit-log-head a:hover {2261 color: var(--accent);2262}22632264.commit-log-head {2265 display: flex;2266 justify-content: space-between;2267 gap: 1rem;2268 margin-bottom: 0.6rem;2269 padding-bottom: 0.6rem;2270 border-bottom: 1px dashed var(--borders);2271 font-size: 0.72rem;2272 letter-spacing: 0.08em;2273 color: var(--text-secondary);2274}22752276.commit-log-list {2277 list-style: none;2278 margin: 0;2279 padding: 0;2280}22812282.commit-log-row {2283 display: grid;2284 grid-template-columns: auto minmax(0, 1fr) auto;2285 gap: 1rem;2286 margin: 0;2287 padding: 0.3rem 0;2288 font-size: 0.82rem;2289 line-height: 1.5;2290}22912292.commit-log-hash,2293.commit-log-date {2294 color: var(--text-secondary);2295 font-variant-numeric: tabular-nums;2296}22972298.commit-log-msg {2299 color: var(--text-headings);2300 overflow: hidden;2301 text-overflow: ellipsis;2302 white-space: nowrap;2303}23042305/* banner: grows to fit the log instead of a fixed height */2306.project-banner--log {2307 display: flex;2308 align-items: center;2309 height: auto;2310 min-height: 20rem;2311}23122313/* /projects/ card: takes the screenshot's spot and shrinks like it */2314.project-card-right:has(> .commit-log) {2315 flex: 0 1 30rem;2316 min-width: 0;2317}23182319.project-card .commit-log {2320 box-shadow: none;2321}23222323/* no room for the hash next to the card text */2324.project-card .commit-log-row {2325 grid-template-columns: minmax(0, 1fr) auto;2326}23272328.project-card .commit-log-hash {2329 display: none;2330}23312332/* card stacks: the 30rem basis would become its height */2333@media (max-width: 768px) {2334 .project-card-right:has(> .commit-log) {2335 flex: none;2336 }2337}23382339/* phones: banner rows put hash and date on one line, the message under them */2340@media (max-width: 600px) {2341 .project-banner--log {2342 padding: 1rem;2343 }23442345 .commit-log {2346 padding: 0.875rem 1rem;2347 }23482349 .project-banner .commit-log-row {2350 grid-template-columns: auto 1fr;2351 gap: 0.1rem 1rem;2352 }23532354 .project-banner .commit-log-date {2355 text-align: right;2356 }23572358 .project-banner .commit-log-msg {2359 grid-column: 1 / -1;2360 grid-row: 2;2361 white-space: normal;2362 }2363}23642365/*============================*/2366/* photos - photo wall */2367/*============================*/23682369.photo-wall {2370 display: grid;2371 grid-template-columns: repeat(4, 1fr);2372 gap: 0.85rem;2373}23742375.photo-tile {2376 position: relative;2377 margin: 0;2378 border-radius: 2px;2379 overflow: hidden;2380}23812382.photo-tile img {2383 margin: 0;2384 width: 100%;2385 height: 100%;2386 aspect-ratio: 4 / 5;2387 object-fit: cover;2388}23892390.photo-link {2391 display: block;2392}23932394.photo-caption {2395 position: absolute;2396 inset: auto 0 0 0;2397 margin: 0;2398 padding: 1.75rem 0.85rem 0.75rem;2399 background: linear-gradient(2400 to top,2401 color-mix(in srgb, var(--background-dark) 92%, transparent) 0%,2402 color-mix(in srgb, var(--background-dark) 50%, transparent) 60%,2403 transparent 100%2404 );2405 backdrop-filter: blur(3px);2406 -webkit-backdrop-filter: blur(3px);2407 font-size: 0.8rem;2408 line-height: 1.4;2409 opacity: 0;2410 transform: translateY(6px);2411 transition:2412 opacity 200ms ease,2413 transform 200ms ease;2414 pointer-events: none;2415}24162417.photo-tile:hover .photo-caption,2418.photo-tile:focus-within .photo-caption {2419 opacity: 1;2420 transform: translateY(0);2421}24222423.photo-caption-name {2424 display: block;2425 color: var(--text-headings);2426}24272428.photo-caption-location {2429 display: block;2430 margin-top: 0.15rem;2431 color: var(--text-secondary);2432 font-size: 0.75rem;2433}24342435.photo-caption-date {2436 display: block;2437 margin-top: 0.15rem;2438 color: var(--text-secondary);2439 font-size: 0.7rem;2440 letter-spacing: 0.06em;2441}24422443.photo-tile--new {2444 outline: 1px solid var(--accent);2445 outline-offset: -1px;2446}24472448/* the caption paints over the inset outline; keep it inside the border */2449.photo-tile--new .photo-caption {2450 inset: auto 1px 1px 1px;2451}24522453.new-tag {2454 color: var(--accent);2455 font-size: 0.7rem;2456 letter-spacing: 0.08em;2457 text-transform: uppercase;2458}24592460@media (max-width: 900px) {2461 .photo-wall {2462 grid-template-columns: repeat(2, 1fr);2463 }2464}24652466@media (max-width: 480px) {2467 .photo-wall {2468 grid-template-columns: 1fr;2469 }2470}24712472/*============================*/2473/* photos - lightbox */2474/*============================*/24752476.lightbox {2477 display: none;2478 position: fixed;2479 inset: 0;2480 z-index: 100;2481}24822483.lightbox:target {2484 display: block;2485}24862487.lightbox-backdrop {2488 position: absolute;2489 inset: 0;2490 background: color-mix(in srgb, var(--background-dark) 94%, transparent);2491}24922493.lightbox-content {2494 position: relative;2495 z-index: 1;2496 margin: 6vh auto 0;2497 max-width: 92vw;2498 max-height: 88vh;2499 display: flex;2500 flex-direction: column;2501 align-items: center;2502 pointer-events: none;2503}25042505.lightbox-content > * {2506 pointer-events: auto;2507}25082509.lightbox-content img {2510 max-width: 92vw;2511 max-height: 68vh;2512 width: auto;2513 height: auto;2514 margin: 0;2515}25162517.lightbox-meta {2518 margin-top: 0.85rem;2519 text-align: center;2520}25212522.lightbox-meta-name {2523 margin: 0 0 0.35rem;2524 color: var(--text-headings);2525 font-size: 0.95rem;2526}25272528/* link to the photo's own page */2529.lightbox-details {2530 font-size: 0.75rem;2531 letter-spacing: 0.08em;2532 color: var(--text-secondary);2533}25342535.lightbox-details:hover {2536 color: var(--accent);2537}25382539.lightbox-close,2540.lightbox-nav {2541 position: fixed;2542 color: var(--text-headings);2543 line-height: 1;2544}25452546.lightbox-close:hover,2547.lightbox-nav:hover,2548.lightbox-close:focus-visible,2549.lightbox-nav:focus-visible {2550 color: var(--accent);2551}25522553.lightbox-close {2554 top: 1.25rem;2555 right: 1.5rem;2556 font-size: 1.4rem;2557 padding: 0.4rem 0.6rem;2558}25592560.lightbox-nav {2561 top: 50%;2562 transform: translateY(-50%);2563 font-size: 2.25rem;2564 padding: 0.5rem 0.85rem;2565}25662567.lightbox-prev {2568 left: 0.5rem;2569}25702571.lightbox-next {2572 right: 0.5rem;2573}25742575@media (max-width: 600px) {2576 .lightbox-nav {2577 font-size: 1.75rem;2578 padding: 0.4rem 0.6rem;2579 }25802581 .lightbox-close {2582 top: 0.75rem;2583 right: 1rem;2584 }2585}25862587/*============================*/2588/* photos - photo pages */2589/*============================*/25902591/* whole photo beside its details; heading and list reuse .entry-heading / .entry-meta */2592.photo-entry {2593 display: grid;2594 grid-template-columns: minmax(0, 3fr) minmax(12rem, 2fr);2595 gap: 2rem;2596 align-items: start;2597}25982599.photo-entry-link {2600 display: block;2601 width: fit-content;2602 max-width: 100%;2603}26042605.photo-entry-link img {2606 display: block;2607 width: auto;2608 height: auto;2609 max-width: 100%;2610 max-height: 85vh;2611 max-height: 85svh;2612 margin: 0;2613 border: 1px solid var(--borders);2614}26152616@media (max-width: 600px) {2617 .photo-entry {2618 grid-template-columns: 1fr;2619 gap: 1.5rem;2620 }2621}26222623/*============================*/2624/* trackers - media walls (books, movies, shows, games, music) */2625/*============================*/26262627.tracker-wall {2628 display: grid;2629 grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr));2630 gap: 1.5rem 1.1rem;2631 margin-bottom: 3rem;2632 list-style: none;2633 padding: 0;2634}26352636.tracker-wall--favorites {2637 padding-bottom: 2.75rem;2638 border-bottom: 1px solid var(--borders);2639 margin-bottom: 0.5rem;2640}26412642.tracker-tile {2643 margin: 0;2644 min-width: 0;2645}26462647.tracker-link {2648 display: block;2649}26502651.tracker-cover {2652 position: relative;2653 display: block;2654 aspect-ratio: 2 / 3;2655 border: 1px dashed var(--borders);2656 border-radius: 2px;2657 overflow: hidden;2658 background: var(--surface);2659 transition:2660 outline-color 0.15s ease,2661 opacity 0.15s ease;2662 outline: 1px solid transparent;2663 outline-offset: -1px;2664}26652666.tracker-cover::after {2667 content: "NO COVER";2668 position: absolute;2669 inset: 0;2670 display: flex;2671 align-items: center;2672 justify-content: center;2673 color: var(--text-secondary);2674 font-size: 0.65rem;2675 letter-spacing: 0.1em;2676}26772678.tracker-cover:has(img) {2679 border-style: solid;2680}26812682.tracker-cover:has(img)::after {2683 content: none;2684}26852686.tracker-cover--square {2687 aspect-ratio: 1 / 1;2688}26892690.tracker-cover--boxart {2691 aspect-ratio: 3 / 4;2692}26932694.tracker-cover img {2695 position: absolute;2696 inset: 0;2697 margin: 0;2698 width: 100%;2699 height: 100%;2700 object-fit: cover;2701}27022703.tracker-link:hover .tracker-cover,2704.tracker-link:focus-visible .tracker-cover {2705 outline-color: var(--accent);2706 opacity: 0.85;2707}27082709.tracker-caption {2710 display: block;2711 margin-top: 0.5rem;2712 font-size: 0.78rem;2713 line-height: 1.35;2714}27152716.tracker-caption-title {2717 display: block;2718 color: var(--text-headings);2719}27202721.tracker-link:hover .tracker-caption-title,2722.tracker-link:focus-visible .tracker-caption-title {2723 color: var(--accent);2724}27252726.tracker-caption-sub {2727 display: block;2728 color: var(--text-secondary);2729 font-size: 0.72rem;2730}27312732.tracker-caption-line {2733 display: flex;2734 flex-wrap: wrap;2735 align-items: baseline;2736 gap: 0.4rem;2737 margin-top: 0.15rem;2738 color: var(--text-secondary);2739 font-size: 0.7rem;2740 letter-spacing: 0.06em;2741}27422743/*============================*/2744/* trackers - entry pages */2745/*============================*/27462747.entry-hero {2748 display: grid;2749 grid-template-columns: 14rem 1fr;2750 gap: 2rem;2751 align-items: start;2752}27532754.entry-heading h1 {2755 line-height: 1.3;2756 margin: 0 0 1rem;2757}27582759.entry-meta {2760 display: flex;2761 flex-direction: column;2762 gap: 0.4rem;2763 margin: 0;2764 padding: 0;2765 list-style: none;2766 color: var(--text-secondary);2767 font-size: 0.85rem;2768}27692770.entry-meta li {2771 margin: 0;2772}27732774@media (max-width: 600px) {2775 .entry-hero {2776 grid-template-columns: 1fr;2777 gap: 1.5rem;2778 }27792780 .entry-cover {2781 width: 11rem;2782 }2783}27842785@media (max-width: 480px) {2786 .tracker-wall {2787 grid-template-columns: repeat(2, 1fr);2788 }2789}27902791/*============================*/2792/* ratings - color swatches */2793/*============================*/27942795.swatch-row {2796 display: flex;2797 flex-wrap: wrap;2798 gap: 0.75rem;2799 margin-bottom: 1.5rem;2800}28012802.swatch {2803 display: flex;2804 flex-direction: column;2805 gap: 0.4rem;2806 min-width: 9rem;2807}28082809.swatch-block {2810 background-color: var(--rating-color, transparent);2811 width: 100%;2812 height: 3.5rem;2813 border-radius: 6px;2814 border: 1px solid var(--borders);2815}28162817.swatch-name {2818 font-size: 0.75rem;2819 color: var(--text-secondary);2820 margin: 0;2821}28222823.swatch-value {2824 font-size: 0.7rem;2825 color: var(--text-secondary);2826 margin: 0;2827 opacity: 0.7;2828}28292830/*============================*/2831/* utilities */2832/*============================*/28332834.text-center {2835 text-align: center;2836}28372838/* Skip link, hidden until focused */2839.skip-link {2840 position: absolute;2841 top: -3rem;2842 left: 0.5rem;2843 z-index: 200;2844 padding: 0.4rem 0.75rem;2845 background: var(--background-dark);2846 border: 1px solid var(--accent);2847}28482849.skip-link:focus {2850 top: 0.5rem;2851}28522853/* Caps are visual only; source text stays readable for screen readers */2854.caps,2855h4,2856.site-name,2857.site-header nav a,2858footer nav a,2859.theme-button,2860.breadcrumb,2861.page-header h1,2862.project-header-title,2863.project-card h2,2864.card-type,2865.project-stat-value,2866.card-title,2867.meta-split > span,2868.table-title,2869.table-date,2870.entry-heading h1,2871.pager-title,2872.photo-caption-date,2873.lightbox-details,2874.tracker-caption-line,2875.archive-title,2876.archive-tag,2877.archive-date,2878.pill,2879.commit-log-head,2880.commit-log-date,2881.version-date,2882.social-title,2883.comment-author,2884.comment-time,2885.comment-link,2886.id-row dt,2887.post-item-time,2888.post-item-reply,2889.post-item-label,2890.post-card-meta,2891.post-card-extra {2892 text-transform: uppercase;2893}28942895/*============================*/2896/* preferences - contrast, motion */2897/*============================*/28982899/* High contrast mode support */2900@media (prefers-contrast: more) {2901 html,2902 [data-theme] {2903 --text-body: #ffffff;2904 --text-secondary: #cccccc;2905 --text-headings: #ffffff;2906 --accent: #ffff00;2907 --borders: #ffffff;2908 --accent-muted: #444444;29092910 --rating-terrible: #ff9494;2911 --rating-below-average: #ffc24d;2912 --rating-good: #ffffff;2913 --rating-above-average: #d4f06a;2914 --rating-great: #8dffab;29152916 /* flexoki 200, at least 6.8:1 on every surface */2917 --syn-fg: #ffffff;2918 --syn-punct: #e6e4d9;2919 --syn-comment: #cccccc;2920 --syn-keyword: #c4b9e0;2921 --syn-function: #92bfdb;2922 --syn-builtin: #87d3c3;2923 --syn-type: #eccb60;2924 --syn-variable: #f89a8a;2925 --syn-constant: #f9ae77;2926 --syn-string: #bec97e;2927 }29282929 a {2930 text-decoration: underline;2931 }29322933 code {2934 border: 2px solid var(--borders);2935 }2936}29372938/* Reduced motion preferences */2939@media (prefers-reduced-motion: reduce) {2940 *,2941 *::before,2942 *::after {2943 animation-duration: 0.01ms !important;2944 animation-iteration-count: 1 !important;2945 transition-duration: 0.01ms !important;2946 scroll-behavior: auto !important;2947 }2948}29492950/*============================*/2951/* print */2952/*============================*/29532954@media print {2955 html,2956 [data-theme] {2957 --text-body: #100f0f;2958 --text-headings: #100f0f;2959 --text-secondary: #575653;2960 --background-dark: #ffffff;2961 --surface: #f5f5f5;2962 --borders: #cccccc;2963 --accent: #100f0f;29642965 --rating-terrible: #af3029;2966 --rating-below-average: #bc5215;2967 --rating-good: #8e6b01;2968 --rating-above-average: #536907;2969 --rating-great: #1c6c66;29702971 /* flexoki 600/700, all at least 4.5:1 on #f5f5f5 */2972 --syn-fg: #100f0f;2973 --syn-punct: #575653;2974 --syn-comment: #6f6e69;2975 --syn-keyword: #5e409d;2976 --syn-function: #205ea6;2977 --syn-builtin: #1c6c66;2978 --syn-type: #8e6b01;2979 --syn-variable: #af3029;2980 --syn-constant: #9d4310;2981 --syn-string: #536907;2982 }29832984 pre {2985 white-space: pre-wrap;2986 overflow-wrap: anywhere;2987 break-inside: avoid;2988 }29892990 .code-label {2991 break-after: avoid;2992 }29932994 body {2995 background: white;2996 color: black;2997 display: block;2998 min-height: auto;2999 max-width: none;3000 padding: 1rem;3001 font-size: 11pt;3002 line-height: 1.4;3003 }30043005 header,3006 main,3007 footer {3008 padding: 0.25rem 0;3009 }30103011 h1 {3012 font-size: 1.4rem;3013 color: black;3014 page-break-after: avoid;3015 }30163017 h2,3018 h3 {3019 color: black;3020 page-break-after: avoid;3021 border: none;3022 }30233024 p,3025 li {3026 orphans: 3;3027 widows: 3;3028 }30293030 a {3031 color: black;3032 text-decoration: underline;3033 background: none;3034 border: none;3035 }30363037 a[href^="mailto:"]:after {3038 content: " (" attr(href) ")";3039 font-size: 0.75em;3040 }30413042 a[href^="http"]:after {3043 content: " (" attr(href) ")";3044 font-size: 0.75em;3045 }30463047 nav {3048 display: none;3049 }30503051 blockquote {3052 border-left-color: black;3053 }30543055 img {3056 border: 1px solid black;3057 page-break-inside: avoid;3058 }30593060 hr {3061 background: black;3062 }30633064 .meta {3065 color: #666;3066 }30673068 .breadcrumb,3069 .pager {3070 display: none;3071 }3072}