/* ── Variables ─────────────────────────────────────────────── */
:root {
  --card-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  --card-shadow-hover: 0 8px 28px rgba(0, 0, 0, 0.45);
  --transition-speed: 0.18s;
  --nav-height: 52px;

  --font-display: 'Syne', system-ui, sans-serif;

  --pico-primary: #cd5a23;
  --pico-primary-hover: #a5481c;
  --pico-primary-focus: #a8542b;
  --pico-primary-inverse: #fff;
  --pico-font-family: 'DM Sans', system-ui, sans-serif;
}

/* ── Typography ─────────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
}

/* ── Smooth scrolling ───────────────────────────────────────── */
html {
  scroll-behavior: smooth;
}

/* ── Layout: constrain to narrow column ────────────────────── */
.container {
  max-width: 1000px;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

/* ── Site header / nav ─────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--pico-background-color);
  border-bottom: 1px solid var(--pico-muted-border-color);
  padding-top: 0.1rem;
  padding-bottom: 0.1rem;
}

.site-header nav {
  margin: 0 auto;
  padding-top: 0;
  padding-bottom: 0;
}

.title-primary {
  color: var(--pico-primary);
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 500;
}

.title-secondary {
  color: var(--pico-primary-inverse);
  font-size: 0.85em;
  opacity: 0.6;
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 400;
}

.nav-brand {
  text-decoration: none;
}

.nav-links {
  gap: 1rem !important;
  flex-shrink: 0;
  white-space: nowrap;
}

.nav-links li {
  padding: 0 !important;
}

/* Active section highlight */
.nav-links a.nav-active,
.nav-hamburger a.nav-active {
  color: var(--pico-primary);
}

.nav-sep {
  color: var(--pico-muted-color);
  font-weight: normal;
}

/* ── Responsive nav ────────────────────────────────────────── */
.nav-hamburger { display: none; }

@media (max-width: 640px) {
  .nav-links     { display: none; }
  .nav-hamburger { display: flex; }
}

/* ── Site footer ───────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--pico-muted-border-color);
  padding-top: 0.1rem;
  padding-bottom: 0.1rem;
  margin-top: 1rem;
  color: var(--pico-muted-color);
}

/* ── Section scroll offset (accounts for sticky nav) ───────── */
section[id] {
  scroll-margin-top: var(--nav-height);
}

/* ── Section padding ────────────────────────────────────────── */
.section-pad {
  padding-top: 4rem;
  padding-bottom: 5rem;
}

/* ── Scroll reveal ──────────────────────────────────────────── */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

[data-reveal].revealed {
  opacity: 1;
  transform: none;
}

/* ── Hero section (#home) ───────────────────────────────────── */
.section-hero {
  position: relative;
  height: calc(100svh - var(--nav-height));
  display: flex;
  align-items: center;
  overflow: hidden;
}

/* Subtle warm glow behind hero content */
.section-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 15% 60%, rgba(205, 90, 35, 0.07) 0%, transparent 55%);
  pointer-events: none;
}

.hero-content {
  position: relative;
}

.hero-greeting {
  font-size: 1rem;
  color: var(--pico-muted-color);
  letter-spacing: 0.02em;
  margin-bottom: 0.4rem;
  font-family: var(--pico-font-family);
  font-weight: 300;
}

.hero-name-display {
  font-family: var(--font-display);
  font-weight: 800;
  margin-top: 0;
  font-size: clamp(3rem, 8vw, 5.5rem);
  line-height: 1;
  letter-spacing: -0.01em;
  white-space: nowrap;
  margin-bottom: 1.25rem;
  color: var(--pico-primary);
}

.hero-tagline {
  font-size: 1.1rem;
  color: var(--pico-muted-color);
  margin-bottom: 2rem;
  font-weight: 300;
  max-width: 520px;
}

.intro-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.icon-btn {
  padding: 0;
  border: none;
  background: none;
  font-size: 1.6rem;
  line-height: 1;
  color: var(--pico-muted-color);
  transition: color var(--transition-speed) ease;
}

.icon-btn:hover {
  color: var(--pico-primary);
}

.hero-scroll-cue {
  position: absolute;
  bottom: 8vh;
  left: 50%;
  transform: translateX(-50%);
  color: var(--pico-muted-color);
  font-size: clamp(2rem, 5vh, 3.75rem);
  animation: hero-bounce 2s ease-in-out infinite;
  transition: opacity 0.4s ease;
  opacity: 0.4;
}

