:root {
  --background: #fafafa;
  --text: #333333;
  --link: #d7513c;
  --link-hover: #d7513c;
  --link_visited: #d7513c;
  --accent1: #333333;
  --accent2: #93959a;
  --accent-1: #f6f6f6;
  --accent-2: #d4d4d6;
  --accent-3: #93959a;
  --code: #e3e3e6;
  --highlight: #e3e3e6;
  --button-text: #fafafa;
  --sans-serif-font: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --serif-font: Georgia, serif;
  --mono-space-font: ui-monospace, SFMono-Regular, Monaco, "Andale Mono", "Ubuntu Mono", monospace;
  --font_monospace_code: var(--mono-space-font);
  --font-weight-normal: 400;
  --font-weight-bold: 700;
  --header-width: 94rem;
  --site-width: 52rem;
  --photos-wide: 120rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: #333333;
    --text: #fafafa;
    --link: #d7513c;
    --link-hover: #d7513c;
    --link_visited: #d7513c;
    --accent1: #fafafa;
    --accent2: #d4d4d6;
    --accent-1: #3d4149;
    --accent-2: #53565d;
    --accent-3: #d4d4d6;
    --code: #53565d;
    --highlight: #53565d;
    --button-text: #333333;
  }
}

html {
  box-sizing: border-box;
  font-size: inherit;
  font-family: var(--serif-font);
}

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

body {
  max-width: none;
  margin: 0;
  padding: 0;
  font-family: var(--serif-font);
  font-size: 1.1rem;
  line-height: 1.5666;
  background: var(--background);
  color: var(--text);
  overflow-x: clip;
  text-rendering: geometricPrecision;
  -moz-font-feature-settings: "kern" 1;
  -ms-font-feature-settings: "kern" 1;
  -o-font-feature-settings: "kern" 1;
  -webkit-font-feature-settings: "kern" 1;
  font-feature-settings: "kern" 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

@media (min-width: 768px) {
  body {
    font-size: 1.2rem;
  }
}

.page-content > .wrapper {
  max-width: var(--site-width);
  margin: 0 auto;
  padding: 2rem;
}

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

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

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 500;
  font-family: var(--sans-serif-font);
}

h1 {
  font-size: 1.8rem;
}

h2 {
  font-size: 1.6rem;
}

h3 {
  font-size: 1.4rem;
}

h4 {
  font-size: 1.25rem;
}

h5 {
  font-size: 1.15rem;
}

h6 {
  font-size: 1.12rem;
}

.site-header {
  display: grid;
  gap: 1rem;
  margin: 0;
  padding: 2rem env(safe-area-inset-right, 0) 2rem env(safe-area-inset-left, 0);
  border-bottom: 2px solid var(--text);
  text-align: center;
}

@media (min-width: 640px) {
  .site-header {
    padding-top: 3rem;
    padding-bottom: 3rem;
    padding-right: env(safe-area-inset-right, 30px);
    padding-left: env(safe-area-inset-left, 30px);
  }
}

.site-header h1 {
  font-size: 3.8rem;
  font-weight: 500;
  line-height: 1.2;
  margin: 0;
}

.site-header h1 a,
.site-header h1 a:visited {
  color: var(--text);
  text-decoration: none;
}

.site-header h1 a:hover,
.site-header h1 a:active {
  color: var(--text);
  text-decoration: none;
}

.site-nav {
  font-size: 1.4rem;
  text-align: center;
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin: 0;
  padding: 0;
  font-family: var(--sans-serif-font);
  font-weight: 300;
}

@media (min-width: 768px) {
  .site-nav ul {
    gap: 2rem;
  }
}

.site-nav li {
  margin: 0;
  line-height: inherit;
}

