/* midnight column
   georgia for the actual thoughts, courier for the website talking about itself.
   the front page is allowed to be a little crooked. the essays are not. */

:root {
  --paper: #f2ebdf;
  --paper-dark: #e9dfcf;
  --ink: #2d2722;
  --soft-ink: #695d53;
  --faint: #918173;
  --rule: #c4b5a5;
  --wine: #7a3340;
  --visited: #674d66;
  --highlight: #eadba8;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--paper);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 17px;
  line-height: 1.68;
}

.site {
  width: min(850px, 88%);
  margin: 52px auto 42px;
}

/* links */

a {
  color: var(--wine);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

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

a:hover {
  background: var(--highlight);
}

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

/* header */

.stamp,
.date,
.meta,
.small-heading,
.year,
.meta-block,
.side-note {
  font-family: "Courier New", Courier, monospace;
}

.stamp {
  margin: 0 0 10px 2px;
  color: var(--faint);
  font-size: 11px;
}

.site-title {
  display: inline-block;
  margin: 0;
  color: #382d27;
  font-size: clamp(42px, 7vw, 55px);
  font-style: italic;
  font-weight: normal;
  line-height: 1;
  transform: rotate(-0.55deg);
  transform-origin: left center;
}

.subtitle {
  max-width: 31em;
  margin: 13px 0 0 17px;
  color: var(--soft-ink);
  font-size: 16px;
  font-style: italic;
}

/* navigation */

.nav {
  margin: 30px 0 39px;
  padding: 7px 2px 8px;
  border-top: 1px dotted var(--rule);
  border-bottom: 1px dotted var(--rule);
  color: var(--faint);
  font-family: "Courier New", Courier, monospace;
  font-size: 12px;
}

.nav span {
  margin: 0 8px;
}

.top-nav {
  margin-top: 0;
  margin-bottom: 46px;
}

/* front page */

.desk {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 185px;
  gap: 50px;
  align-items: start;
}

.main-column {
  min-width: 0;
}

.intro {
  max-width: 36em;
  margin: 0 0 49px 5px;
}

.intro p:first-child {
  margin-top: 0;
}

.entries {
  margin-left: 12px;
}

.small-heading {
  margin: 0 0 23px;
  color: var(--soft-ink);
  font-size: 12px;
}

.entry {
  margin-bottom: 48px;
}

.date {
  margin: 0 0 3px;
  color: var(--faint);
  font-size: 11px;
}

h2 {
  margin: 0 0 8px;
  font-size: 26px;
  font-weight: normal;
  line-height: 1.25;
}

.blurb {
  max-width: 35em;
  margin: 0 0 7px;
}

.meta {
  margin: 0;
  color: var(--faint);
  font-size: 11px;
}

/* the little personality corner */

.rail {
  padding-top: 7px;
}

.scrap {
  margin-left: -5px;
  padding: 14px 15px 13px;
  background: var(--paper-dark);
  border: 1px dashed #ae9d8d;
  transform: rotate(0.65deg);
}

.scrap p {
  margin: 0 0 11px;
  font-size: 14px;
  line-height: 1.45;
}

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

.scrap-title {
  font-family: "Courier New", Courier, monospace;
  font-size: 12px !important;
}

.scrap span {
  display: block;
  color: var(--faint);
  font-family: "Courier New", Courier, monospace;
  font-size: 10px;
}

.side-note {
  margin: 15px 0 0 8px;
  color: var(--faint);
  font-size: 10px;
  line-height: 1.45;
}

/* interior pages */

.inner-page {
  width: min(720px, 88%);
}

.page-header {
  margin: 0 0 39px 4px;
}

.page-header h1 {
  margin: 0;
  font-size: 39px;
  font-weight: normal;
  font-style: italic;
  line-height: 1.1;
}

.plain,
.archive-list {
  max-width: 38em;
  margin-left: 5px;
}

.plain p {
  margin: 0 0 1.25em;
}

.plain h2 {
  margin: 37px 0 9px;
  font-size: 21px;
  font-weight: normal;
  font-style: italic;
}

.meta-block {
  color: var(--faint);
  font-size: 11px;
  line-height: 1.7;
}

.year {
  margin: 0 0 25px;
  padding-bottom: 5px;
  border-bottom: 1px dotted var(--rule);
  color: var(--soft-ink);
  font-size: 12px;
}

.archive-entry {
  margin-left: 8px;
}

.nothing-else {
  margin: 65px 0 0 8px;
  color: var(--faint);
  font-family: "Courier New", Courier, monospace;
  font-size: 11px;
}

/* essay */

.post-page {
  width: min(760px, 88%);
}

.post-header {
  max-width: 42em;
  margin: 0 0 42px 4px;
}

.post-header h1 {
  max-width: 15em;
  margin: 0 0 12px;
  font-size: clamp(34px, 6vw, 43px);
  font-weight: normal;
  line-height: 1.12;
}

.post-note {
  max-width: 36em;
  margin: 15px 0 0;
  color: var(--soft-ink);
  font-size: 15px;
  font-style: italic;
}

.post {
  max-width: 38em;
  margin-left: 4px;
  font-size: 17px;
  line-height: 1.75;
}

.post p {
  margin: 0 0 1.35em;
}

.post-end {
  margin-top: 52px !important;
  padding-top: 14px;
  border-top: 1px dotted var(--rule);
  color: var(--faint);
  font-family: "Courier New", Courier, monospace;
  font-size: 11px;
}

/* footer */

footer {
  width: 84%;
  margin: 78px 0 0 24px;
  padding-top: 11px;
  border-top: 1px dotted var(--rule);
  color: var(--faint);
  font-family: "Courier New", Courier, monospace;
  font-size: 10px;
}

footer p {
  margin: 0;
}

/* phones */

@media (max-width: 700px) {
  body {
    font-size: 16px;
  }

  .site {
    width: 88%;
    margin-top: 34px;
  }

  .subtitle {
    margin-left: 7px;
  }

  .desk {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .entries {
    margin-left: 4px;
  }

  .rail {
    width: min(260px, 92%);
    margin: 0 0 18px 18px;
  }

  .inner-page,
  .post-page {
    width: 88%;
  }

  .post {
    font-size: 16px;
  }

  footer {
    width: 92%;
    margin-left: 8px;
  }
}
