/* ------------------------- Styleguide -------------------------------------------------- */

/* ------------------------- Fonts -------------------------------------------------- */

/* Variable */
@font-face {
  font-family: "Inter";
  src: url("/wp-content/themes/erikjangelink/assets/fonts/Inter.ttf")
    format("truetype");
  font-weight: 100 200 300 400 500 600 700 800 900;
  font-style: normal;
  font-display: auto;
}

@font-face {
  font-family: "Nunito";
  src: url("/wp-content/themes/erikjangelink/assets/fonts/Nunito.ttf")
    format("truetype");
  font-weight: 100 200 300 400 500 600 700 800 900;
  font-style: normal;
  font-display: auto;
}

@font-face {
  font-family: "Inter";
  src: url("/wp-content/themes/erikjangelink/assets/fonts/Inter-Italic.ttf")
    format("truetype");
  font-weight: 100 200 300 400 500 600 700 800 900;
  font-style: italic;
  font-display: auto;
}

@font-face {
  font-family: "Nunito";
  src: url("/wp-content/themes/erikjangelink/assets/fonts/Nunito-Italic.ttf")
    format("truetype");
  font-weight: 100 200 300 400 500 600 700 800 900;
  font-style: italic;
  font-display: auto;
}

/* Light */
@font-face {
  font-family: "Heywow";
  src: url("/wp-content/themes/erikjangelink/assets/fonts/HeyWowLight.ttf")
    format("truetype");
  font-weight: 300;
  font-style: normal;
  font-display: auto;
}

/* Regular */
@font-face {
  font-family: "Heywow";
  src: url("/wp-content/themes/erikjangelink/assets/fonts/HeyWowRegular.ttf")
    format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: auto;
}

@font-face {
  font-family: "Andika";
  src: url("/wp-content/themes/erikjangelink/assets/fonts/Andika-Regular.ttf")
    format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: auto;
}

@font-face {
  font-family: "Cal";
  src: url("/wp-content/themes/erikjangelink/assets/fonts/CalSans-Regular.ttf")
    format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: auto;
}

/* Medium */
@font-face {
  font-family: "Heywow";
  src: url("/wp-content/themes/erikjangelink/assets/fonts/HeyWowMedium.ttf")
    format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: auto;
}

/* Semibold */
@font-face {
  font-family: "Heywow";
  src: url("/wp-content/themes/erikjangelink/assets/fonts/HeyWowSemiBold.ttf")
    format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: auto;
}

/* Bold */
@font-face {
  font-family: "Heywow";
  src: url("/wp-content/themes/erikjangelink/assets/fonts/HeyWowBold.ttf")
    format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: auto;
}

@font-face {
  font-family: "Andika";
  src: url("/wp-content/themes/erikjangelink/assets/fonts/Andika-Bold.ttf")
    format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: auto;
}

/* Book */
@font-face {
  font-family: "Heywow";
  src: url("/wp-content/themes/erikjangelink/assets/fonts/HeyWowBook.ttf")
    format("truetype");
  font-weight: 400; /* Book is often treated as normal weight, adjust if needed */
  font-style: normal;
  font-display: auto;
}

/* Extra Bold */
@font-face {
  font-family: "Heywow";
  src: url("/wp-content/themes/erikjangelink/assets/fonts/HeyWowExtraBold.ttf")
    format("truetype");
  font-weight: 800;
  font-style: normal;
  font-display: auto;
}

/* Heavy */
@font-face {
  font-family: "Heywow";
  src: url("/wp-content/themes/erikjangelink/assets/fonts/HeyWowHeavy.ttf")
    format("truetype");
  font-weight: 900;
  font-style: normal;
  font-display: auto;
}

@font-face {
  font-family: "Tenor Sans";
  src: url("/wp-content/themes/erikjangelink/assets/fonts/TenorSans-Regular.ttf")
    format("truetype");
  font-display: auto;
}

@font-face {
  font-family: "Inter Regular";
  src: url("/wp-content/themes/erikjangelink/assets/fonts/Inter_18pt-Regular.ttf")
    format("truetype");
  font-display: auto;
}

