/* SolarBest — solarpunk gaming personal site */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&family=Syne:wght@600;700;800&display=swap');

:root {
  --forest: #1a4d3e;
  --forest-dark: #0f2e26;
  --solar: #f4b942;
  --solar-light: #ffd166;
  --aqua: #4ecdc4;
  --aqua-dark: #2a9d8f;
  --cream: #faf6f0;
  --cream-dark: #ebe4d8;
  --coral: #ff6b6b;
  --ink: #1a1f2e;
  --ink-soft: #5a6278;
  --white: #ffffff;
  --pixel: #6bcb77;
  --shadow: 0 8px 32px rgba(26, 77, 62, 0.12);
  --shadow-lg: 0 24px 64px rgba(26, 77, 62, 0.18);
  --radius: 18px;
  --radius-sm: 12px;
  --font-display: 'Syne', sans-serif;
  --font-body: 'Outfit', system-ui, sans-serif;
  --nav-h: 76px;
  --max-w: 1140px;
  --ease: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  min-height: 100vh;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 10% 0%, rgba(244, 185, 66, 0.12), transparent),
    radial-gradient(ellipse 50% 40% at 95% 90%, rgba(78, 205, 196, 0.1), transparent);
  pointer-events: none;
  z-index: -1;
}

img { max-width: 100%; height: auto; display: block; }

a {
  color: var(--aqua-dark);
  text-decoration: none;
  transition: color var(--ease);
}

a:hover { color: var(--solar); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  color: var(--forest-dark);
}

h1 { font-size: clamp(2.2rem, 5.5vw, 3.5rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); }
h3 { font-size: clamp(1.15rem, 2.5vw, 1.45rem); }

p { color: var(--ink-soft); }

.container {
  width: min(var(--max-w), 92vw);
  margin-inline: auto;
}

/* ── Nav ── */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-h);
  transition: background var(--ease), box-shadow var(--ease);
}

.site-header.scrolled {
  background: rgba(250, 246, 240, 0.92);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(26, 77, 62, 0.08);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--forest-dark);
  letter-spacing: -0.02em;
}

.logo:hover { color: var(--aqua-dark); }

.logo-icon { width: 38px; height: 38px; border-radius: 10px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}

.nav-links a {
  display: block;
  padding: 8px 15px;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink-soft);
  transition: all var(--ease);
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--forest-dark);
  background: rgba(78, 205, 196, 0.18);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--forest-dark);
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: currentColor;
  margin: 5px 0;
  border-radius: 2px;
}

/* ── Hero ── */
.hero {
  position: relative;
  min-height: 94vh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-h);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    125deg,
    rgba(15, 46, 38, 0.92) 0%,
    rgba(26, 77, 62, 0.75) 40%,
    rgba(26, 31, 46, 0.65) 100%
  );
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3rem;
  align-items: center;
  padding: 4rem 0 6rem;
}

.hero-content { color: var(--white); }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(244, 185, 66, 0.2);
  border: 1px solid rgba(244, 185, 66, 0.4);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--solar-light);
  margin-bottom: 1.25rem;
}

.hero-content h1 {
  color: var(--white);
  margin-bottom: 1rem;
}

.hero-content h1 span {
  background: linear-gradient(90deg, var(--solar), var(--aqua));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  font-size: 1.12rem;
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 2rem;
  max-width: 520px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--ease);
  font-family: var(--font-body);
}

.btn-solar {
  background: var(--solar);
  color: var(--forest-dark);
  border-color: var(--solar);
}

.btn-solar:hover {
  background: var(--solar-light);
  border-color: var(--solar-light);
  color: var(--forest-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(244, 185, 66, 0.35);
}

.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.4);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  border-color: var(--white);
}

.btn-outline {
  background: transparent;
  color: var(--forest);
  border-color: var(--aqua);
}

.btn-outline:hover {
  background: var(--forest);
  color: var(--white);
  border-color: var(--forest);
}

.hero-cards {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.hero-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  backdrop-filter: blur(8px);
  color: var(--white);
  transition: all var(--ease);
}

.hero-card:hover {
  background: rgba(255, 255, 255, 0.14);
  transform: translateX(6px);
}

.hero-card-icon {
  font-size: 1.8rem;
  line-height: 1;
}

.hero-card strong {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 2px;
}

.hero-card span {
  font-size: 0.82rem;
  opacity: 0.75;
}

