/* ==========================================================================
   johngiaconia.com — Black Glass
   ========================================================================== */

:root {
  --bg: #050608;
  --text: #e8eaee;
  --text-strong: #ffffff;
  --text-soft: #b8bcc8;
  --text-muted: #8a92a6;
  --text-faded: #6a7080;
  --accent: #c4b5fd;
  --glass-bg: rgba(255, 255, 255, 0.04);
  --glass-bg-2: rgba(255, 255, 255, 0.015);
  --glass-border: rgba(255, 255, 255, 0.07);
  --glass-border-hover: rgba(255, 255, 255, 0.14);
  --hairline: rgba(255, 255, 255, 0.08);
  --max-w: 760px;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* Aurora glow background — fixed so it doesn't scroll away */
body::before {
  content: "";
  position: fixed;
  inset: -10%;
  background:
    radial-gradient(ellipse 50% 40% at 18% 12%, rgba(99, 102, 241, 0.28), transparent 60%),
    radial-gradient(ellipse 45% 35% at 85% 30%, rgba(168, 85, 247, 0.18), transparent 60%),
    radial-gradient(ellipse 55% 40% at 50% 95%, rgba(56, 189, 248, 0.14), transparent 60%);
  filter: blur(60px);
  z-index: -1;
  pointer-events: none;
}

/* Accessibility */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: #ffffff;
  color: #000000;
  padding: 12px 18px;
  text-decoration: none;
  z-index: 100;
  border-radius: 4px;
}
.skip-link:focus { left: 16px; top: 16px; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 56px 28px 64px;
}

/* ---------- Navigation ---------- */
.site-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 72px;
  font-size: 13.5px;
}
.site-nav .mark {
  font-weight: 600;
  letter-spacing: -0.015em;
  font-size: 16px;
  text-decoration: none;
  background: linear-gradient(180deg, #ffffff, #b8c0d0);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.site-nav ul {
  display: flex;
  gap: 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-nav a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}
.site-nav a:hover,
.site-nav a.active { color: var(--text-strong); }
.site-nav a.cta { color: var(--accent); }
.site-nav a.cta:hover { color: var(--text-strong); }

/* ---------- Hero ---------- */
.hero { margin-bottom: 80px; }
.hero h1 {
  font-weight: 600;
  font-size: 56px;
  line-height: 1.02;
  letter-spacing: -0.035em;
  margin: 0 0 24px;
  padding: 0 0 17px;
  background: linear-gradient(180deg, #ffffff 0%, #a8b0c4 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero .lede {
  font-size: 19px;
  line-height: 1.5;
  color: var(--text-soft);
  margin: 0 0 28px;
  font-weight: 300;
  max-width: 540px;
}
.hero .bio {
  color: var(--text-muted);
  margin: 0 0 36px;
  font-size: 15px;
  max-width: 540px;
}

.cta-row {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
}
.cta-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 24px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  color: var(--text-strong);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.10), rgba(255, 255, 255, 0.04));
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.04) inset,
    0 8px 24px rgba(0, 0, 0, 0.4),
    0 0 32px rgba(99, 102, 241, 0.15);
  transition: all 0.2s;
}
.cta-primary:hover {
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08) inset,
    0 12px 36px rgba(0, 0, 0, 0.5),
    0 0 48px rgba(99, 102, 241, 0.30);
  transform: translateY(-1px);
}
.cta-handle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-faded);
  font-size: 13.5px;
  text-decoration: none;
}
.cta-handle:hover {
  color: var(--text);
  text-decoration: underline;
}
.x-icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

/* ---------- Sections ---------- */
section { margin-bottom: 64px; }
.eyebrow {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 500;
  margin: 0 0 8px;
}
.section-sub {
  font-size: 16px;
  color: var(--text-strong);
  font-weight: 400;
  margin: 0 0 28px;
  letter-spacing: -0.01em;
}

/* ---------- Rule cards ---------- */
.rules { display: grid; gap: 12px; }
.rule {
  padding: 22px 24px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--glass-bg) 0%, var(--glass-bg-2) 100%);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.02) inset,
    0 8px 24px rgba(0, 0, 0, 0.3);
  transition: all 0.25s;
}
.rule:hover {
  border-color: var(--glass-border-hover);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.04) inset,
    0 12px 32px rgba(0, 0, 0, 0.4),
    0 0 64px rgba(99, 102, 241, 0.12);
}
.rule .head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}
.rule .num {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
  font-feature-settings: "tnum";
  flex-shrink: 0;
}
.rule .title {
  font-size: 15px;
  color: var(--text-strong);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: -0.005em;
  margin: 0;
}
.rule .body {
  color: var(--text-muted);
  font-size: 13.5px;
  line-height: 1.55;
  margin: 0;
}

