
html {
    background-color: var(--main-background-color);
}

body {
    margin: 0;
    color: var(--main-text-color);
    font-family: saol-text-medium, serif;
}

#preview {
    position: fixed;
    z-index: 100;
}

a {
    color: var(--main-text-color);
}

#fallback {
    position: absolute;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    pointer-events: none;
    opacity: 1;
    clip-path: inset(0% 0 0 0);
}

#fallback > img {
    width: 800px;
}

#center {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

#content {
    width: 800px;
}

#navigation {
    padding: 1.3em 2em 1.3em;
    display: grid;
    grid-template-columns: repeat(2, 1fr) 6fr repeat(2, 1fr);
    font-family: apercu-light, serif;
}

#navigation > * {
    place-self: center;
}

#navigation > a {
    color: var(--main-text-color);
    font-size: 0.8em;
    text-decoration-color: transparent;
    transition: .5s;
}

#navigation > a:hover {
    text-decoration-color: var(--main-text-color);
}

#navigation > a > img {
    color: var(--main-text-color);
    height: 2.9em;
    text-decoration-color: transparent;
    transition: .25s;
}

#barn-backwall {
    background-color: var(--main-accent-color);
}

#barn {
    height: 24.2em;
    mask: linear-gradient(#000 0 0) top/100% calc(100% - 1em) no-repeat,
    conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom/1.30em 1em repeat-x;
}

#barn > img {
    transition: 0.25s;
    transform-origin: bottom center;
    width: 100%;
    overflow: clip;
    margin-top: -6em;
}

#barn > img:hover {
    transform: scale(1.01);
}

#banderole {
    background-color: var(--main-accent-color);
    color: var(--main-background-color);
    padding: 0.75em 2em 0.9em;
    font-size: 1.46em;
    text-align: center;
    font-family: apercu-light, serif;
}

#gallery {
    padding: 0 3em 2.1em;
    background: linear-gradient(
            var(--main-accent-color) 0%,
            var(--main-accent-color) 21%,
            var(--secondary-background-color) 21%
    );
    display: flex;
    gap: 0.4em;
    overflow-x: hidden;
}

.product-card {
    box-shadow: 3px 4px 10px -5px var(--main-text-color);
    width: 230px;
    text-align: center;
    color: var(--main-text-color);
    font-family: apercu-medium, serif;
    height: 17.5em;
    text-decoration-color: transparent;
    text-decoration-line: underline;
    transition: .5s;
    background-color: var(--secondary-background-color);
}

.product-card:hover {
    text-decoration-color: var(--main-text-color);
}

.product-image {
    width: inherit;
    height: 200px;
    overflow: hidden;
}

.product-image > img {
    width: inherit;
}

.product-title {
    padding: 0.57em 1em 0;
    font-size: 0.8em;
}

.product-annotation {
    font-size: 0.64em;
    font-family: apercu-light, serif;
}

.product-price {
    padding: 0.3em;
    font-size: 0.82em;
}

#discover {
    text-align: center;
}

.button-link {
    background-color: var(--secondary-background-color);
}

.button-link > a {
    font-family: apercu-medium, serif;
    font-size: 0.79em;
    text-decoration-line: none;
    color: var(--main-text-color);
    border: 1px solid rgb(218, 198, 158);
    border-radius: 2em;
    padding: 0.8em 1.5em;
    transition: .25s;
}

.button-link > a:hover {
    background-color: rgba(218, 198, 158, 0.1);
}



#shop-reference-container {
    background-color: var(--secondary-background-color);
    padding-top: 3.2em;
    padding-left: 3em;
    padding-right: 3em;
}

#shop-reference {
    background-color: var(--main-background-color);
    display: grid;
    grid-template-rows: 5fr 2fr;
    grid-template-columns: repeat(2, 50%);
    place-items: stretch;
    /* TODO box-shadow is currently clipped by height */
    height: 9.5em;
    box-shadow: 2px 2px 2px 0 rgba(0, 0, 0, 0.19);
}

#shop-reference > #socks {
    grid-column: 1;
    grid-row: 1 / 3;
    overflow: hidden;
}

#shop-reference > #socks > img {
    width: 77%;
    margin-top: -1.7em;
    padding-left: 1em;
}

#shop-reference > #info {
    grid-row: 1;
    grid-column: 2;
    font-family: apercu-light, serif;
    letter-spacing: 0.032em;
    font-size: 1.13em;
    align-self: center;
    padding-left: 0.26em;
    padding-right: 2.6em;
}

#shop-reference > #info > a {
    color: var(--main-text-color);
}

#shop-reference > #address {
    grid-row: 2;
    grid-column: 2;
    align-self: start;
    font-family: apercu-medium, serif;
    font-size: 0.8em;
    padding-left: 0.4em;
}

#information {
    background: linear-gradient(
            var(--secondary-background-color) 0%,
            var(--secondary-background-color) 40%,
            var(--main-background-color) 40%
    );
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    padding: 3em;
    column-gap: 0.7em;
    place-items: stretch;
}

#information > * {
    width: 100%;
    height: 17.5em;
}

.image-link {
    width: 100%;
    display: grid;
    grid-template-rows: 60% auto;
    text-decoration: none;
}

.image-link > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    grid-column: 1;
    grid-row: 1 / 3;
}

