:root {
    --background-color: #eee;
    --foreground-color: #444;
    --clickable: #0077aa;
    --page-pad: 16px;
    --bleed: min(5vw, 24px);
}

.dark-mode {
    --background-color: #222;
    --foreground-color: #ccc;
    --clickable: #47bef1;
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: local("Inter"), local("Inter Regular"), url("fonts/InterVariable.woff2") format("woff2");
}

@font-face {
  font-family: "Inter";
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: local("Inter Italic"), url("fonts/InterVariable-Italic.woff2") format("woff2");
}

html { font-size: 112.5%; font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif; }

body {
    margin: 48px auto;
    max-width: 54ch;
    line-height: 1.7;
    padding: 0 var(--page-pad);
    background-color: var(--background-color);
    color: var(--foreground-color);
}

.title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0;
    font-weight: bold;
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    margin-top: 0.67em;
    margin-bottom: 0.0em;
    margin-left: 0;
    margin-right: 0;
    font-weight: bold;
}

.navigation a {
    display: inline-block;
    color: var(--clickable);
    font-weight: bold;
    font-size: 1rem;
    padding-left: 6px;
    padding-right: 6px;
    text-decoration: none;
}

.navigation a:hover {
    display: inline-block;
    box-shadow: inset 0 -40px 0 -1px var(--foreground-color);
    color: var(--background-color);
}

#theme-switch {
    height: 36px;
    width: 36px;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    border: none;
    background: none;
    cursor: pointer;
    position: relative;
    top: 2px;
}

#theme-switch svg {
    fill: var(--foreground-color);
}

#theme-switch svg:last-child {
    display: none;
}

.dark-mode #theme-switch svg:first-child {
    display: none;
}

.dark-mode #theme-switch svg:last-child {
    display: block;
}

hr {
    border: 1px solid var(--foreground-color);
}

.text {
    font-size: 1.125rem;
}

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

img {
    height: auto;
    max-width: 100%;
    width: 100%;
    display: block;
}

footer {
    position: fixed;
    left: 0;
    bottom: 0;
    width: 100%;
    margin: 0;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    background-color: var(--background-color);
    padding-top: 8px;
    padding-bottom: 8px;
}

.footer-note {
    color: #808080;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    justify-content: center;
    column-gap: 6px;
    row-gap: 4px;
    flex-wrap: nowrap;
    white-space: nowrap;
    padding: 0 12px;
}

.footer-note a {
    color: #808080;
    text-decoration: none;
    white-space: nowrap;
}

.footer-note a:hover {
    text-decoration: underline;
    text-decoration-color: #808080;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
}

.footer-label {
    color: inherit;
    white-space: nowrap;
}

.footer-separator {
    color: #808080;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    font-size: 0.875rem;
}

.stamp-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.stamp-small {
    width: 88px;
    height: 31px;
    image-rendering: optimizeSpeed;
    image-rendering: -moz-crisp-edges;
    image-rendering: -o-crisp-edges;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: pixelated;
    image-rendering: optimize-contrast;
    -ms-interpolation-mode: nearest-neighbor;
}

h1,
h2,
h3 {
  line-height: 1.2;
}

.desktop-shot {
    display: block;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% + 2 * var(--bleed));
    max-width: none;
    margin: 0;
}

@media (max-width: 600px) {
  html { font-size: 106.25%; }
  body { margin: 32px auto; padding: 0 14px; }
  #theme-switch { height: 32px; width: 32px; }
  :root { --bleed: min(3vw, 12px); }
}

@media (min-width: 1200px) {
  html { font-size: 121.5%; }
}

@media (max-width: 900px) {
  .footer-note {
    flex-wrap: wrap;
    white-space: normal;
    text-align: center;
    row-gap: 2px;
  }
  .footer-label,
  .footer-note a {
    white-space: normal;
  }
  .footer-separator { display: none; }
}