/* ---------- Off-Hours tiles ---------- */
.tiles {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
}
.tile {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  border-radius: 22px;
  text-decoration: none;
  overflow: hidden;
  background: linear-gradient(160deg, #1c1e28 0%, #0e0f18 55%, #07080f 100%);
  border: 1px solid rgba(255, 255, 255, 0.13);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.06) inset,
    0 2px 0 rgba(255, 255, 255, 0.08) inset,
    0 24px 64px rgba(0, 0, 0, 0.65),
    0 6px 16px rgba(0, 0, 0, 0.45);
  transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}
.tile::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 90% 45% at 50% -5%,
    rgba(255, 255, 255, 0.18) 0%,
    rgba(255, 255, 255, 0.06) 35%,
    transparent 65%
  );
  border-radius: inherit;
  pointer-events: none;
  z-index: 1;
}
.tile::after {
  content: "";
  position: absolute;
  top: -15%;
  left: -10%;
  width: 55%;
  height: 55%;
  background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.11) 0%, transparent 68%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
  transform: rotate(-20deg);
}
.tile-media {
  position: relative;
  z-index: 2;
  width: 100%;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 24px 24px;
  color: rgba(255, 255, 255, 0.85);
}
.tile-media svg {
  width: 48px;
  height: 48px;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.5));
}
.tile-label {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 13px 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
  color: var(--text-soft);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.01em;
  background: rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.tile:hover {
  transform: translateY(-4px) scale(1.015);
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.10) inset,
    0 2px 0 rgba(255, 255, 255, 0.12) inset,
    0 32px 80px rgba(0, 0, 0, 0.7),
    0 0 56px rgba(99, 102, 241, 0.18);
}

/* ---------- Social cards (Find Me Elsewhere) ---------- */
.social-cards {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.social-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 152px;
  border-radius: 22px;
  text-decoration: none;
  overflow: hidden;
  /* Metallic dark base */
  background: linear-gradient(160deg, #1c1e28 0%, #0e0f18 55%, #07080f 100%);
  border: 1px solid rgba(255, 255, 255, 0.13);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.06) inset,
    0 2px 0 rgba(255, 255, 255, 0.08) inset,
    0 24px 64px rgba(0, 0, 0, 0.65),
    0 6px 16px rgba(0, 0, 0, 0.45);
  transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

/* Top-center radial gloss — the main sheen */
.social-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 90% 45% at 50% -5%,
    rgba(255, 255, 255, 0.18) 0%,
    rgba(255, 255, 255, 0.06) 35%,
    transparent 65%
  );
  border-radius: inherit;
  pointer-events: none;
  z-index: 1;
}

/* Upper-left specular hotspot */
.social-card::after {
  content: "";
  position: absolute;
  top: -15%;
  left: -10%;
  width: 55%;
  height: 55%;
  background: radial-gradient(
    ellipse at center,
    rgba(255, 255, 255, 0.11) 0%,
    transparent 68%
  );
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
  transform: rotate(-20deg);
}

.social-card-media {
  position: relative;
  z-index: 2;
  width: 100%;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 36px 24px 28px;
  color: rgba(255, 255, 255, 0.88);
}

.social-card-media svg {
  width: 60px;
  height: 60px;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.5));
}

.social-card-label {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 13px 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
  color: var(--text-soft);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.01em;
  background: rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.social-card:hover {
  transform: translateY(-4px) scale(1.015);
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.10) inset,
    0 2px 0 rgba(255, 255, 255, 0.12) inset,
    0 32px 80px rgba(0, 0, 0, 0.7),
    0 0 56px rgba(99, 102, 241, 0.18);
}

/* ---------- Footer ---------- */
.site-footer {
  padding-top: 28px;
  border-top: 1px solid var(--hairline);
  font-size: 13px;
  color: var(--text-faded);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.site-footer a {
  color: var(--accent);
  text-decoration: none;
}
.site-footer a:hover { color: var(--text-strong); }

/* ---------- Responsive ---------- */
@media (max-width: 720px) {
  .container { padding: 40px 20px 48px; }
  .hero { margin-bottom: 56px; }
  .hero h1 { font-size: 38px; }
  .hero .lede { font-size: 17px; }
  .site-nav { font-size: 12.5px; margin-bottom: 48px; }
  .site-nav ul { gap: 18px; }
  section { margin-bottom: 48px; }
  .tiles { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .site-nav ul li:not(.always-show) { display: none; }
  .site-nav ul li.always-show a { color: var(--accent); }
  .hero h1 { font-size: 32px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
  .cta-primary:hover,
  .tile:hover { transform: none; }
}
