:root {
  --bg:      #0d0d0d;
  --text:    #e8d5b7;   /* warm off-white */
  --heading: #f5a623;   /* amber */
  --link:    #f0c040;   /* gold */
  --dim:     #5a5a5a;   /* muted */
  --border:  rgba(245, 166, 35, 0.25);
}

* {
  margin: 0;
  padding: 0;
}

ul {
  list-style-type: none;
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: "Fira Mono", monospace;
  font-size: 13px;
  line-height: 1.6;
}

b, strong, h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
}

#container {
  position: relative;
  margin: 10px auto 0;
  max-width: 800px;
  padding: 0 16px 60px;
}

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

a:hover {
  text-decoration: underline;
}

/* nav */
#top-nav {
  border-bottom: 1px solid var(--border);
  margin-bottom: 28px;
  overflow: hidden;
}

#top-nav > ul > li {
  float: left;
}

#top-nav > ul > li.right {
  float: right;
}

#top-nav > ul > li > a {
  display: block;
  color: var(--dim);
  padding: 14px 13px;
  text-decoration: none;
  transition: color 0.15s;
}

#top-nav > ul > li > a:hover {
  color: var(--text);
  text-decoration: none;
}

#top-nav > ul > li > a.active {
  color: var(--heading);
}

/* page heading */
h1.title {
  color: var(--heading);
  margin-bottom: 24px;
  font-size: 1.4em;
}

/* profile image */
.logo {
  float: right;
  margin-left: 16px;
  margin-bottom: 12px;
}

.self-portrait {
  border-radius: 50%;
  border: 2px solid var(--border);
}

/* content */
p.content {
  max-width: 560px;
  line-height: 1.75;
  color: var(--text);
}

/* socials */
#socials {
  margin-top: 32px;
  color: var(--dim);
  font-size: 12px;
  letter-spacing: 0.03em;
}

#socials a {
  color: var(--link);
}

/* divider */
.divider {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 32px 0;
}

/* footer */
footer {
  margin-top: 48px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: 11px;
  color: var(--dim);
  text-align: center;
}

footer a {
  color: var(--dim);
}

footer a:hover {
  color: var(--text);
  text-decoration: none;
}

/* about page */
.about-content {
  max-width: 560px;
  line-height: 1.75;
  margin-top: 8px;
}

.about-content p {
  margin-bottom: 16px;
}

/* 404 */
.error-msg {
  margin: 40px 0 20px;
}

@media (max-width: 650px) {
  .logo {
    float: none;
    display: block;
    margin: 0 0 20px;
  }

  .hide-mobile {
    display: none;
  }
}
