:root {
    --color-background: #ffffff;
    --color-accent: #e9967a;
    --color-text: 38, 38, 38;
}

#home {
/*    --color-background: #ffdac9;*/
/*    --color-accent: #cd5c5c;*/
/*    --color-text: 68, 58, 53;*/
    --color-background: #fffaf0;
    --color-text: 76, 70, 57;
}

#articles, body:not(.header-image).article {
/*    --color-background: #FEE7FB;*/
/*    --color-accent: #b4489c;*/
/*    --color-text: 67, 14, 60;*/
    --color-background: #fffaf0;
    --color-text: 76, 70, 57;
}

#poemes, body:not(.header-image).poeme {
/*    --color-background: #f0f8ff;*/
/*    --color-accent: #29679a;*/
/*    --color-text: 55, 60, 65;*/
    --color-background: #fffaf0;
    --color-text: 76, 70, 57;
}

#creations {
    --color-background: #fffaf0;
    --color-text: 76, 70, 57;
}

* , * :before, * :after {
    font-kerning: normal; /* Font kerning information stored in the font must be applied */
}

body {
    font-family: "Domaine Text", serif;
    line-height: 1.6;
    font-size: 18px;
    padding-bottom: 20px;
    color: rgb(var(--color-text));
    -webkit-font-smoothing: antialiased; /* Make the text look a little less chunky */
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility; /* Enables kerning and optional ligatures */
    background-color: var(--color-background);
}

body, #section-item.header-image .constrained, #section-item.header-image footer {
    max-width: 620px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
}

a {
    text-decoration: underline;
    text-decoration-color: rgba(var(--color-text), 0.3);
    text-decoration-thickness: 0.05em;
    text-underline-offset: 0.1em;
    color: inherit;
}

a:hover {
    color: var(--color-accent);
    text-decoration-color: rgb(var(--color-accent));
}

hr {
    border: none;
    opacity: 0.5;
}

hr::after {
    content: "* * *";
    display: block;
    position: relative;
    text-align: center;
    top: 3px;
}

nav {
    margin-top: 90px;
    margin-bottom: 200px;
}

nav a {
    text-decoration: none;
    font-size: 16px;
    text-transform: lowercase;
}

nav .current::after {
    content: "";
    background-color: var(--color-accent);
    display: inline;
    width: 2.5px;
    height: 2.5px;
    border-radius: 100%;
    position: absolute;
    right: -6px;
    bottom: 6.767px;
}

nav li:first-child.current::after {
    bottom: 5px;
    width: 3px;
    height: 3px;
}

nav ul {
    list-style: none;
    text-align: right;
    margin: 0;
    padding: 0;
}

nav li {
    display: inline-block;
    position: relative;
    margin-right: 32px;
}

nav li:last-child {
    margin: 0;
}

nav li a {
    display: inline-block;
    height: 36px;
    line-height: 55px;
}

nav li:first-child {
    float: left;
}

nav li:first-child a {
    display: inline-block;
    position: relative;
    width: 44px;
    height: 36px;
    text-indent: 9999px;
    white-space: nowrap;
    overflow: hidden;
}

nav li:first-child svg {
    position: absolute;
    left:0;
    top: 0;
}

nav svg path {
    fill: rgb(var(--color-text));
}

nav svg:hover path {
    fill: var(--color-accent);
}

footer {
    margin-top: 90px;
}

main {
    -webkit-hyphens: auto;
    -moz-hyphens: auto;
    -ms-hyphens: auto;
    hyphens: auto;
}

main h1 + h2 {
    font-style: italic;
    font-family: "Domaine Text";
    font-weight: normal;
    opacity: 0.6;
    margin-top: -1.8em;
    margin-bottom: 5em;
}

h1 {
    font-family: "Domaine Display", serif;
    font-size: 56px;
    margin-bottom: 1em;
}

h1, h2 {
    line-height: 1.1;
}

h2, h3 {
    margin-top: 1.5em;
}

h3 {
    margin-bottom: -0.5em;
}

table {
    width: 100%;
    table-layout: fixed;
    border-spacing: 0px;
    text-align: left;
}

