/* Reset */

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

* {
  margin: 0;
}

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

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

p,
h1,
h2,
h3,
h4,
h5,
h6 {
  overflow-wrap: break-word;
}

/* Styling */

:root {
  --c-pink: #f90c61;
  --c-black: #000000;
  --c-gray: #424241;
  --c-beige-dark: #e8e8d8;
  --c-beige: #f8f8ec;
  --c-beige-light: #fefef8;
  --c-white: #ffffff;
  --c-blue: #0a77c0;
}

/* fonts */

@font-face {
  font-family: "CM_Serif";
  src: url("/static/fonts/cmunrm.woff2") format("woff2");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "CM_Serif";
  src: url("/static/fonts/cmunbx.woff2") format("woff2");
  font-weight: bold;
  font-style: normal;
}

@font-face {
  font-family: "CM_Serif";
  src: url("/static/fonts/cmunti.woff2") format("woff2");
  font-weight: normal;
  font-style: italic;
}

@font-face {
  font-family: "CM_Serif";
  src: url("/static/fonts/cmunbi.woff2") format("woff2");
  font-weight: bold;
  font-style: italic;
}

@font-face {
  font-family: "CM_Concrete";
  src: url("/static/fonts/cmunorm.woff2") format("woff2");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "CM_Serif_Slanted";
  src: url("/static/fonts/cmunsl.woff2") format("woff2");
  font-weight: normal;
  font-style: normal;
}

/* global */

.doge-only {
  display: none;
}

html {
  overflow-x: hidden;
}

