:root {
  --bg: #030303;
  --surface: #080808;
  --text: #f6edc8;
  --muted: #c5b27a;
  --line: #4b3a10;
  --accent: #d8b13f;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
}

.container {
  width: min(980px, calc(100vw - 10px));
  margin: 0 auto;
  padding: 6px 0 16px;
}

.meta {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

h1 {
  margin: 0.25rem 0 1.5rem;
  font-size: clamp(1.8rem, 5vw, 2.5rem);
  line-height: 1.15;
  color: var(--accent);
}

h2 {
  margin: 0 0 0.75rem;
  font-size: 1.45rem;
  color: var(--accent);
}

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 1rem 1.2rem 1.15rem;
  margin-bottom: 0.95rem;
}

.toc-panel {
  padding-bottom: 0.6rem;
}

.toc-list {
  margin: 0;
  padding-left: 1.1rem;
}

.toc-list a {
  color: var(--accent);
  text-decoration: none;
}

.toc-list a:hover {
  text-decoration: underline;
}

table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--line);
  font-size: 1.02rem;
}

th,
td {
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
  text-align: left;
  padding: 0.65rem 0.65rem;
  vertical-align: top;
}

th:last-child,
td:last-child {
  border-right: 0;
}

tr:last-child td {
  border-bottom: 0;
}

th {
  background: #0e0b02;
  font-weight: 700;
}

a {
  color: var(--accent);
}

a:hover {
  color: #f2d06b;
}

.projects-table th:nth-child(1),
.projects-table td:nth-child(1) {
  width: 52%;
}

.projects-table th:nth-child(2),
.projects-table td:nth-child(2) {
  width: 12%;
}

.projects-table th:nth-child(3),
.projects-table td:nth-child(3) {
  width: 10%;
}

.projects-table th:nth-child(4),
.projects-table td:nth-child(4) {
  width: 14%;
}

.projects-table th:nth-child(5),
.projects-table td:nth-child(5) {
  width: 12%;
}

.certifications-table th:nth-child(1),
.certifications-table td:nth-child(1) {
  width: 60%;
}

.certifications-table th:nth-child(2),
.certifications-table td:nth-child(2) {
  width: 12%;
}

.certifications-table th:nth-child(3),
.certifications-table td:nth-child(3) {
  width: 18%;
}

.certifications-table th:nth-child(4),
.certifications-table td:nth-child(4) {
  width: 10%;
}

@media (max-width: 640px) {
  .container {
    margin: 1.2rem auto;
  }

  .panel {
    padding: 0.9rem;
  }

  th,
  td {
    font-size: 0.92rem;
    padding: 0.5rem;
  }
}
