@import url("https://fonts.googleapis.com/css2?family=Oxygen:wght@400;700&display=swap");

:root {
  --background: rgba(1, 7, 24, 0.81);
  --text: #ffffff;
  --muted: rgba(255, 255, 255, 0.78);
  --hover: rgba(255, 255, 255, 0.72);
  --rule: rgba(255, 255, 255, 0.5);
  --page-left: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--background);
  font-family: "Oxygen", Calibri, Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.38;
}

a {
  color: var(--text);
}

.site-header,
main {
  width: min(760px, calc(100% - var(--page-left) - 18px));
  margin-left: var(--page-left);
  margin-right: auto;
}

main {
  padding-top: var(--page-left);
}

.site-header {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 10;
  width: 100%;
  margin: 0;
  padding: 0;
  pointer-events: none;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0;
  pointer-events: auto;
}

.nav a {
  padding: 11px 14px;
  color: var(--text);
  font-size: 21px;
  line-height: 1;
  text-decoration: none;
}

.nav a:hover,
.nav a:focus-visible {
  background: rgba(255, 255, 255, 0.12);
  outline: none;
}

.intro {
  margin-bottom: 24px;
}

h1,
h2,
h3,
h4,
p,
dl,
ul {
  margin-top: 0;
}

h1 {
  margin-bottom: 2px;
  font-size: 32px;
  line-height: 1.1;
  font-weight: 700;
}

.role {
  margin-bottom: 8px;
  font-size: 18px;
  font-weight: 700;
}

.contact {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-bottom: 0;
  color: var(--muted);
}

.contact a {
  color: var(--text);
}

.page-section {
  margin-bottom: 28px;
}

h2 {
  margin-bottom: 10px;
  font-size: 23px;
  line-height: 1.12;
  font-weight: 700;
}

.resume-block {
  margin-bottom: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--rule);
}

.resume-block:first-of-type {
  padding-top: 0;
  border-top: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 18px;
  line-height: 1.18;
  font-weight: 700;
}

.section-title {
  margin-bottom: 12px;
  font-size: 18px;
  line-height: 1.18;
  font-weight: 700;
  -webkit-text-stroke: 1px #000000;
  paint-order: stroke fill;
}

h4 {
  margin-bottom: 0;
  font-size: 16px;
  line-height: 1.25;
  font-weight: 700;
}

.skill-list {
  display: grid;
  gap: 5px;
  margin-bottom: 0;
}

.skill-list div {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 8px;
}

dt {
  font-weight: 700;
}

dd {
  margin: 0;
  color: var(--muted);
}

.entry {
  margin-bottom: 16px;
}

.entry-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
}

.entry-head span {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 15px;
}

.entry-role {
  margin: 1px 0 5px;
  color: var(--text);
  font-style: italic;
}

ul {
  margin-bottom: 0;
  padding-left: 22px;
}

li {
  margin-bottom: 4px;
  color: var(--muted);
}

.page-section > .entry p {
  max-width: 650px;
  margin-bottom: 0;
  color: var(--muted);
}

.plain-list {
  max-width: 620px;
}

.hobbies-page main {
  width: min(1470px, calc(100% - 24px));
  margin-left: auto;
  margin-right: auto;
}

.hobbies-page .intro {
  text-align: center;
  margin-bottom: 12px;
}

.hobbies-page .plain-list {
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

.hobby-gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  width: 100%;
  margin-top: 12px;
}

.hobby-gallery-card {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  padding: 0;
  overflow: hidden;
  border: 0;
  color: var(--text);
  background: transparent;
  cursor: pointer;
}

.hobby-gallery-card:last-child:nth-child(odd) {
  width: calc((100% - 6px) / 2);
  justify-self: center;
  grid-column: 1 / -1;
}

.hobby-gallery-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hobby-gallery-card span {
  position: absolute;
  left: 0;
  bottom: 0;
  padding: 7px 9px;
  background: rgba(0, 0, 0, 0.42);
  font-size: 15px;
  font-weight: 700;
}

.hobby-gallery-card:hover img,
.hobby-gallery-card:focus-visible img {
  filter: brightness(1.14);
}

.hobby-gallery-card:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.72);
  outline-offset: -2px;
}

.social-links {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 12;
  display: flex;
  gap: 14px;
}

