@font-face {
  font-family: "Liberation Sans";
  src: url("../assets/fonts/LiberationSans-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: block;
}

:root {
  --blue: #2b36f4;
  --ink: #fff;
  --ink-soft: rgba(255, 255, 255, 0.8);
  --ink-muted: rgba(255, 255, 255, 0.62);
  --line: rgba(255, 255, 255, 0.35);
  --halo: rgba(12, 18, 130, 0.55);
  --gutter: clamp(20px, 6vw, 90px);
}

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

html {
  background: var(--blue);
}

body {
  margin: 0;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  background: var(--blue);
  color: var(--ink);
  font-family: "Liberation Sans", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.28em;
  text-shadow: 0 0 0.12em var(--halo);
}

a:hover {
  text-decoration-thickness: 2px;
}

a:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 4px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.22;
  mix-blend-mode: overlay;
  background-image: url("../assets/img/grain.svg");
}

.wallpaper,
.ticker {
  position: relative;
  overflow: hidden;
  background: var(--blue) url("../assets/img/background.jpg") center / cover no-repeat;
}

.wallpaper {
  height: 100svh;
  min-height: 420px;
}

.pattern {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  font-size: clamp(19px, 2.58vw, 46px);
  line-height: 1;
  color: var(--ink);
  text-shadow: 0 0 0.1em var(--halo);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.3), #000 7%);
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.3), #000 7%);
  pointer-events: none;
  user-select: none;
}

.ticker .pattern {
  position: relative;
  display: block;
  padding: 0.28em 0;
  -webkit-mask-image: none;
  mask-image: none;
}

.pattern-row {
  white-space: nowrap;
  filter: blur(0.45px);
}

.pattern-row span {
  display: inline-block;
  animation: slide var(--duration, 90s) linear infinite;
  animation-direction: var(--direction, normal);
}

@keyframes slide {
  from {
    transform: translateX(var(--offset, 0));
  }
  to {
    transform: translateX(calc(var(--offset, 0) - 50%));
  }
}

@media (prefers-reduced-motion: reduce) {
  .pattern-row span {
    animation: none;
  }
}

.contact {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100svh;
  padding: 14vh var(--gutter) 0;
}

.emails {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(36px, 6vw, 90px);
}

.label {
  margin: 0 0 0.5em;
  font-size: 15px;
  color: var(--ink-muted);
}

.email {
  display: inline-block;
  font-size: clamp(28px, 4.3vw, 64px);
  letter-spacing: -0.035em;
  line-height: 1.05;
  text-decoration: none;
  text-shadow: 0 0 0.1em var(--halo);
  overflow-wrap: anywhere;
}

.email:hover {
  text-decoration: underline;
}

.contact-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 22px;
  margin-top: clamp(70px, 12vh, 140px);
  padding: 22px 0 30px;
  border-top: 1px solid var(--line);
}

.socials {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}

.socials a,
.topbar a {
  color: var(--ink-soft);
}

.socials a:hover,
.topbar a:hover {
  color: var(--ink);
}

.page-link {
  font-size: 17px;
}

.domain {
  width: 100%;
  font-size: 13px;
  color: var(--ink-muted);
}

.info {
  display: none;
}

body.is-info .home {
  display: none;
}

body.is-info .info {
  display: block;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 16px var(--gutter);
  font-size: 15px;
}

.page {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.page-title {
  margin: clamp(30px, 6vh, 70px) 0 0.4em;
  font-weight: 400;
  font-size: clamp(60px, 11vw, 170px);
  letter-spacing: -0.05em;
  line-height: 0.85;
  text-shadow: 0 0 0.1em var(--halo);
}

.page-title:focus {
  outline: none;
}

.headline {
  max-width: 36ch;
  margin: 0 0 1em;
  font-size: clamp(20px, 2.2vw, 28px);
  line-height: 1.35;
}

.introduction {
  max-width: 62ch;
  color: var(--ink-soft);
}

.section {
  padding-top: clamp(70px, 11vh, 130px);
}

.section h2 {
  margin: 0 0 clamp(18px, 3vh, 30px);
  font-weight: 400;
  font-size: clamp(34px, 4.6vw, 64px);
  letter-spacing: -0.035em;
  line-height: 1;
  text-shadow: 0 0 0.1em var(--halo);
}

.projects {
  border-top: 1px solid var(--line);
}

.project {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr);
  gap: 12px clamp(24px, 5vw, 70px);
  padding: clamp(20px, 3vh, 30px) 0;
  border-bottom: 1px solid var(--line);
}

.project h3 {
  margin: 0;
  font-weight: 400;
  font-size: clamp(22px, 2.3vw, 30px);
  letter-spacing: -0.015em;
  line-height: 1.1;
}

.project .role {
  margin: 0.35em 0 0;
  font-size: 15px;
  color: var(--ink-muted);
}

.project p {
  margin: 0 0 0.7em;
  color: var(--ink-soft);
}

.project ul {
  margin: 0 0 0.8em;
  padding: 0;
  list-style: none;
}

.project li {
  padding: 3px 0;
}

.project li::before {
  content: "# ";
  color: var(--ink-muted);
}

.links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  font-size: 15px;
}

.skills {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 clamp(24px, 5vw, 70px);
  border-top: 1px solid var(--line);
}

.skills > div {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.skills h3 {
  margin: 0 0 0.3em;
  font-weight: 400;
  font-size: 19px;
}

.skills p {
  margin: 0;
  font-size: 16px;
  color: var(--ink-soft);
}

.info .contact {
  min-height: auto;
  max-width: 1180px;
  margin: 0 auto;
  padding-top: clamp(90px, 14vh, 160px);
}

.info .email {
  font-size: clamp(26px, 3.3vw, 50px);
}

@media (max-width: 760px) {
  .emails,
  .project,
  .skills {
    grid-template-columns: 1fr;
  }
}
