@font-face {
  font-family: "Barlow Condensed";
  src: url("./fonts/barlow-condensed-900.woff2") format("woff2");
  font-weight: 900;
  font-display: swap;
}

@font-face {
  font-family: "Geist";
  src: url("./fonts/geist.woff2") format("woff2");
  font-weight: 400 600;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Mono";
  src: url("./fonts/ibm-plex-mono-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --ink: #151311;
  --paper: #f0e7d6;
  --accent: #ff6b4b;
  --gutter: clamp(1.5rem, 4.1vw, 5.5rem);
  --header-height: 4.5rem;
  --display: "Barlow Condensed", Impact, "Arial Narrow", sans-serif;
  --body: "Geist", Arial, sans-serif;
  --mono: "IBM Plex Mono", "Courier New", monospace;
  --ease: cubic-bezier(.22, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-height); }
body { margin: 0; color: var(--paper); background: var(--ink); font-family: var(--body); }
body:has(dialog[open]) { overflow: hidden; }
h1, h2, p, figure { margin: 0; }
a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
img { display: block; max-width: 100%; }
::selection { color: var(--ink); background: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
main:focus { outline: none; }

.shell {
  width: min(100%, 106rem);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.label {
  font: 400 clamp(.69rem, .64rem + .16vw, .8rem)/1.45 var(--mono);
  text-transform: uppercase;
  letter-spacing: .12em;
}

.skip-link {
  position: fixed;
  top: .5rem;
  left: .5rem;
  z-index: 40;
  padding: .8rem 1.15rem;
  color: var(--ink);
  background: var(--paper);
  transform: translateY(-150%);
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  color: var(--paper);
  background: var(--ink);
  border-bottom: 1px solid #3c332c;
}

.site-header__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: calc(var(--header-height) - 1px);
}

.monogram {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.85rem;
  height: 2.85rem;
  justify-self: start;
  padding: 0 .24rem .12rem 0;
  border: 1px solid #5c5147;
  font: 900 1.96rem/.9 var(--display);
  letter-spacing: -.065em;
  transition: border-color .22s, color .22s;
}
.monogram span {
  position: absolute;
  right: .37rem;
  bottom: .44rem;
  width: .23rem;
  height: .23rem;
  background: var(--accent);
}
.monogram:hover { color: var(--accent); border-color: var(--accent); }

.site-nav {
  display: flex;
  align-items: stretch;
  height: 100%;
  gap: clamp(1.25rem, 3.35vw, 3.5rem);
}

.site-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  font: 400 .75rem/1 var(--mono);
  letter-spacing: .07em;
  text-transform: uppercase;
  color: #dbd1c4;
  transition: color .2s;
}

.site-nav a::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  background: var(--accent);
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s var(--ease);
}
.site-nav a:hover, .site-nav a[aria-current] { color: var(--paper); }
.site-nav a:hover::after, .site-nav a[aria-current]::after { transform: scaleX(1); }

.header-link, .menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: end;
  gap: .7rem;
  min-height: 2.75rem;
  padding: .65rem .8rem;
  border: 1px solid #5c5147;
  background: transparent;
  font: 400 .72rem/1 var(--mono);
  text-transform: uppercase;
  letter-spacing: .075em;
  transition: border-color .2s, background .2s, color .2s;
}
.header-link:hover, .menu-toggle:hover {
  color: var(--ink);
  border-color: var(--paper);
  background: var(--paper);
}

.reading-progress {
  position: absolute;
  bottom: -1px;
  left: 0;
  z-index: 1;
  height: 1px;
  width: 100%;
  background: #ff785777;
  transform: scaleX(0);
  transform-origin: left;
  pointer-events: none;
}

.arrow {
  --arrow-size: .78rem;
  position: relative;
  display: inline-block;
  width: var(--arrow-size);
  height: var(--arrow-size);
  flex: 0 0 auto;
  color: inherit;
}
.arrow::before, .arrow::after { position: absolute; content: ""; }
.arrow--out::before {
  right: 0;
  top: 0;
  width: 75%;
  height: 75%;
  border-top: 1.5px solid;
  border-right: 1.5px solid;
}
.arrow--out::after {
  top: 50%;
  left: -13%;
  width: 129%;
  height: 1.5px;
  background: currentColor;
  transform: rotate(-45deg);
  transform-origin: center;
}
.arrow--down::before, .arrow--up::before {
  left: calc(50% - .75px);
  top: 1px;
  width: 1.5px;
  height: 92%;
  background: currentColor;
}
.arrow--down::after, .arrow--up::after {
  left: 22%;
  bottom: 7%;
  width: 56%;
  height: 56%;
  border-right: 1.5px solid;
  border-bottom: 1.5px solid;
  transform: rotate(45deg);
}
.arrow--up { transform: rotate(180deg); }

