/* MOEDARE — dark cards, quiet motion, system UI. */

:root {
  --page: #0E0F12;
  --card: #181A1F;
  --ink: #F3F4F6;
  --muted: #9CA3AF;
  --line: #2A2E36;
  --charcoal: #F3F4F6;
  --charcoal-hover: #ffffff;
  --btn: #F3F4F6;
  --btn-ink: #0E0F12;
  --shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
  --shadow-hover: 0 14px 36px rgba(0, 0, 0, 0.5);
  --radius: 1.15rem;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --ease: 220ms cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

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

body {
  min-height: 100dvh;
  background: var(--page);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  inset: -20%;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 20% 10%, rgba(90, 110, 140, 0.22), transparent 50%),
    radial-gradient(ellipse at 85% 90%, rgba(180, 90, 40, 0.12), transparent 46%);
  animation: glow 14s ease-in-out infinite alternate;
}


/* Full-bleed photo — fixed viewport layer, never scrolls with content */
.page-bg {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  min-width: 100%;
  min-height: 100%;
  z-index: -2;
  pointer-events: none;
  background-color: var(--page);
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-attachment: scroll;
  transform: translateZ(0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

body.has-photo .page-bg {
  background-image: url("../img/bg.jpg");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

body.has-bg::before {
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  height: 100dvh;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(14, 15, 18, 0.72) 0%, rgba(14, 15, 18, 0.82) 55%, rgba(14, 15, 18, 0.9) 100%),
    radial-gradient(ellipse at 20% 10%, rgba(90, 110, 140, 0.16), transparent 50%),
    radial-gradient(ellipse at 85% 90%, rgba(180, 90, 40, 0.08), transparent 46%);
  animation: none !important;
  transform: translateZ(0);
  opacity: 1;
}

/* Lighter veil so more of the garage shows through */
body.has-photo::before {
  background:
    linear-gradient(180deg, rgba(14, 15, 18, 0.48) 0%, rgba(14, 15, 18, 0.58) 45%, rgba(14, 15, 18, 0.68) 100%);
}

/* Same cover on every breakpoint — no letterbox bars */
@media (max-width: 799px) {
  body.has-photo .page-bg {
    background-size: cover;
    background-position: center 40%;
  }
}

@media (min-width: 800px) {
  body.has-photo .page-bg {
    background-size: cover;
    background-position: center center;
  }
}

/* Solid cards — no backdrop-filter (that made the photo look like it scrolled) */
body.has-bg .profile-card,
body.has-bg .social-card,
body.has-bg .product-card {
  background: rgba(24, 26, 31, 0.94);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

@keyframes glow {
  from { transform: translate3d(0, 0, 0) scale(1); opacity: 0.85; }
  to { transform: translate3d(-3%, 2%, 0) scale(1.08); opacity: 1; }
}

@keyframes rise {
  from { opacity: 0; }
  to { opacity: 1; }
}

::selection {
  background: #F3F4F6;
  color: #0E0F12;
}

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

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

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.page {
  width: 100%;
  max-width: 42rem;
  margin: 0 auto;
  padding:
    max(1.5rem, env(safe-area-inset-top, 0px))
    max(1.15rem, env(safe-area-inset-right, 0px))
    max(2rem, env(safe-area-inset-bottom, 0px))
    max(1.15rem, env(safe-area-inset-left, 0px));
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.page-shop {
  max-width: 54rem;
  gap: 1.75rem;
}

.main-col {
  width: 100%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.shop-block,
.links-block {
  width: 100%;
  min-width: 0;
}

.section-kicker {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.section-title {
  margin: 0.4rem 0 0;
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: var(--ink);
}

.section-lead {
  margin: 0.65rem 0 1.15rem;
  max-width: 36rem;
  font-size: 0.975rem;
  line-height: 1.55;
  color: #D1D5DB;
}

/* ——— Profile card ——— */

.profile-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2rem 1.5rem 1.6rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
  max-width: 21rem;
  margin-inline: auto;
  animation: rise 0.7s var(--ease) both;
}

.avatar {
  position: relative;
  width: 6.25rem;
  height: 6.25rem;
  border-radius: 50%;
  overflow: hidden;
  background: var(--charcoal);
  flex-shrink: 0;
}

.avatar-mono {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: #fff;
  font-size: 2.15rem;
  font-weight: 650;
  letter-spacing: 0.02em;
  line-height: 1;
}

.avatar-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.name {
  margin: 1.15rem 0 0;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--ink);
}

.handle {
  margin: 0.28rem 0 0;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--muted);
}

.location {
  margin: 0.45rem 0 0;
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--muted);
}

.bio {
  margin: 1rem 0 0;
  max-width: 22rem;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: #D1D5DB;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 16rem;
  min-height: 44px;
  margin-top: 1.35rem;
  padding: 0.7rem 1.25rem;
  background: var(--btn);
  color: var(--btn-ink);
  border-radius: 0.75rem;
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: background var(--ease), transform var(--ease), box-shadow var(--ease);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--charcoal-hover);
  color: var(--btn-ink);
  transform: translateY(-1px);
}

/* ——— Social column ——— */

.links-col {
  width: 100%;
  max-width: 21rem;
  min-width: 0;
  margin-inline: auto;
}

.links-heading {
  margin: 0.15rem 0 0.85rem;
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.socials {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

.social-card {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  width: 100%;
  flex: 0 0 72px;
  height: 72px;
  min-height: 72px;
  max-height: 72px;
  margin: 0;
  transform: none;
  min-width: 0;
  padding: 0 1.1rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: none;
  color: var(--ink);
  overflow: hidden;
  box-sizing: border-box;
  transition: border-color var(--ease), box-shadow var(--ease);
}

.social-card:hover,
.social-card:focus-visible {
  border-color: #3F4652;
  box-shadow: var(--shadow-hover);
  color: var(--ink);
}

.social-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  overflow: hidden;
}

.brand-logo,
.social-logo svg {
  width: 24px;
  height: 24px;
  max-width: 24px;
  max-height: 24px;
  display: block;
  overflow: hidden;
  flex-shrink: 0;
}

.social-copy {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  min-width: 0;
  flex: 1;
  text-align: left;
}

.social-action {
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.25;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.social-handle {
  font-size: 0.8125rem;
  font-weight: 400;
  color: var(--muted);
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ext-arrow {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
  color: #6B7280;
  transition: transform var(--ease), color var(--ease);
}

.social-card:hover .ext-arrow,
.social-card:focus-visible .ext-arrow {
  color: var(--ink);
  transform: translate(2px, -2px);
}


/* ——— Shop / affiliate shelf ——— */

.shop-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.product-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  width: 100%;
  min-height: 0;
  margin: 0;
  transform: none;
  min-width: 0;
  padding: 1.05rem 1.15rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 0.1rem);
  box-shadow: none;
  color: var(--ink);
  overflow: hidden;
  box-sizing: border-box;
  transition: border-color var(--ease), box-shadow var(--ease), transform var(--ease);
}

.product-card:hover,
.product-card:focus-visible {
  border-color: #3F4652;
  box-shadow: var(--shadow-hover);
  color: var(--ink);
  transform: translateY(-1px);
}

.product-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  flex-shrink: 0;
  border-radius: 0.75rem;
  background: #111318;
  border: 1px solid var(--line);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--ink);
  overflow: hidden;
}

