/* Layout follows devan.cv, scaled up 20%. Times New Roman.
   Body stays content-box so width is the text column. */

:root {
  --text: #111;
  --muted: #8a8a8a;
  --line: #dadada;
  --bg: #fff;
  --serif: "Times New Roman", Times, serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  box-sizing: content-box;
  margin: 7em auto;
  padding: 0 88.8px 0 266.4px;
  width: 510px;
  position: relative;
  background: var(--bg);
  color: var(--text);
  font: 13.2px/1.8 var(--serif);
  word-wrap: break-word;
}

::selection { background: #b3d4fd; }

.sidebar {
  width: 192px;
  position: absolute;
  left: 0;
  top: 0;
  text-align: right;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 14.4px;
  text-transform: uppercase;
  letter-spacing: 2.079px;
  margin-bottom: 1em;
}

.sidebar a { display: block; }

.logo {
  display: block;
  text-align: right;
  margin: 0 0 3em;
  color: inherit;
  text-decoration: none;
  background: none;
  text-shadow: none;
}

/* Shrink to the name, sit on the sidebar's right edge, and
   center the photo over that name. */
.logo.hasAvatar {
  display: inline-block;
  width: auto;
  text-align: center;
  word-spacing: normal;
}

.logo.hasAvatar span {
  display: block;
  margin-top: 0.45em;
  line-height: 1.15;
  letter-spacing: 2.079px;
  margin-right: -2.079px;
}

.avatar {
  width: 50.4px;
  height: 50.4px;
  object-fit: cover;
  object-position: center 18%;
  display: block;
  margin: -0.1em auto 0;
}

.sidebar nav a {
  color: var(--muted);
  text-decoration: none;
  background: none;
  text-shadow: none;
  line-height: 1.8;
  white-space: nowrap;
}

.sidebar nav a[aria-current="page"] { color: var(--muted); }

.sidebar nav a:hover { color: var(--text); }

h1 {
  font-family: var(--serif);
  font-size: 1.55em;
  font-weight: normal;
  line-height: 1.3;
  letter-spacing: normal;
  text-transform: none;
  margin: 0 0 1em;
}

h2, h3 {
  font-family: var(--serif);
  font-size: 13.2px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2.079px;
  margin: 2em 0 1em;
  line-height: 1.4;
}

.entry p,
.entry > ul,
.entry > ol { margin: 1.6em 0; }

a { color: inherit; text-decoration: none; }

ul, ol { padding-left: 1.5em; }
ul { list-style-type: circle; }
li { margin: 0.15em 0; }

.entry a {
  color: inherit;
  text-decoration: none;
  text-shadow:
    0.03em 0 #fff, -0.03em 0 #fff,
    0 0.03em #fff, 0 -0.03em #fff,
    0.06em 0 #fff, -0.06em 0 #fff,
    0.09em 0 #fff, -0.09em 0 #fff;
  background-image:
    linear-gradient(#fff, #fff),
    linear-gradient(#fff, #fff),
    linear-gradient(#555, #555);
  background-size: 0.05em 1px, 0.05em 1px, 0.1em 1px;
  background-repeat: no-repeat, no-repeat, repeat-x;
  background-position: 0 95%, 100% 95%, 0 95%;
}

.entry a:hover {
  color: blue;
  background-image:
    linear-gradient(#fff, #fff),
    linear-gradient(#fff, #fff),
    linear-gradient(blue, blue);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid #111;
  outline-offset: 2px;
}

hr {
  border: none;
  border-top: 1px solid var(--line);
  width: 8em;
  margin: 2em 0;
}

pre, code {
  font-family: "Courier New", ui-monospace, Menlo, Consolas, monospace;
  font-size: 0.92em;
}

pre {
  padding: 0.7em 1em;
  margin: 1em -0.5em;
  background: rgba(0, 0, 0, 0.03);
  overflow-x: auto;
  line-height: 1.5;
}

table {
  border-collapse: collapse;
  width: 100%;
  margin: 1em 0;
  font-size: 0.92em;
}
th, td {
  border: 1px solid var(--line);
  padding: 6px 9.6px;
  text-align: left;
  vertical-align: top;
}

@media screen and (max-width: 933px) {
  body {
    width: auto;
    max-width: none;
    margin: 2em auto;
    padding: 0 2em;
  }

  .sidebar {
    position: relative;
    width: 100%;
    text-align: center;
    margin: 0 0 3em;
  }

  .sidebar a { display: inline-block; }

  .sidebar .logo {
    margin: 0 0 0.85em;
    display: block;
    text-align: center;
  }

  .logo.hasAvatar {
    display: inline-block;
    word-spacing: 0;
  }

}
