body {
  margin: 0;
  padding: 0;
  background-color: #fff;
  color: #000;
  font-family: "proxima-nova", sans-serif;
  font-weight: 700;
}

.center-box {
  display: flex;
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 20px;
  flex-direction: column;
  align-items: center;
}

.logo img {
  width: 160px;
  height: auto;
}

.copyright {
  margin-top: 8px;
  color: #888;
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.journal-entry {
  display: none;
  width: 100%;
}

.journal-entry.active {
  display: block;
}

.content {
  display: flex;
  width: 100%;
  flex-direction: column;
  align-items: flex-start;
}

.journal-heading {
  margin-top: 24px;
  text-align: left;
}

.journal-heading time {
  font-size: 0.85rem;
  font-weight: 400;
  color: #555;
}

.journal-heading :is(h1, h2) {
  margin: 12px 0 0;
  font-size: clamp(18px, 3vw, 23px);
  line-height: 1.2;
}

.journal-volume { margin: 5px 0 0; font-size: 1rem; }

.content img {
  width: 100%;
  max-width: 1000px;
  height: auto;
  margin-top: 20px;
}

.text {
  max-width: 1000px;
  margin-top: 20px;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 0.85rem;
  font-weight: 400;
  line-height: 1.6;
  text-align: left;
}

.text strong {
  font-family: "proxima-nova", sans-serif;
  font-size: 1rem;
  font-weight: 700;
}

.text :is(h2, h3) {
  margin: 1.35em 0 0.35em;
  font-size: 1rem;
}

.text :is(h2, h3):first-child { margin-top: 0; }
.text p { margin: 0 0 0.85em; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.journal-navigation {
  display: flex;
  width: 100%;
  margin-top: 30px;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.journal-navigation :is(button, a) {
  min-width: 44px;
  min-height: 44px;
  padding: 0 8px;
  border: 0;
  background: transparent;
  color: #000;
  font: inherit;
  cursor: pointer;
}

.journal-navigation a { display: inline-grid; place-items: center; box-sizing: border-box; }
.journal-navigation :is(button, a):focus-visible,
.archive-list :is(button, a):focus-visible,
.close-btn:focus-visible {
  outline: 2px solid #111;
  outline-offset: 3px;
}

a {
  color: #000;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.archive-modal {
  position: fixed;
  z-index: 999;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background-color: rgba(0, 0, 0, 0.75);
}

.archive-modal.is-open {
  display: flex;
}

.archive-content {
  position: relative;
  box-sizing: border-box;
  width: 700px;
  max-width: 90%;
  max-height: 80vh;
  padding: 24px;
  overflow-y: auto;
  border-radius: 4px;
  background: #fff;
  font-family: "proxima-nova", sans-serif;
}

.archive-content h2 {
  margin: 24px 0 0;
  padding: 6px 0;
  border-bottom: 1px solid #eee;
  font-size: 1.2rem;
}

.archive-list {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.8rem;
  letter-spacing: 0.015em;
}

.archive-list li {
  border-bottom: 1px solid #eee;
}

.archive-list :is(button, a) {
  display: flex;
  align-items: center;
  box-sizing: border-box;
  width: 100%;
  min-height: 44px;
  padding: 6px 0;
  border: 0;
  background: transparent;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.archive-list [aria-current] {
  font-weight: 700;
}

.text .content-related-links a { text-decoration: underline; text-underline-offset: 3px; }

.close-btn {
  position: absolute;
  top: 12px;
  right: 16px;
  padding: 0;
  border: 0;
  background: transparent;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.journal-status {
  width: 100%;
  font: 400 0.85rem/1.6 "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.journal-status:empty,
.journal-retry[hidden] {
  display: none;
}

@media (max-width: 520px) {
  .archive-content {
    max-width: calc(100% - 32px);
  }
}

.journal-category {
  margin: 6px 0 0;
  color: #555;
  font-size: 0.8rem;
  font-weight: 400;
}

.journal-related {
  width: 100%;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid #ddd;
}

.archive-filters {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 16px;
  padding: 14px 0 8px;
}

.archive-filters label {
  display: grid;
  min-width: 0;
  gap: 4px;
  font-size: 0.8rem;
}

.archive-search,
.archive-count {
  grid-column: 1 / -1;
}

.archive-filters :is(input, select) {
  box-sizing: border-box;
  width: 100%;
  min-height: 44px;
  padding: 6px 8px;
  border: 1px solid #aaa;
  border-radius: 0;
  background: #fff;
  color: #111;
  font: 400 1rem/1.25 "proxima-nova", sans-serif;
}

.archive-filters :is(input, select):focus-visible {
  outline: 2px solid #111;
  outline-offset: 2px;
}

.archive-count {
  margin: 0;
  color: #555;
  font-size: 0.8rem;
  font-weight: 400;
}

@media (max-width: 430px) {
  .archive-filters {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }
}
