/*
 * aimee.lol — public site stylesheet
 * Completely isolated from the main Brainstorm app styles.
 */

:root {
  --bg:       #0e0818;
  --ink:      #f0eaf8;
  --ink2:     rgba(240, 234, 248, 0.52);
  --ink3:     rgba(240, 234, 248, 0.26);
  --pink:     #f07295;
  --violet:   #9b5de5;
  --rule:     rgba(240, 234, 248, 0.09);
  --serif:    'Cormorant Garamond', Georgia, serif;
  --mono:     'DM Mono', monospace;
}

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

html {
  background-color: #0e0818;
  cursor: none;
  scroll-behavior: smooth;
}

body {
  background-color: #0e0818;
  background-color: var(--bg);
  /* subtle dot grid — adds tactile depth */
  background-image: radial-gradient(rgba(240, 234, 248, 0.055) 1px, transparent 1px);
  background-size: 28px 28px;
  color: #f0eaf8;
  color: var(--ink);
  font-family: var(--mono);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ── Cursor ── */
#cursor {
  position: fixed;
  width: 8px; height: 8px;
  border: 1px solid var(--pink);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.2s ease, height 0.2s ease, background 0.2s ease;
  will-change: left, top;
}
#cursor.over {
  width: 24px; height: 24px;
  background: rgba(240, 114, 149, 0.15);
}

/* ── Grain — layered over dot grid ── */
.grain {
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 997;
  opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ── Background atmosphere ── */
.glow-1 {
  position: fixed;
  top: -10%;
  left: 50%;
  transform: translateX(-50%);
  width: 75vw; height: 75vw;
  max-width: 750px; max-height: 750px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(100, 40, 200, 0.13) 0%, transparent 68%);
  pointer-events: none;
  z-index: 0;
}
.glow-2 {
  position: fixed;
  bottom: 0; right: 0;
  width: 45vw; height: 45vw;
  max-width: 480px; max-height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(240, 114, 149, 0.08) 0%, transparent 68%);
  pointer-events: none;
  z-index: 0;
}

/* ── Layout ── */
.page {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 2.5rem;
  position: relative;
  z-index: 1;
}

/* ── Divider with glowing dot ── */
.divider {
  display: flex;
  align-items: center;
  gap: 0;
  position: relative;
  z-index: 1;
}
.divider-line {
  flex: 1;
  height: 1px;
  background: var(--rule);
}
.divider-dot {
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--pink);
  box-shadow: 0 0 8px 3px rgba(240, 114, 149, 0.45);
  flex-shrink: 0;
}

/* ── Top bar ── */
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.4rem 0;
  animation: fadeIn 0.6s ease both;
}
.topbar-left {
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink3);
}
.topbar-badge {
  font-size: 0.65rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--pink);
  border: 1px solid rgba(240, 114, 149, 0.35);
  padding: 0.3em 0.75em;
}

/* ── Masthead ── */
.masthead {
  padding: 3.5rem 0 3rem;
  position: relative;
}

/* Ghost word behind the name — adds depth/texture */
.masthead-ghost {
  position: absolute;
  bottom: 1.5rem;
  right: -1rem;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 600;
  font-size: clamp(5rem, 14vw, 11rem);
  line-height: 1;
  color: rgba(240, 234, 248, 0.028);
  letter-spacing: -0.03em;
  user-select: none;
  pointer-events: none;
  white-space: nowrap;
  animation: riseIn 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0s both;
}

.wordmark {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 600;
  font-size: clamp(6rem, 19vw, 15rem);
  color: var(--ink);
  letter-spacing: -0.03em;
  line-height: 0.86;
  display: block;
  position: relative;
  z-index: 1;
  animation: riseIn 1s cubic-bezier(0.16, 1, 0.3, 1) 0.05s both;
}

.masthead-sub {
  margin-top: 1.75rem;
  display: flex;
  align-items: baseline;
  gap: 1.5rem;
  position: relative;
  z-index: 1;
  animation: riseIn 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.18s both;
}
.masthead-tagline {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.1rem, 2.3vw, 1.5rem);
  font-weight: 300;
  color: var(--ink2);
  line-height: 1.4;
  letter-spacing: 0.01em;
}
.masthead-rule {
  flex: 1;
  height: 1px;
  background: var(--rule);
  max-width: 100px;
}
.masthead-count {
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink3);
  white-space: nowrap;
}

