@charset "UTF-8";

@font-face {
    font-family: "et-book";
    src: url("../fonts/et-book/et-book-roman-line-figures/et-book-roman-line-figures.eot");
    src: url("../fonts/et-book/et-book-roman-line-figures/et-book-roman-line-figures.eot?#iefix") format("embedded-opentype"), url("../fonts/et-book/et-book-roman-line-figures/et-book-roman-line-figures.woff") format("woff"), url("../fonts/et-book/et-book-roman-line-figures/et-book-roman-line-figures.ttf") format("truetype"), url("../fonts/et-book/et-book-roman-line-figures/et-book-line-figures.svg#etbookromanosf") format("svg");
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "et-book";
    src: url("../fonts/et-book/et-book-display-italic-old-style-figures/et-book-display-italic-old-style-figures.eot");
    src: url("../fonts/et-book/et-book-display-italic-old-style-figures/et-book-display-italic-old-style-figures.eot?#iefix") format("embedded-opentype"), url("../fonts/et-book/et-book-display-italic-old-style-figures/et-book-display-italic-old-style-figures.woff") format("woff"), url("../fonts/et-book/et-book-display-italic-old-style-figures/et-book-display-italic-old-style-figures.ttf") format("truetype"), url("../fonts/et-book/et-book-display-italic-old-style-figures/et-book-display-italic-old-style-figures.svg#etbookromanosf") format("svg");
    font-weight: normal;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: "et-book";
    src: url("../fonts/et-book/et-book-bold-line-figures/et-book-bold-line-figures.eot");
    src: url("../fonts/et-book/et-book-bold-line-figures/et-book-bold-line-figures.eot?#iefix") format("embedded-opentype"), url("../fonts/et-book/et-book-bold-line-figures/et-book-bold-line-figures.woff") format("woff"), url("../fonts/et-book/et-book-bold-line-figures/et-book-bold-line-figures.ttf") format("truetype"), url("../fonts/et-book/et-book-bold-line-figures/et-book-bold-line-figures.svg#etbookromanosf") format("svg");
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "et-book-roman-old-style";
    src: url("../fonts/et-book/et-book-roman-old-style-figures/et-book-roman-old-style-figures.eot");
    src: url("../fonts/et-book/et-book-roman-old-style-figures/et-book-roman-old-style-figures.eot?#iefix") format("embedded-opentype"), url("../fonts/et-book/et-book-roman-old-style-figures/et-book-roman-old-style-figures.woff") format("woff"), url("../fonts/et-book/et-book-roman-old-style-figures/et-book-roman-old-style-figures.ttf") format("truetype"), url("../fonts/et-book/et-book-roman-old-style-figures/et-book-roman-old-style-figures.svg#etbookromanosf") format("svg");
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Fira Mono';
    src: url('../fonts/fira-mono/FiraMono-Bold.ttf') format('truetype');
    font-display: swap;
}

@font-face {
    font-family: 'Fira Mono';
    src: url('../fonts/fira-mono/FiraMono-Medium.ttf') format('truetype');
    font-display: swap;
}

@font-face {
    font-family: 'Fira Mono';
    src: url('../fonts/fira-mono/FiraMono-Regular.ttf') format('truetype');
    font-display: swap;
}

@font-face {
    font-family: 'Ubuntu';
    src: url('../fonts/ubuntu/Ubuntu-Bold.ttf') format('truetype');
    font-display: swap;
}

@font-face {
    font-family: 'Ubuntu';
    src: url('../fonts/ubuntu/Ubuntu-BoldItalic.ttf') format('truetype');
    font-display: swap;
}

@font-face {
    font-family: 'Ubuntu';
    src: url('../fonts/ubuntu/Ubuntu-Italic.ttf') format('truetype');
    font-display: swap;
}

@font-face {
    font-family: 'Ubuntu';
    src: url('../fonts/ubuntu/Ubuntu-Light.ttf') format('truetype');
    font-display: swap;
}

@font-face {
    font-family: 'Ubuntu';
    src: url('../fonts/ubuntu/Ubuntu-LightItalic.ttf') format('truetype');
    font-display: swap;
}

@font-face {
    font-family: 'Ubuntu';
    src: url('../fonts/ubuntu/Ubuntu-Medium.ttf') format('truetype');
    font-display: swap;
}

