/* alesia.dev — light retro, pokemon gold menus */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'JetBrains Mono', ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  color: var(--ink);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  background: #F4ECDA;
  font-feature-settings: 'ss01', 'zero';
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }

:root {
  --bg: #F4ECDA;
  --paper: #FFFDF6;
  --paper-soft: #FBF6E6;
  --ink: #1F1B12;           /* warm near-black */
  --ink-soft: #4A4233;
  --ink-dim: #7A7060;
  --ink-faint: #A89E8A;
  --line: rgba(31,27,18,0.14);
  --line-strong: #1F1B12;    /* used as hard border */
  --amber: #B45A1F;          /* pokemon gold amber */
  --amber-soft: rgba(180,90,31,0.12);
  --sage: #5A7A2E;
  --r-card: 10px;
  --r-soft: 8px;
  --shadow: 3px 3px 0 rgba(31,27,18,0.92);
  --shadow-soft: 2px 2px 0 rgba(31,27,18,0.6);
}

/* ============ BACKGROUND ============ */
.bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.bg-image {
  position: absolute;
  inset: -8%;
  background-image: url('assets/background.jpg');
  background-size: cover;
  background-position: center;
  filter: saturate(1.05) brightness(1.05);
  animation: bg-breathe 60s ease-in-out infinite alternate;
}
.bg-tint {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,253,246,0.10) 0%, rgba(244,236,218,0.20) 100%);
}
.bg-grain {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.4 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  opacity: 0.05;
  mix-blend-mode: multiply;
}
@keyframes bg-breathe {
  0%   { transform: scale(1) translate(0, 0); }
  100% { transform: scale(1.06) translate(-1%, 1%); }
}

@media (prefers-reduced-motion: reduce) {
  .bg-image { animation: none; }
}

/* ============ PAGE ============ */
.page {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  padding: 64px 20px 56px;
}
.frame {
  width: 100%;
  max-width: 480px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  animation: load-in 600ms cubic-bezier(.2,.7,.3,1) both;
}
@keyframes load-in {
  0%   { opacity: 0; transform: translateY(8px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* ============ TOP BAR ============ */
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--ink-dim);
  padding: 0 2px;
}
.topbar .right { color: var(--sage); display: inline-flex; align-items: center; gap: 6px; font-weight: 500; }
.topbar .status-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--sage);
  box-shadow: 0 0 6px rgba(90,122,46,0.6);
  animation: pulse 2.4s ease-in-out infinite;
}
.topbar .blink {
  display: inline-block;
  width: 6px;
  height: 10px;
  background: var(--amber);
  animation: blink 1.1s steps(2) infinite;
}
@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

/* ============ HEADER ============ */
.head {
  display: flex;
  gap: 16px;
  align-items: center;
}
.avatar {
  width: 76px;
  height: 76px;
  flex-shrink: 0;
  border: 2px solid var(--line-strong);
  border-radius: 12px;
  overflow: hidden;
  background: var(--paper-soft);
  box-shadow: var(--shadow-soft);
}
.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
}
.head-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.name {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.1;
  color: var(--ink);
  text-transform: uppercase;
}
.handle {
  font-size: 13px;
  color: var(--ink-dim);
  letter-spacing: 0;
}
.handle .at { color: var(--amber); }

.bio {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.55;
  max-width: 440px;
  text-wrap: pretty;
  padding: 0 2px;
  min-height: 4em;
  white-space: pre-wrap;
}
.bio .cursor-bar {
  display: inline-block;
  margin-left: 4px;
  color: var(--amber);
  font-weight: 700;
  animation: blink 1.1s steps(2) infinite;
  transform: translateY(1px);
}

/* ============ MONO DIVIDER ============ */
.divider {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 2px 2px;
  font-size: 11px;
  letter-spacing: 0.10em;
  color: var(--ink-dim);
  text-transform: uppercase;
  margin-top: 4px;
}
.divider .tag { white-space: nowrap; color: var(--ink-soft); font-weight: 500; }
.divider .tag .slash { color: var(--amber); }
.divider .ascii {
  flex: 1;
  color: var(--line);
  overflow: hidden;
  white-space: nowrap;
  font-size: 12px;
  letter-spacing: 0;
}

/* ============ PANEL — pokemon gold textbox ============ */
.panel {
  position: relative;
  background: var(--paper);
  border: 2px solid var(--line-strong);
  border-radius: var(--r-card);
  box-shadow: var(--shadow);
  padding: 16px 18px;
  transition: transform 180ms cubic-bezier(.2,.7,.3,1), box-shadow 180ms;
  display: block;
}
.panel.is-link { cursor: pointer; }
.panel.is-link:hover {
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0 rgba(31,27,18,0.92);
}
.panel.is-link:active {
  transform: translate(1px, 1px);
  box-shadow: 1px 1px 0 rgba(31,27,18,0.92);
}

