/* thomasbiegert.github.io — minimal site styles */

:root {
  --bg: #ffffff;
  --bg-alt: #f6f5f2;
  --text: #1c1c1c;
  --muted: #66625c;
  --accent: #8a3324;
  --accent-dark: #6c2719;
  --border: #e5e2db;
  --max-width: 760px;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 15px;
  line-height: 1.65;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

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

a:hover,
a:focus {
  color: var(--accent-dark);
  text-decoration: underline;
}

h1, h2, h3, h4 {
  font-weight: 600;
  line-height: 1.25;
  margin: 0 0 0.6em;
}

p {
  margin: 0 0 1.1em;
}

strong {
  font-weight: 600;
}

/* nav */

header.site-header {
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(6px);
  z-index: 10;
}

.nav-wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.9rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
}

.site-name {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text);
  letter-spacing: 0.01em;
}

.site-name:hover {
  color: var(--accent);
  text-decoration: none;
}

nav.primary-nav ul {
  list-style: none;
  display: flex;
  gap: 1.4rem;
  margin: 0;
  padding: 0;
}

nav.primary-nav a {
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 500;
}

nav.primary-nav li.active a {
  color: var(--accent);
}

nav.primary-nav a:hover {
  color: var(--accent);
  text-decoration: none;
}

.social-links {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.icon-link {
  color: var(--muted);
  display: inline-flex;
}

.icon-link svg {
  width: 18px;
  height: 18px;
}

.icon-link:hover {
  color: var(--accent);
}

/* main */

main {
  flex: 1 0 auto;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2.5rem 1.25rem 3rem;
  width: 100%;
}

.page-title {
  font-size: 1.6rem;
  padding-bottom: 0.6rem;
  margin-bottom: 1.6rem;
  border-bottom: 2px solid var(--accent);
}

/* home / intro */

.intro {
  display: flex;
  align-items: center;
  gap: 2.2rem;
  margin-bottom: 1.5rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.intro-tagline {
  color: var(--text);
  font-size: 1.3rem;
  font-weight: 500;
  line-height: 1.5;
  margin-bottom: 0;
}

.intro-photo {
  flex: 0 0 auto;
  width: 190px;
  height: 190px;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.15);
  display: block;
}

@media (max-width: 640px) {
  .intro {
    flex-direction: column-reverse;
    text-align: center;
    gap: 1.2rem;
  }

  .intro-photo {
    width: 150px;
    height: 150px;
  }
}

/* publications */

.pub-section h4 {
  text-transform: uppercase;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  color: var(--accent);
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.5rem;
  margin-top: 3.6rem;
}

.pub-section:first-of-type h4 {
  margin-top: 0;
}

.pub-section p {
  margin: 0 0 1.3rem;
  line-height: 1.65;
}

.pub-section p:last-child {
  margin-bottom: 0;
}

/* contact */

.contact-block address {
  font-style: normal;
  line-height: 1.8;
}

/* footer */

footer.site-footer {
  border-top: 1px solid var(--border);
  padding: 1.5rem 1.25rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
}

footer.site-footer a {
  color: var(--muted);
}

footer.site-footer a:hover {
  color: var(--accent);
}
