/* Page shell: header, navigation, footer, page grids. */

.site-head {
  position: sticky;
  top: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  min-height: var(--head-h);
  padding: 12px clamp(16px, 4vw, 40px);
  border-bottom: 1px solid var(--line);
  background: rgba(11, 9, 8, 0.82);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(155deg, #ffb35f, #c26312);
  color: #1a1207;
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.02em;
  box-shadow: 0 10px 22px -14px rgba(255, 159, 69, 0.9);
}

.brand-copy {
  display: grid;
  line-height: 1.1;
}

.brand-copy strong {
  font-size: 16px;
  letter-spacing: -0.01em;
}

.brand-copy small {
  color: var(--faint);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  justify-content: center;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}

.site-nav::-webkit-scrollbar {
  display: none;
}

.site-nav a {
  padding: 8px 13px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.16s ease, background 0.16s ease;
}

.site-nav a:hover {
  color: var(--ink);
  background: var(--surface);
}

.site-nav a[aria-current="page"] {
  color: var(--ink);
  background: var(--surface-2);
  box-shadow: inset 0 0 0 1px var(--line);
}

.head-tools {
  display: flex;
  align-items: center;
  gap: 10px;
}

.view {
  width: min(1240px, 100%);
  margin: 0 auto;
  padding: clamp(20px, 3.4vw, 40px) clamp(16px, 4vw, 40px) 64px;
  outline: none;
}

.site-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  padding: 22px clamp(16px, 4vw, 40px);
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-size: 12.5px;
}

.foot-links {
  display: flex;
  gap: 16px;
}

.foot-links a {
  color: var(--muted);
  text-decoration: none;
}

.foot-links a:hover {
  color: var(--ember);
}

/* ---------- page furniture ---------- */

.page-head {
  display: grid;
  gap: 12px;
  margin-bottom: 26px;
  max-width: 760px;
}

.page-head h1,
.page-head h2 {
  font-size: clamp(1.8rem, 3.4vw, 2.5rem);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(20px, 3vw, 40px);
  align-items: start;
}

.stack {
  display: grid;
  gap: 14px;
}

.row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

@media (max-width: 1080px) {
  .split {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 900px) {
  .site-head {
    grid-template-columns: auto 1fr;
    grid-template-areas:
      "brand tools"
      "nav nav";
    row-gap: 10px;
  }

  .brand {
    grid-area: brand;
  }
  .site-nav {
    grid-area: nav;
    justify-content: flex-start;
  }
  .head-tools {
    grid-area: tools;
    justify-self: end;
  }

  .grid-3,
  .grid-2 {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 560px) {
  .brand-copy small {
    display: none;
  }

  .head-tools .btn.primary {
    display: none;
  }
}
