@font-face {
    font-family: "Berkeley Mono";
    src: url("/style/BerkeleyMono-Regular.woff2") format("woff2");
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: "Berkeley Mono";
    src: url("/style/BerkeleyMono-Oblique.woff2") format("woff2");
    font-style: oblique;
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: "Departure Mono";
    src: url("/style/DepartureMono-Regular.woff2") format("woff2");
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}

:root {
    --font-ui:
        "Berkeley Mono", "M PLUS 1p", "BIZ UDPGothic", "BIZ UDP Gothic",
        sans-serif;
    --font-title:
        "Departure Mono", "M PLUS 1p", "BIZ UDPGothic", "BIZ UDP Gothic",
        sans-serif;
    --font-reading:
        "Noto Serif JP", "Yu Mincho", "YuMincho", "Hiragino Mincho ProN",
        "Hiragino Mincho Pro", serif;
    --color-text: #333333;
    --color-background: white;
    --color-rule: #999999;
    --space-s: 5px;
    --space-m: 10px;
    --space-l: 1.35em;
    --space-xl: 2.5rem;
    --border-subtle: thin dashed;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0 auto;
    padding-block: var(--space-m);
    font-family: var(--font-ui);
    color: var(--color-text);
    background: var(--color-background);
    font-feature-settings: "palt";
}

body > * + * {
    margin-top: var(--space-s);
}

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

a:hover {
    color: var(--color-background);
    background-color: var(--color-text);
}

footer {
    text-align: right;
    padding-inline: var(--space-s);
}

aside {
    padding: 0 var(--space-s);
    text-align: right;
}

footer,
aside p {
    font-family: var(--font-title);
    font-size: x-small;
}

footer {
    font-style: oblique;
}

aside p {
    margin: 0.5em 0;
    line-height: 1.4;
}

aside img {
    width: 1em;
    height: 1em;
    margin-left: 0.2em;
    vertical-align: -0.12em;
}
