/* =====================================================
   FM ARCHIVE — style.css
   Edit colors in the :root block below.
   Edit fonts in the body and h1/h2/nav rules.
===================================================== */

:root {
  --bg:           #0a0f0a;
  --bg-card:      #0e150e;
  --bg-hover:     #131a13;
  --border:       #1f2d1f;
  --border-light: #2a3d2a;
  --text:         #d4dbd4;
  --text-muted:   #6b8f6b;
  --text-dim:     #4a654a;
  --accent:       #39ff14;
  --accent-dim:   #1a7a00;
  --max-width:    850px;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ---- Base ---- */
html { scroll-behavior: smooth; }

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1rem;
  line-height: 1.7;
  min-height: 100vh;
}

a {
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid var(--border-light);
  transition: color 0.15s, border-color 0.15s;
}
a:hover { color: var(--accent); border-color: var(--accent); }

/* ---- Layout ---- */
.site-wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ---- Header ---- */
.site-header {
  border-bottom: 1px solid var(--border);
  padding: 2rem 0 1.5rem;
  margin-bottom: 3rem;
}

.site-title {
  font-family: "Courier New", Courier, monospace;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--accent);
  text-decoration: none;
  border-bottom: none;
}
.site-title:hover { color: var(--accent); border-bottom: none; }

.site-tagline {
  font-family: "Courier New", Courier, monospace;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
  letter-spacing: 0.05em;
}

/* ---- Navigation ---- */
nav {
  margin-top: 1.25rem;
}

nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0;
}

nav ul li::after {
  content: " /";
  color: var(--text-dim);
  font-family: "Courier New", Courier, monospace;
  font-size: 0.8rem;
}
nav ul li:last-child::after { content: ""; }

nav a {
  font-family: "Courier New", Courier, monospace;
  font-size: 0.85rem;
  color: var(--text-muted);
  border-bottom: none;
  padding: 0 0.35rem;
  text-transform: lowercase;
  letter-spacing: 0.04em;
}
nav a:hover { color: var(--accent); }
nav a.active { color: var(--text); }

/* ---- Page heading ---- */
.page-heading {
  margin-bottom: 2.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.page-heading h1 {
  font-family: "Courier New", Courier, monospace;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text);
  margin-bottom: 0.4rem;
}

.page-heading > p:not(.dir-path) {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.dir-path {
  font-family: "Courier New", Courier, monospace;
  font-size: 0.8rem;
  color: var(--accent-dim);
  letter-spacing: 0.06em;
  margin-bottom: 0.4rem;
}

/* ---- Section headings ---- */
h2 {
  font-family: "Courier New", Courier, monospace;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--border);
}

h3 {
  font-family: "Courier New", Courier, monospace;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.3rem;
}

/* ---- File cards ---- */
.file-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 3rem;
}

.file-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: border-color 0.15s, background 0.15s;
}
.file-item:hover { border-color: var(--border-light); background: var(--bg-hover); }

.file-tag {
  font-family: "Courier New", Courier, monospace;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--accent-dim);
  background: transparent;
  border: 1px solid var(--accent-dim);
  padding: 0.1rem 0.35rem;
  white-space: nowrap;
  flex-shrink: 0;
}

.file-body {
  flex: 1;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  min-width: 0;
}

.file-title {
  font-size: 0.9rem;
  color: var(--text);
  border-bottom: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}
.file-title:hover { color: var(--accent); }

.file-meta {
  font-family: "Courier New", Courier, monospace;
  font-size: 0.7rem;
  color: var(--text-dim);
  white-space: nowrap;
  flex-shrink: 0;
}

/* ---- Project cards (featured) ---- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1px;
  border: 1px solid var(--border);
  margin-bottom: 3rem;
}

.card {
  padding: 1.25rem 1.25rem 1.25rem;
  background: var(--bg-card);
  border: none;
  transition: background 0.15s;
}
.card:hover { background: var(--bg-hover); }

.card-label {
  font-family: "Courier New", Courier, monospace;
  font-size: 0.7rem;
  color: var(--accent-dim);
  border: 1px solid var(--accent-dim);
  display: inline-block;
  padding: 0.1rem 0.35rem;
  margin-bottom: 0.6rem;
}

.card-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}
.card-header .card-label { margin-bottom: 0; }
.card-header h3 { margin-bottom: 0; }

.card h3 { margin-bottom: 0.4rem; }

.card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.card-link {
  display: inline-block;
  margin-top: 0.7rem;
  font-family: "Courier New", Courier, monospace;
  font-size: 0.75rem;
  color: var(--text-dim);
  border-bottom: none;
}
.card-link:hover { color: var(--accent); }
.card-link::before { content: "→ "; }

/* ---- Prose sections ---- */
.prose {
  margin-bottom: 3rem;
}

.prose p {
  font-size: 0.95rem;
  color: var(--text);
  margin-bottom: 1rem;
}

.prose p:last-child { margin-bottom: 0; }

/* ---- Status label ---- */
.status {
  font-family: "Courier New", Courier, monospace;
  font-size: 0.7rem;
  padding: 0.1rem 0.4rem;
  border: 1px solid;
  display: inline-block;
  margin-left: 0.5rem;
  vertical-align: middle;
}
.status-wip  { color: var(--text-dim);  border-color: var(--text-dim); }
.status-done { color: var(--accent-dim); border-color: var(--accent-dim); }

/* ---- Contact form ---- */
.contact-form {
  margin-bottom: 3rem;
}

.form-row {
  margin-bottom: 1.25rem;
}

label {
  display: block;
  font-family: "Courier New", Courier, monospace;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
  letter-spacing: 0.06em;
}

input[type="text"],
input[type="email"],
textarea {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  color: var(--text);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.9rem;
  padding: 0.6rem 0.75rem;
  outline: none;
  transition: border-color 0.15s;
}
input:focus, textarea:focus { border-color: var(--accent-dim); }

textarea { resize: vertical; min-height: 140px; }

button[type="submit"] {
  font-family: "Courier New", Courier, monospace;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: transparent;
  border: 1px solid var(--border-light);
  color: var(--text-muted);
  padding: 0.55rem 1.25rem;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}
button[type="submit"]:hover { border-color: var(--accent); color: var(--accent); }

/* ---- Footer ---- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 1.5rem 0 2.5rem;
  margin-top: 4rem;
  font-family: "Courier New", Courier, monospace;
  font-size: 0.7rem;
  color: var(--text-dim);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* ---- Utility ---- */
.section { margin-bottom: 3.5rem; }

.empty-note {
  font-family: "Courier New", Courier, monospace;
  font-size: 0.8rem;
  color: var(--text-dim);
  padding: 1.5rem;
  border: 1px dashed var(--border);
  text-align: center;
}

/* ---- Responsive ---- */
@media (max-width: 600px) {
  .card-grid { grid-template-columns: 1fr; }
  nav ul { gap: 0; }
  nav a { padding: 0 0.2rem; }
}