@font-face {
    font-family: 'Ubuntu';
    src: url('../fonts/ubuntu/Ubuntu-MediumItalic.ttf') format('truetype');
    font-display: swap;
}

@font-face {
    font-family: 'Ubuntu';
    src: url('../fonts/ubuntu/Ubuntu-Regular.ttf') format('truetype');
    font-display: swap;
}


@font-face {
    font-family: "Libertinus Serif";
    font-style: normal;
    font-weight: 400;
    src: local("Libertinum Serif"), local("Linux Libertine O"), url("../fonts/libertinus-serif/LibertinusSerif-Regular.otf") format("opentype"), url("/fonts/LibertinusSerif-Regular.woff2") format("woff2");
    font-display: swap;
}

@font-face {
    font-family: "Libertinus Serif";
    font-style: italic;
    font-weight: 400;
    src: local("Libertinus Serif Italic"), url("../fonts/libertinus-serif/LibertinusSerif-Italic.otf") format("opentype"), url("/fonts/LibertinusSerif-Italic.woff2") format("woff2");
    font-display: swap;
}

@font-face {
    font-family: "Libertinus Serif";
    font-style: italic;
    font-weight: 400;
    src: local("Libertinus Serif Italic"), url("../fonts/libertinus-serif/LibertinusSerif-Italic.otf") format("opentype"), url("/fonts/LibertinusSerif-Italic.woff2") format("woff2");
    font-display: swap;
}

@font-face {
    font-family: "Libertinus Keyboard";
    font-style: normal;
    font-weight: normal;
    src: local("Libertinus Keyboard"), url("../fonts/libertinus-serif/LibertinusKeyboard-Regular.otf") format("opentype"), url("/fonts/LibertinusKeyboard-Regular.woff2") format("woff2");
    font-display: swap;
}

:root {
    /* Colors */
    --color-black: #000000;
    --color-gray-100: #f5f5f5;
    --color-gray-300: #d1d5db;
    --color-gray-500: #6b7280;
    --color-gray-600: #4b5563;
    --color-gray-700: #374151;
    --color-white: #ffffff;
    --borderColor: #e1e5e9;
    --backgroundColor: #ffffff;
    --textColor: #1a1a1a;
    --subtleBackgroundColor: #f8f9fa;
    --linkColor: #0066cc;
    --secondaryTextColor: #6c757d;
    --mutedTextColor: #adb5bd;

    /* Space variables - consolidate all spacing */
    --space-3xs: clamp(0.31rem, calc(0.31rem + 0vw), 0.31rem);
    --space-xs: clamp(0.88rem, calc(0.85rem + 0.11vw), 0.94rem);
    --flow-hspace: var(--space-xs);
    --font-size-s: clamp(0.8rem, 0.25vw + 0.74rem, 0.94rem);

    /* Timeline colors */
    --border-color: rgba(0, 0, 0, 0.3);
    --timeline-line-width: 2px;
    --timeline-marker-size: 10px;
    --timeline-marker-offset: -7px;
    --color-life: #f59e0b;
    --color-programming: wheat;
    --color-family: #ef4444;
    --color-work: #10b981;
    --color-projects: #3b82f6;
}

* {
    touch-action: manipulation;
}

/* Tufte CSS styles */
html {
    font-size: 15px;
}

body {
    width: 87.5%;
    margin-left: auto;
    margin-right: auto;
    padding-left: 12.5%;
    font-family: "Libertinus Serif", Palatino, "Palatino Linotype", "Palatino LT STD", "Book Antiqua", Georgia, serif;
    background-color: #fffff8;
    color: #111;
    max-width: 1400px;
    counter-reset: sidenote-counter;
}

/* Adds dark mode */
@media (prefers-color-scheme: dark) {
    body {
        background-color: #151515;
        color: #ddd;
    }

    .sidenote,
    .marginnote {
        color: #ddd;
    }
}

h1 {
    font-weight: 400;
    margin-top: 4rem;
    margin-bottom: 1.5rem;
    font-size: 3rem;
    line-height: 1;
    font-family: "Ubuntu", sans-serif;
    hyphens: none;
}

