/*
Theme Name: Andrew Archive
Theme URI: https://example.com/andrew-archive
Author: Andrew Schopp
Author URI: https://franchisejobs.ca
Description: Minimal, fast theme for a writing archive and portfolio. Uses UIkit for layout, tuned for content libraries and client-facing pitches.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GPL-2.0-or-later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: andrew-archive
*/

/* =========================
   Base + Tokens
   ========================= */
:root {
  --brand-primary: #0ea5e9;
  --brand-dark: #020617;
  --brand-dark-soft: #0f172a;
  --brand-accent: #a855f7;
  --brand-warm: #f97316;
  --brand-bg: #f5f7fa;
  --brand-border-soft: rgba(148, 163, 184, 0.5);
  --text-main: #111827;
  --text-soft: #4b5563;
  --card-radius: 16px;
}

html {
  box-sizing: border-box;
  scroll-behavior: smooth;
}

*,
*::before,
*::after {
  box-sizing: inherit;
}

body {
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji", sans-serif;
  background: var(--brand-bg);
  color: var(--text-main);
  line-height: 1.65;
  margin: 0;
}

/* Links */
a {
  color: var(--brand-primary);
  text-decoration: none;
}
a:hover,
a:focus {
  text-decoration: underline;
}

/* Generic helpers */
.uk-section {
  position: relative;
}
.uk-text-primary {
  color: var(--brand-primary) !important;
}

/* =========================
   Header (simple, compact)
   ========================= */

.site-header {
  background: #0f172a;
  color: #e5e7eb;
  padding: 6px 0;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.45);
}

.header-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 4px 16px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}

/* Title + tagline */
.header-title {
  flex: 1 1 auto;
}

.header-h1 {
  margin: 0;
  font-size: 22px;
  line-height: 1.1;
  font-weight: 700;
  color: #f9fafb;
}

.header-h2 {
  margin: 2px 0 0;
  font-size: 13px;
  line-height: 1.3;
  font-weight: 400;
  color: rgba(209, 213, 219, 0.95);
}

/* Nav */
.site-nav {
  display: flex;
  flex: 0 0 auto;
  gap: 16px;
}

.site-nav a {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #e5e7eb;
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
}

.site-nav a:hover,
.site-nav a:focus {
  border-bottom-color: #0ea5e9;
}

/* Stack nicely on small screens */
@media (max-width: 768px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .site-nav {
    gap: 12px;
  }

  .header-h1 {
    font-size: 20px;
  }

  .header-h2 {
    font-size: 12px;
  }
}

/* Gradient bar under header */
.header-gradient-bar {
  height: 3px;
  max-width: 960px;
  margin: 2px auto 0;
  border-radius: 999px;
  background: linear-gradient(90deg, #0ea5e9, #a855f7, #f97316, #0ea5e9);
  background-size: 200% 200%;
  animation: headerGradient 5s ease-in-out infinite;
}

@keyframes headerGradient {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@media (max-width: 768px) {
  .header-gradient-bar {
    margin-top: 2px;
  }
}

/* =========================
   Hero
   ========================= */
.hero--brand {
  background: radial-gradient(
      circle at top left,
      rgba(14, 165, 233, 0.18),
      transparent 60%
    ),
    radial-gradient(
      circle at top right,
      rgba(168, 85, 247, 0.12),
      transparent 55%
    ),
    #f9fafb;
  border-bottom: 1px solid rgba(148, 163, 184, 0.22);
}

.hero--brand img.uk-border-circle {
  width: 120px;
  height: 120px;
  object-fit: cover;
}

.hero--brand h1 {
  margin-top: 10px;
}

/* =========================
   Featured Writing Cards
   ========================= */
.card-media {
  aspect-ratio: 16 / 9;
  width: 100%;
  overflow: hidden;
  background: #e5e7eb;
}
.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

#writing .uk-card {
  border-radius: var(--card-radius);
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.5);
  box-shadow: 0 16px 35px rgba(15, 23, 42, 0.08);
}

#writing .uk-card-body {
  padding-bottom: 12px;
}

#writing .uk-card-footer {
  padding-top: 8px;
  padding-bottom: 12px;
  border-top: 1px solid rgba(226, 232, 240, 0.9);
}

#writing .uk-card-title {
  margin-bottom: 6px;
}

#writing .uk-card-title a {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  line-height: 1.3;
  color: inherit;
}

#writing .uk-text-meta {
  color: var(--text-soft);
}

/* View-all button */
#writing .uk-button-text {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 11px;
}

/* =========================
   Capabilities / Resume / Experiments Sections
   ========================= */
#capabilities,
#resume,
#experiments {
  background: #ffffff;
}

#capabilities .uk-card,
#resume .uk-card,
#experiments .uk-card {
  border-radius: var(--card-radius);
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

#capabilities .uk-card-title,
#resume .uk-card-title,
#experiments .uk-card-title {
  font-weight: 600;
}

/* Skill label pills */
.uk-label {
  border-radius: 9999px;
  font-size: 11px;
  padding: 4px 10px;
}

/* =========================
   Writing Archive (generic)
   ========================= */
.archive .uk-article,
.blog .uk-article {
  background: #ffffff;
  border-radius: var(--card-radius);
  padding: 24px;
  margin-bottom: 16px;
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.04);
}

/* =========================
   Footer
   ========================= */
footer#contact {
  background: var(--brand-dark-soft);
  color: rgba(209, 213, 219, 0.9);
  border-top: 1px solid rgba(15, 23, 42, 0.8);
}

/* Compact footer spacing */
footer#contact.uk-section {
  padding-top: 12px;
  padding-bottom: 12px;
}

footer#contact p {
  margin: 4px 0;
  font-size: 13px;
}

footer#contact a {
  color: #e5e7eb;
}
footer#contact a:hover {
  color: #ffffff;
}

/* Hide default theme footer info block */
.site-info {
  display: none;
}

/* =========================
   Small Utilities
   ========================= */
.uk-text-lead {
  max-width: 780px;
  margin-left: auto;
  margin-right: auto;
}

.uk-heading-line span {
  font-weight: 600;
}

/* Hide experiments section if you keep the display:none in template */
/* #experiments { display: none !important; } */