.hero-wave {
  position: absolute;
  bottom: -1px;
  left: 0; right: 0;
  line-height: 0;
}

.hero-wave svg { width: 100%; height: 72px; }

/* ── Sections ── */
section { padding: 5.5rem 0; }

.section-header {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 3rem;
}

.section-header p { margin-top: 0.75rem; font-size: 1.05rem; }

.section-label {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--aqua-dark);
  margin-bottom: 0.5rem;
}

/* ── Game cards ── */
.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.game-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--ease), box-shadow var(--ease);
  border: 1px solid rgba(26, 77, 62, 0.06);
}

.game-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.game-card-img {
  aspect-ratio: 16/9;
  overflow: hidden;
  position: relative;
}

.game-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.game-card:hover .game-card-img img { transform: scale(1.07); }

.game-rating {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 4px 12px;
  background: rgba(15, 46, 38, 0.85);
  color: var(--solar);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
}

.game-card-body { padding: 1.5rem; }

.game-card-body h3 { margin-bottom: 0.4rem; }

.game-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0.75rem 0 1rem;
}

.tag {
  display: inline-block;
  padding: 4px 11px;
  background: var(--cream);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--forest);
}

.game-card-body p { font-size: 0.92rem; margin-bottom: 1rem; }

.card-link {
  font-weight: 600;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--aqua-dark);
}

.card-link::after {
  content: '→';
  transition: transform var(--ease);
}

.card-link:hover::after { transform: translateX(4px); }

/* ── Split ── */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}

.split-reverse { direction: rtl; }
.split-reverse > * { direction: ltr; }

.split-img {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.split-img::before {
  content: '';
  position: absolute;
  inset: 0;
  border: 3px solid var(--solar);
  border-radius: var(--radius);
  opacity: 0.3;
  pointer-events: none;
  z-index: 1;
}

.split-img img { width: 100%; }

.stat-row {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 2px solid var(--cream-dark);
}

.stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--aqua-dark);
  line-height: 1;
}

.stat span {
  font-size: 0.85rem;
  color: var(--ink-soft);
}

/* ── Platform bar ── */
.platform-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  padding: 2rem;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.platform-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0.75rem 1.25rem;
  background: var(--cream);
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--forest);
}

/* ── Journal ── */
.journal-list { display: flex; flex-direction: column; gap: 1.25rem; }

.journal-entry {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 1.5rem;
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--solar);
  transition: box-shadow var(--ease);
}

.journal-entry:hover { box-shadow: var(--shadow-lg); }

.journal-date {
  text-align: center;
  padding: 0.75rem;
  background: linear-gradient(135deg, var(--forest), var(--aqua-dark));
  border-radius: var(--radius-sm);
  color: var(--white);
  align-self: start;
}

.journal-date .day {
  display: block;
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 800;
  line-height: 1;
}

.journal-date .month {
  font-size: 0.75rem;
  font-weight: 600;
  opacity: 0.85;
}

.journal-body h3 { margin-bottom: 0.4rem; font-size: 1.1rem; }
.journal-body p { font-size: 0.93rem; }

/* ── Profile ── */
.profile-card {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 2.5rem;
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-lg);
  margin-bottom: 3rem;
}

.profile-photo {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 3/4;
}

.profile-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-subtitle {
  color: var(--aqua-dark);
  font-weight: 600;
  margin-bottom: 1rem;
}

.profile-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.fact {
  padding: 0.7rem 1rem;
  background: var(--cream);
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
}

.fact strong {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--forest);
  margin-bottom: 0.1rem;
}

/* ── Timeline ── */
.timeline {
  position: relative;
  padding-left: 2rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 6px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(to bottom, var(--solar), var(--aqua));
}

.timeline-item {
  position: relative;
  padding-bottom: 2rem;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -2rem;
  top: 6px;
  width: 14px;
  height: 14px;
  background: var(--white);
  border: 3px solid var(--solar);
  border-radius: 50%;
}

.timeline-date {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--aqua-dark);
  margin-bottom: 0.2rem;
}

/* ── Links ── */
.link-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

.link-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.2rem;
  background: var(--white);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  transition: all var(--ease);
}

.link-card:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-lg);
}

