
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}


:root {
  --main-color: #19381F;
  --main-color-light: #91CB3E;
  --link-color: #4C934C;
  --link-color-hover: var(--main-color);
  --link-color-hover-hs: #EEE82C;
  --link-color-accent: #000;

  --background-color: #ffffff;
  --background-highlight-color: #53a548;

  --background-main: linear-gradient(var(--background-color), var(--background-color));
  --background-highlight: linear-gradient(to bottom, var(--background-highlight-color), var(--background-highlight-color), var(--background-color));

  --max-content-width: 75rem;
}


/* Prefers Dark Color Scheme */

@media (prefers-color-scheme: dark) {
  :root {
    --main-color: #fff;
    --main-color-light: #4C934C;
    --link-color: #91CB3E;
    --link-color-hover: var(--link-color-hover-hs);
    --link-color-hover-hs: #EEE82C;
    --link-color-accent: var(--link-color);

    --background-color: #19381F;
    --background-highlight-color: #53a548;
  }
}

@media (prefers-reduced-motion: reduce) {
  body > header, body > div.bb-gallery, body > footer {
    transition: none !important;
  }
}

html {
  min-height: 100%;
  color: var(--main-color);
  background-image: var(--background-highlight), var(--background-main);
  background-size: 3.5rem 100%, 100% 100%;
  background-repeat: repeat-y;
}

body {
  margin: 0 0 0 3.5rem;
  font-family: 'Fira Sans Light', sans-serif;
  font-size: min(calc(14px + 0.390625vw), 22px);
  line-height: 1.2em;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Fira Sans Medium', sans-serif;
  color: var(--main-color);
  line-height: 2em;
  margin-top: 1em;
  margin-bottom: 0.5em;
}

h2, h3, h4, h5, h6 {
  text-decoration-line: underline;
  text-decoration-color: var(--main-color-light);
  text-decoration-style: solid;
  text-decoration-thickness: 0.2rem;
  text-underline-offset: 0.8rem;
}

h2 a, h3 a, h4 a, h5 a, h6 a {
  text-decoration: none;
}

h1 a:hover, h2 a:hover, h3 a:hover, h4 a:hover, h5 a:hover, h6 a:hover {
  color: var(--link-color-hover-hs);
}

h1 {
  color: var(--main-color-light);
  margin: 1.8rem 0 1.2rem;
  line-height: 1em;
}

h2 {
  margin: 1.5rem 0 1.0rem;
}

h3 {
  margin: 1.2rem 0 0.8rem;
}

h1 + h2, h2 + h3, h3 + h4, h4 + h5, h5 + h6 {
  margin-top: 0;
}

a {
  color: var(--link-color);
  text-underline-offset: 0.18rem;
  text-decoration-line: underline;
  text-decoration-thickness: from-font;
}

p {
  margin: 1em 0;
}

strong {
  font-family: 'Fira Sans Medium';
  font-weight: normal;
  font-style: normal;
}

em {
  font-family: 'Fira Sans Light Italic', cursive;
  font-weight: normal;
  font-style: normal;
}

em strong, strong em {
  font-family: 'Fira Sans Bold Italic', bold;
  font-weight: normal;
  font-style: normal;
}

img {
  background-color: var(--background-color);
}

a:hover {
  color: var(--link-color-hover);
}

ul {
  margin: 0.5rem 1.1rem 0.5rem;
}

li {
  margin: 0.2rem 0;
}

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

body > header, body > div.bb-gallery, body > footer {
  position: relative;
  max-width: var(--max-content-width);
  margin: 0 auto;
  padding: 1rem 2.5rem;
  transition: all 0.4s ease-in-out;
}

body > header {
  display: flex;
  flex-flow: row wrap;
  justify-content: space-between;
  border-bottom: 6px solid var(--link-color);

  width: calc(100% - 5rem);
  margin: 3rem auto 2rem;
  padding: 0 0 1rem;
  max-width: calc(var(--max-content-width) - 5rem);
}

header > h1 {
  font-weight: normal;
  font-size: 2.5rem;
  margin: 0;
}

h1:first-child,
h2:first-child,
h3:first-child,
h4:first-child,
h5:first-child {
  margin-top: 0;
}

h1 a {
  color: var(--main-color-light);
  text-decoration: none;
}

