*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  border: 0;
  outline: 0;
  box-sizing: border-box;
  font-weight: inherit;
  font-style: inherit;
  font-family: inherit;
  font-size: 100%;
  vertical-align: baseline;
}

html,
body,
#container {
  height: 100%;
}

body {
  background: #eee;
  font: 14px -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen",
    "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue",
    sans-serif;
  -webkit-text-size-adjust: 100%;
  color: #555;
  line-height: 1;
  width: 100%;
}

ol,
ul {
  list-style: none;
}

a {
  text-decoration: none;
  color: #258fb8;
  transition: color 0.2s;
}

a:hover {
  text-decoration: underline;
}

#container {
  position: relative;
}

#wrap {
  height: 100%;
  width: 100%;
  position: absolute;
  top: 0;
  left: 0;
  background: #eee;
  z-index: 1;
}

.outer {
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 20px;
}

.outer::before,
.outer::after {
  content: "";
  display: table;
}

.outer::after {
  clear: both;
}

#header {
  height: 200px;
  position: relative;
  border-bottom: 1px solid #ddd;
}

#header::before,
#header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 40px;
  z-index: 1;
}

#header::before {
  top: 0;
  background: linear-gradient(rgba(0, 0, 0, 0.25), transparent);
}

#header::after {
  bottom: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.25));
}

#banner {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("spacecraft.jpg") center #000;
  background-size: cover;
  z-index: -1;
}

#header-outer {
  height: 100%;
  position: relative;
}

#header-title {
  text-align: center;
  height: 40px;
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  margin-top: -20px;
  z-index: 2;
}

#logo {
  font-size: 40px;
  line-height: 40px;
  letter-spacing: 2px;
  text-decoration: none;
  color: #fff;
  font-weight: 300;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

#logo:hover {
  text-decoration: none;
  opacity: 0.9;
}

#header-inner {
  position: relative;
  overflow: hidden;
  z-index: 2;
}

#main-nav {
  float: left;
  margin-left: -15px;
}

.main-nav-link,
.nav-icon {
  float: left;
  color: #fff;
  opacity: 0.6;
  text-decoration: none;
  text-shadow: 0 1px rgba(0, 0, 0, 0.2);
  transition: opacity 0.2s;
  display: block;
  padding: 20px 15px;
}

.main-nav-link:hover,
.nav-icon:hover {
  opacity: 1;
  text-decoration: none;
}

.main-nav-link {
  font-weight: 300;
  letter-spacing: 1px;
}

.nav-icon {
  text-align: center;
  font-size: 14px;
  width: 14px;
  height: 14px;
  position: relative;
  cursor: pointer;
}

.nav-icon img {
  width: 16px;
  height: 16px;
  filter: brightness(0) invert(1);
}

#sub-nav {
  float: right;
  margin-right: -15px;
}

#main {
  margin-top: 50px;
}

#sidebar {
  margin-top: 50px;
}

#home .article-inner,
.about-widget {
  margin-top: 35px;
}

.article {
  margin: 50px 0;
}

.article:first-child {
  margin-top: 0;
}

.article-meta::before,
.article-meta::after {
  content: "";
  display: table;
}

.article-meta::after {
  clear: both;
}

.article-date {
  float: left;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #999;
  margin-bottom: 1em;
  margin-left: 5px;
  line-height: 1em;
  text-shadow: 0 1px #fff;
  font-weight: bold;
  font-size: 0.85em;
}

.article-inner {
  background: #fff;
  box-shadow: 1px 2px 3px #ddd;
  border: 1px solid #ddd;
  border-radius: 3px;
  overflow: hidden;
}

.article-header {
  padding: 20px 20px 0;
}

.article-title {
  text-decoration: none;
  font-size: 1.8em;
  font-weight: bold;
  color: #555;
  line-height: 1.2em;
  transition: color 0.2s;
}

a.article-title:hover {
  color: #258fb8;
  text-decoration: none;
}

.article-entry {
  color: #555;
  padding: 0 20px;
}

.article-entry::before,
.article-entry::after {
  content: "";
  display: table;
}

.article-entry::after {
  clear: both;
}

.article-entry p {
  line-height: 1.6em;
  margin: 1.6em 0;
}

.article-entry h1,
.article-entry h2,
.article-entry h3,
.article-entry h4,
.article-entry h5,
.article-entry h6 {
  font-weight: bold;
  line-height: 1.1em;
  margin: 1.1em 0;
}

.article-entry h1 {
  font-size: 2em;
}

.article-entry h2 {
  font-size: 1.5em;
}

.article-entry h3 {
  font-size: 1.3em;
}

.article-entry a {
  color: #258fb8;
}

.article-entry a:hover {
  text-decoration: underline;
}

.article-entry ul,
.article-entry ol {
  margin: 1em 20px;
  line-height: 1.6em;
}

.article-entry ul {
  list-style: disc;
}

.article-entry ol {
  list-style: decimal;
}

.article-entry strong {
  font-weight: bold;
}

.article-entry em {
  font-style: italic;
}

.article-entry code {
  font-family: "Source Code Pro", "Consolas", "Monaco", "Menlo", monospace;
  background: #f7f7f7;
  padding: 0.15em 0.4em;
  border-radius: 3px;
  font-size: 0.9em;
  color: #e74c3c;
}

.article-entry pre {
  background: #2d2d2d;
  color: #ccc;
  padding: 15px;
  overflow-x: auto;
  line-height: 1.6;
  border-radius: 3px;
  margin: 1.6em 0;
}

