@import 'normalize.css';
@import 'magick.css';

@media (prefers-color-scheme: dark) {
    :root {
      --fg: #0e0e0e;
      --bg: #fefefe;
      --form-bg: #fbfbfb;
      --form-fg: #00004d;
      --form-fg-placeholder: #00004d9a;
    }
}

:where(main ol,main ul) {
  padding-inline-start: 0;
}

@media (max-width: 600px) {
  article, main {
    padding: 0 1rem;
  }

  header {
    margin-top: 8rem;
  }
}

hr {
  border: 0;
  border-bottom: 1px solid #ddd;
}

main {
  max-width: 60rem;
}

header {
  margin-bottom: 4rem;
}

header h1:before,
header h1:after {
  content: '';
}

header nav ul {
  display: flex;
  margin-bottom: 0;
  border-bottom: 2px solid #eee;
  justify-content: center;
}

header nav ul li {
  display: flex;
}

header nav ul li a::before,
header nav ul li a:hover::before {
  content: '';
}

header nav ul li a {
  padding: 0 8px 4px 8px;
  border-bottom: 3px solid transparent;
}

header nav ul li a.active {
  border-color: #000;
}

.subtitle {
  text-align: center;
  margin-top: 0;
  font-size: 14px;
  color: #777;
  font-family: -apple-system, "BlinkMacSystemFont", "Segoe UI", "Roboto", "Inter", "Helvetica", "Arial", sans-serif;
}

header h1 {
  margin: 0;
  padding: 0;
  text-transform: none;
  font-style: italic;
}

.entry-month {
  margin: 32px 0 16px 0;
  text-align: center;
}

.entries-list {
  padding: 0 33px;
}

.entries-list li {
  list-style-type: none;
  padding: 24px;
  border: 1px solid #eee;
  margin-bottom: 16px;
  display: flex;
  border-radius: 8px;
  align-items: center;
  flex-direction: column;
  align-items: flex-start;
  position: relative;
}

.entries-list li a {
  color: #36c;
  font-weight: 500;
  margin-bottom: 4px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, Helvetica, Arial, sans-serif
}

.entries-list li a:hover {
  text-decoration: underline;
}

.entries-list li.author-jk {
  background-color: #ffffff;
}

.entries-list li.author-tw {
  background-color: #f7f7f7;
}

.entries-list li p {
  font-family: -apple-system, "BlinkMacSystemFont", "Segoe UI", "Roboto", "Inter", "Helvetica", "Arial", sans-serif;
  font-size: 16px;
  font-style: italic;
  color: #888;
  margin: 0;
}

.entries-list li span.author {
  font-size: 12px;
  white-space: nowrap;
  font-style: normal;
  position: absolute;
  bottom: 0px;
  color: #444;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  font-weight: bold;
  border: 1px solid #ddd;
  font-family: -apple-system, "BlinkMacSystemFont", "Segoe UI", "Roboto", "Inter", "Helvetica", "Arial", sans-serif;
}

.entries-list li span.author-jk {
  background-color: #fff;
  right: -34px;
}

.entries-list li span.author-tw {
  background-color: #f7f7f7;
  left: -34px;
}

table td,
.articles-by-author {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  font-variant-numeric: tabular-nums;
}

table {
  width: 100%;
  font-size: 18px;
}

table th {
  color: #777;
  border-bottom-color: #ddd;
}

hr {
  margin: 32px 0;
}

.articles-total {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;

}

.articles-total .count {
  font-size: 72px;
  font-weight: bold;
  color: #000;
}

.articles-by-author {
  display: flex;
  margin: 16px 0;
  border: 2px solid #ccc;
  padding: 0;
  align-items: center;
  box-shadow: 6px 6px 0 #ccc;
}

.articles-by-author > section {
  margin: 0;
  padding: 16px;
}

.articles-by-author > section:first-child {
  border-right: 1px solid #ccc;
}
.articles-by-author > section:last-child {
  border-left: 1px solid #ccc;
}

.articles-by-author .author-jk {background-color: #ffffff }
.articles-by-author .author-tw { background-color: #f7f7f7 }