table, th, td {
    padding: 10px;
    margin: 2em 0;
    border: 1px solid #eee;
    border-collapse: collapse;
}

caption {
    caption-side: bottom;
    text-align: left;
    margin-top: 1em;
    font-size: 15px;
    opacity: 0.7;
}

blockquote {
    opacity: 0.7;
}

time {
    display: block;
    font-variant-numeric: oldstyle-nums;
}

article .constrained {
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

footer {
    font-size: 13px;
    text-align: center;
}

footer > a {
    text-decoration: none;
    padding: 0 7px;
}

#copyright {
    opacity: 0.5;
    font-size: 11px;
}

.callout, #promo {
    background-color: rgba(0,0,0,0.04);
    font-size: 16px;
    text-align: left;
    padding: 50px 70px;
    font-style: italic;
    color: rgba(var(--color-text), 0.7);
}

.callout {
    margin: 3em 0;
}

#promo {
    display: flex;
    margin-bottom: 50px;
}

#promo > div {
    flex-shrink: 3;
}

#promo img {
    max-width: 100%;
}

#promo div p {
    font-style: italic;
    color: rgba(var(--color-text), 0.7);
    margin: 0 2em 1em 0;
}

/*#promo a {*/
/*    color: var(--color-accent);*/
/*    text-decoration-color: var(--color-accent);*/
/*}*/

#promo > a {
    mix-blend-mode: luminosity;
}

#promo > a:hover {
    mix-blend-mode: initial;
}

img[src$="portrait.jpg"] {
    width: 200px;
    float: right;
    margin: 7px 0 2em 2em;
}

body.section-index article h1 {
    font-size: 1.5em;
    font-family: "Domaine Text", serif;
    margin-bottom: 0.5em;
}

body.section-index article h1 a {
    text-decoration: none;
}

body.section-index article header img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    object-position: 50% 35%;
    filter: grayscale();
    mix-blend-mode: luminosity;
    opacity: 0.9;
}

body.section-index article:hover header img {
    mix-blend-mode: initial;
    filter: none;
}

body.section-index time {
    color: rgba(var(--color-text), 0.6);
    font-size: 16px;
    margin-bottom: 2em;
}

body.section-index time a {
    text-decoration: none;
}

body.section-index article:not(:last-of-type) {
    margin-bottom: 4.5em;
    padding-bottom: 3em;
    border-bottom: 1px solid rgba(var(--color-text), 0.1);
}

.read-more {
    text-decoration: none;
    font-style: italic;
    color: var(--color-accent);
    font-size: 16px;
}

#section-item.header-image main {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: -1;
    padding-bottom: 20px;
}

#section-item.header-image header {
    position: relative;
    padding-top: 284px;
    padding-bottom: 60px;
}

#section-item header {
    text-align: center;
    margin-bottom: 56px;
}

#section-item header img, #section-item.header-image header::after {
    position: absolute;
    top: 0;
    left: 0;
    z-index: -2;
    height: 100%;
    width: 100%;
    object-fit: cover;
    object-position: 50% 35%;
}

#section-item.header-image header::after {
    content: "";
    display: block;
    background-color: rgba(0,0,0,0.5);
    z-index: -1;
}

#section-item.header-image nav, #section-item.header-image header {
    color: white;
}

#section-item h1 {
    margin-bottom: 20px;
}

#section-item time {
    opacity: 0.6;
}

#section-item.header-image nav path {
    fill: white;
}

#section-item.header-image nav a:hover, #section-item.header-image nav svg:hover {
    opacity: 0.7;
    color: inherit;
}

#section-item.header-image nav .current::after {
    background-color: white;
}

.masonry {
    display: flex;
    flex-wrap: wrap;
}

.masonry img {
    height: 150px;
    margin: 0 1em 1em 0;
    flex: 1 0 auto;
    object-fit: cover;
    object-position: 50% 65%;
}

#creations .masonry img {
    mix-blend-mode: luminosity;
}

#creations .masonry img:hover {
    mix-blend-mode: initial;
}