.menu-toggle { display: none; cursor: pointer; }
.menu-toggle__icon { position: relative; width: .95rem; height: .65rem; }
.menu-toggle__icon::before, .menu-toggle__icon::after {
  position: absolute;
  left: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  content: "";
}
.menu-toggle__icon::before { top: 1px; }
.menu-toggle__icon::after { bottom: 1px; }
.menu-toggle__icon--close::before { top: 50%; transform: rotate(45deg); }
.menu-toggle__icon--close::after { top: 50%; transform: rotate(-45deg); }

.menu-dialog {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  color: var(--paper);
  background: var(--ink);
}
.menu-dialog::backdrop { background: var(--ink); }
.menu-dialog[open] { animation: menu-in .36s var(--ease) both; }
.menu-dialog__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  border-bottom: 1px solid #3c332c;
}
.menu-dialog__bar .menu-toggle { display: inline-flex; }
.menu-dialog__links { padding-block: clamp(1rem, 7vh, 4rem); }
.menu-dialog__links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 3rem;
  padding-block: .15em .2em;
  border-bottom: 1px solid #55473f;
  font: 900 clamp(3rem, min(12vw, 10vh), 6rem)/.95 var(--display);
  letter-spacing: -.02em;
  text-transform: uppercase;
}
.menu-dialog__links a:hover { color: var(--accent); }
.menu-dialog__links .arrow { --arrow-size: .9rem; color: var(--accent); }

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  min-height: calc(100vh - var(--header-height));
  min-height: max(39rem, calc(100svh - var(--header-height)));
  overflow: hidden;
  background: #31211c;
}

.hero__media, .hero::before, .hero::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.hero__media { z-index: -3; overflow: hidden; }
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 54%;
  transform: translate3d(var(--hero-x, 0px), calc(var(--hero-y, 0px) + var(--hero-scroll, 0px)), 0) scale(1.055);
  transition: transform .75s var(--ease);
}
.hero::before {
  z-index: -2;
  background:
    linear-gradient(90deg, #130e0dc4 0%, #1a11118c 27%, #1a11112c 54%, transparent 73%),
    linear-gradient(0deg, #17100fdd, transparent 26%, transparent 77%, #1c151279);
  content: "";
}
.hero::after {
  z-index: -1;
  background: url("./media/grain.png");
  opacity: .31;
  content: "";
}

.hero__inner {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding-top: clamp(1.7rem, 5.1vh, 3.45rem);
  padding-bottom: clamp(1.4rem, 4.4vh, 2.7rem);
}

.hero__location {
  display: flex;
  align-items: center;
  align-self: start;
  gap: .65rem;
  color: var(--paper);
}

.location-mark {
  position: relative;
  display: inline-block;
  width: .65rem;
  height: .65rem;
  color: var(--accent);
}
.location-mark::before, .location-mark::after {
  position: absolute;
  background: currentColor;
  content: "";
}
.location-mark::before { top: calc(50% - .5px); width: 100%; height: 1px; }
.location-mark::after { left: calc(50% - .5px); width: 1px; height: 100%; }

.hero__title {
  align-self: center;
  width: max-content;
  max-width: 100%;
  margin: -.04em 0 .035em -.035em;
  font: 900 clamp(7.6rem, min(19.25vw, 30vh), 20rem)/.745 var(--display);
  letter-spacing: -.031em;
  text-transform: uppercase;
}
.hero__title-line {
  display: block;
  overflow: hidden;
  padding: .09em .055em .085em .035em;
  margin-block: -.09em -.085em;
}
.hero__title-line > span {
  display: block;
  color: #f3e7d2;
  animation: name-in .78s var(--ease) both;
}
.hero__title-line + .hero__title-line > span { animation-delay: .065s; }

@keyframes name-in {
  from { transform: translateY(105%); }
  to { transform: translateY(0); }
}
@keyframes menu-in {
  from { clip-path: polygon(0 0, 100% 0, 100% 0, 0 22%); }
  to { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); }
}

.hero__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .85rem;
  padding-top: 1.05rem;
  border-top: 1px solid #f0e7d65e;
}

