/* Homepage (/): dark, uniform cards that mirror the GitHub profile README.
   Section order and wording follow the profile; loaded after style.css on the homepage only. */
.theme-home {
  --bg: #0b0b0d;
  --panel: #131316;
  --panel-2: #17171b;
  --ink: #ebe7de;
  --dim: #a8a397;
  --line: #25252b;
  --accent: #d4b04a;
  --accent-soft: #ecd27c;
  --measure: 58rem;
  background:
    radial-gradient(ellipse 80% 40% at 50% 0%, rgba(212, 176, 74, 0.07), transparent 70%),
    var(--bg);
  color: var(--ink);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
}
.theme-home .site-header { background: rgba(11, 11, 13, 0.9); position: sticky; top: 0; z-index: 5; backdrop-filter: blur(6px); }
.theme-home .site-nav ul { font-size: 0.9rem; gap: 0.2rem 1.1rem; }
.theme-home main { padding-top: 3.25rem; }

/* Hero: the profile's header, centred */
.theme-home .hero { text-align: center; max-width: 46rem; margin: 0 auto; }
.theme-home .hero .logo { width: 84px; height: 84px; border-radius: 50%; border: 2px solid var(--accent); box-shadow: 0 0 0 6px rgba(212, 176, 74, 0.08); }
.theme-home .hero h1 {
  font-family: Georgia, "Times New Roman", serif; font-size: 2.6rem; margin: 0.9rem 0 0.35rem; letter-spacing: 0.01em;
}
.theme-home .who { color: var(--dim); margin-bottom: 0.9rem; }
.theme-home .who b { color: var(--ink); }
.theme-home .chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; margin-bottom: 1.6rem; }
.theme-home .chip {
  display: inline-block; padding: 0.3rem 0.75rem; border-radius: 999px;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  background: #232327; color: #e9e6df; border: 1px solid #34343a;
}
.theme-home .chip.gold { background: #c9a227; color: #141414; border-color: #c9a227; }
.theme-home .chip.gold:hover { background: var(--accent-soft); text-decoration: none; }
.theme-home .chip.blue { background: #1d4f7a; border-color: #2c6aa0; }
.theme-home .define {
  text-align: left; margin: 0 0 1.25rem; padding: 0.9rem 1.15rem;
  background: var(--panel); border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: 0 10px 10px 0;
}
.theme-home .intro-text { text-align: left; }

/* Section headings: the profile's caps, in small gold type over a hairline */
.theme-home .sec { margin-top: 3.5rem; }
.theme-home h2 {
  font-size: 0.95rem; font-weight: 700; letter-spacing: 0.16em; color: var(--accent);
  margin: 0 0 0.35rem; padding-bottom: 0.55rem; border-bottom: 1px solid var(--line);
}
.theme-home .sub { color: var(--dim); font-size: 0.85rem; margin: 0.6rem 0 1.4rem; }
.theme-home .sec > p { color: #d8d3c8; }

/* Cards: one look for every project */
.theme-home .card {
  background: var(--panel); border: 1px solid var(--line); border-radius: 14px; overflow: hidden;
  margin: 0 0 1.4rem; transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.theme-home .card:hover { border-color: #3a3a42; transform: translateY(-2px); box-shadow: 0 14px 40px rgba(0, 0, 0, 0.45); }
.theme-home .card-img { display: block; line-height: 0; border-bottom: 1px solid var(--line); }
.theme-home .card-img img { display: block; width: 100%; height: auto; }
.theme-home .card-body { padding: 1.1rem 1.35rem 1.15rem; }
.theme-home .card h3 { font-size: 1.25rem; font-weight: 700; margin: 0 0 0.45rem; }
.theme-home .card h3 a { color: var(--ink); }
.theme-home .card h3 a:hover { color: var(--accent-soft); text-decoration: none; }
.theme-home .card p { margin: 0 0 0.7rem; color: #d8d3c8; }
.theme-home .card .runs {
  font-size: 0.8rem; color: var(--dim); margin: 0.9rem 0 0.55rem; padding-top: 0.7rem; border-top: 1px dashed #2c2c33;
}
.theme-home .card .runs b { color: #cfc9bb; }
.theme-home .card .links { display: flex; flex-wrap: wrap; gap: 0.3rem 1.25rem; font-size: 0.9rem; margin: 0; }

/* Brand project: the map, then the three short cards */
.theme-home .map { margin: 1.5rem auto 1.75rem; max-width: 45rem; }
.theme-home .map img { border: 0; border-radius: 12px; width: 100%; height: auto; }
.theme-home .card.short .card-body { padding-top: 0.95rem; }
.theme-home .card.short h3 { font-size: 1.1rem; }

.theme-home .site-footer { background: rgba(11, 11, 13, 0.9); }

@media (max-width: 640px) {
  .theme-home .hero h1 { font-size: 2rem; }
  .theme-home .site-header { position: static; }
  .theme-home .card-body { padding: 0.95rem 1rem; }
}

/* Credits page (/credits/) */
.page-credits h1 { font-family: Georgia, "Times New Roman", serif; font-size: 2.1rem; }
.page-credits .credit-img { display: block; width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--line); margin: 1rem 0 1.25rem; }
.page-credits .credit-text { font-size: 0.92rem; color: #d8d3c8; }
.page-credits .credit-text h3 { font-size: 1rem; font-weight: 700; margin-top: 1.5rem; }
.page-credits .credit-text table { width: 100%; border-collapse: collapse; font-size: 0.8rem; display: block; overflow-x: auto; }
.page-credits .credit-text th, .page-credits .credit-text td { border-bottom: 1px solid var(--line); padding: 0.35rem 0.5rem; text-align: left; vertical-align: top; }
.page-credits .credit-text th { color: var(--accent); font-weight: 700; }
.page-credits .credit-text td a { word-break: break-word; }