body {
  background-color: var(--c-beige-light);
  color: var(--c-gray);
  font-family: "CM_Serif";
  width: 100%;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

h1 {
  font-weight: 500;
  font-size: 32px;
  line-height: 1.3;
}

h2 {
  font-weight: 500;
  font-size: 20px;
  line-height: 1.3;
}

h3 {
  font-weight: 700;
  font-size: 16px;
  line-height: 1.3;
}

body,
p {
  font-weight: 500;
  font-size: 18px;
  line-height: 1.5;
  letter-spacing: -0.3px;
}

p {
  text-align: justify;
  margin: 24px 0;
}

@media (min-width: 480px) {
  body,
  p {
    font-size: 16px;
  }

  h2 {
    font-size: 24px;
  }
}

label,
.label {
  font-family: "CM_Concrete", Monaco, monospace;
  font-weight: 500;
  font-size: 12px;
  line-height: 1.3;
  letter-spacing: 1px;
}

a {
  text-decoration: none;
  color: var(--c-blue);
}

.un {
  background-image: -webkit-gradient(
    linear,
    left top,
    left bottom,
    from(currentColor),
    to(currentColor)
  );
  background-image: -o-linear-gradient(currentColor, currentColor);
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 100% 1px;
  background-position: 0 calc(100% - 1.5px);
  background-repeat: no-repeat;
  -webkit-transition: background-position 0.2s;
  -o-transition: background-position 0.2s;
  transition: background-position 0.2s;
}

.un:hover,
a:hover .un {
  background-position: 0 100%;
}

.visuallyhidden {
  position: absolute !important;
  clip: rect(1px 1px 1px 1px); /* IE6, IE7 */
  clip: rect(1px, 1px, 1px, 1px);
  padding: 0 !important;
  border: 0 !important;
  height: 1px !important;
  width: 1px !important;
  overflow: hidden;
}

/* spacing */

.outer-container {
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
}

.container {
  width: 100%;
  padding: 0 16px;
  max-width: 900px;
}

.small-container {
  max-width: 580px;
}

section {
  margin: 64px 0;
}

@media (min-width: 768px) {
  section {
    margin: 50px 0;
  }
}

/* header */

header {
  margin: 120px 0 80px;
}

.header__company-name,
.header__company-name h2 {
  font-family: "CM_Concrete";
  font-size: 20px;
  color: var(--c-black);
  text-decoration: none !important;
  font-style: normal;
  display: inline-block;
}

.header__company-name span {
  color: var(--c-pink);
}

header nav {
  margin-top: 20px;
  font-size: 14px;
  color: #333;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: 32px;
}

header nav a {
  color: #333;
}

header nav a:hover {
  text-decoration: underline;
}

@media (min-width: 768px) {
  header {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
  }

  header nav {
    margin-top: 0;
    margin-left: 40px;
  }
}

/* graphic */

.logo-graphic {
  position: absolute;
  overflow: hidden;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  top: 0;
  right: 0;
  width: 450px;
  height: 450px;
  z-index: -1;
}

.logo-graphic img {
  mix-blend-mode: multiply;
  opacity: 0.03;
  position: absolute;
  max-width: unset;
  width: 450px;
  height: 450px;
  top: -150px;
  right: -150px;
  pointer-events: none;
}

@media (min-width: 768px) {
  .logo-graphic,
  .logo-graphic img {
    width: 720px;
    height: 720px;
  }
}

.logo-graphic__clip {
  position: absolute;
  top: 0;
  opacity: 0.3 !important;
}

/* footer */

footer {
  padding: 20px 0 40px;
  text-align: center;
  font-size: 20px;
}

footer h2 {
  margin-bottom: 20px;
  color: var(--c-gray);
  font-size: 20px;
}

footer .socials {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  font-size: 12px;
  margin-top: 20px;
  gap: 12px;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
}

footer .socials a {
  color: var(--c-gray);
}

@media (min-width: 480px) {
  footer {
    padding: 16px 0 60px;
    text-align: left;
    font-size: 24px;
  }

  footer h2 {
    font-size: 24px;
  }

  footer .socials {
    -webkit-box-pack: start;
    -ms-flex-pack: start;
    justify-content: flex-start;
  }
}

/* intro */

.intro p {
  font-size: 20px;
}

@media (min-width: 480px) {
  .intro p {
    font-size: 24px;
  }
}

/* portfolio */

.portfolio figure {
  padding: 20px 0;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: 20px;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

@media (min-width: 480px) {
  .portfolio figure {
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
    -ms-flex-direction: row;
    flex-direction: row;
    gap: 32px;
    padding: 32px 0;
  }
}

.portfolio figure a {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  height: 100px;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  background-color: var(--c-beige);
  color: var(--c-gray);
  border-radius: 4px;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  text-decoration: none;
  -webkit-transition:
    background-color 0.2s,
    color 0.2s;
  -o-transition:
    background-color 0.2s,
    color 0.2s;
  transition:
    background-color 0.2s,
    color 0.2s;
  aspect-ratio: 2 / 1;
}

.portfolio figure svg {
  max-width: 80%;
  max-height: 80%;
  mix-blend-mode: luminosity;
}

.portfolio figure a:hover {
  background-color: var(--c-blue);
  color: var(--c-white);
}

.portfolio figcaption {
  font-weight: 700;
  font-size: 16px;
  color: var(--c-black);
}

.portfolio figure p {
  font-size: 13px;
  color: var(--c-gray);
  margin: 12px 0;
}

/* doge */

.doge-trigger {
  content: "";
  z-index: 999;
  background: white;
  border-radius: 40px;
  display: block;
  -webkit-mask-image: linear-gradient(
    -75deg,
    rgba(0, 0, 0, 0.1) 30%,
    #000 50%,
    rgba(0, 0, 0, 0.1) 70%
  );
  -webkit-mask-size: 200%;
  animation: shine 4s infinite;
  width: 80px;
  height: 80px;
  mix-blend-mode: soft-light;
  transition: all 0.5s ease-in-out;
  opacity: 1;
  position: absolute;
  top: 44px;
  right: 37px;
  cursor: pointer;
}

@media (min-width: 768px) {
  .doge-trigger {
    top: 254px;
    right: 50px;
  }
}

@keyframes shine {
  from {
    -webkit-mask-position: 150%;
  }

  to {
    -webkit-mask-position: -50%;
  }
}
