@import "reset.css";
@import "theme.css";

a {
  color: var(--primary);
  font-weight: bolder;
  text-decoration: none;
}

p {
  margin: 1em 0;
}

p:first-child {
  margin-top: 0;
}

p:last-child {
  margin-bottom: 0;
}

.badge {
  padding: 0.618em 1em;
  width: max-content;
  border-radius: 1.618em;
  background-color: var(--secondary);
  color: var(--secondary-content);
  font-size: 0.618em;
  font-weight: bolder;
  text-transform: uppercase;
  line-height: 1;
}

.btn {
  display: inline-block;
  padding: 0.618em 1em;
  border-radius: 0.382rem;
  background-color: var(--accent);
  color: var(--accent-content);
  font-size: 1em;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0.333em 0.4em 0.25em rgba(0, 0, 0, 0.333);
}

.btn:hover {
  transform: translate(-0.056rem, -0.056rem);
  box-shadow: 0.5em 0.6em 0.333em rgba(0, 0, 0, 0.333);
}

.btn:active {
  transform: translate(0.056rem, 0.056rem);
  box-shadow: 0.25em 0.3em 0.2em rgba(0, 0, 0, 0.333);
}

.btn-slanted {
  transform: rotate(-6deg) skewX(-6deg);
}

.btn-slanted:hover {
  transform: rotate(-6deg) skewX(-6deg) translate(-0.056rem, -0.056rem);
}

.btn-slanted:active {
  transform: rotate(-6deg) skewX(-6deg) translate(0.056rem, 0.056rem);
}

.container {
  position: relative;
  margin: 0 auto;
  padding: 0 1.618rem;
  width: 100%;
}

@media (min-width: 40rem) {
  .container {
    max-width: 40rem;
    padding: 0 2.618rem;
  }
}

@media (min-width: 48rem) {
  .container {
    max-width: 48rem;
  }
}

@media (min-width: 64rem) {
  .container {
    max-width: 64rem;
  }
}

@media (min-width: 80rem) {
  .container {
    max-width: 80rem;
  }
}

@media (min-width: 96rem) {
  .container {
    max-width: 96rem;
  }
}

.line {
  display: inline-block;
}

.nowrap {
  white-space: nowrap;
}

body {
  width: 100%;
  min-height: 100%;
  background: var(--base-200);
  color: var(--base-content);
  font-family:
    Lechletics, ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji",
    "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  font-size: 1rem;
  line-height: 1.5;
}

@media (min-width: 40rem) {
  body {
    font-size: 1.125rem;
  }
}

@media (min-width: 48rem) {
  body {
    font-size: 1.25rem;
  }
}

body > header {
  position: fixed;
  z-index: 50;
  top: 0;
  width: 100%;
  padding: 1.618rem 0;
  backdrop-filter: blur(1rem);
  box-shadow: 0 0.382rem 0.382rem rgba(0, 0, 0, 0.09);
}

body > header .wrapper {
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 1.618rem;
}

body > header .logo {
  position: relative;
  width: 16rem;
  margin-bottom: 0.618rem;
  display: grid;
  grid-template-columns: 1fr 2rem;
  grid-template-rows: repeat(2, auto);
  gap: 0.382rem;
  transform: rotate(-6deg) skew(-6deg);
  transform-origin: top right;
}

body > header div.logo > a {
  grid-column: 1;
  grid-row: 1;
  display: block;
  color: var(--accent);
}

body > header div.logo > a svg {
  display: block;
  color: var(--accent);
  fill: currentColor;
}

body > header div.cta {
  grid-column: span 2 / -1;
  grid-row: 2;
  justify-self: end;
}

body > header div.cta .btn {
  padding: 0.382rem 0.618rem;
  font-size: 0.854rem;
  text-transform: uppercase;
}

body > header div.social a {
  display: block;
  width: 2.618rem;
  color: var(--secondary);
}

body > header div.social a svg {
  display: block;
  fill: currentColor;
}

body > main > *:first-child {
  padding-top: 11.089rem;
}

body > main > *:last-child {
  padding-bottom: 4.236rem;
}

body > main section {
  padding: 4.236rem 0;
}

body > main section.intro {
  position: relative;
  padding-top: 11.088rem;
  display: flex;
  flex-direction: column;
  justify-content: end;
}

@media (min-width: 80rem) {
  body > main section.intro {
    padding-top: 17.942rem;
  }
}