@font-face {
  font-family: "Inter Semi Bold";
  src: url("/wp-content/themes/erikjangelink/assets/fonts/Inter_18pt-SemiBold.ttf")
    format("truetype");
  font-display: auto;
}

@font-face {
  font-family: "Fira Sans Regular";
  src: url("/wp-content/themes/erikjangelink/assets/fonts/FiraSans-Regular.ttf")
    format("truetype");
  font-display: swap;
}

/* ------------------------- Variables -------------------------------------------------- */

:root {
  --color-dark-rgb: 28, 29, 36;
  --color-black: #383030;
  --color-gray: #777777;
  --color-white: #ffffff;
  --color-dark-green: #686636;
  --color-green: #00863e;

  --color-red: #ff3800;
  --color-red-light: #ffebe5;
  --color-offwhite: #fdfaf5;
  --color-offwhite-dark: #f6f0e5;
  --color-brickred: #bb5100;

  --color-primary: #103e3f;

  --color-golden-wheat: #f5deb3;
  --color-alabaster-white: #fdfaf5;
  --color-ocean-blue: #1e73be;

  --color-navigation: #0e3232;
  --color-footer: #0e3232;

  --color-alert-error: #e34248;
  --color-alert-success: #26ad6a;

  --color-text: #383030;
  --color-text-light: #ffffff;

  --color-bg-dark: #0e3232;
  --color-bg-light: #f6f4ee;

  --color-border: rgba(var(--color-light-medium-rgb), 0.15);
  --color-border-light: rgba(var(--color-light-rgb), 0.2);

  --animation-primary: 0.5s cubic-bezier(0.3, 1, 0.3, 1);
  --animation-nav: 0.5s cubic-bezier(0.6, 0, 0.4, 1);
  --animation-nav-primary: 0.2s ease;
  --animation-nav-smooth: 0.5s cubic-bezier(0.5, 0, 0.25, 1);
  --animation-smooth: 0.8s cubic-bezier(0.3, 1, 0.3, 1);
  --animation-bounce: 0.4s cubic-bezier(0.35, 1.5, 0.6, 1);
  --animation-theme: 0.3s ease-in-out;

  --section-padding: min(10vh, 10em);
  --section-padding-medium: min(10vh, 10em);
  --section-padding-blog: min(3vh, 3em);

  --nav-height: 6em;
  --btn-height: 2.6em;

  --container-padding: var(--gap);

  --gap-padding: clamp(2em, 4vw, 2em);
  --gap-padding-small: clamp(2em, 4vw, 2em);
  --gap-padding-medium: clamp(3em, 6vw, 3em);
  --gap-padding-large: clamp(4em, 6vw, 4em);

  --gap: calc(var(--title-size) * 0.5);
  --row-gap: calc(var(--title-size) * 0.3);
  --col-gap: calc(var(--title-size) * 0.3);

  --title-size: clamp(5em, 7.5vw, 7.5em);

  --border-radius-small: calc(clamp(1em, 1.5vw, 1.5em) * 0.75);
  --border-radius: calc(clamp(0.5em, 1vw, 1.25em) * 0);
}

@media screen and (max-width: 991px) {
  :root {
    --section-padding: min(12vh, 12em);
  }
}

/* ------------------------- Body -------------------------------------------------- */

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

li,
ul,
figure {
  padding: 0;
  margin: 0;
  list-style: none;
}

html {
  scroll-behavior: initial;
}

body {
  margin: 0 auto;
  -webkit-font-smoothing: antialiased;
  color: var(--color-text);
  line-height: 1.6;
  font-weight: 400;
  font-style: normal;
  font-size: 16px;
  font-size: clamp(16px, 1.1vw, 18px);
  background-color: var(--color-offwhite);
  font-family: "Nunito", sans-serif;
  font-weight: 400;
}

html,
body {
  width: 100%;
  min-height: 100%;
  -webkit-font-smoothing: antialiased;
  position: relative;
}

header {
  z-index: 100;
  pointer-events: none;
  position: fixed;
  inset: 0;
  overflow: hidden;
}

