:root { --color-gray-1: #e0e0e0; --color-gray-2: #c0c0c0; --color-gray-3: #363636; --color-gray-4: #202020; --color-purple-1: #9c87ca; --color-purple-2: #8160ce; --color-purple-3: #713aa9; --color-purple-4: #5202c2; --nearly-background: #efefef; --background-color: #fff; --text-color: var(--color-gray-4); --text-color-link: var(--color-purple-2); --text-color-link-active: var(--color-purple-1); --text-color-link-visited: var(--color-purple-3); --syntax-tab-size: 2; } @media (prefers-color-scheme: dark) { :root { --color-gray-1: #202020; --color-gray-2: #363636; --color-gray-3: #c0c0c0; --color-gray-4: #e0e0e0; --text-color-link: var(--color-purple-3); --text-color-link-active: var(--color-purple-4); --text-color-link-visited: var(--color-purple-2); --background-color: var(--color-gray-1); --nearly-background: #212121; } } @font-face { font-family: "PublicSans"; src: url("/fonts/PublicSans-Regular.woff") format("woff"); } @font-face { font-family: "PublicSans"; src: url("/fonts/PublicSans-Italic.woff") format("woff"); font-style: italic; } @font-face { font-family: "PublicSans"; src: url("/fonts/PublicSans-Bold.woff") format("woff"); font-weight: bold; } @font-face { font-family: "PublicSans"; src: url("/fonts/PublicSans-BoldItalic.woff") format("woff"); font-weight: bold; font-style: italic; } /* Defaults */ :root { --font-family: "PublicSans", -apple-system, system-ui, sans-serif; --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; } [hidden] { display: none !important; } body { line-height: 1.5; color: var(--text-color); background-color: var(--background-color); font-family: var(--font-family); font-size: 18px; } @media print { body { line-height: 1.25; font-size: 12px; footer { display: none; } } } p:last-child { margin-bottom: 0; } a[href] { color: var(--text-color-link); } a[href]:visited { color: var(--text-color-link-visited); } a[href]:hover, a[href]:active { color: var(--text-color-link-active); } nav { width: 85%; margin-inline: auto; display: grid; grid-template-areas: "logo links button"; grid-template-columns: 1fr 4fr 48px; border-bottom: 1px dashed var(--text-color); align-items: center; } .avatar-and-title { display: flex; height: 48px; text-wrap-mode: nowrap; align-items: center; } .avatar-and-title * img { margin-right: 8px; max-width: 48px; } .avatar-and-title a[href] { text-decoration: none; color: inherit; } #nav-toggle { display: none; } .hamburger { display: none; grid-column: 3; } .hamburger::after { display: none; } nav ul { grid-column: 2; font-size: 1rem; margin-left: initial; list-style-type: none; padding: inherit; display: flex; flex-direction: row; flex-wrap: wrap; justify-content: flex-end; gap: 0 1rem; } @media screen and (max-width: 768px) { .collapsed-nav { display: inline; } nav ul { display: none; font-size: 2rem; grid-column: 1 / 3; } .hamburger { display: inline; font-size: 3rem; } /* when hamburger icon is checked, nav links will pop out */ .hamburger::after { display: inline; content: "≡"; } #nav-toggle:checked ~ ul { display: flex; flex-direction: column; } #nav-toggle:checked ~ .hamburger::after { content: "✕"; } } footer { width: 85%; margin-inline: auto; display: grid; border-top: 1px dashed var(--text-color); justify-content: end; align-items: center; } footer ul { grid-column: 2; font-size: 1rem; margin-left: initial; list-style-type: none; padding: inherit; display: flex; flex-direction: row; flex-wrap: wrap; justify-content: flex-end; gap: 0 1rem; } img + .caption { width: 60%; margin-inline: auto; font-size: 0.8rem; font-style: italic; text-align: center; text-wrap: balance; } article { width: 84%; margin-inline: auto; max-width: 720px; min-height: 500px; margin-block-end: 24px; } article img { max-width: 100%; } article img:not(.l) { display: block; margin-inline: auto; margin-block: 6px; } article blockquote { margin-left: inherit; padding-left: 10px; border-left: 4px solid var(--color-gray-2); font-size: 0.9em; } /* general purpose - sigils */ .sigil { width: 48px; aspect-ratio: 1 / 1; mask: no-repeat 100% 100%; mask-image: url(/sigils/blur-radial.svg); mask-size: cover; background-color: var(--text-color); } .music-circle { mask-image: url(/sigils/music-circle.svg); } .radio { mask-image: url(/sigils/radio.svg); } .bookmark-check { mask-image: url(/sigils/bookmark-check.svg); } .binoculars { mask-image: url(/sigils/binoculars.svg); } .chartbar { mask-image: url(/sigils/chartbar.svg); } .die { mask-image: url(/sigils/die.svg); } .message-image { mask-image: url(/sigils/message-image.svg); } .map { mask-image: url(/sigils/map.svg); } .microphone { mask-image: url(/sigils/microphone.svg); } .tongue-out { mask-image: url(/sigils/tongue-out.svg); } .at-sign { mask-image: url(/sigils/at-sign.svg); } .fish { mask-image: url(/sigils/fish.svg); } .speaker { mask-image: url(/sigils/speaker.svg); } .speedometer { mask-image: url(/sigils/speedometer.svg); } .pencil { mask-image: url(/sigils/pencil.svg); } .sword { mask-image: url(/sigils/sword.svg); } .rss { mask-image: url(/sigils/rss.svg); } .sound { mask-image: url(/sigils/sound.svg); } /* - index.md - */ .front-page-feature { max-width: 640px; margin-block: 72px; margin-inline: auto; display: flex; flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 1.5rem; } .front-page-feature * img { width: 100%; } .front-page-feature div { width: 72px; aspect-ratio: 1 / 1; --translate-x: 0px; --translate-y: 0px; --rotation: 0deg; transform: translate(var(--translate-x), var(--translate-y)) rotate(var(--rotation)); } .front-page-feature div:nth-child(2n + 8) { --translate-x: 22px; --translate-y: 17px; --rotation: 18deg; } .front-page-feature div:nth-child(6n + 1) { --translate-x: 5px; --translate-y: -4px; --rotation: -24deg; } .front-page-feature div:nth-child(7n + 4) { --translate-x: 15px; --translate-y: -2px; --rotation: 87deg; } .front-page-feature div:nth-child(5n + 1) { --translate-x: 9px; --translate-y: 16px; --rotation: 9deg; } .front-page-feature div:nth-child(3n + 3) { --translate-x: 4px; --translate-y: -1px; --rotation: deg; } .front-page-feature div:nth-child(9n + 4) { --translate-x: 18px; --translate-y: -4px; --rotation: 0deg; } .front-page-feature div:nth-child(n) .sigil { background-color: var(--color-purple-2); } .front-page-feature div:nth-child(2n) .sigil { background-color: var(--color-purple-1); } .front-page-feature div:nth-child(3n) .sigil { background-color: var(--color-purple-4); } .front-page-feature div:nth-child(5n) .sigil { background-color: var(--color-purple-3); } .front-page-feature .sigil.blur-radial { background-color: var(--nearly-background) !important; } @media (max-width: 440px) { .front-page-feature { gap: unset; translate: -12px 0; } } @media (prefers-color-scheme: dark) { .front-page-feature div:nth-child(n) .sigil { background-color: var(--color-purple-3); } .front-page-feature div:nth-child(2n) .sigil { background-color: var(--color-purple-4); } .front-page-feature div:nth-child(3n) .sigil { background-color: var(--color-purple-1); } .front-page-feature div:nth-child(5n) .sigil { background-color: var(--color-purple-2); } } /* - projects.md - */ .projects-intro { margin-bottom: 1rem; } .project-card { display: grid; grid-template-rows: 2rem 1fr; grid-template-columns: 48px 1fr; align-items: center; margin-bottom: 36px; } .project-card > a[href] { text-decoration: none; color: inherit; } .project-card > .description { grid-row: 2; grid-column: 1 / 3; min-height: 64px; margin-left: 12px; padding-left: 12px; margin-block: 12px; border-left: 4px solid var(--color-gray-2); font-size: 0.9em; } /* - writing.md - */ .writing-intro { margin-bottom: 1rem; } .writing-card { display: grid; grid-template-rows: repeat(3, auto); grid-template-columns: 1fr; align-items: center; } .writing-card * a[href] { text-decoration: none; color: inherit; } .writing-card * h2 { margin-block: unset; } .writing-card > .date { grid-row: 2; font-size: 0.75em; } .writing-card > .description { grid-row: 3; min-height: 64px; margin-left: 12px; padding-left: 12px; margin-block: 12px; border-left: 4px solid var(--color-gray-2); font-size: 0.9em; }