:root {
  color-scheme: light dark;
}

html { height: 100%; }

body {
  margin: 0;
  line-height: 1.6;
  font-size: 1.05rem;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
}

header, footer {
  display: flex;
  align-items: center;
  padding: 1rem 2rem;
  width: 100%;
  box-sizing: border-box;
}

header {
  justify-content: space-between;
  border-bottom: 1px solid #ccc;
}

header .site-title a {
  text-decoration: none;
  font-weight: bold;
  font-size: 1.2rem;
  color: inherit;
}

main {
  flex: 1 0 auto;
  min-width: 0;
  width: min(100%, 70ch);
  margin: 0 auto;
  margin-top: 1rem;
  margin-bottom: 3rem;
  padding: 0 1rem;
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  overflow-wrap: anywhere;
  box-sizing: border-box;
}

footer {
  justify-content: center;
  border-top: 1px solid #ccc;
  font-size: 0.9rem;
  opacity: 0.75;
  flex-direction: column;
  background: inherit;
}

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

table {
  border-collapse: collapse;
}

th, td {
  border: 1px solid #ccc;
  padding: .4rem .6rem;
}

main a {
  color: inherit;
}

main h1 a {
  text-decoration: none; 
}
main h2 a {
  text-decoration: none; 
}
main h3 a {
  text-decoration: none; 
}

main a:hover {
  text-decoration: underline;
}

footer a {
  color: inherit;
  text-decoration: underline; 
}

.post-row {
  display: grid;
  grid-template-columns: 10ch 1fr;
  column-gap: 1rem;
  align-items: baseline;
}

.post-date {
  text-align: right;
  opacity: 0.75;
  font-variant-numeric: tabular-nums;
}

.post-title {
  font-weight: 700;
  text-decoration: none;
  color: inherit;
}

.post-title:hover {
  text-decoration: underline;
}

@media (max-width: 520px) {
  .post-row {
    grid-template-columns: 1fr;
    row-gap: 0.25rem;
  }
  .post-date {
    text-align: left;
    opacity: 0.6;
    order: 2;
    margin-top: 0.2rem;
  }
  .post-title {
    order: 1;
  }
  .post-row h1 {
    margin-bottom: 0px;
  }
}
