/* Abraham Nana Kofi Karikari — portfolio
   Mobile-first, dark theme with the gold accent used across the series. */

:root {
  --bg: #0e0f13;
  --surface: #171922;
  --surface-2: #1f2330;
  --text: #e8e9ee;
  --muted: #9aa0b0;
  --gold: #d9a441;
  --gold-soft: #f2ce84;
  --border: #2a2f3f;
  --radius: 14px;
  --max-width: 1080px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  line-height: 1.65;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Header / nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(14, 15, 19, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
}

.brand {
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--text);
  text-decoration: none;
  letter-spacing: 0.02em;
}

.brand span { color: var(--gold); }

.nav-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links a:focus-visible { color: var(--gold); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* Hero */
.hero {
  padding: 5rem 1.25rem 4rem;
  text-align: center;
}

.hero-kicker {
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.25em;
  font-size: 0.8rem;
  margin-bottom: 1rem;
}

.hero h1 {
  font-size: clamp(2.2rem, 6vw, 3.6rem);
  line-height: 1.15;
  font-weight: 800;
}

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

.hero-tagline {
  max-width: 640px;
  margin: 1.25rem auto 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.hero-actions {
  display: flex;
  gap: 0.9rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2.2rem;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.6rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.15s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--gold);
  color: #161616;
}

.btn-primary:hover { background: var(--gold-soft); }

.btn-ghost {
  border: 1px solid var(--border);
  color: var(--text);
}

.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }

/* Sections */
.section { padding: 3.5rem 1.25rem; }

.section h2 {
  font-size: clamp(1.5rem, 4vw, 2rem);
  margin-bottom: 1.5rem;
  position: relative;
}

.section h2::after {
  content: "";
  display: block;
  width: 48px;
  height: 3px;
  background: var(--gold);
  border-radius: 2px;
  margin-top: 0.5rem;
}

.about-grid {
  display: grid;
  gap: 1.25rem;
  max-width: 760px;
  color: var(--muted);
}

.about-grid strong { color: var(--text); }

.about-grid a { color: var(--gold); }

.about-signoff { color: var(--text); }

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--gold);
}

.card-kicker {
  color: var(--gold);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

.card h3 { font-size: 1.2rem; }

.card p { color: var(--muted); font-size: 0.95rem; flex: 1; }

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tags span {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.2rem 0.75rem;
  font-size: 0.78rem;
  color: var(--muted);
}

.card-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.2rem;
}

.card-link {
  color: var(--gold);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}

.card-link:hover { text-decoration: underline; }

.card-link.live::before {
  content: "●";
  color: #4caf7d;
  font-size: 0.7rem;
  margin-right: 0.4rem;
}

.card-note {
  color: var(--muted);
  font-size: 0.85rem;
  font-style: italic;
}

.card-note.demo-soon {
  color: var(--gold);
  font-style: normal;
  font-weight: 600;
}

/* Skills */
.skill-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.skill-list li {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.5rem 1.1rem;
  font-size: 0.92rem;
  color: var(--text);
  transition: border-color 0.2s ease, color 0.2s ease;
}

.skill-list li:hover {
  border-color: var(--gold);
  color: var(--gold);
}

/* Writing */
.writing-schedule-intro {
  color: var(--muted);
  margin-bottom: 1rem;
}

.schedule-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.schedule-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.2rem 1.4rem;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.schedule-card:hover {
  border-color: var(--gold);
  transform: translateY(-3px);
}

.schedule-day {
  color: var(--gold);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.82rem;
  margin-bottom: 0.4rem;
}

.schedule-topic {
  color: var(--muted);
  font-size: 0.92rem;
}

.schedule-topic strong { color: var(--text); }

.writing-list {
  display: grid;
  gap: 0.9rem;
}

.writing-item {
  display: flex;
  align-items: flex-start;
  gap: 1.1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.4rem;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.writing-item:hover {
  border-color: var(--gold);
  transform: translateX(4px);
}

.writing-number {
  color: var(--gold);
  font-weight: 800;
  font-size: 1.3rem;
  line-height: 1;
  padding-top: 0.2rem;
}

.writing-item h3 { font-size: 1.05rem; margin-bottom: 0.25rem; }

.writing-item p { color: var(--muted); font-size: 0.9rem; }

.writing-status {
  margin-left: auto;
  align-self: center;
  background: var(--gold);
  color: #161616;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: 999px;
  padding: 0.25rem 0.7rem;
  white-space: nowrap;
}

.writing-more { margin-top: 1.5rem; color: var(--muted); }

.writing-more a { color: var(--gold); }

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.contact-card:hover {
  border-color: var(--gold);
  transform: translateY(-3px);
}

.contact-card h3 { color: var(--gold); margin-bottom: 0.25rem; }

.contact-card p { color: var(--muted); }

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0;
  color: var(--muted);
  font-size: 0.85rem;
  text-align: center;
}

/* Responsive nav */
@media (max-width: 700px) {
  .nav-toggle { display: flex; }

  .nav-links {
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }

  .nav-links.open { max-height: 320px; }

  .nav-links li { border-top: 1px solid var(--border); }

  .nav-links a {
    display: block;
    padding: 0.9rem 1.25rem;
  }

  .writing-item { flex-wrap: wrap; }

  .writing-status { margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
