:root {
    --background: #fffff3;
}

html {
    font-size: clamp(1rem, 0.9rem + 1.2vw, 1.1rem);
}

body {
    background-color: var(--background);
    display: grid;
    max-width: 800px;
    margin: 1.5rem auto 0.5rem auto;
    font-family: "EB Garamond";
    font-weight: 400;
    font-style: normal;
}

header h1,
main h2,
main h3,
main h4,
main h5,
main p,
main ul li,
footer nav,
#copy {
    opacity: 0.81;
}

a, a:visited {
    color: #000;
}

header {
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 1rem;
}

header a {
    text-decoration: none;
}

header img {
    width: 8rem;
    opacity: 0.85;
}

header h1 {
    align-content: center;
    font-size: 2.8rem;
    line-height: 2.8rem;
}

#tagline {
    font-size: .75rem;
    text-transform: uppercase;
    text-align: right;
    margin-top: 0.2rem;
    opacity: 0.6;
}

h1, h2, h3, h4, h5, h6, #copy, footer a,
article > p:first-child::first-letter,
#older {
  font-family: "Cormorant SC", serif;
  font-weight: 600;
}

h2.title {
    font-size: 2.35rem;
    font-weight: 400;
    line-height: 2.6rem;
    margin: 0.5rem 0 1rem 0;
}

.subtitle {
    border-top-color: #000;
    border-top-style: double;
    border-bottom-color: #000;
    border-bottom-style: double;
    font-style: italic;
    font-size: 0.8rem;
    opacity: 0.85;
    margin: 0.8rem 0;
    padding: 0.14rem 0;
    display: flex;
    justify-content: space-between;
}

.subtitle > *:nth-of-type(even) {
    font-style: normal;
}

article {
    font-size: 0.9rem;
}

article p:not(:last-child) {
    margin-bottom: 0.2rem;
}

article {
    column-count: 3;
}

article p,
section > p {
    line-height: 1.49;
    text-align: justify;
}

article p:not(:first-child) {
    text-indent: 30px;
}


article ul + p:not(:first-child),
article p:has(> img) + p:not(:first-child),
article blockquote + p:not(:first-child) {
    text-indent: 0;
}

li {
    list-style: circle;
}

article > p:first-child::first-letter {
    font-size: 5em;
    font-weight: bold;
    float: left; /* Makes text wrap around the large letter */
    line-height: 1; /* Adjusts vertical alignment */
    padding-right: 0.1em; /* Adds space between the letter and the rest of the text */
    margin-top: 10px;
}

article img {
    margin-top: 1rem;
    margin-bottom: 2rem;
}

article blockquote {
    border-top-color: rgba(0, 0, 0, 0.08);
    border-top-style: solid;
    border-top-width: 3px;
    text-align: center;
    overflow: visible;
    margin: 1rem 0 0.45rem 0;
    break-inside: avoid;
}

article blockquote > * {
    font-style: italic;
}

article blockquote p {
    z-index: 1;
    position: relative;
    padding: 0.8rem 0 0 0;
}

article blockquote:after {
    content: "";
    width: 100%;
    display: inline-block;
    border-bottom-color: rgba(0, 0, 0, 0.08);
    border-bottom-style: solid;
    border-bottom-width: 3px;
}

@media (hover: hover) and (pointer: fine) {
    article blockquote:before {
	content: "❠";
	color: rgba(0, 0, 0, 0.25);
	font-size: 2rem;
	position: absolute;
	background: var(--background);
	padding: 0 0.35em;
	transform: translateX(-1rem) rotateX(180deg) translateY(15px);
	display: inline-block;
    }
}

article blockquote > ul {
    text-align: left;
    margin-top: 1rem;
    padding-left: 1rem;
}

.hand {
    width: 3rem;
    display: inline-block;
}

section .hand {
    width: 2rem;
}

section > h2 {
    display: flex;
    justify-content: center;
    column-gap: 1rem;
    font-size: 3.2rem;
    text-align: center;
    font-weight: 400;
}

section > h2 img {
    opacity: 0.15;
    max-width: 3rem;
}

