:root {
  color-scheme: light;
  font-family: Arial, Helvetica, sans-serif;
  color: #181a1f;
  background: #f4f1e9;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
header,
main {
  width: min(100% - 32px, 600px);
  margin: auto;
}
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
  gap: 20px;
}
a {
  color: #176941;
}
header > a:last-child {
  font-size: 13px;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
button {
  font: inherit;
  cursor: pointer;
  min-height: 44px;
  border: 1px solid #d4d1ca;
  background: #fffdf8;
  padding: 10px 16px;
  color: inherit;
}
.brand {
  display: flex;
  gap: 10px;
  align-items: center;
  text-decoration: none;
  color: inherit;
}
.brand strong {
  font: 800 12px monospace;
  letter-spacing: 2px;
}
.status > span,
.meta,
.cached {
  font: 11px monospace;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.status > span {
  color: #176941;
  font-weight: bold;
}
.status p,
.cached,
.hint {
  font-size: 13px;
  line-height: 1.6;
  color: #6b6b69;
}
nav {
  display: flex;
  border-bottom: 1px solid #d4d1ca;
  gap: 18px;
  margin: 24px 0 12px;
}
nav button {
  border: 0;
  background: none;
  padding: 10px 0;
}
nav [aria-pressed="true"] {
  font-weight: bold;
  border-bottom: 3px solid #cb3929;
}
#count {
  font-size: 12px;
  color: #6b6b69;
}
article {
  border: 1px solid #d4d1ca;
  border-radius: 14px;
  background: #fffdf8;
  overflow: hidden;
}
#cover {
  position: relative;
  height: 240px;
  background: #181a1f;
  color: #ff6046;
  display: flex;
  align-items: center;
  justify-content: center;
}
#image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
#mark {
  font-size: 70px;
  font-weight: 900;
}
.copy {
  padding: 24px;
}
h1 {
  font-size: 32px;
  line-height: 1.1;
  letter-spacing: -1.2px;
  margin: 20px 0;
}
.intro {
  line-height: 1.6;
  color: #666;
}
.meta {
  color: #666;
}
#body {
  font-size: 17px;
  line-height: 1.7;
  overflow-wrap: anywhere;
  border-top: 1px solid #ddd;
  margin-top: 24px;
  padding-top: 16px;
}
#body img,
#body video {
  max-width: 100%;
  height: auto;
}
#body h2 {
  font-size: 23px;
  line-height: 1.3;
}
#body h3 {
  font-size: 19px;
}
#body table {
  display: block;
  max-width: 100%;
  overflow: auto;
}
.cached {
  margin-top: 32px;
}
.controls {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin: 20px 0;
}
#next {
  background: #217e49;
  color: white;
  border-color: #217e49;
}
button:disabled {
  opacity: 0.4;
  cursor: default;
}
button:focus-visible,
a:focus-visible {
  outline: 3px solid #217e49;
  outline-offset: 3px;
}
#empty {
  padding: 28px 0;
}
.hint {
  padding-bottom: 24px;
}
[hidden] {
  display: none !important;
}
@media (min-width: 900px) {
  header,
  main {
    width: 600px;
  }
  h1 {
    font-size: 38px;
  }
}
@media (prefers-reduced-motion: no-preference) {
  article {
    animation: appear 0.2s ease-out;
  }
  @keyframes appear {
    from {
      opacity: 0.4;
      transform: translateY(8px);
    }
    to {
      opacity: 1;
      transform: none;
    }
  }
}
