/* raleway-100 - latin */
@font-face {
  font-display: swap;
  /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Raleway';
  font-style: normal;
  font-weight: 100;
  src: url('fonts/raleway-v34-latin-100.woff2') format('woff2');
  /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* raleway-100italic - latin */
@font-face {
  font-display: swap;
  /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Raleway';
  font-style: italic;
  font-weight: 100;
  src: url('fonts/raleway-v34-latin-100italic.woff2') format('woff2');
  /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* raleway-200 - latin */
@font-face {
  font-display: swap;
  /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Raleway';
  font-style: normal;
  font-weight: 200;
  src: url('fonts/raleway-v34-latin-200.woff2') format('woff2');
  /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* raleway-200italic - latin */
@font-face {
  font-display: swap;
  /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Raleway';
  font-style: italic;
  font-weight: 200;
  src: url('fonts/raleway-v34-latin-200italic.woff2') format('woff2');
  /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* raleway-300 - latin */
@font-face {
  font-display: swap;
  /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Raleway';
  font-style: normal;
  font-weight: 300;
  src: url('fonts/raleway-v34-latin-300.woff2') format('woff2');
  /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* raleway-300italic - latin */
@font-face {
  font-display: swap;
  /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Raleway';
  font-style: italic;
  font-weight: 300;
  src: url('fonts/raleway-v34-latin-300italic.woff2') format('woff2');
  /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* raleway-regular - latin */
@font-face {
  font-display: swap;
  /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Raleway';
  font-style: normal;
  font-weight: 400;
  src: url('fonts/raleway-v34-latin-regular.woff2') format('woff2');
  /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* raleway-italic - latin */
@font-face {
  font-display: swap;
  /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Raleway';
  font-style: italic;
  font-weight: 400;
  src: url('fonts/raleway-v34-latin-italic.woff2') format('woff2');
  /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* raleway-500 - latin */
@font-face {
  font-display: swap;
  /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Raleway';
  font-style: normal;
  font-weight: 500;
  src: url('fonts/raleway-v34-latin-500.woff2') format('woff2');
  /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* raleway-500italic - latin */
@font-face {
  font-display: swap;
  /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Raleway';
  font-style: italic;
  font-weight: 500;
  src: url('fonts/raleway-v34-latin-500italic.woff2') format('woff2');
  /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* raleway-600 - latin */
@font-face {
  font-display: swap;
  /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Raleway';
  font-style: normal;
  font-weight: 600;
  src: url('fonts/raleway-v34-latin-600.woff2') format('woff2');
  /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* raleway-600italic - latin */
@font-face {
  font-display: swap;
  /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Raleway';
  font-style: italic;
  font-weight: 600;
  src: url('fonts/raleway-v34-latin-600italic.woff2') format('woff2');
  /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* raleway-700 - latin */
@font-face {
  font-display: swap;
  /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Raleway';
  font-style: normal;
  font-weight: 700;
  src: url('fonts/raleway-v34-latin-700.woff2') format('woff2');
  /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* raleway-700italic - latin */
@font-face {
  font-display: swap;
  /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Raleway';
  font-style: italic;
  font-weight: 700;
  src: url('fonts/raleway-v34-latin-700italic.woff2') format('woff2');
  /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* raleway-800 - latin */
@font-face {
  font-display: swap;
  /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Raleway';
  font-style: normal;
  font-weight: 800;
  src: url('fonts/raleway-v34-latin-800.woff2') format('woff2');
  /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* raleway-800italic - latin */
@font-face {
  font-display: swap;
  /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Raleway';
  font-style: italic;
  font-weight: 800;
  src: url('fonts/raleway-v34-latin-800italic.woff2') format('woff2');
  /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* raleway-900 - latin */
@font-face {
  font-display: swap;
  /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Raleway';
  font-style: normal;
  font-weight: 900;
  src: url('fonts/raleway-v34-latin-900.woff2') format('woff2');
  /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* raleway-900italic - latin */
@font-face {
  font-display: swap;
  /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Raleway';
  font-style: italic;
  font-weight: 900;
  src: url('fonts/raleway-v34-latin-900italic.woff2') format('woff2');
  /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

:root {
  --main-color: #16161d;
  --text-color: #f9f6ee;
  --accent-color: #bd002c;
  --alt-color: #295173;
  --radius: 0.35rem;
  --z-canvas: 0;
  --z-content: 2;
  --z-header: 21;
  --panel-bg: rgb(22 22 29 / 0.72);
  --header-h: 4.5rem;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 0.75rem);
}

* {
  font-family: 'Raleway';
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  background-color: transparent;
  color: var(--text-color);
}

body {
  background-color: var(--main-color);
  min-height: 100vh;
  min-height: 100dvh;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0.75rem;
  z-index: 100;
  padding: 0.5rem 1rem;
  background: var(--text-color);
  color: var(--main-color);
  font-weight: 600;
  border-radius: var(--radius);
  text-decoration: none;
}

.skip-link:focus {
  left: 0.75rem;
  outline: 2px solid var(--accent-color);
  outline-offset: 2px;
}

.gradient {
  background: linear-gradient(135deg, var(--main-color), var(--alt-color));
}

main.gradient {
  position: relative;
  z-index: 10;
  min-height: 100vh;
  min-height: 100dvh;
}

.redirect-msg {
  padding: 2rem clamp(1rem, 5vw, 3rem);
  max-width: 40rem;
  margin: 0 auto;
}

.section.imprint h2,
.section.imprint h1 {
  text-align: left;
  text-transform: none;
  margin-top: 1rem;
  margin-bottom: 0.5rem;
}

.section.imprint li,
.section.imprint ul {
  list-style-type: disc;
  margin-left: 1rem;
  margin-bottom: 0.5rem;
}

/*text selector*/
p,
a,
span,
i,
h1,
h2,
h3,
h4 {
  text-shadow: 2px 2px 10px #00000080;
  transition: 0.5s;
  text-align: justify;
}

h1 {
  font-weight: normal;
  text-transform: uppercase;
  font-size: 2rem;
  text-align: center;
  margin-bottom: 1.5rem;
}

h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
  text-align: center;
}

.section__title {
  font-size: clamp(1.35rem, 2.5vw, 2rem);
  margin-bottom: 1.5rem;
  text-align: left;
}

.page .section__title {
  text-shadow: 2px 2px 10px #00000080;
}

h3 {
  font-size: 1rem;
}

.brand h1 span {
  margin-right: 1rem;
}

.page .section--panel p,
.page .section--panel li {
  text-align: left;
}

.page .section--panel .info-grid p {
  text-align: left;
}

.site-header__nav a {
  text-align: center;
}

.site-footer a {
  text-align: center;
}

ul,
li {
  list-style-type: none;
}

a {
  transition: 0.5s;
  text-decoration: none;
}

a:hover {
  scale: 1.05;
  color: var(--accent-color);
}

a:focus-visible {
  outline: 2px solid var(--accent-color);
  outline-offset: 3px;
}

svg {
  width: 8rem;
  height: 8rem;
  transition: 0.5s;
  filter: drop-shadow(2px 2px 10px #00000080);
}

svg:hover {
  scale: 1.05;
  color: var(--accent-color);
}

svg path {
  fill: var(--text-color);
}

svg:hover path {
  transition: 0.5s;
  fill: var(--accent-color);
}

.hidden {
  display: none;
}

.site-header {
  position: fixed;
  z-index: var(--z-header);
  top: 0;
  left: 0;
  width: 100%;
  padding: 0.65rem clamp(0.75rem, 3vw, 1.25rem);
  pointer-events: none;
  background: linear-gradient(to bottom,
      rgb(22 22 29 / 0.92) 0%,
      rgb(22 22 29 / 0.55) 70%,
      transparent 100%);
}

.site-header__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  pointer-events: none;
}

.site-header a {
  pointer-events: all;
}

.site-header__logo svg {
  width: 3rem;
  height: 3rem;
  display: block;
}

.site-header__nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.35rem 0.85rem;
  font-size: clamp(0.8rem, 1.6vw, 0.95rem);
  font-weight: 500;
}

.site-header__nav a {
  text-shadow: 2px 2px 10px #00000080;
  white-space: nowrap;
}

.site-header__sep {
  display: inline-block;
  width: 1px;
  height: 1rem;
  background: rgb(249 246 238 / 0.25);
  margin: 0 0.15rem;
}

.page {
  position: relative;
  z-index: var(--z-content);
  width: 100%;
}

.page__content {
  width: 100%;
  padding-bottom: 3rem;
}

.section {
  margin-left: auto;
  margin-right: auto;
  width: min(100% - clamp(1rem, 5vw, 3rem), 1100px);
  display: flex;
  flex-flow: column;
  justify-content: flex-start;
  gap: 1rem;
  padding-top: clamp(3rem, 8vw, 5rem);
  padding-bottom: clamp(2rem, 5vw, 3.5rem);
}

.section--hero {
  min-height: 100vh;
  min-height: 100dvh;
  padding-top: calc(var(--header-h) + 2rem);
  padding-bottom: 3rem;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.section--hero__inner {
  width: 100%;
  max-width: 56rem;
  margin: 0 auto;
}

.section--panel {
  background: var(--panel-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: var(--radius);
  padding-left: clamp(1rem, 4vw, 2rem);
  padding-right: clamp(1rem, 4vw, 2rem);
  margin-bottom: clamp(1rem, 3vw, 1.75rem);
  border: 1px solid rgb(249 246 238 / 0.08);
  box-shadow: 2px 2px 24px #00000050;
}

.section--contact .contact__legal {
  margin-top: 0.5rem;
  font-size: 0.95rem;
}

.section--contact .contact__legal a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.site-footer {
  position: relative;
  z-index: var(--z-content);
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.25rem clamp(1rem, 5vw, 3rem) 2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.9rem;
  border-top: 1px solid rgb(249 246 238 / 0.1);
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
}

.site-footer p {
  text-align: left;
  margin: 0;
}

/* p5 canvas lives here so it stays under page content (not appended after footer) */
.p5-background {
  position: fixed;
  inset: 0;
  z-index: var(--z-canvas);
  pointer-events: none;
  overflow: hidden;
}

.p5-background canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
}

#mainCanvas {
  position: absolute;
  top: 0;
  left: 0;
  display: block;
}

.brand {
  text-align: center;
}

.hero__tagline {
  font-size: clamp(1rem, 2.2vw, 1.65rem);
  font-weight: 300;
  line-height: 1.45;
  margin-bottom: 2rem;
  text-align: center;
}

.hero__tagline span {
  margin-right: 0;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem 1rem;
  margin-top: 0.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.25rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius);
  text-decoration: none;
  text-shadow: none;
  border: 2px solid transparent;
  transition: background-color 0.25s, color 0.25s, border-color 0.25s, transform 0.25s;
  box-shadow: 2px 2px 12px #00000060;
}

button.btn {
  font-family: inherit;
  cursor: pointer;
}

.btn--primary {
  background-color: var(--accent-color);
  color: var(--text-color);
}

.btn--primary:hover {
  color: var(--text-color);
  filter: brightness(1.08);
}

.btn--ghost {
  background-color: rgb(22 22 29 / 0.5);
  color: var(--text-color);
  border-color: rgb(249 246 238 / 0.35);
}

.btn--ghost:hover {
  color: var(--text-color);
  border-color: var(--accent-color);
  background-color: rgb(22 22 29 / 0.75);
}

button.btn--ghost:hover {
  scale: 1.05;
  background-color: var(--main-color);
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 14rem) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 2.5rem);
  align-items: start;
}

.intro__lead {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  text-align: left;
}

.container {
  width: 90%;
  max-width: 960px;
  margin: 0 auto;
  padding-bottom: 4rem;
}

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 2rem;
}

.avatar {
  justify-self: center;
}

.avatar img {
  width: 100%;
  max-width: 16rem;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 100%;
  transition: 0.5s;
  box-shadow: 2px 2px 10px #00000080;
  border: 2px solid var(--accent-color);
}

.intro p {
  max-width: 40rem;
  margin: 0 0 1rem;
  text-align: left;
}

.section--transparent {
  background: transparent;
}

#timeline .section__title,
#projects .section__title {
  text-align: left;
}

#timeline .timeline-grid,
#projects .links-grid {
  justify-content: center;
}

.timeline-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 0.5rem 0 0;
}

.timeline-card {
  flex: 1 1 11rem;
  max-width: 16rem;
  background-color: var(--main-color);
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius);
  box-shadow: 2px 2px 10px #00000080;
}

.timeline-card__years {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-color);
  text-align: left;
  margin-bottom: 0.3rem;
}

.timeline-card__title {
  font-size: 0.95rem;
  font-weight: 600;
  text-align: left;
  margin-bottom: 0.3rem;
}

.timeline-card__desc {
  font-size: 0.85rem;
  font-weight: 300;
  text-align: left;
  margin: 0;
  line-height: 1.4;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.25rem, 3vw, 2rem);
}

.info-card {
  padding: 0.25rem 0;
}

.info-grid h3 {
  margin-bottom: 0.4rem;
}

.info-grid a {
  display: block;
  text-decoration: none;
  margin: 0.3rem 0;
}

.info-grid p {
  margin: 0.2rem 0;
}

.links-grid {
  padding: 0.5rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.links-grid a {
  background-color: var(--main-color);
  color: var(--text-color);
  box-shadow: 2px 2px 10px #00000080;
  font-size: 2rem;
  padding: 0.5rem;
  border-radius: var(--radius);
}

.links-grid a:hover {
  scale: 1.05;
  background-color: var(--accent-color);
}

.gallery {
  margin-top: 0;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
}

.gallery-grid img {
  width: 100%;
  display: block;
  border-radius: var(--radius);
  object-fit: cover;
  box-shadow: 2px 2px 10px #00000080;
}

@media only screen and (max-width: 1300px) {
  h1 {
    font-size: 1.5rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  .links-grid a {
    font-size: 1.65rem;
  }
}

@media only screen and (max-width: 1000px) {

  .brand h1 span,
  .hero__tagline span {
    display: block;
    margin-right: 0;
    margin-bottom: 0.2rem;
  }

  .hero__actions {
    display: block;
  }

  .hero__actions a {
    display: block;
    margin-right: 0;
    margin-bottom: 1rem;
    width: 10rem;
    min-width: fit-content;
  }

  .section--hero h1 {
    text-align: center;
  }

  .section {
    padding-top: clamp(2.5rem, 6vw, 3.5rem);
  }

  .section--hero {
    padding-top: calc(var(--header-h) + 1.25rem);
  }
}

@media only screen and (max-width: 720px) {
  .about-grid {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .intro {
    width: 100%;
  }

  .info-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .site-header__nav a {
    white-space: normal;
  }
}

@media only screen and (max-width: 480px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .links-grid a {
    font-size: 1.35rem;
  }
}