@font-face {
    font-family: "Geist";
    src: url("fonts/geist-regular.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Untitled Serif";
    src: url("fonts/untitled-serif-regular.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

:root {
    --fg: #eee;
    --muted: #777;
    --date: #555;
    --line: #2a2a2a;
    --bg: #111;
    color-scheme: dark;
}

* {
    margin: 0;
    padding: 0;
}

body {
    background: var(--bg);
    color: var(--fg);
    font-family: "Untitled Serif", Georgia, serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
    padding: 2.5rem 2rem;
    max-width: 34rem;
}

h1 {
    font-size: inherit;
    font-weight: inherit;
}

header {
    margin-bottom: 4rem;
}

main {
    position: relative;
    padding-left: 1.5rem;
}

main::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.25em;
    bottom: 0.25em;
    width: 1px;
    background: var(--line);
}

.entry {
    position: relative;
    margin-bottom: 2rem;
}

.entry.current::before {
    content: "";
    position: absolute;
    left: calc(-1.5rem - 1px);
    top: 0.25em;
    width: 3px;
    height: 1em;
    background: var(--fg);
}

.muted {
    color: var(--muted);
}

a {
    color: var(--fg);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
    text-underline-offset: 0.15em;
}

.date {
    color: var(--date);
    font-family: "Geist", ui-sans-serif, sans-serif;
    font-size: 0.75rem;
    margin-left: 0.25rem;
}

.photo {
    position: fixed;
    top: 50%;
    left: calc(38rem + (100vw - 38rem) / 2);
    transform: translate(-50%, -50%);
}

.photo img {
    display: none;
    height: 30rem;
    max-height: 70vh;
    width: auto;
    max-width: 40vw;
    object-fit: contain;
}

.photo img.landscape {
    height: 22rem;
    max-height: 55vh;
}

.photo img.visible {
    display: block;
}

@media (max-width: 48rem) {
    .photo {
        display: none;
    }
}
