/*
Theme Name: YSL
Theme URI: 
Author: Dennis Helbig
Author URI: https://dennishelbig.com/
Description: Personal Theme for YSL
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: custom theme by Dennis Helbig
*/
/* http://meyerweb.com/eric/tools/css/reset/ 
   v2.0 | 20110126
   License: none (public domain)
*/
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
}

/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
  display: block;
}

body {
  line-height: 1;
}

ol, ul {
  list-style: none;
}

blockquote, q {
  quotes: none;
}

blockquote:before, blockquote:after,
q:before, q:after {
  content: "";
  content: none;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

button {
  border: none;
  margin: 0;
  padding: 0;
  width: auto;
  overflow: visible;
  background: transparent;
  /* inherit font & color from ancestor */
  color: inherit;
  font: inherit;
  /* Normalize `line-height`. Cannot be changed from `normal` in Firefox 4+. */
  line-height: normal;
  /* Corrects font smoothing for webkit */
  -webkit-font-smoothing: inherit;
  -moz-osx-font-smoothing: inherit;
  /* Corrects inability to style clickable `input` types in iOS */
  -webkit-appearance: none;
  outline: none;
}

/* Remove excess padding and border in Firefox 4+ */
button::-moz-focus-inner {
  border: 0;
  padding: 0;
}

.opacity-null {
  opacity: 0;
}

.display-none {
  display: none;
}

.overflow-hidden {
  overflow: hidden;
}

.underline {
  text-decoration: underline;
}

.mt-1 {
  margin-top: 1em;
}

.mb-1 {
  margin-bottom: 1em;
}

.mt-2 {
  margin-top: 2em;
}

.mb-2 {
  margin-bottom: 2em;
}

.mt-3 {
  margin-top: 3em;
}

.mb-3 {
  margin-bottom: 3em;
}

.mt-4 {
  margin-top: 4em;
}

.mb-4 {
  margin-bottom: 4em;
}

.mt-5 {
  margin-top: 5em;
}

.mb-5 {
  margin-bottom: 5em;
}

.mt-6 {
  margin-top: 6em;
}

.mb-6 {
  margin-bottom: 6em;
}

.mt-7 {
  margin-top: 7em;
}

.mb-7 {
  margin-bottom: 7em;
}

.mt-8 {
  margin-top: 8em;
}

.mb-8 {
  margin-bottom: 8em;
}

.mt-9 {
  margin-top: 9em;
}

.mb-9 {
  margin-bottom: 9em;
}

.mt-10 {
  margin-top: 10em;
}

.mb-10 {
  margin-bottom: 10em;
}

@font-face {
  font-family: "arial";
  src: url("fonts/arial.woff2") format("woff2"), url("fonts/arial.woff") format("woff");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "fragment";
  src: url("fonts/FragmentMono-Regular.woff2") format("woff2"), url("fonts/FragmentMono-Regular.woff") format("woff");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}
.monotype {
  font-family: "fragment", "Courier New", Courier, monospace;
}

.h1 {
  font-size: var(--font-size-large);
  margin-bottom: 0.5em;
  line-height: 1.3;
  letter-spacing: 0.02em;
}

.h2 {
  font-size: var(--font-size-small);
  line-height: 1.5;
  font-family: "fragment", "Courier New", Courier, monospace;
}

.font-sm {
  font-family: "fragment", "Courier New", Courier, monospace;
  font-size: 12px;
  text-decoration: inherit;
}
.font-sm:hover {
  text-decoration: underline;
}

html, body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: #fff;
  overflow-x: hidden;
  font-family: "arial";
}

:root {
  --padding: 1rem;
  --font-size-large: 38px;
  --font-size-small: 15px;
}
@media (max-width: 1200px) {
  :root {
    --font-size-large: 34px;
  }
}
@media (max-width: 920px) {
  :root {
    --padding: 0.75rem;
  }
}
@media (max-width: 480px) {
  :root {
    --padding: 0.5rem;
  }
}
@media (max-width: 330px) {
  :root {
    --padding: 0.25rem;
  }
}

