:root {
  --primary: #003764;
  --secondary: #ff9979;
  --accent: #ff4d00;
  --content: #ffffff;
  --muted: #abbccd;
  --background: #ebe0db;
  --radius: 3rem;
  --link-active-background: #f07f5c;
}

@font-face {
  font-family: "Museo Sans Rounded";
  src: url("assets/fonts/museo-sans-rounded/MuseoSansRounded500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Museo Sans Rounded";
  src: url("assets/fonts/museo-sans-rounded/MuseoSansRounded700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Museo Sans Rounded";
  src: url("assets/fonts/museo-sans-rounded/MuseoSansRounded900.woff2") format("woff2");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Caveat Brush";
  src: url("assets/fonts/CaveatBrush.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

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

html {
  font-size: 16px;
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  min-height: 100dvh;
  margin: 0;
  display: flex;
  justify-content: center;
  background-color: var(--background);
  font-family: "Museo Sans Rounded", system-ui, sans-serif;
  color: var(--primary);
}

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

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

p {
  margin: 0;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

nav {
  display: block;
}

.page {
  width: 100%;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.content {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  max-width: 400px;
  padding: 3rem 1.25rem;
}

.profile {
  text-align: center;
}

.brand {
  width: clamp(10rem, 50%, 15rem);
  margin: 0 auto;
}

.tagline {
  margin-top: 0.75rem;
  font-weight: 800;
  font-size: clamp(0.8rem, 3.2vw, 0.95rem);
}

.tagline > :first-child {
  color: var(--accent);
}

.tagline > :last-child {
  color: var(--primary);
}

.description {
  margin: 0.5rem 0 1rem 0;
  color: var(--primary);
  font-weight: 900;
  font-size: clamp(0.95rem, 4vw, 1.15rem);
  line-height: 1.25;
}

.links {
  display: grid;
  gap: 0.7rem;
}

.link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius);
  background: var(--primary);
  color: var(--content);
  --icon-color: var(--content);
  font-weight: 600;
  transition:
    transform 0.15s ease,
    background-color 0.15s ease,
    color 0.15s ease,
    box-shadow 0.15s ease;
  will-change: transform;
}

.link:hover {
  transform: translateY(-2px);
  background: var(--secondary);
  color: var(--primary);
  --icon-color: var(--primary);
  box-shadow: 0 3px 0 rgba(0, 55, 100, 0.15);
}

.link:active {
  transform: translateY(0);
  background: var(--link-active-background);
  box-shadow: none;
}

.link:active .link-icon,
.link:active .link-label {
  transform: translateY(1px);
}

.link:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.link-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 1.1rem;
  height: 1.1rem;
  transition: transform 0.1s ease;
}

.link-icon::before {
  content: "";
  width: 1rem;
  height: 1rem;
  background-color: var(--icon-color);
  -webkit-mask: var(--icon) center / contain no-repeat;
  mask: var(--icon) center / contain no-repeat;
}

.link-label {
  margin-left: 0.4rem;
  font-size: 1rem;
  font-weight: 600;
  transition: transform 0.1s ease;
}

.icon-book-open {
  --icon: url("assets/icons/book-open.svg");
}

.icon-message-circle {
  --icon: url("assets/icons/message-circle.svg");
}

.icon-instagram {
  --icon: url("assets/icons/instagram.svg");
}

.icon-map-pin {
  --icon: url("assets/icons/map-pin.svg");
}

.icon-users {
  --icon: url("assets/icons/users.svg");
}

.icon-mail {
  --icon: url("assets/icons/mail.svg");
}

.hashtag {
  margin-top: 1rem;
  color: var(--accent);
  font-weight: 500;
  font-size: 2rem;
  font-family: "Caveat Brush", cursive;
  text-align: center;
}

footer {
  --wave-period: 20.99px;
  --wave-radius: 10.9px;
  --wave-height: 10.9px;
  --wave-softness: 0.5px;
  position: relative;
  flex: none;
  width: 100%;
  height: clamp(4rem, 6vw, 3rem);
  margin-top: auto;
  background-color: var(--primary);
  background-image: radial-gradient(
    circle at 50% 100%,
    var(--primary) 0 calc(var(--wave-radius) - var(--wave-softness)),
    var(--background) calc(var(--wave-radius) + var(--wave-softness))
  );
  background-size: var(--wave-period) var(--wave-height);
  background-repeat: repeat-x;
  background-position: 0 0;
  animation: marquee 42s linear infinite;
}

@keyframes marquee {
  from {
    background-position: 0 0;
  }
  to {
    background-position: calc(var(--wave-period) * -80) 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  footer,
  .fade-in-up,
  .fade-in-right,
  .fade-in {
    animation: none;
  }

  .fade-in-up-to-tilt {
    animation: none;
    opacity: 1;
    transform: rotate(-5deg);
  }
}

.footer-text {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  padding-top: 0.5rem;
  color: var(--content);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06rem;
  line-height: 1.3;
  text-align: center;
}

.footer-text > :first-child {
  color: var(--muted);
}

.footer-text > :last-child {
  font-size: 0.9em;
  font-weight: 500;
  letter-spacing: 0.08rem;
}

.footer-text a {
  color: var(--content);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.15em;
  transition: opacity 0.15s ease;
}

.footer-text a:hover {
  opacity: 0.75;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
  }
}

@keyframes fadeInUpToTilt {
  from {
    opacity: 0;
    transform: translateY(14px) rotate(1deg);
  }
  to {
    opacity: 1;
    transform: translateY(0) rotate(-5deg);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(-14px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes showToTop {
  from {
    transform: translateY(10);
  }
  to {
    transform: translateY(30);
  }
}

.fade-in-up {
  animation: fadeInUp 0.8s cubic-bezier(0.33, 1, 0.68, 1) backwards;
}

.fade-in-up-to-tilt {
  animation: fadeInUpToTilt 0.8s cubic-bezier(0.33, 1, 0.68, 1) both;
}

.fade-in-right {
  animation: fadeInRight 0.8s cubic-bezier(0.33, 1, 0.68, 1) backwards;
}

.fade-in {
  animation: fadeIn 0.6s cubic-bezier(0.33, 1, 0.68, 1) backwards;
}
