/*! modern-normalize v0.7.0 | MIT License | https://github.com/sindresorhus/modern-normalize */

/*
Document
========
*/

/**
Use a better box model (opinionated).
*/

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

/**
Use a more readable tab size (opinionated).
*/

:root {
  -moz-tab-size: 4;
  tab-size: 4;
}

/**
1. Correct the line height in all browsers.
2. Prevent adjustments of font size after orientation changes in iOS.
*/

html {
  line-height: 1.15; /* 1 */
  -webkit-text-size-adjust: 100%; /* 2 */
}

/*
Sections
========
*/

/**
Remove the margin in all browsers.
*/

body {
  margin: 0;
}

/*
Grouping content
================
*/

/**
Add the correct height in Firefox.
*/

hr {
  height: 0;
}

/*
Text-level semantics
====================
*/

/**
Add the correct text decoration in Chrome, Edge, and Safari.
*/

abbr[title] {
  text-decoration: underline dotted;
}

/**
Add the correct font weight in Edge and Safari.
*/

b,
strong {
  font-weight: bolder;
}

/**
1. Improve consistency of default fonts in all browsers. (https://github.com/sindresorhus/modern-normalize/issues/3)
2. Correct the odd 'em' font sizing in all browsers.
*/

code,
kbd,
samp,
pre {
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", Menlo,
    monospace; /* 1 */
  font-size: 1em; /* 2 */
}

/**
Add the correct font size in all browsers.
*/

small {
  font-size: 80%;
}

/**
Prevent 'sub' and 'sup' elements from affecting the line height in all browsers.
*/

sub,
sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}

sub {
  bottom: -0.25em;
}

sup {
  top: -0.5em;
}

/*
Forms
=====
*/

/**
1. Change the font styles in all browsers.
2. Remove the margin in Firefox and Safari.
*/

button,
input,
optgroup,
select,
textarea {
  font-family: inherit; /* 1 */
  font-size: 100%; /* 1 */
  line-height: 1.15; /* 1 */
  margin: 0; /* 2 */
}

/**
Remove the inheritance of text transform in Edge and Firefox.
1. Remove the inheritance of text transform in Firefox.
*/

button,
select {
  /* 1 */
  text-transform: none;
}

/**
Correct the inability to style clickable types in iOS and Safari.
*/

button,
[type="button"],
[type="reset"],
[type="submit"] {
  -webkit-appearance: button;
}

/**
Remove the inner border and padding in Firefox.
*/

button::-moz-focus-inner,
[type="button"]::-moz-focus-inner,
[type="reset"]::-moz-focus-inner,
[type="submit"]::-moz-focus-inner {
  border-style: none;
  padding: 0;
}

/**
Restore the focus styles unset by the previous rule.
*/

button:-moz-focusring,
[type="button"]:-moz-focusring,
[type="reset"]:-moz-focusring,
[type="submit"]:-moz-focusring {
  outline: 1px dotted ButtonText;
}

/**
Remove the padding so developers are not caught out when they zero out 'fieldset' elements in all browsers.
*/

legend {
  padding: 0;
}

/**
Add the correct vertical alignment in Chrome and Firefox.
*/

progress {
  vertical-align: baseline;
}

/**
Correct the cursor style of increment and decrement buttons in Safari.
*/

[type="number"]::-webkit-inner-spin-button,
[type="number"]::-webkit-outer-spin-button {
  height: auto;
}

/**
1. Correct the odd appearance in Chrome and Safari.
2. Correct the outline style in Safari.
*/

[type="search"] {
  -webkit-appearance: textfield; /* 1 */
  outline-offset: -2px; /* 2 */
}

/**
Remove the inner padding in Chrome and Safari on macOS.
*/

[type="search"]::-webkit-search-decoration {
  -webkit-appearance: none;
}

/**
1. Correct the inability to style clickable types in iOS and Safari.
2. Change font properties to 'inherit' in Safari.
*/

::-webkit-file-upload-button {
  -webkit-appearance: button; /* 1 */
  font: inherit; /* 2 */
}

/*
Interactive
===========
*/

