article,
aside,
details,
footer,
header,
hgroup,
menu,
nav,
section {
    display: block
}

@font-face {
    font-family: 'Graphik Web Regular';
    src: url('../fonts/Graphik-Regular.otf') format('opentype');
}


:root {
    --background: #fff;
    --text: #111111;
    --text-mid: #333333;
    --text-mid-low: #444444;
    --text-low: #555555;
    --line: #999999;
    --f-size: 1rem;
    --scale-s: 0.8;
    --scale-m: 0.96;
    --scale-ml: 0.995;
    --scale-l: 1.2;
    --scale-xl: 1.55;
    --max-width: 560px;
    --line-height-th-content: 1.935;
    --photo-height: 100vh;
}

/* 
Screen  Old     New

250     510     560
500     510     590
1000    545     610
1500    565     640
2000    635     710
2250    685     760

250     1.025   1.05
500     1.05    1.075
1000    1.075   1.115
1500    1.115   1.15
2000    1.25    1.25
2250    1.35    1.35
 */

@media (min-width: 250px) {
    :root {
        --f-size: 1.05rem;
        --max-width: 560px;
    }
}

@media (min-width: 500px) {
    :root {
        --f-size: 1.075rem;
        --max-width: 590px;
    }
}

@media (min-width: 1000px) {
    :root {
        --f-size: 1.115rem;
        --max-width: 610px;
    }
}

@media (min-width: 1500px) {
    :root {
        --f-size: 1.15rem; 
        --max-width: 640px;
    }
}

@media (min-width: 2000px) {
    :root {
        --f-size: 1.25rem;
        --max-width: 710px;
    }
}

@media (min-width: 2250px) {
    :root {
        --f-size: 1.35rem;
        --max-width: 760px;
    }
}

@media (prefers-color-scheme: dark) {
    :root {
        --background: #111;
        --text: #C7C8CA;
        --text-mid-low: #a2a2a2;
        --text-mid: #a4a6a8;
        --text-low: #737476;
        --line: #656565;
    }
}

::selection {
    background: var(--text);
    color: var(--background);
}

body {
    line-height: 1.8;
    display: flex;
    justify-content: center;
    font-family: "Graphik Web Regular", "Iowan Old Style", "Iowan", "Charter", "Palatino Linotype", "Palatino", "Book Antiqua", "Palatino LT STD", Times New Roman, serif;
    font-size: var(--f-size);
    color: var(--text);
    background: var(--background);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    font-kerning: normal;
}

p {
    margin: 0;
    padding: 0;
}

.wrap {
    position: relative;
    width: 90%;
    max-width: var(--max-width);
    margin: 5vw;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}




/* LINKS  */

a {
    color: var(--text);
    text-decoration: none;
    border-bottom: 1px solid var(--line);
}

a:hover {
    border-bottom: 1px solid var(--text);
}

.a-undecorated {
    color: var(--text-low);
    text-decoration: none !important;
    border-bottom: none;
}

.a-undecorated:hover {
    color: var(--text);
    border-bottom: none;
}

.a-disabled {
    pointer-events: none;
}



/* SECTION */

.section {
    margin: 0;
    padding-top: 10%;
    padding-bottom: 1.5%;
    font-size: calc(var(--f-size) * var(--scale-s));
    color: var(--text-low);
}

.section-right {
    padding-top: 10%;
    padding-bottom: 1.5%;
    font-size: calc(var(--f-size) * var(--scale-s));
    color: var(--text-low);
    text-align: right;
}



/* UNIQUE */

.home-icon-rectangle {
    /* Or #FF2E00 - more dark */
    /* background-color: #FF2E00; */
    width: 20px;
    height: 20px;
    position: relative;
    overflow: hidden;
    isolation: isolate;
    box-shadow: 0 14px 30px rgba(17, 17, 17, 0.16), 0 2px 10px rgba(17, 17, 17, 0.08);
    transition: background-color 1200ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 300ms ease;
    animation: logo-presence 8s ease-in-out infinite;
    will-change: box-shadow, background-color;
}

.home-icon-rectangle::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.26) 0%, rgba(255, 255, 255, 0.08) 34%, rgba(255, 255, 255, 0) 56%),
        linear-gradient(315deg, rgba(0, 0, 0, 0.18) 0%, rgba(0, 0, 0, 0) 54%);
    opacity: 0.95;
    pointer-events: none;
}