section > h3 a {
    text-decoration-style: dotted;
    text-decoration-thickness: 1px;
    text-decoration-color: rgba(0, 0, 0, 0.5);
}

section > h3 {
    font-size: 2rem;
    line-height: 2.3rem;
}

hr, hr.sep {
    overflow: visible;
    height: 30px;
    padding: 0;
    border: none;
    border-top: medium double #333;
    color: #333;
    text-align: center;
    opacity: 0.8;
    transform: translateY(20px);
}
hr:after, hr.sep:after {
    content: "⚜";
    display: inline-block;
    position: relative;
    top: -0.9em;
    font-size: 1.2rem;
    padding: 0 0.25em;
    background: var(--background);
    color: #000;
}

article hr {
    margin-bottom: 0.7rem;
}

article hr:after,
hr.sep:after {
    content: "🙘";
}

footer {
    display: grid;
    row-gap: 0.5rem;
    margin: 1rem 0 0.5rem 0;
    padding: 0.5rem 0 0.7rem 0;
    border-top-color: rgba(0, 0, 0, 0.3);
    border-top-style: double;
    border-bottom-color: rgba(0, 0, 0, 0.3);
    border-bottom-style: double;
}

nav {
    display: flex;
    justify-content: center;
    column-gap: 2rem;
}

nav span,
.subtitle > span:nth-of-type(even) {
    font-size: 0.5rem;
    align-content: center;
}

footer a {
    text-decoration-style: dotted;
}

#explainer {
    opacity: 0.6;
    font-style: italic;
    font-size: 0.88rem;
}

#copy {
    text-align: center;
}

@media (max-width: 800px) {
    body {
	padding: 0 0.5rem;
    }
}

#secondary {
    display: grid;
    margin-top: 0.5rem;
    grid-template-columns: 1fr 1fr;
}

#secondary > *:nth-child(1) {
    padding-right: 1rem;
}

#secondary > *:nth-child(2) {
    border-left: 1px solid #000;
    padding-left: 1rem;
}

h4 {
    font-size: 1.65rem;
}

h5 {
    font-size: 1.55rem;
}

#preview {
    display: grid;
    row-gap: 0.35rem;
}

#preview > div:nth-of-type(1) {
    display: flex;
    font-size: 0.8rem;
    column-gap: 0.5rem;
    margin-left: 1rem;
    opacity: 0.6;
}

#preview > div:nth-of-type(1) > span:first-child {
    opacity: 0.8;
}

#preview > div:nth-of-type(1) > span:last-child {
    font-style: italic;
}

#older {
    margin: 0.5rem 0 0.2rem 0;
    padding-top: 0.5rem;
}

#older h5 {
    border-top: 1px dotted rgba(0, 0, 0, 0.5);
    padding-top: 0.5rem;
}

#older h5 span {
    opacity: 0.4;
    margin-right: 0.5rem;
}

.mono {
    filter: grayscale(100%);
    cursor: default;
}

@media (max-width: 600px) {
    header {
	grid-template-columns: 1fr;
	row-gap: 1rem;
	justify-items: center;
    }

    header img {
	width: 13rem;
	opacity: 0.85;
    }

    article {
	column-count: 1;
    }


    article img {
	width: 70vw;
	margin-left: auto;
	margin-right: auto;
    }

    section > h2 {
	font-size: 2.5rem;
    }

    section > h3 {
	font-size: 1.5rem;
	line-height: 1.7rem;
    }

    .subtitle {
	flex-direction: column;
	row-gap: 0.2rem;
	padding-top: 0.5rem;
	padding-bottom: 0.5rem;
    }

    .subtitle > *:before {
	content: "♦";
	margin-right: 0.5rem;
	opacity: 0.75;
	filter: grayscale(100%);
    }

    .subtitle > *:nth-of-type(even) {
	display: none;
    }

    #secondary {
	grid-template-columns: 1fr;
    }

    #secondary > *:nth-child(2) {
	border-left: none;
	padding-left: inherit;
    }
}

.fleur:after,
nav span,
.subtitle > span:nth-of-type(even) {
    font-family: serif;
}