.site-nav a,
.site-nav a:visited,
.site-nav a:hover {
  padding: 0;
  border: 0;
  border-radius: 0;
  color: var(--text);
  background: transparent;
  font-size: inherit;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a:active {
  color: var(--link);
}

.post-preview,
.post {
  margin: 0 0 2rem 0;
}

.post-preview {
  display: flex;
  flex-direction: column;
}

.post-preview .post-title {
  order: 1;
}

.post-preview .post-date {
  order: 2;
}

.post-preview .e-content,
.post-preview .p-summary {
  order: 3;
}

.post-preview .post-date-micro,
.post-preview .post-separator {
  order: 4;
}

.post-preview:last-of-type,
.post:last-of-type {
  margin-bottom: 2rem;
}

.post-header {
  display: flex;
  flex-direction: column;
  margin-bottom: 0;
}

.post-header .p-name {
  order: 1;
}

.post-header .post-date {
  order: 2;
}

.post-header h2.p-name,
.post h2.p-name,
.page h2.p-name,
.archive h2.p-name,
.post-title {
  font-size: 1.8rem;
  margin: 1rem 0;
}

.post-header h2.p-name {
  color: var(--link);
}

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

.post-title a:hover,
.post-title a:active {
  color: var(--link);
  text-decoration: none;
}

.post-date {
  display: block;
  color: var(--link);
  font-size: 1.2rem;
  font-family: var(--sans-serif-font);
  font-weight: 500;
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
  text-decoration: none;
}

a.post-date,
a.post-date:visited,
.post-date a,
.post-date a:visited {
  color: var(--link);
  font-size: 1.2rem;
  text-decoration: none;
}

.post-date-micro {
  font-size: 1rem;
  line-height: 1.4;
  margin-top: -1.5rem;
  margin-bottom: 0;
}

.post-date-micro a,
.post-date-micro a:visited {
  font-size: 1rem;
}

.btm-margin {
  margin-bottom: -10px;
}

.e-content {
  margin-bottom: 2em;
}

.post-preview .e-content p:first-of-type,
.post-content p:first-of-type {
  margin-top: 1em;
}

.e-content img,
.e-content video,
.post-content img,
.post-content video,
.p-summary img,
.p-summary video {
  max-width: none;
  height: auto;
  margin: 2rem auto;
  border-radius: 0;
  margin-left: -2rem;
  width: 100vw;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

@media (min-width: 768px) {
  .e-content img,
  .e-content video,
  .post-content img,
  .post-content video,
  .p-summary img,
  .p-summary video {
    max-width: 100%;
    margin-left: 0;
    width: 100%;
  }
}

.categories-title {
  font-size: 1rem;
  margin-bottom: 0.3rem;
}

.categories {
  margin-top: 0;
}

.categories span,
a.category,
a.category:visited {
  font-size: 1rem;
}

a.category,
a.category:visited {
  display: inline-block;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--link);
  line-height: inherit;
  text-decoration: none;
}

a.category:hover,
a.category:active {
  border: 0;
  background: transparent;
  color: var(--link);
  text-decoration: underline;
}

.post-separator {
  display: block;
  width: 100%;
  text-align: center;
  padding-top: 2rem;
}

.post-separator svg {
  display: inline-block;
  max-width: 20px;
  fill: var(--text);
}

.photos-grid-container {
  gap: 20px !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  max-width: 100%;
}

.photos-grid-container a,
.photos-grid-container img {
  display: block;
  max-width: 100%;
  min-width: 0;
}

.photos-grid-container img {
  width: 100%;
  height: auto;
}

.post-nav {
  margin: 0;
  padding: 1rem 0 2rem 0;
  text-align: center;
}

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

ul.reply-buttons {
  padding-left: 0;
}

footer.site-footer {
  width: 100%;
  max-width: 100vw;
  margin: 0;
  padding: 2rem 1rem;
  border-top: 2px solid var(--text);
  color: var(--text);
  font-family: var(--sans-serif-font);
  font-size: 0.875rem;
  text-align: center;
}

footer.site-footer .wrapper {
  max-width: var(--site-width);
  margin: 0 auto;
}

footer.site-footer p {
  margin: 0;
}

footer.site-footer p:last-child {
  margin-bottom: 0;
}

.credits {
  margin-top: 1rem;
}

@media only screen and (max-width: 768px) {
  .site-header h1 {
    font-size: 3rem;
  }

  .site-nav {
    font-size: inherit;
    background: inherit;
  }

  .site-nav ul {
    padding: 0;
    height: auto;
    justify-content: center;
  }
}

ul.grid li {
  min-height: 150px;
}

.main-nav a {
  text-decoration: none;
}

.main-nav a:hover,
.main-nav a:active {
  text-decoration: none;
}
