/* LEGAL DISCLAIMER
 *
 * These Fonts are licensed only for use on these domains and their subdomains:
 * tillcremer.de
 *
 * It is illegal to download or use them on other websites.
 *
 * While the @font-face statements below may be modified by the client, this disclaimer may not be removed.
 *
 * Optimo webfonts are protected by copyright law and provided under license. To modify, alter, translate, convert, decode or reverse engineer in any manner whatsoever, including converting the Font Software into a different format is strictly prohibited. The webfont files are not to be used for anything other than web font use.
 *
 * optimo.ch
 */

@font-face {
    font-family: "Theinhardt";
    src:
        url("../fonts/Theinhardt-Regular.woff2") format("woff2"),
        url("../fonts/Theinhardt-Regular.woff") format("woff");
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: "Theinhardt";
    src:
        url("../fonts/Theinhardt-Italic.woff2") format("woff2"),
        url("../fonts/Theinhardt-Italic.woff") format("woff");
    font-weight: 400;
    font-style: italic;
}

@font-face {
    font-family: "Theinhardt";
    src:
        url("../fonts/Theinhardt-Bold.woff2") format("woff2"),
        url("../fonts/Theinhardt-Bold.woff") format("woff");
    font-weight: 700;
    font-style: normal;
}

@font-face {
    font-family: "Theinhardt";
    src:
        url("../fonts/Theinhardt-Bold-Italic.woff2") format("woff2"),
        url("../fonts/Theinhardt-Bold-Italic.woff") format("woff");
    font-weight: 700;
    font-style: italic;
}

/* Till Cremer Studio. Microsite CSS */

:root {
    --vertical-margin: calc(var(--font-size) * var(--line-height));
    --horizontal-margin: 1ch;
    --small-font-size: 0.875rem;
    --large-font-size: 1.25rem;
    --font-size: 1rem;
    --line-height: 1.25;
}

::selection {
    background: #f6e4d0;
}

[aria-current] {
    display: none;
}

body {
    margin: 0;
    padding: 0;
    color: #00659d;
    background-color: #fff;
    font-family: "Theinhardt", sans-serif;
    font-size: var(--font-size);
    line-height: var(--line-height);
    text-align: left;
}

/* Container */

header {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: var(--vertical-margin) var(--horizontal-margin);
}

nav {
    grid-column: 1 / -1;
    grid-row: 1;
    text-align: center;
}

footer {
    max-width: 54ch;
    margin: calc(var(--vertical-margin) * 2) auto;
    padding: 0 calc(var(--horizontal-margin) * 2);
}

/* Headings */

h1 {
    font-size: var(--large-font-size);
    line-height: 1;
    font-weight: bold;
    text-transform: uppercase;
    text-align: center;
    margin: var(--vertical-margin) auto;
    grid-column: 1 / -1;
    grid-row: 1;
}

h2 {
    font-size: var(--font-size);
    font-weight: normal;
    text-align: left;
    max-width: 54ch;
    margin: 0 auto;
    padding: 0 calc(var(--horizontal-margin) * 2);
}

/* Lists */

ul {
    max-width: 54ch;
    list-style-type: none;
    margin: var(--vertical-margin) auto;
    padding: 0 calc(var(--horizontal-margin) * 2);
    hyphens: auto;
}

li {
    margin: calc(var(--vertical-margin) / 2) 0;
}

main section ul:last-child {
    margin-top: var(--vertical-margin);
}

nav ul {
    text-align: right;
}

/* Paragraphs */

p {
    max-width: 54ch;
    margin: calc(var(--vertical-margin) / 2) auto;
    padding: 0 calc(var(--horizontal-margin) * 2);
    hyphens: auto;
}

h2 + p {
    margin: 0 auto;
    text-indent: 0;
}

footer address {
    margin: var(--vertical-margin) 0;
}

footer p {
    font-size: var(--small-font-size);
    max-width: none;
    margin: calc(var(--vertical-margin) / 2) 0;
    padding: 0;
}

/* Links */

a {
    color: inherit;
    text-decoration: none;
}

p a::before,
ul a::before {
    content: "↗︎ ";
    white-space: nowrap;
}

address p a::before {
    content: "→ ";
    white-space: nowrap;
}

nav ul a::before {
    content: none;
}

/* Figures */

figure {
    margin: 0;
    grid-column: 1 / -1;
    grid-row: 1;
    background-color: #000;
    margin-bottom: calc(var(--vertical-margin) * 2);
    height: 100vh;
    max-height: 1500px;
    overflow: hidden;
    position: relative;
    z-index: -1;
}

figure img {
    display: block;
    height: 100vh;
    max-height: 1500px;
    width: auto;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

figcaption {
    position: absolute;
    bottom: var(--vertical-margin);
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: calc(54ch + (4 * var(--horizontal-margin)));
    padding: 0 calc(2 * var(--horizontal-margin));
    text-align: left;
    box-sizing: border-box;
}

figcaption span {
    font-size: var(--small-font-size);
}

/* Others */

address {
    font-style: normal;
    font-size: var(--small-font-size);
}

small {
    font-size: inherit;
}

/* Instagram */

aside {
    max-width: 54ch;
    margin: calc(var(--vertical-margin) * 2) auto
        calc(var(--vertical-margin) * 4);
}

aside img {
    display: block;
    max-height: calc(var(--vertical-margin) * 3);
    width: auto;
    margin-left: calc(var(--horizontal-margin) * 4);
}