/* ── Bio ── */
.bio {
  padding: 3rem 0 3.5rem;
  max-width: 58ch;
  animation: riseIn 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.28s both;
}
.bio-text {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.05rem, 2.1vw, 1.35rem);
  color: var(--ink2);
  line-height: 1.7;
  letter-spacing: 0.005em;
}
.bio-text strong {
  font-weight: 600;
  font-style: normal;
  color: var(--ink);
}

/* ── Entries ── */
.entries-wrap {
  padding: 3.5rem 0 7rem;
}

.entries-header {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--rule);
  animation: riseIn 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.38s both;
}
.entries-label {
  font-size: 0.65rem;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: var(--ink3);
  flex-shrink: 0;
}
.entries-header-rule {
  flex: 1;
  height: 1px;
  background: var(--rule);
}
.entries-count {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--ink3);
  flex-shrink: 0;
}

/* ── Entry ── */
.entry {
  display: grid;
  grid-template-columns: 5rem 1fr auto;
  gap: 0 2rem;
  padding: 1.9rem 0 1.9rem 1.25rem;
  border-bottom: 1px solid var(--rule);
  text-decoration: none;
  color: var(--ink);
  position: relative;
  opacity: 0;
  animation: riseIn 0.65s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* Faint left border always present — structural texture */
.entry::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0; bottom: 0;
  width: 1px;
  background: var(--rule);
}

/* Pink bar on hover — grows over the faint one */
.entry::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0; bottom: 0;
  width: 1px;
  background: var(--pink);
  box-shadow: 0 0 8px 2px rgba(240, 114, 149, 0.4);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 2;
}
.entry:hover::before { transform: scaleY(1); }

.entry-date {
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  color: var(--ink3);
  padding-top: 0.4rem;
  line-height: 1.8;
  transition: color 0.2s;
}
.entry:hover .entry-date { color: rgba(240, 114, 149, 0.7); }

/* Ghost entry index — layering/depth */
.entry-body {
  min-width: 0;
  position: relative;
}
.entry-num-ghost {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--serif);
  font-style: italic;
  font-weight: 600;
  font-size: 5.5rem;
  line-height: 1;
  color: rgba(240, 234, 248, 0.032);
  user-select: none;
  pointer-events: none;
  white-space: nowrap;
  letter-spacing: -0.04em;
}

.entry-title {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1.18;
  margin-bottom: 0.5rem;
  transition: color 0.2s;
}
.entry:hover .entry-title { color: var(--pink); }

.entry-summary {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(0.95rem, 1.8vw, 1.1rem);
  color: var(--ink2);
  line-height: 1.65;
  max-width: 52ch;
}

.entry-topics {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-top: 0.6rem;
}
.entry-topic {
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink3);
  border: 1px solid rgba(240, 234, 248, 0.08);
  padding: 0.2em 0.5em;
  transition: border-color 0.2s, color 0.2s;
}
.entry:hover .entry-topic {
  border-color: rgba(240, 114, 149, 0.25);
  color: rgba(240, 114, 149, 0.65);
}

.entry-type {
  font-size: 0.65rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink3);
  padding-top: 0.44rem;
  text-align: right;
  white-space: nowrap;
}

/* ── Empty ── */
.empty {
  padding: 4rem 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.3rem;
  color: var(--ink3);
}

/* ── Footer ── */
.footer {
  border-top: 1px solid var(--rule);
  padding: 1.75rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  animation: fadeIn 0.8s 1.2s both;
}
.footer-name {
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.92rem;
  color: var(--ink3);
}
.footer-meta {
  font-size: 0.65rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink3);
}

/* ── Animations ── */
@keyframes riseIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ── Responsive ── */
@media (max-width: 600px) {
  .page { padding: 0 1.5rem; }
  .entry { grid-template-columns: 4rem 1fr; }
  .entry-type { display: none; }
  .topbar-left { display: none; }
  .entry-num-ghost { display: none; }
  .masthead-ghost { display: none; }
}