.image-link > .image-link-title {
    grid-column: 1;
    grid-row: 1;
    justify-self: center;
    align-self: end;
    padding-bottom: 0.1em;
    font-size: 2.5em;
    color: var(--secondary-background-color);
    letter-spacing: 0.02em;
}

.image-link > .image-link-subtitle {
    grid-column: 1;
    grid-row: 2;
    justify-self: center;
    color: var(--secondary-background-color);
    text-decoration-line: underline;
    font-size: 0.7em;
}

#custom-404 {
    width: 100%;
}

#custom-404 > img {
    width: 100%;
    clip-path: inset(15% 0 0 0);
}

#news {
    padding-top: 1.5em;
    background-color: var(--secondary-background-color);
    height: 30.9em;
}

#news-header {
    text-align: center;
    text-transform: uppercase;
    font-family: apercu-medium, serif;
    font-size: 0.6em;
}

#news-topic {
    padding-top: 0.5em;
    padding-bottom: 1.7em;
    text-align: center;
    font-size: 1.53em;
}

#news-content {
    display: grid;
    grid-template-columns: 50% 50%;
}

#news-image {
    padding-left: 3em;
    padding-right: 0.2em;
}

#news-image > img {
    width: 100%;
    height: auto;
    filter: drop-shadow(2px 2px 5px #cccccc);
}

#news-product {
    padding-top: 1.5em;
    padding-left: 4em;
    padding-right: 6em;
}

#news-product-description {
    font-family: apercu-light, serif;
    font-size: 1.2em;
    line-height: 1.08;
}

#news-product-speciality {
    padding-top: 0.1em;
    font-size: 0.75em;
    font-family: apercu-light, serif;
}

#news-product-price {
    padding-top: 1.2em;
}

#news-product-price > div {
    display: inline-block;
    font-family: apercu-light, serif;
    font-size: 1.2em;
}

#price-divider {
    padding: 0 0.1em;
    color: var(--annotation-color);
}

#price-special {
    color: var(--annotation-color);
}

#special-description {
    padding-top: 0.75em;
    font-family: apercu-medium, serif;
    color: var(--annotation-color);
    font-size: 0.57em;

    display: inline-block;
}

#special-extra-info {
    --radius: 1.6em;
    margin-left: 0.4em;
    margin-top: -0.1em;
    width: var(--radius);
    height: var(--radius);
    line-height: var(--radius);
    vertical-align: text-top;
    text-align: center;
    border-radius: 50% 50%;
    display: inline-block;
    font-family: apercu-medium, serif;
    font-size: 0.64em;
    background-color: var(--annotation-color);
}

#news-product-text {
    padding-top: 1.4em;
    font-family: apercu-light, serif;
    font-size: 0.81em;
}

#news-product-more {
    padding-top: 2.2em;
    margin-left: -0.2em;
}

#further-links {
    background-color: var(--secondary-background-color);
    padding: 3em;
    display: grid;
    width: 100%;
    box-sizing: border-box;
    grid-template-columns: 50% 50%;
    grid-column-gap: 0.3em;
}

#further-links:nth-child(1) {
    grid-column: 1;
    grid-row: 1;
}

#further-links:nth-child(2) {
    grid-column: 2;
    grid-row: 1;
}

.further-card {
    background-color: var(--main-background-color);
    height: 20.8em;
    padding-top: 1.8em;
    padding-left: 3.7em;
    padding-right: 4.1em;
    color: var(--main-text-color);
    display: grid;
    grid-template-rows: auto auto auto auto 1fr;
}

.further-card > * {
    grid-column: 1;
}

.further-card > .heading {
    grid-row-start: 1;
    grid-row-end: 2;
    text-transform: uppercase;
    font-size: 0.58em;
    font-family: apercu-medium, serif;
    font-weight: bold;
    padding-bottom: 0.3em;
    border-bottom: 1px solid var(--main-text-color);
}

.further-card > .description {
    grid-row-start: 2;
    grid-row-end: 3;
    font-family: apercu-light, serif;
    font-size: 1.2em;
    padding-top: 1.1em;
    padding-bottom: 0.8em;
    line-height: 1.07em;
}

.further-card > .text {
    grid-row-start: 3;
    grid-row-end: 4;
    font-family: apercu-light, serif;
    font-size: 0.81em;
    padding-bottom: 1.4em;
}

.further-card > .link {
    grid-row-start: 4;
    grid-row-end: 5;
    font-family: apercu-medium, serif;
    font-size: 0.7em;
}

.further-card > .link > a::before {
    padding-right: 0.2em;
    content: "→";
}

.further-card > .link > a {
    text-decoration: none;
}

.further-card > .image {
    grid-row-start: 1;
    grid-row-end: 6;
    justify-self: end;
    align-self: end;
    overflow-x: clip;
    overflow-y: clip;
    overflow-clip-margin: 10em;
    pointer-events: none;
}

.further-card > .image > img {
    display: block;
}

#home-page-further-link-alpaka-with-hat {
    height: 10.5em;
    margin-right: -4em;
    bottom: 0;
}

#home-page-further-link-ball-of-wool {
    margin-right: -0.7em;
    margin-bottom: 1.2em;
    height: 3.9em;
}