/*
Add the correct display in Chrome and Safari.
*/

summary {
  display: list-item;
}

/*
========================================
*/

:root {
  /* font-size: 12px; */
  /* --display-font-family: "Proxima Nova";
  --body-font-family: "system"; */
  --base-font-size: 16px;
  --scale: 1.1;
  --p-size: var(--base-font-size);
  --h6-size: calc(var(--base-font-size) * var(--scale));
  --h5-size: calc(var(--h6-size) * var(--scale));
  --h4-size: calc(var(--h5-size) * var(--scale));
  --h3-size: calc(var(--h4-size) * var(--scale));
  --h2-size: calc(var(--h3-size) * var(--scale));
  --h1-size: calc(var(--h2-size) * var(--scale));
  --h0-size: calc(var(--h1-size) * var(--scale));
  --s1-size: calc(var(--base-font-size) / var(--scale));
  --s2-size: calc(var(--s1-size) / var(--scale));
  --s3-size: calc(var(--s2-size) / var(--scale));

  --gap0: calc(var(--base-font-size) / 4);
  --gap1: calc(var(--gap0) * 2);
  --gap2: calc(var(--gap1) * 2);
  --gap3: calc(var(--gap2) * 2);
  --gap4: calc(var(--gap3) * 2);
  --gap5: calc(var(--gap4) * 2);

  --color-primary: #900;
  --color-secondary: #09c;
  --color-peach: #ff684e;
  --color-terminal-green: #33ff99;
  --color-not-white: #ffede8;
  --color-black: #333;
  --color-gray10: #f0f0f0;
  --color-gray20: #e9e9e9;
  --color-gray30: #eee;
  --color-gray40: #ddd;
  --color-gray50: #ccc;
  --color-gray60: #998;
  --color-gray70: #776;
  --color-gray80: #665;
  --color-gray90: #553;

  --content-width: 80vh;
  --content-max-width: 700px;
  --content-min-width: 400px;
}

@media (max-width: 700px) {
  :root {
    --content-width: 100%;
    --content-max-width: 100%;
    --content-min-width: 100%;
  }
}

@media (min-width: 900px) {
  :root {
    --base-font-size: 18px;
    --scale: 1.1;
  }
}

body,
p,
ul,
ol {
  font-size: var(--p-size);
  line-height: 1.5;
}
h6,
h5,
h4,
h3,
h2,
h1 {
  font-weight: bold;
  margin: var(--base-font-size) 0;
}
h6 {
  font-size: var(--h6-size);
}
h5 {
  font-size: var(--h5-size);
}
h4 {
  font-size: var(--h4-size);
}
h3 {
  font-size: var(--h3-size);
}
h2 {
  font-size: var(--h2-size);
}
h1 {
  font-size: var(--h1-size);
}

body {
  background-color: var(--color-not-white);
}

a {
  color: var(--color-primary);
}

a:hover {
  color: var(--color-secondary);
}

/**
Improve consistency of default fonts in all browsers. (https://github.com/sindresorhus/modern-normalize/issues/3)
*/

html,
body {
  height: 100%;
}

body {
  font-family: source-code-pro, ballinger-mono, system-ui, -apple-system,
    /* Firefox supports this but not yet `system-ui` */ "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
}

h2 {
  /* font-family: ballinger; */
  font-weight: 300;
}

.container {
  padding: var(--gap1);
}

@media (min-width: 701px) {
  .container {
    width: 90vw;
    min-width: 512px;
    max-width: 1024px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: var(--gap3);
  }
}

@media (min-width: 701px) {
  header {
    width: 200px;
    display: flex;
    flex-direction: column;
  }

  header .monogram-logo {
    margin: var(--gap2);
  }
}

@media (max-width: 700px) {
  header {
    /* display: grid;
    grid-template-columns: auto 1fr; */
    display: flex;
    align-items: flex-start;
    position: sticky;
    top: 0;
    background: var(--color-not-white);
    z-index: 1000;
    border-bottom: 1px dotted var(--color-gray50);
  }

  header .monogram-logo {
    width: 100px;
    padding: var(--gap1);
    padding-top: 0;
    margin-top: calc(var(--gap1) * -1);
  }
}