h2 {
    font-weight: bold;
    margin-top: 2.1rem;
    margin-bottom: 1.4rem;
    font-size: 2.2rem;
    line-height: 1;
    font-family: "Ubuntu", sans-serif;
    hyphens: none;
}

h1 a:link,
h2 a:link,
h3 a:link {
    background: none;
    text-decoration: none;
    font-feature-settings: normal;
    text-transform: initial;
}

h3 {
    font-weight: bold;
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 1.4rem;
    line-height: 1;
    font-family: "Ubuntu", sans-serif;
}

hr {
    display: block;
    height: 1px;
    width: 55%;
    border: 0;
    border-top: 1px solid #ccc;
    margin: 1em 0;
    padding: 0;
}

p.subtitle {
    font-style: italic;
    margin-top: 1rem;
    margin-bottom: 1rem;
    font-size: 1.8rem;
    display: block;
    line-height: 1;
}

.numeral {
    font-family: "Libertinus Serif", serif;
}

.danger {
    color: red;
}

article {
    padding: 5rem 0rem;
}

section {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

li.toc {
    list-style: none;
    line-height: 1.2rem;
}

ul.toc a:link {
    font-feature-settings: normal;
    text-transform: initial;
    text-decoration: none;
    background: none;
    font-family: "Ubuntu", sans-serif;
    font-size: 1rem;
}

ul.toc-level-1 {
    padding-left: 0px;
}

ul.toc-level-1>li>a {
    font-weight: bold;
}

ul.toc-level-2 {
    padding-left: 1em;
}

p,
dl,
ol,
ul {
    font-size: 1.4rem;
    line-height: 2rem;
}

p {
    margin-top: 1.4rem;
    margin-bottom: 1.4rem;
    padding-right: 0;
    vertical-align: baseline;
}

/* Chapter Epigraphs */
div.epigraph {
    margin: 5em 0;
}

div.epigraph>blockquote {
    margin-top: 3em;
    margin-bottom: 3em;
}

div.epigraph>blockquote,
div.epigraph>blockquote>p {
    font-style: italic;
}

div.epigraph>blockquote>footer {
    font-style: normal;
}

div.epigraph>blockquote>footer>cite {
    font-style: italic;
}

/* end chapter epigraphs styles */

blockquote {
    font-size: 1.4rem;
}

blockquote p {
    width: 55%;
    margin-right: 40px;
}

blockquote footer {
    width: 55%;
    font-size: 1.1rem;
    text-align: right;
}

section>p,
section>footer,
section>table {
    width: 55%;
}

/* 50 + 5 == 55, to be the same width as paragraph */
section>dl,
section>ol,
section>ul {
    width: 50%;
    -webkit-padding-start: 5%;
}

dt:not(:first-child),
li:not(:first-child) {
    margin-top: 0.25rem;
}

figure {
    padding: 0;
    border: 0;
    font: inherit;
    font-size: 100%;
    vertical-align: baseline;
    max-width: 55%;
    -webkit-margin-start: 0;
    -webkit-margin-end: 0;
    margin: 0 0 3em 0;
}

figcaption {
    float: right;
    clear: right;
    margin-top: 0;
    margin-bottom: 0;
    font-size: 1.1rem;
    line-height: 1.6;
    vertical-align: baseline;
    position: relative;
    max-width: 40%;
}

figure.fullwidth figcaption {
    margin-right: 24%;
}

a:link,
a:visited {
    color: inherit;
    text-underline-offset: 0.1em;
    text-decoration-thickness: 0.05em;
}

/* Sidenotes, margin notes, figures, captions */
img {
    max-width: 100%;
}

.sidenote,
.marginnote {
    color: black;
    float: right;
    clear: right;
    margin-right: -60%;
    width: 50%;
    margin-top: 0.3rem;
    margin-bottom: 0;
    font-size: 1.1rem;
    line-height: 1.3;
    vertical-align: baseline;
    position: relative;
    font-family: "Libertinus Serif", serif;
}

.sidenote-number {
    counter-increment: sidenote-counter;
}

.sidenote-number:after,
.sidenote:before {
    font-family: "et-book-roman-old-style" serif;
    position: relative;
    vertical-align: baseline;
}

.sidenote-number:after {
    content: counter(sidenote-counter);
    font-size: 1rem;
    top: -0.5rem;
    left: 0.1rem;
}

.sidenote:before {
    content: counter(sidenote-counter) " ";
    font-size: 1rem;
    top: -0.5rem;
}

blockquote .sidenote,
blockquote .marginnote {
    margin-right: -82%;
    min-width: 59%;
    text-align: left;
}

div.fullwidth,
table.fullwidth {
    width: 100%;
}

div.table-wrapper {
    overflow-x: auto;
    font-family: "Trebuchet MS", "Gill Sans", "Gill Sans MT", sans-serif;
}

table {
    font-family: "Gill Sans MT", sans-serif;
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 3px;
    margin-bottom: 20px;
    border-collapse: collapse;
}

table th,
table td {
    white-space: nowrap;
    padding: 8px;
    border: 1px solid #ddd;
    text-align: left;
    transition: background-color 0.15s ease;
}

table thead th {
    background-color: #f5f5f5;
    color: #333;
    font-weight: bold;
}

table thead th:nth-child(odd) {
    background-color: #fafafa;
}

table tbody tr:hover {
    background-color: wheat;
    color: black;
    cursor: pointer;
}

.sans {
    font-family: "Gill Sans", "Gill Sans MT", Calibri, sans-serif;
    letter-spacing: .03em;
}

code,
pre>code {
    font-family: 'Fira Mono', 'SF Mono', 'Monaco', 'Cascadia Code', 'Consolas', monospace;
    font-size: 1.0rem;
    line-height: 1.42;
    -webkit-text-size-adjust: 100%;
    /* padding-top: 2rem;
    padding-bottom: 2rem; */
    /* Prevent adjustments of font size after orientation changes in iOS. See https://github.com/edwardtufte/tufte-css/issues/81#issuecomment-261953409 */
}

pre[style].shiki {
    background-color: #1a1a1a !important;
}


/* Fix the code block styles with proper mobile handling */
pre {
    border-radius: .35em;
    position: relative;
    overflow-x: auto;
    /* Ensure horizontal scrolling works */
    overflow-wrap: break-word;
    /* Help with long lines */
}

article pre {
    padding-block: var(--space-xs);
    overflow-wrap: normal;
    overflow: auto;
    border: 1px solid #333;
}

article pre code>.line {
    padding-inline: var(--space-xs);
}

.code-wrapper {
    position: relative;
    overflow: visible;
    /* Ensure the description isn't clipped */
}

.code-wrapper .descr {
    --pad: 1.2rem;
    position: absolute;
    top: 0;
    right: 0;
    z-index: 10;
    pointer-events: none;
}

.code-wrapper .descr::before {
    font-size: var(--font-size-s);
    line-height: calc(2px + 2ex + 2px);
    font-family: "Fira Mono", monospace;
    background-color: #1a1a1a;
    color: #ffffff;
    padding: calc(var(--space-3xs) - 2px) var(--space-xs);
    border-radius: var(--space-3xs) var(--space-3xs) 0 0;
    content: attr(data-descr);
    display: block;
    white-space: nowrap;
}

.sans>code {
    font-size: 1.2rem;
}

h1>code,
h2>code,
h3>code {
    font-size: 0.80em;
}

/* @link https://utopia.fyi/type/calculator?c=320,18,1.2,1240,20,1.25,6,2,&s=0.75|0.5|0.25,1.5|2|3|4|6,s-l&g=s,l,xl,12 */
/* @link https://utopia.fyi/space/calculator?c=320,18,1.2,1240,20,1.25,6,2,&s=0.75|0.5|0.25,1.5|2|3|4|6|8|12|16|24|32|40|48,s-l&g=s,l,xl,12 */

.marginnote>code,
.sidenote>code {
    font-size: 1rem;
}

pre>code {
    font-size: 0.9rem;
    width: 52.5%;
    margin-left: 2.5%;
    display: block;
}

pre.fullwidth>code {
    width: 90%;
}

.fullwidth {
    max-width: 90%;
    clear: both;
}

span.newthought {
    font-variant: small-caps;
    font-size: 1.2em;
}

input.margin-toggle {
    display: none;
}

label.sidenote-number {
    display: inline-block;
    max-height: 2rem;
    /* should be less than or equal to paragraph line-height */
}

label.margin-toggle:not(.sidenote-number) {
    display: none;
}

.iframe-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 */
    padding-top: 25px;
    height: 0;
}

