/* Basic HTML reset */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

::selection {
  background-color: #cb2222;
  color: #000000;
  -webkit-text-fill-color: #000000;
}

::-moz-selection {
  background-color: #cb2222;
  color: #000000;
  -webkit-text-fill-color: #000000;
}

::-webkit-selection {
  background-color: #cb2222;
  color: #000000;
  -webkit-text-fill-color: #000000;
}

*::-webkit-scrollbar {
  height: 8px;
  width: 8px;
  background: #222;
}

*::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #333 40%, #444 100%);
  border-radius: 6px;
  border: 2px solid #222;
}

*::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, #444 40%, #666 100%);
}

html {
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  text-rendering: optimizeLegibility;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: monospace;
  color: #ababab;
}

body:before {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  content: '';
  background: url(/bg.avif) repeat;
  background-size: 32px 32px;
  display: block;
  width: 100vw;
  height: 100vh;
  z-index: 1;
}

@media (max-width: 799px) {

  html,
  body {
    font-size: 16px;
  }
}

[content] {
  max-width: 800px;
  margin: 0 auto;
  min-height: 100vh;
  position: relative;
  z-index: 2;
  padding-bottom: 50vh;
}

[content] section {
  margin-top: 2rem;
  border-radius: 1rem;
  background: #040404;
  border-left: 2px solid #000;
  border-right: 2px solid #000;
  position: relative;
}

[pa-8] {
  padding: 1rem 2rem;
}

[block-pad-m] {
  padding: 1rem 2rem;
}

@media (max-width: 799px) {
  [block-pad-m] {
    padding: 1rem .5rem;
  }
}

[hero] {
  border: 2px solid #000;
  border-radius: 8px;
  background: #030303;
  overflow: hidden;
  display: grid;
  place-items: center;
  aspect-ratio: 724/241;
}

[hero] img {
  width: 100%;
  height: auto;
  display: block;
}

h1 {
  font-weight: normal;
  margin: 0;
  font-size: 1rem;
  color: #37bb6d;
  text-shadow: -2px 3px 3px #4c5691;
}

h3 {
  font-weight: normal;
  margin: 0;
  padding-bottom: 0.5rem;
  font-size: 1rem;
  color: #68ab83;
  text-shadow: -2px 3px 3px #4c5691;
}

h2, h4, h5, h6 {
  font-weight: normal;
  margin: 0;
  font-size: 1rem;
  color: #ababab;
}

[link] {
  margin: 0;
  padding: 0 0 0.5rem;
}

[link] a {
  font-size: 1rem;
  color: #fafafa;
  text-decoration-style: dotted;
  text-decoration-color: #fafafa80;
  text-decoration-thickness: 1px;
}

[codearea] {
  user-select: none;
  cursor: pointer;
  white-space: pre;
  font-family: monospace;
  outline: none;
  user-select: all;
  border-radius: 4px;
  border: 2px solid transparent;
  padding: 0.25rem 0;
  background: transparent;
  transition: border 0.2s, background 0.2s, padding 0.2s;
}
[codearea][contenteditable="true"] {
  cursor: text;
  user-select: text;
  padding: 0.25rem 0.25rem;
  border: 2px solid #555;
  background: #111;
}
[codearea]:focus {
  padding: 0.25rem 0.25rem;
  border: 2px solid #fafafa;
  background: #222;
}

[no-select] {
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}
[one-click-select] {
  cursor: pointer;
}

summary {
  cursor: pointer;
}

summary:not([timeline-summary]) {
  list-style: none;
  color: #6b8d93;
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

summary:not([timeline-summary])::-webkit-details-marker {
  display: none;
}

summary:not([timeline-summary])::before {
  content: '▸ ';
  color: #555;
  text-shadow: none;
  font-size: 0.75rem;
}

details[open] > summary:not([timeline-summary])::before {
  content: '▾ ';
}

details[open] > summary:not([timeline-summary]) {
  margin-bottom: 0.5rem;
}

section details {
  border-left: 2px solid #222;
  padding-left: 1rem;
}

section details[open] {
  border-left-color: #444;
}

[pgp-wrap] {
  width: 100%;
  overflow-x: auto;
}

[tooltip] {
  position: fixed;
  background-color: #cb2222;
  color: #000000;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.75rem;
  pointer-events: none;
  top: 10px;
  left: 10px;
  z-index: 1000;
  max-width: 300px;
}

[profile] {
  width: 152px;
  height: 152px;
  display: block;
  border-radius: 8px;
}

header {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  flex-wrap: wrap-reverse;
  align-items: center;
}

[contact] {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

[contact] div {
  flex: 1;
}

[profile-info] {
  min-width: 280px;
  width: auto;
  flex: 1;
}

video {
  width: 100%;
  aspect-ratio: 724 / 407;
}

iframe {
  max-width: 100%;
}

[timeline] {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

[timeline] > details {
  border-left: 2px solid #222;
  padding-left: 1rem;
}

[timeline] > details[open] {
  border-left-color: #444;
}

[timeline-summary] {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.5rem 1rem;
  flex-wrap: wrap;
}

[timeline-summary]::-webkit-details-marker {
  display: none;
}

[timeline-co] {
  color: #6b8d93;
}

[timeline-co]::before {
  content: '▸ ';
  color: #555;
  text-shadow: none;
  font-size: 0.75rem;
}

details[open] > [timeline-summary] > [timeline-co]::before {
  content: '▾ ';
}

[timeline-loc] {
  color: #555;
  flex: 1;
}

[timeline-dates] {
  color: #555;
}

[timeline-body] {
  margin-top: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

[timeline-role] {
  border-left: 1px solid #1d1d1d;
  padding-left: 0.75rem;
}

[timeline-role-header] {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.5rem 1rem;
  flex-wrap: wrap;
  margin-bottom: 0.35rem;
}

[timeline-role-title] {
  color: #c8c8c8;
}

[timeline-role-date] {
  color: #555;
  font-size: 0.875rem;
}

[timeline] ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

[timeline] li {
  padding-left: 1.25rem;
  position: relative;
  margin-bottom: 0.2rem;
  color: #777;
}

[timeline] li::before {
  content: '-';
  position: absolute;
  left: 0;
  color: #444;
}

[proj-links] {
  min-width: 200px;
}