@import "fonts/iosevka-grey/iosevka-grey.css"; @import "fonts/iosevka-grey-mono/iosevka-grey-mono.css"; @import "fonts/smol-emoji/smol-emoji.css"; /* Colours */ .month-01 { --hue: 15; } .month-02 { --hue: 30; } .month-03 { --hue: 52; } .month-04 { --hue: 82; } .month-05 { --hue: 149; } .month-06 { --hue: 187; } .month-07 { --hue: 210; } .month-08 { --hue: 246; } .month-09 { --hue: 269; } .month-10 { --hue: 291; } .month-11 { --hue: 321; } .month-12 { --hue: 352; } .thefridayfetchit { --hue: 113; --saturation: 48%; } .walkingdataloss { --hue: 214; --saturation: 17%; } body { --saturation: 60%; background-color: var(--background-color); color: var(--foreground-color); --background-color: hsl(var(--hue), 5%, 98%); --foreground-color: hsl(var(--hue), 5%, 10%); --primary-color: hsl(var(--hue), var(--saturation), 30%); --primary-color-dark: hsl(var(--hue), var(--saturation), 30%); } @media (prefers-color-scheme: dark) { body { --background-color: hsl(var(--hue), 5%, 10%); --foreground-color: hsl(var(--hue), 5%, 98%); --primary-color: hsl(var(--hue), var(--saturation), 70%); } } /* Typography */ html { font-size: max(8px, min(1em, 5vmin)); } body { font-family: "Iosevka Grey Web", "Iosevka Aile", "Smol Emoji", ui-sans-serif, system-ui, sans-serif; font-size: 1rem; line-height: 1.5rem; } code, kbd, pre, samp { font-family: "Iosevka Grey Mono Web", "Iosevka Extended", "Iosevka", "Smol Emoji", ui-monospace, monospace; } /* Layout */ *, *::before, *::after { box-sizing: border-box; max-width: 100%; } html, body { margin: 0; padding: 0; } body { margin-bottom: 3rem; } .decoration { height: 12rem; /* For some entries, the height is overridden by inline styles. */ background-color: var(--primary-color-dark); background-position: center; background-repeat: no-repeat; background-size: auto; } .thefridayfetchit .decoration { height: 18rem; background-image: url("/thefridayfetchit/decoration.png"); } .walkingdataloss .decoration { height: 6rem; background-image: url("/walkingdataloss/decoration.png"); background-position: top; background-repeat: repeat-x; } .entry h1 { max-width: min(60rem, 95vw); margin-left: auto; margin-right: auto; text-align: center; } .entry main footer section { max-width: min(40rem, 90vw); margin-left: auto; margin-right: auto; margin-top: 1.5rem; margin-bottom: 1.5rem; } .entry main footer section .series, .entry main footer section .byline { text-align: center; } .entry main footer section .datestamp { width: max-content; margin-left: auto; margin-right: auto; text-align: right; } .entry main footer section .description { text-align: center; font-style: italic; } .entry main footer section .tags { margin-top: 1.5rem; margin-bottom: 1.5rem; text-align: center; } .entry main footer section .tags ul { display: inline; } .entry main footer section .tags li { display: inline-block; margin: 0; margin-left: calc(12rem / 16); margin-right: calc(12rem / 16); } /* Elements */ .hidden { display: none !important; } .inset { float: right; max-width: 49%; margin-left: 2%; } :link, :visited { text-decoration: none; color: var(--primary-color); } :link, :visited, nav a:link strong, nav a:visited strong { text-decoration: underline; text-decoration-thickness: max(1px, calc(1rem / 16)); text-underline-offset: calc(4rem / 16); } :link:focus, :link:hover, :visited:focus, :visited:hover, nav a:link:focus strong, nav a:link:hover strong, nav a:visited:focus strong, nav a:visited:hover strong { text-decoration-thickness: max(2px, calc(2rem / 16)); outline: 0; } :link:active, :visited:active { color: var(--foreground-color); } nav a, nav a > *, nav a > * > * { display: block; } nav a * { width: max-content; } nav > a:link, nav > a:link:focus, nav > a:link:hover, nav > a:visited, nav > a:visited:focus, nav > a:visited:hover, nav:not(.menu) a:link, nav:not(.menu) a:link:focus, nav:not(.menu) a:link:hover, nav:not(.menu) a:visited, nav:not(.menu) a:visited:focus, nav:not(.menu) a:visited:hover { text-decoration: none; } address { font-style: normal; } aside { max-width: min(40rem, 90vw); margin-left: auto; margin-right: auto; padding-left: min(10rem, 22.5vw); } blockquote { margin-top: 1.5rem; margin-bottom: 1.5rem; max-width: min(30rem, 67.5vw); margin-left: auto; margin-right: auto; border-left: max(2px, calc(2rem / 16)) solid var(--foreground-color); padding-left: calc(1rem - max(2px, calc(2rem / 16))); } figure { margin-top: 1.5rem; margin-bottom: 1.5rem; margin-left: auto; margin-right: auto; } figcaption { width: max-content; max-width: min(40rem, 90vw); margin-left: auto; margin-right: auto; } h1 { padding: 0; margin-top: 3rem; margin-bottom: 1.5rem; font-size: 2.5rem; line-height: 3rem; max-width: min(40rem, 90vw); margin-left: auto; margin-right: auto; } h2 { padding: 0; margin-top: 1.5rem; margin-bottom: 1.5rem; font-size: 2rem; line-height: 3rem; } h3, h4, h5, h6 { padding: 0; margin-top: 1.5rem; margin-bottom: 1.5rem; font-size: 1.25rem; line-height: 1.5rem; } main h2, main h3, main h4, main h5, main h6 { margin-top: 3rem; max-width: min(40rem, 90vw); margin-left: auto; margin-right: auto; } hr { margin: 0; border: 0; padding: 0; height: 1.5rem; padding-top: calc(11rem / 16); padding-bottom: calc(11rem / 16); background-clip: content-box; background-color: var(--primary-color); margin-left: auto; margin-right: auto; } main hr { max-width: min(40rem, 90vw); } main section hr { max-width: min(20rem, 45vw); background-color: var(--foreground-color); } img, object { display: block; max-height: 100vh; margin-left: auto; margin-right: auto; } a img, a object { padding: calc(0.25rem - max(1px, calc(1rem / 16))); border: max(1px, calc(1rem / 16)) solid; } a img:focus, a img:hover, a object:focus, a object:hover { padding: calc(0.25rem - max(2px, calc(2rem / 16))); border: max(2px, calc(2rem / 16)) solid; } nav { margin-top: 1.5rem; margin-bottom: 1.5rem; max-width: min(40rem, 90vw); margin-left: auto; margin-right: auto; } nav h2 { font-size: 1rem; line-height: 1.5rem; margin-top: 3rem; margin-bottom: 1.5rem; } nav h2:first-child { margin-top: 1.5rem; } nav li { margin-left: 0; list-style-type: none; } nav b { font-weight: normal; } nav.menu h2 { margin-top: 1.5rem; margin-bottom: 0; } nav.menu ol, nav.menu ul { margin-top: 0; } nav.menu li { display: inline-block; margin: 0; margin-right: 1.5rem; } nav.menu li a { display: inline-block; } ol, ul { margin-top: 1.5rem; margin-bottom: 1.5rem; padding-left: 0; } main ol, main ul { max-width: min(40rem, 90vw); margin-left: auto; margin-right: auto; } li { margin-top: 1.5rem; margin-bottom: 1.5rem; margin-left: 1.5rem; } main > section ul li { list-style-type: disc; } p { margin-top: 1.5rem; margin-bottom: 1.5rem; max-width: min(40rem, 90vw); margin-left: auto; margin-right: auto; } pre { margin-top: 1.5rem; margin-bottom: 1.5rem; width: min-content; margin-left: auto; margin-right: auto; } small { font-size: 1rem; line-height: 1.5rem; width: max-content; margin-left: auto; margin-right: auto; }