/* Spencer Szabados -- Solarized light, orange accent.
   Sans-serif headings, serif body, ~80-column measure. No JS, no web fonts. */

:root {
  --bg: #fdf6e3;
  --panel: #eee8d5;
  --fg: #657b83;
  --heading: #073642;
  --accent: #cb4b16;
  --muted: #93a1a1;
  --serif: Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: ui-monospace, Menlo, Consolas, monospace;
}

body {
  margin: 0 auto;
  max-width: 80ch;            /* 80-column reading measure */
  padding: 0 1.25rem 3rem;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--serif);
  line-height: 1.65;
}

h1, h2, h3, h4 {
  font-family: var(--sans);
  color: var(--heading);
  line-height: 1.25;
}

a { color: var(--accent); }

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

pre, code { font-family: var(--mono); font-size: 0.85em; }
code { background: var(--panel); padding: 0.1em 0.3em; border-radius: 3px; }
pre { background: var(--panel); padding: 1rem; border-radius: 4px; overflow-x: auto; }
pre code { background: none; padding: 0; }

blockquote {
  margin: 1rem 0;
  padding-left: 1rem;
  border-left: 3px solid var(--accent);
}

table { border-collapse: collapse; }
th, td { border: 1px solid var(--panel); padding: 0.4rem 0.6rem; }

hr { border: none; border-top: 1px solid var(--panel); margin: 2rem 0; }

figure {
    width: fit-content;         /* hug the image; caption wraps to the same width */
    max-width: 100%;            /* width="..." on the shortcode overrides this via inline max-width */
    margin: 1.5rem 0;           /* left-aligned by default */
}
figure.center {                 /* center="true" in the figure shortcode */
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}
figure img { display: block; width: 100%; height: auto; }   /* fill the (width-constrained) figure */
figcaption { font-family: var(--sans); font-size: 0.85rem; color: var(--muted); }

/* Header / nav / footer */
header, footer { font-family: var(--sans); }
header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--panel);
  margin-bottom: 2rem;
}
header .name { font-weight: 700; color: var(--heading); }
nav a { margin-left: 1rem; color: var(--fg); }
nav a.active { color: var(--accent); }
footer {
  margin-top: 3rem;
  padding-top: 1rem;
  border-top: 1px solid var(--panel);
  font-size: 0.85rem;
  color: var(--muted);
}

/* Meta line under titles and simple listings */
.meta { font-family: var(--sans); font-size: 0.85rem; color: var(--muted); }
.list { list-style: none; padding: 0; }
.list li { padding: 0.3rem 0; border-bottom: 1px solid var(--panel); }
.list .date { font-family: var(--mono); font-size: 0.8rem; color: var(--muted); }

/* About page profile image */
.profile { float: right; width: 220px; max-width: 40%; margin: 0 0 1rem 1.5rem; }

/* Publications */
.pub { padding: 0.6rem 0; border-bottom: 1px solid var(--panel); }
.pub .venue { font-style: italic; }
.pub .links { display: block; white-space: nowrap; margin-top: 0.2rem; }

/* Table of contents + references */
.toc { font-family: var(--sans); font-size: 0.9rem; background: var(--panel);
       padding: 0.5rem 1rem; border-radius: 4px; }
.references { font-size: 0.9rem; }

@media (max-width: 32rem) {
  .profile { float: none; width: 100%; max-width: 100%; margin-bottom: 1rem; }
}
