/* ps.my — Futuristic personal brand
   Deep space palette · glassmorphism · violet→cyan gradients
   Inter (UI) + Space Grotesk (display) */

:root {
  --bg: #05060b;
  --bg-elevated: #0a0c16;
  --navy: #0d1224;
  --indigo: #12183a;
  --ink: #f0f4ff;
  --ink-soft: #c8d0e8;
  --muted: #8b95b0;
  --muted-soft: #6b7590;
  --accent-from: #8b5cf6;
  --accent-mid: #6366f1;
  --accent-to: #22d3ee;
  --accent-alt: #e879f9;
  --glass: rgba(255, 255, 255, 0.04);
  --glass-strong: rgba(255, 255, 255, 0.07);
  --glass-border: rgba(255, 255, 255, 0.1);
  --glass-border-hover: rgba(167, 139, 250, 0.45);
  --glow-violet: rgba(139, 92, 246, 0.35);
  --glow-cyan: rgba(34, 211, 238, 0.25);
  --glow-magenta: rgba(232, 121, 249, 0.2);
  --radius: 16px;
  --radius-sm: 10px;
  --radius-pill: 999px;
  --max: 44rem;
  --max-media: 52rem;
  --max-wide: 58rem;
  --font-display: "Space Grotesk", system-ui, -apple-system, sans-serif;
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --header-h: 3.75rem;
  --ease: 0.2s ease;
  --gradient: linear-gradient(135deg, var(--accent-from), var(--accent-mid) 45%, var(--accent-to));
  --gradient-text: linear-gradient(120deg, #c4b5fd 0%, #a5b4fc 40%, #67e8f9 100%);
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink-soft);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
  overflow-x: hidden;
}

/* ——— Ambient background: grid + glow orbs (CSS only) ——— */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 50% at 15% 10%, var(--glow-violet), transparent 55%),
    radial-gradient(ellipse 55% 45% at 85% 20%, var(--glow-cyan), transparent 50%),
    radial-gradient(ellipse 50% 40% at 70% 85%, var(--glow-magenta), transparent 55%),
    radial-gradient(ellipse 40% 35% at 20% 75%, rgba(99, 102, 241, 0.18), transparent 50%),
    linear-gradient(180deg, var(--bg) 0%, var(--navy) 45%, var(--bg) 100%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(148, 163, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 255, 0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 20%, transparent 75%);
  opacity: 0.7;
}

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

a {
  color: #a5b4fc;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  transition: color var(--ease), background var(--ease), border-color var(--ease),
    box-shadow var(--ease), transform var(--ease), opacity var(--ease);
}

a:hover {
  color: #c4b5fd;
}

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

/* ——— Layout ——— */
.wrap {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

.wrap-wide {
  width: min(100% - 2.5rem, var(--max-wide));
  margin-inline: auto;
}

.wrap-media {
  width: min(100% - 2.5rem, var(--max-media));
  margin-inline: auto;
}

/* ——— Header (glass) ——— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(5, 6, 11, 0.65);
  backdrop-filter: saturate(1.4) blur(16px);
  -webkit-backdrop-filter: saturate(1.4) blur(16px);
  border-bottom: 1px solid var(--glass-border);
}

.site-header .wrap-wide {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  min-height: var(--header-h);
}

.logo {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: -0.03em;
  color: var(--ink);
  text-decoration: none;
  flex-shrink: 0;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.logo:hover {
  opacity: 0.85;
  color: var(--ink);
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.15rem 1.25rem;
  flex-wrap: wrap;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.5rem 0;
  letter-spacing: -0.01em;
  border-bottom: 2px solid transparent;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.nav a:hover {
  color: var(--ink);
}

.nav a[aria-current="page"] {
  color: var(--ink);
  font-weight: 600;
  border-image: var(--gradient) 1;
  border-bottom-width: 2px;
  border-bottom-style: solid;
}

/* ——— Main ——— */
main {
  flex: 1;
  padding: 2.75rem 0 4rem;
}

main.home-main {
  padding: 0;
  display: flex;
  flex-direction: column;
}

/* ——— Footer ——— */
.site-footer {
  border-top: 1px solid var(--glass-border);
  padding: 1.5rem 0 2rem;
  font-size: 0.8125rem;
  color: var(--muted-soft);
  background: transparent;
  margin-top: auto;
}

.site-footer .wrap-wide {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 2rem;
  justify-content: space-between;
  align-items: baseline;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: var(--muted);
  text-decoration: none;
}

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

/* ——— Typography ——— */
h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--ink);
  line-height: 1.2;
}

