@import url('https://fonts.googleapis.com/css2?family=EB+Garamond:ital,wght@0,400..800;1,400..800&family=Micro+5&family=Platypi:ital,wght@0,300..800;1,300..800&display=swap');
@import url('https://cdn.jsdelivr.net/gh/dreampulse/computer-modern-web-font@master/fonts.css');
@import url('https://use.typekit.net/fnp6tqg.css');

.post {
	margin-bottom: 0.5rem !important;
	padding: 0 0 0.5rem 0 !important;
}

.post-header {
	margin-bottom: 0.25rem !important;
	padding: 0 !important;
}

.post-title {
	margin: 0.3rem 0 !important;
	padding: 0 !important;
	line-height: 1.2 !important;
	font-size: 1.3rem !important;
}

.post-title a {
	line-height: 1.2 !important;
}

.post-byline {
	margin: 0.2rem 0 0.4rem 0 !important;
	padding: 0 !important;
	font-size: 0.85rem !important;
	line-height: 1.2 !important;
}

.post-date {
	display: block;
}

.post-content {
	margin: 0.4rem 0 !important;
	padding: 0 !important;
	line-height: 1.4 !important;
}

.post-content p {
	margin: 0.3rem 0 !important;
	padding: 0 !important;
}

.post-content ul,
.post-content ol {
	margin: 0.3rem 0 !important;
	padding-left: 1.2rem !important;
}

.post-content li {
	margin: 0.15rem 0 !important;
}

.post-content blockquote {
	margin: 0.3rem 0 !important;
	padding: 0.3rem 0.75rem !important;
}

@media {
  .main {
    word-wrap: break-word;
  }
}

html {
  margin: 0 auto;
  background-color: #FFF9F0;
}

body {
  background-color: #FFF9F0;
}

.main {
  background-color: #FFF9F0;
  padding: 2em;
  width: 100%;
  float: left;
}

/* Typography */
p {
  font-size: 100%;
  line-height: 1.6em;
  padding-left: 2em;
  padding-right: 1em;
  margin-bottom: 1em;
}

pre {
  font-size: 110%;
  line-height: 1.4em;
  padding-left: 5em;
  padding-right: 5em;
}

blockquote {
  font-family: "Computer Modern Serif", "Platypi", serif;
  font-weight: 400;
  font-style: italic;
  border-left: 4px solid #ff0000;
  margin: 20px 10;
  margin-left: 2em;
  padding: 0.5em 0.5em 0.5em 1em;
}

/* Links */
a {
  text-decoration: underline;
  text-decoration-color: orange;
  font-weight: bold;
}

a:focus,
button:focus {
  outline: 2px solid #ff6b35;
  outline-offset: 2px;
}

/* Header */
div.site-title {
  font-family: "Micro 5", sans-serif;
  font-weight: 1000;
  font-style: normal;
  font-size: 8vw;
  text-decoration: none;
  align-items: left;
  background-color: #fff;
  border-radius: 20px;
  box-shadow: transparent 0 0 0 3px, rgba(18, 18, 18, 0.1) 0 6px 20px;
  box-sizing: border-box;
  color: #121212;
  cursor: pointer;
  display: inline-flex;
  flex: 1 1 auto;
  justify-content: center;
  line-height: 1;
  margin: 0;
  outline: none;
  padding: 0.2rem 0.8rem;
  text-align: center;
  transition: box-shadow 0.2s, -webkit-box-shadow 0.2s;
  white-space: nowrap;
  border: 1em;
  user-select: none;
  -webkit-user-select: none;
  background-image: linear-gradient(92.88deg, #E5EEB5 9.16%, #F6E3CC 43.89%, #87FFF7 64.72%);
}

p.tagline {
  display: none;
  text-align: left;
  padding-left: 10px;
  font-family: Inter, "Platypi", serif;
  font-weight: 10;
}

div.title-container {
  margin: 0;
}

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

/* Posts */
div.archive-header h1 {
  display: none;
}

div.post-header {
  display: none;
}

.post-title {
  font-weight: 900;
  font-family: acumin-pro, serif;
  font-style: normal;
  font-size: clamp(1.2rem, 2vw, 2rem);
  margin-bottom: 0.5em;
  line-height: 1.3;
}

h2 a {
  text-decoration: none;
}

.post-container {
  padding: 0;
}

.post-content {
  margin-top: 1em;
	font-size: clamp(0.7rem, 2vw, 0.9rem) !important;
}

.entry {
	margin: 0.2em 0 0.2em;
}

span.comments-link a {
  text-decoration: none;
}

span.post-date {
  display: block;
  padding-top: 0;
  padding-bottom: 0;
  padding-left: 10em;
  text-align: right;
  font-family: Inter, sans-serif;
  font-size: 1vw;
  font-weight: 100;
}

span.breadcrumb_last {
  display: none;
}

/* Links */
a.deliciouslink,
.article .post-title a {
  font-weight: 900;
  font-family: acumin-pro, serif;
  font-style: bolder;
  font-size: 1em;
  text-decoration: none;
  border: 2px solid rgba(255, 165, 0, 0.3);
  border-style: solid;
  border-radius: 10px;
  display: inline-flex;
  box-sizing: border-box;
  padding: 0.3rem 0.7rem;
  transition: all 0.2s ease;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 250, 245, 0.9));
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