.explore {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  min-height: 2.75rem;
  font: 400 .76rem/1 var(--mono);
  letter-spacing: .085em;
  text-transform: uppercase;
}

.explore__icon {
  display: grid;
  width: 2.65rem;
  height: 2.65rem;
  place-items: center;
  color: var(--ink);
  background: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 50%;
  transition: color .25s, background .25s;
}
.explore:hover .explore__icon { color: var(--paper); background: transparent; }
.explore__icon .arrow { --arrow-size: .9rem; }
.hero__caption { color: #ebdfce; text-align: right; }

.chapter, .contact { position: relative; isolation: isolate; }
.chapter::before, .contact::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: url("./media/grain.png");
  opacity: .38;
  pointer-events: none;
  content: "";
}
.chapter {
  --chapter-line: #62524050;
  --chapter-label: #753320;
  --visual-back: #b6a895;
  color: var(--ink);
  background: #ece1cc;
}

.chapter__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .97fr);
  align-items: center;
  gap: clamp(2rem, 6vw, 8rem);
  padding-top: clamp(4.7rem, 8.2vw, 8.8rem);
  padding-bottom: clamp(4.7rem, 8.2vw, 8.8rem);
}
.chapter__copy { min-width: 0; }

.chapter__label {
  display: flex;
  align-items: center;
  gap: .65rem;
  margin-bottom: clamp(.4rem, 1vw, .95rem);
  color: var(--chapter-label);
}
.chapter__label::before { width: 1.45rem; height: 1px; background: currentColor; content: ""; }

.chapter__title {
  font: 900 clamp(4.75rem, 10.9vw, 11rem)/.84 var(--display);
  letter-spacing: -.03em;
  text-transform: uppercase;
}

.chapter__summary {
  max-width: 28rem;
  margin-top: clamp(1.3rem, 3vw, 2.5rem);
  padding-top: 1rem;
  border-top: 1px solid var(--chapter-line);
  font-size: clamp(1.1rem, 1.05rem + .43vw, 1.55rem);
  line-height: 1.42;
  letter-spacing: -.027em;
  text-wrap: pretty;
}

.chapter__visual {
  position: relative;
  width: min(100%, 39rem);
  aspect-ratio: 1.32;
  justify-self: end;
  padding: .55rem;
  border: 1px solid var(--chapter-line);
  background: transparent;
}
.chapter__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 54%;
  background: var(--visual-back);
}

.chapter--studium {
  --chapter-label: #ff9a72;
  --chapter-line: #e8d8c65e;
  --visual-back: #4d3123;
  color: var(--paper);
  background: #24201c;
}
.chapter--studium .chapter__visual {
  grid-column: 1;
  grid-row: 1;
  width: min(100%, 37rem);
  justify-self: start;
  aspect-ratio: 1.23;
}
.chapter--studium .chapter__copy { grid-column: 2; }
.chapter--studium .chapter__visual img { object-position: center 61%; }

.chapter--fasnacht {
  --chapter-label: #ffe7c6;
  --chapter-line: #ffe7c66b;
  --visual-back: #682719;
  color: #fff1d9;
  background: #8e321f;
}
.chapter--fasnacht .chapter__visual { aspect-ratio: 1.37; }
.chapter--fasnacht .chapter__visual img { object-position: center 49%; }

.contact {
  background: #171411;
  padding-block: clamp(3.2rem, 6.8vw, 6.8rem) 1.6rem;
}
.contact__label { margin-bottom: .55rem; color: #ff9275; }

.contact__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: clamp(1.35rem, 3vw, 2.6rem);
  border-bottom: 1px solid #645447;
  font: 900 clamp(4.2rem, 11.3vw, 11.6rem)/.9 var(--display);
  text-transform: uppercase;
  letter-spacing: -.03em;
  transition: color .25s;
}

.contact__arrow {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: clamp(3.65rem, 9vw, 8.5rem);
  aspect-ratio: 1;
  border: 1px solid #ad8d77;
  border-radius: 50%;
  color: var(--paper);
  transition: color .25s, background .25s, border-color .25s, transform .35s var(--ease);
}
.contact__arrow .arrow { --arrow-size: clamp(1.15rem, 3.1vw, 2.8rem); }
.contact__link:hover { color: var(--accent); }
.contact__link:hover .contact__arrow {
  color: var(--ink);
  background: var(--accent);
  border-color: var(--accent);
  transform: rotate(8deg);
}