.home-icon-rectangle::after {
    content: "";
    position: absolute;
    inset: -25% auto -25% -45%;
    width: 48%;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0));
    opacity: 0;
    transform: skewX(-20deg) translateX(0);
    mix-blend-mode: screen;
    animation: logo-scan 5.6s cubic-bezier(0.22, 1, 0.36, 1) infinite;
    pointer-events: none;
}

.home-icon-rectangle:hover {
    box-shadow: 0 18px 36px rgba(17, 17, 17, 0.2), 0 3px 12px rgba(17, 17, 17, 0.1);
}

@keyframes logo-presence {
    0% {
        box-shadow: 0 14px 30px rgba(17, 17, 17, 0.16), 0 2px 10px rgba(17, 17, 17, 0.08);
    }
    50% {
        box-shadow: 0 18px 38px rgba(17, 17, 17, 0.22), 0 4px 14px rgba(17, 17, 17, 0.1);
    }
    100% {
        box-shadow: 0 14px 30px rgba(17, 17, 17, 0.16), 0 2px 10px rgba(17, 17, 17, 0.08);
    }
}

@keyframes logo-scan {
    0% {
        transform: skewX(-20deg) translateX(0);
        opacity: 0;
    }
    14% {
        opacity: 0;
    }
    28% {
        opacity: 0.9;
    }
    42% {
        transform: skewX(-20deg) translateX(360%);
        opacity: 0;
    }
    100% {
        transform: skewX(-20deg) translateX(360%);
        opacity: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-icon-rectangle,
    .home-icon-rectangle::after {
        animation: none;
    }
}

.svg {
    width: 0.75rem;
    height: 0.75rem;
    display: inline;
    margin-top: 2rem;
}




/* ALL THOUGHTS */


.thought {
    display: flex;
    color: var(--text);
}

.thought:hover .post-spacer {
    border-bottom: 1px solid var(--text);
}

.post-spacer {
    margin-right: .5rem;
    margin-left: .5rem;
    height: 1px;
    border: none;
    border-bottom: 1px dotted var(--text-mid);
    flex: 1 0 1rem;
    opacity: 0.25;
    align-self: flex-end;
    margin-bottom: 0.55rem;
}




/* INDIVIDUAL THOUGHTS */
h1,
h2, 
h3 {
    font-weight: normal;
}

.th-heading {
    font-size: calc(var(--f-size) * var(--scale-xl));
    padding-top: 10%;
    color: var(--text);
}

.th-content {
    font-size: calc(var(--f-size) * var(--scale-ml));
    padding-top: 5%;
    line-height: var(--line-height-th-content);
    color: var(--text-mid-low);
}


.wrap-thought p + p {
    padding-top: 15px;
    text-indent: 1.5em;
}


/* FOOTER */

.thoughts-footer {
    display: flex;
    padding-top: 15%;
    padding-bottom: 15%;
    color: var(--text-low);
}

.p-footer {
    font-size: calc(var(--f-size) * var(--scale-s));
    color: var(--text-low);
}

.p-footer:hover {
    color: var(--text);
}



/* BLOCK QUOTES */


blockquote + p {
    text-indent: 1.5em;
}

blockquote {
    margin-left: 0;
    margin-top: 2rem;
    margin-bottom: 2rem;
    border-left: 1.5px solid var(--text-mid);
}

blockquote p {
    font-size: calc(var(--f-size) * var(--scale-m));
    margin-left: 1rem;
}


/* PHOTOS */

.grid-container {
    margin: 0;
}

figure {
    margin: 0;
    padding: 0;
    display: flex;
}

.img-wrap {
    display: flex;
    height: var(--photo-height);
    justify-content: center;
    align-items: center;
    flex-direction: column;
    margin-bottom: 30px;
}

.img-post {
    display: flex;
    height: 70vh;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    margin-top: 50px;
    margin-bottom: 50px;
}

img {
    max-width: 85%; 
    max-height: 85%;
}

figcaption {
    max-width: calc(100% - 15%);
    padding-top: 15px;
    color: var(--text-low);
    font-style: italic;
    font-size: calc(var(--f-size) * var(--scale-s));
}


/* Works with >1000px screen size but not for mobile */
/* Upload photos only on the photos page */

/* .post-img {
    max-width: 100%; 
    max-height: 100%;
}

.post-img-wrap {
    display: flex;
    height: calc(var(--photo-height) * 0.85);
    justify-content: center;
    align-items: center;
    flex-direction: column;
    margin-left: 50px;
    margin-right: 50px;
} */
