:root {
  color-scheme: dark;
  --bg: #121918;
  --paper: #f3f6ed;
  --soft: #b6c3ba;
  --mute: #9daea4;
  --line: #35463e;
  --accent: #9cf4ce;
  --panel: #1d2c24;
  font-family: "DM Sans", system-ui, sans-serif;
  color: var(--paper);
  background: var(--bg);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(ellipse at 27% 30%, #24372f, transparent 72%);
}
header,
main {
  max-width: 1440px;
  margin: auto;
  padding: 0 clamp(20px, 4.4vw, 64px);
}
header {
  height: 92px;
  display: flex;
  align-items: center;
  gap: 24px;
  position: relative;
}
header:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: clamp(20px, 4.4vw, 64px);
  right: clamp(20px, 4.4vw, 64px);
  height: 1px;
  background: var(--line);
}
header img {
  width: 164px;
  display: block;
}
#repo-name {
  border-left: 1px solid var(--line);
  padding-left: 24px;
  color: var(--soft);
}
.feed {
  margin-left: auto;
}
main {
  padding-top: 36px;
  padding-bottom: 64px;
}
h1 {
  font-size: clamp(36px, 4.1vw, 60px);
  letter-spacing: -0.055em;
  margin: 0;
  line-height: 1.1;
}
h2 {
  font-size: clamp(24px, 3vw, 39px);
  letter-spacing: -0.04em;
  margin: 0.2em 0 0.44em;
}
p {
  color: var(--soft);
  line-height: 1.6;
}
a {
  color: var(--accent);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
button,
select,
.button {
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--paper);
  border-radius: 9px;
  padding: 11px 16px;
  font: inherit;
  cursor: pointer;
}
.button {
  display: inline-block;
  text-decoration: none;
}
.primary {
  color: #17231d;
  background: var(--accent);
  border-color: var(--accent);
  font-weight: 650;
}
button:focus-visible,
a:focus-visible,
select:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}
.row,
.actions,
.tabs {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.row {
  justify-content: space-between;
}
.tabs {
  border-bottom: 1px solid var(--line);
  gap: 26px;
  margin: 24px 0;
}
.tabs button {
  padding: 12px 0;
  border: 0;
  border-bottom: 3px solid transparent;
  background: none;
  border-radius: 0;
  color: var(--soft);
}
.tabs [aria-pressed="true"] {
  color: var(--accent);
  border-color: var(--accent);
}
.feature {
  border: 1px solid var(--line);
  display: grid;
  grid-template-columns: 44% 56%;
  overflow: hidden;
  border-radius: 13px;
  background: #24372e;
}
.feature > div {
  padding: clamp(22px, 3vw, 42px);
  align-self: center;
}
.feature img,
.gallery img,
.card img {
  width: 100%;
  display: block;
  object-fit: cover;
}
.feature img {
  min-height: 260px;
  height: 100%;
  max-height: 362px;
}
.by {
  color: var(--accent);
  font-weight: 640;
  overflow-wrap: anywhere;
}
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}
.card {
  display: block;
  color: var(--paper);
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 10px;
  overflow: hidden;
}
.card img {
  height: 162px;
}
.card div {
  padding: 18px;
}
.crumb {
  display: inline-block;
  margin: 0 0 25px;
}
.detail {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(22px, 3.2vw, 48px);
}
.detail h1 {
  font-size: clamp(32px, 3.6vw, 49px);
}
.gallery img {
  aspect-ratio: 16/9;
  object-fit: contain;
  background: #101714;
  border-radius: 10px;
}
.gallery .actions {
  margin-top: 14px;
}
.facts {
  padding: 16px 0;
  border-block: 1px solid var(--line);
  display: flex;
  gap: 26px;
  flex-wrap: wrap;
}
.facts small {
  display: block;
  color: var(--mute);
  margin-bottom: 5px;
}
code {
  word-break: break-all;
  font-size: 0.85rem;
}
.cards h3 {
  margin: 0;
}
.host {
  display: flex;
  justify-content: space-between;
  padding: 19px 22px;
  align-items: center;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  width: 100%;
  margin-bottom: 10px;
}
.placeholder {
  min-height: 145px;
  display: grid;
  place-items: center;
  background: var(--panel);
  color: var(--mute);
}
@media (max-width: 690px) {
  header {
    height: auto;
    min-height: 72px;
    gap: 12px;
    flex-wrap: wrap;
    padding-block: 16px;
  }
  header img {
    width: 110px;
  }
  .feed {
    font-size: 13px;
  }
  #repo-name {
    font-size: 13px;
    padding-left: 12px;
  }
  .feature,
  .detail {
    grid-template-columns: 1fr;
  }
  .feature > img {
    grid-row: 1;
    min-height: 0;
    max-height: 220px;
  }
  .tabs {
    gap: 16px;
  }
  .row {
    align-items: flex-start;
  }
  .feature > div {
    padding: 22px;
  }
  .detail h1 {
    margin-top: 15px;
  }
}