a.deliciouslink:hover,
.article .post-title a:hover {
  border: 2px solid #ff6b35;
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 107, 53, 0.2);
}

a.deliciouslink:before {
  content: "\1F517\00A0\00A0 ";
}

/* Tags */
a.delicioustag {
  font-size: small;
  padding: 1px;
  text-decoration: none;
  align-items: center;
  background-color: #fff;
  border-radius: 12px;
  box-shadow: transparent 0 0 0 3px, rgba(18, 18, 18, 0.1) 0 6px 20px;
  box-sizing: border-box;
  color: #121212;
  cursor: pointer;
  display: inline-flex;
  flex: 1 1 auto;
  font-family: Inter, sans-serif;
  font-size: 0.5rem;
  font-weight: 100;
  justify-content: center;
  line-height: 1;
  margin: 0 0.5em 0.3em 0;
  outline: none;
  padding: 0.2rem 0.8rem;
  text-align: center;
  transition: box-shadow 0.2s, -webkit-box-shadow 0.2s;
  white-space: nowrap;
  border: 2px solid white;
  user-select: none;
  -webkit-user-select: none;
}

a.delicioustag:hover {
  border: 2px solid red;
  text-decoration: none;
}

p.taglist {
  font-size: 8px;
  padding-left: 3em;
  font-family: Inter, sans-serif;
  text-align: right;
  opacity: 0.95;
	margin: 1.2rem 0 0 0 !important;
	padding: 0;
	line-height: 1.3;
}

.delicioustag {
	display: inline-block;
	margin-right: 0.4rem !important;
	margin-bottom: 0.1rem !important;
	padding: 0.1rem 0.3rem !important;
}
/* Lists */
ul,
ol {
  margin: 0.5vw;
  padding: 0 0 0 2em;
}

li {
    font-family: acumin-pro, sans-serif;
}

