/* jht3.com — hand-written styles ported from the original site theme; see LICENSES.md */
:root {
  color-scheme: light dark;
  --bg: #fcfcfc;
  --text: #444;
  --intro: #6f6f6f;
  --muted: #bbb;
  --error: #929292;
  --desc: #666;
  --link: #526d7a;
  --accent: #966;
  --rule: #eee;
  --avatar-bg: #526d7a;
  --avatar-fg: #fcfcfc;
  --slab: "Roboto Slab", Roboto, Lato, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --sans: Roboto, Lato, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #16181a;
    --text: #e9e9e9;
    --intro: #b8b8b8;
    --muted: #9a9a9a;
    --error: #9a9a9a;
    --desc: #9a9a9a;
    --link: #8fb6c6;
    --accent: #d8a3b3;
    --rule: #2e3235;
    --avatar-bg: #8fb6c6;
    --avatar-fg: #16181a;
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { height: 100%; }

body {
  min-height: 100%;
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--slab);
  font-size: 20px;
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a, a:visited { color: var(--link); text-decoration: none; }
a:hover, a:focus { color: var(--accent); }

.container {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 15px;
}

/* Header: avatar + name */
.site-header {
  margin: 60px 0 20px;
  text-align: center;
}

.avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 200px;
  height: 200px;
  margin: 0 auto;
  border-radius: 50%;
  background: var(--avatar-bg);
  color: var(--avatar-fg);
  font-family: var(--slab);
  font-size: 72px;
  font-weight: 200;
  letter-spacing: 0.04em;
  line-height: 1;
  user-select: none;
}

/* One-line swap for the real headshot: <img src="/img/headshot.jpg" alt="Jim Thomas" class="avatar"> */
img.avatar {
  display: block;
  object-fit: cover;
}

.author {
  margin: 0.67em 0;
  font-family: var(--slab);
  font-size: 2em;
  font-weight: 400;
  line-height: 1.2;
  color: var(--text);
}

/* Intro + description */
.info {
  margin: 10px 0 20px;
  text-align: center;
}

.intro {
  margin: 0 0 0.8em;
  font-family: var(--slab);
  font-size: 1.17em;
  font-weight: 200;
  color: var(--intro);
}

.description {
  margin: 0;
  font-family: var(--sans);
  font-size: 1em;
  font-weight: 200;
  color: var(--desc);
}

/* Social icon row */
.social {
  margin: 10px 0 20px;
}

.social ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.social a {
  display: block;
  padding: 6px;
  border-radius: 6px;
  color: var(--link);
}

.social a:hover, .social a:focus { color: var(--accent); }

.social a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.social svg {
  display: block;
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.social svg.envelope {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Footer rule */
.site-footer {
  margin-top: 10px;
  color: var(--muted);
}

.site-footer hr {
  margin: 0 0 24px;
  border: 0;
  border-top: 1px solid var(--rule);
}

/* 404 */
.error {
  margin-top: 100px;
  text-align: center;
}

.error h1 {
  margin: 0;
  font-family: var(--slab);
  font-size: 80px;
  font-weight: 400;
  line-height: 1.1;
  color: var(--error);
}

.error p {
  margin: 60px 0 40px;
  font-family: var(--sans);
  font-size: 1em;
  font-weight: 300;
  color: var(--intro);
}

.error a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 991px) {
  .site-header { margin-top: 50px; }
}