.contact__imprint {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem 2rem;
  padding-block: clamp(1.5rem, 3.4vw, 3rem);
  border-bottom: 1px solid #645447;
}
.contact__responsibility {
  color: #d6c8b6;
  font-size: .95rem;
  line-height: 1.5;
}
.contact__details {
  display: grid;
  justify-items: start;
  gap: .55rem;
  font-size: clamp(1rem, .91rem + .38vw, 1.25rem);
  font-style: normal;
  line-height: 1.45;
}
.contact__email {
  overflow-wrap: anywhere;
  text-decoration: underline;
  text-decoration-color: #ad8d77;
  text-underline-offset: .25em;
  transition: color .25s, text-decoration-color .25s;
}
.contact__email:hover { color: var(--accent); text-decoration-color: currentColor; }

.contact__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  column-gap: 1rem;
  margin-top: .8rem;
  color: #d6c8b6;
}
.contact__copyright {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  text-transform: none;
}
.contact__watch { width: 2.25rem; height: 2.75rem; object-fit: contain; }
.contact__bottom a {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  min-height: 2.75rem;
}
.contact__bottom a:hover { color: var(--accent); }

[data-reveal].is-visible { animation: content-in .63s var(--ease) both; }
.chapter__title.is-visible { animation-delay: .04s; }
.chapter__summary.is-visible { animation-delay: .09s; }
[data-reveal-image].is-visible img { animation: print-in .88s var(--ease) both; }

@keyframes content-in {
  from { opacity: .64; transform: translateY(1.15rem); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes print-in {
  from { clip-path: polygon(0 0, 100% 0, 100% 73%, 0 98%); filter: brightness(.73); }
  to { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); filter: brightness(1); }
}

@media (max-width: 880px) {
  .chapter__inner { gap: clamp(1.5rem, 4vw, 3rem); }
  .chapter__title { font-size: clamp(4.65rem, 11.1vw, 7rem); }
}

@media (max-width: 700px) {
  :root { --gutter: clamp(1.2rem, 5.1vw, 2rem); --header-height: 3.9rem; }
  .site-header__inner { display: flex; justify-content: space-between; gap: .65rem; }
  .site-nav { gap: clamp(.65rem, 3.4vw, 1.5rem); }
  .site-nav a { font-size: clamp(.63rem, 2.5vw, .75rem); }
  .header-link { display: none; }
  .menu-ready .site-nav { display: none; }
  .menu-ready .site-header .menu-toggle { display: inline-flex; }
  .monogram { width: 2.65rem; height: 2.65rem; font-size: 1.78rem; }
  .hero { min-height: max(31rem, calc(100svh - var(--header-height))); }
  .hero__media img { object-position: center; transform: scale(1.025); }
  .hero::before {
    background:
      linear-gradient(90deg, #18100e7d 0%, #1a111126 74%, transparent),
      linear-gradient(0deg, #17100ff0, #17100f31 26%, transparent 76%, #1c151285);
  }
  .hero__inner { padding-top: 1.6rem; padding-bottom: 1.25rem; }
  .hero__title {
    align-self: end;
    margin-bottom: .29em;
    font-size: clamp(6.2rem, min(27vw, 21vh), 12.7rem);
  }
  .hero__bottom { padding-top: .85rem; }
  .hero__caption { max-width: 8.1rem; }
  .explore { gap: .55rem; font-size: .68rem; }
  .explore__icon { width: 2.5rem; height: 2.5rem; }

  .chapter__inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 2rem;
    padding-block: clamp(3.1rem, 9.5vw, 5rem);
  }
  .chapter__title { font-size: clamp(4.35rem, 18vw, 7.75rem); }
  .chapter__summary { margin-top: 1.3rem; padding-top: .9rem; }
  .chapter__visual, .chapter--studium .chapter__visual {
    grid-column: auto;
    grid-row: auto;
    width: 100%;
    aspect-ratio: 1.41;
    padding: .35rem;
  }
  .chapter--studium .chapter__copy { grid-column: auto; }
  .contact__link { font-size: clamp(3.75rem, 15.1vw, 6.9rem); }
  .contact__imprint { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 350px) {
  .hero__title { font-size: 26vw; }
  .chapter__title { font-size: clamp(3.7rem, 17.6vw, 4.4rem); }
  .hero__caption { font-size: .62rem; }
  .contact__link { font-size: 14vw; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-delay: 0ms !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .hero__media img { transform: none; }
}
