/* This file is part of srq.re.

srq.re is free software: you can redistribute it and/or modify it under the
terms of the GNU Affero General Public License as published by the Free Software
Foundation, either version 3 of the License, or (at your option) any later
version.

srq.re is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.  See the GNU Affero General Public License for more details.

You should have received a copy of the GNU Affero General Public License along
with srq.re.  If not, see <http://www.gnu.org/licenses/>. */

:root {
    --brand-black: #131416;
    --brand-grey: #333436;
    --brand-lightgrey: #b3b4b6;
    --brand-white: #ffffff;
    --brand-dot: #e6e2ef;
    --brand-violet: #f6a2ff;
    --brand-pink: #ff7a9a;
    --brand-magenta: #cf7a9a;
    --strong-white: #ffffff;

    --background-color: var(--brand-white);
    --border-color: var(--brand-black);
    --frame-color: var(--brand-black);
    --frame-text-color: var(--brand-white);
    --text-color: var(--brand-grey);
}

@font-face {
    font-family: "JuliaMono";
    src: url(/JuliaMono-Regular.ttf);
}

@font-face {
    font-family: "Allison";
    src: url(/Allison-Regular.ttf);
}

@font-face {
    font-family: "Alegreya";
    src: url(/Alegreya-VariableFont_wght.ttf);
}

html {
    font-size: 100%;
}

body {
    font-family: "Alegreya", serif;
    font-size: 1.4rem;
    line-height: 1.6em;
}

html,
body {
    margin: 0;
    padding: 0;
    height: 100%;
    /* background-image: radial-gradient(var(--brand-dot) 1px, transparent 2px),
    radial-gradient(var(--brand-dot) 2px, transparent 3px),
    radial-gradient(var(--brand-dot) 3px, transparent 4px),
    radial-gradient(var(--brand-dot) 4px, transparent 5px); */
    background-color: var(--brand-white);
    background-position:
        0px 0px,
        25px 25px,
        35px 5px,
        155px 75px;
    background-size:
        3px 3px,
        143px 143px,
        235px 235px,
        491px 491px;
}

.giallo {
    padding: 0em 1em;
}

code, code * {
    font-family: "JuliaMono";
    font-size: 90%;
    line-height: 1.4em;
    font-feature-settings: 'calt' 0;
}

img {
    border: none;
    margin: 0;
}

a,
a:visited {
    color: var(--text-color);
    text-decoration: underline;
    text-decoration-color: var(--brand-pink);
    text-decoration-thickness: 0.3ex;
    text-underline-offset: 0.3ex;
    font-size: inherit;
    font-family: inherit;
}
a:hover,
a:active {
    opacity: 0.5;
    transition: opacity 0.4s;
}

#container {
    position: relative;
    min-height: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
}

#title {
    border: none;
    margin: 0;
    color: var(--brand-magenta);
    background: var(--background-color);
    /* position: fixed; */
    width: 100%;
    top: 0;
    left: 0;
    /* box-shadow: 0px 0px 1px var(--brand-dot); */
    z-index: 100;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
}

#logo {
    flex-grow: 1;
    margin: 1rem;
    text-align: center;
}

#logo img {
    width: clamp(10rem, 90vw, 40rem);
    stroke: var(--brand-magenta);
}

.heart {
    height: 1em;
    stroke: var(--brand-magenta);
    vertical-align: center;
}

#me {
    position: relative;
    width: 15%;
    float: right;
    margin: 1em;
    margin-left: 2em;
    margin-right: 0;
    box-shadow: 0px 0px 1ex var(--text-color);
    border-radius: 50%;
}

#socials {
    list-style-type: none;
    padding: 0px var(--spacing-unit);
    margin: auto;
    display: block;
}

#socials li {
    display: inline-block;
}

#socials li a svg {
    height: 2rem;
    stroke-width: 0;
    stroke: var(--brand-magenta);
    fill: var(--brand-magenta);
    vertical-align: bottom;
}

#navigation ul {
    border: none;
    margin: 0px;
    margin-top: -1.5rem;
    padding: 0px;
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
}

#navigation li {
    display: inline-block;
    font-family: "Alegreya";
    font-weight: 100;
    margin: 0px 1em;
}

#content {
    margin-top: 0;
    padding-bottom: 150px;
}

#page {
    margin: auto;
    padding: 2rem;
    max-width: 40rem;
    text-align: justify;
    text-justify: inter-word;
}

#page h1 {
    font-family: "Allison";
    font-size: 300%;
    line-height: 1em;
    text-align: left;
    margin: 0;
}

#page h2 {
    font-family: "Allison";
    font-size: 200%;
    line-height: 1em;
    text-align: left;
    margin-bottom: 0;
}

.post > p:first-of-type::first-letter {
    float: left;
    font-size: 3.4em;
    line-height: 1;
    margin-right: 0.15em;
    margin-top: 0.15em;
}

#page date {
    display: block;
    font-size: 80%;
}

.post-list {
    padding: 0;
}

.post-list li {
    display: block;
}

.post-list li time {
    margin-right: 2em;
    font-size: 90%;
}

.entries {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin: auto;
    padding: 1.25rem;
}

.entries li {
    display: inline-block;
    box-shadow: 0 0 0.3rem var(--brand-lightgrey);
}

.entries .image {
    background: var(--frame-color);
    border-radius: 2%;
    border: 0.4em solid var(--frame-color);
    color: var(--frame-text-color);
    flex-grow: 0.5;
    margin: 1em;
    text-align: center;
    vertical-align: bottom;
}

.entries .image .caption {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
}

.caption span {
    font-size: 80%;
}

.image img {
    display: block;
    object-fit: contain;
    max-height: 30rem;
    width: calc(100% - 0.6rem);
    background: var(--strong-white);
    padding: 0.3rem;
    border-radius: 1%;
    box-shadow: inset 0 0 1rem var(--brand-lightgrey);
}

.sketch-view img {
    margin: 1rem;
    padding: 1rem;
    box-shadow: inset 0.3rem 0.3rem 1rem var(--background-color);
}

.sketch-view {
    display: block;
}

#footer {
    position: absolute;
    bottom: 0;

    width: 100%;
    height: 10rem;
    text-align: center;

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

#license {
    font-size: 50%;
    margin: auto;
    padding: 2rem;
    max-width: 40rem;
    padding: 1em;
    text-align: center;
}
