@font-face {
  font-family: "Pixel";
  src: url("../assets/fonts/Pixel.ttf") format("truetype");
  font-display: swap;
}

:root {
  --page-bg: #ffffff;
  --text-main: #111111;
  --text-muted: #666666;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  background: var(--page-bg);
  color: var(--text-main);
  font-family: "Pixel", monospace;
}

a {
  color: inherit;
  text-decoration: none;
}

.collection-page {
  min-height: 100vh;
  padding: 24px 28px 44px;
  display: flex;
  flex-direction: column;
}

.collection-header {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding-bottom: 40px;
}

.cart-link {
  position: absolute;
  top: 0;
  right: 0;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  line-height: 1.6;
}

.collection-logo-link {
  display: inline-flex;
}

.collection-logo-link img {
  width: min(138px, 34vw);
  display: block;
}

.collection-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px 24px;
}

.collection-nav a {
  position: relative;
}

.collection-nav a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -4px;
  width: 0;
  height: 1px;
  background: var(--text-main);
  transform: translateX(-50%);
  transition: width 160ms ease;
}

.collection-nav a:hover::after,
.collection-nav a:focus-visible::after {
  width: 100%;
}

.collection-message {
  flex: 1;
  display: grid;
  place-items: center;
  text-align: center;
}

.collection-message p,
.collection-nav a,
.site-footer p,
.site-footer a {
  margin: 0;
  font-size: 0.86rem;
  letter-spacing: 0.08em;
  line-height: 1.7;
}

.site-footer {
  margin-top: 56px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}

.site-footer p,
.site-footer a:last-child {
  color: var(--text-muted);
}

.site-footer a {
  position: relative;
}

.site-footer a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -4px;
  width: 0;
  height: 1px;
  background: var(--text-main);
  transform: translateX(-50%);
  transition: width 160ms ease;
}

.site-footer a:hover::after,
.site-footer a:focus-visible::after {
  width: 100%;
}

@media (max-width: 560px) {
  .collection-page {
    padding: 20px 16px 36px;
  }

  .collection-header {
    padding-bottom: 28px;
  }

  .collection-logo-link img {
    width: min(120px, 38vw);
  }

  .collection-message p,
  .collection-nav a,
  .site-footer p,
  .site-footer a {
    font-size: 0.74rem;
  }
}
