@font-face {
  font-family: "WorryAvenir";
  font-style: normal;
  font-weight: 400;
  src: url("https://worrydream.com/Home2024/Avenir-Book.woff") format("woff");
}

@font-face {
  font-family: "WorryAvenir";
  font-style: normal;
  font-weight: 700;
  src: url("https://worrydream.com/Home2024/Avenir-Medium.woff") format("woff");
}

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

html {
  overflow-x: hidden;
  background: #10183a;
}

body {
  min-width: 320px;
  overflow-x: hidden;
  background: #10183a;
  color: #ace;
  font: normal 13px/1.2 "WorryAvenir", "Avenir Next", Avenir, "Helvetica Neue", "PingFang SC",
    "Microsoft YaHei", sans-serif;
  padding: 30px;
  padding-bottom: 0;
}

dialog {
  background: #10183a;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

a,
button.link-button,
.article-title,
.archive-link,
.plain-index button,
.tiny-nav button {
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}

a:hover,
button:hover,
.article-title:hover,
.archive-link:hover,
.plain-index button:hover {
  text-decoration: underline;
}

button {
  border: 0;
  background: transparent;
  appearance: none;
}

.everything {
  position: relative;
  max-width: 564px;
  margin-right: auto;
  margin-left: auto;
}

h1 {
  margin-bottom: 0;
  color: #999;
  font-size: 19px;
  font-weight: 400;
  text-transform: uppercase;
}

h2 {
  margin-bottom: 16px;
  color: #999;
  font-size: 11px;
  font-weight: 400;
}

h3 {
  position: absolute;
  margin-left: 30px;
  color: #999;
  font-size: 13px;
  font-weight: 400;
}

p {
  margin-top: 12px;
  margin-bottom: 12px;
}

ul {
  margin-top: 10px;
  margin-bottom: 10px;
  margin-left: 70px;
  list-style-type: none;
}

li {
  margin-bottom: 2px;
  color: #999;
}

hr {
  margin-top: 40px;
  margin-bottom: 40px;
  border: 0;
  border-top: 1px solid #346;
}

.intro p {
  margin-top: 2px;
  margin-bottom: 2px;
}

.intro p.section,
.section {
  margin-top: 16px;
}

.tiny-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0 11px;
  margin-top: 18px;
  color: #999;
}

.tiny-nav a,
.tiny-nav button {
  font-size: 13px;
}

.tools p:first-child,
#articles-title,
#archive-title,
#trajectory-title,
#category-title,
#tag-title {
  color: #ace;
}

.search-row {
  display: flex;
  align-items: end;
  gap: 9px;
  margin: 10px 0 12px 70px;
}

.search-row label {
  display: grid;
  flex: 1;
  gap: 4px;
  color: #999;
}

.search-row input {
  width: 100%;
  height: 25px;
  border: 1px solid #346;
  border-radius: 0;
  background: #10183a;
  color: #fff;
  padding: 2px 7px;
  outline: none;
}

.search-row input:focus {
  border-color: #ace;
}

.search-row button {
  height: 25px;
  color: #fff;
  font-weight: 700;
}

.filter-group,
.plain-index,
.reader-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 10px;
  margin-left: 70px;
}

.filter-button,
.plain-index button {
  color: #999;
  font-size: 13px;
  font-weight: 400;
}

.filter-button::before,
.plain-index button::before {
  content: "[";
  color: #346;
}

.filter-button::after,
.plain-index button::after {
  content: "]";
  color: #346;
}

.filter-button[aria-pressed="true"],
.plain-index button.active {
  color: #ff0;
  font-weight: 700;
}

.result-line {
  margin-top: 10px;
  margin-left: 70px;
  color: #999;
}

.year-group {
  position: relative;
  margin-top: 10px;
  margin-bottom: 10px;
}

.year-group h3 {
  top: 0;
}

.article-list {
  margin-left: 70px;
}

.article-list li {
  margin-bottom: 8px;
}

.article-title {
  display: inline;
  font-size: 13px;
}

.article-date {
  color: #999;
  font-weight: 400;
  margin-right: 8px;
}

.article-title.good {
  color: #ff0;
}

.article-summary,
.article-meta,
.article-equation {
  color: #999;
}

.article-summary {
  display: inline;
}

.article-meta {
  display: block;
  margin-top: 1px;
  font-size: 12px;
}

.article-equation {
  color: #ace;
  font-size: 12px;
}

#archiveGrid {
  margin-top: 10px;
}

.archive-year {
  position: relative;
  margin-bottom: 14px;
}

.archive-year h3 {
  top: 0;
}

.archive-year ul {
  min-height: 18px;
}

.timeline-item {
  position: relative;
  margin-bottom: 12px;
}

.timeline-item h3 {
  top: 0;
}

.timeline-item p,
.timeline-item .timeline-title {
  margin-left: 70px;
}

.timeline-title {
  color: #fff;
  font-weight: 700;
}

.timeline-item p {
  color: #999;
}

.bio {
  margin-top: 30px;
  margin-bottom: 22px;
  margin-left: 30px;
  color: #999;
  font-size: 12px;
}

.bio ul {
  margin-left: 23px;
  list-style-type: disc;
}

.bio li {
  margin-bottom: 6px;
}

.reader-dialog {
  width: min(760px, calc(100% - 30px));
  max-height: min(820px, calc(100svh - 30px));
  padding: 0;
  border: 1px solid #346;
  background: #10183a;
  color: #ace;
}

.reader-dialog::backdrop {
  background: rgba(0, 0, 0, 0.68);
}

.reader {
  position: relative;
  padding: 30px;
}

.reader-close {
  position: absolute;
  top: 13px;
  right: 13px;
  width: 28px;
  height: 28px;
  color: #fff;
  font-size: 21px;
  font-weight: 400;
}

.reader-meta {
  margin-bottom: 2px;
  color: #999;
}

.reader h2 {
  margin-bottom: 8px;
  color: #999;
  font-size: 19px;
  text-transform: none;
}

.reader-tags {
  margin-bottom: 20px;
  margin-left: 0;
}

.reader-tags span {
  color: #999;
}

.reader-body {
  color: #ace;
  font-size: 15px;
  line-height: 1.45;
}

.reader-body p {
  margin-top: 12px;
  margin-bottom: 12px;
}

.reader-body blockquote {
  margin: 18px 0;
  padding-left: 18px;
  border-left: 1px solid #346;
  color: #ff0;
}

.empty-state {
  margin-left: 70px;
  color: #999;
}

@media screen and (max-width: 500px) {
  body {
    padding: 24px 20px 0;
    font-size: 15px;
  }

  h3 {
    margin-left: 20px;
    font-size: 15px;
  }

  ul,
  .article-list,
  .filter-group,
  .plain-index,
  .result-line,
  .search-row {
    margin-left: 64px;
  }

  li {
    margin-bottom: 8px;
  }

  .article-list li {
    margin-bottom: 12px;
  }

  .bio {
    font-size: 13px;
  }

  .intro p {
    margin-bottom: 12px;
  }

  .search-row {
    align-items: stretch;
    flex-direction: column;
  }

  .search-row button {
    align-self: flex-start;
  }
}
