@font-face {
  font-family: 'DM Sans';
  src: url('DMSans-VariableFont_opsz,wght.ttf') format('truetype');
  font-weight: 100 1000;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'DM Sans';
  src: url('DMSans-Italic-VariableFont_opsz,wght.ttf') format('truetype');
  font-weight: 100 1000;
  font-style: italic;
  font-display: swap;
}

:root {
    --bg-color: #14110A;
    --fg-color: #E8C25A;
    --fg-color-bright: #F4D06A;
    --fg-color-dim: #B98F2E;
}

.fg-color {
    color: var(--bg-color);
    background-color: var(--fg-color);
}

.fg-bright {
    color: var(--bg-color);
    background-color: var(--fg-color-bright);
}

.fg-dim {
    color: var(--bg-color);
    background-color: var(--fg-color-dim);
}

body {
    background-color: var(--bg-color);
    color: var(--fg-color);
    font-family: "DM Sans", sans-serif;
    padding: clamp(1rem, 5vw, 4rem);
}

body.home {
    padding-left: 18%;
}

a, a:visited, a:link {
    color: var(--fg-color-bright);
}

a.front
{
    font-size: 3rem;
    text-decoration: none;
}

h1, h2, h3 {
    color: var(--fg-color-bright);
}

#abstract {
    border: 1px solid var(--fg-color-dim);
    padding: 2rem 4rem;
}

blockquote {
    border-left: 1px solid var(--fg-color-dim);
    padding-left: 2rem;
}

/* Attributed quotations: figure > blockquote + figcaption.
   The rule and indent move to the figure so they run alongside the
   attribution, as they did when it sat inside the blockquote. */
figure.quote {
    margin: 1em 40px;
    border-left: 1px solid var(--fg-color-dim);
    padding-left: 2rem;
}

figure.quote blockquote {
    margin: 0;
    border-left: none;
    padding-left: 0;
}

nav {
    border-left: 5px double var(--fg-color-dim);
}

nav ul {
    font-size: larger;
    list-style-type: none;
}

nav ul ol ol {
    list-style-type: lower-alpha;
    font-size: smaller;
    color: var(--fg-color-dim);
}

nav ul ol ol li a {
    color: var(--fg-color-dim);
}

code {
    background-color: var(--fg-color);
    color: var(--bg-color);
}

/* ---- SSG additions ---- */

figure {
    margin: 2rem 0;
}

figure img, figure video, .work-entry img {
    max-width: 100%;
    max-height: calc(100svh - 2 * clamp(1rem, 5vw, 4rem));
    width: auto;
    height: auto;
    display: block;
    margin-inline: auto;
}

figcaption, .tombstone, .place {
    font-size: smaller;
    color: var(--fg-color-dim);
}

/* Quote attributions keep body size and color, unlike image captions. */
figure.quote figcaption {
    font-size: inherit;
    color: inherit;
}

.place {
    font-style: italic;
}

.toward {
    font-size: smaller;
    color: var(--fg-color-dim);
}

nav.pager {
    border-left: none;
    border-top: 1px solid var(--fg-color-dim);
    margin-top: 3rem;
    padding-top: 1rem;
    display: flex;
    justify-content: space-between;
    gap: 2rem;
}
/* ---- Log thumbnails ---- */
/* Each image in html/log.html is a 180 px thumbnail linking to its
   gesture page, with the caption beside it. Portrait thumbnails are
   centered in the 180 px column so captions line up down the page. */
figure.thumb {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin: 0 0 1rem;
}
figure.thumb > a {
  flex: none;
  width: 180px;
  display: flex;
  justify-content: center;
}
figure.thumb img {
  display: block;
  margin: 0;
  max-width: 180px;
  max-height: 180px;
}
figure.thumb figcaption {
  flex: 1;
  margin: 0;
}
