/* site.css */
/* 1218 Studios — Under Construction page */

:root {
    --primary: #e53935;      /* red accent */
    --secondary: #1976d2;    /* blue accent */
    --bg: #141010;           /* dark background */
    --text: #f4f4f4;         /* light text */
    --font-main: 'Lexend Deca', sans-serif;
    --ring: 2px;             /* Focus ring width */
    --nav-h: 80px;   /* adjust to your header height */
    --foot-h: 80px;  /* adjust to your footer height if fixed */
    --header-offset: 112px;
    --header-bg: rgb(14 14 18 / 0.98);        /* almost opaque for LCD banding-free look */
    --header-border: color-mix(in oklab, #fff 8%, transparent);
    --container-w: 1100px;
    --pad-x: 1rem;
    --pad-y: .5rem;
    --social-size: 20px;
    --gap: .75rem;
}

@import url('https://fonts.googleapis.com/css2?family=Lexend+Deca&display=swap');

#lexend-deca-font{
  font-family: "Lexend Deca", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
}


html, body {
  height: 100%;
}

.uc body {
    margin: 0;
    padding: 0;
    font-family: var(--font-main);
    background: radial-gradient(circle at center, #424269 0%, #050509 100%);
    color: var(--text);
    display: flex;
    flex-direction: column;
    text-align: center;
    min-height: 100vh;
    overflow: visible;
}

.uc main {
  flex: 1; /* pushes footer down when content is short */
}

.uc .construction-container {
  max-width: 80%;
  padding: 2rem;
  margin: 0 auto;          /* center horizontally */
  /* flex: 1;                 take remaining space */
  display: grid;
  place-items: center;     /* center the content vertically/horizontally */
}

.logo {
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--primary);
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.logo span {
    color: var(--secondary);
}

h1 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    text-shadow: 0 0 10px rgba(229, 57, 53, 0.6);
}

p {
    font-size: 1.1rem;
    opacity: 0.85;
    margin-bottom: 2rem;
}

.loader {
    border: 6px solid rgba(255, 255, 255, 0.1);
    border-top: 6px solid var(--primary);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    margin: 1rem auto 2rem;
    animation: spin 1.2s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.social-links a {
    text-decoration: none;
    color: var(--secondary);
    font-weight: 500;
    transition: color 0.3s ease, transform 0.2s ease;
}

.social-links a:hover {
    color: var(--primary);
    transform: scale(1.2);
}

/* Make header fixed & opaque */
.social-header {
  position: sticky;      /* <- change */
  top: 0;                /* <- keep it pinned to the top */
  z-index: 1000;
  background: var(--header-bg);
  border-bottom: 1px solid var(--header-border);
  box-shadow: 0 6px 20px rgb(0 0 0 / 0.25);
  padding: calc(env(safe-area-inset-top,0px) + var(--pad-y)) var(--pad-x);
}

/* Lay out the two nav rows nicely and keep them centered */
.social-header > nav {
  width: 100%;
}
.social-header > nav:first-child { margin-bottom: .5rem; }

.uc .social-list {
    display: flex;
    gap: var(--gap);
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
    flex-wrap: wrap;
    max-height: 3rem;
    justify-content: center;
  }

.uc .social-link {
    --bg: transparent;
    --fg: currentColor;
    inline-size: calc(var(--social-size) + 12px);
    block-size: calc(var(--social-size) + 12px);
    display: inline-grid;
    place-items: center;
    border-radius: 999px;
    background: var(--bg);
    color: var(--fg);
    transition: transform 120ms ease, background-color 120ms ease, box-shadow 120ms ease;
    outline: none;
  }

.uc .social-link img {
    width: var(--social-size);
    height: var(--social-size);
    display: block;
  }

/* Brand-tinted hover states (subtle) */
.social-link:hover { transform: translateY(-1px); }
.social-link:active { transform: translateY(0); }

.linktree:hover  { background: rgba(12,170,92,0.12); }
.instagram:hover { background: rgba(225,48,108,0.12); }
.youtube:hover   { background: rgba(255,0,0,0.12); }
.etsy:hover      { background: rgba(234,89,6,0.12); }
.twitch:hover    { background: rgba(145,70,255,0.12); }
.patreon:hover   { background: rgba(255,66,77,0.12); }

/* Accessible focus styles */
.social-link:focus-visible {
box-shadow: 0 0 0 var(--ring) CanvasText;
}

:target { scroll-margin-top: 96px; }

/* --- Main Navigation --- */
.uc .main-nav {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    padding: 0;
    margin: 1rem 0;
    justify-content: center; /* centers the links */
}

.uc .main-nav li {
    list-style: none;
}

.uc .main-nav a {
    color: var(--text); /* from your :root, light text */
    font-weight: 600;
    text-decoration: none;
    letter-spacing: 0.5px;
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
    transition: all 0.2s ease-in-out;
    background: rgba(255, 255, 255, 0.05); /* faint contrast bubble */
}

/* Hover + focus effects */
.uc .main-nav a:hover,
.uc .main-nav a:focus {
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    color: #fff;
    box-shadow: 0 0 10px rgba(255,255,255,0.3);
    transform: translateY(-2px);
}

/* Optional active/current link */
.uc .main-nav a.active {
    background: linear-gradient(90deg, var(--secondary), var(--primary));
    color: #fff;
}

.uc .ig-section {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 1rem;
}

.uc .ig-container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  max-width: 800px;
  margin: 0 auto;

  /* smooth scroll snap if you link to this section */
  scroll-margin-top: var(--nav-h);
  scroll-margin-bottom: var(--foot-h);

  /* fade-out top/bottom so content “disappears” near header/footer */
  mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    black calc(var(--nav-h) + 16px),
    black calc(100% - var(--foot-h) - 16px),
    transparent 100%
  );
  -webkit-mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    black calc(var(--nav-h) + 16px),
    black calc(100% - var(--foot-h) - 16px),
    transparent 100%
  );
}

.ig-block {
  width: 100%;
  margin: 0;                   /* spacing handled by container gap */
}

.ig-heading {
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  margin-bottom: 0.75rem;
  line-height: 1.2;
}

/* Keep embeds responsive and reduce CLS while loading */
.uc .instagram-media {
  width: 100% !important;
  max-width: 540px !important;
  min-height: 420px;           /* tweak as you like */
  border-radius: 12px;         /* card look */
  overflow: hidden;
  margin: 0 auto;
}


/* Utility: centered max-width container */
.container {
  width: min(calc(100% - 2 * var(--pad-x)), var(--container-w));
  margin-inline: auto;
}


/* Accessible screen-reader only text (you used .sr-only) */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}

/* Dark mode nicety (optional) */
@media (prefers-color-scheme: dark) {
.social-link:focus-visible { box-shadow: 0 0 0 var(--ring) white; }
}

/* Small tweaks for very small screens */
@media (max-width: 480px) {
  .social-list { gap: .5rem; }
  .main-nav { gap: 1rem; }
}

/* Respect users who prefer less motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}



/* --- Footer styling --- */
.uc .site-footer {
  background: var(--header-bg);
  color: var(--text, #ddd);
  text-align: center;
  padding: 1.5rem var(--pad-x);
  border-top: 1px solid var(--header-border);
  box-shadow: 0 -6px 20px rgb(0 0 0 / 0.25);
  position: relative; /* normal flow (not fixed) */
  z-index: 500;
}


