@font-face {
  font-family: "Neue Montreal";
  src: url("/assets/NeueMontreal-Regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: "Neue Montreal";
  src: url("/assets/NeueMontreal-Light.ttf") format("truetype");
  font-style: normal;
  font-weight: 300;
  font-display: swap;
}

:root {
  color-scheme: light;
  font-family: "Neue Montreal", Arial, sans-serif;
  color: #000;
  background: #fff;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  min-width: 280px;
}

a {
  color: inherit;
}

.skip-link {
  position: fixed;
  z-index: 10;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.65rem 0.8rem;
  background: #000;
  color: #fff;
  transform: translateY(-180%);
}

.skip-link:focus {
  transform: translateY(0);
}

.hero,
.contact {
  display: flex;
  align-items: center;
  padding: 2rem;
}

.hero {
  min-height: 65vh;
  animation: background-cycle 20s infinite;
}

.contact {
  min-height: 35vh;
}

.content {
  width: min(100%, 850px);
  margin: 0 auto;
}

h1,
.intro,
.linkedin {
  margin: 0;
  line-height: 1.15;
}

h1 {
  font-size: clamp(3rem, 7vw, 4.375rem);
  font-weight: 600;
  letter-spacing: 0.035em;
}

.intro {
  margin-top: 1.1rem;
  max-width: 32ch;
  font-size: clamp(1.75rem, 4vw, 2rem);
  font-weight: 300;
}

.linkedin {
  font-size: clamp(1.75rem, 4vw, 2rem);
  font-weight: 600;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.15em;
}

.linkedin:hover,
.linkedin:focus-visible,
.back:hover,
.back:focus-visible,
footer a:hover,
footer a:focus-visible {
  text-decoration-thickness: 0.14em;
}

footer {
  padding: 0 2rem 1.5rem;
  font-size: 0.875rem;
  text-align: center;
}

footer a {
  color: #3f3f46;
  text-underline-offset: 0.18em;
}

.legal-page,
.error-page {
  background: #f5eff9;
}

.legal,
.error-card {
  width: min(calc(100% - 2rem), 760px);
  margin: 0 auto;
  padding: clamp(2rem, 7vw, 5rem) 0;
}

.legal h1,
.error-card h1 {
  margin: 1.5rem 0 2rem;
  font-size: clamp(2.4rem, 7vw, 4rem);
}

.legal h2 {
  margin: 2.5rem 0 0.6rem;
  font-size: 1.35rem;
}

.legal p,
.error-card p {
  font-family: Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
}

.back {
  font-weight: 600;
  text-underline-offset: 0.18em;
}

.error-page {
  display: grid;
  min-height: 100vh;
  place-items: center;
}

.error-code {
  margin: 0;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.16em;
}

@keyframes background-cycle {
  0%, 100% { background-color: #fff; }
  25% { background-color: #f5eff9; }
  50% { background-color: #f1fce4; }
  75% { background-color: #ebf8fc; }
}

@media (max-width: 767px) {
  .hero,
  .contact {
    padding: 1rem;
  }

  .hero {
    min-height: 60vh;
  }

  .contact {
    min-height: 30vh;
  }

  h1 {
    font-size: 2.5rem;
  }

  .intro,
  .linkedin {
    font-size: 1.75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero {
    animation: none;
    background: #f5eff9;
  }
}
