/* FlintCraft — flintcraft.tech
   Dark theme over a full-page cat photo. Edit colors in :root below. */

:root {
  --text: #f2eee7;        /* main text */
  --muted: #b4ada2;       /* secondary text */
  --border: rgba(255, 255, 255, 0.14);
  --card: rgba(26, 23, 29, 0.62);   /* translucent dark glass */
  --card-hover: rgba(36, 32, 40, 0.72);
  --input: rgba(255, 255, 255, 0.06);
  --accent: #f0843a;      /* flint spark — links & buttons */
  --accent-dark: #ff9d5c; /* hover (brighter on dark) */
  --accent-soft: rgba(240, 132, 58, 0.25);
  --radius: 12px;
  --maxw: 720px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: "Pliant", -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  /* Cat photo + diagonal tinted overlay for depth (no blend mode — multiply went black) */
  background:
    linear-gradient(165deg, rgba(34, 24, 48, 0.70) 0%, rgba(13, 10, 18, 0.88) 52%, rgba(6, 5, 10, 0.96) 100%),
    url("assets/cat-bg.jpg") center / cover fixed no-repeat;
  background-color: #0d0b11; /* fallback before image loads */
}

/* Contact page gets its own background photo */
.report-bg {
  background:
    linear-gradient(165deg, rgba(24, 22, 34, 0.72) 0%, rgba(10, 9, 14, 0.90) 52%, rgba(5, 5, 9, 0.96) 100%),
    url("assets/report-bg.jpg") center / cover fixed no-repeat;
  background-color: #0a0a0e;
}

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- Header ---- */
.site-header {
  padding: 48px 0 8px;
}
.brand {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;
  color: var(--text);
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.55);
}
.brand .spark { color: var(--accent); }
.tagline {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.98rem;
}

/* ---- Hero / intro ---- */
.hero {
  padding: 40px 0 16px;
}
.hero h1 {
  font-size: 2rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.5);
}
.hero p {
  color: var(--muted);
  font-size: 1.08rem;
  margin: 0;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.5);
}

/* ---- Section heading ---- */
.section-label {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--muted);
  margin: 48px 0 16px;
}

/* ---- Project cards ---- */
.projects {
  display: grid;
  gap: 16px;
  padding-bottom: 16px;
}
.card {
  display: block;
  background: var(--card);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 24px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease, transform 0.15s ease, background 0.15s ease;
}
.card:hover {
  border-color: var(--accent);
  background: var(--card-hover);
  transform: translateY(-2px);
}
.card h2 {
  margin: 0 0 6px;
  font-size: 1.18rem;
  letter-spacing: -0.01em;
}
.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}
.card .repo {
  display: inline-block;
  margin-top: 12px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--accent);
}
.card:hover .repo { color: var(--accent-dark); }

/* ---- Footer ---- */
.site-footer {
  margin-top: 64px;
  padding: 28px 0 48px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.85rem;
}
.site-footer p { margin: 0 0 4px; }
.site-footer a {
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.site-footer a:hover { color: var(--accent); }
.site-footer .credit { opacity: 0.85; }

/* ---- Forms (bug report page) ---- */
.form-page h1 {
  font-size: 1.8rem;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.5);
}
.form-page .lead { color: var(--muted); margin: 0 0 8px; }

form { margin-top: 28px; }
.field { margin-bottom: 20px; }
.field label {
  display: block;
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 6px;
}
.field .hint {
  font-weight: 400;
  color: var(--muted);
  font-size: 0.85rem;
}
input[type="email"],
select,
textarea {
  width: 100%;
  font: inherit;
  color: var(--text);
  background: var(--input);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 11px 13px;
}
input[type="email"]::placeholder,
textarea::placeholder { color: #8c867c; }
/* dropdown options render on a native (light) menu in most browsers */
select option { color: #1f1d1b; }
input[type="email"]:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
textarea { resize: vertical; min-height: 160px; }

button {
  font: inherit;
  font-weight: 600;
  color: #1a120b;
  background: var(--accent);
  border: none;
  border-radius: 10px;
  padding: 12px 22px;
  cursor: pointer;
  transition: background 0.15s ease;
}
button:hover { background: var(--accent-dark); }

.back-link {
  display: inline-block;
  margin-top: 8px;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
}
.back-link:hover { color: var(--accent); }

/* ---- Small screens ---- */
@media (max-width: 480px) {
  body,
  .report-bg {
    font-size: 16px;
    background-attachment: scroll; /* 'fixed' is unreliable on mobile */
  }
  .hero h1 { font-size: 1.6rem; }
  .site-header { padding-top: 32px; }
}