/* General */
canvas,
img,
video,
picture,
figure {
  max-width: 100%;
  height: auto;
  box-sizing: border-box;
  display: block;
}

svg {
  max-width: none;
  height: auto;
  box-sizing: border-box;
}

/* ------------------------- Main Elements -------------------------------------------------- */

.section {
  display: block;
  padding-top: var(--section-padding);
  padding-bottom: var(--section-padding);
  position: relative;
  background-color: var(--color-offwhite);
}

.section:first-child {
  padding-top: calc(var(--section-padding) + var(--nav-height));
}

.section[data-theme-section="dark"] {
  background-color: var(--color-primary);
  color: var(--color-text-light);
}
.section.theme-golden-wheat {
  background-color: var(--color-golden-wheat);
  color: var(--color-text);
}

section.section.full-height {
  padding: 0;
}

section.section.full-height .row {
  min-height: 100vh;
}

.container {
  margin: 0 auto;
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
  max-width: 100em;
}

.container.no-padding {
  padding-left: unset;
  padding-right: unset;
}

.row {
  display: flex;
  flex-wrap: wrap;
  position: relative;
  gap: 1em;
}

.row.page-title {
  margin-bottom: 2em;
}

.col {
  display: flex;
  flex-direction: column;
  position: relative;
  gap: 1em;
}

.row.centered {
  justify-content: center;
}

.row.centered > .col {
  justify-content: center;
  text-align: center;
  max-width: 45em;
}

/* .row.grid > .col {
  width: calc(
    (99.99% / var(--columns)) -
      (var(--grid-gap) * ((var(--columns) - 1) / var(--columns)))
  );
} */

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
}

img.overlay,
video.overlay {
  object-fit: cover;
}

.overlay.overlay-dark {
  background-color: rgba(var(--color-dark-rgb), 0.5);
}

@media screen and (max-width: 1024px) {
  /* .section:first-child {
   padding-top: var(--section-padding);
} */
}

/* ------------------------- Typography -------------------------------------------------- */

h1,
h2,
h3,
h4,
h5,
h6,
p,
a,
li,
ul,
ol,
span,
strong,
em,
figcaption {
  padding: 0;
  margin: 0;
  font-style: normal;
  letter-spacing: normal;
  font-weight: unset;
  line-height: unset;
}

h1 {
  font-family: "Cal", sans-serif;
  font-size: calc(var(--title-size) * 0.35);
  font-weight: 400;
  line-height: 1;
}

h1.big {
  font-size: calc(var(--title-size) * 0.45);
}

h2 {
  font-family: "Cal", sans-serif;
  font-weight: 400;
  font-size: calc(var(--title-size) * 0.25);
  line-height: 1;
}

@media screen and (max-width: 540px) {
  h1 {
    font-size: calc(var(--title-size) * 0.55);
  }

  h2 {
    font-size: calc(var(--title-size) * 0.375);
  }
}

h2.small {
  font-size: calc(var(--title-size) * 0.3);
  line-height: 1.2;
}

h3 {
  font-family: "Cal", sans-serif;
  font-weight: 400;
  font-size: calc(var(--title-size) * 0.2);
}

h4 {
  font-family: "Cal", sans-serif;
  font-weight: 400;
  font-size: calc(var(--title-size) * 0.2);
  line-height: 1.2;
}

h5 {
  font-family: "Cal", sans-serif;
  font-weight: 400;
  font-size: calc(var(--title-size) * 0.2);
  line-height: 1.2;
}

p {
  font-weight: 400;
  font-style: normal;
  line-height: 1.5;
}

p.medium {
  /* font-size: clamp(16px, 1.75vw, 18px); */
  font-size: clamp(16px, 2vw, 22px);
}

span {
  font-weight: inherit;
  color: inherit;
}

strong {
  font-weight: 400;
  font-family: "Cal", sans-serif;
}

em {
  font-style: italic;
}

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

.eyebrow {
  display: block;
  text-transform: uppercase;
  letter-spacing: calc(0.75em * 0.12);
  font-size: 0.725em;
  line-height: 1;
  font-weight: 400;
  opacity: 0.5;
}

