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

:root {
  --bg: #EDEBE2;
  --text: #1C1C1C;
  --text-muted: #9E9B92;
  --divider: #D5D2C8;
  --max-width: 520px;
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica Neue, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.65;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Layout */

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Navigation */

nav {
  padding-top: 5rem;
}

.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.nav-name {
  font-size: 14px;
}

.nav-link {
  font-size: 14px;
}

/* Main content */

main {
  padding-top: 8.5rem;
}

/* Bio */

.bio {
  margin-bottom: 2.75rem;
}

.bio p {
  margin-bottom: 1.2rem;
}

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

/* Social links */

.social-links {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

/* Back link */

.back-link {
  display: inline-block;
  font-size: 14px;
  margin-bottom: 2.75rem;
}

/* Writing list */

.writing-list {
  display: flex;
  flex-direction: column;
}

.entry {
  padding: 0;
}

.entry-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1.5rem;
  margin-bottom: 0.4rem;
}

.entry-title {
  font-size: 15px;
  font-weight: 400;
  line-height: 1.4;
}

.entry-date {
  font-size: 14px;
  white-space: nowrap;
  flex-shrink: 0;
}

.entry-excerpt {
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 0.45rem;
}

.entry-source {
  font-size: 10.5px;
  letter-spacing: 0.07em;
  color: var(--text-muted);
  font-weight: 500;
}

.divider {
  border: none;
  border-top: 1px solid var(--divider);
  margin: 1.75rem 0;
}

/* Badge */

.badge {
  position: fixed;
  bottom: 1.4rem;
  left: 1.4rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: #1C1C1C;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

/* Responsive */

@media (max-width: 600px) {
  nav {
    padding-top: 2.5rem;
  }

  main {
    padding-top: 4.5rem;
  }
}
