:root {
  --bg: #ffffff;
  --ink: #0f0f0f;
  --muted: rgba(15, 15, 15, 0.6);
  --pad-x: clamp(20px, 4vw, 52px);
  --nav-h: 52px;
  --link-gap: clamp(18px, 3vw, 36px);
  --link-size: clamp(0.82rem, 1.6vw, 0.95rem);
  --brand-size: clamp(0.9rem, 1.8vw, 1.02rem);
  --logo-size: clamp(28px, 3.2vw, 36px);
  --section-pad: clamp(40px, 8vw, 100px);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 300;
  color: var(--ink);
  background: var(--bg);
  min-height: 100vh;
}

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

/* Typography utilities */
.text-label {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
  line-height: 1.1;
  display: inline-block;
}

.text-title {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.text-body {
  font-size: 1rem;
  line-height: 1.6;
  color: rgba(15, 15, 15, 0.7);
}

.text-store-title {
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}

.text-store-subtitle {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(15, 15, 15, 0.6);
}

.text-navlinks {
  font-size: var(--link-size);
  font-weight: 200;
  letter-spacing: 0.04em;
  line-height: 1;
  text-transform: uppercase;
}

.text-footer-label {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
}

.text-footer-note {
  font-size: 0.95rem;
  color: rgba(15, 15, 15, 0.65);
}

.text-footer-title {
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(15, 15, 15, 0.5);
}

.text-footer-link {
  font-size: 0.9rem;
  color: rgba(15, 15, 15, 0.7);
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-h);
  z-index: 100;
  --nav-ink: #111111;
  --nav-ink-hover: rgba(17, 17, 17, 0.6);
  color: var(--nav-ink);
  border-bottom: 1px solid transparent;
  background: transparent;
  isolation: isolate;
  box-shadow: none;
  transition: background 260ms ease, border-color 260ms ease, box-shadow 260ms ease;
}

.header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.08) 0%,
    rgba(255, 255, 255, 0.00) 60%
  );
  opacity: 0.2;
  -webkit-mask-image: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 1) 0%,
    rgba(0, 0, 0, 1) 30%,
    rgba(0, 0, 0, 0.4) 65%,
    rgba(0, 0, 0, 0) 100%
  );
  mask-image: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 1) 0%,
    rgba(0, 0, 0, 1) 30%,
    rgba(0, 0, 0, 0.4) 65%,
    rgba(0, 0, 0, 0) 100%
  );
  z-index: 0;
  pointer-events: none;
  transition: opacity 280ms cubic-bezier(0.2, 0.8, 0.2, 1);
  transition-delay: 40ms;
}

.header::after {
  content: "";
  position: absolute;
  inset: 0;
  -webkit-backdrop-filter: blur(22px) saturate(160%) contrast(110%);
  backdrop-filter: blur(22px) saturate(160%) contrast(110%);
  -webkit-mask-image: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 1) 0%,
    rgba(0, 0, 0, 1) 30%,
    rgba(0, 0, 0, 0.4) 65%,
    rgba(0, 0, 0, 0) 100%
  );
  mask-image: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 1) 0%,
    rgba(0, 0, 0, 1) 30%,
    rgba(0, 0, 0, 0.4) 65%,
    rgba(0, 0, 0, 0) 100%
  );
  opacity: 0.6;
  z-index: 0;
  pointer-events: none;
  transition: opacity 280ms cubic-bezier(0.2, 0.8, 0.2, 1),
    -webkit-backdrop-filter 280ms ease, backdrop-filter 280ms ease;
}

.header.scrolled {
  background: transparent;
  border-bottom-color: transparent;
  box-shadow: none;
}

.header.scrolled::before {
  opacity: 0.32;
}

.header.scrolled::after {
  backdrop-filter: blur(28px) saturate(160%) contrast(110%);
  -webkit-backdrop-filter: blur(28px) saturate(160%) contrast(110%);
  opacity: 0.95;
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .header::after {
    display: none;
  }
}

.nav {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 var(--pad-x);
  position: relative;
  z-index: 1;
}

.nav__slot {
  display: flex;
  align-items: center;
}

.nav__slot--logo,
.nav__slot--spacer {
  justify-content: center;
}

.nav__logo-link {
  display: inline-flex;
  align-items: center;
  line-height: 1;
}

.nav__logo {
  width: var(--logo-size);
  height: auto;
  display: block;
}

.header.light .nav__logo {
  filter: invert(1) brightness(0.15);
}

.nav__center {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--link-gap);
}

.nav__link {
  position: relative;
  opacity: 0.7;
  padding: 4px 0;
  transition: opacity 0.2s ease, color 0.2s ease;
}

.nav__link:hover {
  opacity: 1;
  color: rgba(15, 15, 15, 0.6);
}

.nav__link:focus-visible,
.nav__logo-link:focus-visible {
  outline: 2px solid #111111;
  outline-offset: 3px;
  border-radius: 4px;
}

/* Sections */
.section {
  min-height: 100vh;
  padding: var(--section-pad) var(--pad-x);
  display: flex;
  align-items: center;
}

.section__intro {
  display: grid;
  gap: 12px;
}

.section--store,
#store-page {
  background: #ffffff;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  position: relative;
}

.store__body {
  width: 100%;
  max-width: 100%;
  flex: 1;
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.store__label {
  color: var(--muted);
}

.store__cta {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  min-width: 180px;
  border: 1px solid rgba(15, 15, 15, 0.5);
  border-radius: 999px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: rgba(15, 15, 15, 0.85);
}

.store__cta:hover {
  color: rgba(15, 15, 15, 1);
}

.store__shelf {
  margin-top: auto;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  height: 48vh;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  background: #5a5a5a;
}

.store__shelf--grid {
  height: auto;
  min-height: 80vh;
  grid-auto-rows: minmax(220px, 1fr);
  padding: clamp(24px, 4vw, 48px) var(--pad-x) clamp(40px, 6vw, 64px);
  row-gap: clamp(18px, 3vw, 28px);
  column-gap: clamp(12px, 2vw, 20px);
  background: #ffffff;
  box-sizing: border-box;
}

.store__item {
  background: #565656;
  display: grid;
  grid-template-rows: 1fr auto;
  padding: 18px;
  gap: 16px;
}

.store__media {
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: rgba(255, 255, 255, 0.65);
}

.store__content {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}

.store__title {
  margin-bottom: 6px;
}

.store__subtitle {
  color: rgba(15, 15, 15, 0.6);
}

.store__button {
  background: transparent;
  border: 1px solid rgba(15, 15, 15, 0.5);
  color: inherit;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 8px 14px;
}

/* Footer */
.section--footer,
.footer-section {
  background: #efefef;
  min-height: 32vh;
  align-items: stretch;
}

.footer-inner {
  width: 100%;
  display: grid;
  gap: 24px;
}

.footer-brand {
  max-width: 360px;
  display: grid;
  gap: 12px;
}

.footer-note {
  color: rgba(15, 15, 15, 0.65);
}

.footer-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 24px;
}

.footer-col {
  display: grid;
  gap: 8px;
  color: rgba(15, 15, 15, 0.7);
}

.footer-title {
  color: rgba(15, 15, 15, 0.5);
}

.footer-col a,
.footer-col span {
  color: inherit;
}

@media (max-width: 720px) {
  :root {
    --nav-h: 48px;
    --link-gap: clamp(12px, 2.5vw, 20px);
  }
}