.sidenoteinline {
    display: inline-flex;
}

.iframe-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Sidenotes, margin notes, figures, captions */
/* img {
    max-width: 100%;
}

.sidenote,
.marginnote {
    color: rgb(70, 70, 70);
    float: right;
    clear: right;
    margin-right: -60%;
    width: 50%;
    margin-top: 0;
    margin-bottom: 0;
    font-size: 1.1rem;
    line-height: 1.3;
    vertical-align: baseline;
    position: relative;
}

.pagenote {
    color: rgb(70, 70, 70);
    float: left;
    clear: left;
    margin-left: -11.5%;
    width: 10%;
    margin-top: 10px;
    margin-bottom: 0;
    font-size: 1.1rem;
    line-height: 1.3;
    vertical-align: baseline;
    position: relative;
}

.sidenote-number {
    counter-increment: sidenote-counter;
}

.sidenote-number:after,
.sidenote:before {
    font-family: et-book-roman-old-style serif;
    position: relative;
    vertical-align: baseline;
}

.sidenote-number:after {
    content: counter(sidenote-counter);
    font-size: 1rem;
    top: -0.5rem;
    left: 0.1rem;
}

.sidenote:before {
    content: counter(sidenote-counter) " ";
    font-size: 1rem;
    top: -0.5rem;
}

blockquote .sidenote,
blockquote .marginnote {
    margin-right: -82%;
    min-width: 59%;
    text-align: left;
} */