body > main section.intro:before {
  content: " ";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--base-200);
  background-image: url("images/janis-willbold-intro.jpg");
  background-blend-mode: screen;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: 38.2%;
  opacity: 14.6%;
}

body > main section.intro .wrapper {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 4.236rem;
}

@media (min-width: 64rem) {
  body > main section.intro .wrapper {
    gap: 6.854rem;
  }
}

@media (min-width: 80rem) {
  body > main section.intro .wrapper {
    gap: 11.088rem;
  }
}

body > main section.intro h1.badge {
  margin: 0 auto 1.618rem;
}

body > main section.intro h2 {
  margin: 0.382em 0 1em;
  color: var(--accent);
  font-size: 2.618em;
  font-weight: 900;
  text-align: center;
  transform: rotate(-6deg) skewX(-6deg);
}

@media (min-width: 40rem) {
  body > main section.intro h2 {
    font-size: 2.618em;
  }
}

body > main section.intro .desc {
  max-width: 65ch;
  margin: 0 auto;
  text-align: center;
  text-wrap: pretty;
}

body > main section.intro aside {
  display: flex;
  flex-direction: column;
  gap: 1.618rem;
}

@media (min-width: 64rem) {
  body > main section.intro aside {
    flex-direction: row;
    justify-content: space-between;
  }
}

body > main section.intro aside .w {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  padding-left: 1.618rem;
}

body > main section.intro aside .w .q {
  flex: 0 0 auto;
  position: relative;
  color: var(--primary);
  font-size: 2.618em;
  font-weight: 900;
  text-transform: uppercase;
  transform: rotate(-6deg) skewX(-6deg) translate(-1.618rem, 2.618rem);
  transform-origin: bottom left;
  z-index: 10;
}

body > main section.intro aside .w .a {
  flex: 1 0 auto;
  padding: 1.618rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.618rem;
  backdrop-filter: blur(0.618rem);
  border-radius: 0.618rem;
  box-shadow: 0 0.236rem 0.236rem rgba(0, 0, 0, 0.09);
  font-weight: 200;
}

body > main section.intro aside .w .a .highlight {
  color: var(--accent);
  font-size: 1.618em;
  font-weight: 900;
}

body > main section.intro aside .w .a .btn {
  width: max-content;
}

body > main section.faq .badge {
  margin: 0 auto 1.618rem;
}

body > main section.faq h2 {
  margin-bottom: 2.618rem;
  text-align: center;
}

body > footer {
  padding: 1rem 0 2.5rem;
}

section h1,
section h2 {
  margin: 0;
  font-size: 2em;
  line-height: 1.333;
  text-transform: uppercase;
}

section h1 {
  font-weight: 700;
}

section h2 {
  margin-bottom: 1.618rem;
  font-weight: 100;
}

aside h2 {
  margin: 0 0 1.382rem;
}

details {
  margin-bottom: 0.618rem;
  background-color: var(--base-300);
  border-radius: 0.618rem;
}

details > *:not(summary) {
  padding: 0 4.236rem 0 1.618rem;
  text-wrap: pretty;
}

details summary + * {
  margin-top: 0;
}

details[open] {
  padding-bottom: 1.618rem;
}

details summary {
  position: relative;
  padding: 1.618rem 4.236rem 1.618rem 1.618rem;
  list-style: none;
  font-size: 1.236em;
  font-weight: 700;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
}

details summary::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 2.618rem;
  width: 0.618rem;
  height: 0.618rem;
  border-top: 0.146rem solid currentColor;
  border-right: 0.146rem solid currentColor;
  transform: translateY(-25%) rotate(-45deg);
  transition: transform 0.236s ease;
  pointer-events: none;
}

details[open] summary::after {
  transform: translateY(-25%) rotate(135deg);
}

footer .wrapper {
  display: flex;
  flex-direction: column;
  gap: 0.618rem;
  color: var(--secondary);
  font-size: 0.618em;
}

@media (min-width: 40rem) {
  footer .wrapper {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
  }
}

footer nav {
  display: flex;
  flex-direction: row;
  gap: 1rem;
}

footer nav a {
  color: currentColor;
  font-weight: normal;
}

footer aside div.copy,
footer aside div.credits {
  display: inline-block;
  flex-direction: column;
  gap: 0.618rem;
}

footer aside a {
  color: currentColor;
  font-weight: normal;
  text-decoration: underline;
}
