/* Defaults */ :root { --font-family-headline: 'Playfair Display'; --font-family: Manrope; --font-family-monospace: Consolas, Menlo, Monaco, Andale Mono WT, Andale Mono, Lucida Console, Lucida Sans Typewriter, DejaVu Sans Mono, Bitstream Vera Sans Mono, Liberation Mono, Nimbus Mono L, Courier New, Courier, monospace; } /* Design Tokens */ :root { /* Colors */ --color-gray-20: #e0e0e0; --color-gray-90: #333333; --card-color: white; --contrast-color: #027860; --background-color: #FAF5F5; --rss-orange: rgb(255, 152, 0); --text-color: var(--color-gray-90); --text-color-link: var(--text-color); --text-color-tag: var(--contrast-color); /* Change SVG color with filter */ --logo-filter: brightness(0) saturate(100%) invert(16%) sepia(0%) saturate(1024%) hue-rotate(177deg) brightness(99%) contrast(88%); --icon-filter: none; /* Corners */ --border-radius: .3rem; /* Space & Size */ --syntax-tab-size: 2; --half-gap: .5rem; --single-gap: 1rem; --double-gap: 2rem; --triple-gap: 3rem; --quad-gap: 4rem; /* Transitions */ --transition-normal: all .3s; /* Font Sizes */ --font-xxl: 3.75rem; --font-xl: 2rem; --font-l: 1.5rem; --font-n: 1rem; --font-s: .85rem; --font-xs: .65rem; /* Font Weights */ --weight-extraheavy: 700; --weight-heavy: 500; --weight-normal: 300; /* Links */ --link-decoration-thickness: .1rem; /* Borders */ --border-nav: 1px solid var(--text-color); --border-nav-currentpage: 20px solid var(--contrast-color); --border-nav-hover: 20px solid var(--text-color); --border-thin: 1px solid var(--color-gray-20); /* Shadow */ --box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2); /* Components */ --wc-card-background-color: var(--card-color); --wc-card-border-radius: var(--border-radius); --wc-card-box-shadow: var(--box-shadow); --wc-link-color: var(--text-color); --wc-link-decoration-color: var(--contrast-color); --wc-link-decoration-thickness: var(--link-decoration-thickness); --wc-comment-text-margin: auto auto auto 4rem; --wc-profile-pic-size: 3rem; --wc-profile-pic-border-radius: 10rem; } @media (prefers-color-scheme: dark) { :root { --color-gray-20: #e0e0e0; --color-gray-90: #dad8d8; --card-color: #333333; --contrast-color: #04c49e; /* --text-color is assigned to --color-gray-_ above */ --text-color-link: var(--text-color); --background-color: #15202b; --logo-filter: none; --icon-filter: brightness(0) saturate(100%) invert(9%) sepia(76%) saturate(340%) hue-rotate(168deg) brightness(95%) contrast(94%); } } @media(max-width: 556px) { :root { /* Borders */ --border-nav-currentpage: 15px solid var(--contrast-color); /* Font Sizes */ --font-xxl: 2.25rem; --font-xl: 1.5rem; --font-l: 1.5rem; --font-n: 1rem; } } /* Global stylesheet */ * { box-sizing: border-box; line-height: calc(1em + 0.5rem); } html, body { background-color: var(--background-color); color: var(--text-color); font-family: var(--font-family); font-size: 13px; font-variant-Ligatures: normal; font-weight: var(--weight-normal); margin: 0 auto; padding: 0; } html { overflow-y: scroll; } body { max-width: 40em; } a { text-decoration-color: var(--contrast-color); text-decoration-thickness: var(--link-decoration-thickness); transition: var(--transition-normal); } /* https://www.a11yproject.com/posts/how-to-hide-content/ */ .visually-hidden { clip: rect(0 0 0 0); clip-path: inset(50%); height: 1px; overflow: hidden; position: absolute; white-space: nowrap; width: 1px; } footer { margin-top: var(--triple-gap); padding: var(--single-gap); } footer .copyright-notice { padding-right: var(--single-gap); } footer .webring { display: inline-block; padding-right: var(--single-gap); } footer p { font-size: var(--font-s); } h1, h2, h3 { color: var(--text-color); } h1 { font-family: var(--font-family-headline); font-weight: var(--weight-extraheavy); font-size: var(--font-xxl); font-style: normal; margin-top: var(--triple-gap); margin-bottom: 0; } h2 { font-size: var(--font-xl); font-weight: var(--weight-extraheavy); margin: var(--quad-gap) auto 0 auto; } h3 { font-size: var(--font-l); } hr { border-top: var(--border-thin); } .logo { filter: var(--logo-filter); } main { --border-nav-currentpage: 15px solid var(--contrast-color); padding: var(--single-gap); } main > p > img, main > p > a > img { width: 100%; padding-top: var(--double-gap); } p:last-child { margin-bottom: 0; } p, li { font-size: var(--font-n); } figure { margin: 0; padding: var(--single-gap) 0 0 0; width: 100%; } figure > a > img { padding: 0; width: 100%; box-shadow: .75em .75em 0 0 var(--contrast-color); } figcaption { text-align: center; padding-top: var(--single-gap); } .page-block { margin-bottom: var(--triple-gap); } .big-link { width: 100%; padding: var(--half-gap); border: var(--border-nav); border-radius: var(--border-radius); margin: var(--single-gap) auto var(--single-gap) auto; transition: var(--transition-normal); } .big-link:hover { border-color: var(--contrast-color); } a[href]:not(.icon-button) { color: var(--text-color-link); } a[href]:visited { color: var(--text-color-link); } a[href]:hover:not(.icon-button), a[href]:active:not(.icon-button) { color: var(--contrast-color); } .links-nextprev { list-style: none; padding: 0 0 var(--single-gap) 0; margin-top: var(--single-gap); } table { margin: 1em 0; } table td, table th { padding-right: 1em; } /* Comments */ .comment-ingress { margin-bottom: var(--double-gap); } #comment-section h2 { margin: var(--quad-gap) auto 0 auto; } wc-comment::part(author-link) { font-size: var(--font-n); font-weight: var(--weight-extraheavy); text-decoration: none; } wc-comment::part(main) { margin-bottom: var(--double-gap); } wc-comment::part(publish-date) { font-weight: var(--weight-heavy); font-size: var(--font-s); margin-top: -.25rem; } /* Code Fences */ pre, code { font-family: var(--font-family-monospace); } pre:not([class*="language-"]) { margin: .5em 0; -moz-tab-size: var(--syntax-tab-size); -o-tab-size: var(--syntax-tab-size); tab-size: var(--syntax-tab-size); -webkit-hyphens: none; -ms-hyphens: none; hyphens: none; direction: ltr; text-align: left; white-space: pre; word-spacing: normal; word-break: normal; } code { word-break: break-all; } /* Header */ header { align-items: end; display: flex; flex-wrap: wrap; gap: 1em .5em; padding: 1em; } .home-link { align-items: end; display: flex; font-size: var(--font-n); font-weight: var(--weight-extraheavy); margin-right: var(--double-gap); } .home-link:link:not(:hover) { text-decoration: none; } .home-link img { width: 3rem; } /* Nav */ .nav { padding: 0; margin: 0; list-style: none; } nav ul { align-items: end; display: flex; justify-content: space-between; width: 20rem; } .nav-icon { fill: var(--color-gray-90); height: .8rem; margin-right: .25rem; padding-bottom: .3rem; transition: var(--transition-normal); width: var(--single-gap); } .nav-item { display: inline-block; text-decoration: none; } .nav-item li { align-items: end; border-top: var(--border-nav); color: var(--text-color); display: flex; font-size: var(--font-xs); font-weight: var(--weight-heavy); height: 2.8rem; margin-right: .5em; margin-bottom: 0; text-transform: uppercase; transition: var(--transition-normal); letter-spacing: .15rem; } .nav-item li:hover { border-top: var(--border-nav-hover); } .nav-item a[href]:visited { color: var(--text-color); } .nav-item a[href]:hover { color: var(--text-color); text-decoration: none; } .nav-item a[href]:not(:hover) { color: var(--text-color); text-decoration: none; } .nav-item li[data-currentpage="true"] { border-top: var(--border-nav-currentpage); color: var(--contrast-color); } .nav a[href][aria-current="page"] { color: var(--text-color); } .subscribe:hover { color: var(--text-color); } /* Posts list */ .postlist h2 { margin-bottom: var(--double-gap); } .postlist h3 { margin-top: 0; } .postlist-item-container { display: flex; flex-flow: column nowrap; } .postlist-item { align-items: flex-start; background-color: var(--card-color); border-radius: var(--border-radius); box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2); display: flex; flex-flow: row nowrap; justify-content: flex-start; margin-bottom: var(--double-gap); padding: var(--single-gap) 1.1rem var(--single-gap) 1.1rem; width: 100%; } .post-image-container { border-radius: var(--border-radius); margin-right: var(--single-gap); max-height: 15rem; overflow: hidden; } .postlist-date, .postlist-item:before { color: var(--color-gray-90); font-size: var(--font-s); /* 13px /16 */ } .postlist-date { word-spacing: -0.5px; } .postlist-link { font-size: var(--font-xl); /* 19px /16 */ font-weight: var(--weight-extraheavy); padding-right: .5em; text-decoration: none; } .postlist-link h3 { font-size: var(--font-l); margin-bottom: 0; } .postlist-item-active .postlist-link { font-weight: var(--weight-extraheavy); } .post-copy { display: flex; flex-flow: column wrap; } .post-copy a h3 span { font-size: var(--font-s); font-weight: var(--weight-normal); text-transform: uppercase; letter-spacing: .15rem; } .post-image { width: 15rem; height: 15rem; object-fit: cover; object-position: 50% 50%; } /* Tags */ a.post-tag { color: var(--text-color-tag); padding-right: var(--half-gap); text-decoration: none; } a.post-tag:before { content: "#"; } a.post-tag:visited { color: var(--text-color-tag); } a.post-tag:hover { color: var(--text-color-tag); } .tag-feed-icon { fill: var(--rss-orange); height: 3.5rem; transition: var(--transition-normal); width: var(--double-gap); } .taglist { display: flex; flex-flow: row wrap; list-style-type: none; padding-left: 0; } .taglist li { margin: 0em .5em 1.25em 0em; } .taglist li a { font-size: var(--font-l); } .postlist-item > .post-tag { align-self: center; } /* Article / Post */ .post h2 { font-size: var(--font-l); } /* Post Metadata */ .post-metadata { margin-bottom: var(--double-gap); margin-top: var(--single-gap); padding: 0 0 0 .4rem; } .post-metadata p, .post-metadata ul, .post-metadata ul li, .post-metadata time { display: flex; flex-flow: row wrap; font-size: var(--font-s); font-weight: var(--weight-heavy); list-style: none; margin: 0; padding-left: 0em; } .post-metadata time { padding-left: .15rem; } /* Direct Links / Markdown Headers */ a.header-anchor { font-style: normal; margin-left: .1em; text-decoration: none; } a[href].header-anchor, a[href].header-anchor:visited { color: transparent; } a[href].header-anchor:focus, a[href].header-anchor:hover { text-decoration: underline; } a[href].header-anchor:focus, :hover > a[href].header-anchor { color: #aaa; } h2 + .header-anchor { font-size: var(--font-l); } /* Mobile Styles */ @media(max-width: 556px) { body { padding: 0rem 1.25rem 0rem 1.25rem; } figcaption { font-size: var(--font-n); } h1 { font-size: var(--font-xxl); margin-top: var(--single-gap); padding-top: 0; } h2, .postlist h2, main h2 { font-size: var(--font-xl); margin-bottom: var(--single-gap); } h3, .post-copy a h3 { font-size: 1.25rem; } /* Header */ header { padding: 0rem var(--half-gap) var(--single-gap) var(--half-gap); margin-bottom: 0; } .home-link { max-width: 1rem; margin-top: var(--single-gap); } /* Footer */ footer .webring { display: block; } /* Nav */ .nav { flex-flow: row wrap; } .nav-item { margin-right: var(--half-gap); } .nav-item li { height: 2rem; } .nav-item li:hover { border-top: 2px solid var(--contrast-color); } nav ul { align-items: end; display: flex; flex-flow: row nowrap; justify-content: auto; width: auto; } /* Posts List */ .postlist { padding-top: 0; } .postlist-item { flex-flow: column wrap; width: 100% } .postlist-link { width: 100%; padding: 0; } .post-image { width: 100%; min-width: 100%; } .post-image-container { margin-right: 0; max-height: 10em; width: 100%; } .post-metadata { margin-bottom: var(--single-gap); } p, p.nodropcap, .post-copy p { font-size: var(--font-n); margin-top: var(--single-gap); } .post-metadata time, time.postlist-date { font-size: var(--font-s); } .post-tag, a.post-tag { font-size: var(--font-xs); } .tag-feed-icon { height: 2rem; transition: var(--transition-normal); width: var(--single-gap); } .taglist { flex-flow: column nowrap; } .taglist li a { font-size: var(--font-n); } }