* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: #f6f9f8;
  color: #102827;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", sans-serif;
}
a {
  color: inherit;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
button,
input {
  font: inherit;
}
button {
  cursor: pointer;
}
a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 3px solid #007c64;
  outline-offset: 3px;
}
.mast {
  background:
    radial-gradient(ellipse at 17% 3%, #ccf3e4, transparent 51%),
    radial-gradient(ellipse at 78% 20%, #e0e7fc, transparent 60%), #f6f9f8;
}
.bar,
main,
footer {
  max-width: 1370px;
  margin: auto;
  padding-inline: clamp(18px, 3.6vw, 55px);
}
.bar {
  height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  font-size: 20px;
  letter-spacing: -0.7px;
  font-weight: 750;
  display: flex;
  align-items: center;
  gap: 9px;
}
.brand span {
  background: #17d995;
  color: #032d23;
  border-radius: 7px;
  padding: 0 7px;
  line-height: 28px;
}
.bar nav {
  display: flex;
  gap: 22px;
  font-size: 14px;
}
.hero {
  text-align: center;
  padding: clamp(34px, 5vw, 77px) 16px clamp(38px, 5vw, 75px);
}
h1 {
  font-size: clamp(32px, 4.6vw, 70px);
  letter-spacing: -0.065em;
  margin: 0;
  line-height: 1.15;
}
h1 em {
  display: inline-block;
  font-style: normal;
  color: #087b55;
}
.hero p {
  color: #475d58;
  margin: 16px auto 26px;
  line-height: 1.65;
}
form {
  max-width: 640px;
  margin: auto;
  padding: 5px 5px 5px 17px;
  background: #fff;
  border: 1px solid #c3d4cf;
  border-radius: 15px;
  display: flex;
  gap: 7px;
}
input {
  border: 0;
  background: transparent;
  min-width: 0;
  flex: 1;
  color: inherit;
}
form button,
.actions button {
  border: 0;
  background: #24d995;
  color: #082b20;
  font-weight: 650;
  padding: 11px 22px;
  border-radius: 9px;
}
.section {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-top: 26px;
}
.section h2 {
  font-size: clamp(25px, 2.6vw, 36px);
  letter-spacing: -0.045em;
  margin: 0;
}
#count,
.label,
.detail-head span {
  font-size: 13px;
  color: #526b64;
}
#categories {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 18px 0 24px;
}
#categories button,
article button,
#close {
  border: 1px solid #cfdbd6;
  background: white;
  color: #284139;
  border-radius: 20px;
  padding: 7px 14px;
}
#categories [aria-pressed="true"],
article [aria-pressed="true"] {
  background: #143f34;
  color: white;
}
#blocks-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px 22px;
  min-height: 160px;
}
article {
  position: relative;
  min-width: 0;
}
article h3 {
  font-size: 20px;
  letter-spacing: -0.035em;
  margin: 5px 64px 4px 0;
}
article h3 a::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  aspect-ratio: 1.75;
}
article p,
#desc {
  font-size: 14px;
  line-height: 1.6;
  color: #456056;
  margin: 0;
}
article button {
  margin-top: 8px;
  font-size: 12px;
}
.cover {
  display: flex;
  aspect-ratio: 1.75;
  overflow: hidden;
  border-radius: 12px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
  background-color: #dfece6;
}
.cover img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 16px;
}
.cover b {
  font-size: clamp(28px, 3.75vw, 60px);
  letter-spacing: -0.055em;
}
.cover small {
  font-size: 12px;
  letter-spacing: 0.1em;
}
.teal {
  background:
    radial-gradient(ellipse at 10% 110%, #0e715f, transparent 64%), #102e36;
  color: #d2ffe8;
}
.violet {
  background: radial-gradient(at 92% 92%, #afb8f9, transparent 60%), #e9e7fc;
  color: #30386d;
}
.amber {
  background:
    radial-gradient(ellipse at right top, #f7cb8f, transparent 65%), #fcedcf;
  color: #653b1a;
}
footer {
  display: flex;
  justify-content: space-between;
  color: #557067;
  margin: 50px auto 0;
  padding-block: 22px;
  font-size: 12px;
  border-top: 1px solid #dce5e1;
}
dialog {
  color: inherit;
  width: min(560px, calc(100% - 32px));
  border: 0;
  border-radius: 16px;
  padding: 26px;
  box-shadow: 0 20px 64px #001a1840;
}
dialog::backdrop {
  background: #142a2777;
}
.detail-head,
.actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.actions {
  justify-content: flex-start;
  flex-wrap: wrap;
}
dialog h2 {
  font-size: 27px;
  margin: 17px 0 8px;
}
dialog h3 {
  font-size: 16px;
  margin-bottom: 6px;
}
pre {
  font: inherit;
  line-height: 1.72;
  white-space: pre-wrap;
  background: #eff5f1;
  padding: 15px;
  border-radius: 9px;
}
.actions a,
#source {
  color: #006c4a;
  text-decoration: underline;
}
#feedback {
  min-height: 1.25em;
  font-size: 13px;
}
#source {
  font-size: 13px;
}
@media (max-width: 900px) {
  #blocks-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 600px) {
  #blocks-grid {
    grid-template-columns: 1fr;
  }
  .bar nav {
    gap: 12px;
  }
  .hero p {
    font-size: 14px;
  }
  .cover b {
    font-size: 40px;
  }
  article button {
    min-height: 36px;
  }
}