h1 {
  font-size: clamp(1.75rem, 3.5vw, 2.25rem);
  margin: 0 0 0.75rem;
}

h1.display-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.75rem, 6vw, 4rem);
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin: 0 0 0.65rem;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

h2 {
  font-size: clamp(1.15rem, 2vw, 1.35rem);
  margin: 2.5rem 0 1rem;
  letter-spacing: -0.025em;
}

h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin: 0 0 0.35rem;
}

.page-intro {
  margin-bottom: 2.25rem;
  max-width: 40rem;
}

.lede {
  font-size: clamp(1.05rem, 2vw, 1.125rem);
  color: var(--muted);
  font-weight: 400;
  line-height: 1.6;
  margin: 0;
  max-width: 38rem;
}

.eyebrow {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-to);
  margin: 0 0 0.65rem;
}

p {
  margin: 0 0 1.1rem;
}

p:last-child {
  margin-bottom: 0;
}

.prose {
  max-width: 40rem;
}

.prose p + p {
  margin-top: 1.1rem;
}

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

code {
  font-size: 0.875em;
  background: var(--glass);
  padding: 0.15em 0.4em;
  border-radius: 4px;
  border: 1px solid var(--glass-border);
  color: var(--ink-soft);
}

/* ——— Glass utility ——— */
.glass {
  background: var(--glass);
  backdrop-filter: blur(18px) saturate(1.3);
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.02) inset,
    0 8px 32px rgba(0, 0, 0, 0.35);
}

/* ——— Hero (home) ——— */
.hero {
  display: grid;
  gap: 2rem;
  align-items: center;
  min-height: 68vh;
  padding: 3.25rem 0 2.75rem;
}

.hero-copy {
  min-width: 0;
  order: 1;
}

.hero-visual {
  display: flex;
  justify-content: flex-start;
  order: 2;
}

.profile-frame {
  position: relative;
  display: inline-flex;
  padding: 4px;
  border-radius: 50%;
  background: var(--gradient);
  box-shadow:
    0 0 40px var(--glow-violet),
    0 0 80px var(--glow-cyan);
}

.profile-photo {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--bg);
  display: block;
}

.role-line {
  font-size: clamp(1rem, 2vw, 1.125rem);
  color: var(--ink);
  font-weight: 500;
  line-height: 1.45;
  margin: 0 0 0.35rem;
  letter-spacing: -0.01em;
}

.tagline {
  font-size: 0.975rem;
  color: var(--muted);
  margin: 0 0 1.25rem;
  line-height: 1.5;
}

.hero-copy .prose {
  margin-bottom: 1.5rem;
  font-size: 1.0625rem;
  color: var(--ink-soft);
}

.hero-copy .prose p {
  margin: 0;
}

.social-row {
  list-style: none;
  padding: 0;
  margin: 0 0 1.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 500;
}

.social-row a {
  color: var(--ink-soft);
  text-decoration: none;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-pill);
  background: var(--glass);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.social-row a:hover {
  color: var(--ink);
  border-color: var(--glass-border-hover);
  background: var(--glass-strong);
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.2);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

