@import url("https://fonts.googleapis.com/css2?family=Newsreader:ital,opsz,wght@0,6..72,400;0,6..72,600;1,6..72,400&display=swap");

@font-face {
  font-family: "Arial Narrow";
  src: url("/fonts/arialnarrow.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Arial Narrow";
  src: url("/fonts/arialnarrow_bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Arial Narrow";
  src: url("/fonts/arialnarrow_italic.ttf") format("truetype");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Arial Narrow";
  src: url("/fonts/arialnarrow_bolditalic.ttf") format("truetype");
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}

@font-face {
    font-family: "Austin News";
    src: url(/fonts/AustinNewsDeck-Light-Web.woff2);
    font-weight: 300;
    font-style: normal;
}

@font-face {
    font-family: "Austin News";
    src: url(/fonts/AustinNewsDeck-LightItalic-Web.woff2);
    font-weight: 300;
    font-style: italic;
}

@font-face {
    font-family: "Tex";
    src: url(/fonts/tex.woff2);
    font-weight: 300;
    font-style: normal;
}

@font-face {
    font-family: "Tex";
    src: url(/fonts/tex-italic.woff2);
    font-weight: 300;
    font-style: italic;
}

@media (prefers-color-scheme: dark) {
    html {
        background-color: #121212;
    }
}

:root {
  --hover-fg-light: #121212;
  --hover-fg-dark: #fff;
  --site-c1: #6F7BFF; 
  --site-c2: #FF6F6F; 
  --site-c3: #3FE28C; 
  --site-c4: #FFD84D; 

}

@media (prefers-color-scheme: light) {
    :root {
        --site-c1: #1f3fd1; 
        --site-c2: #c21d3a; 
        --site-c3: #0f7a55;
        --site-c4: #a67c00; 
    }

    html {
        background-color: #f0eee6;
    }
}

*, *::before, *::after {
    box-sizing: border-box;
}

* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

body, h1, h2, h3, h4, p, figure, blockquote, dl, dd {
    margin-block-end: 0; 
}

body {
    position: relative;
    margin: 0;
    margin-top: 20px;
    font-family: "Newsreader", serif;
    -moz-text-size-adjust: none;
    -webkit-text-size-adjust: none;
    text-size-adjust: none;
    min-height: 100vh;
    line-height: 1.5;
    scroll-behavior: smooth;
}

body::before {
  background-size: 25rem;
  background-repeat: repeat;
  top: 0;
}

body > ul::before,
body > main::before {
  background-repeat: repeat-x;
  background-size: 25rem;
  top: 0;
}

body > ul::after,
body > main::after {
  background-repeat: repeat-x;
  background-position-y: bottom;
  background-size: 35rem;
  bottom: 0;
}

main {
    max-width: 60rem;
    margin: 0 auto;
    padding-bottom: 30rem;
    background: transparent;
}

main > * {
    margin: 0 2rem 2rem 2rem;
    max-width: 55ch;
}

main > ol {
    padding-left: 30px;
}

main > ul {
    padding-left: 25px;
}

main > ol, main > ul, main > blockquote {
    max-width: 65ch;
    padding-right: 0;
    margin-right: 2rem;
}

@media (min-width: 550px) {
    main > blockquote {
        padding-left: 1rem;
    }

    main > * {
        margin-left: 4rem;
    }

    main > h1 {
        margin-left: 3rem;
        text-indent: -1rem;
    }
}

main > p {
    margin-bottom: 1rem;
}

main > * > li {
    margin-bottom: 0.5rem;
}

main > table {
    max-width: 100%;
}

img, main > p:has(img), iframe {
    max-width: 100vw;
    max-width: 50rem;
    margin-top: 2.5rem;
    margin-bottom: 2.5rem;
    margin-left: 0;
    margin-right: 0;
}

main > iframe {
    height: 60vh;
}

main > blockquote > p {
    font-size: 14pt;
    opacity: 0.8;
    margin-bottom: 0.75rem;
}

main > pre {
    margin-top: 3.5rem;
    margin-bottom: 3.5rem;
    display: block;
    max-width: -moz-fit-content;
    max-width: fit-content;
    overflow-x: auto;
    overflow-y: hidden;
    max-width: 100%;
    line-height: 1;
}

main blockquote {
    margin-bottom: 1rem;
}

ul[role="list"], ol[role="list"] {
    list-style: none;
}

main ol > li::marker {
    color: #aaa;
    font-size: 0.95rem;
}

h1, h2, h3, h4, button, input, label {
    line-height: 1.1;
}

a {
    text-decoration: none;
    color: currentColor
}

img, picture, audio, video, iframe {
    width: 100%;
}

img, picture {
    max-width: 100%;
    display: block;
}

input, button, textarea, select {
    font: inherit;
}

:target {
    scroll-margin-block: 5ex;
}

h1, h2, h3, blockquote {
    hanging-punctuation: first;
}

h1, h2, h3 {
    font-family: "Austin News", serif;
    font-weight: 400;
    margin-top: 4rem;
    margin-bottom: 2rem;
    text-wrap: balance;
    overflow-wrap: break-word;
}

h1 {
    font-size: 5.25rem;
    letter-spacing: -0.1rem;
}

h2 {
    font-size: 3.5rem;
    letter-spacing: -0.1rem;
}

h3 {
    font-size: 2rem;
}

@media (max-width: 550px) {
    h1 {
        font-size: 3.5rem;
    }

    h2 {
        font-size: 2.5rem;
    }

    h3 {
        font-size: 2rem;
    }
}

p, li, td, th {
    font-size: 14pt;
}

td, th {
    vertical-align: top;
    text-align: left;
}

main {
    font-weight: 400;
}

main a:link, main a:visited {
    text-decoration: underline;
    text-decoration-thickness: 0.07rem;
    text-underline-offset: 0.2rem;
    text-decoration-style: dotted;
    text-decoration-color: #aaa;
}

table {
    border-collapse: collapse;
    margin-top: 1rem;
}

@media (max-width: 550px) {
    table {
        display: block;
        max-width: -moz-fit-content;
        max-width: fit-content;
        overflow-x: auto;
    }
}

th:not(:last-child), td:not(:last-child) {
    padding-right: 1rem;
    padding-bottom: 0.75rem;
}

a:link:hover {
    opacity: 0.8;
}

p {
    margin-top: 0;
}

hr {
    margin-top: 2rem;
    opacity: 0.65;
}

ul {
    list-style: circle;
}

pre {
    font-family: monospace;
}

.site-title {
  display: inline-flex;
  align-items: baseline;
  opacity: 1;
}

/* spacetime */
.site-title .st {
  font-family: "Tex", Arial, sans-serif;
  font-weight: 400;
  letter-spacing: -0.1rem;
  font-size: 3rem;
  transform: rotate(2deg);

}

/* cool */
.site-title .cool {
  font-family: "Austin News", serif;
  font-weight: 600;
  font-size: 3rem;    
  letter-spacing: 0.1rem;
  transform: rotate(-3deg);

}

.site-title .c1 { color: var(--site-c1) } 
.site-title .c2 { color: var(--site-c2) } 
.site-title .c3 { color: var(--site-c3) } 
.site-title .c4 { color: var(--site-c4) } 

body > header {
    display: flex;
    max-width: 60rem;
    align-items: baseline;
    font-family: "Arial Narrow", sans-serif;
    flex-wrap: wrap;
    flex-direction: row;
    font-size: 2rem;
    font-weight: 300;
    max-width: 60rem;
    text-align: left;
    justify-content: left;
    padding-left: 2rem;
    align-items: flex-end;
}

body > header > :first-child > strong {
    font-weight: 400;
    margin-right: 20px;
}

body > header > :first-child {
    flex-basis: 100%;
    line-height: 1;
}

body > header > a:link {
    text-decoration: none;
    opacity: 1;
}

body > header > a:link:hover {
    opacity: 1;
}

body > header > a:link {
    text-decoration: none;
    opacity: 1;
    display: inline-block;                 
    transform-origin: left center;
    transition:
        opacity 0.25s ease,
        transform 0.35s ease,
        filter 0.35s ease;
}

body > header > a:link:hover {
    opacity: 1;
    transform: scaleX(1.08);
    filter: drop-shadow(0 0 2px rgba(0,0,0,0.35));
}

@media (min-width: 550px) {
    body > header {
        padding: 0 4rem;
        flex-direction: row;
    }

    body > header > :first-child {
        font-weight: 500;
        text-align: left;
        flex-basis: auto;
    }
}

@media (min-width: 625px) {
    body > header {
        gap: 0 1rem;
    }
}

.footnote {
    opacity: 0.7;
    font-size: 12pt;
}

.footnote-ref {
    font-size: 0.6em;
    vertical-align: super;
    text-decoration: none;
    opacity: 0.6;
    color: inherit;
}

.footnote-ref:hover {
    opacity: 1;
}

.scroll-x {
    display: block;
    max-width: -moz-fit-content;
    max-width: fit-content;
    overflow-x: auto;
}

.posts {
    max-width: 90rem;
    margin: 4rem auto 20rem;
    padding: 0 2rem;

    display: flex;
    flex-direction: column;
    gap: 1.4rem;
}

.row {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: baseline;
    column-gap: 3rem;
}

.title a {
    font-family: "Arial Narrow", Arial, sans-serif;
    font-size: 3.6rem;
    font-weight: 400;
    line-height: 1.05;
    letter-spacing: -0.01em;
    color: currentColor;
    text-decoration: none;
    opacity: 0.9;
    display: inline-block;
    transition:
    color 0.25s ease,
    transform 0.25s ease,
    text-decoration-color 0.25s ease;
}

.date {
    font-family: "Arial Narrow", Arial, sans-serif;
    font-size: 1.8rem;
    letter-spacing: 0.02em;
    opacity: 0;
    color: currentColor;
    pointer-events: none;
    transition:
    opacity 0.25s ease,
    transform 0.25s ease;
    transform: translateX(0.5rem);
}

.row:nth-child(4n + 1):has(.title a:hover) .title a {
    color: var(--site-c1);
}

.row:nth-child(4n + 2):has(.title a:hover) .title a {
    color: var(--site-c2);
}

.row:nth-child(4n + 3):has(.title a:hover) .title a {
    color: var(--site-c3);
}

.row:nth-child(4n + 4):has(.title a:hover) .title a {
    color: var(--site-c4);
}

.title a:hover {
    transform: scale(1.035);
    text-decoration-line: underline;
    text-decoration-style: dotted;
    text-decoration-thickness: 0.12rem;
    text-underline-offset: 0.35rem;
    opacity: 1;
    font-family: 'Tex';
}

.row:has(.title a:hover) .date {
    opacity: 0.45;
    transform: translateX(0);
}

@media (max-width: 700px) {
    .row {
    grid-template-columns: 1fr;
    row-gap: 0.4rem;
    }

    .date {
    font-size: 1.4rem;
    opacity: 0.35;
    transform: none;
    }

    .title a {
    font-size: 2.6rem;
    }

    /* always show date on mobile */
    .row:has(.title a:hover) .date {
    opacity: 0.35;
    }
}