/* ──────────────────────────────────────────────
   J-Hawk Homepage — single column macOS tone
   tokens: bg #f5f5f7 / surface #fff / ink #1d1d1f
           accent #0071e3 / muted rgba(29,29,31,.6)
   ────────────────────────────────────────────── */

:root {
  --bg: #f5f5f7;
  --surface: #ffffff;
  --ink: #1d1d1f;
  --accent: #0071e3;
  --muted: rgba(29, 29, 31, 0.6);
  --rule: rgba(0, 0, 0, 0.08);
  --sand: #86868b;
  --frame-outer: #ececef;

  --radius-card: 16px;
  --radius-icon: 10px;
  --radius-pill: 999px;

  --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-card-inset: 0 1px 0 rgba(255, 255, 255, 0.7) inset;
  --shadow-frame: 0 0 0 1px rgba(0, 0, 0, 0.06), 0 30px 80px -20px rgba(0, 0, 0, 0.18);

  --font-sans: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Inter', 'Pretendard', 'Apple SD Gothic Neo', sans-serif;
  --font-mono: ui-monospace, 'SF Mono', 'JetBrains Mono', monospace;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html, body {
  min-height: 100vh;
  background: var(--frame-outer);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.5;
}

/* keyboard focus */
:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 6px;
}

a { color: inherit; text-decoration: none; }

/* ── Frame ── */
.frame {
  max-width: 560px;
  margin: 0 auto;
  min-height: 100vh;
  background: var(--bg);
  box-shadow: var(--shadow-frame);
  padding: 8px 14px 28px;
}

@media (max-width: 600px) {
  .frame { box-shadow: none; }
}

/* ── Eyebrow / common ── */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow-on-dark { color: rgba(245, 245, 247, 0.55); }

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

/* ── Header ── */
.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 4px 14px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 8px;
}
.logo-box {
  width: 24px;
  height: 24px;
  background: var(--ink);
  color: var(--bg);
  display: grid;
  place-items: center;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.brand-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
}

/* ── Card base ── */
.card {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 18px;
}
.card-dark {
  background: var(--ink);
  color: var(--bg);
  border: 1px solid var(--ink);
}

/* ── Hero ── */
.hero {
  padding: 22px 20px;
  margin-bottom: 12px;
}
.hero-headline {
  margin-top: 10px;
  display: flex;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 6px 18px;
}
.hero-title {
  font-weight: 600;
  font-size: 44px;
  line-height: 1;
  letter-spacing: -0.025em;
}
.hero-intro {
  flex: 1 1 180px;
  min-width: 0;
  padding-bottom: 6px;
  font-size: 14px;
  line-height: 1.5;
  color: rgba(245, 245, 247, 0.78);
}
.hero-actions {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(245, 245, 247, 0.18);
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.pill {
  flex: 0 1 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  text-align: center;
  touch-action: manipulation;
  transition: opacity 0.18s ease, transform 0.18s ease;
}
.pill:hover { opacity: 0.92; }
.pill-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}
.pill-label {
  white-space: nowrap;
}
.pill-light {
  background: rgba(255, 255, 255, 0.10);
  color: var(--bg);
}
.pill-accent {
  background: var(--accent);
  color: #fff;
}
.pill-gmail {
  background: #ffffff;
  color: #1d1d1f;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.6) inset, 0 6px 16px -8px rgba(234, 67, 53, 0.40);
}
.pill-instagram {
  color: #fff;
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.18) inset, 0 6px 16px -8px rgba(220, 39, 67, 0.55);
}

/* ── Section heading ── */
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0 4px 10px;
}
.section-title {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-top: 4px;
}
.songs-emoji { font-size: 18px; }

/* ── Project list ── */
.project-list {
  display: grid;
  gap: 10px;
  margin-bottom: 22px;
}
.project-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 14px 16px;
  color: var(--ink);
  touch-action: manipulation;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.project-row:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px -16px rgba(0, 0, 0, 0.25);
}
.proj-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-icon);
  background: var(--bg);
  display: grid;
  place-items: center;
  font-size: 22px;
  line-height: 1;
}
.proj-body { display: block; min-width: 0; }
.proj-meta {
  display: flex;
  gap: 8px;
  align-items: baseline;
}
.proj-idx {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.12em;
}
.proj-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}
.proj-title {
  display: block;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-top: 2px;
}
.proj-lock {
  margin-left: 4px;
  font-size: 11px;
  opacity: 0.6;
}
.proj-hold {
  margin-left: 4px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--muted);
  opacity: 0.85;
}
.proj-sub {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-top: 1px;
  line-height: 1.4;
}
.proj-sub-alert {
  color: #d70015;
}
.proj-chev {
  font-size: 18px;
  color: var(--muted);
  line-height: 1;
}
.project-row-live .proj-chev {
  color: var(--accent);
}