/* ——— Buttons ——— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.75rem 1.35rem;
  min-height: 44px;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.01em;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: background var(--ease), color var(--ease), border-color var(--ease),
    box-shadow var(--ease), transform var(--ease);
}

.btn-primary {
  background: var(--gradient);
  color: #fff;
  border: none;
  box-shadow:
    0 0 24px rgba(139, 92, 246, 0.4),
    0 4px 16px rgba(0, 0, 0, 0.3);
}

.btn-primary:hover {
  color: #fff;
  box-shadow:
    0 0 36px rgba(34, 211, 238, 0.45),
    0 0 24px rgba(139, 92, 246, 0.5);
  transform: translateY(-1px);
}

.btn-ghost {
  background: var(--glass);
  color: var(--ink);
  border-color: var(--glass-border);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.btn-ghost:hover {
  background: var(--glass-strong);
  border-color: var(--glass-border-hover);
  color: var(--ink);
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.2);
}

.btn:focus-visible {
  outline: 2px solid var(--accent-to);
  outline-offset: 3px;
}

.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

/* ——— Home press band ——— */
.home-band {
  border-top: 1px solid var(--glass-border);
  padding: 2.75rem 0 3.75rem;
  margin-top: auto;
  background: linear-gradient(180deg, transparent, rgba(13, 18, 36, 0.5));
}

.home-band-header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  margin-bottom: 1.5rem;
}

.home-band-header h2 {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.home-band-header a {
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  color: #a5b4fc;
}

.home-band-header a:hover {
  color: var(--accent-to);
}

.press-grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1rem;
}

.press-card {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 1.35rem 1.4rem;
  background: var(--glass);
  backdrop-filter: blur(18px) saturate(1.3);
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  text-decoration: none;
  color: inherit;
  min-height: 100%;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.02) inset,
    0 8px 28px rgba(0, 0, 0, 0.25);
  transition: border-color var(--ease), box-shadow var(--ease), transform var(--ease),
    background var(--ease);
}

.press-card:hover {
  border-color: var(--glass-border-hover);
  background: var(--glass-strong);
  box-shadow:
    0 0 0 1px rgba(167, 139, 250, 0.15) inset,
    0 12px 40px rgba(0, 0, 0, 0.35),
    0 0 32px rgba(139, 92, 246, 0.2);
  transform: translateY(-3px);
  color: inherit;
}

.press-card:focus-visible {
  outline: 2px solid var(--accent-to);
  outline-offset: 2px;
}

.press-meta {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-to);
}

.press-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1.35;
}

.press-outlet {
  font-size: 0.875rem;
  color: var(--muted);
  margin-top: auto;
}

/* ——— Cards (writing) ——— */
.card-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.85rem;
}

.card {
  background: var(--glass);
  backdrop-filter: blur(18px) saturate(1.3);
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 1.4rem 1.45rem;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.25);
  transition: border-color var(--ease), box-shadow var(--ease), background var(--ease);
}

.card:hover {
  border-color: var(--glass-border-hover);
  background: var(--glass-strong);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.3), 0 0 24px rgba(139, 92, 246, 0.12);
}

.card .meta {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-to);
  margin: 0 0 0.45rem;
}

.card .muted {
  font-size: 0.9375rem;
  margin: 0;
  line-height: 1.55;
}

.empty-state {
  background: var(--glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  text-align: left;
  margin-top: 1.75rem;
}

.empty-state p {
  margin-bottom: 1.1rem;
  max-width: 32rem;
}

/* ——— Topics (about) ——— */
.topics {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  display: grid;
  gap: 0.65rem;
}

.topics li {
  padding: 0.95rem 1.15rem;
  color: var(--ink-soft);
  font-size: 0.975rem;
  letter-spacing: -0.01em;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* ——— Media list (glass cards) ——— */
.media-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.75rem;
}

.media-list li {
  margin: 0;
}

.media-item {
  display: grid;
  grid-template-columns: 5.5rem 1fr auto;
  gap: 1rem 1.5rem;
  align-items: center;
  padding: 1.2rem 1.35rem;
  margin: 0;
  background: var(--glass);
  backdrop-filter: blur(18px) saturate(1.3);
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  text-decoration: none;
  color: inherit;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25);
  transition: background var(--ease), border-color var(--ease), box-shadow var(--ease),
    transform var(--ease);
}

