* {
  color: #333;
  margin: 0;
  padding: 0;
}

body {
  background-color: #eee;
  height: 100%;
  font-family: Arial, "MS Trebuchet", sans-serif;
}

#header {
  text-align: center;
}

#header h1 {
  font-size: 5em;
  letter-spacing: 0.1em;
  margin: 0;
}

#header a {
  text-decoration: none;
}

#header a:hover {
  border-bottom: 3px dashed #888;
}

#header span {
  font-size: 1.0em;
  letter-spacing: 0.25em;
}

/* Base reset stays the same from your stylesheet */

main {
  max-width: 900px;
  margin: 2rem auto;
  padding: 0 1rem;
}

#projects h2 {
  font-size: 2rem;
  letter-spacing: 0.08em;
  text-align: center;
  margin: 1.25rem 0 1.5rem;
  color: #222;
}

.projects {
  list-style: none;
  display: grid;
  gap: 0.75rem;
}

/* Card shell */
.project {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 12px;
  box-shadow: 0 1px 2px rgba(0,0,0,.03);
  overflow: hidden;
}

/* Toggle button (full-width) */
.project-toggle {
  appearance: none;
  background: transparent;
  border: 0;
  width: 100%;
  text-align: left;
  padding: 1rem 1.25rem;
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
}

.project-title {
  font-weight: bold;
  font-size: 1.1rem;
}

.project-meta {
  font-size: 0.9rem;
  color: #666;
}

.chev {
  transition: transform 200ms ease;
}

/* Rotate chevron when open */
.project-toggle[aria-expanded="true"] .chev {
  transform: rotate(180deg);
}

/* Panel wrapper with smooth height + opacity transition */
.project-panel {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition:
    max-height 300ms ease,
    opacity 250ms ease;
  border-top: 1px solid #eee;
  background: #fafafa;
}

.project-panel.open {
  opacity: 1;
}

/* Inner content spacing */
.panel-inner {
  padding: 1rem 1.25rem 1.25rem;
  line-height: 1.5;
  color: #333;
}

.links {
  margin-top: 0.75rem;
  display: flex;
  gap: 1rem;
  list-style: none;
}

.links a {
  text-decoration: none;
  border-bottom: 2px dashed #bbb;
}

.links a:hover {
  border-bottom-color: #888;
}

/* Focus styles for accessibility */
.project-toggle:focus-visible {
  outline: 3px solid #88aaff;
  outline-offset: 2px;
  border-radius: 10px;
}