open-stories .label {
    font-size: 0.8em;
}

open-stories::part(dialog):focus {
    outline: none;
}

open-stories:not(:defined) {
    pointer-events: none;
}

open-stories::part(metadata-content),
open-stories::part(metadata-summary),
open-stories::part(button) {
    font-family: var(--sansserif);
}

open-stories:not(:defined),
open-stories::part(button) {
    border: 1px solid var(--borderColor);
    box-shadow: inset 0 0 0 1.5px var(--backgroundColor);
    color: var(--textColor);
    background: var(--subtleBackgroundColor);
    padding: 1em 0;
    text-align: center;
    height: 75px;
    width: 75px;
    border-radius: 50%;
    font-size: 0.65em;
    box-sizing: border-box;
    align-items: center;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    transition: all 0.3s;
    line-height: normal;
    justify-content: center;
    cursor: pointer;
}

open-stories:not(:defined):hover,
open-stories::part(button):hover {
    background: var(--linkColor);
    color: var(--backgroundColor);
    border: 0;
    box-shadow: none;
    font-size: 0.7em;
}

open-stories:not([is-highlight])::part(button) {
    border-color: var(--secondaryTextColor);
}

open-stories:not(.is-read):not(.is-empty):not([is-highlight]):not(.is-loading)::part(button) {
    border-color: var(--linkColor);
}

open-stories.is-loading {
    opacity: 0.3;
    animation: loading 1s infinite alternate;
}

open-stories.is-loading::part(button) {
    pointer-events: none;
    border: 0;
}

open-stories.is-empty::part(button) {
    pointer-events: none;
    opacity: 0.5;
    overflow: hidden;
    position: relative;
}

open-stories.is-empty::part(button):before {
    display: block;
    content: '';
    border-left: 1px solid var(--mutedTextColor);
    position: absolute;
    transform: rotate(-45deg);
    top: 0;
    left: 0;
    width: 150%;
    height: 150%;
    transform-origin: top left;
}

@keyframes loading {
    0% {
        opacity: 0.3;
    }

    100% {
        opacity: 0.6;
    }
}

.back-link {
    text-decoration: none;
    color: #dbdfdf;
    background-color: #2c2c2c;
    width: 1.6em;
    text-align: center;
    line-height: 1.6em;
    aspect-ratio: 1/1;
    display: inline-block;
    border-radius: 4em
}

.inline-hr {
    border: 0;
    border-left: 0.3rem solid var(--borderColor);
    height: .3rem;
    display: inline-block;
    vertical-align: middle;
    max-width: 4.5px;
    align-self: center;
    margin: 0
}

.hr {
    border: 0;
    border-left: 0.7rem solid wheat;
    height: .7rem;
    margin: 1rem 0;
    background: none
}

