/* ── Triumph Ohwojeheri — minimal portfolio ─────────────── */

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

:root {
  --bg: #ffffff;
  --card: #f6f6f5;
  --text: #2a2a2a;
  --muted: #757575;
  --faint: #a3a3a3;
  --border: rgba(0, 0, 0, 0.1);
  --accent: #d97706;
  --sans: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

[data-theme="dark"] {
  --bg: #1a1a1a;
  --card: #222221;
  --text: #e5e5e5;
  --muted: #a0a0a0;
  --faint: #6f6f6f;
  --border: rgba(255, 255, 255, 0.12);
  --accent: #f2a65a;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  transition: background 0.25s ease, color 0.25s ease;
}

.wrap {
  max-width: 850px;
  margin: 0 auto;
  padding: 88px 24px 48px;
}

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

/* ── Links ──────────────────────────────────────────────── */
a {
  color: var(--text);
  text-decoration: underline;
  text-decoration-style: dotted;
  text-decoration-color: var(--faint);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  transition: text-decoration-color 0.15s ease, color 0.15s ease;
}
a:hover { text-decoration-color: var(--text); }

a.accent {
  color: var(--accent);
  text-decoration: none;
}
a.accent:hover { text-decoration: underline; text-decoration-style: dotted; text-decoration-color: var(--accent); text-underline-offset: 4px; }

a.quiet {
  color: var(--muted);
  text-decoration: none;
}
a.quiet:hover { color: var(--text); }

/* Chevron icon on standalone links */
a.accent,
.view-link,
.link-item .link-title {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.arr {
  flex-shrink: 0;
  transition: transform 0.15s ease;
}
a:hover > .arr { transform: translateX(2px); }
a:hover > .arr-ne { transform: translate(2px, -2px); }

/* ── Header ─────────────────────────────────────────────── */
.top-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 28px;
}

.avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  display: block;
  border: 1.5px solid rgba(234, 88, 12, 0.35);
  filter: grayscale(100%);
  transition: filter 0.35s ease;
}
.avatar:hover { filter: grayscale(0%); }
[data-theme="dark"] .avatar { border-color: rgba(242, 166, 90, 0.35); }

.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 50%;
  background: none;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.15s ease, background 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}
.theme-toggle:hover { color: var(--text); background: var(--border); }
.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: block; }
[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

.name {
  font-weight: 500;
  margin-bottom: 2px;
}

.book-call { margin-bottom: 40px; }

/* ── Prose ──────────────────────────────────────────────── */
.prose p + p { margin-top: 24px; }

.handle {
  font-family: Georgia, 'Times New Roman', serif;
  font-style: italic;
  letter-spacing: 0.01em;
}

/* ── Sections ───────────────────────────────────────────── */
.section { margin-top: 64px; }

.section-label {
  color: var(--muted);
  margin-bottom: 24px;
}

/* Work list (dahnizzy-style) */
.work-item + .work-item { margin-top: 28px; }
.work-title { font-weight: 500; }
.work-title.no-link {
  text-decoration: none;
  cursor: default;
}
.work-desc { color: var(--muted); margin-top: 2px; }
.work-note { color: var(--faint); }

/* Work cards (image left, details right) */
.work-cards { display: flex; flex-direction: column; gap: 16px; }
.work-card {
  background: var(--card);
  border-radius: 14px;
  padding: 6px;
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 18px;
  align-items: start;
}
.work-thumb {
  display: block;
  overflow: hidden;
  border-radius: 9px;
}
.work-thumb img {
  width: 100%;
  height: 175px;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform 0.4s ease;
}
.work-card:hover .work-thumb img { transform: scale(1.03); }
.work-card .work-info { padding: 10px 12px 10px 0; }
.work-head { margin-bottom: 8px; }
.work-name { font-weight: 500; line-height: 1.3; }
.work-name a { text-decoration: none; }
.work-name a:hover { text-decoration: underline; text-decoration-style: dotted; text-decoration-color: var(--faint); text-underline-offset: 4px; }
.work-card .work-desc { margin: 0; line-height: 1.6; }
.view-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 12px;
  color: var(--muted);
}
.view-link:hover { color: var(--text); }

/* UI shots grid */
.shots-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.shots-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center top;
  display: block;
  border-radius: 0;
}

/* Link columns (chidu-style) */
.link-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px 24px;
}
.link-col .col-label { color: var(--muted); margin-bottom: 20px; }
.link-item + .link-item { margin-top: 22px; }
.link-item .link-title { font-weight: 500; }
.link-item p { color: var(--muted); margin-top: 2px; }

/* ── Case study pages ───────────────────────────────────── */
.back-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 56px;
}

.case-title { font-weight: 500; }
.case-meta { color: var(--muted); margin-top: 4px; margin-bottom: 28px; }

.detail-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.detail-row:first-of-type { border-top: 1px solid var(--border); }
.detail-row dt { color: var(--muted); }
.detail-row dd { text-align: right; }

.screens { display: flex; flex-direction: column; gap: 20px; }
.screen figcaption { color: var(--muted); margin-top: 8px; }
.screen img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  border: 1px solid var(--border);
}

.next-link { margin-top: 64px; }

/* ── Footer ─────────────────────────────────────────────── */
footer {
  margin-top: 96px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
}

/* ── Entrance animation ─────────────────────────────────── */
@media (prefers-reduced-motion: no-preference) {
  .fade {
    opacity: 0;
    transform: translateY(8px);
    animation: fadeUp 0.6s ease forwards;
  }
  .fade:nth-child(1) { animation-delay: 0.05s; }
  .fade:nth-child(2) { animation-delay: 0.12s; }
  .fade:nth-child(3) { animation-delay: 0.19s; }
  .fade:nth-child(4) { animation-delay: 0.26s; }
  .fade:nth-child(5) { animation-delay: 0.33s; }
  .fade:nth-child(6) { animation-delay: 0.4s; }
  .fade:nth-child(7) { animation-delay: 0.47s; }
  .fade:nth-child(8) { animation-delay: 0.54s; }
  @keyframes fadeUp {
    to { opacity: 1; transform: translateY(0); }
  }
}

/* ── Mobile ─────────────────────────────────────────────── */
@media (max-width: 640px) {
  .wrap { padding: 56px 20px 40px; }
  .link-grid { grid-template-columns: 1fr; gap: 40px; }
  .section { margin-top: 56px; }
  footer { margin-top: 72px; flex-direction: column; gap: 4px; }
  .detail-row { gap: 16px; }
  .work-card { grid-template-columns: 1fr; gap: 10px; padding: 5px; }
  .work-card .work-info { padding: 4px 10px 10px 10px; }
  .work-thumb img { height: auto; aspect-ratio: 16 / 10; }
  .shots-grid { grid-template-columns: 1fr; gap: 10px; }
}
