/* In the Gesture: dark-on-light variant of styles.css.
   Same rules, same structure; only the palette changes. The gold scale is
   kept as hue but deepened to ink so every step passes WCAG AA on the ground.
   Lives in css/ beside styles.css, so the font URLs resolve the same way. */

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

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

:root {
  --bg-color: #FAF8F3;         /* warm neutral, not cream                  */
  --fg-color: #1E1A12;         /* body text            ~16:1               */
  --fg-color-bright: #5A3E0B;  /* headings and links, deep gold  ~9.5:1    */
  --fg-color-dim: #7A5F22;     /* secondary text, rules  ~5.7:1            */
  --code-bg: #EFE7D3;          /* pale gold well for inline code           */
}

.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);
  /* Optional, for long reading on wide screens: cap the line length.
     max-width: 42rem;
     margin-inline: auto;
     line-height: 1.6; */
}

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

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

img.home {
  max-width: 100%;
  height: auto;
}

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;
}

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);
}

/* The one departure from styles.css: an inverted dark chip reads as a
   heavy blot on a light page, so code sits in a pale well instead. */
code {
  background-color: var(--code-bg);
  color: var(--fg-color);
  padding: 0 0.2em;
}

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);
}

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;
}

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;
}
