/* ==========================================================================
   me.malharjani.com — MINIMAL CREAMY WHITE + PROCEDURAL CAT
   ========================================================================== */

:root {
  --bg-cream: #F7F3EA;
  --bg-surface: rgba(255, 253, 248, 0.72);
  --ink-primary: #1C1915;
  --ink-secondary: #655E54;
  --ink-muted: #968E82;
  --accent-warm: #B8643E;
  --accent-gold: #D49B63;
  --border-subtle: rgba(28, 25, 21, 0.1);

  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-serif: 'Instrument Serif', Georgia, serif;
  --font-mono: 'JetBrains Mono', monospace;

  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html,
body {
  height: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: var(--bg-cream);
  color: var(--ink-primary);
  font-family: var(--font-sans);
  overflow: hidden;
  position: relative;
}

::selection {
  background: var(--ink-primary);
  color: var(--bg-cream);
}

/* Fullscreen Canvas for Procedural Cat */
#pet-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 10;
  pointer-events: none;
}

/* Soft Archival Paper Grain */
.paper-grain {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Main Shell */
.shell {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  min-height: 100dvh;
  max-width: 1120px;
  margin: 0 auto;
  padding: clamp(1.5rem, 4vw, 3rem);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Top Bar */
.top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink-primary);
  text-decoration: none;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.38rem 0.85rem;
  border-radius: 999px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--ink-secondary);
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-warm);
  box-shadow: 0 0 0 3px rgba(184, 100, 62, 0.16);
  animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 0.85;
  }
  50% {
    transform: scale(1.2);
    opacity: 1;
  }
}

/* Centered Stage */
.center-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 620px;
  margin: auto;
  padding: 2rem 0;
}

/* Reserved perch above the eyebrow so the cat starts centered & aligned */
.pet-perch {
  width: 64px;
  height: 54px;
  margin-bottom: 1rem;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 1rem;
}

.headline {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: clamp(3rem, 7.5vw, 5.5rem);
  line-height: 1.04;
  letter-spacing: -0.035em;
  color: var(--ink-primary);
  margin-bottom: 1.25rem;
}

.headline .serif-italic {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: 1.1em;
  color: var(--accent-warm);
  padding-right: 0.06em;
}

.subtext {
  font-size: clamp(1rem, 1.4vw, 1.12rem);
  line-height: 1.65;
  color: var(--ink-secondary);
  font-weight: 300;
  max-width: 44ch;
  margin-bottom: 1.5rem;
}

/* Minimal Editorial Status Whisper */
.status-whisper {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-mono);
  font-size: 0.73rem;
  color: var(--ink-muted);
}

.whisper-sep {
  opacity: 0.4;
}

.whisper-trigger {
  background: none;
  border: none;
  border-bottom: 1px dashed rgba(28, 25, 21, 0.24);
  padding-bottom: 1px;
  font-family: var(--font-mono);
  font-size: 0.73rem;
  color: var(--ink-secondary);
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.whisper-trigger:hover {
  color: var(--accent-warm);
  border-bottom-color: var(--accent-warm);
}

/* Footer */
.bottom-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.78rem;
  color: var(--ink-muted);
}

.footer-link {
  color: var(--ink-secondary);
  text-decoration: none;
  transition: color 0.25s ease;
}

.footer-link:hover {
  color: var(--accent-warm);
}