.social-links a {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border-radius: 50%;
  color: var(--text);
  background: rgba(255, 255, 255, 0.16);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
  font-size: 24px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  transition: filter 120ms ease, background-color 120ms ease, transform 120ms ease;
}

.social-links svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.2;
}

.social-links img {
  display: block;
  width: 58px;
  height: 58px;
  object-fit: contain;
}

.social-linkedin {
  background: #0a66c2 !important;
}

.social-linkedin span {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
}

.social-github {
  overflow: hidden;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.social-email {
  background: #465a7f !important;
}

.social-links a:hover,
.social-links a:focus-visible {
  filter: brightness(1.12);
  transform: translateY(-1px);
  outline: none;
}

.projects-page .projects-main {
  width: min(1470px, calc(100% - 24px));
  margin-left: auto;
  margin-right: auto;
}

.projects-page .intro {
  margin-bottom: 12px;
}

.project-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  width: 100%;
}

.project-thumb:last-child:nth-child(odd) {
  width: calc((100% - 6px) / 2);
  justify-self: center;
  grid-column: 1 / -1;
}

.project-thumb {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  padding: 0;
  overflow: hidden;
  border: 0;
  color: var(--text);
  background: transparent;
  cursor: pointer;
  text-decoration: none;
}

.project-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left top;
}

.project-thumb span {
  position: absolute;
  left: 0;
  bottom: 0;
  padding: 7px 9px;
  background: rgba(0, 0, 0, 0.42);
  font-size: 15px;
  font-weight: 700;
}

.project-thumb:hover img,
.project-thumb:focus-visible img {
  filter: brightness(1.14);
}

.project-thumb:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.72);
  outline-offset: -2px;
}

.is-gallery-empty {
  cursor: default;
  opacity: 0.45;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: none;
  place-items: center;
  padding: 42px 10px 12px;
  background: rgba(0, 0, 0, 0.82);
}

.lightbox[aria-hidden="false"] {
  display: grid;
}

.is-lightbox-open {
  overflow: hidden;
}

.lightbox-frame {
  position: relative;
  display: grid;
  gap: 8px;
  justify-items: center;
  margin: 0;
  max-width: calc(100vw - 20px);
}

.lightbox-frame img,
.lightbox-frame video {
  display: block;
  max-width: 100%;
  max-height: calc(100vh - 112px);
  object-fit: contain;
}

.lightbox-frame video {
  background: #000000;
}

.lightbox-frame img[hidden],
.lightbox-frame video[hidden] {
  display: none;
}

.lightbox-frame figcaption {
  color: var(--muted);
  font-size: 14px;
}

.lightbox button {
  border: 0;
  color: var(--text);
  font: inherit;
  cursor: pointer;
}

.lightbox button:hover,
.lightbox button:focus-visible {
  background: rgba(255, 255, 255, 0.18);
  outline: none;
}

.lightbox .lightbox-close {
  position: absolute;
  bottom: calc(100% + 4px);
  left: 0;
  padding: 8px 10px;
  color: #8a5355;
  background: rgba(255, 255, 255, 0.1);
  font-size: 1.82em;
}

.lightbox .lightbox-close:hover,
.lightbox .lightbox-close:focus-visible {
  color: #8a5355;
}

.lightbox .lightbox-control {
  position: absolute;
  top: 0;
  bottom: 28px;
  display: grid;
  width: 72px;
  place-items: center;
  padding: 0;
  background: transparent;
  color: var(--text);
  font-size: 126px;
  line-height: 1;
  -webkit-text-stroke: 1px #614041;
  paint-order: stroke fill;
}

.lightbox-prev {
  left: 0;
}

.lightbox-next {
  right: 0;
}

.lightbox.lightbox--arrows-outside .lightbox-prev {
  right: 100%;
  left: auto;
}

.lightbox.lightbox--arrows-outside .lightbox-next {
  right: auto;
  left: 100%;
}

.covid-page {
  background: var(--background);
  color: var(--text);
}

.covid-page .nav a:hover,
.covid-page .nav a:focus-visible {
  background: rgba(255, 255, 255, 0.12);
}

.covid-main {
  width: min(1180px, calc(100% - 32px));
  margin-left: auto;
  margin-right: auto;
  padding-top: 64px;
  padding-bottom: 32px;
}

.covid-header {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
}

.covid-header p {
  max-width: 760px;
  margin-bottom: 0;
  color: var(--muted);
}