header > nav {
  font-family: 'Fira Sans Medium';
  flex-grow: 1;
}

header > nav ul {
  list-style: none;
  display: flex;
  flex-flow: row wrap;
  justify-content: end;
  gap: 1rem;
  margin: 0.4rem 0;
}

header > nav ul li {
  display: inline;
  font-size: 1.1em;
}

header > nav ul li a {
  text-decoration: none;
}

header > nav ul li.language a {
    border: 3px solid var(--link-color);
    border-radius: 5px;
    padding: 0.5rem 0.4rem 0.4rem;
}

header > nav ul li.language a:hover {
  text-decoration: none;
}

header > nav ul li a:hover, header > nav ul li a:focus {
  text-decoration: underline double;
  color: var(--link-color-hover-hs);
}

header > nav ul li.active a {
  text-decoration: none;
  font-family: 'Fira Sans Bold', sans-serif;
}

div.disabled {
  display: none;
}

div.blog-post img {
  max-width: 100%;
}

/* Flow: Text */

div.text-block-left-60 {
  display: inline-block;
  width: 60%;
  padding-right: 0px;
}

/* Flow: Image / Meh */
div.text-block-top-right, div.image-block-top-right  {
  display: inline-block;
  width: 39%;
  vertical-align: top;
  text-align: right;
}

div.image-block-top-right img {
width: 75%;
}

div.image-block-top-right p {
padding: 0;
margin: 0;
}

div.image-block-multi-image {
  display: inline-block;
  max-width: 300px;
  max-height: 200px;
  vertical-align: top;
  margin-bottom: 4px;
}

div.image-block-titleshot {
  width: 100%;
  padding: 5px 0;
}

div.image-block-titleshot img {
  display:block;
  margin: 0 auto;
  /* width: 80%; */
}

/* Categories / Category */
div.blog-categories {
  font-family: 'Fira Sans Medium', sans-serif;
  font-size: 1em;
  vertical-align: top;
  text-align: right;
  display: inline-block;
}

div.blog-categories span {
  font-size: 1.1em;
  font-family: 'Fira Sans Bold';
}

div.overview div.blog-categories {
  position: static !important;
  text-align: left;
}

div.overview div.blog-categories ul {
  margin-left: 15px;
}

div.blog-categories ul {
  padding: 0;
  margin: 0;
  list-style: none;
  margin-bottom: 8px;
}

div.blog-categories a {
  text-decoration: none;
}

ul.blog-posts {
  padding-left: 10px;
}

ul.blog-posts li {
  list-style: none;
  margin-bottom: 15px;
}

ul.blog-posts li span {
  font-family: 'Fira Sans Light Italic';
  font-size: 1.2em;
}


ul.blog-posts li .inline {
  display: inline-block;
}

div.blog-post-list {
  margin-left: 20px;
}

div.blog-post-list ul.blog-posts {
  list-style: none;
  margin: 5px 0;
}

/* Post */

div.blog-post {
  text-align: center;
}

div.blog-post-index {
  text-align: center;
  padding: 5px 0;
}

div.blog-post-index h1 a {
  text-decoration: none;
}

p.meta {
  font-size: 1em;
  font-family: 'Fira Sans Light Italic';
}

div.blog-post h1 {
  text-align: left;
  float: left;
}

div.blog-post p.meta {
  float: right;
  text-align: right;
  padding: 0 0 1.5em 0;
  margin: 0;
}

div.blog-post p.meta + div {
  clear: both;
  padding-top: 15px;
}

div.blog-post .comments {
  text-align: left;
}

.video-block video {
  max-width: 100%;
}

/* Main Section */

body > div.bb-gallery {
  min-height: 150px;
  position: relative;
}

body > div img {
  width: 100%;
  /* max-width: 100%; */
}

body > div blockquote {
  font-family: "Fira Sans Light Italic", sans-serif;
  margin-left: 15px;
  padding: 5px 10px;
  border-left: 2px solid var(--main-color-light);
  font-size: 1.1em;
}

body > div blockquote p {
  margin: 2px 0;
}

div.highlight {
  border: 1px solid #2A99B6;
  width: 80%;
  margin: 15px auto;
  padding: 8px 10px;
  background: #fff;
  font-size: 1.1em;
  font-family: 'Fira Mono Regular';
}

