/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  line-height: 1.6;
  color: #000;
  background: #fff;
  font-size: 16px;
}

/* Navigation */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: #fff;
  border-bottom: 1px solid #000;
  z-index: 100;
  padding: 1rem;
}

#menu-toggle {
  background: none;
  border: 1px solid #000;
  font-size: 1.2rem;
  padding: 0.5rem;
  cursor: pointer;
  float: right;
  z-index: 101;
  position: relative;
}

#nav-menu {
  display: none;
  list-style: none;
  margin-top: 1rem;
}

#nav-menu.open {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #fff;
  z-index: 100;
  margin: 0;
  padding: 5rem 2rem 2rem;
  justify-content: center;
  align-items: center;
  gap: 2rem;
}

#nav-menu li {
  border: none;
  padding: 0;
  text-align: center;
}

#nav-menu.open li {
  border-bottom: 1px solid #000;
  width: 100%;
  padding: 1.5rem 0;
}

#nav-menu a {
  text-decoration: none;
  color: #000;
  font-weight: 500;
  font-size: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

#nav-menu a:hover {
  color: #d72933;
}

/* Main content */
main {
  margin-top: 80px;
  padding: 2rem 1rem;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

section {
  margin-bottom: 4rem;
}

/* Logo and title */
#home {
  text-align: center;
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.logo svg {
  width: 60px;
  height: auto;
  flex-shrink: 0;
}

/* Typography */
h1 {
  font-size: 2rem;
  font-weight: 900;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: -0.02em;
}

h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  border-bottom: 2px solid #000;
  padding-bottom: 0.25rem;
}

h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

p {
  margin-bottom: 1rem;
  color: #333;
}

/* Info grid */
.info-grid {
  display: grid;
  gap: 1rem;
  margin-bottom: 2rem;
}

.info-item {
  border: 1px solid #000;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.info-item strong {
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.info-item span {
  font-weight: 500;
}

/* Details and documents */
details {
  border: 1px solid #000;
  padding: 1rem;
  margin-bottom: 1rem;
}

summary {
  font-weight: 600;
  cursor: pointer;
  margin-bottom: 1rem;
}

summary:hover {
  color: #d72933;
}

.docs-list {
  list-style: none;
}

.docs-list li {
  border-top: 1px solid #eee;
  padding: 0.75rem 0;
}

.docs-list a {
  text-decoration: none;
  color: #000;
}

.docs-list a:hover {
  color: #d72933;
}

/* Team */
.team-member {
  border: 1px solid #000;
  padding: 1.5rem;
  margin-bottom: 1rem;
}

.team-member h3 {
  margin-bottom: 0.25rem;
}

.team-member p {
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #666;
  margin: 0;
}

/* Projects */
.project-expandable {
  border: 1px solid #000;
  margin-bottom: 1rem;
}

.project-summary {
  padding: 1.5rem;
  cursor: pointer;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  list-style: none;
}

.project-summary::after {
  content: '+';
  font-size: 1.5rem;
  font-weight: 300;
  margin-left: 1rem;
  transition: transform 0.2s ease;
}

.project-expandable[open] .project-summary::after {
  content: '−';
  transform: rotate(0deg);
}

.project-summary::-webkit-details-marker {
  display: none;
}

.project-summary::marker {
  display: none;
}

.project-summary h3 {
  margin: 0;
  flex: 1;
  font-size: 1.125rem;
  font-weight: 600;
}

.project-summary:hover h3 {
  color: #d72933;
}

.project-expandable[open] .project-summary {
  border-bottom: 1px solid #000;
}

.project-content {
  padding: 1.5rem;
  padding-top: 0;
}

.project-content p {
  margin-bottom: 1rem;
  color: #333;
  line-height: 1.6;
}

.project-content p:last-child {
  margin-bottom: 0;
}

.project-content a {
  color: #d72933;
  text-decoration: none;
}

.project-content a:hover {
  text-decoration: underline;
}

.status {
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
  flex-shrink: 0;
  margin-left: 1rem;
}

.status.active {
  background: #d72933;
  color: #fff;
}

.status.completed {
  background: #000;
  color: #fff;
}

/* Contact */
.contact-grid {
  display: grid;
  gap: 1rem;
}

.contact-grid a {
  border: 1px solid #000;
  padding: 1rem;
  text-decoration: none;
  color: #000;
  font-weight: 500;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.contact-grid a:hover {
  background: #000;
  color: #fff;
}

/* Footer */
footer {
  border-top: 1px solid #000;
  padding: 2rem 1rem;
  text-align: center;
  margin-top: 4rem;
}

footer p {
  font-size: 0.875rem;
  color: #666;
  margin: 0;
}

/* Tablet and up */
@media (min-width: 768px) {
  main {
    padding: 2rem;
  }

  #menu-toggle {
    display: none;
  }

  #nav-menu {
    display: flex !important;
    gap: 2rem;
    margin-top: 0;
    position: static;
    padding: 0;
    background: transparent;
    justify-content: flex-start;
  }

  #nav-menu li {
    border: none !important;
    padding: 0;
    width: auto;
  }

  #nav-menu a {
    font-size: 1rem;
  }

  .logo svg {
    width: 80px;
  }

  .header-row {
    gap: 1.5rem;
  }
/*
  .info-grid {
    grid-template-columns: repeat(2, 1fr);
  }
*/
  .contact-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  h1 {
    font-size: 3rem;
  }

  h2 {
    font-size: 2rem;
  }
}

/* Desktop */
@media (min-width: 1024px) {
  main {
    max-width: 768px;
  }
/*
  .info-grid {
    grid-template-columns: repeat(4, 1fr);
  }
*/
  .logo svg {
    width: 100px;
  }

  .header-row {
    gap: 2rem;
  }
}