/* Alignment styles */
.align-left {
  text-align: left;
}

.align-center {
  text-align: center;
  justify-content: center;
  align-items: center;
}

.align-right {
  text-align: right;
}

/* ------------------------- Styled - Typography -------------------------------------------------- */

.styled-content :is(h1, h2, h3, p, figure) {
  margin-bottom: 1em;
  margin-top: 0.5em;
}

.styled-content > *:first-child {
  margin-top: 0;
}

.styled-content h1 {
  margin-top: 4rem;
}

.styled-content :is(h1, h2, h3, p):last-child {
  margin-bottom: 0;
}

.styled-content p > a {
  color: var(--color-dark);
  text-decoration: underline;
  transition: var(--animation-primary);
}

.styled-content p > a:hover {
  opacity: 0.5;
}

.styled-content ul {
  display: flex;
  flex-direction: column;
  padding-left: 1em;
  padding-bottom: 1rem;
  gap: 0.5em;
}

.styled-content ul:last-child {
  padding-bottom: 0;
}

.styled-content ul li {
  position: relative;
}

.styled-content ul li::before {
  content: "";
  left: -1em;
  top: 0.65em;
  height: 0.2em;
  width: 0.2em;
  background: var(--color-dark);
  position: absolute;
}

/* ------------------------- Styled Figure -------------------------------------------------- */

.styled-figure {
  display: flex;
  flex-direction: column;
  gap: 0.5em;
  position: relative;
}

.styled-figure figcaption {
  font-weight: 400;
  font-style: normal;
  font-size: 0.8em;
  line-height: 1.3;
  color: var(--color-text);
}

.ratio-figure {
  width: 100%;
  position: relative;
}

.ratio-figure::before {
  content: "";
  display: block;
  padding-top: 133.333%;
}

/* ------------------------- Styled Image / Video -------------------------------------------------- */

.styled-image,
.styled-video {
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  border-radius: var(--border-radius-medium);
}

.styled-image img,
.styled-image video {
  width: 100%;
}

.styled-image[data-ratio-status="true"] img,
.styled-video[data-ratio-status="true"] video {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  object-fit: cover;
}

.styled-image.overlay,
.styled-video.overlay {
  object-fit: cover;
  position: absolute;
}

.styled-image.overlay img,
.styled-video.overlay video {
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* object-fit: cover; */
  position: absolute;
}

/* ------------------------- Buttons -------------------------------------------------- */

.btn-row {
  text-align: center;
}

.btn-row .btn:not(:first-child) {
  margin-left: 1em;
}

.btn-content {
  display: flex;
  align-items: center;
  gap: 0.7em;
}

/** Button fill **/

.btn.btn-fill {
  color: var(--color-text-light);
  background: var(--color-primary);
  border: 1px solid var(--color-primary);
  display: inline-block;
  /* padding: 8px 16px; */
  position: relative;
  text-decoration: none;
  border-radius: var(--border-radius);
  text-align: center;
  font-size: 1em;
}

/** Button border **/

.btn.btn-border {
  color: var(--color-primary);
  background: transparent;
  border: 1px solid var(--color-primary);
  display: inline-block;
  /* padding: 10px 20px; */
  position: relative;
  text-decoration: none;
  border-radius: 5em;
  text-align: center;
  font-size: 1em;
}

.btn.btn-border:hover {
  background: var(--color-primary);
  color: var(--color-text-light);
}

.btn.btn-border path {
  stroke: var(--color-primary);
}

.btn.btn-border:hover path {
  stroke: var(--color-text);
}

.btn-inner {
  position: relative;
  display: block;
  padding: 0.75em 1.5em;
  border-radius: 5em;
  overflow: hidden;
  background: var(--primary-color);
}

.btn-border .btn-inner {
  background: transparent;
}

.btn-text {
  position: relative;
  z-index: 2;
  display: inline-block;
  transition: transform 0.4s cubic-bezier(0.19, 1, 0.22, 1) 0.15s;
  will-change: transform;
}
