body {
    margin: 0;
    font-family: "EB Garamond", Georgia, "Times New Roman", serif;
    color: #333;
    background: #fff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* landing */
body.landing {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}
.content {
    text-align: center;
    max-width: 600px;
    padding: 0 20px;
}
h1 {
    font-size: 36px;
    margin: 0 0 16px;
    font-weight: 450;
    letter-spacing: -0.4px;
}
.email {
    margin-bottom: 12px;
    font-style: italic;
    font-size: 15px;
    color: #666;
}
.nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0 24px;
    font-size: 15px;
    margin-top: 12px;
}
.nav a {
    color: #666;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.nav a:hover,
.nav a[aria-expanded="true"] {
    color: #333;
}
.links {
    margin-top: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
}
.links[hidden] {
    display: none;
}
.links a {
    text-decoration: none;
    font-size: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
}
.links .fa-github { color: #333; }
.links .fa-linkedin { color: #0077b5; }
.links img {
    width: 28px;
    height: 28px;
    display: block;
}
.links a:hover { opacity: 0.7; }
.commit {
    position: fixed;
    bottom: 1rem;
    left: 0;
    right: 0;
    text-align: center;
    font-size: 14px;
    color: #666;
}
.commit a {
    color: inherit;
    text-decoration: none;
}
.commit a:hover { text-decoration: underline; }

/* lore and posts */
.page {
    max-width: 600px;
    margin: 0 auto;
    padding: 48px 20px 64px;
    text-align: left;
}
.page.wide { max-width: 720px; }
.page h1 {
    font-size: 28px;
    letter-spacing: -0.3px;
    margin-bottom: 20px;
}
.page .date {
    font-style: italic;
    color: #666;
    font-size: 15px;
    margin: -12px 0 28px;
}
.page p,
.page blockquote {
    font-size: 18px;
    line-height: 1.55;
    margin: 0 0 18px;
}
.page h2 {
    font-size: 22px;
    font-weight: 500;
    margin: 36px 0 12px;
}
.page h3 {
    font-size: 18px;
    font-weight: 500;
    font-style: italic;
    margin: 28px 0 10px;
}
.page a {
    color: #333;
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-color: #bbb;
}
.page a:hover { text-decoration-color: #333; }
.page blockquote {
    padding-left: 16px;
    border-left: 2px solid #ddd;
    color: #555;
}
.page code {
    font-family: ui-monospace, Menlo, Consolas, monospace;
    font-size: 0.85em;
    background: #f4f4f4;
    padding: 1px 4px;
}
.page figure { margin: 24px 0; }
.page img {
    max-width: 100%;
    height: auto;
    display: block;
}
.page sup a {
    text-decoration: none;
    color: #666;
    font-size: 0.8em;
}
.footnotes {
    margin-top: 40px;
    padding-top: 16px;
    border-top: 1px solid #e3e3e3;
    font-size: 15px;
    color: #555;
    line-height: 1.5;
}
.fn {
    display: flex;
    gap: 10px;
    margin-bottom: 8px;
}
.fn .n {
    color: #999;
    min-width: 1.6em;
    text-align: right;
}
.fn a { word-break: break-all; }

.lore {
    list-style: none;
    margin: 0;
    padding: 0;
}
.lore li {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 20px;
    padding: 5px 0;
    font-size: 17px;
    line-height: 1.4;
}
.lore li > a,
.lore li > span:first-child {
    flex: 1 1 auto;
    min-width: 0;
}
.lore .d {
    color: #666;
    font-style: italic;
    font-size: 15px;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
    margin-left: auto;
}
.lore .tool a { font-style: italic; }
.lore .year {
    font-size: 13px;
    color: #999;
    letter-spacing: 0.06em;
    margin: 18px 0 4px;
}
.lore .year:first-child { margin-top: 0; }

.back { margin-top: 40px; }
.back a {
    color: #666;
    text-decoration: none;
    padding: 8px 16px;
    border: 1px solid #666;
    font-size: 15px;
}
.back a:hover {
    background: #666;
    color: #fff;
}

a:focus-visible {
    outline: 2px solid #333;
    outline-offset: 3px;
}