.back-link {
  width: fit-content;
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.back-link:hover,
.back-link:focus-visible {
  text-decoration: underline;
  outline: none;
}

.covid-controls {
  display: grid;
  grid-template-columns: minmax(190px, 260px) minmax(0, 1fr);
  gap: 14px;
  align-items: end;
  padding: 14px;
  border: 0;
  border-radius: 8px;
  background: transparent;
}

.covid-control {
  display: grid;
  gap: 7px;
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
}

.covid-control strong {
  margin-left: 6px;
  color: var(--text);
}

.covid-control select,
.covid-control input {
  width: 100%;
}

.covid-control select {
  min-height: 40px;
  padding: 7px 9px;
  border: 1px solid #3b3b3b;
  border-radius: 6px;
  color: var(--text);
  background: #3b3b3b;
  font: inherit;
}

.covid-control input[type="range"] {
  height: 24px;
  padding: 0;
  border: 0;
  background: transparent;
  accent-color: #3b3b3b;
  appearance: none;
  -webkit-appearance: none;
}

.covid-control input[type="range"]::-webkit-slider-runnable-track {
  height: 8px;
  border-radius: 999px;
  background: #3b3b3b;
}

.covid-control input[type="range"]::-webkit-slider-thumb {
  width: 16px;
  height: 16px;
  margin-top: -4px;
  border: 1px solid #000000;
  border-radius: 50%;
  background: #3b3b3b;
  -webkit-appearance: none;
}

.covid-control input[type="range"]::-moz-range-track {
  height: 8px;
  border-radius: 999px;
  background: #3b3b3b;
}

.covid-control input[type="range"]::-moz-range-progress {
  height: 8px;
  border-radius: 999px;
  background: #3b3b3b;
}

.covid-control input[type="range"]::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border: 1px solid #000000;
  border-radius: 50%;
  background: #3b3b3b;
}

.covid-map-shell {
  margin-top: 14px;
  overflow: hidden;
  border: 0;
  border-radius: 8px;
  background: transparent;
}

.covid-map-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  padding: 14px;
  border-bottom: 0;
}

.covid-map-head h2 {
  margin-bottom: 0;
  color: var(--text);
  font-size: 20px;
}

.covid-map-head p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
  text-align: right;
}

.covid-map {
  display: grid;
  place-items: center;
  width: 100%;
  height: min(72vh, 720px);
  min-height: 520px;
  background: transparent;
}

.covid-map img {
  display: block;
  width: 100%;
  max-width: 1280px;
  height: 100%;
  object-fit: contain;
}

.covid-legend {
  display: grid;
  gap: 6px;
  max-width: 460px;
  padding: 0 14px 14px;
  color: var(--muted);
  font-size: 13px;
}

.covid-legend-top,
.covid-legend-scale {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.covid-legend-top {
  color: var(--text);
  font-weight: 700;
}

.covid-legend-gradient {
  height: 12px;
  border-radius: 999px;
}

.covid-error {
  margin: 0;
  padding: 14px;
  color: var(--text);
  font-weight: 700;
}

@media (max-width: 620px) {
  :root {
    --page-left: 12px;
  }

  body {
    font-size: 15px;
  }

  .site-header {
    padding-bottom: 14px;
  }

  h1 {
    font-size: 28px;
  }

  h2 {
    font-size: 21px;
  }

  .skill-list div,
  .entry-head {
    display: block;
  }

  .entry-head span {
    display: block;
    margin-top: 1px;
  }

  .hobby-gallery-grid {
    width: 100%;
    gap: 4px;
  }

  .hobby-gallery-card:last-child:nth-child(odd) {
    width: calc((100% - 4px) / 2);
  }

  .projects-page .projects-main {
    width: calc(100% - 12px);
  }

  .project-gallery {
    gap: 4px;
  }

  .project-thumb span {
    font-size: 14px;
  }

  .lightbox .lightbox-control {
    bottom: 28px;
    width: 56px;
    font-size: 96px;
  }

  .covid-main {
    width: calc(100% - 18px);
    padding-top: 58px;
  }

  .covid-controls,
  .covid-map-head {
    display: grid;
  }

  .covid-map-head p {
    text-align: left;
  }

  .covid-map {
    height: 560px;
    min-height: 560px;
  }
}
