/* Fonts
   Nudge (VCNudgeNormal-*-Trial.otf) is a trial build — confirm a full
   license is bought before this ships to production. */

@font-face {
  font-family: "DGM Saffron";
  src: url("../fonts/DGM Saffron/DGMSaffron-Regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "DGM Saffron";
  src: url("../fonts/DGM Saffron/DGMSaffron-Italic.otf") format("opentype");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "DGM Saffron Mono";
  src: url("../fonts/DGM Saffron/DGMSaffron-Mono-Regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "DGM Saffron Mono";
  src: url("../fonts/DGM Saffron/DGMSaffron-Mono-Italic.otf") format("opentype");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Destra";
  src: url("../fonts/Destra/GPDestra-Light.otf") format("opentype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Nudge";
  src: url("../fonts/Nudge/VCNudgeNormal-SemiBold-Trial.otf") format("opentype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Nudge";
  src: url("../fonts/Nudge/VCNudgeNormal-SemiBoldItalic-Trial.otf") format("opentype");
  font-weight: 600;
  font-style: italic;
  font-display: swap;
}

/* Reset */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body,
h1, h2, h3, h4, h5, h6,
p,
ul,
ol,
figure {
  margin: 0;
  padding: 0;
}

ul,
ol {
  list-style: none;
}

img,
picture,
video,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}

/* Base */

:root {
  --font-body: "DGM Saffron", system-ui, sans-serif;
  --font-mono: "DGM Saffron Mono", ui-monospace, monospace;
  --font-display: "Destra", system-ui, sans-serif;
  --font-accent: "Nudge", system-ui, sans-serif;

  --page-margin: 20px;
  --content-gap: 1.75rem;
  --nav-col-width: 353px;

  --font-size-headline: 2rem;
  --font-size-body: 1.25rem;
  --font-size-caption: 0.875rem;

  --line-height-headline: 1;
  --line-height-body: 1.2;
  --line-height-caption: 1.4;

  --color-highlight: #616DFF;

  --mobile-nav-height: 49px;
}

html {
  -webkit-text-size-adjust: 100%;
  overflow: hidden;
}

body {
  font-family: var(--font-body);
  line-height: 1.4;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
}

/* Layout */

.site-header,
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-header__nav ul,
.site-header__languages ul {
  display: flex;
  gap: 1rem;
}

/* Vertical nav */

.nav-vertical {
  position: sticky;
  top: 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  border: 1px solid #000;
  padding: 5px 0;
  color: black;
}

.nav-vertical__item {
  width: 100%;
  padding: 0.5rem 0;
  text-align: center;
}

.nav-vertical__item + .nav-vertical__item {
  border-top: 1px solid #000;
}

.nav-vertical__link,
.nav-vertical__label {
  font-family: var(--font-mono);
  font-size: var(--font-size-body);
  line-height: var(--line-height-body);
  text-transform: lowercase;
}

.nav-vertical__label {
  color: rgba(0, 0, 0, 0.5);
}

.nav-vertical__link {
  transition: letter-spacing 0.3s ease, color 0.3s ease;
}

.nav-vertical__link:hover,
.nav-vertical__link:focus-visible {
  letter-spacing: 0.25em;
  color: var(--color-highlight);
}

.nav-vertical__logo {
  font-family: var(--font-display);
  letter-spacing: 1.31em;
  padding-left: 1.31em;
  font-size: 1.5rem;
}

/* Mobile nav */

.nav-mobile {
  display: none;
}

.nav-mobile__toggle {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 100;
  width: 100%;
  height: var(--mobile-nav-height);
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-top: 1px solid #000;
  background: #bdb79d;
  font-family: var(--font-mono);
  font-size: var(--font-size-body);
  text-align: center;
  text-transform: lowercase;
  cursor: pointer;
}

.nav-mobile__overlay {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #bdb79d;
}

.nav-mobile__overlay[hidden] {
  display: none;
}

.nav-mobile__list {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.nav-mobile__link,
.nav-mobile__label {
  font-family: var(--font-mono);
  font-size: var(--font-size-headline);
  text-transform: lowercase;
}

.nav-mobile__label {
  color: rgba(0, 0, 0, 0.5);
}

.nav-mobile__link {
  transition: letter-spacing 0.3s ease, color 0.3s ease;
}

.nav-mobile__link:hover,
.nav-mobile__link:focus-visible {
  letter-spacing: 0.25em;
  color: var(--color-highlight);
}

html.nav-mobile-open {
  overflow: hidden;
}

/* Home */

.home {
  background: #bdb79d;
  color: #000;
}

.home__hero {
  position: relative;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
}

.home__wheel {
  position: absolute;
  display: block;
  left: 11.04%;
  width: 77.91%;
  top: -32.7vw;
  height: 80.62vw;
  color: #fff;
}

.home__wheel svg {
  width: 100%;
  height: 100%;
}

@media (prefers-reduced-motion: no-preference) {
  .home__wheel svg {
    animation: wheel-spin 90s linear infinite;
  }
}

@keyframes wheel-spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(-360deg);
  }
}

.home__mini-wheel {
  position: fixed;
  left: var(--page-margin);
  bottom: var(--page-margin);
  z-index: 50;
  display: block;
  width: 120px;
  aspect-ratio: 579 / 599;
  color: #fff;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, color 0.3s ease;
}

.home__mini-wheel.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.home__mini-wheel:hover,
.home__mini-wheel:focus-visible {
  color: var(--color-highlight);
}

.home__mini-wheel svg {
  width: 100%;
  height: 100%;
  transform: rotate(var(--wheel-angle, 0deg));
}

.home__hero > .home__dateline {
  position: absolute;
  left: calc(var(--page-margin) + var(--nav-col-width) + var(--content-gap));
  right: var(--page-margin);
  bottom: var(--page-margin);
}

.home__hero > .home__imprint {
  position: absolute;
  left: var(--page-margin);
  bottom: var(--page-margin);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  line-height: var(--line-height-body);
  text-transform: lowercase;
  transition: letter-spacing 0.3s ease, color 0.3s ease;
}

.home__hero > .home__imprint:hover,
.home__hero > .home__imprint:focus-visible {
  letter-spacing: 0.25em;
  color: var(--color-highlight);
}

.home__dateline {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  font-family: var(--font-accent);
  font-weight: 600;
  font-size: var(--font-size-headline);
  line-height: var(--line-height-headline);
}

.home__dateline > * {
  min-width: 0;
}

.home__dateline--stacked {
  display: block;
  margin-top: 1.5rem;
}

.home__content {
  display: grid;
  grid-template-columns: var(--nav-col-width) 353px 1fr;
  column-gap: var(--content-gap);
  align-items: start;
  padding: 0 var(--page-margin) 6rem;
}

.home__content > * {
  min-width: 0;
}

@media (max-width: 1100px) {
  .home__content {
    grid-template-columns: 1fr;
    row-gap: 2.5rem;
  }

  .nav-vertical {
    display: none;
  }

  .nav-mobile {
    display: block;
  }

  .home__hero > .home__dateline {
    left: var(--page-margin);
    bottom: calc(var(--page-margin) + var(--mobile-nav-height));
  }

  .home__hero > .home__imprint {
    display: none;
  }

  .home__mini-wheel {
    width: 100px;
    left: auto;
    right: var(--page-margin);
    bottom: calc(var(--page-margin) + var(--mobile-nav-height));
  }
}

.home__headline {
  font-family: var(--font-accent);
  font-weight: 600;
  font-size: var(--font-size-headline);
  line-height: var(--line-height-headline);
}

.home__text {
  margin-top: 1.5rem;
  font-family: var(--font-body);
  font-size: var(--font-size-body);
  line-height: var(--line-height-body);
}

.home__text p + p {
  margin-top: 1.25em;
}

.home__figure img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 4px;
}

.home__figure figcaption {
  margin-top: 0.5rem;
  font-family: var(--font-accent);
  font-weight: 600;
  font-size: var(--font-size-caption);
  line-height: var(--line-height-caption);
}