/* live dot — always visible, gentle pulse */
.proj-live {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-left: 8px;
  border-radius: 50%;
  background: var(--accent);
  vertical-align: middle;
  position: relative;
  top: -1px;
  box-shadow: 0 0 0 0 rgba(0, 113, 227, 0.45);
  animation: proj-live-pulse 2.4s ease-out infinite;
}
@keyframes proj-live-pulse {
  0%   { box-shadow: 0 0 0 0   rgba(0, 113, 227, 0.45); }
  70%  { box-shadow: 0 0 0 6px rgba(0, 113, 227, 0);    }
  100% { box-shadow: 0 0 0 0   rgba(0, 113, 227, 0);    }
}

/* tail wrapper — CTA slides in on hover (desktop only) */
.proj-tail {
  display: inline-flex;
  align-items: center;
  line-height: 1;
}
.proj-cta {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--accent);
  white-space: nowrap;
  opacity: 0;
  max-width: 0;
  overflow: hidden;
  transform: translateX(6px);
  transition: opacity 0.18s ease, max-width 0.22s ease, transform 0.18s ease, margin-right 0.18s ease;
  margin-right: 0;
}
@media (hover: hover) {
  .project-row:hover .proj-cta,
  .project-row:focus-visible .proj-cta {
    opacity: 1;
    max-width: 50px;
    transform: translateX(0);
    margin-right: 8px;
  }
}

/* ── Timeline ── */
.timeline-card {
  padding: 16px 18px 16px 14px;
  margin-bottom: 22px;
}
.timeline {
  position: relative;
  padding-left: 18px;
  list-style: none;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 6px;
  bottom: 6px;
  width: 1px;
  background: var(--rule);
}
.t-row {
  position: relative;
  padding: 10px 0;
  border-bottom: 1px solid var(--rule);
}
.t-row:last-child { border-bottom: none; }
.t-dot {
  position: absolute;
  left: -18px;
  top: 14px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ink);
  outline: 3px solid var(--surface);
}
.t-row-current .t-dot { background: var(--accent); }
.t-range {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
}
.t-org {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-top: 1px;
}
.t-org-note {
  font-weight: 400;
  font-size: 11px;
  color: var(--muted);
  margin-left: 2px;
}
.t-role {
  font-size: 12px;
  color: var(--muted);
  margin-top: 1px;
}
.t-role-list {
  list-style: none;
  margin: 3px 0 0;
  padding: 0;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.55;
}
.t-role-list li {
  position: relative;
  padding-left: 10px;
}
.t-role-list li::before {
  content: "·";
  position: absolute;
  left: 2px;
  top: 0;
  color: var(--muted);
}
.t-thesis {
  margin-top: 6px;
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--muted);
}
.t-thesis-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-right: 6px;
}
.t-thesis a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
  transition: opacity 0.18s ease;
}
.t-thesis a:hover {
  opacity: 0.75;
  text-decoration-thickness: 1.5px;
}

/* ── Songs ── */
.songs {
  padding: 4px 14px;
  margin-bottom: 22px;
}
.song-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--rule);
  color: var(--ink);
  touch-action: manipulation;
  transition: opacity 0.18s ease;
}
.song-row:last-child { border-bottom: none; }
.song-row:hover { opacity: 0.7; }
.song-meta {
  display: flex;
  gap: 10px;
  align-items: baseline;
  min-width: 0;
  flex: 1;
}
.song-idx {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--muted);
}
.song-title { font-size: 14px; }
.song-live {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-left: 8px;
  border-radius: 50%;
  background: #FF0033;
  vertical-align: middle;
  position: relative;
  top: -1px;
  box-shadow: 0 0 0 0 rgba(255, 0, 51, 0.45);
  animation: song-live-pulse 2.4s ease-out infinite;
}
@keyframes song-live-pulse {
  0%   { box-shadow: 0 0 0 0   rgba(255, 0, 51, 0.45); }
  70%  { box-shadow: 0 0 0 6px rgba(255, 0, 51, 0);    }
  100% { box-shadow: 0 0 0 0   rgba(255, 0, 51, 0);    }
}
.song-source {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: #FF0033;
  text-transform: uppercase;
  flex-shrink: 0;
}

/* ── Colophon ── */
.colophon { padding: 18px 20px; }
.colophon-body {
  font-size: 14px;
  line-height: 1.5;
}
.colophon-foot {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(245, 245, 247, 0.18);
}
.colophon-foot #visitor-count {
  font-variant-numeric: tabular-nums;
  color: rgba(245, 245, 247, 0.78);
}
.version {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
}

/* ── Mobile ── */
@media (max-width: 600px) {
  .hero-actions { flex-wrap: nowrap; gap: 8px; }
  .pill {
    padding: 8px 12px;
    font-size: 12px;
    gap: 6px;
  }
  .pill-icon { width: 14px; height: 14px; }
  .song-row { padding: 14px 0; }
  .song-source {
    padding: 7px 11px;
    border-radius: 999px;
    background: #FF0033;
    color: #fff;
    box-shadow: 0 1px 3px rgba(255, 0, 51, 0.28);
  }
}

/* ── Motion preferences ── */
@media (prefers-reduced-motion: reduce) {
  .pill,
  .project-row,
  .song-row,
  .proj-cta {
    transition: none;
  }
  .project-row:hover {
    transform: none;
  }
  .proj-live,
  .song-live {
    animation: none;
  }
}
