@font-face {
  font-family: 'Berkeley Mono';
  src:  url('/fonts/BerkeleyMono-Regular.woff2') format('woff2'),
        url('/fonts/BerkeleyMono-Regular.woff') format('woff');
  font-weight: 400 /* Normal */;
}

@font-face {
  font-family: 'Berkeley Mono';
  src:  url('/fonts/BerkeleyMono-Italic.woff2') format('woff2'),
        url('/fonts/BerkeleyMono-Italic.woff') format('woff');
  font-weight: 400 /* Normal */;
  font-style: italic;
}

@font-face {
  font-family: 'Berkeley Mono';
  src:  url('/fonts/BerkeleyMono-Bold.woff2') format('woff2'),
        url('/fonts/BerkeleyMono-Bold.woff') format('woff');
  font-weight: 700 /* Bold */;
}

@font-face {
  font-family: 'Berkeley Mono';
  src:  url('/fonts/BerkeleyMono-BoldItalic.woff2') format('woff2'),
        url('/fonts/BerkeleyMono-BoldItalic.woff') format('woff');
  font-weight: 700 /* Bold */;
  font-style: italic;
}

/* Generic styles for all pages */
body {
  font-family: 'Berkeley Mono', Menlo, Consolas, Monaco, Liberation Mono, Lucida Console, monospace;
  color: #000;
  font-size: 16px;
  text-align: left;
  word-wrap: break-word;
  overflow-wrap: break-word;
  line-height: 1.5;

  margin: auto;
  padding: 20px;
  background-color: #fff;
}

a {
  color: #3273dc;
}

a:visited {
  color: #8b6fcb;
}

h1, h2, h3, h4, h5 {
  color: #000;
}

table {
  width: 100%;
  text-align: center;
  border-collapse: collapse;
}

table, th, td {
  border: 3px solid #000;
}

th {
  background-color: #f2f2f2;
}

img {
  padding: 3px;
  border: 3px solid #000;
  max-width: 100%;
  margin: 0 auto;
}

.notbyai {
  border: 0;
  padding: 10px;
}

.asterism {
  font-size: 1.5em;
}

/* Inline code */
code {
  padding: 2px 5px;
}

pre {
  margin: 0;
}

pre, code {
  font-family: inherit;
  background-color: #f2f2f2;
}

/* Fixes iOS bug with inconsistent text size */
code {
  text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
}

/* Code listings */
pre > code {
  color: #222;
  display: block;
  padding: 20px;
  white-space: pre;
  overflow: auto;
  border: 3px solid #000;
  background-color: #fff;
}

blockquote {
  border-left: 1px solid #999;
  color: #222;
  padding-left: 20px;
  font-style: italic;
}

/* Top header */
.navigation-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-areas: "logo nagivation";
  align-items: center;
  justify-content: stretch;
  text-align: center;
  margin-bottom: 10px;
}

.navigation-header > .logo {
  grid-area: logo;
}

.navigation-header > nav {
  grid-area: nagivation;
}

@media (max-width: 750px) {
  .navigation-header {
    grid-template-columns: auto;
    grid-template-areas: "logo"
                         "nagivation";
  }
}

.navigation-header a {
  text-decoration: none;
}

nav > a {
  font-size: 20px;
  margin-right: 10px;
  color: #000;
  border-top: 3px solid #000;
}

nav > a:visited {
  color: #000;
}

nav > a:hover {
  font-weight: bold;
}

/* Index page */
.index-page {
  display: grid;
  gap: 40px;
  grid-template-columns: auto 12rem minmax(0, 38rem) auto;
  grid-template-areas: ". portrait intro .";
}

.index-page > img {
  max-width: 12rem;
  grid-area: portrait;
}

.index-page > div {
  grid-area: intro;
}

@media (max-width: 750px) {
  .index-page {
    gap: 0px;
    grid-template-columns: auto;
    grid-template-areas: "portrait"
                         "intro";
  }

  .index-page h2 {
    text-align: center;
  }
}

/* Pages with content in the center */
.list-page,
.article-page {
  display: grid;
  grid-template-columns: auto minmax(0, 50rem) auto;
  grid-template-areas: ". content .";
}

content {
  grid-area: content;
  line-height: 1.6;
}

ul.blog-posts {
  list-style-type: none;
  padding: unset;
}

ul.blog-posts li {
  display: flex;
}

ul.blog-posts li span {
  flex: 0 0 130px;
}

/* Footer */
footer {
  padding: 25px;
  text-align: center;
}

/* Newsletter widget */
.newsletter-form {
  margin-top: 10px;
}

input {
  font-family: inherit;
  font-size: inherit;
  border: 3px solid #000;
}

button {
  font-family: inherit;
  font-size: inherit;
  border: 3px solid #000;
  background-color: #f2f2f2;
}

/* Conversation sections */

.conversation {
  margin-left: 30px;
  margin-bottom: 20px;
  display: grid;
  gap: 20px;
  grid-template-columns: 6rem auto;
  grid-template-areas: "avatar text";
  align-items: center;
}

@media (max-width: 750px) {
  .conversation {
    margin-left: 0;
    grid-template-columns: 5rem auto;
  }
}

.conversation-avatar {
  grid-area: avatar;
  border: 0px;
}

.conversation-text {
  grid-area: text;
  vertical-align: middle;
}

/* Series */
.series {
  border: 3px solid #000;
  padding: 20px;
}

.series > h2, .series > p, .series > ul {
  margin: 0;
}