div.highlight pre {
  margin: 0;
}

code {
  font-family: 'Fira Mono Regular';
  padding: 0.3em 0.3em;
  margin: 0px;
  font-size: 90%;
  background-color: rgba(0, 0, 0, 0.06);
  border-radius: 3px;
}

section table {
  /*border: 1px solid #2A99B6;*/
  border-collapse: collapse;
  width: calc(100% - 12px);
  margin: 10px 0;
}

section table td:nth-child(1), section table th:nth-child(1) {
  min-width: 100px;
  width: 10%;
  /*border-right: 1px solid #2A99B6;*/
}

/* section table th:nth-child(2) {
  border-bottom: 1px solid #2A99B6;
} */

section table th {
  font-family: 'Fira Sans Medium', sans-serif;
}

section table th, section table td {
  padding: 5px 6px;
  vertical-align: top;
}

div.one-liner {
  /*border: 1px solid #2A99B6;*/
  margin: 10px 0;
}

div.one-liner span.label {
  display: inline-block;
  width: 165px;
  padding: 5px 4px;
  font-family: 'Fira Sans Medium', sans-serif;
  vertical-align: top;
}

div.one-liner span.content, div.one-liner div.content {
  /* border-left: 1px solid #2A99B6;*/
  padding: 5px 4px;
  display: inline-block;
  width: calc(100% - 195px);
}

div.one-liner ul, div.page table ul {
  margin-top: 0;
  margin-bottom: 0;
}

div.one-liner ul {
  list-style-position: inside;
  padding-left: 0;
}

#quote {
  font-family: 'Fira Mono Regular';
  font-size: 0.8em;
  margin: 3em 0 1.5em 0;
  text-align: center;
}

/* portfolio */

div.project-shots {
  text-align: center;
}

div.project-shots a {
  display: inline-block;
  width: calc((100% / 3) - 5px);
  max-height: 400px;
  overflow: hidden;
  vertical-align: top;

}

blockquote.image-caption {
  margin: 0 1em 1em 1em;
}

.image-block-top-right blockquote.image-caption {
  border-left: none;
}

/* CV */

div.details {
  display: flex;
  flex-flow: row nowrap;
  width: 100%;
}

div.details--text {
  flex-grow: 1;
}

div.cv-portrait {
  width: 20vw;
  max-width: 20rem;
}

div.experiences {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin: 1rem 0;
}

/* div.experiences ul, div.programming ul, div.cv--row ul {
  padding-left: 20px;
} */

div.experiences > div {
  display: flex;
  flex-direction: row;
  gap: 1rem 1.4rem;
}

div.experiences .date-range {
  font-family: 'Fira Sans Light Italic', sans-serif;
  font-weight: 300;
  min-width: 155px;
  line-height: 1.4em;
  display: flex;
  flex-direction: column;
}

div.experiences .date-range span:nth-last-child(1) {
  padding-left: 15px;
}

div.experiences span.title {
  font-family: "Fira Sans Medium", sans-serif;
}

div.programming {
  overflow: auto;
}

div.programming > table {
  width: 100%;
}

div.programming thead th {
  text-align: left;
  font-weight: bold;
  padding-bottom: 0.2rem;
}

div.programming tbody td:nth-child(1) {
  text-align: right;
  padding-right: 1rem;
}

.principal {
  font-size: 1.6em;
  font-weight: 900;
  margin-bottom: 0.5em;
}

.cv--row {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
}
.cv--column {
  flex-grow: 1;
}

/* Bare Page */

.bare-page > div.bb-gallery {
  margin: 3.8rem auto;
}

.bare-page h1 {
  font-size: 3em;
  line-height: 1em;
}

.bare-page h3 {
  text-decoration-color: var(--link-color);
}

.bare-page ul {
  list-style-type: "> ";
  padding-left: 0.8rem;
}

.bare-page > p {
  margin: 1.5em 0;
}

.bare-page ul.personal-details {
  list-style: none;
  padding: 0;
  margin: 0;
}

.bare-page ul.personal-details li {
  padding: 0.2rem 0;
}

/* Icons */

.icon, .icon--after {
  white-space: nowrap;
  line-height: 1.2em;
}