.media-item:hover {
  background: var(--glass-strong);
  border-color: var(--glass-border-hover);
  box-shadow:
    0 10px 36px rgba(0, 0, 0, 0.35),
    0 0 28px rgba(139, 92, 246, 0.18);
  transform: translateY(-2px);
  color: inherit;
}

.media-item:focus-visible {
  outline: 2px solid var(--accent-to);
  outline-offset: 2px;
}

.media-format {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-to);
  padding: 0.35rem 0.65rem;
  border-radius: var(--radius-pill);
  background: rgba(34, 211, 238, 0.1);
  border: 1px solid rgba(34, 211, 238, 0.25);
  text-align: center;
  justify-self: start;
}

.media-body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.media-title {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1.35;
}

.media-outlet {
  font-size: 0.875rem;
  color: var(--muted);
}

.media-arrow {
  flex-shrink: 0;
  color: var(--muted-soft);
  font-size: 1.1rem;
  line-height: 1;
  opacity: 0.4;
  transition: opacity var(--ease), transform var(--ease), color var(--ease);
  align-self: center;
}

.media-item:hover .media-arrow {
  opacity: 1;
  color: var(--accent-to);
  transform: translateX(3px);
}

/* ——— Skip link ——— */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--gradient);
  color: #fff;
  padding: 0.5rem 1rem;
  z-index: 100;
  text-decoration: none;
  border-radius: 0 0 var(--radius-sm) 0;
}

.skip-link:focus {
  left: 0;
}

/* ——— Responsive ——— */
@media (min-width: 720px) {
  .hero {
    grid-template-columns: minmax(0, 1fr) 240px;
    gap: 3rem 4rem;
    align-items: center;
    padding: 3rem 0 3.25rem;
  }

  .hero-copy {
    order: 1;
  }

  .hero-visual {
    order: 2;
    justify-content: flex-end;
  }

  .profile-photo {
    width: 200px;
    height: 200px;
  }

  .press-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .profile-photo {
    width: 220px;
    height: 220px;
  }

  .hero {
    grid-template-columns: minmax(0, 1fr) 240px;
    gap: 3.5rem 5rem;
  }
}

@media (max-width: 560px) {
  .wrap,
  .wrap-wide,
  .wrap-media,
  .site-header .wrap-wide,
  .site-footer .wrap-wide {
    width: min(100% - 1.75rem, var(--max-wide));
  }

  main {
    padding: 2rem 0 3rem;
  }

  .site-header .wrap-wide {
    flex-direction: column;
    align-items: flex-start;
    padding-block: 0.75rem;
    min-height: auto;
    gap: 0.35rem;
  }

  .nav {
    gap: 0 1rem;
    width: 100%;
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .nav::-webkit-scrollbar {
    display: none;
  }

  .nav a {
    white-space: nowrap;
    font-size: 0.8125rem;
    min-height: 44px;
  }

  .hero {
    min-height: auto;
    padding: 2rem 0 2rem;
    gap: 1.5rem;
  }

  .hero-visual {
    order: -1;
  }

  .profile-photo {
    width: 120px;
    height: 120px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn,
  .action-row .btn {
    width: 100%;
  }

  .action-row {
    flex-direction: column;
    align-items: stretch;
  }

  .media-item {
    grid-template-columns: auto 1fr;
    gap: 0.75rem 1rem;
    padding: 1.1rem 1rem;
  }

  .media-arrow {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  a,
  .btn,
  .media-item,
  .media-arrow,
  .press-card,
  .card {
    transition: none;
  }

  .press-card:hover,
  .media-item:hover,
  .btn-primary:hover {
    transform: none;
  }
}
