/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --color-text: #BEC3BE;
  --color-background: #2A2A26;
  --color-accent: #BEC3BE;
  --font-main: Menlo, Monaco, "Courier New", monospace;
  --max-width: 1100px;
  --spacing: 1rem;
}
html {
  font-size: 14px;
}
body {
  font-family: var(--font-main);
  font-size: 12.5px;
  line-height: 1.7;
  letter-spacing: 0.01em;
  color: #999;
  background: var(--color-background);
  height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
/* Links */
a {
  color: #E8EAAB;
  text-decoration: underline;
  opacity: 0.8;
}

a:hover {
  opacity: 0.5;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--spacing);
}

/* Header */
.site-header {
  padding: 3rem 0;
  border-bottom: 1px solid #999;
}

.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-title a {
  font-size: 1.05rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--color-accent);
}

.site-nav {
  font-size: 0.95rem;
  display: flex;
  gap: 2rem;
}

.site-nav a {
  text-decoration: none;
  color: var(--color-text);
}

.site-nav a:hover {
  opacity: 0.5;
}

/* Main */
main {
  flex: 1;
  padding: 4.5rem 0;
  overflow-y: auto;
}

/* Homepage */
.home-intro h1 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.home-intro h2 {
  font-size: 1rem;
  font-weight: 400;
  color: #666;
  line-height: 1.6;
}

/* Work Archive */
.work-archive {
  max-width: 100%;
}

.work-year {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 2rem;
  margin-bottom: 0.25rem;
}

.work-year h2 {
  font-size: 1rem;
  font-weight: 600;
  padding-top: 0;
  border-bottom: none;
  color: #999;
}

.work-list {
  list-style: none;
}

.work-item {
  margin-bottom: 0;
  padding: 0.75rem 0;
  border-bottom: 1px solid #444;
}

.work-item:last-child {
  border-bottom: none;
}

.work-item h3 {
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 0;
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 2rem;
  align-items: baseline;
}

.work-item h3 a.work-title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.work-item h3 a.work-venue {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.work-item h3 a.work-year {
  text-align: right;
  white-space: nowrap;
  min-width: 50px;
}

/* Default state - half opacity */
.work-item h3 a {
  text-decoration: none;
  color: #ccc;
  font-weight: 400;
  opacity: 0.6;
  transition: opacity 0.2s;
}

/* Hover state - full opacity for entire row */
.work-item h3:hover a {
  opacity: 1;
}

.work-item h3 a:hover {
  opacity: 1;
}

.work-meta {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 0.75rem;
  font-weight: 400;
}

.role-filter {
  transition: opacity 0.2s;
}

.role-filter:hover {
  opacity: 0.75 !important;
}

/* Role filters — desktop: evenly spaced across full width */
#role-filters {
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-between;
  font-size: 0.8rem;
}

.work-description {
  font-size: 0.95rem;
  color: #444;
}

/* Footer */
.site-footer {
  padding: 3rem 0;
  border-top: 1px solid #999;
  margin-top: 2rem;
}

.site-footer p {
  font-size: 0.85rem;
  color: #666;
}

/* Details / Dropdowns */
details summary {
  color: #BEC3BE;
  font-weight: 500;
  cursor: pointer;
  opacity: 1;
  transition: opacity 0.2s;
}

details summary:hover {
  opacity: 0.5;
}

details summary::marker {
  color: #BEC3BE;
}

details summary::-webkit-details-marker {
  color: #BEC3BE;
}

details {
  border-bottom: 1px solid #444;
  padding: 1rem 0;
}

details:last-child {
  border-bottom: none;
}

/* HR */
.container hr {
  border: none;
  border-top: 1px solid #444;
  margin: 2rem 0;
}

/* ── Responsive ── */
@media (max-width: 768px) {

  /* Global size reduction — cascades to ALL pages including
     gallery, about, contact, work */
  body {
    font-size: 13px;
  }

  /* Header */
  .site-header {
    padding: 1.25rem 0;
  }

  .site-title a {
    font-size: 0.95rem;
  }

  .site-nav {
    font-size: 0.75rem;
    gap: 1rem;
  }

  .site-header .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.6rem;
  }

  /* Main */
  main {
    padding: 2rem 0;
  }

  /* Footer */
  .site-footer {
    padding: 1.5rem 0;
  }

  /* Work list — significantly smaller on mobile */
  .work-item {
    padding: 0.5rem 0;
  }

  .work-item h3 {
    font-size: 0.7rem;
    grid-template-columns: 1fr;
    gap: 0.15rem;
  }

  .work-item h3 a.work-venue {
    text-align: left;
    margin-left: 0;
    opacity: 0.4;
  }

  .work-item h3 a.work-year {
    text-align: left;
    opacity: 0.3;
  }

  .work-meta {
    font-size: 0.65rem;
  }

  /* Role filters — mobile: wrap into rows with spacing */
  #role-filters {
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 0.5rem 1rem;
    font-size: 0.65rem !important;
  }
}