.icon:empty::before, .icon--after:empty::after {
  margin-inline-end: 0;
  margin-inline-start: 0;
}

.icon::before {
  content: '';
  display: inline-block;
  height: 1.2em;
  aspect-ratio: 1;
  mask-size: 100%;
  mask-repeat: no-repeat;
  mask-position: center;
  background-color: currentColor;
  vertical-align: middle;
  margin-right: 4px;
}

.icon--after::after {
  content: '';
  display: inline-block;
  height: 1.2em;
  aspect-ratio: 1;
  mask-size: 100%;
  mask-repeat: no-repeat;
  mask-position: center;
  background-color: currentColor;
  vertical-align: middle;
  margin-left: 4px;
}

.icon--phone::before, .icon--phone::after {
  mask-image: url('/static/icons/phone.svg');
}

.icon--mail::before, .icon--mail::after {
  mask-image: url('/static/icons/email-outline.svg');
}

.icon--link::before, .icon--link::after {
  mask-image: url('/static/icons/link-variant.svg');
}

/* Photography */

.portfolio--photography h2,
.portfolio--photography h3,
.portfolio--photography h4,
.portfolio--photography h5,
.portfolio--photography h6 {
  text-decoration-line: underline;
  text-decoration-color: var(--main-color-light);
  text-decoration-style: solid;
  text-decoration-thickness: 4px;
  text-underline-offset: 12px;
  margin: 2rem 0 1.2rem;
}

.portfolio--photography h1 {
  margin: 3rem 0 2rem;
  font-size: 3rem;
  line-height: 1em;
}

.portfolio--photography h2 {
  font-size: 2rem;
}


.bb-gallery > section.flow--section {
  margin: 4rem 0;
}

.portfolio--photography figure, section.flow--section figure {
  margin: 0;
}

.portfolio--photography div.flow, section.flow--section {
  display: flex;
  flex-flow: row wrap;
  gap: 2.5rem 2rem;
  justify-content: center;
  padding: 0.5rem 0;
}

section.flow--section > header {
  display: flex;
  flex-flow: row nowrap;
  align-items: center;
  width: 100%;
  gap: 0.5rem;
}

section.flow--section > header > h2 {
  width: fit-content;
}

section.flow--section > header > h2 > a.icon, .bare-page h2 > a.icon {
  color: var(--link-color);
  font-size: 0.6em;
  vertical-align: super;
  margin-left: 0.2rem;
}

section.flow--section > header > h2 > a.icon:hover, .bare-page h2 > a.icon:hover {
  color: var(--link-color-hover-hs);
}

section.flow--section > header .icon::before {
  margin: 0;
  height: 1.5em;
}

section.flow--section.reverse {
  flex-direction: row-reverse;
  text-align: right;
}

section.flow--section .text-block, section.flow--section {
  width: 100%;
}

section.flow--section .text-block h2 {
  padding-top: 1rem;
}

section.flow--section figure figcaption {
  font-size: 1rem;
  font-style: italic;
  padding: 0 1rem;
}

section.flow--section .image--portrait,
section.flow--section .image--half,
section.flow--section .text-block--half {
  max-width: calc(50% - 2rem / 2);
}

section.flow--section .image--third {
  max-width: calc(100%*(1/3) - 2rem*(2/3));
}

section.flow--section .image--one-third {
  max-width: calc(31.05% - 2rem/2);
}

section.flow--section .image--two-thirds {
  max-width: calc(68.95% - 2rem/2);
}

section.flow--section .image--quarter {
  max-width: calc(100%/4 - 2rem/2);
}

section.flow--section .image--three-quarters {
  max-width: calc(100% * (3/4) - 2rem/2);
}

section.flow--section img {
  width: 100%;
  display: block;
}

.link--photography {
  font-family: 'Fira Sans Medium';
  font-weight: 900;
  padding: 2rem 1.5rem;
}

#baguetteBox-overlay .full-image figcaption {
  padding: 0.5rem 1rem 1rem;
}

/* Large */
@media (min-width: 701px) {
  div.blog-categories {
    position: absolute;
    top: 10px;
    right: 12px;
  }
}

