:root {
  --canvas: #0a0e14;
  --ink: #0b1e33;
  --green: #16e88c;
  --green-d: #0fa968;
  --paper: #eef2f6;
  --muted: #5c6b7a;
  /* Derived from --ink. All hold AA with --ink text or white text. */
  --navbar: #304052;
  --hdr: #dce3ea;
  --label: #c9d4e0;
  --value: #e8edf3;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 12px/1.45 Verdana, Tahoma, Arial, sans-serif;
}

a {
  color: var(--ink);
  font-weight: bold;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.skip {
  position: absolute;
  top: -40px;
  left: 8px;
  padding: 4px 8px;
  background: #fff;
  color: var(--ink);
}

.skip:focus {
  top: 8px;
}

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.sep {
  padding: 0 4px;
}

/* the white 800px slab */

.slab {
  max-width: 800px;
  margin: 0 auto;
  background: #fff;
}

.util {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 4px 10px;
  background: var(--ink);
  color: var(--paper);
  font-size: 11px;
}

.util a,
.band a,
.navbar a {
  color: #fff;
}

.util :focus-visible,
.band :focus-visible,
.navbar :focus-visible {
  outline-color: #fff;
}

.band {
  display: flex;
  align-items: center;
  height: 96px;
  padding: 0 20px;
  background: var(--ink);
  border-bottom: 3px solid var(--green);
}

.band img {
  display: block;
  width: 220px;
  height: auto;
}

.navbar {
  padding: 5px 8px;
  background: var(--navbar);
  color: #fff;
  text-align: center;
  font-size: 11px;
}

.navbar a {
  font-weight: normal;
  text-decoration: underline;
}

.cols {
  display: grid;
  grid-template-columns: 300px 435px;
  column-gap: 20px;
  padding: 14px 0 24px 20px;
}

/* Profile: three blocks so phones read name and contact, then the blog,
   blurbs, friends and comments, then the resume boxes. Desktop puts the
   resume boxes back under the left column. */
.cols-profile {
  grid-template-rows: auto 1fr;
}

.cols-profile > .left-top {
  grid-column: 1;
  grid-row: 1;
}

.cols-profile > .left-rest {
  grid-column: 1;
  grid-row: 2;
}

.cols-profile > .right {
  grid-column: 2;
  grid-row: 1 / span 2;
}

/* left column: blue-style boxes */

.lbox {
  border: 1px solid var(--ink);
  margin-bottom: 12px;
}

.lbox h2 {
  margin: 0;
  padding: 2px 0 2px 1.5em;
  background: var(--ink);
  color: #fff;
  font-size: 12px;
}

h1 {
  margin: 0 0 6px;
  font-size: 16px;
}

.info {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 12px;
  margin-bottom: 10px;
}

.info img {
  display: block;
  width: 150px;
  height: 150px;
}

.info p {
  margin: 0 0 10px;
}

.rows p {
  margin: 0 0 3px;
  padding-left: 3px;
}

.rows {
  margin-bottom: 12px;
}

.contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 6px;
  list-style: none;
  margin: 0;
  padding: 6px 8px;
  font-size: 11px;
}

.contact a,
.contact button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 24px;
  color: var(--ink);
  font: bold 11px Verdana, Tahoma, Arial, sans-serif;
}

.contact button {
  padding: 0;
  background: none;
  border: 0;
  cursor: pointer;
  text-align: left;
}

.contact button:hover {
  text-decoration: underline;
}

html:not(.js) [data-fav-item] {
  display: none;
}

