:root {
  --bg: #080808;
  --paper: #111111;
  --ink: #f3f3f1;
  --muted: #929292;
  --line: #292929;
  --accent: #c8df9b;
  --max: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
  line-height: 1.45;
}

a {
  color: inherit;
}

.wrap {
  width: min(var(--max), calc(100% - 40px));
  margin: auto;
}

.site-header {
  padding: 40px 0 26px;
  border-bottom: 1px solid var(--line);
}

h1 {
  margin: 0;
  font-size: 40px;
  font-weight: 650;
  line-height: 1;
}

.content section {
  padding: 64px 0;
  border-bottom: 1px solid var(--line);
}

.section-head {
  margin-bottom: 30px;
}

h2 {
  margin: 0;
  font-size: 34px;
}

.card-group + .card-group {
  margin-top: 32px;
}

.label {
  display: block;
  margin: 0 0 12px;
  color: var(--accent);
  font: 600 10px -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
  gap: 16px;
}

.card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.image-frame {
  display: flex;
  aspect-ratio: 4 / 3;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #181818;
}

.image-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-frame--contain img {
  padding: 12px;
  object-fit: contain;
}

.image-frame--gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-content: center;
  gap: 6px;
  padding: 8px;
}

.image-frame--gallery img {
  height: auto;
  aspect-ratio: 1;
  border-radius: 4px;
  background: #f5f4ef;
  object-fit: cover;
}

.image-frame--natural {
  display: block;
  aspect-ratio: auto;
}

.image-frame--natural img {
  height: auto;
  object-fit: contain;
}

.card-body {
  padding: 17px 18px 20px;
}

.name {
  font-size: 16px;
  font-weight: 600;
}

.note {
  margin-top: 5px;
  color: var(--muted);
  font-size: 13px;
}

.list,
.resin {
  max-width: 760px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.row {
  padding: 17px 19px;
  border-top: 1px solid var(--line);
}

.row:first-child {
  border-top: 0;
}

.row-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.row-title {
  display: flex;
  min-width: 0;
  align-items: baseline;
  gap: 8px;
}

.row-title .label,
.card-group > .label {
  display: inline-block;
  margin: 0;
  padding: 2px 5px;
  border-radius: 3px;
  background: #e5c84b;
  color: #171717;
  font-size: 9px;
  white-space: nowrap;
}

.row-title .label {
  flex: 0 0 auto;
}

.card-group > .label {
  margin-bottom: 12px;
}

.row-title strong {
  font-size: 14px;
}

.row a {
  color: var(--muted);
  font: 500 11px -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
  text-decoration: none;
}

.row a:hover {
  color: var(--accent);
}

.row a.icon-link {
  display: inline-flex;
  width: 30px;
  height: 30px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  font-size: 15px;
  transition: border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.row a.icon-link:hover {
  transform: translate(1px, -1px);
  border-color: var(--accent);
}

.resin {
  margin: 0;
  padding: 12px;
}

.resin figcaption {
  padding: 12px 7px 3px;
  color: var(--muted);
  font-size: 13px;
}

footer {
  padding: 42px 0 70px;
  color: var(--muted);
  font-size: 12px;
}

.top {
  color: var(--ink);
  text-decoration: none;
}

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

@media (max-width: 760px) {
  .wrap {
    width: min(100% - 24px, var(--max));
  }

  .site-header {
    padding-top: 34px;
  }

  .content section {
    padding: 46px 0;
  }

}

@media (max-width: 520px) {
  .image-frame--natural {
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-x: contain;
    justify-content: flex-start;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--muted) transparent;
  }

  .image-frame--natural::-webkit-scrollbar {
    height: 5px;
  }

  .image-frame--natural::-webkit-scrollbar-track {
    background: transparent;
  }

  .image-frame--natural::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: var(--muted);
  }

  .image-frame--natural img {
    width: 620px;
    min-width: 620px;
    max-width: none;
  }

  .image-frame--gallery {
    grid-template-rows: 1fr;
    grid-auto-flow: column;
  }
}