:root {
  --background-color: #111;
  --opacity-unavailable: 0.5;
  --orange: #f60;
  --text-color: #ccc;
  --white: #fff;
  --gray-dark: #666;
  --gray-medium: #888;
  --gray-light: rgba(255,255,255,0.7);
  --gray-very-light: rgba(255,255,255,0.2);
  --gray-very-dark: #333;
  --warning-yellow: #ffaa00;
  
  /* Typography */
  --font-family: 'SFMono-Regular', Menlo, 'Courier New', Courier, monospace;
  --font-size-base: 16px;
  --font-size-large: 20px;
  --font-size-medium: 13px;
  --font-size-small: 11px;
  --font-size-xs: 0.85em;
  --font-size-list-marker: 13px;
  
  /* Icons */
  --icon-size: 16px;
}
body {
  background: var(--background-color);
  color: var(--white);
  font-family: var(--font-family);
  font-weight: bold;
  max-width: 800px;
  margin: 50px auto;
  padding: 20px;
}
header {
  margin-bottom: 30px;
  color: var(--white);
}

header h1, header h2 {
  padding: 5px 5px 3px;
}

header h1 {
  background: var(--white);
  color: var(--background-color);
  display: inline-block;
  font-size: var(--font-size-large);
  line-height: 100%;
  margin: 10px 0;
}

header h2 {
  background: var(--gray-very-dark);
  color: var(--white);
  display: inline-block;
  font-size: var(--font-size-base);
  font-weight: normal;
  margin: 0 0 10px;
  text-transform: uppercase;
}

header small {
  color: var(--gray-very-dark);
  font-size: var(--font-size-base);
}

.separator {
  color: var(--gray-dark);
  margin: 15px 0;
}
.tree-line {
  color: var(--gray-very-dark);
  font-size: var(--font-size-large);
  margin-right: 0;
}
.tree-item {
  display: flex;
  align-items: baseline;
}
ul {
  list-style: none;
  padding: 0;
}
li {
  margin: 10px 0;
}

.checklist li {
  font-size: var(--font-size-medium);
}

.project-item {
  margin: 50px 0;
}

.project-name {
  margin-bottom: 5px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.folder-icon {
  width: var(--icon-size);
  height: var(--icon-size);
  display: inline-block;
  transform: translateY(-1px);
  flex-shrink: 0;
}

.project-files .folder-icon {
  margin-right: 5px;
  transform: translateY(2px);
}

/* Shared SVG icon base styles */
.folder-icon svg,
.warning-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}
.folder-icon svg path {
  fill: currentColor;
}
.project-files {
  margin: 0 0 10px;
  padding-left: 0;
}
.project-files li {
  line-height: 115%;
  margin: 0;
}
a {
  color: var(--text-color);
  text-decoration: none;
}
a:hover {
  color: var(--white);
}
.unavailable {
  color: var(--gray-dark);
  text-decoration: line-through;
  opacity: var(--opacity-unavailable);
}
.unavailable-with-warning {
  color: var(--warning-yellow);
}
.txt-warning {
  color: var(--warning-yellow);
  font-size: var(--font-size-xs);
}

code {
  background: var(--gray-very-light);
  border-radius: 3px;
  font-weight: bold;
  padding: 2px 4px;
}

picture, img, iframe {
  max-width: 100%;
  max-height: calc(100vh - 100px);
}

/* Shared inline-block display */
.txt-warning,
.warning-icon,
.status-message {
  display: inline-block;
}
.status-message {
  font-weight: normal;
}
.warning-icon {
  width: var(--icon-size);
  height: var(--icon-size);
  margin-left: 7px;
  transform: translateY(-2px);
  vertical-align: middle;
}
.warning-icon svg path {
  fill: currentColor;
}
.warning-icon svg rect {
  fill: var(--background-color);
}
.txt-warning-label {
  margin-left: 4px;
}
.project-status {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid var(--gray-very-dark);
  font-size: var(--font-size-small);
}

.project-status small {
  display: block;
  opacity: 0.1;
}

.project-item.status-in-progress .project-status small {
  opacity: 0.2;
}

.project-status small:last-of-type {
  margin-top: 12px;
  margin-bottom: 8px;
}
/* Status indicator and label - shared base styles */
.status-indicator,
.status-label {
  display: inline-block;
  font-weight: bold;
  margin-top: 12px;
  text-transform: uppercase;
}
.status-indicator,
.status-indicator::before {
  font-family: var(--font-family);
}
/* Status labels before the messages. */
.project-item .status-label::before {
  padding: 10px;
}
.project-item.status-in-progress .status-label::before {
  background: rgba(255, 102, 0, 0.1);
  content: '[▶] IN-PROGRESS';
}

.project-item.status-complete .status-label::before {
  background: rgb(17,34,20);
  content: '[✓] COMPLETE';
}

.project-item.status-complete .status-label::before ,
.project-item.status-complete .project-status small {
  color: rgb(128,243,149);
}
/* Status messages */

