/* sites — laura.computer */

@font-face {
    font-family: "Junicode";
    src: url("assets/font/Junicode.woff") format("woff");
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: "Junicode";
    src: url("assets/font/Junicode-Italic.woff") format("woff");
    font-weight: 400;
    font-style: italic;
}

@font-face {
    font-family: "Junicode";
    src: url("assets/font/Junicode-Bold.woff") format("woff");
    font-weight: 700;
    font-style: normal;
}

@font-face {
    font-family: "Junicode";
    src: url("assets/font/Junicode-BoldItalic.woff") format("woff");
    font-weight: 700;
    font-style: italic;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow-x: hidden !important;
    overflow-y: scroll;
    scroll-behavior: smooth;
}

:root {
    --lineHeight: 22.5px;
    --hairlineThickness: 1px;

    --background-color-1: #ffffff;
    --background-color-2: #fcfdfd;
    --background-color-3: #d7d7d7;

    --text-color-1: #08090a;
    --text-color-2: #a9a9a8;
    --text-color-3: #d9d9d9;

    --accent-1: #777777;
    --border-1: #e4e4e4;
    --hover-color-1: #eeeeee;

    --text-body-sans: 400 1rem / 1.4 Helvetica, Arial, sans-serif;
    --text-body-serif: 400 1rem / 1.4 "Junicode", serif;
    --text-small: 400 0.75rem / 1.4 Helvetica, Arial, sans-serif;
    --text-title: 400 1.5rem / 1.33 "Junicode", serif;
    --text-display: 400 2.5rem / 1.1 "Junicode", serif;

    --space-1: 4px;
    --space-2: 8px;
    --space-3: 16px;
    --space-4: 24px;
    --space-5: 32px;
    --space-6: 48px;
}

body {
    font: var(--text-body-sans);
    color: var(--text-color-1);

    background-color: var(--background-color-1);

    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    -moz-osx-font-smoothing: grayscale;
    -webkit-text-size-adjust: 100%;

    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--lineHeight);

    text-wrap: pretty;
    display: grid;
    grid-template-columns: [feed] 1fr [sidebar]350px;
    width: 100%;
    gap: var(--space-2);
}

h1 {
    font: var(--text-title);
    margin-left: var(--space-1);
}
a {
    text-decoration: none;
}
main {
    grid-column: feed;
    padding: var(--space-2);
    font: var(--text-body);
}