div.post-content > ul > li {
  display: block;
  margin: 0.5em 0;
  padding: 0.8em 1.2em;
  background-image: linear-gradient(to left, #F5EBE0 0%, rgba(250, 245, 235, 0.2) 100%);
  border-radius: 20px;
  border-left: 3px solid #E8CBAA;
  box-sizing: border-box;
  transition: all 0.2s ease;
}

div.post-content > ul > li:hover {
  background-image: linear-gradient(to left, #FAF3EB 0%, rgba(250, 243, 235, 0.3) 100%);
  border-left: 3px solid #DDB588;
}

/* Utilities */
.design-credit {
  text-align: right;
}

/* Media Queries */
@media (min-width: 700px) {
  p {
    text-align: justify;
  }

  blockquote {
    text-align: justify;
  }

  html {
    font-size: 125%;
    max-width: 62em;
    padding: 0 2em;
  }
}

@media (max-width: 700px) {
  p {
    text-align: left;
  }

  blockquote {
    text-align: left;
  }
}

@media (max-width: 600px) {
  ul,
  ol {
    margin: 0;
    padding: 0;
  }

  .post-title {
    font-size: 1.3rem;
  }

  div.site-title {
    font-size: 12vw;
  }

  p {
    padding-left: 1em;
    padding-right: 1em;
  }

  a.deliciouslink {
    font-size: 0.95em;
  }
}

span.post-date { 
display: none;
}

.post-content > .permalink {
  visibility: hidden;
  float: right;
  text-decoration: none !important;
  color: #ccc;
  font-weight: normal;
  font-size: 1.2em;
  margin-right: 0.8em;
}

.post-container:hover > .post-content > .permalink {
  visibility: visible;
}

.post-content > .permalink:hover {
  color: #888;
}

/* Tags in a right-hand sidebar, outside the post card */
/* Tags in a right-hand sidebar, outside the post card */
@media (min-width: 900px) {
  div.post-content > ul > li {
    position: relative;
    margin-right: 12em !important;
  }
  div.post-content > ul > li > .taglist {
    position: absolute;
    left: calc(100% + 1.3em);
    top: 2.6em;
    width: 12em;
    margin: 0 !important;
    text-align: left;
    font-size: 0.85em;
    line-height: 1.45;
  }
  .post-content {
    position: relative;
  }
  .post-content > .permalink {
    position: absolute;
    float: none;
    /* aligns with .taglist's left edge: post-content's right edge,
       minus the li's 12em reserved margin, plus the taglist's 1.3em gap */
    left: calc(100% - 196px);
    top: 0;
    margin-right: 0;
    visibility: visible !important;
  }
}


.archives-widget {
  text-align: center;
  margin-top: 1em;
  padding-top: 0.8em;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
	margin-bottom: 1em;
	padding-bottom: 0.8em;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.archives-widget h3 {
  display: inline;
  font-size: 0.7em;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #999;
  margin: 0 0.8em 0 0;
}

.archives-widget ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  font-size: 0.7em;
}

.archives-widget ul li {
  margin: 0 0.5em 0 0;
}

.archives-widget ul li a {
  color: #999;
  text-decoration: none;
}

.archives-widget ul li a:hover {
  color: #666;
  text-decoration: underline;
}

.archives-widget ul li::after {
  content: "·";
  margin-left: 0.5em;
  color: #ccc;
}

.archives-widget ul li:last-child::after {
  content: "";
}

/* ---- Static-site additions: long-form (non-link) posts, code blocks, comments ---- */

/* Articles get the same card as link posts, plus a visible title and date. */
.article .post-container {
  position: relative;
  margin: 0.5em 0;
  padding: 0.8em 1.2em;
  font-size: clamp(0.7rem, 2vw, 0.9rem);
  background-image: linear-gradient(to left, #F5EBE0 0%, rgba(250, 245, 235, 0.2) 100%);
  border-radius: 20px;
  border-left: 3px solid #E8CBAA;
  box-sizing: border-box;
}

.article div.post-header {
  display: block;
  margin-top: 0 !important;
}

.article .post-title {
  font-size: 1em !important;  /* same size as link-post titles */
  line-height: 1.3 !important;
  margin: 0 0 0.3em !important;
}

.article span.post-date {
  display: block;
  padding: 0;
  text-align: left;
  font-size: 0.85em;
  font-weight: 400;
  color: #888;
}

.article .post-content {
  position: static;
  font-size: 1em !important;
}

.article .post-content p {
  margin: 0.7em 0 !important;
}

/* Article body text uses acumin-pro, like the titles. The kit has regular and bold, each with an
   italic. Quotes and code keep their own fonts. */
.article .post-content p,
.article .post-content li,
.article .post-content h1,
.article .post-content h2,
.article .post-content h3 {
  font-family: acumin-pro, sans-serif;
  font-weight: 400;
}

.article .post-content strong,
.article .post-content b {
  font-weight: 700;
}

.article .post-content em,
.article .post-content i {
  font-style: italic;
}

.post-content pre {
  font-size: 0.9em;
  line-height: 1.45;
  margin: 0.7em 0;
  padding: 0.8em 1em;
  text-align: left;
  white-space: pre;
  overflow-x: auto;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid #EADFCE;
  border-radius: 10px;
}

.post-content pre code {
  background: none;
  padding: 0;
}

/* Comments, below the post card */
.comments {
  margin: 1em 0;
  font-size: clamp(0.7rem, 2vw, 0.9rem);
}

.comments-number h2 {
  font-size: 1.2em;
  margin: 0.5em 0;
}

.comment-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

li.comment {
  margin: 0.8em 0;
  padding: 0.6em 1em;
  background: rgba(255, 255, 255, 0.5);
  border-left: 3px solid #E8CBAA;
  border-radius: 12px;
}

.comment-author {
  font-weight: 700;
}

.comment-date {
  font-size: 0.8em;
  color: #888;
}

.comment-content p {
  padding: 0;
  margin: 0.4em 0;
}

@media (min-width: 900px) {
  .article .post-container,
  .comments {
    margin-right: 12em;
  }

  /* Put the # in the right-hand column, as on link posts. */
  .article .post-content > .permalink {
    left: calc(100% + 20px);
    top: 0.8em;
  }

  /* An article's own tags go in the right-hand column too, under the #. */
  .article div.post-content > .taglist {
    position: absolute;
    left: calc(100% + 1.3em);
    top: 2.6em;
    width: 12em;
    margin: 0 !important;
    text-align: left;
    font-size: 0.85em;
    line-height: 1.45;
  }
}

/* Lists inside articles are plain lists, not link-post cards. */
.article div.post-content > ul {
  list-style: disc;
  padding-left: 1.5em !important;
}

.article div.post-content > ul > li {
  display: list-item;
  position: static;
  margin: 0.25em 0 !important;
  padding: 0;
  background: none;
  border: 0;
  border-radius: 0;
}

/* Old del.icio.us digests are articles: their tags stay under each item, not in the sidebar. */
.article div.post-content > ul > li > .taglist {
  position: static;
  width: auto;
  text-align: left;
  margin: 0.3em 0 0.6em 0 !important;
}

/* Long URLs in posts must wrap rather than overflow on phones. */
.post-content {
  overflow-wrap: break-word;
}

/* Long URLs in comments make justified text gappy. */
.comment-content p {
  text-align: left;
  overflow-wrap: anywhere;
}

/* Old posts float images with the HTML align attribute, which adds no margin. */
.post-content img {
  max-width: 100%;
  height: auto;
}

.post-content img[align="right"] {
  margin: 0.3em 0 0.8em 1.5em;
}

.post-content img[align="left"] {
  margin: 0.3em 1.5em 0.8em 0;
}

.post-content {
  display: flow-root;  /* keep floated images inside the card */
}

@media (max-width: 600px) {
  .post-content img[align] {
    float: none;
    display: block;
    margin: 0.8em auto;
  }
}

/* Line up article cards and comments with link-post cards, which are inset by
   their <ul>'s padding (".post-content ul" above). */
.article .post-container,
.comments {
  margin-left: 1.2rem;
}
