* {
  box-sizing: border-box;
}
:root {
  color-scheme: light;
  --ink: #172c28;
  --sub: #526761;
  --accent: #146550;
  --line: #dbe5df;
  --wash: #edf5ef;
}
body {
  margin: 0;
  background: white;
  color: var(--ink);
  font:
    16px/1.5 system-ui,
    -apple-system,
    sans-serif;
}
main {
  max-width: 1160px;
  margin: auto;
  padding: clamp(22px, 5vw, 64px) clamp(18px, 5vw, 52px) 48px;
}
h1,
h2,
p,
dl,
dd {
  margin: 0;
}
h1 {
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.06;
  letter-spacing: -0.045em;
  overflow-wrap: anywhere;
}
h2 {
  font-size: clamp(20px, 2.5vw, 25px);
  letter-spacing: -0.035em;
  line-height: 1.2;
  margin-bottom: 16px;
}
.summary {
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}
.identity {
  display: flex;
  gap: 22px;
  align-items: center;
}
.titles {
  min-width: 0;
}
.languages {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 14px;
  grid-column: 1;
}
.languages a {
  font-size: 13px;
  color: var(--sub);
  text-decoration: none;
}
.languages a[aria-current="true"] {
  color: var(--accent);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.publisher {
  color: var(--accent);
  font-weight: 650;
  margin-top: 5px;
  overflow-wrap: anywhere;
}
.category {
  display: inline-block;
  font-size: 12px;
  font-weight: 650;
  margin-top: 8px;
  border: 1px solid #bdcec4;
  border-radius: 100px;
  padding: 2px 11px;
}
.icon {
  width: clamp(76px, 11vw, 108px);
  aspect-ratio: 1;
  flex: none;
  object-fit: contain;
  border-radius: 24%;
  background: #fff;
  box-shadow: 0 2px 10px #133d2317;
}
.icon.fallback {
  display: grid;
  place-items: center;
  color: var(--accent);
  font-size: 32px;
  font-weight: 700;
}
.metrics {
  display: flex;
  gap: 0;
  margin: 24px 0;
  overflow-x: auto;
  scrollbar-width: thin;
}
.metrics div {
  display: grid;
  align-content: start;
  min-width: 0;
  padding: 0 clamp(10px, 3vw, 30px);
  border-left: 1px solid #cddbd2;
  flex-shrink: 0;
}
.metrics div:first-child {
  border: 0;
  padding-left: 0;
}
.metrics dt {
  font-size: 12px;
  color: var(--sub);
  order: 1;
}
.metrics dd {
  font-size: 17px;
  font-weight: 700;
  white-space: nowrap;
}
.actions {
  display: flex;
  gap: 22px;
  align-items: center;
}
.actions a {
  color: var(--accent);
  font-size: 14px;
  font-weight: 650;
  text-underline-offset: 4px;
}
button,
input {
  font: inherit;
}
button {
  cursor: pointer;
}
#install,
#copy {
  border: 0;
  padding: 12px 26px;
  border-radius: 12px;
  color: white;
  background: var(--accent);
  font-weight: 700;
}
#install {
  min-width: 220px;
}
.install-icon {
  margin-right: 7px;
}
.content {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 32px;
  margin-top: 32px;
}
.media-block,
.info,
.reviews {
  min-width: 0;
}
.strip {
  display: flex;
  align-items: stretch;
  gap: 10px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
  padding-bottom: 6px;
}
.shot {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  max-width: 100%;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: #f5f7f3;
  scroll-snap-align: start;
}
.shot img {
  display: block;
  width: auto;
  height: clamp(224px, 32vw, 330px);
  max-width: 100%;
  object-fit: contain;
}
.info > section + section {
  margin-top: 28px;
}
.info p,
.reviews p {
  white-space: pre-line;
  overflow-wrap: anywhere;
  color: #344b43;
}
.specs dl div {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.specs dt {
  color: var(--sub);
}
.specs dd {
  text-align: right;
  overflow-wrap: anywhere;
}
.reviews {
  grid-column: 1/-1;
  border-top: 1px solid var(--line);
  padding-top: 24px;
}
.cover .summary {
  border-bottom: 2px solid #aec7ba;
}
.details .info {
  order: -1;
}
.poster .identity {
  flex-direction: column;
  text-align: center;
}
.poster .actions,
.poster .metrics {
  justify-content: center;
}
.category:empty,
.publisher:empty,
.media-block:has(.strip:empty),
.about:has(p:empty),
.specs:has(dl:empty),
.reviews:has(p:empty),
.metrics:empty {
  display: none;
}
.metrics:empty + .actions {
  margin-top: 22px;
}
.content:not(:has(.shot)) {
  grid-template-columns: 1fr;
}
@media (min-width: 661px) {
  .summary {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    column-gap: 48px;
  }
  .summary .identity,
  .content .info {
    display: contents;
  }
  .summary .icon {
    width: clamp(132px, 16vw, 184px);
    grid-column: 2;
    grid-row: 1 / span 4;
    align-self: start;
  }
  .summary .titles,
  .summary .metrics,
  .summary .actions {
    grid-column: 1;
    text-align: left;
    justify-content: flex-start;
  }
  .content {
    grid-template-columns: minmax(0, 2fr) minmax(210px, 1fr);
    align-items: start;
  }
  .content .media-block,
  .content .about,
  .content .reviews {
    grid-column: 1;
  }
  .content .specs {
    grid-column: 2;
    grid-row: 1 / span 2;
    margin: 0;
    padding: 20px;
    border-radius: 16px;
    background: #f4f7f4;
  }
  .content:not(:has(.specs dd)) {
    grid-template-columns: minmax(0, 1fr);
  }
  .details .about {
    grid-row: 1;
  }
  .cover .shot img {
    height: clamp(260px, 30vw, 352px);
  }
  .poster .summary .icon {
    width: clamp(155px, 18vw, 210px);
  }
}
dialog {
  width: min(410px, 92vw);
  max-height: 90dvh;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 26px;
  color: var(--ink);
  box-shadow: 0 18px 64px #0e2b2340;
}
dialog::backdrop {
  background: #12251eb3;
}
dialog .icon {
  width: 52px;
  margin-bottom: 16px;
}
dialog form {
  float: right;
}
dialog label {
  display: block;
  margin: 16px 0 6px;
  font-size: 13px;
  font-weight: 600;
}
.close {
  width: 36px;
  height: 36px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: var(--wash);
  color: var(--ink);
  font-size: 22px;
}
dialog input {
  width: 100%;
  padding: 10px;
  border: 1px solid #c1cfc5;
  border-radius: 8px;
}
#copy {
  width: 100%;
  margin: 12px 0;
}
#feedback {
  display: block;
}
#viewer {
  width: fit-content;
  max-width: 94vw;
  padding: 9px;
  background: #16231e;
  border: 0;
}
#viewer form {
  position: absolute;
  right: 16px;
  top: 16px;
}
#viewer img {
  display: block;
  max-width: 100%;
  max-height: 82dvh;
  object-fit: contain;
  border-radius: 12px;
}
:focus-visible {
  outline: 3px solid #b5660c;
  outline-offset: 2px;
}
@media (max-width: 660px) {
  .strip:has(> .shot:nth-child(2):last-child) {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
  }
  .strip:has(> .shot:nth-child(2):last-child) .shot img {
    width: 100%;
    height: auto;
    max-height: 420px;
  }
  main {
    padding: 0 18px 36px;
  }
  .summary {
    margin: 0 -18px;
    padding: 26px 18px 20px;
    border: 0;
    border-radius: 0;
    border-bottom: 1px solid var(--line);
  }
  .identity {
    gap: 15px;
  }
  .actions {
    flex-direction: column;
    gap: 10px;
  }
  .actions button {
    width: 100%;
  }
  .metrics {
    margin: 20px 0;
  }
  .metrics div {
    flex: 1;
    text-align: center;
    padding: 0 7px;
  }
  .metrics div:first-child {
    padding-left: 0;
  }
  .metrics dd {
    font-size: 15px;
  }
  .metrics dt {
    font-size: 11px;
  }
  .content {
    grid-template-columns: minmax(0, 1fr);
    gap: 25px;
    margin-top: 24px;
  }
  .shot img {
    height: clamp(225px, 63vw, 315px);
  }
  .cover .summary {
    border-bottom: 2px solid #aec7ba;
  }
  .poster .identity {
    flex-direction: row;
    text-align: left;
  }
  .poster .icon {
    width: 90px;
  }
}