/* ============ STUDYPOP PANEL ============ */
.callout { display: flex; flex-direction: column; gap: 10px; }
.callout-head {
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px dashed var(--line);
  padding-bottom: 10px;
  margin-bottom: 2px;
}
.callout-mark {
  width: 26px;
  height: 26px;
  background: var(--amber);
  color: var(--paper);
  border: 2px solid var(--line-strong);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
}
.callout-name {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--ink);
  text-transform: uppercase;
}
.callout-status {
  margin-left: auto;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--amber);
  background: var(--amber-soft);
  border: 1px solid var(--amber);
  padding: 2px 8px;
  border-radius: 4px;
}
.callout-tag {
  font-size: 18px;
  line-height: 1.25;
  color: var(--ink);
  font-weight: 600;
  letter-spacing: -0.005em;
}
.callout-desc {
  font-size: 13.5px;
  color: var(--ink-soft);
  line-height: 1.55;
}
.callout-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--amber);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  margin-top: 4px;
}
.callout-cta .arrow {
  display: inline-block;
  transition: transform 180ms;
}
.callout.is-link:hover .callout-cta .arrow {
  transform: translateX(4px);
}

/* ============ EVENT PANEL ============ */
.event { display: flex; flex-direction: column; gap: 8px; }
.event-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 11px;
}
.event-date {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-dim);
  letter-spacing: 0.10em;
  text-transform: uppercase;
  font-weight: 500;
}
.event-date .dot-pulse {
  width: 6px; height: 6px;
  background: var(--amber);
  border-radius: 50%;
  display: inline-block;
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
.event-status {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--sage);
  background: rgba(90,122,46,0.12);
  border: 1px solid var(--sage);
  padding: 2px 8px;
  border-radius: 4px;
}
.event-title {
  font-size: 22px;
  line-height: 1.15;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.01em;
  text-transform: uppercase;
  margin: 4px 0 2px;
}
.event-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--ink-dim);
  flex-wrap: wrap;
}
.event-meta .pip { color: var(--ink-faint); }
.event-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 10px;
  margin-top: 6px;
  border-top: 1px dashed var(--line);
}
.event-foot .where {
  font-size: 12px;
  color: var(--ink-soft);
}
.event-foot .cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--amber);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
}
.event-foot .cta .arrow {
  display: inline-block;
  transition: transform 180ms;
}
.event.is-link:hover .event-foot .cta .arrow {
  transform: translateX(4px);
}

/* ============ PAST EVENT (muted) ============ */
.event.past {
  background: var(--paper-soft);
  border-color: rgba(31,27,18,0.30);
  box-shadow: 2px 2px 0 rgba(31,27,18,0.30);
  opacity: 0.78;
}
.event.past:hover {
  opacity: 1;
  border-color: rgba(31,27,18,0.55);
  box-shadow: 3px 3px 0 rgba(31,27,18,0.45);
}
.event.past .event-title {
  font-size: 17px;
  color: var(--ink-soft);
}
.event.past .event-date { color: var(--ink-faint); }
.event.past .event-meta { color: var(--ink-dim); font-size: 12px; }
.event-status.past {
  color: var(--ink-dim);
  background: rgba(31,27,18,0.06);
  border-color: var(--ink-faint);
}

/* ============ CONNECT MENU ============ */
.menu {
  background: var(--paper);
  border: 2px solid var(--line-strong);
  border-radius: var(--r-card);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px 14px 16px;
  border-bottom: 1px dashed var(--line);
  font-size: 14px;
  color: var(--ink);
  position: relative;
  transition: padding-left 180ms, background 140ms;
}
.menu-item:last-child { border-bottom: none; }
.menu-item::before {
  content: '▶';
  position: absolute;
  left: 6px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--amber);
  font-size: 11px;
  opacity: 0;
  transition: opacity 140ms, transform 180ms;
}
.menu-item:hover {
  background: var(--paper-soft);
  padding-left: 26px;
}
.menu-item:hover::before {
  opacity: 1;
}
.menu-item .glyph {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  border: 2px solid var(--line-strong);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--paper);
}
.menu-item .glyph.linkedin { background: #0A66C2; }
.menu-item .glyph.mail { background: var(--ink); }
.menu-item .glyph svg { width: 14px; height: 14px; }
.menu-item .label {
  flex: 1;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
  font-size: 13px;
}
.menu-item .sub {
  color: var(--ink-dim);
  font-size: 12.5px;
  letter-spacing: 0;
  text-align: right;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 60%;
}

/* ============ FOOTER ============ */
.foot {
  margin-top: 8px;
  padding-top: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: var(--ink-dim);
  letter-spacing: 0.04em;
  border-top: 1px dashed var(--line);
}
.foot .prompt { color: var(--amber); margin-right: 4px; }
.foot .cursor {
  display: inline-block;
  width: 6px;
  height: 10px;
  background: var(--ink-soft);
  vertical-align: middle;
  margin-left: 4px;
  animation: blink 1.1s steps(2) infinite;
}

@media (max-width: 480px) {
  .page { padding: 44px 14px 36px; }
  .name { font-size: 18px; }
  .event-title { font-size: 19px; }
  .callout-tag { font-size: 16px; }
  .event-foot { flex-direction: column; align-items: flex-start; gap: 6px; }
  .menu-item .sub { max-width: 50%; font-size: 11.5px; }
  .head { gap: 12px; }
  .avatar { width: 64px; height: 64px; }
}