.status-message ul,
.checklist,
.checklist ul {
  list-style: disc;
  padding-left: 20px;
}

.status-message ul li,
.checklist li,
.checklist ul li {
  line-height: 130%;
  margin: 0 0 10px -5px;
}

.checklist ul {
  font-weight: normal;
}

.status-message li::marker {
  color: var(--gray-medium);
  font-size: var(--font-size-list-marker);
}

.status-in-progress li::marker {
  color: var(--orange);
}

.project-item.status-inactive .status-label::before {
  background: rgba(102, 102, 102, 0.1);
  content: '[X] INACTIVE';
}
/* Status colors - only in-progress gets orange, others use body color */
.project-item.status-in-progress .project-name,
.project-item.status-in-progress .project-name a,
.project-item.status-in-progress .folder-icon,
.project-item.status-in-progress .status-indicator::before,
.project-item.status-in-progress .status-label,
.project-item.status-in-progress .status-label::before,
.project-item.status-in-progress .project-status small {
  color: var(--orange);
}
/* In-progress hover states: orange (directory name and files) */
.project-item.status-in-progress .project-name a:hover,
.project-item.status-in-progress .project-files a:hover {
  background: var(--orange);
  color: var(--background-color);
}
/* In-progress project files: white (except reference subfolder) */
.project-item.status-in-progress .project-files a {
  color: var(--white);
}

/* Completed uses white for folder and name */
.project-item.status-complete .project-name,
.project-item.status-complete .project-name a,
.project-item.status-complete .folder-icon {
  color: var(--white);
}
/* Completed and root hover states: white/light gray (directory name and files) */
.project-item.status-complete .project-name a:hover,
.project-item.status-complete .project-files a:hover,
.project-item:not([class*="status-"]) .project-files a:hover {
  background: var(--text-color);
  color: var(--background-color);
}
/* Inactive use gray for folder, name, and status labels */
.project-item.status-inactive .project-name,
.project-item.status-inactive .project-name a,
.project-item.status-inactive .project-name.no-link,
.project-item.status-inactive .project-name.no-link .folder-icon,
.project-item.status-inactive .folder-icon,
.project-item.status-inactive .project-files .folder-icon,
.project-item.status-inactive .status-indicator::before,
.project-item.status-inactive .status-label,
.project-item.status-inactive .status-label::before {
  color: var(--gray-dark);
}
/* Inactive project files: grayed out text and dark gray hover */
.project-item.status-inactive .project-files a {
  color: var(--gray-dark);
}
.project-item.status-inactive .project-files a:hover {
  background: var(--gray-dark);
  color: var(--background-color);
}
/* Root directory uses white (but inactive overrides this) */
.project-item:not(.status-inactive) .project-name.no-link,
.project-item:not(.status-inactive) .project-name.no-link .folder-icon {
  color: var(--white);
}
/* Root and completed: lighter color */
.project-item:not([class*="status-"]) .status-message,
.project-item.status-complete .status-message {
  color: var(--gray-light);
}
/* Inactive: dark gray */
.project-item.status-inactive .status-message {
  color: var(--gray-dark);
}
/* In-progress: use lighter color (exception) */
.project-item.status-in-progress .status-message {
  color: var(--white);
}
/* Gray out reference folder and its contents */
.project-files li:has(a[href*="/reference/"]) a,
.project-files li:has(a[href*="/reference/"]) .folder-icon,
.project-files li a[href*="/reference/"] {
  color: var(--gray-medium);
}
/* Reference subfolder in in-progress: gray (overrides in-progress white) */
.project-item.status-in-progress .project-files li:has(a[href*="/reference/"]) a,
.project-item.status-in-progress .project-files li:has(a[href*="/reference/"]) .folder-icon,
.project-item.status-in-progress .project-files li a[href*="/reference/"] {
  color: var(--gray-medium);
}
/* Reference subfolder hover: dark gray (overrides in-progress orange) */
.project-files li:has(a[href*="/reference/"]) a:hover,
.project-item.status-in-progress .project-files li:has(a[href*="/reference/"]) a:hover {
  background: var(--gray-medium);
  color: var(--background-color);
}
/* Photos subfolder: white (active, not archived like reference) */
.project-files li:has(a[href*="/photos/"]) .folder-icon {
  color: var(--white);
}
/* Photos subfolder in in-progress: white (overrides in-progress orange) */
.project-item.status-in-progress .project-files li:has(a[href*="/photos/"]) .folder-icon {
  color: var(--white);
}
/* Mainfeed subfolder: white (active, not archived like reference) */
.project-files li:has(a[href*="/mainfeed/"]) .folder-icon {
  color: var(--white);
}
/* Mainfeed subfolder in in-progress: white (overrides in-progress orange) */
.project-item.status-in-progress .project-files li:has(a[href*="/mainfeed/"]) .folder-icon {
  color: var(--white);
}

@media (max-width: 600px) {

  /* Make everything brighter on mobile; daylight and lack of hover makes it harder to read. */

  .project-files a {
    color: var(--white);
  }
}