body {
  padding: var(--padding);
  box-sizing: border-box;
}

img, picture {
  display: block;
  width: 100%;
  height: auto;
}

figcaption {
  font-size: 10px;
  font-family: "courier";
  padding-top: 0.75em;
}

a {
  color: inherit;
}

nav {
  display: flex;
  justify-content: space-between;
}
nav .h1 {
  text-transform: lowercase;
}
nav a {
  text-decoration: inherit;
}
nav .lang-switch {
  font-size: var(--font-size-small);
  font-family: "fragment", "Courier New", Courier, monospace;
}
@media (min-width: 481px) {
  nav {
    margin-bottom: min(140px, 15vw);
  }
  nav .lang-switch {
    margin-top: 0.5em;
  }
}
@media (max-width: 480px) {
  nav {
    flex-direction: column;
  }
  nav .lang-switch {
    margin-top: min(140px, 15vw);
    margin-bottom: 1em;
  }
}

nav, section {
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
}

.be-aware {
  position: absolute;
  left: 50%;
  transform: translate(-49%, -40%);
  width: 110vw;
  max-width: 1580px;
  pointer-events: none;
}
@media (max-width: 480px) {
  .be-aware {
    width: 209vw;
    transform: rotate(90deg) translate(17.5%, 190%);
    transform-origin: center center;
    right: 0;
  }
}

section {
  position: relative;
  display: flex;
  flex-direction: column;
  margin-bottom: min(110px, 25vw);
}
section > div {
  width: 100%;
}
@media (min-width: 921px) {
  section {
    flex-direction: row;
  }
  section > div {
    width: 50%;
  }
  section > div:first-child {
    padding-right: min(65px, 5vw);
    box-sizing: border-box;
  }
}
@media (min-width: 921px) {
  section.about .image .picture {
    width: 78%;
    margin-left: auto;
  }
}
@media (max-width: 920px) {
  section.about .image .picture {
    width: 70%;
    margin-left: auto;
    margin-right: auto;
  }
}
@media (max-width: 480px) {
  section.about .image .picture {
    width: 100vw;
    margin-left: calc(-1 * var(--padding));
  }
  section.about .image .picture figcaption {
    margin-left: var(--padding);
  }
}
section.about .text .headline {
  margin-top: 4rem;
}
@media (min-width: 921px) {
  section.about .text .headline {
    margin-top: min(7em, 22vw);
  }
}
@media (min-width: 481px) {
  section.about .text .mobile {
    display: none;
  }
}
@media (max-width: 480px) {
  section.about .text .desktop {
    display: none;
  }
}
@media (min-width: 921px) {
  section.about .text p {
    font-family: "arial";
    font-size: var(--font-size-large);
    line-height: 1.3;
    letter-spacing: 0.02em;
  }
}
@media (max-width: 920px) {
  section.about {
    margin-bottom: 4rem;
  }
}
@media (max-width: 920px) {
  section.info .text {
    margin-top: 4rem;
    order: 2;
  }
}
@media (max-width: 920px) {
  section.info .image .picture {
    width: 100vw;
    margin-left: calc(-1 * var(--padding));
  }
  section.info .image .picture figcaption {
    margin-left: var(--padding);
  }
}
section.text-page .text {
  width: 100%;
  max-width: 600px;
}
section.text-page .text * {
  margin-bottom: 1em;
}
section.text-page .text p:has(+ :not(p)) {
  margin-bottom: 3em;
}

.footer {
  max-width: 360px;
  margin-left: auto;
  margin-right: auto;
}
@media (max-width: 920px) {
  .footer {
    margin-left: 0;
  }
}
.footer .footer-content {
  font-family: "fragment", "Courier New", Courier, monospace;
}
.footer .footer-content a {
  color: inherit;
}
.footer .footer-content p {
  line-height: 1.5;
  margin-bottom: 2em;
}
