/* structure */

body {
    align-items: center;
    color: #384150;
    display: flex;
    flex-direction: column;
    font-family: SF Pro Text, Hanken Sans, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Oxygen, Ubuntu, Cantarell, Fira Sans, Droid Sans, Helvetica Neue, sans-serif;
    font-size: 16px;
    line-height: 28px;
    justify-content: center;
    margin: 0;
    min-height: 100vh;
    background: #fffff0;
    word-wrap: break-word;
}

.wrapper {
    align-items: center;
    display: flex;
    flex-direction: column;
    flex: 1;
    width: 100%;
    max-width: 700px;
    margin-top: 84px;
}

header {
    display: flex;
    max-width: 700px;
    padding: 0 0 0 0;
    width: 100%;
    align-items: baseline;
}

nav {
    align-items: center;
    display: flex;
    position: relative;
    user-select: none;
    max-width: 400px;
    width: 400px;
}

main {
    flex: 1;
    max-width: 700px;
    padding: 0 0 0 0;
    width: 100%;
}

footer {
    background: #FEE48F;
    flex: 1;
    max-width: 700px;
    padding: 0;
    width: 100%;
    margin-bottom: 84px;
}


/* common */

a.main-link,
a { 
    padding: .25em 0;
    text-decoration: none;
    background-image: linear-gradient(120deg, #F88C8A 0%, #F88C8A 100%);
    background-repeat: no-repeat;
    background-position: 0 95%;
    background-size: 100% 2px;
    color: #384150;
    transition: background-size 0.25s ease-in, background-position 0.25s ease-in;

}

a.main-link:hover,
a:hover {
    transition: background-size 0.25s ease-in, background-position 0.25s ease-in;
    background-image: linear-gradient(120deg, #FEE48F 0%, #F88C8A 100%);
    background-size: 100% 0.5em;;
}

a.secondary-link { 
    background-image: linear-gradient(120deg, #f0f0ea 0%, #f0f0ea 100%);
}

a.secondary-link:hover {
    background-image: linear-gradient(120deg, #FEE48F 0%, #F88C8A 100%);
}

a.fancy-link {
    background-size: 15% 2px; 
}

header .site-title a {
    background-image: none;
    background-position: none;
    background-size: none;
}

header .site-title a span {
    position: relative;
    top: 8px;
    padding-bottom: .25em;
    background-image: linear-gradient(120deg, #f0f0ea 0%, #f0f0ea 100%);
    background-repeat: no-repeat;
    background-size: 100% 2px;
    background-position: 0 95%;
    transition: background-size 0.25s ease-in;
    margin-left: 1em;
}

header .site-title a:hover span {
    transition: background-size 0.25s ease-in, background-position 0.25s ease-in;
    background-image: linear-gradient(120deg, #FEE48F 0%, #F88C8A 100%);
    background-size: 100% 0.5em;
}

a.tag:before {
    content: "#";
}


/* header and nav */

nav .link-group a {
    font-size: 16px;
    position: relative;
    top: 8px;
    text-decoration: none;
}

nav .link-group a:not(:last-of-type) {
    margin-right: 40px
}

nav .link-group:last-child {
    margin-left: auto
}

nav .link-group .current {
    background-image: none;
    color: #F88C8A;
}

nav .link-group .current:hover {
    background-image: none;
    color: #F88C8A;
}


a.subscribe {
    background: #F88C8A;
    padding: .5em;
    border-radius: 7px;
    color: #fffff0;
    transition: background-image 0.25s ease-in-out;
    background-position: 0% 0%;
}
a.subscribe svg {
    fill: #fffff0;
    width: .8em;
    height: .8em;
}
a.subscribe:hover {
    background: #FEE48F;
    color: #333;
}
a.subscribe:hover svg {
    fill: #333;
}
header {
    display: flex;
    max-width: 700px;
    padding: 0 0 0 0;
    width: 100%;
    align-items: baseline;
}

header .site-title {
    width: 300px;
}

header .site-title a {
    background: none;
}

#bot {
    display: inline-block;
    height: 3em;
    vertical-align: -1.5em;
    position: relative;
    top: 8px;
}

.site-title a #bot path {
    fill: #384150;
    transition: fill 0.25s ease-in;
}

.site-title a #bot path.p1 {
    fill: #efefef
}

.site-title a #bot path.p2 {
    fill: #FEE48F
}

.site-title a #bot path.p3 {
    fill: #F88C8A
}

.site-title a:hover #bot path {
    fill: #384150
}

