/* Edith Siebenhofer — static site styles (plain CSS, no build step) */

@import url("https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,300;12..96,400&display=swap");

:root {
  /* Colors */
  --color-surface: #fff;
  --color-background: #fafafa;
  --color-background-light-darker: #f1f1f1;
  --color-background-dark: #121212;
  --color-background-dark-lighter: #3d3d3d;
  --color-text: #141414;
  --color-text-dark-lighter: #363636;
  --color-text-light: #fafafa;
  --color-text-link: #141414;
  --color-text-link-light: #fff;
  --color-primary-darker: hsl(132 60% 10%);
  --color-primary-text: hsl(132 80% 14%);
  --color-primary: hsl(132 80% 20%);
  --color-primary-accent: hsl(132 80% 30%);
  --color-text-accent-darker: hsl(48 40% 72%);
  --color-text-accent: hsl(48 40% 90%);
  --color-nav-hover-bg: hsl(132 32% 97%);

  /* Layout */
  --height-contact-bar: 4rem;
  --content-max-width: 1280px;
  --bp-tablet: 721px;
  --bp-desktop: 1081px;

  /* Typography */
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 16px;
  font-weight: 300;
  color: var(--color-text);
}
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,
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;
}

article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section {
  display: block;
}

input[type="password"] {
  font-family: caption;
}

a {
  text-decoration: none;
}

button {
  cursor: pointer;
  padding: 0;
  border: unset;
  background: none;
}
button:focus {
  outline: none;
}

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

* {
  box-sizing: border-box;
}

body {
  background: var(--color-background);
  display: flex;
  flex-direction: column;
  align-items: center;
}

main {
  width: 100%;
}

.content {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 9rem 1rem 1rem 1rem;
}

.page {
  width: 100%;
  min-height: calc(100vh - 6rem);
  max-width: var(--content-max-width);
}
.page__sheet {
  padding: 1.5rem;
  background: var(--color-surface);
  border-radius: 2rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  overflow: hidden;
}
@media only screen and (min-width: 721px) {
  .page__sheet {
    padding: 2rem;
    gap: 2rem;
  }
}
@media only screen and (min-width: 1081px) {
  .page__sheet {
    padding: 3rem;
    gap: 4rem;
  }
}
.page__sheet h1 {
  margin-bottom: 1rem;
}
.page__sheet--centered {
  align-items: center;
  justify-content: center;
}
.page__sheet--flex {
  gap: 1rem;
  align-items: flex-start;
}
@media only screen and (min-width: 721px) {
  .page__sheet--flex {
    gap: 2rem;
  }
}
@media only screen and (min-width: 1081px) {
  .page__sheet--flex {
    gap: 4rem;
  }
}
@media only screen and (min-width: 1081px) {
  .page__sheet--flex {
    flex-direction: row;
  }
  .page__sheet--flex .text-content {
    flex: 1;
  }
  .page__sheet--flex .text-content h1 {
    margin-bottom: 2rem;
  }
  .page__sheet--flex .text-content .rtf {
    display: block;
  }
  .page__sheet--flex .image-gallery,
  .page__sheet--flex .table {
    flex: 2;
  }
}
.page__sheet--home {
  padding: 0;
  position: relative;
  overflow: hidden;
  height: calc(100vh - 11rem);
  max-height: 900px;
  display: flex;
  justify-content: flex-end;
  gap: 0;
}
@media only screen and (min-width: 1081px) {
  .page__sheet--home {
    padding: 1rem;
  }
}
.page__sheet--home .rtf {
  z-index: 1;
  color: var(--color-text-light);
  background: var(--color-primary-darker);
}
.page__sheet--home .rtf h1 {
  color: var(--color-text-accent-darker);
}
.page__sheet--home .rtf h2 {
  color: var(--color-text-accent-darker);
  margin-bottom: 0.5rem;
}
.page__sheet--home .rtf p {
  margin-bottom: 0;
  color: var(--color-text-accent);
}
@media only screen and (min-width: 1081px) {
  .page__sheet--home .rtf {
    border-radius: 1.5rem;
  }
  .page__sheet--home .rtf h2 {
    color: var(--color-text-accent-darker);
    margin-bottom: 0.75rem;
  }
}
.page__sheet-image-wrapper {
  position: relative;
  flex: 1;
}
@media only screen and (min-width: 1081px) {
  .page__sheet-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
  }
}
.page__sheet-image-wrapper img {
  border-radius: 2rem 2rem 0 0;
  aspect-ratio: unset;
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  object-fit: cover;
}
@media only screen and (min-width: 1081px) {
  .page__sheet-image-wrapper img {
    border-radius: 2rem;
  }
}

@font-face {
  font-family: "Libre Caslon Condensed Medium";
  font-display: block;
  src: url("../fonts/LibreCaslonCondensed-Medium.woff2") format("woff2");
}
@font-face {
  font-family: "Libre Caslon Condensed Italic";
  font-display: block;
  src: url("../fonts/LibreCaslonCondensed-Italic.woff2") format("woff2");
}
button,
li,
a,
p,
span {
  font-family: inherit;
  font-size: inherit;
  -webkit-text-size-adjust: none;
}

