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

:root {
  --text: #ffffff;
  --text-muted: rgba(255, 255, 255, 0.82);
  --accent: #f2b33d;
  --font-display: "Playfair Display", Georgia, serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

html,
body {
  height: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background: #1d2a33 url("background.jpg") center 30% / cover no-repeat fixed;
  -webkit-font-smoothing: antialiased;
}

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: clamp(1.5rem, 5vw, 4.5rem);
}

/* Darkens the lower area so text stays readable over the bright snow */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 20, 30, 0.88) 0%, rgba(10, 20, 30, 0.4) 40%, rgba(10, 20, 30, 0) 65%);
  pointer-events: none;
}

.hero__content {
  position: relative;
  max-width: 40rem;
  text-align: center;
  animation: fade-up 1s ease-out both;
}

.hero__name {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.25rem, 6vw, 4.25rem);
  line-height: 1.1;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.35);
  display: inline-block;
  padding-bottom: 0.15em;
  cursor: default;
  /* Underline drawn as a background so it can grow from the center on hover */
  background: linear-gradient(var(--accent), var(--accent)) center bottom / 0% 3px no-repeat;
  transition: transform 0.35s ease, color 0.35s ease, background-size 0.35s ease, text-shadow 0.35s ease;
}

.hero__title:hover {
  color: var(--accent);
  transform: translateY(-4px);
  background-size: 60% 3px;
  text-shadow: 0 6px 28px rgba(0, 0, 0, 0.5);
}

.contact {
  font-style: normal;
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.3);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: baseline;
  gap: 0.5rem 1rem;
}

.contact__link {
  color: var(--text);
  text-decoration: none;
  font-size: 1.05rem;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
  word-break: break-all;
}

.contact__sep {
  color: var(--text-muted);
}

.contact__link:hover,
.contact__link:focus-visible {
  color: var(--accent);
  border-bottom-color: var(--accent);
  outline: none;
}

.social {
  position: fixed;
  right: clamp(1rem, 3vw, 2rem);
  bottom: clamp(1rem, 3vw, 2rem);
  display: flex;
  gap: 0.25rem;
  z-index: 10;
  animation: fade-in 1.4s ease-out 0.4s both;
}

.social__link {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  color: var(--text-muted);
  opacity: 0.75;
  transition: color 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
}

.social__link svg {
  width: 1.5rem;
  height: 1.5rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.social__link .social__dot {
  fill: currentColor;
  stroke: none;
}

.social__link:hover,
.social__link:focus-visible {
  color: var(--accent);
  opacity: 1;
  transform: translateY(-2px);
  outline: none;
}

@keyframes fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

  .social {
    animation: none;
  }

  .hero__title:hover,
  .social__link:hover,
  .social__link:focus-visible {
    transform: none;
  }
}

/* Keep the centered text clear of the fixed social badges on narrow screens */
@media (max-width: 640px) {
  .hero {
    padding-bottom: 5rem;
  }
}

/* Fixed backgrounds are janky / unsupported on mobile */
@media (max-width: 768px), (hover: none) {
  body {
    background-attachment: scroll;
    background-position: 43% 20%;
  }
}
