/* --------------------------------------------------------------------------
   Michael Thane — static research site
   Light, understated academic layout
   -------------------------------------------------------------------------- */

:root {
  --bg-deep: #fafaf8;
  --bg-raised: #ffffff;
  --bg-card: #ffffff;
  --bg-muted: #f2f1ec;
  --border: rgba(26, 29, 33, 0.1);
  --border-strong: rgba(26, 29, 33, 0.16);
  --text: #1a1d21;
  --text-muted: #4b5563;
  --text-faint: #6b7280;
  --accent: #2c5f7c;
  --accent-soft: rgba(44, 95, 124, 0.09);
  --accent-muted: rgba(44, 95, 124, 0.18);
  --accent-hover: #214659;
  --shadow: 0 2px 16px rgba(26, 29, 33, 0.06);
  --shadow-subtle: 0 1px 3px rgba(26, 29, 33, 0.06);
  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --radius: 10px;
  --radius-sm: 6px;
  --max: 1080px;
  --header-h: 64px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg-deep);
  background-image: linear-gradient(180deg, #ffffff 0%, var(--bg-deep) 32%, var(--bg-deep) 100%);
  min-height: 100vh;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

.wrap {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.inline-code {
  font-family: ui-monospace, monospace;
  font-size: 0.88em;
  padding: 0.15em 0.45em;
  border-radius: 4px;
  background: var(--bg-muted);
  color: var(--accent-hover);
}

/* Header ---------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}

.logo {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--text);
  text-decoration: none;
  letter-spacing: 0.02em;
}

.logo:hover {
  color: var(--accent);
}

.nav__toggle {
  display: none;
  font: inherit;
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--bg-card);
  color: var(--text);
  cursor: pointer;
}

.nav__list {
  display: flex;
  gap: 1.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav__list a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
}

.nav__list a:hover {
  color: var(--accent);
}

@media (max-width: 720px) {
  .nav__toggle {
    display: block;
  }

  .nav__list {
    display: none;
    position: absolute;
    right: 1rem;
    top: calc(var(--header-h) + 8px);
    flex-direction: column;
    gap: 0;
    min-width: 200px;
    padding: 0.5rem;
    background: var(--bg-raised);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow);
  }

  .nav__list.is-open {
    display: flex;
  }

  .nav__list li {
    border-bottom: 1px solid var(--border);
  }

  .nav__list li:last-child {
    border-bottom: none;
  }

  .nav__list a {
    display: block;
    padding: 0.75rem 1rem;
  }
}

/* Hero ------------------------------------------------------------------- */

.hero {
  padding: clamp(3rem, 8vw, 5.5rem) 0 clamp(4rem, 10vw, 6rem);
}

.hero__inner {
  display: grid;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: center;
}

@media (min-width: 880px) {
  .hero__inner {
    grid-template-columns: 1fr auto;
    align-items: start;
  }
}

.hero__kicker {
  margin: 0 0 0.5rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.hero__title {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.35rem, 5vw, 3.25rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.hero__subtitle {
  margin: 0 0 1.25rem;
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  font-weight: 500;
  color: var(--text-muted);
}

.hero__lead {
  margin: 0 0 1rem;
  max-width: 52ch;
  color: var(--text-muted);
  font-size: 1.02rem;
}

.hero__affiliations {
  margin: 0 0 1.15rem;
  padding: 0 0 0 1.15rem;
  max-width: 52ch;
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.hero__affiliations li {
  margin-bottom: 0.35rem;
}

.hero__affiliations li:last-child {
  margin-bottom: 0;
}

.hero__dissertation {
  margin: 0 0 1rem;
  max-width: 52ch;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.hero__dissertation em {
  color: var(--text);
  font-style: italic;
}

.hero__languages {
  margin: 0 0 1.5rem;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  color: var(--text-faint);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero__visual {
  justify-self: center;
  width: min(100%, 200px);
}

@media (min-width: 880px) {
  .hero__visual {
    justify-self: end;
    padding-top: 0.35rem;
  }
}

.hero__portrait {
  margin: 0;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-subtle);
  background: var(--bg-raised);
}

.hero__portrait img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 240px;
  object-fit: cover;
  object-position: center center;
}

/* Buttons ---------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.25rem;
  font: inherit;
  font-size: 0.94rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn--primary {
  background: var(--accent-soft);
  border-color: var(--accent-muted);
  color: var(--accent);
}

.btn--primary:hover {
  background: rgba(44, 95, 124, 0.14);
  border-color: rgba(44, 95, 124, 0.42);
  color: var(--accent-hover);
}

.btn--ghost {
  background: transparent;
  border-color: var(--border-strong);
  color: var(--text-muted);
}

.btn--ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn--small {
  padding: 0.45rem 0.85rem;
  font-size: 0.82rem;
}

.btn--disabled,
.btn--disabled:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background: var(--bg-muted);
  border-color: var(--border);
  color: var(--text-muted);
}

/* Publications list ------------------------------------------------------ */

.pub-list {
  margin: 0;
  padding-left: 1.75rem;
}

.pub-list__item {
  padding: 1.25rem 1.35rem;
  margin: 0 0 1rem 0.35rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-card);
}

.pub-list__item:last-child {
  margin-bottom: 0;
}

.pub-list__text {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.pub-list__text cite {
  font-style: italic;
  color: var(--text);
}

.pub-list__meta {
  margin: 0.65rem 0 0;
  font-size: 0.84rem;
}

.pub-list__meta a {
  color: var(--accent);
  word-break: break-all;
}

.pub-list__meta a:hover {
  color: var(--accent-hover);
}

.presentations-block {
  margin-top: clamp(2rem, 4vw, 2.75rem);
  padding-top: clamp(1.5rem, 3vw, 2rem);
  border-top: 1px solid var(--border);
}

.presentations-block__title {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
}

.presentations-block__list {
  margin: 0;
  padding-left: 1.25rem;
  color: var(--text-muted);
  font-size: 0.94rem;
  line-height: 1.55;
}

.presentations-block__list li {
  margin-bottom: 0.45rem;
}

.presentations-block__list cite {
  font-style: italic;
  color: var(--text);
}

.presentations-block__note {
  margin: 0.85rem 0 0;
  font-size: 0.85rem;
  color: var(--text-faint);
}

/* Sections --------------------------------------------------------------- */

.section {
  padding: clamp(3rem, 6vw, 4.5rem) 0;
}

.section--tight {
  padding-block: clamp(2.5rem, 5vw, 3.5rem);
}

.section--alt {
  background: var(--bg-muted);
  border-block: 1px solid var(--border);
}

.section__header {
  margin-bottom: clamp(1.75rem, 4vw, 2.5rem);
  max-width: 62ch;
}

.section__header--center {
  text-align: center;
  margin-inline: auto;
}

.section__header h2 {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.55rem, 3vw, 1.85rem);
  letter-spacing: -0.02em;
}

.section__intro {
  margin: 0;
  color: var(--text-muted);
  font-size: 1rem;
}

.section__intro a {
  color: var(--accent);
  text-decoration: none;
}

.section__intro a:hover {
  text-decoration: underline;
}

/* Focus grid ------------------------------------------------------------- */

.focus-grid {
  display: grid;
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

@media (min-width: 600px) {
  .focus-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.focus-card {
  padding: 1.35rem 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-card);
}

.focus-card__title {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
}

.focus-card__text {
  margin: 0;
  font-size: 0.94rem;
  color: var(--text-muted);
}

/* Contact ---------------------------------------------------------------- */

.section--contact {
  padding-bottom: clamp(4rem, 10vw, 5.5rem);
}

.contact__panel {
  max-width: 52ch;
  margin-inline: auto;
  padding: 1.5rem 1.75rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-card);
}

.contact__lines {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.98rem;
  color: var(--text-muted);
  line-height: 1.75;
}

.contact__lines li {
  margin-bottom: 0.35rem;
}

.contact__lines li:last-child {
  margin-bottom: 0;
}

.contact__lines a {
  color: var(--accent);
  text-decoration: none;
}

.contact__lines a:hover {
  text-decoration: underline;
}

.contact__lines--muted {
  font-size: 0.9rem;
  color: var(--text-faint);
}

/* Footer ----------------------------------------------------------------- */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 1.5rem 0 2rem;
  background: var(--bg-muted);
}

.site-footer__inner {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  align-items: center;
  text-align: center;
}

@media (min-width: 600px) {
  .site-footer__inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.site-footer__copy,
.site-footer__meta {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-faint);
}