.ico {
  flex: none;
  width: 16px;
  height: 16px;
  fill: none;
  stroke: var(--muted);
  stroke-width: 1.3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.url {
  padding: 6px 8px;
}

.url p {
  margin: 0;
}

.url p + p {
  padding-left: 1em;
  overflow-wrap: anywhere;
}

.tbl {
  width: 100%;
  border-collapse: separate;
  border-spacing: 3px;
}

.tbl th,
.tbl td {
  padding: 3px 4px;
  vertical-align: top;
  text-align: left;
}

.tbl th {
  width: 92px;
  background: var(--label);
}

.tbl td {
  background: var(--value);
  overflow-wrap: anywhere;
}

/* right column: header bars, no box */

.rbox {
  margin-bottom: 16px;
}

.rbox h2,
.day {
  margin: 0 0 8px;
  padding: 2px 0 2px 1.5em;
  background: var(--hdr);
  border-top: 1px solid var(--ink);
  font-size: 12px;
}

.network {
  display: grid;
  place-items: center;
  min-height: 75px;
  margin: 0 0 16px;
  padding: 8px;
  border: 1px solid var(--ink);
  text-align: center;
  font-size: 16px;
  font-weight: bold;
  text-wrap: balance;
}

.blurbs {
  padding: 0 4px;
  font-size: 13px;
}

.blurbs h2,
.blurbs h3 {
  margin: 0 0 4px;
  font-size: 12px;
}

.blurbs p {
  margin: 0 0 10px;
}

.blurbs p + h2,
.blurbs p + h3,
.blurbs .lbox + h2,
.blurbs .lbox + h3 {
  margin-top: 14px;
}

.blurbs a {
  text-decoration: underline;
}

.count {
  margin: 0 0 8px;
  padding: 0 4px;
  font-weight: bold;
}

.count a {
  text-decoration: underline;
}

.nw {
  white-space: nowrap;
}

.chip {
  display: inline-block;
  padding: 0 5px;
  background: var(--ink);
  color: var(--green);
}

.friends {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px 4px;
  list-style: none;
  margin: 0;
  padding: 0;
  text-align: center;
}

/* Name on top, logo pinned to the bottom so a wrapped name
   does not knock its logo out of line with the row. */
.friends a {
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  overflow-wrap: anywhere;
}

.friends img {
  margin-top: auto;
}

/* Keeps "Iron Vanguard" on one line when it fits, and breaks at the
   space (or the soft hyphen) when it doesn't. */
.friends .ib {
  display: inline-block;
}

.friends img {
  display: block;
  width: 76px;
  height: 76px;
  padding-top: 4px;
  box-sizing: content-box;
}

.more {
  margin: 8px 4px 0;
  text-align: right;
}

.more a {
  text-decoration: underline;
}

.comments {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid var(--ink);
}

.comments li {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
}

.comments li + li {
  border-top: 1px solid #fff;
}

.who {
  padding: 8px;
  background: var(--ink);
  border-right: 1px solid #fff;
  color: var(--paper);
  text-align: center;
  overflow-wrap: anywhere;
}

.who b {
  display: block;
  color: var(--green);
}

.who a {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  color: var(--paper);
  font-weight: normal;
  text-decoration: underline;
}

.who :focus-visible {
  outline-color: var(--paper);
}

.said {
  padding: 8px 10px;
  background: var(--value);
  font-size: 13px;
}

.said blockquote,
.said p {
  margin: 0;
}

/* blog: the profile's latest entry box and the /blog/ pages */

.blogbox {
  margin: 0 0 16px;
  padding: 6px 8px 8px;
  border: 1px solid var(--ink);
}

.blogbox h2 {
  display: inline;
  margin: 0 4px 0 0;
  font-size: 13px;
}

.blogbox ul {
  list-style: none;
  margin: 6px 0 0;
  padding: 0;
}

.blogbox li + li {
  margin-top: 6px;
}

.blogbox .more {
  margin: 6px 0 0;
}

.blogbox .aux {
  white-space: nowrap;
}

.aux {
  margin: 0 0 8px;
  font-size: 11px;
}

.aux a,
.blogbox li a {
  font-weight: normal;
  text-decoration: underline;
}

/* The entry comes first in the source so it leads on phones. On
   desktop the sidebar moves back to the left column. */
.cols-blog {
  row-gap: 20px;
}

.cols-blog > aside {
  grid-column: 1;
  grid-row: 1;
}

.cols-blog > main {
  grid-column: 2;
  grid-row: 1;
}

.name {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: bold;
}

.day {
  font-weight: bold;
}

.entry {
  margin-bottom: 28px;
}

.entry > h2 {
  margin: 0 0 6px;
  font-size: 14px;
}

.entry > h1,
.entry > h2,
.entry .rows p {
  padding-left: 4px;
}

.mood {
  vertical-align: -4px;
}

.posted {
  margin: 0;
  padding: 4px 4px 0;
  border-top: 1px solid var(--hdr);
  font-size: 11px;
}

.posted a {
  text-decoration: underline;
  white-space: nowrap;
}

.plans {
  font-size: 12px;
}

.plans th {
  width: 130px;
}

.plans .price {
  font-weight: normal;
}

.plans .chip {
  margin-bottom: 3px;
  white-space: nowrap;
}

/* footer outside the slab */

.foot {
  max-width: 800px;
  margin: 0 auto;
  padding: 14px 12px 28px;
  text-align: center;
  font: 11px/1.6 Arial, Helvetica, sans-serif;
}

.foot p {
  margin: 0 0 8px;
}

.foot a {
  text-decoration: underline;
  white-space: nowrap;
}

.foot .sep {
  padding: 0 1px 0 4px;
}

@media (max-width: 799px) {
  .cols {
    grid-template-columns: minmax(0, 1fr);
    padding: 12px 12px 20px;
  }

  .cols-blog > aside,
  .cols-blog > main,
  .cols-profile > .left-top,
  .cols-profile > .left-rest,
  .cols-profile > .right {
    grid-column: auto;
    grid-row: auto;
  }

  .cols-profile {
    grid-template-rows: none;
  }

  .band {
    height: 80px;
    padding: 0 12px;
  }

  .band img {
    width: 180px;
  }
}

@media (max-width: 420px) {
  .info {
    grid-template-columns: 110px minmax(0, 1fr);
  }

  .info img {
    width: 110px;
    height: 110px;
  }

  .friends img {
    width: 60px;
    height: 60px;
  }

  .comments li {
    grid-template-columns: 104px minmax(0, 1fr);
  }

  .who {
    padding: 8px 4px;
  }

  .friends a {
    font-size: 11px;
  }

  .plans th {
    width: 104px;
  }

  .posted {
    line-height: 2.2;
  }

  /* Phones: drop the pipes and space the footer links out so they wrap
     cleanly and stay easy to tap. */
  .foot p:first-child {
    line-height: 2.2;
  }

  .foot .sep {
    display: none;
  }

  .foot a {
    display: inline-block;
    margin: 0 5px;
  }
}

@media (max-width: 359px) {
  .friends a {
    font-size: 10px;
  }

  .friends img {
    width: 48px;
    height: 48px;
  }

  /* Five columns get tight here: hyphenate long names properly
     instead of letting them break anywhere. */
  .friends a {
    -webkit-hyphens: auto;
    hyphens: auto;
  }

  .navbar {
    padding: 5px 4px;
  }

  .navbar .sep {
    padding: 0 2px;
  }

  .posted .sep {
    padding: 0 2px;
  }
}

/* Windows contrast themes would turn the banner white and erase the
   light lettering in the logo. */
@media (forced-colors: active) {
  .band {
    forced-color-adjust: none;
  }
}
