/* The answer archive (/archive/), built by npm run daily:publish. */
:root {
  --bg: #f6f7f9;
  --ink: #15191d;
  --muted: #667079;
  --line: #d3d8dc;
  --accent: #0b6f5a;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

a {
  color: var(--accent);
}

.archive-top,
.archive {
  width: min(100%, 640px);
  margin: 0 auto;
  padding: 0 16px;
}

.archive-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 20px;
}

.archive-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 22px;
  font-weight: 900;
  text-decoration: none;
}

.archive-brand small {
  color: var(--muted);
  white-space: nowrap;
  font-size: 13px;
  font-weight: 600;
}

.archive-mark {
  width: 32px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  background: var(--accent);
  color: #fff;
  font-family: "Noto Sans SC", "Microsoft YaHei", "PingFang SC", sans-serif;
  font-size: 20px;
}

.archive-play {
  padding: 8px 14px;
  border-radius: 8px;
  background: #0b8a68;
  color: #fff;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.archive {
  padding-bottom: 48px;
}

.archive h1 {
  margin: 28px 0 8px;
  font-size: 28px;
  line-height: 1.2;
}

.archive-lead {
  margin: 0;
  color: var(--muted);
}

.archive-level h2 {
  margin: 32px 0 12px;
  font-size: 20px;
}

.archive-board {
  width: min(100%, calc(var(--size) * 64px));
  display: grid;
  grid-template-columns: repeat(var(--size), 1fr);
  gap: 3px;
  padding: 4px;
  border-radius: 12px;
  background: #44484b;
}

.archive-board .tile {
  position: relative;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 6px;
  background: color-mix(in srgb, var(--c) 35%, #fff);
  font-family: "Noto Sans SC", "Microsoft YaHei", "PingFang SC", sans-serif;
  font-size: clamp(18px, 6vw, 28px);
  font-weight: 800;
}

.archive-board .tile.empty {
  background: #b8b8b6;
}

.archive-board .tile i {
  position: absolute;
  top: 3px;
  right: 5px;
  color: var(--ink);
  font-family: inherit;
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
  opacity: 0.55;
}

.archive-answers {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.archive-answers li {
  display: flex;
  align-items: center;
  gap: 12px;
}

.answer-word {
  flex: 0 0 auto;
  min-width: 52px;
  padding: 4px 10px;
  border-radius: 8px;
  background: var(--c);
  color: #fff;
  font-family: "Noto Sans SC", "Microsoft YaHei", "PingFang SC", sans-serif;
  font-size: 24px;
  font-weight: 900;
  text-align: center;
}

.answer-detail {
  display: grid;
  min-width: 0;
  line-height: 1.3;
}

.answer-parts {
  font-family: "Noto Sans SC", "Microsoft YaHei", "PingFang SC", sans-serif;
  font-weight: 700;
}

.answer-pinyin {
  font-weight: 700;
}

.answer-meaning {
  color: var(--muted);
  font-size: 14px;
}

.archive-promo {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 36px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  text-decoration: none;
}

.archive-promo img {
  flex: 0 0 auto;
  border-radius: 10px;
}

.archive-nav {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 36px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-weight: 700;
}

.archive-list {
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.archive-list a {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  text-decoration: none;
}

.archive-list span {
  color: var(--muted);
}

.archive-words {
  flex-basis: 100%;
  font-family: "Noto Sans SC", "Microsoft YaHei", "PingFang SC", sans-serif;
}

@media (max-width: 440px) {
  .archive-brand small {
    display: none;
  }

  .archive-play {
    padding: 7px 10px;
    font-size: 14px;
  }
}
