/* ============================================================
   Cursor FDE one-pager — Seyi Adeleke
   Editorial memo styling. Mobile-first, no dependencies.
   ============================================================ */

:root {
  --bg:        #14120b;
  --fg:        #edecec;
  --fg-muted:  rgba(237, 236, 236, 0.62);
  --fg-faint:  rgba(237, 236, 236, 0.40);
  --line:      rgba(237, 236, 236, 0.14);
  --surface:   #1b1910;
  --accent:    #c9a15e;

  --font-display: "Fraunces", Georgia, serif;
  --font-body:    "IBM Plex Sans", system-ui, sans-serif;
  --font-mono:    "IBM Plex Mono", ui-monospace, monospace;
}

/* ---------- Reset / base ---------- */

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

@media (min-width: 640px) {
  body { font-size: 1.125rem; }
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--fg);
  text-decoration: underline;
  text-decoration-color: var(--line);
  text-underline-offset: 3px;
  transition: text-decoration-color 150ms ease;
}

a:hover {
  text-decoration-color: var(--accent);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  color: var(--accent);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Layout primitives ---------- */

.container {
  max-width: 1080px;
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 5vw, 4rem);
}

section {
  padding-block: clamp(4rem, 10vw, 8rem);
}

.rule {
  border: 0;
  border-top: 1px solid var(--line);
  max-width: 1080px;
  margin-inline: auto;
}

/* ---------- Shared type styles ---------- */

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--fg-faint);
  margin-bottom: 2rem;
}

.at {
  color: var(--accent);
  margin-right: 0.5rem;
}

.body-copy {
  color: var(--fg-muted);
  max-width: 46rem;
}

.meta {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--fg-faint);
  margin-top: 1.5rem;
}

/* ---------- Header ---------- */

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  max-width: 1080px;
  margin-inline: auto;
  padding: 1.5rem clamp(1.25rem, 5vw, 4rem);
  border-bottom: 1px solid var(--line);
}

.wordmark {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.header-link {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--fg-muted);
}

/* ---------- Hero ---------- */

.hero h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.4rem, 5.5vw, 4.25rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  max-width: 20ch;
  margin-bottom: 2rem;
}

.attribution {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--fg-muted);
  margin-bottom: 3rem;
}

.thesis {
  font-size: clamp(1.15rem, 1.8vw, 1.5rem);
  line-height: 1.45;
  max-width: 34ch;
}

/* Blinking terminal cursor after the thesis line */
.cursor-blink {
  color: var(--accent);
  margin-left: 0.25rem;
  animation: blink 1.1s step-end infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

/* ---------- Opportunity ---------- */

.data-mark {
  font-family: var(--font-mono);
  font-weight: 500;
  color: var(--accent);
  white-space: nowrap;
}

/* ---------- Gaps / slider ---------- */

.section-intro {
  font-size: clamp(1.15rem, 1.8vw, 1.5rem);
  line-height: 1.45;
  max-width: 40ch;
  margin-bottom: 4rem;
}

.slider:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.slider-viewport {
  overflow: hidden;
}

.slider-track {
  display: flex;
  transition: transform 400ms ease;
}

.slide {
  flex: 0 0 100%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.slide-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--fg-faint);
  margin-bottom: 1.5rem;
}

.gap-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.35rem, 2.2vw, 1.8rem);
  line-height: 1.2;
  margin-bottom: 1rem;
}

.slide-arrow {
  font-family: var(--font-mono);
  color: var(--accent);
  font-size: 1.25rem;
}

.slide-solution {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 1.5rem;
}

@media (min-width: 768px) {
  .slide {
    display: grid;
    grid-template-columns: minmax(0, 55fr) auto minmax(0, 45fr);
    align-items: start;
    gap: 2rem;
  }

  .slide-arrow {
    padding-top: 0.25rem;
  }

  .slide-solution {
    padding: 2rem;
  }
}

/* Slider controls */

.slider-controls {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-top: 3rem;
}

.slider-btn {
  font-family: var(--font-mono);
  font-size: 1.125rem;
  color: var(--accent);
  background: none;
  border: 1px solid var(--line);
  border-radius: 0;
  width: 2.75rem;
  height: 2.75rem;
  cursor: pointer;
  transition: border-color 150ms ease, opacity 150ms ease;
}

.slider-btn:hover:not(:disabled) {
  border-color: var(--accent);
}

.slider-btn:disabled {
  opacity: 0.3;
  cursor: default;
}

.slider-dots {
  display: flex;
  gap: 0.75rem;
}

.dot {
  width: 0.5rem;
  height: 0.5rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--fg-faint);
  cursor: pointer;
  transition: background 150ms ease;
}

.dot.active {
  background: var(--accent);
}

.slider-counter {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--fg-faint);
  margin-left: auto;
}

/* ---------- Why me ---------- */

.why-me-copy {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  line-height: 1.35;
  max-width: 30ch;
}

.why-me-proof {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--fg-muted);
  margin-top: 2rem;
}

/* ---------- Contact ---------- */

.contact-grid {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.contact-photo img {
  max-width: 360px;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  /* keep the subject's head fully in frame when the 2:3 photo crops to 4:5 */
  object-position: center 30%;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
}

.contact-info {
  font-family: var(--font-mono);
}

.contact-name {
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 1rem;
}

.contact-line {
  font-size: 0.8125rem;
  color: var(--fg-muted);
  margin-bottom: 0.75rem;
}

@media (min-width: 768px) {
  .contact-grid {
    flex-direction: row;
    align-items: flex-start;
    gap: 6rem;
  }
}

/* ---------- Footer ---------- */

.site-footer {
  max-width: 1080px;
  margin-inline: auto;
  padding: 2rem clamp(1.25rem, 5vw, 4rem) 3rem;
  border-top: 1px solid var(--line);
}

.footer-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-link {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--fg);
  text-decoration: none;
}

.footer-link:hover {
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-underline-offset: 3px;
}

.site-footer .meta {
  margin-top: 0;
}

/* ---------- Scroll reveal ---------- */

/* Hidden state only applies once JS confirms it can reveal
   (html.reveal-ready) — without JS, everything stays visible. */
html.reveal-ready .reveal {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 300ms ease, transform 300ms ease;
}

html.reveal-ready .reveal.visible {
  opacity: 1;
  transform: none;
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }

  .cursor-blink {
    animation: none;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