.site-title a:hover #bot path.p1 {
    fill: #F88C8A
}

.site-title a:hover #bot path.p2 {
    fill: #FEE48F
}

.site-title a:hover #bot path.p3 {
    fill: #F88C8A
}


/* homepage */

.homepage .site-title span {
    display: none;
}

.intro {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.homepage .intro {
    height: 168px;
}

main .intro {
    margin-top: 84px;
    margin-bottom: 84px;
}

.intro h1 {
    color: #2e394d;
    font-weight: 300;
    letter-spacing: .2px;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: subpixel-antialiased;
    line-height: 36px;
    margin-bottom: 0
}

.main-row {
    display: -moz-flex;
    display: -ms-flex;
    display: -o-flex;
    display: flex;
    align-items: baseline;
    margin-bottom: 56px;
    justify-content: space-between
}

.main-row .label h4,
.main-row .page-label h4 {
    margin-bottom: 0;
    margin-top: 0;
    font-family: SF Compact Display, Radnika, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Oxygen, Ubuntu, Cantarell, Fira Sans, Droid Sans, Helvetica Neue, sans-serif;
    font-size: .933rem;
    color: #b3bbc9;
    letter-spacing: 1.5px;
    -webkit-font-smoothing: subpixel-antialiased;
    text-transform: uppercase;
}

.main-row .content {
    max-width: 500px;
    width: 100%;
}


.section .main-row .content {
    min-width: 500px;
}

.page .main-row .content,
.article .main-row .content {
    max-width: 600px;
    margin: 0 auto;
}
.archive .main-row .content {
    max-width: 500px !important;
    margin: 0;
}

.main-row .content h4,
.main-row .content p {
    margin-top: 0
}
/* page metadata */

.metadata-text {
    font-family: SF Mono, Inconsolata, monospace;
    font-size: 14px;
    line-height: 1.5em;
    color: #2e394d;
    letter-spacing: .2px;
}

.page-metadata {
text-align: center;
padding: 1em 50px 1em 50px;
color: #2e394db5;
background: #fffff0;
}

.page-metadata a.tag {
    padding: .25em 0;
}

.page-metadata a.tag:before {
    content: "#";
}

.row-item {
    position: relative;
    margin-bottom: 56px;
}

.row-item .block-title,
.row-item .title {
    display: inline-block;
    margin-bottom: 0
}

.row-item .block-title {
    display: block
}


/* Pages */

.page main {}


/* Articles */

.section .main-row .page-label,
.tool .main-row .page-label,
.article .main-row .page-label {
    display: block;
    margin-left: 30px;
    border-left: 2px #384150 solid;
    background: #f0f0ea;
    padding-left: 20px;
    width: 148px;
}

.tool .main-row .page-label .canonical-box,
.article .main-row .page-label .canonical-box {
    border-top: 1px solid #878c8f;
    margin-left: -20px;
    padding: 20px;
}

.tool .main-row .page-label .tag-box,
.article .main-row .page-label .tag-box {
    border-top: 1px solid #878c8f;
    margin-left: -20px;
    padding: 20px;
}

.section .main-row .page-label ul,
.tool .main-row .page-label ul,
.article .main-row .page-label ul {
    padding: 0;
    margin-top: 0;
    list-style-type: none;
}

.tags .intro,
.page .intro,
.section .intro,
.article .intro {
    margin-top: 42px;
    margin-bottom: 42px;
    background: linear-gradient(90deg, #fffff0 20px, transparent 1%) center, linear-gradient(#fffff0 20px, transparent 1%) center, #6b727d;
    background-size: auto, auto, auto;
    background-size: 22px 22px;
    text-align: center;
}

.tags .intro h1,
.page .intro h1,
.section .intro h1,
.article .intro h1 {
    font-size: 32px;
    background: #fffff0;
    padding: 1em;
    text-align: center;
    padding: 1em;
    border-bottom: 3px solid #f0f0ea;
    font-weight: 500;
    margin-top: 50px;

}

.page .main-row .content h2,
.page .main-row .content h3,
.page .main-row .content h4,
.section .main-row .content h2,
.section .main-row .content h3,
.section .main-row .content h4,
.article .main-row .content h2,
.article .main-row .content h3, 
.article .main-row .content h4 {
    margin-top: 2.7em;
}

.page .main-row .content p,
.section .main-row .content p,
.article .main-row .content p {
    line-height: 1.8;
    margin-bottom: 1.8em;
}

.page .main-row .content ul li,
.section .main-row .content ul li,
.article .main-row .content ul li {
    line-height: 1.8;
}

.page .main-row .content pre,
.section .main-row .content pre,
.article .main-row .content pre {
    background: #f0f0ea;
    /* #f0f0ea f6f8fa*/
    overflow: auto;
    border-radius: 3px;
    width: 600px;
    margin-left: -50px;
    padding: 2em 50px;
}

.page .main-row .content .note,
.section .main-row .content .note,
.article .main-row .content .note {
    background: #FFF2C9;
    border-radius: 3px;
    width: 600px;
    margin-left: -50px;
    padding: 2em 50px 2em 47px;
    border-left: 3px solid #FEE48F;
    margin-bottom: 1.8em;
}

.page .main-row .content p img,
.section .main-row .content p img,
.article .main-row .content p img {
    max-width: 100%;
}

.page .main-row .content code,
.section .main-row .content code,
.article .main-row .content code {
    padding: .2em .4em;
    margin: 0;
    background-color: #f0f0ea;
    /* #f0f0ea */
    border-radius: 3px;
}

.mc-field-group {
    margin-top: 15px;
}

.mc-field-group #mce-EMAIL {
    height: 35px;
    width: calc(100% - 100px);
    margin: 10px 0;
    border: 1px solid #FEE48F;
    padding: 0 15px;
    color: #000;
    border-radius: 3px;
}

#mc-embedded-subscribe {
    padding: 13px 30px 11px 30px;
    text-transform: uppercase;
    background: linear-gradient(120deg, #F88C8A 0%, #FEE48F 100%);
    transition: all .2s;
    border-radius: 4px;
    border: 0;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    color: #fff;
    font-weight: 600;
    font-family: Helvetica Neue, sans-serif;
}

#mc-embedded-subscribe:hover {
    background: linear-gradient(120deg, #FEE48F 0%, #F88C8A 100%);
}

/* footer */

.email-link {
    font-weight: bold;
    display: inline-block;
    background: none;
    background-image: linear-gradient(#F88C8A, #F88C8A);
    background-repeat: no-repeat;
    background-size: 14.75em 0.1em;
    background-position: 100% 95%;
}

.email-link:before {
    content: "\2709";
    content: "\270E";
    margin-right: .5em;
    font-size: 1.5em;
    vertical-align: -0.1em;
    font-weight: lighter;
}

.email-link:hover {
    background-image: linear-gradient(#F88C8A, #F88C8A);
    background-size: 14.75em 0.3em;
    background-position: 100% 100%;
}

footer {
    display: box;
}

footer a:hover {
    background-image: linear-gradient(#F88C8A, #F88C8A) !important; 
}

.footer-column {
    /* flex: 0 1 auto; */
    margin: 42px;
}
.footer-column {
    text-align: center;
    padding-left: 21px;
    display: flex;
    padding: 42px 42px 20px;
    margin: 0;
    background: #FEE48F;
    /* background-image: linear-gradient(120deg, #fee48f 0%, #f88c8a 100%); */
}
.footer-newsletter {
    padding-top: 0 !important;
    padding-bottom: 0 !important
}
.footer-feed {
    padding-top: 0;
}
.footer-feed p,
.footer-cta p {
    display: block;
    margin: 0 auto;
}
.newsletter-container {
    width: 70%;
    margin: 0 auto;
}
.feed- {
    width: 100%;
}
.newsletter-subscribe {
    overflow: hidden;
    border-radius: 7px;
    margin-bottom: 20px;
    background-color: #fffff0;
    box-shadow: 0 6px 10px 0 rgba(149,144,179,0.15),
      0 15px 50px 0 rgba(182,182,224,0.10);
    position: relative;
  }

  .newsletter-subscribe form {
    z-index: 2;
    left: 20px;
    width: 320px;
    height: 37px;
    bottom: 25px;
    overflow: hidden;
    border-radius: 4px;
    background: #FFFFF0;
    box-shadow: 0 3px 6px 0 rgba(149,144,179,0.20);
  } 
  
  .newsletter-subscribe form::after {
    top: 0;
    content: "";
    width: 30px;
    height: 100%;
    right: 110px;
    background: linear-gradient(90deg, rgba(#fffff0, 0), rgba(#fffff0, 1))
  }

  .newsletter-subscribe form input[type=email] {
    border: none;
    width: 100%;
    height: 100%;
    outline: none;
    font-size: 15px;
    padding: 0 110px 0 20px;
    font-family: 'Open Sans', sans-serif;
    background: #fffff0;
  }
  
  .newsletter-subscribe form button {
    top: 0;
    right: 0;
    padding: 0;
    cursor: pointer;
    outline: none;
    width: 110px;
    border: none;
    height: 100%;
    color: #fffff0;
    font-size: 15px;
    position: absolute;
    background-color: #F88C8A;
}
  
  .newsletter-subscribe form button svg {
      height: 1.2em;
      width: 1.2em;

    }
  
  .newsletter-subscribe form button:hover { 
      background: #FEE48F; color: #1A0373;
  }

/* mobile */

@media (min-width: 320px) and (max-width: 480px) {
.wrapper,
header,
main,
footer {
    max-width: 460px;
    padding: 10px;
    margin: 0 auto;
    width: 95%;
    padding: 2.5%;
}

.wrapper {
    padding-bottom: 0;
}

nav .link-group {
    display: box;
    flex-wrap: wrap;
}
header {
    flex-direction: column;
    align-items: normal;
}
header nav {
    width: 100%;
    max-width: 100%;
}
.site-title {
    text-align: center;
    margin: 0 auto;
}
.site-title span {
    display: none;
}
header nav .link-group {
    margin: 0 auto;
}
main .intro {
    height: 168px;
    margin-top: 42px;
    margin-bottom: 42px;
    text-align: center;
}

.tags .intro,
.page .intro,
.section .intro,
.article .intro {
    margin-bottom: 84px;
}

.main-row {
    flex-direction: column;
    margin-bottom: 0;
}
.main-row .page-label {
    margin: 0 0 42px 0;
}
.main-row .content header {
    margin: 0;
    padding-left: 0;
}
.section .main-row .content {
    min-width: 100%;
}
.main-row .content {
    max-width: 100%;
}
.section .main-row .page-label,
.article .main-row .page-label,
.tool .main-row .page-label {
    display: block;
    border: 0px #384150 solid;
    background: #f6f8fa;
    padding: 20px;
    margin-left: -21px;
    margin-bottom: -7px;
    width: 100%;
}

.section .main-row .page-label div,
.article .main-row .page-label div,
.tool .main-row .page-label div {
    margin-left: 0 !important;
    padding: 0 !important;
    border-top: 0 !important;
    display: inline;
}

.section .main-row .page-label ul li,
.article .main-row .page-label ul li,
.article .main-row .page-label ul li {
    display: inline;
}
.page .main-row .content pre,
.section .main-row .content pre,
.article .main-row .content pre,
.tool .main-row .content pre {
    width: 100%;
    margin-right: 0;
    margin-left: -16px;
    padding:1em;
}
.page .main-row .content .note,
.section .main-row .content .note,
.article .main-row .content .note,
.tool .main-row .content .note {
    width: 100%;
    margin-right: 0;
    margin-left: -16px;
    padding:1em;
}
footer {
    text-align: center;
    margin: 0;
    width: 100%;
}

.email-link {
    font-size: 17px;
}

.mc-field-group #mce-EMAIL {
    width: calc(100% - 50px);
}

nav .link-group a:not(:last-of-type) {
    margin-right: 0;
}

nav .link-group {
    text-align: center;
}
    
.link-group a {
    margin: 0 15px !important;
}

.link-group a.subscribe {
    line-height: 3em;
}

.footer-column {
    display: block;
}
.footer-column .newsletter-container {
    width: 100%;
}
.footer-column .rss-container span{
    display: block;
    padding: 1em 0;
}
}