.main-nav {
  margin-top: calc(var(--gap1) * -1);
  align-self: stretch;
  list-style-type: none;
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
}

@media (max-width: 700px) {
  .main-nav {
    flex: 1;
    margin-left: var(--gap2);
  }
}

.main-nav__item {
  margin: 0;
  padding: 0;
  display: block;
  flex: 1;
  color: var(--color-primary);
  font-weight: 500;
  letter-spacing: 0.025em;
  border-bottom: 1px dotted var(--color-gray50);
  position: relative;
}

.main-nav__item--active {
  color: var(--color-black);
  font-weight: 700;
}

.main-nav__item a {
  display: block;
  text-decoration: none;
  text-transform: uppercase;
  color: inherit;
  font-size: var(--s2-size);
  padding: var(--gap1) var(--gap2);
}

@media (max-width: 700px) {
  .main-nav__item {
    border: none;
  }
  .main-nav__item a {
    font-size: var(--s3-size);
  }
}

.main-nav__item a:hover {
  color: var(--color-secondary);
}

.main-nav__item a::before {
  position: absolute;
  left: 0;
  content: "#";
  color: var(--color-gray50);
  opacity: 0.9;
}

.main-nav__item--active a::before {
  color: var(--color-primary);
  opacity: 0.5;
}

footer {
  grid-column-start: 1;
  grid-column-end: -1;
  margin-top: var(--gap5);
  padding: var(--gap3);
  border-top: 1px dotted var(--color-gray50);
  color: var(--color-gray70);
  text-align: center;
}

/**
 * PAGES
 * ====================
 **/

.page-title {
  color: var(--color-peach);
  font-size: var(--h4-size);
  font-weight: 300;
  text-transform: uppercase;
  display: flex;
  width: 100%;
  margin-top: var(--gap4);
  margin-bottom: var(--gap3);
}

.page-title::before,
.page-title::after {
  content: "";
  background: var(--color-peach);
  flex: 1;
  height: 1px;
  position: relative;
  top: calc(var(--h4-size) / 2 + 4px);
  opacity: 0.5;
}

.page-title::before {
  margin-right: var(--gap2);
}

.page-title::after {
  margin-left: var(--gap2);
}

.page-title a {
  color: var(--color-black);
  text-decoration: none;
  position: relative;
  transition-property: opacity, color;
  transition-duration: 0.5s;
}

.page-title a:hover {
  color: var(--color-primary);
}

.page-title a:hover::before {
  color: var(--color-black);
  opacity: 1;
}

/**
 * POST LIST
 * ====================
 **/

.post-list {
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: var(--gap2);
}

@media (max-width: 700px) {
  .post-list {
    grid-template-columns: 1fr;
  }
}

.post-list__item {
  padding: var(--gap2) 0;
  margin-bottom: var(--gap3);
  display: flex;
  flex-direction: column-reverse;
  justify-content: flex-end;
  border-bottom: 1px dotted var(--color-gray50);
}

.post-list__item__link {
  display: block;
  text-decoration: none;
}

.post-list__item__date {
  margin-bottom: var(--gap0);
  display: block;
  font-weight: 700;
  font-size: var(--s3-size);
  opacity: 0.5;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.about-this-page {
  padding: var(--gap2);
  margin-bottom: var(--gap2);
  border: 1px dotted var(--color-gray60);
}

.about-this-page em {
  color: var(--color-gray70);
}

.post h2 {
  font-size: var(--h4-size);
  font-weight: 300;
  color: var(--color-gray80);
  opacity: 0.95;
  margin-top: var(--gap4);
  margin-bottom: var(--gap2);
}

.post h2 a {
  text-decoration: none;
  opacity: 0.25;
  font-weight: 700;
  font-size: var(--h5-size);
  transition-property: opacity;
  transition-duration: 0.5s;
}

.post h2:hover a {
  opacity: 1;
}

.post code {
  display: inline-block;
  padding: 0 var(--gap0);
  background: var(--color-black);
  color: var(--color-terminal-green);
}