/* Medium */
@media (max-width: 700px) {
  div.blog-categories {
    position: absolute;
    top: 10px;
    right: 12px;
  }

  header > h1 {
    display: none;
  }

  div.experiences > div {
    flex-direction: column;
    gap: 0.8rem 1rem;
  }

  div.experiences {
    gap: 1.2rem;
  }

  div.experiences div.date-range {
    flex-direction: row;
  }

  div.experiences div.date-range span {
    border-bottom: 2px solid var(--link-color);
  }

  div.experiences .date-range span:nth-last-child(1) {
    padding-left: 0;
  }

  section table td:nth-child(1), section table th:nth-child(1) {
    min-width: 72px;
  }
}

/* Small */
@media (max-width: 600px) {
  div.blog-categories {
    position: static;
    text-align: left;
  }

  div.details {
    flex-direction: column;
  }

  div.cv-portrait {
    padding: 1rem 0;
    width: 100%;
    max-width: 100%;
    text-align: center;
  }

  .hide--small {
    display: none;
  }

  div.experiences > div {
    flex-direction: column;
    gap: 0.8rem 1rem;
  }

  .cv--row {
    flex-direction: column;
  }

  .bare-page > section {
    margin: 0 auto;
  }

  div.text-block-left-60 {
    width: 100%;
  }

  div.image-block-top-right {
    width: 100%;
  }
}


@media (max-width: 70rem) {
  .bb-gallery > section.flow--section {
    margin: 2.4rem 0;
  }
}

@media (max-width: 45rem) {
  body > header, body > div.bb-gallery, body > footer {
    padding: 1rem 1.5rem;
  }

  body > header {
    width: calc(100% - 3rem);
    padding: 0 0 1rem;
  }

  header > h1 {
    display: none;
  }

  .hide--small {
    display: none;
  }

  body > div.bb-gallery > div.flow {
    padding: 0;
  }

  section.flow--section {
    padding: 0.2rem 0 1rem;
  }

  section.flow--section.reverse {
    flex-direction: column;
    text-align: left;
  }

  .bb-gallery > section.flow--section {
    margin: 1.4rem 0;
  }

  section.flow--section .text-block {
    padding: 0;
  }

  section.flow--section .text-block h2 {
    padding-top: 0;
  }

  section.flow--section figure figcaption p {
    padding: 0.2rem 0;
    margin: 0.2rem 0;
  }

  .portfolio--photography div.flow, section.flow--section {
    flex-flow: column nowrap;
    gap: 1rem 0;
  }

  section.flow--section .image--portrait,
  section.flow--section .image--half,
  section.flow--section .image--one-third,
  section.flow--section .image--two-thirds,
  section.flow--section .image--quarter,
  section.flow--section .image--three-quarters,
  section.flow--section .image--third,
  section.flow--section .text-block {
    max-width: 100%;
  }
}

/* Print Styles */

@media print {
  :root {
    --main-color: #000000;
    --background-main: transparent;
    --background-highlight: transparent;
    --link-color: #4C934C;
  }

  body {
    font-size: 0.75em;
    margin: 0;
    background-color: transparent;
  }

  body > header {
    display: none;
  }

  .bare-page > section {
    margin: 0.5em 0;
  }

  .hide--print {
    display: none;
  }

  .bare-page h1 {
    margin: 0 0 0.4rem;
    padding-top: 0;
  }

  .bare-page h2 {
    font-size: 1.4em;
    margin: 1rem 0 0.4rem;
  }

  .bare-page h3 {
    font-size: 1.1em;
    margin: 0.8rem 0 0.3rem;
  }

  .bare-page h4 {
    font-size: 0.8em;
    margin: 0.6rem 0 0.2rem;
  }

  .bare-page h5 {
    font-size: 0.4em;
    margin: 0.4rem 0 0.2rem;
  }

  p {
    margin: 0.5rem 0;
  }

  div.cv-portrait {
    width: 10vw;
  }

  div.experiences {
    gap: 0.5rem 1rem;
    margin: 0.5rem 0;
  }

  div.experiences ul {
    padding-left: 15px;
  }

  section table th, section table td {
    padding: 2px 4px;
    vertical-align: top;
  }

  a.cv-portrait img {
    width: 16%;
    position: absolute;
    top: 15px;
    right: 15px;
  }

  .icon::before, .icon::after {
    content: none;
    display: inline-block;
    height: 0;
    margin-right: 0;
    margin-left: 0;
  }
}