.product-photo {
  width: 72px;
  height: 72px;
  object-fit: contain;
  background: #F3F4F6;
  border-radius: 0.75rem;
  flex-shrink: 0;
  display: block;
}

.product-copy {
  display: flex;
  flex-direction: column;
  gap: 0.22rem;
  min-width: 0;
  flex: 1;
  text-align: left;
  padding-top: 0.1rem;
}

.product-brand {
  font-size: 0.6875rem;
  font-weight: 650;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1.2;
}

.product-name {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--ink);
}

.product-why,
.product-note {
  font-size: 0.875rem;
  font-weight: 400;
  color: #B0B6C0;
  line-height: 1.45;
}

.shop-disclosure {
  margin: 1rem 0 0;
  font-size: 0.75rem;
  line-height: 1.45;
  color: #6B7280;
}

.product-card .ext-arrow {
  margin-top: 0.35rem;
}

.product-card:hover .ext-arrow,
.product-card:focus-visible .ext-arrow {
  color: var(--ink);
  transform: translate(2px, -2px);
}

/* ——— Coming soon / empty states ——— 

.coming-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2rem 1.5rem;
  width: 100%;
  animation: rise 0.7s 0.08s var(--ease) both;
}

.coming-title {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--ink);
}

.coming-copy {
  margin: 0.45rem 0 0;
  font-size: 0.9375rem;
  color: var(--muted);
  line-height: 1.55;
}

.coming-back {
  display: inline-flex;
  margin-top: 1.15rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--charcoal);
}

.coming-back:hover,
.coming-back:focus-visible {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ——— Desktop two-column ——— */

@media (min-width: 800px) {
  .page {
    display: grid;
    grid-template-columns: 18rem 21rem;
    justify-content: center;
    align-items: start;
    gap: 1.5rem;
    max-width: 42rem;
    padding:
      max(3.5rem, env(safe-area-inset-top, 0px))
      max(2rem, env(safe-area-inset-right, 0px))
      max(3.5rem, env(safe-area-inset-bottom, 0px))
      max(2rem, env(safe-area-inset-left, 0px));
  }

  .page-shop {
    grid-template-columns: 17rem minmax(0, 32rem);
    max-width: 54rem;
    gap: 2rem;
  }

  .profile-card {
    position: sticky;
    top: 2rem;
    max-width: none;
    margin-inline: 0;
    padding: 2.15rem 1.65rem 1.75rem;
  }

  .links-col {
    margin-inline: 0;
  }

  .links-heading {
    margin-top: 0.35rem;
  }

  .social-card {
    padding: 0 1.2rem;
  }

  .section-title {
    font-size: 1.75rem;
  }

  .product-card {
    padding: 1.2rem 1.3rem;
    gap: 1.15rem;
  }

  .product-photo,
  .product-mark {
    width: 84px;
    height: 84px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  body::before {
    transform: none;
  }
}


/* Soft site footer */
.site-footer {
  width: 100%;
  max-width: 21rem;
  margin: 0.25rem auto 0;
  padding: 0.15rem 0.25rem 0.5rem;
  text-align: center;
  font-size: 0.75rem;
  line-height: 1.5;
  color: #8B929E;
}

.site-footer a {
  color: #C4C9D1;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--ink);
}

.page-shop .site-footer,
.page-home .site-footer {
  max-width: none;
}

@media (min-width: 800px) {
  .site-footer {
    grid-column: 1 / -1;
    max-width: none;
    margin-top: 0.5rem;
  }
}