nav {
    display: flex;
    flex-wrap: wrap;
    gap: .6em;
    align-items: center;
    margin: .6em 0
}

a,
u {
    text-decoration-thickness: 0.5px
}

a {
    color: var(--textColor);
    text-underline-offset: 3px;
    font-family: 'Gill Sans', 'Gill Sans MT', Helvetica, 'Trebuchet MS', sans-serif;
    line-height: 1.62em;
    font-size: 1.3rem;
    word-wrap: break-word
}

a[href^='http']:not([href^='https://adediiji.uk/'],
    .hidden-link,
    :has(img),
    :has(video),
    :has(picture),
    :has(audio)):after {
    content: '┓' / ', external';
    font-family: 'Gill Sans', 'Gill Sans MT', Helvetica, 'Trebuchet MS', sans-serif;
    font-size: 0.5em;
    line-height: 0;
    text-decoration: none;
    position: absolute;
    margin-top: calc(1rem - 1.7em);
    line-height: 1em
}

.styled-link {
    margin-left: .4rem;
    font-size: .7em
}

.terminal {
    list-style: none;
    padding-left: 0;
}

.terminal li {
    margin-bottom: 4em;
}

.terminal ul {
    margin-top: 0.5rem
}

time.monospace {
    font-size: .7em;
    color: var(--mutedTextColor)
}

.logo-container {
    line-height: 1em;
    color: var(--mutedTextColor);
    display: flex;
    align-items: center
}

/* https: //www.jonashietala.se/blog/2024/08/25/a_simple_timeline_using_css_flexbox/ */
@media (prefers-color-scheme: dark) {
    :root {
        --border-color: grey;
        --color-life: #fbbf24;
        --color-programming: grey;
        --color-family: #f87171;
        --color-work: #34d399;
        --color-projects: #60a5fa;
    }
}

/* Container */
.timeline-container {
    max-width: 1024px;
    width: 90%;
    /* margin: 0 auto; */
}

/* Events container - no special styling needed */
.events {
    /* Just a container */
}

/* Individual timeline event */
.event {
    padding: 3em 2em 1em;
    position: relative;
    color: rgba(0, 0, 0, 0.7);
    border-left: var(--timeline-line-width) solid var(--border-color);
    display: block;
    /* Override any flex from previous CSS */
}

@media (prefers-color-scheme: dark) {
    .event {
        color: rgba(255, 255, 255, 0.8);
    }
}

/* Date display using the time element */
.event .content time {
    position: absolute;
    /* left: 2em; */
    font-weight: bold;
    top: 1em;
    display: block;
    font-family: 'Gill Sans', sans-serif;
    font-weight: 700;
    font-size: 1.55rem;
    color: inherit;
}

/* Hide the default SVG and create our own marker */
.event .marker svg {
    display: none;
}

/* Create the timeline marker (circle) */
.event .marker {
    width: var(--timeline-marker-size);
    height: var(--timeline-marker-size);
    display: block;
    top: 1em;
    position: absolute;
    left: var(--timeline-marker-offset);
    border-radius: 50%;
    border: 2px solid var(--border-color);
    background: white;
}

@media (prefers-color-scheme: dark) {
    .event .marker {
        background: #1f2937;
    }
}

/* Content styling */
.event .content {
    /* Content flows naturally */
}

.event .content .text {
    /* Text flows naturally */
}

.event .content .text p {
    font-size: 1.257rem;
    margin: 0.5em 0;
}

.event .content .text p:last-child {
    margin-bottom: 0;
}

/* Fade the border on the last item */
.event:last-child {
    border-image: linear-gradient(to bottom,
            var(--border-color) 60%,
            rgba(0, 0, 0, 0)) 1 100%;
}

@media (prefers-color-scheme: dark) {
    .event:last-child {
        border-image: linear-gradient(to bottom,
                var(--border-color) 60%,
                rgba(255, 255, 255, 0)) 1 100%;
    }
}

/* Event type specific marker colors */
.event.life .marker {
    background: var(--color-life);
    border-color: var(--color-life);
}

.event.programming .marker {
    background: var(--color-programming);
    border-color: var(--color-programming);
}

.event.family .marker {
    background: var(--color-family);
    border-color: var(--color-family);
}

.event.work .marker {
    background: var(--color-work);
    border-color: var(--color-work);
}