.h1,
h1 {
  font-family: "Libre Caslon Condensed Medium", serif;
  font-weight: 400;
  font-size: 2rem;
  line-height: 100%;
  margin-bottom: 0;
}
@media only screen and (min-width: 1081px) {
  .h1,
  h1 {
    font-size: 2.5rem;
  }
}

.h2,
h2 {
  font-family: "Libre Caslon Condensed Italic", serif;
  font-weight: 400;
  font-size: 1.25rem;
  line-height: 120%;
}

.h3,
h3 {
  font-family: "Libre Caslon Condensed Italic", serif;
  font-weight: 400;
  font-size: 1.125rem;
  line-height: 120%;
}

li,
p {
  line-height: 144%;
  font-size: 0.875rem;
}
@media only screen and (min-width: 721px) {
  li,
  p {
    font-size: 1rem;
  }
}

button,
a {
  font-size: 0.875rem;
}

.rtf p {
  margin-bottom: 1.5em;
}
.rtf strong {
  font-weight: 500;
}
.rtf h1,
.rtf h2,
.rtf h3 {
  margin-bottom: 0.75em;
}
.rtf a {
  font-size: 1rem;
  text-decoration: underline;
  color: var(--color-primary-text);
}

.dtp-only {
  display: none;
}
@media only screen and (min-width: 721px) {
  .dtp-only {
    display: block;
  }
}

@view-transition {
  navigation: auto;
}
.contact-bar {
  view-transition-name: contact-bar;
}

nav {
  view-transition-name: site-nav;
}

footer {
  view-transition-name: site-footer;
}

#content {
  view-transition-name: page-content;
}

::view-transition-old(page-content),
::view-transition-new(page-content) {
  animation-duration: 0.35s;
  animation-timing-function: ease;
}

button {
  color: var(--color-text);
}

.button {
  padding: 0.5rem 0.75rem;
  background: var(--color-primary);
  color: var(--color-text-light);
  border-radius: 0.375rem;
  transition: background-color 0.1s linear;
}
.button:hover {
  background: var(--color-primary-accent);
}
.button--secondary {
  background: var(--color-background-dark);
}
.button--secondary:hover {
  background: var(--color-background-dark-lighter);
}

.contact-bar {
  position: fixed;
  background: var(--color-surface);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 1rem;
  gap: 1rem;
  color: var(--color-text);
  width: 100%;
  height: var(--height-contact-bar);
  font-size: 0.875rem;
  z-index: 6;
}
.contact-bar img {
  height: 2rem;
}
@media only screen and (min-width: 1081px) {
  .contact-bar img {
    height: 3rem;
  }
}
.contact-bar__inner {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  max-width: var(--content-max-width);
}
.contact-bar__inner span {
  margin-right: 0.5rem;
  color: var(--color-text-dark-lighter);
}
.contact-bar__inner a {
  color: var(--color-text-link-light);
  font-size: 0.75rem;
  white-space: nowrap;
}
@media only screen and (min-width: 721px) {
  .contact-bar__inner a {
    font-size: inherit;
  }
}

.image-hero {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  flex: 1;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.5s linear;
}
.image-hero--show {
  opacity: 1;
}

.image-gallery {
  width: 100%;
}
@media only screen and (min-width: 1081px) {
  .image-gallery {
    flex-direction: column-reverse;
  }
}
.image-gallery__wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
@media only screen and (min-width: 721px) {
  .image-gallery__wrapper {
    gap: 1rem;
  }
}
.image-gallery__wrapper .image-wrapper {
  position: relative;
  width: calc(50% - 0.5rem);
  border-radius: 0.75rem;
  aspect-ratio: 4/3;
  cursor: pointer;
  overflow: hidden;
}
.image-gallery__wrapper .image-wrapper::after {
  transition: background 0.2s linear;
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0);
}
.image-gallery__wrapper .image-wrapper:hover::after {
  background: rgba(0, 0, 0, 0.2);
}
.image-gallery__wrapper .image-wrapper img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rtf {
  width: 100%;
  display: flex;
  max-width: 720px;
  flex-wrap: wrap;
}
.rtf--legal {
  display: block;
}
.rtf--home {
  max-width: unset;
  gap: 1rem;
  align-items: baseline;
  padding: 1.5rem 1.5rem 2.5rem 1.5rem;
}
@media only screen and (min-width: 1081px) {
  .rtf--home {
    gap: 4rem;
    padding: 2rem 3rem;
  }
  .rtf--home div, .rtf--home p {
    flex: 1;
  }
  .rtf--home p {
    flex: 1.5;
  }
}
.rtf ol, .rtf ul {
  padding: 0.5rem 1.5rem;
}
.rtf--centered p {
  text-align: center;
}

.content-entry {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 2rem 0 2rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}
@media only screen and (min-width: 1081px) {
  .content-entry {
    flex-direction: row;
    gap: 4rem;
  }
}
@media only screen and (min-width: 1081px) {
  .content-entry:nth-child(odd) {
    flex-direction: row-reverse;
  }
}
.content-entry:nth-child(2) {
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}
.content-entry:last-child {
  border: none;
}
.content-entry__text {
  flex: 1;
  width: 100%;
  padding: 1rem 0;
}
.content-entry__text h2 {
  margin-bottom: 0.375rem;
}
.content-entry img {
  width: 100%;
  border-radius: 1rem;
  flex: 1;
}