@keyframes hero-bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(6px); }
}

@media (max-width: 520px) {
  .hero-name-display {
    font-size: clamp(2.25rem, 12vw, 3rem);
  }

}

/* ── About section (#about) ─────────────────────────────────── */
.about-content {
  display: flex;
  align-items: flex-start;
  gap: 3rem;
}

.about-text {
  flex: 1;
  min-width: 0;
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--pico-muted-color);
}

.profile-pic {
  width: 200px;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
  border: 2px solid rgba(205, 90, 35, 0.5);
  box-shadow: 6px 6px 0 var(--pico-primary);
}

@media (max-width: 560px) {
  .about-content {
    display: block;
  }

  .profile-pic {
    float: left;
    width: 120px;
    height: 120px;
    margin-right: 1.25rem;
    margin-bottom: 0.5rem;
  }
}

/* ── Section intro line (replaces header for labelless sections) */
.section-intro {
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
}

.things-more {
  margin-top: 1.5rem;
  text-align: right;
}

/* ── Section headers ────────────────────────────────────────── */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.section-header h2 {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.section-header h2::before {
  content: '';
  display: block;
  width: 4px;
  height: 0.85em;
  background: var(--pico-primary);
  border-radius: 2px;
  flex-shrink: 0;
}

/* ── Card grid ─────────────────────────────────────────────── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}

@media (max-width: 600px) {
  .card-grid {
    grid-template-columns: 1fr;
  }
}

.card {
  text-decoration: none;
  color: inherit;
  display: block;
}

.card article {
  height: 100%;
  box-shadow: var(--card-shadow);
  border-top: 2px solid transparent;
  transition: box-shadow var(--transition-speed) ease,
              transform var(--transition-speed) ease,
              border-color var(--transition-speed) ease;
  margin: 0;
}

.card:hover article {
  box-shadow: var(--card-shadow-hover);
  transform: translateY(-5px);
  border-top-color: var(--pico-primary);
}

.card-thumbnail {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  margin-bottom: 0.75rem;
  border-radius: 4px;
}

.card article h3 {
  margin-bottom: 0.4rem;
  font-family: var(--font-display);
  font-size: 1rem;
}

.card article p {
  color: var(--pico-muted-color);
  font-size: 0.9rem;
  margin: 0;
}

/* ── Post / article ────────────────────────────────────────── */
.post {
  max-width: 100%;
}

.post-meta {
  color: var(--pico-muted-color);
}

/* ── Tags ──────────────────────────────────────────────────── */
.tag {
  display: inline-block;
  font-size: 0.75rem;
  padding: 0.15rem 0.5rem;
  border-radius: 99px;
  background: var(--pico-secondary-background);
  color: var(--pico-secondary);
  margin-right: 0.25rem;
}

/* ── Skills ─────────────────────────────────────────────────── */

/* Highlighted categories (full-width, stacked above the grid) */
.skills-highlighted {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 2rem;
}

/* Regular categories grid */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

@media (max-width: 600px) {
  .skills-grid {
    grid-template-columns: 1fr;
  }
}

/* Staggered reveal per category */
[data-reveal] .skills-category {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

[data-reveal].revealed .skills-category {
  opacity: 1;
  transform: none;
}

.skills-category-name {
  font-family: var(--pico-font-family);
  font-size: 0.72rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--pico-primary);
  margin: 0 0 0.6rem 0;
}

.skills-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.skill-pill {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.75rem;
  padding: 0.25rem 0.65rem;
  border-radius: 99px;
  border: 1px solid var(--pico-muted-border-color);
  background: rgba(255, 255, 255, 0.03);
  color: var(--pico-color);
}

/* Highlighted category pills — slightly warmer */
.skills-category--highlight .skill-pill {
  background: rgba(205, 90, 35, 0.08);
  border-color: rgba(205, 90, 35, 0.3);
}

/* ── Links list ────────────────────────────────────────────── */
.links-list {
  list-style: none;
  padding: 0;
}

.links-list li {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--pico-muted-border-color);
}

.links-list li:last-child {
  border-bottom: none;
}

.links-list-item {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  transition: color var(--transition-speed) ease;
}

.links-list-item:hover {
  color: var(--pico-primary);
}

.links-list-item i {
  font-size: 1.1rem;
  width: 1.25rem;
  text-align: center;
}
