/* Fonts */
@font-face {
  font-family: "Newsreader 24 Pt";
  src: url(https://cdn.prod.website-files.com/67e201a6a390d00a0ca1cbf3/67ffb24d1dc0f17b6e10ca33_Newsreader24pt-Regular.woff2) format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Newsreader 24 Pt";
  src: url(https://cdn.prod.website-files.com/67e201a6a390d00a0ca1cbf3/67ffb24df51aa85592704a67_Newsreader24pt-Italic.woff2) format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Newsreader 24 Pt";
  src: url(https://cdn.prod.website-files.com/67e201a6a390d00a0ca1cbf3/67ffb31e05300bdee6411d8c_Newsreader24pt-SemiBold.woff2) format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* Variables */
:root {
  --text:          #1f1e1d;
  --text-secondary:#5e5d59;
  --text-tertiary: #87867f;
  --bg:            #fafaf7;
  --border:        #d1cfc5;
  --bg-light:      #faf9f5;
}

/* Reset & base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scrollbar-gutter: stable;
}

body {
  font-family: "Newsreader 24 Pt", "Times New Roman", serif;
  font-size: 1.25rem;
  line-height: 1.6;
  font-weight: 400;
  color: var(--text);
  background-color: var(--bg);
  transition: color 0.2s linear, background-color 0.2s linear;
}

::selection {
  background: rgba(0, 100, 255, 0.22);
}

/* Links */
a {
  color: var(--text);
  text-decoration: underline;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.1em;
  transition: color 0.2s linear;
}

a:hover {
  color: var(--text-secondary);
}

/* Sticky header */
header {
  /* full-width container, no padding */
}

.header-inner {
  max-width: 38.75rem;
  margin: 0 auto;
  padding: 3.5rem 1.5rem 1rem;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}

header h1 {
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: 0;
}

.nav-tabs {
  display: flex;
  gap: 1.25rem;
  font-size: 1rem;
}

.nav-tabs a {
  text-decoration: none;
  color: var(--text-tertiary);
  transition: color 0.2s linear;
}

.nav-tabs a:hover {
  color: var(--text-secondary);
  text-decoration: underline;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.1em;
}

.nav-tabs a.active {
  color: var(--text);
}

/* Main column */
main {
  max-width: 38.75rem;
  margin: 0 auto;
  padding: 1.5rem 1.5rem 6rem;
}

/* Bio */
.bio {
  margin-bottom: 3rem;
}

.bio p {
  margin-bottom: 1em;
}

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

/* Sections */
section {
  margin-bottom: 2.5rem;
}

h2 {
  font-size: 1.2em;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.5em;
}

/* Post lists */
.post-list {
  list-style: none;
}

.post-list li::before {
  content: "•";
  font-size: 1em;
  vertical-align: middle;
  margin-right: 0.1em;
}

.post-list li {
  display: list-item;
}

.post-list a {
  text-decoration: underline;
}

.post-list a:hover {
  text-decoration: underline;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.1em;
}

.post-date {
  font-size: 0.85em;
  color: var(--text-tertiary);
  white-space: nowrap;
  flex-shrink: 0;
}

/* Post page styling */
article {
  max-width: 38.75rem;
}

article h1 {
  font-size: 2em;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 0.2em;
}

article .date {
  color: var(--text-tertiary);
  font-size: 0.9em;
  margin-bottom: 2.5rem;
}

article p {
  margin-bottom: 1em;
}

article h2 {
  font-size: 1.4em;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0;
  text-transform: none;
  color: var(--text);
  margin-top: 2em;
  margin-bottom: 0.5em;
}

article h2:first-child {
  margin-top: 0;
}

article h3 {
  font-size: 1.1em;
  font-weight: 600;
  margin-top: 1.5em;
  margin-bottom: 0.5em;
}

/* Responsive */
@media (max-width: 600px) {
  body {
    font-size: 1.1rem;
  }

  main {
    padding: 2.5rem 1.25rem 4rem;
  }

  .header-inner {
    padding: 2.5rem 1.25rem 1rem;
  }

  .nav-tabs {
    font-size: 0.9rem;
    gap: 0.9rem;
  }

  .post-list li {
    flex-direction: column;
    gap: 0.1rem;
  }
}
