
:root {
  --color-primary: #F08000;
  --color-secondary: #FFB000;
  --color-link: #FFB000;


  --color-light: #F0F0F0;
  --color-dark: #11110f;
  --color-dark-2: #1a1a18;
  
}

:root {
  color-scheme: dark;
  font-family: "JetBrains Mono", monospace;
  color: var(--color-light);
  --page-top-spacing: 4rem;
}

:root[data-theme="light"] {
  color-scheme: light;
  --color-primary: #C2410C;
  --color-secondary: #ce2021;
  --color-link: #9A3412;

  --color-light: #22221f;
  --color-dark: #F0F0F0;
  --color-dark-2: #BDBDBD;
}


* {
  scrollbar-color: var(--color-primary) var(--color-dark);
  scrollbar-width: thin;
}

::-webkit-scrollbar {
  width: 0.7rem;
}

::-webkit-scrollbar-track {
  background: var(--color-dark);
}

::-webkit-scrollbar-thumb {
  background-color: var(--color-primary);
}

::selection {
  color: var(--color-dark);
  background: var(--color-primary);
}

a {
  color: var(--color-link);
  text-decoration: none;
}
a:visited {
  color: var(--color-link);
}

a:hover {
  text-decoration: underline;
  filter: brightness(1.2);
}

.theme-toggle {
  position: fixed;
  top: 2rem;
  right: 2rem;
  z-index: 2;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  transition:
    opacity 200ms ease,
    transform 250ms ease;
}

.theme-toggle-icon {
  display: block;
  width: 100%;
  height: 100%;
  filter: invert(1);
  transition: filter 200ms ease, transform 250ms ease;
}

:root[data-theme="light"] .theme-toggle-icon {
  filter: none;
}

.theme-toggle:hover .theme-toggle-icon,
.theme-toggle:focus-visible .theme-toggle-icon {
  filter: brightness(0) saturate(100%) invert(53%) sepia(98%) saturate(1712%) hue-rotate(2deg) brightness(102%);
  transform: rotate(15deg);
}

.theme-toggle:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
}


body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;

  background-color: var(--color-dark);

  background-image:
    linear-gradient(var(--color-dark-2) 1px, transparent 1px),
    linear-gradient(90deg, var(--color-dark-2) 1px, transparent 1px);
  background-size: 40px 40px;
}

.sidebar {
  position: fixed;
  top: var(--page-top-spacing);
  left: 2rem;
  z-index: 1;
  background: transparent;
}

.sidebar-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1rem;
}

.sidebar-folder-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-light);
  margin-top: 2rem;
}

.sidebar-folder-title img {
  width: 1rem;
  height: 1rem;
  filter: invert(1);
}

:root[data-theme="light"] .sidebar-folder-title img {
  filter: none;
}

.sidebar-folder-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.5rem;
  margin-left: 1.5rem;
}

.sidebar-folder-links a {
  color: var(--color-link);
}

.sidebar-folder-links a.sidebar-link-current {
  padding-left: 0.75rem;
  border-left: 2px solid var(--color-primary);
}

.portfolio {
  display: flex;
  flex-direction: column;

  max-width: 1100px;
  margin: 0 auto;
  padding: var(--page-top-spacing) 2rem;
}

