/* /styles/theme.landing.css */

/* ============ Landing Theme Variables ============ */
:root {
  --footer-dark: #f3e1ff;
  --footer-light: #4b0076;
  --footer: var(--footer-dark);

  --icon: 40px;
  --gap: 30px;
  --tapPad: 8px;
}

@media (prefers-color-scheme: light) {
  :root {
    --footer: var(--footer-light);
  }
}

html[data-theme="dark"] {
  --footer: var(--footer-dark);
}

html[data-theme="light"] {
  --footer: var(--footer-light);
}

/* ============ Header & Logo ============ */
.header {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 28vh;
  width: 100%;
  margin-bottom: 20px;
}

.logo {
  margin-top: 10px;
  margin-bottom: 10px;
  width: 60vw;
  max-width: 500px;
  height: auto;
  -webkit-tap-highlight-color: transparent;
}

/* ============ Link Grid ============ */
.links {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: var(--gap);
  padding: 0 12px;
}

.links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--tapPad);
  border-radius: 12px;
  touch-action: manipulation;
  text-decoration: none;
  color: var(--text);
}

.links a:active {
  transform: scale(0.98);
}

.links img {
  width: var(--icon);
  height: var(--icon);
  display: block;
  transition: transform 0.2s ease;
  object-fit: contain;
}

/* Seal gets 1.5x size */
.links img.seal {
  width: calc(var(--icon) * 1.5);
  height: auto;
  transform: translateY(-18px); /* Nudge upward */
}
/* Slight emphasis for Substack */
.links img.substack {
  transform: scale(1.1);
}

/* Hover Effects */
@media (hover: hover) {
  .links a:hover img {
    transform: scale(1.12);
  }

  /* Maintain seal positioning and scale on hover */
  .links a:hover img.seal {
    transform: translateY(-17px) scale(1.12);
  }

  .links a:hover img.substack {
    transform: scale(1.22);
  }
}

/* ============ Glyph Filtering ============ */
html[data-theme="light"] .links img.glyph {
  filter: invert(1) brightness(0.12);
}

@media (prefers-color-scheme: light) {
  html:not([data-theme="dark"]) .links img.glyph {
    filter: invert(1) brightness(0.12);
  }
}

html[data-theme="dark"] .links img.glyph {
  filter: none !important;
}

/* ============ Responsive ============ */
@media (max-width: 600px) {
  :root {
    --icon: 36px;
    --gap: 24px;
    --tapPad: 12px;
  }

  .header {
    min-height: 26vh;
  }

  .logo {
    width: 78vw;
  }
}

@media (max-width: 360px) {
  :root {
    --gap: 20px;
    --icon: 34px;
  }

  .logo {
    width: 82vw;
  }
}
