/* ============================================================
   shared stylesheet
   Edit the variables below to change colors/fonts sitewide.
   Every page in main-site/ should link to this file.

   PALETTE sickly-neon / radioactive dark mode
   ============================================================ */

:root {
  --ink: #f2f7f0;          /* near-white, slight green cast / body text, all small accents */
  --paper: #0a130d;        /* near-black, slight green cast / page bg */
  --moss: #5afd6c;         /* primary neon green / Support + Hobbies sections, links */
  --moss-light: #8cffa0;   /* lighter green / hover state for plain text links */
  --moss-deep: #1f3328;    /* dark forest green / header/footer, featured tile hover */
  --moss-muted: #4f8f63;   /* mid-tone sage green / quiet-tile outlines/icons */
  --wine: #881742;         /* dark pink / Social section tiles only */
  --wine-hi: #a8295c;      /* lighter dark pink / social tile hover */
  --panel: #11201a;        /* card / quiet-tile bg, lighter than page */
  --line: #25362b;         /* hairline borders */
  --muted: #a9b6a7;        /* secondary text (lede, captions, footer) */

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  --max-width: 880px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
}

a { color: var(--moss); }
a:hover { color: var(--moss-light); }

img { max-width: 100%; display: block; }

/* ---- Header ---- */

.site-header {
  background: var(--moss-deep);
  color: var(--ink);
  padding: 1.25rem 1.5rem;
}

.site-header .wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.site-header a { color: var(--ink); text-decoration: none; }
.site-header a:hover { color: var(--moss-light); }

.site-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.site-nav { display: flex; gap: 1.5rem; font-size: 0.95rem; }

/* ---- Main content ---- */

main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3rem 1.5rem 5rem;
}

h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.2;
  margin-top: 2.2em;
}

h1 { font-size: 2.6rem; margin-top: 0; }
h2 { font-size: 1.6rem; }

.eyebrow {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  color: var(--ink);
  margin-bottom: 0.5rem;
}

.lede {
  font-size: 1.2rem;
  color: var(--muted);
  max-width: 60ch;
}

/* ---- Cards / link-out blocks ---- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-top: 2rem;
}

.card {
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 1.5rem;
  text-decoration: none;
  color: var(--ink);
  transition: border-color 0.15s ease, transform 0.15s ease;
}

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

.card h3 {
  margin: 0 0 0.4em;
  font-size: 1.1rem;
  color: var(--moss);
}

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

/* ---- Footer ---- */

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

/* ---- Utility ---- */

.button {
  display: inline-block;
  background: var(--moss);
  color: var(--paper);
  padding: 0.7em 1.4em;
  text-decoration: none;
  font-size: 0.95rem;
  border: 1px solid var(--moss);
}

.button:hover { background: var(--moss-deep); color: var(--ink); border-color: var(--moss-deep); }

@media (max-width: 600px) {
  h1 { font-size: 2rem; }
}

/* ---- Profile intro (homepage) ---- */

.profile-intro {
  text-align: center;
  padding-bottom: 0.5rem;
}

.avatar-circle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--moss-deep);
  color: var(--moss);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  margin: 0 auto 0.75rem;
}

.avatar-img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 0.75rem;
  display: block;
}

.profile-intro .handle {
  font-weight: 600;
  font-size: 1.15rem;
  margin: 0 0 0.25rem;
  letter-spacing: 0.02em;
}

.profile-intro .tagline {
  font-size: 0.92rem;
  color: var(--muted);
  margin: 0;
}

.construction-banner {
  margin-top: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--ink);
}

/* ---- Link blocks (Support / Social / Hobbies & projects) ---- */

.link-block { margin-top: 2.75rem; }

.block-label {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 0.75rem;
}

.tile-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
}

.tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  text-align: center;
  text-decoration: none;
  border-radius: 6px;
  padding: 0.9rem 0.5rem;
  transition: transform 0.12s ease, background-color 0.12s ease;
}

.tile:hover { transform: translateY(-2px); }
.tile i { font-size: 1.15rem; }
.tile-label { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.02em; }

/* Standard tier / Social section only. Dark pink, distinct from the green Support/Hobbies clusters. */
.tile-standard { background: var(--wine); color: var(--ink); }
.tile-standard:hover { background: var(--wine-hi); }

/* Featured tier / needs context, gets more room and a subtitle. Support + Hobbies sections. */
.tile-featured {
  background: var(--moss);
  color: var(--paper);
  padding: 1.1rem 0.75rem;
}
.tile-featured:hover { background: var(--moss-deep); color: var(--ink); }
.tile-featured i { font-size: 1.35rem; color: var(--paper); }
.tile-featured:hover i { color: var(--moss); }
.tile-featured .tile-label { font-size: 0.85rem; color: var(--paper); }
.tile-featured:hover .tile-label { color: var(--moss); }
.tile-featured .tile-sub {
  font-size: 0.74rem;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: var(--moss-deep);
  line-height: 1.3;
}
.tile-featured:hover .tile-sub { color: var(--ink); }

/* Quiet tier / still a real button, just smaller and outlined. Support + Hobbies sections. */
.tile-quiet {
  background: var(--panel);
  border: 1px solid var(--moss-muted);
  color: var(--ink);
  padding: 0.7rem 0.4rem;
}
.tile-quiet:hover { background: #1d2a1f; }
.tile-quiet i { color: var(--moss-muted); font-size: 1rem; }
.tile-quiet .tile-label { font-size: 0.72rem; }

/* Support block layout: one big featured tile + two stacked quiet tiles */
.support-row { display: flex; gap: 0.6rem; align-items: stretch; }
.support-row .tile-featured { flex: 1.6; }
.quiet-stack { flex: 1; display: flex; flex-direction: column; gap: 0.5rem; }
.quiet-stack .tile-quiet { flex: 1; }

@media (max-width: 480px) {
  .tile-grid-3 { grid-template-columns: repeat(2, 1fr); }
}