footer {
  background: var(--color-background-light-darker);
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  padding: 1.5rem 2rem;
  gap: 1rem;
  color: var(--color-text);
  width: 100%;
  font-size: 0.875rem;
}
footer .inner-wrapper {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  width: 100%;
  max-width: var(--content-max-width);
}
footer .inner-wrapper span {
  white-space: nowrap;
  flex: 1;
}
footer .inner-wrapper .link-wrapper {
  display: flex;
  align-items: center;
  gap: 1rem;
}
footer .inner-wrapper .link-wrapper a {
  color: var(--color-text-link);
  font-weight: 600;
}
footer .inner-wrapper .link-wrapper a:hover {
  color: var(--color-primary);
}

.lightbox {
  z-index: 9999;
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  padding: 12% 1rem;
  overflow: hidden;
  justify-content: center;
  align-items: center;
}
@media only screen and (min-width: 721px) {
  .lightbox {
    padding: 1rem 10%;
  }
}
.lightbox__bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 0;
  cursor: pointer;
}
.lightbox__header {
  display: flex;
  justify-content: flex-end;
}
.lightbox__header button {
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 999px;
  height: 3rem;
  width: 3rem;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
}
.lightbox__header button:hover {
  background: rgba(0, 0, 0, 0.03);
}
.lightbox__inner {
  background: var(--color-surface);
  border-radius: 1rem;
  overflow: hidden;
  width: 100%;
  max-width: 1440px;
  height: 100%;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  z-index: 1;
}
@media only screen and (min-width: 721px) {
  .lightbox__inner {
    height: auto;
    max-height: 100%;
    border-radius: 2rem;
    padding: 2rem;
    aspect-ratio: 4/3;
  }
}
.lightbox__inner__img {
  position: relative;
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: center;
}
.lightbox__inner img {
  position: absolute;
  width: auto;
  height: auto;
  object-fit: cover;
  min-width: 80%;
  max-width: 100%;
  max-height: calc(100% - 4rem);
  border-radius: 1rem;
}
.lightbox__inner .js-lightbox-img {
  pointer-events: auto;
  opacity: 1;
  transition: opacity 0.2s linear;
}
.lightbox__inner .js-lightbox-img--hidden {
  pointer-events: none;
  opacity: 0;
}
.lightbox__buttons {
  display: flex;
  justify-content: space-between;
}
.lightbox__buttons button {
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 999px;
  padding: 0.75rem 1rem;
}
.lightbox__buttons button:hover {
  background: rgba(0, 0, 0, 0.03);
}

nav {
  position: fixed;
  top: var(--height-contact-bar);
  z-index: 2;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}
@media only screen and (min-width: 721px) {
  nav {
    padding: 1rem 1.5rem;
  }
}
nav .nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.25rem;
  background: var(--color-surface);
  padding: 0.25rem 0.5rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  width: 100%;
}
@media only screen and (min-width: 721px) {
  nav .nav-links {
    border-radius: 999px;
    justify-content: center;
    border: 1px solid rgba(0, 0, 0, 0.05);
  }
}
@media only screen and (min-width: 1081px) {
  nav .nav-links {
    width: unset;
    border-radius: 999px;
    border: 1px solid rgba(0, 0, 0, 0.05);
  }
}
nav .nav-links .nav-link {
  color: var(--color-text-link);
  font-weight: 600;
  background: var(--color-surface);
  padding: 0.5rem 0.75rem;
  border-radius: 999px;
  transition: background-color 0.1s linear, color 0.1s linear;
}
@media (hover: hover) {
  nav .nav-links .nav-link:hover:not(.nav-link--active) {
    color: var(--color-primary);
    background: var(--color-nav-hover-bg);
  }
}
nav .nav-links .nav-link:focus-visible {
  outline-offset: 2px;
  outline-color: var(--color-primary);
}
nav .nav-links .nav-link--active {
  color: var(--color-text-link-light);
  background: var(--color-primary);
}

.table {
  width: 100%;
  max-width: 640px;
  display: flex;
  flex-wrap: wrap;
  flex: 1;
}
.table__cell {
  padding: 1rem;
  border: 1px solid rgba(0, 0, 0, 0.031372549);
  width: 50%;
  background: rgba(0, 0, 0, 0.0156862745);
}
.table__cell:first-child {
  border-radius: 0.5rem 0 0 0;
}
.table__cell:nth-child(2) {
  border-radius: 0 0.5rem 0 0;
}
.table__cell:nth-last-child(2) {
  border-radius: 0 0 0 0.5rem;
}
.table__cell:last-child {
  border-radius: 0 0 0.5rem 0;
}
.table__cell {
  font-size: 0.875rem;
}
@media only screen and (min-width: 1081px) {
  .table__cell {
    font-size: 1rem;
  }
}