.event.projects .marker {
    background: var(--color-projects);
    border-color: var(--color-projects);
}

/* Consolidated mobile styles - remove conflicts */
@media (max-width: 760px) {
    body {
        width: 84%;
        padding-left: 8%;
        padding-right: 8%;
    }

    /* Code block mobile fixes */
    pre {
        max-width: 100% !important;
        /* Override the 900px */
        margin-inline: 0;
        border-radius: 4px;
        font-size: 0.85rem;
        /* Slightly smaller on mobile */
    }

    .code-wrapper {
        max-width: 100% !important;
        overflow: visible;
    }

    .code-wrapper .descr {
        --pad: 0.6rem;
        /* Ensure it stays visible on small screens */
        position: absolute;
        top: 0;
        right: 0;
    }

    .code-wrapper .descr::before {
        font-size: 0.7rem;
        padding: 2px calc(var(--space-xs) * 0.5);
        border-radius: 2px 2px 0 0;
    }

    /* Adjust code line padding for mobile */
    article pre code>.line {
        padding-inline: calc(var(--space-xs) * 0.5);
    }

    article pre {
        padding-block: calc(var(--space-xs) * 0.5);
    }

    /* Original mobile styles for other elements */
    hr,
    section>p,
    section>footer,
    section>table {
        width: 100%;
    }

    pre>code {
        width: 97%;
        /* Changed from 50% to 100% for better mobile experience */
    }

    section>dl,
    section>ol,
    section>ul {
        width: 90%;
    }

    figure {
        max-width: 90%;
    }

    figcaption,
    figure.fullwidth figcaption {
        margin-right: 0%;
        max-width: none;
    }

    blockquote {
        margin-left: 1.5em;
        margin-right: 0em;
    }

    blockquote p,
    blockquote footer {
        width: 100%;
    }

    label.margin-toggle:not(.sidenote-number) {
        display: inline;
    }

    .sidenote,
    .marginnote,
    .pagenote {
        display: none;
    }

    .sidenote-number:after {
        text-decoration: underline;
    }

    .margin-toggle:checked+.sidenote,
    .margin-toggle:checked+.marginnote {
        display: block;
        float: left;
        left: 1rem;
        clear: both;
        width: 95%;
        margin: 1rem 2.5%;
        vertical-align: baseline;
        position: relative;
    }

    label {
        cursor: pointer;
    }

    div.table-wrapper,
    table {
        width: 85%;
    }

    img {
        width: 100%;
    }

    /* Timeline mobile adjustments */
    .timeline-container {
        width: 95%;
    }

    .event {
        padding: 2.5em 1.5em 1.5em;
    }

    .event .content time {
        font-size: 1.2rem;
        /* Increased from 0.7rem */
    }

    .event .content .text p {
        font-size: 1.1rem;
        /* Increased from 0.9rem */
    }
}

/* Extra small devices - additional fixes */
@media (max-width: 480px) {
    .code-wrapper .descr::before {
        font-size: 0.65rem;
        padding: 1px calc(var(--space-xs) * 0.3);
    }

    pre {
        font-size: 0.8rem;
    }

    article pre code>.line {
        padding-inline: calc(var(--space-xs) * 0.3);
    }
}

.projects {
    width: 100%;
    display: flex;
    flex-direction: column;
    opacity: 1;
}

.project {
    width: 100%;
    display: flex;
    flex-direction: row;
    margin: 0 auto;
    column-gap: clamp(16px, 6vw, 48px);
}

.projectInfo {
    font-family: "Gill Sans", sans-serif;
    height: fit-content;
    padding: clamp(16px, 6vw, 48px);
    padding-right: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: sticky;
    top: 0;
    width: 25%;
    min-width: 400px;
    flex-shrink: 0;
}

.media {
    width: 100%;
    position: relative;
    display: block;
    border-radius: 8px;
    aspect-ratio: 1/1;
    border: medium;
}

.media::after {
    content: '';
    position: absolute;
    inset: 0;
    border: 1px solid rgba(255, 255, 255, 0.2);
    pointer-events: none;
    z-index: 1;
    border-radius: inherit;
}

.media img,
.media video {
    position: absolute;
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.line {
    outline: none;
    border: none;
    height: 1px;
}
