:root {
  --color-bg: #343a40;
  --color-text: #fff;
  --color-muted: #adb5bd;
  --color-link: #ed973b;
  --color-link-hover: #0b73e1;
  --color-rule: rgba(255, 255, 255, 0.25);
  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial,
    "Noto Sans", sans-serif;
  --content-width: 42em;
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 1rem;
  --space-4: 1.5rem;
  --space-5: 3rem;
}

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

html {
  height: 100%;
}

body {
  margin: 0;
  min-height: 100%;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.5;
  color: var(--color-text);
  background-color: var(--color-bg);
  text-shadow: 0 0.05rem 0.1rem rgba(0, 0, 0, 0.5);
  box-shadow: inset 0 0 5rem rgba(0, 0, 0, 0.5);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-link);
  text-decoration: underline;
}

a:hover {
  color: var(--color-link-hover);
}

h1, h2, h3, h4, h5, h6 {
  margin-top: 0;
  margin-bottom: var(--space-2);
  font-weight: 500;
  line-height: 1.2;
}

h3 {
  font-size: 1.75rem;
}

h4 {
  font-size: 1.5rem;
}

h5 {
  font-size: 1.25rem;
}

p {
  margin-top: 0;
  margin-bottom: var(--space-3);
}

hr {
  margin: var(--space-3) 0;
  border: 0;
  height: 1px;
  background-color: currentColor;
  opacity: 0.25;
}

.site {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: 100dvh;
  max-width: var(--content-width);
  margin-inline: auto;
  padding: var(--space-4);
}

.site--home {
  display: grid;
  grid-template-rows: 1fr auto 1fr auto auto;
  align-items: center;
}

.site--home .site-body {
  grid-row: 2;
  width: 100%;
}

.site--home hr {
  grid-row: 4;
  width: 100%;
  margin: 0;
}

.site--home .site-footer {
  grid-row: 5;
  width: 100%;
  margin-top: 0;
  padding-top: var(--space-3);
}

.site-body {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.site-body--centered {
  justify-content: center;
}

.site-header {
  text-align: center;
}

.site-header h3 {
  margin-bottom: var(--space-4);
}

.site-main {
  flex-shrink: 0;
}

.profile {
  display: grid;
  gap: var(--space-4);
  align-items: start;
}

.profile-name {
  grid-column: 1 / -1;
  text-align: center;
  margin-bottom: 0;
}

@media (min-width: 768px) {
  .profile {
    grid-template-columns: 1fr 2fr;
    grid-template-areas:
      "name name"
      "photo bio";
  }

  .profile-name {
    grid-area: name;
  }

  .profile-photo {
    grid-area: photo;
    margin-top: -1rem;
  }

  .profile-bio {
    grid-area: bio;
  }
}

.profile-photo {
  text-align: center;
}

.profile-photo img {
  width: 150px;
  height: 150px;
  margin-inline: auto;
  border-radius: 50%;
  object-fit: cover;
}

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

.links {
  text-align: left;
}

.site-footer {
  flex-shrink: 0;
  margin-top: auto;
  padding-block: var(--space-4);
  text-align: right;
}

.site-footer p {
  margin: 0;
  font-size: 0.875rem;
}

.post-list {
  list-style: none;
  margin: var(--space-4) 0 0;
  padding: 0;
}

.post-list li {
  margin-bottom: var(--space-3);
}

.post-list li:last-child {
  margin-bottom: 0;
}

.muted {
  color: var(--color-muted);
}

.small {
  font-size: 0.875rem;
}

article a {
  text-decoration: underline;
}

.back-link {
  margin-bottom: var(--space-4);
}

.back-link:last-child {
  margin-bottom: 0;
}
