/* =========================================================
   AFLAH ALIFU — QUIET LUXURY SINGLE-COLUMN PORTFOLIO
   One focal point at a time · Effortless HR scanning
   ========================================================= */

:root {
  /* Light Theme (Warm Alabaster Paper) */
  --bg: #faf8f5;
  --surface: #f2efe9;
  --ink: #141413;
  --ink-secondary: #54534e;
  --ink-muted: #8a8881;
  --border: rgba(20, 20, 19, 0.09);
  --border-strong: rgba(20, 20, 19, 0.2);
  --accent: #9e3b24;
  --green: #16a34a;

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

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

[data-theme="dark"] {
  /* Dark Theme (Obsidian Matte) */
  --bg: #0d0d0c;
  --surface: #161614;
  --ink: #f2efe9;
  --ink-secondary: #a3a19a;
  --ink-muted: #66645e;
  --border: rgba(242, 239, 233, 0.09);
  --border-strong: rgba(242, 239, 233, 0.22);
  --accent: #df855d;
  --green: #34d399;
}

/* =========================================================
   RESET & BASE
   ========================================================= */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg);
  color: var(--ink);
  font-size: 15.5px;
  line-height: 1.65;
  transition: background-color 0.35s var(--ease), color 0.35s var(--ease);
}

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

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

.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 99;
  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");
}

/* =========================================================
   MINIMAL TOP BAR
   ========================================================= */
.topbar {
  max-width: 680px;
  margin: 0 auto;
  padding: 32px 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.topbar-brand {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: var(--ink-muted);
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 0.73rem;
  color: var(--ink-secondary);
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
}

.theme-btn {
  font-family: var(--font-mono);
  font-size: 0.73rem;
  color: var(--ink-muted);
  padding: 4px 10px;
  border: 1px solid var(--border);
  border-radius: 99px;
  transition: color 0.2s, border-color 0.2s;
}

.theme-btn:hover {
  color: var(--ink);
  border-color: var(--border-strong);
}

/* =========================================================
   SINGLE-COLUMN EDITORIAL CONTAINER
   ========================================================= */
.editorial-column {
  max-width: 680px;
  margin: 0 auto;
  padding: 72px 24px 110px;
}

/* =========================================================
   1. HERO
   ========================================================= */
.hero {
  margin-bottom: 96px;
}

.identity-row {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 28px;
}

.avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--border-strong);
  filter: grayscale(15%);
}

.hero-name {
  font-size: 1.45rem;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

.hero-role {
  font-size: 0.9rem;
  color: var(--ink-muted);
  margin-top: 2px;
}

.hero-statement {
  font-size: clamp(1.35rem, 2.8vw, 1.68rem);
  line-height: 1.46;
  letter-spacing: -0.02em;
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 28px;
}

.hero-statement em {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.15em;
  color: var(--accent);
}

.hero-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  font-size: 0.88rem;
}

.primary-link {
  font-weight: 600;
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
  padding-bottom: 2px;
  transition: color 0.2s, border-color 0.2s;
}

.primary-link:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.muted-link {
  color: var(--ink-secondary);
  transition: color 0.2s;
}

.muted-link:hover {
  color: var(--ink);
}

/* =========================================================
   SHARED SECTION HEADINGS
   ========================================================= */
.section {
  margin-bottom: 96px;
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding-bottom: 14px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--border);
}

.section-label {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
}

.section-count {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1rem;
  color: var(--ink-muted);
}

/* =========================================================
   2. SELECTED WORKS (SPOTLIGHT FOCUS LIST)
   ========================================================= */
.spotlight-list {
  display: flex;
  flex-direction: column;
}

.work-row {
  display: block;
  padding: 22px 0;
  border-bottom: 1px solid var(--border);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}

.work-row:first-child {
  padding-top: 4px;
}

/* Spotlight Focus Effect: dims siblings so you focus on one item at a time */
@media (hover: hover) {
  .spotlight-list:hover .work-row {
    opacity: 0.35;
  }

  .spotlight-list:hover .work-row:hover {
    opacity: 1;
    transform: translateX(6px);
  }
}

.work-row-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 6px;
}

.work-title {
  font-size: 1.08rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--ink);
}

.work-title .arrow {
  font-size: 0.85rem;
  color: var(--ink-muted);
  margin-left: 3px;
}

.work-tech {
  font-family: var(--font-mono);
  font-size: 0.73rem;
  color: var(--ink-muted);
}

.work-desc {
  font-size: 0.93rem;
  color: var(--ink-secondary);
  line-height: 1.6;
}

/* =========================================================
   3. EXPERIENCE (CLEAN SINGLE-COLUMN SPINE)
   ========================================================= */
.career-list {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.career-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.career-role {
  font-size: 1.06rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.career-company {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.08rem;
  color: var(--accent);
}

.career-date {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--ink-muted);
  white-space: nowrap;
}

.career-points {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.career-points li {
  position: relative;
  padding-left: 16px;
  font-size: 0.92rem;
  color: var(--ink-secondary);
  line-height: 1.62;
}

.career-points li::before {
  content: '–';
  position: absolute;
  left: 0;
  color: var(--ink-muted);
}

.career-points li strong {
  color: var(--ink);
  font-weight: 500;
}

/* =========================================================
   4. EDUCATION & STACK
   ========================================================= */
.edu-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 36px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
}

.edu-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.edu-title {
  font-size: 1rem;
  font-weight: 600;
}

.edu-sub {
  font-size: 0.9rem;
  color: var(--ink-secondary);
}

.edu-sub strong {
  color: var(--ink);
  font-weight: 500;
}

.stack-summary {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.stack-group {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 16px;
  align-items: baseline;
}

.stack-key {
  font-family: var(--font-mono);
  font-size: 0.73rem;
  color: var(--ink-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.stack-val {
  font-size: 0.92rem;
  color: var(--ink-secondary);
}

/* =========================================================
   5. QUIET SIGN-OFF FOOTER
   ========================================================= */
.footer-signoff {
  padding-top: 40px;
  border-top: 1px solid var(--border);
}

.signoff-title {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 2.4rem;
  line-height: 1.1;
  margin-bottom: 8px;
}

.signoff-sub {
  font-size: 0.93rem;
  color: var(--ink-secondary);
  margin-bottom: 24px;
}

.signoff-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 56px;
}

.btn-solid,
.btn-outline {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  padding: 10px 18px;
  border-radius: 6px;
  transition: all 0.2s var(--ease);
}

.btn-solid {
  background: var(--ink);
  color: var(--bg);
  font-weight: 500;
}

.btn-solid:hover {
  opacity: 0.86;
}

.btn-outline {
  border: 1px solid var(--border-strong);
  color: var(--ink);
}

.btn-outline:hover {
  background: var(--surface);
}

.signoff-meta {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--ink-muted);
}

/* =========================================================
   REVEAL ANIMATION
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 560px) {
  .editorial-column {
    padding: 48px 20px 80px;
  }

  .hero,
  .section {
    margin-bottom: 72px;
  }

  .stack-group {
    grid-template-columns: 1fr;
    gap: 2px;
  }
}