.link-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--cream), var(--cream-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.link-card h4 { font-size: 1rem; margin-bottom: 0.1rem; color: var(--forest-dark); }
.link-card p { font-size: 0.84rem; }

.link-section { margin-bottom: 3rem; }

.link-section h2 {
  margin-bottom: 1.25rem;
  padding-bottom: 0.5rem;
  border-bottom: 3px solid var(--solar);
  display: inline-block;
}

/* ── Quote ── */
.quote-block {
  background: linear-gradient(135deg, var(--forest-dark), var(--forest));
  color: var(--white);
  padding: 3rem;
  border-radius: var(--radius);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.quote-block::before {
  content: '☀';
  position: absolute;
  top: -20px;
  right: 30px;
  font-size: 8rem;
  opacity: 0.06;
}

.quote-block blockquote {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.5vw, 1.55rem);
  line-height: 1.55;
  margin-bottom: 1rem;
  position: relative;
}

.quote-block cite {
  font-style: normal;
  font-size: 0.9rem;
  opacity: 0.7;
}

/* ── Page hero ── */
.page-hero {
  padding: calc(var(--nav-h) + 4rem) 0 3rem;
  text-align: center;
  background: linear-gradient(180deg, rgba(78, 205, 196, 0.1), transparent);
}

.page-hero p {
  font-size: 1.1rem;
  max-width: 560px;
  margin: 0 auto;
}

/* ── Tier list ── */
.tier-list { display: flex; flex-direction: column; gap: 1rem; }

.tier-row {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 1rem;
  align-items: center;
}

.tier-label {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  text-align: center;
  padding: 0.5rem;
  border-radius: var(--radius-sm);
  color: var(--white);
}

.tier-s { background: var(--solar); color: var(--forest-dark); }
.tier-a { background: var(--aqua-dark); }
.tier-b { background: var(--forest); }

.tier-games {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tier-games span {
  padding: 6px 14px;
  background: var(--white);
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  box-shadow: var(--shadow);
}

/* ── CTA ── */
.cta-band {
  background: linear-gradient(135deg, var(--cream-dark), var(--cream));
  padding: 4rem 0;
  text-align: center;
}

.cta-band h2 { margin-bottom: 0.75rem; }
.cta-band p { margin-bottom: 1.5rem; max-width: 480px; margin-inline: auto; }

/* ── Footer ── */
.site-footer {
  background: var(--forest-dark);
  color: rgba(255, 255, 255, 0.7);
  padding: 3rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-brand .logo { color: var(--white); margin-bottom: 0.75rem; }
.footer-brand p { font-size: 0.9rem; color: rgba(255, 255, 255, 0.5); }

.footer-col h4 {
  color: var(--solar);
  font-size: 0.82rem;
  font-family: var(--font-body);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.45rem; }
.footer-col a { color: rgba(255, 255, 255, 0.6); font-size: 0.9rem; }
.footer-col a:hover { color: var(--aqua); }

.footer-bottom {
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.4);
}

/* ── 404 ── */
.error-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
}

.error-code {
  font-family: var(--font-display);
  font-size: clamp(5rem, 15vw, 9rem);
  background: linear-gradient(135deg, var(--solar), var(--aqua));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.error-page h1 { margin: 1rem 0; }
.error-page p { margin-bottom: 2rem; max-width: 420px; margin-inline: auto; }

/* ── Utils ── */
.bg-white { background: var(--white); }
.bg-cream { background: var(--cream-dark); }
.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }

.embed-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  max-width: 900px;
  margin-inline: auto;
}

.embed-item {
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--ease), box-shadow var(--ease);
}

.embed-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.embed-item img { width: 100%; height: auto; }

/* ── Responsive ── */
@media (max-width: 900px) {
  .hero-grid,
  .split,
  .profile-card,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-cards { display: none; }
  .split-reverse { direction: ltr; }

  .journal-entry { grid-template-columns: 1fr; }

  .journal-date {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: fit-content;
  }
}

@media (max-width: 768px) {
  .nav-toggle { display: block; }

  .nav-links {
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    background: rgba(250, 246, 240, 0.98);
    backdrop-filter: blur(14px);
    flex-direction: column;
    padding: 1rem;
    gap: 4px;
    transform: translateY(-120%);
    opacity: 0;
    transition: all var(--ease);
    box-shadow: var(--shadow);
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
  }

  .nav-links a { width: 100%; text-align: center; padding: 12px; }
  .profile-facts { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}