.site-header {
  color: var(--color-primary);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.description-text-rule {
  width: 100%;
  height: 1px;
  margin-top: 1rem;
  margin-bottom: 2rem;
  background-color: var(--color-secondary);
}

.description-text p {
  margin: 0;
  line-height: 1.7;
  white-space: pre-line;
}

.description-text-grid {
  line-height: 40px !important;
}

.description-text-rule-bottom {
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.rule {
  width: 100%;
  height: 1px;
  margin-top: 2rem;
  margin-bottom: 2rem;
  background-color: var(--color-primary);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.name-header {
  margin: 2rem 0 0;
  color: var(--color-light);
  font-size: clamp(3rem, 2.5vw, 6rem);
  font-weight: 600;
  letter-spacing: -0.08em;
}


.name {
  color: var(--color-primary);
}

.main-information {
  font-size: 1.4rem;
}

.image-link {
  display: inline-flex;
  width: 32px;
  height: 32px;
  background-color: var(--color-light);
  transition: background-color 150ms ease;
  mask: var(--image-source) center / contain no-repeat;
  -webkit-mask: var(--image-source) center / contain no-repeat;
}

.image-link img {
  opacity: 0;
}

.image-link:hover,
.image-link:focus-visible {
  background-color: var(--color-primary);
}

#current-time {
  justify-self: flex-end;
  color: var(--color-light);
}


.projects-section {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 4rem;
}

.project-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin-top: 2rem;
}

.card {
  display: grid;
  grid-template-columns: 20% minmax(0, 1fr);
  column-gap: 3rem;
  align-items: stretch;
  width: 100%;
  height: auto;
}

.card-image {
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
}

[id="neuravac.svg"] {
  filter: brightness(0) invert(1);
}

:root[data-theme="light"] [id="neuravac.svg"] {
  filter: none;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.card-content{
  display: flex;
  height: 100%;
  min-width: 0;
  flex-direction: column;
  justify-content: flex-start;
  overflow-wrap: anywhere;
}

.card-title {
  margin-bottom: 0;
}

.org-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.25rem;
  color: var(--color-primary);
  font-size: 0.9rem;
}

.org-card-meta span + span::before {
  content: "|";
  margin-right: 0.75rem;
  color: var(--color-light);
}

.card-link {
  margin-top: auto;
  margin-right: 1rem;
  margin-bottom: 1rem;

  justify-self: flex-end;
  align-self: flex-end;
}

@media (max-width: 540px) {
  .sidebar {
    position: static;
    margin: 0 2rem;
    padding-top: 2rem;
  }

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

  .card-image {
    aspect-ratio: 16 / 9;
  }
}


.transfer-section {
  display: flex;

  margin-top: 2rem;
  gap: 2rem;

  justify-content: center;
  align-items: center;
  width: 100%;
  height: auto;
}

.transfer-card {
  user-select: none;

  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: center;
  align-items: center;
  width: 32rem;
  height: 12rem;

  border-radius: 1rem;

  border: 2px dashed var(--color-primary);
  background-color: var(--color-dark);

  color: var(--color-primary);

}

.transfer-card:hover,
.transfer-card:focus-visible,
.transfer-card[data-drag-over="true"] {
  background-color: var(--color-dark-2);
  border-color: var(--color-secondary);
}

.transfer-card-text {
  width: 100%;
  max-width: calc(100% - 2rem);
  min-width: 0;
}

.transfer-card-text p {
  width: 100%;
  margin: 0;
  overflow: hidden;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.transfer-card-text .invalid-file-size {
  color: #ef4444;
}


.transfer-card-icon {
  width: 3rem;
  height: 3rem;
  background-color: var(--color-primary);
  mask: url("/static/images/icons/upload.svg") center / contain no-repeat;
  -webkit-mask: url("/static/images/icons/upload.svg") center / contain no-repeat;
}

.transfer-card-icon img {
  width: 100%;
  height: 100%;
  opacity: 0;
}

.transfer-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 2rem;
}

.transfer-button {
  user-select: none;

  width: 14rem;
  height: 3rem;

  cursor: pointer;
  text-align: center;
  border-radius: 0.5rem;

  border: 2px solid var(--color-primary);
  background-color: var(--color-dark);

  color: var(--color-primary);
}

.transfer-button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.transfer-button:hover,
.transfer-button:focus-visible {
  background-color: var(--color-dark-2);
  border-color: var(--color-secondary);
}

.transfer-button:disabled:hover {
  background-color: var(--color-dark);
  border-color: var(--color-primary);
}

.transfer-link {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;

  user-select: text;
  cursor: default;

}

.transfer-link:hover,
.transfer-link:focus-visible {
  text-decoration: underline;
  text-decoration-color: var(--color-primary);
}

.transfer-link p,
.transfer-link-icon {
  transition: color 150ms ease, background-color 150ms ease;
}

.transfer-link:hover p,
.transfer-link:focus-visible p {
  color: var(--color-primary);
}

.transfer-link:hover .transfer-link-icon,
.transfer-link:focus-visible .transfer-link-icon {
  background-color: var(--color-primary);
}

.transfer-link-icon {
  width: 16px;
  height: 16px;
  margin-bottom: .2rem;
  background-color: var(--color-light);
  mask: url("/static/images/icons/copy.svg") center / contain no-repeat;
  -webkit-mask: url("/static/images/icons/copy.svg") center / contain no-repeat;
}

.transfer-link-icon img {
  opacity: 0;
}