:root {
  --bg: #14110e;
  --bg-accent: #1c1712;
  --panel: #231d17;
  --panel-hover: #2a2219;
  --border: #5c4a32;
  --gold: #c9a227;
  --gold-dim: #9a7d1c;
  --cream: #e8dcc8;
  --muted: #9a8b72;
  --header-bg: #dcdcdc;
  --header-text: #1a1612;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Segoe UI", Georgia, serif;
  background:
    radial-gradient(ellipse 120% 80% at 50% -20%, rgba(201, 162, 39, 0.12), transparent 55%),
    linear-gradient(180deg, var(--bg-accent) 0%, var(--bg) 40%);
  color: var(--cream);
}

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Hero */

.hero {
  text-align: center;
  padding: clamp(2.5rem, 8vw, 4.5rem) 1.5rem clamp(2rem, 5vw, 3rem);
  border-bottom: 2px solid var(--border);
  position: relative;
}

.hero::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: min(12rem, 40%);
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.eyebrow {
  margin: 0 0 0.75rem;
  color: var(--muted);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: 0.7rem;
  font-weight: 600;
}

.hero h1 {
  margin: 0;
  color: var(--gold);
  font-size: clamp(2.2rem, 6vw, 3.2rem);
  letter-spacing: 0.06em;
  font-weight: 700;
  line-height: 1.1;
}

.intro {
  margin: 1rem auto 0;
  max-width: 32rem;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.6;
}

/* Main */

main {
  width: min(760px, 100%);
  margin: 0;
  padding: 2rem 1.25rem 3rem 2rem;
  flex: 1;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.6rem 1rem;
  background: var(--header-bg);
  border-bottom: 1px solid #000;
}

.panel-head h2 {
  margin: 0;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--header-text);
  font-weight: 700;
}

.panel-count {
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Project list */

.project-list {
  list-style: none;
  margin: 0;
  padding: 0.75rem;
}

.project-list > li + li {
  margin-top: 0.75rem;
}

.project-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem 1.25rem;
  align-items: start;
  padding: 1.15rem 1.25rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.15);
  text-align: left;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.project-card:hover {
  border-color: var(--gold-dim);
  background: var(--panel-hover);
  transform: translateY(-1px);
}

.project-icon {
  width: 3rem;
  height: 3rem;
  display: grid;
  place-items: center;
  font-size: 1.35rem;
  background: rgba(201, 162, 39, 0.12);
  border: 1px solid rgba(201, 162, 39, 0.35);
  border-radius: 8px;
  color: var(--gold);
  flex-shrink: 0;
}

.project-body {
  min-width: 0;
}

.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.45rem;
}

.tag {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.2rem 0.5rem;
  border-radius: 3px;
  border: 1px solid var(--border);
  color: var(--muted);
  background: rgba(0, 0, 0, 0.2);
}

.project-card h3 {
  margin: 0 0 0.4rem;
  font-size: 1.2rem;
  color: var(--cream);
  line-height: 1.25;
}

.project-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
  font-size: 0.95rem;
}

.project-action {
  grid-column: 2;
  justify-self: start;
  margin-top: 0.25rem;
}

.cta {
  display: inline-block;
  padding: 0.7rem 1.15rem;
  border-radius: 5px;
  background: var(--gold);
  color: #14110e;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  white-space: nowrap;
  transition: filter 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.25);
}

.cta:hover {
  filter: brightness(1.1);
  box-shadow: 0 3px 8px rgba(201, 162, 39, 0.35);
}

.cta:focus-visible {
  outline: 2px solid var(--cream);
  outline-offset: 2px;
}

/* Footer */

footer {
  text-align: center;
  padding: 1.25rem 1rem;
  font-size: 0.75rem;
  color: var(--muted);
  border-top: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.15);
}

footer p { margin: 0; }

footer a {
  color: var(--gold);
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

/* Responsive */

@media (max-width: 640px) {
  main {
    padding-left: 1.25rem;
  }

  .project-card {
    grid-template-columns: auto 1fr;
  }

  .project-action {
    grid-column: 1 / -1;
  }

  .cta {
    display: inline-block;
    text-align: left;
  }
}