.article-entry pre code {
  background: none;
  color: #ccc;
  padding: 0;
  border-radius: 0;
  font-size: 13px;
}

.article-entry blockquote {
  font-family: Georgia, "Times New Roman", serif;
  margin: 1.6em 20px;
  text-align: center;
  font-style: italic;
  color: #777;
  border-left: 3px solid #258fb8;
  padding: 10px 20px;
  text-align: left;
  background: #f9f9f9;
}

.article-entry img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 1em auto;
  border-radius: 3px;
}

.article-more-link a {
  display: inline-block;
  line-height: 1em;
  padding: 6px 15px;
  border-radius: 15px;
  background: #eee;
  color: #999;
  text-shadow: 0 1px #fff;
  text-decoration: none;
  font-size: 0.85em;
}

.article-more-link a:hover {
  background: #258fb8;
  color: #fff;
  text-shadow: 0 1px #1e7293;
  text-decoration: none;
}

.article-footer {
  font-size: 0.85em;
  line-height: 1.6em;
  border-top: 1px solid #ddd;
  padding-top: 1.6em;
  margin: 0 20px 20px;
}

.article-footer::before,
.article-footer::after {
  content: "";
  display: table;
}

.article-footer::after {
  clear: both;
}

.article-footer a {
  color: #999;
  text-decoration: none;
}

.article-footer a:hover {
  color: #555;
}

.article-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.article-tag-list-item {
  display: inline;
}

.article-tag-list-link::before {
  content: "#";
}

.article-tag-list-link {
  color: #999;
  text-decoration: none;
  font-size: 0.95em;
}

.article-tag-list-link:hover {
  color: #258fb8;
}

#sidebar {
  margin-top: 30px;
}

.widget-wrap {
  margin: 0 0 30px;
}

.widget-title {
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #999;
  margin-bottom: 1em;
  line-height: 1em;
  text-shadow: 0 1px #fff;
  font-weight: bold;
  font-size: 0.85em;
}

.widget {
  background: #fff;
  box-shadow: 1px 2px 3px #ddd;
  border: 1px solid #ddd;
  border-radius: 3px;
  padding: 15px;
  line-height: 1.6em;
  color: #555;
}

.widget ul {
  list-style: none;
}

.widget ul li {
  padding: 5px 0;
  border-bottom: 1px dashed #eee;
}

.widget ul li:last-child {
  border-bottom: none;
}

.widget a {
  color: #258fb8;
  text-decoration: none;
}

.widget a:hover {
  text-decoration: underline;
}

.tagcloud {
  line-height: 2em;
}

.tagcloud a {
  display: inline-block;
  margin: 2px 4px;
  color: #999;
  text-decoration: none;
  transition: color 0.2s, transform 0.2s;
}

.tagcloud a:hover {
  color: #258fb8;
  text-decoration: none;
  transform: scale(1.05);
}

.about-widget p {
  line-height: 1.6em;
  margin-bottom: 8px;
}

.about-widget .social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.about-widget .social-links a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 12px;
  background: #f0f0f0;
  color: #555;
  font-size: 0.85em;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.about-widget .social-links a:hover {
  background: #258fb8;
  color: #fff;
  text-decoration: none;
}

#footer {
  border-top: 1px solid #ddd;
  padding: 20px 0;
  background: #eee;
}

#footer-info {
  color: #999;
  text-align: center;
  font-size: 0.85em;
  line-height: 1.6em;
}

#footer-info a {
  color: #258fb8;
}

.project-tech {
  color: #999;
  font-size: 0.85em;
}

.section-page .article-entry p {
  margin: 0.8em 0;
}

.section-page .project-item {
  margin-bottom: 1.2em;
  padding-bottom: 1.2em;
  border-bottom: 1px dashed #eee;
}

.section-page .project-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.section-page .project-title {
  font-weight: bold;
  font-size: 1.05em;
}

.cinema-collage {
  width: 100%;
  display: block;
  border-radius: 3px;
  margin: 1em 0;
}

.film-list,
.album-list,
.game-list {
  margin: 1em 0;
}

.film-list li,
.album-list li,
.game-list li {
  padding: 4px 0;
  line-height: 1.5em;
}

.quote-line {
  font-style: italic;
  color: #999;
  font-size: 0.9em;
  display: block;
  margin-top: 2px;
}

.skill-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 1em 0;
}

.skill-category h4 {
  font-weight: bold;
  margin-bottom: 4px;
  color: #555;
  font-size: 0.95em;
}

.skill-category p {
  margin: 0 !important;
  line-height: 1.5em !important;
  color: #777;
  font-size: 0.9em;
}

@media screen and (min-width: 768px) {
  #main {
    display: inline;
    float: left;
    width: 73.33%;
    margin: 0 0.83%;
  }

  #sidebar {
    display: inline;
    float: right;
    width: 23.33%;
    margin: 0 0.83%;
  }
}

@media screen and (max-width: 767px) {
  #header {
    height: 140px;
  }

  #logo {
    font-size: 28px;
  }

  .main-nav-link {
    padding: 15px 10px;
    font-size: 0.85em;
  }

  .nav-icon {
    padding: 15px 10px;
  }

  .article-title {
    font-size: 1.4em;
  }

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

@media screen and (max-width: 479px) {
  .main-nav-link {
    display: none;
  }

  #main-nav-toggle {
    display: block;
  }
}

@media screen and (min-width: 480px) {
  #main-nav-toggle {
    display: none;
  }
}

#mobile-nav {
  display: none;
}
