:root {
    --backgroundPrimary: #F4F3EE;
    --backgroundSecondary: #ccc5b9;
    --foregroundLight: #403D39;
    --foregroundDark: #252422;
    --accent: #E0AFA0;
    --fontFamily: "Lora", serif;
    --polaroidMaxWidth: 300px;
    --polaroidMinWidth: 150px;
}

html {
    background-color: var(--backgroundPrimary);
    color: var(--foregroundLight);
    font-family: var(--fontFamily);
    font-optical-sizing: auto;
    font-style: normal;
}

* {
    box-sizing: border-box;
}

h1 {
    line-height: 1.1;
    font-weight: 400;
    margin: 5px;
    cursor: default;
}

body {
    padding-top: 60px;
}

.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0 auto;
    overflow: auto;
    text-align: center;
}

.container>div {
    margin: 20px;
}

.profile {
    width: 100px;
    border-radius: 50%;
}

.social {
    color: var(--backgroundSecondary);
    font-size: 18px;
    display: flex;
    justify-content: center;
}

.social a,
.social a:active,
.social a:visited {
    color: var(--backgroundSecondary);
}

.social a {
    margin: 4px;
    transition: all .03s ease-in-out;
}

.social a:hover {
    color: var(--accent);
    transform: scale(1.1);
}

/* Polaroid */
.polaroid {
    background: #fff;
    padding: 1rem;
    background: linear-gradient(120deg, #fff, #DDD 60%);
    box-shadow: 1px 1px 2px 1px rgba(0, 0, 0, 0.3), inset 4px 5px 10px 0 rgba(0, 0, 0, 0.1);
    border-radius: 2px;
    transform: rotate(-4deg);
    transition: all 175ms ease-in-out;
}

.polaroid:hover {
    transform: rotate(6deg);
}

.polaroid-image {
    position: relative;
}

.polaroid-image>img {
    max-width: 100%;
    height: auto;
    z-index: -1;
}

.polaroid-image>.polaroid-gloss {
    position: absolute;
    top: 0;
    left: 0;
    background: linear-gradient(120deg, rgba(255, 255, 255, .6), transparent 60%, rgba(0, 0, 0, .5) 99%);
    box-shadow: inset 0 0 10px 1px rgba(0, 0, 0, 0.1);
    width: 100%;
    height: 100%;
    z-index: 10;
}

.polaroid>p {
    font-size: 14px;
    text-align: center;
    line-height: 1em;
}

h1 {
    font-size: max(30px, 8vw);
}

.polaroid {
    width: min(var(--polaroidMaxWidth), max(var(--polaroidMinWidth), 60%));
}

@media only screen and (min-width: 600px) {
    h1 {
        font-size: 48px;
    }

    .polaroid {
        width: var(--polaroidMaxWidth);
    }

    body {
        padding-top: 10vh;
    }
}