aside {
    grid-column: sidebar;
    height: 100dvh;
    position: sticky;
    top: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    font: var(--text-body-sans);
    padding: var(--space-5) 0;
}
div.top {
    overflow-y: auto;
    height: 300px;
}
ul {
    list-style: none;
    padding: 0;
}
li {
    display: flex;
    flex-direction: row;
    justify-content: left;
    align-items: center;
}
li a {
    text-decoration: none;
    color: currentColor;
}
li p {
    padding: 2px 48px 2px 0;
}
div.index-link {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: end;
    flex: 1;
    transition: all 0.2s ease;
}
.index-link a:hover path {
    fill: #d7d7d7;
}
.index-link a:hover circle {
    stroke: #d7d7d7;
}
li.done {
    color: var(--text-color-1);
}
li.current {
    color: var(--text-color-2);
}
li.inactive {
    color: var(--text-color-3);
}
div.status-marker-done {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    margin: 0 4px 0 8px;
    background-color: var(--background-color-1);
}
div.status-marker-current {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    margin: 0 4px 0 8px;
    background-color: var(--text-color-2);
    border: 1px solid var(--text-color-2);
}
div.status-marker-inactive {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    margin: 0 4px 0 8px;
    background-color: var(--background-color-1);
}
div.bottom {
    font: var(--text-body-serif);
    padding: var(--space-1);
}
div.bottom p {
    margin: var(--space-3) var(--space-1) var(--space-4) 0;
}
div.bottom a {
    font: var(--text-body-small);
    color: var(--text-color-2);
    text-decoration: none;
    cursor: pointer;
    padding: 0;
}
div.bottom a.name {
    font: var(--text-body-serif);
    color: var(--text-color-2);
    text-decoration: none;
    padding: 0;
}
div.bottom a.name:hover {
    transition: ease 0.2 background;
    color: var(--text-color-1);
    text-decoration: underline;
    text-underline-offset: 0.1em;
    text-decoration-color: var(--border-color);
}
.page-title {
    display: flex;
    flex-direction: column;
    justify-content: start;
    margin-bottom: var(--space-5);
    color: var(--text-color-1);
    padding: 0;
}
.page-title svg path,
.page-title svg circle {
    transition: all 0.2s ease;
}
.page-title a:hover path {
    fill: #d7d7d7;
}
.page-title a:hover circle {
    stroke: #d7d7d7;
}
.contact-links {
    display: flex;
    gap: var(--space-4);
    font: var(--text-small);
    margin-left: var(--space-1);
}
.empty {
    height: 300px;
}
article {
    width: 100%;
    height: fit-content;
    font: var(--text-body-sans);
    margin-bottom: var(--space-4);
}
article a {
    text-decoration: none;
}
article a:not(.inactive):hover {
    opacity: 0.5;
    transition: opacity 0.5 ease-in-out;
}
article img.screenshot {
    width: 100%;
    height: auto;
    border-radius: 2px;
    border: 1px solid var(--hover-color-1);
}
article .site-title-link p.inactive {
    color: var(--text-color-3);
}
.site-title-link p:nth-child(1) {
    color: var(--text-color-1);
} /* 001 */
.site-title-link p:nth-child(2) {
    color: var(--text-color-1);
} /* On diagrams */
.site-title-link p:nth-child(3) {
    color: var(--text-color-2);
} /* description */
.site-title-link {
    display: grid;
    grid-template-columns: 80px 150px 1fr;
    margin: var(--space-4) 0;
}
.site-section {
    margin: 0;
    padding: 0;
    display: flex;
    gap: 0;
    flex-direction: column;
}
/* Slideshow */
.slideshow {
    position: relative;
    width: 100%;
    overflow: hidden;
    margin: 0;
    padding: 0;
    border: 1px solid var(--hover-color-1);
}
.slideshow-track {
    display: flex;
    transition: transform 0.4s ease;
}
.slideshow-track img {
    width: 100%;
    flex-shrink: 0;
}
.slideshow-controls {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: var(--space-4);
    margin: var(--space-1) 0;
    padding: var(--space-2);
    border: none;
}
.slideshow-controls button {
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: 1px solid var(--background-color-1);
    border-radius: 50%;
    padding: 0;
    cursor: pointer;
}
.slideshow-controls button:hover {
    border: none;
    border: 1px solid var(--border-1);
}

/* Tooltip for inactive/upcoming sites */
.tooltip {
    position: fixed;
    font: var(--text-small);
    color: var(--text-color-3);
    background: var(--background-color-1);
    border: 1px solid var(--border-1);
    padding: var(--space-1) var(--space-1);
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.15s ease;
    z-index: 10;
}

@media screen and (min-resolution: 2x) {
    :root {
        --hairlineThickness: 0.5px;
    }
}

@media (prefers-color-scheme: dark) {
    :root {
        --background-color-1: #08090a;
        --background-color-2: #1b1c1c;
        --background-color-3: #262726;

        --text-color-1: #e1e2e2;
        --text-color-2: #777777;
        --text-color-3: #373837;
    }
}

::selection {
    background-color: var(--accent-color-1);
}

/* Mobile */
@media screen and (max-width: 768px) {
    body {
        grid-template-columns: 1fr auto;
        grid-template-rows: auto 1fr;
    }

    aside {
        display: contents;
    }

    div.bottom {
        grid-column: 1 / -1;
        grid-row: 1;
    }

    div.top {
        grid-column: 2;
        grid-row: 2;
        height: auto;
        position: sticky;
        top: 0;
        align-self: start;
    }

    main {
        grid-column: 1;
        grid-row: 2;
    }

    /* hide titles in nav, show only numbers */
    li .site-link,
    li .asterisk-button {
        display: none;
    }

    /* stack description below number + title */
    .site-title-link {
        grid-template-columns: auto auto;
    }

    .site-title-link p:nth-child(3) {
        grid-column: 1 / -1;
    }
}
