/* La Souris verte — link hub */

:root {
  --cream: #fdf6ef;
  --cream-dark: #f3e8dc;
  --green: #6b8e6b;
  --green-dark: #567456;
  --green-light: #e8f0e8;
  --orange: #e88d5d;
  --orange-dark: #d4784a;
  --brown: #8b6f5c;
  --text: #4a4038;
  --text-muted: #7a6f65;
  --shadow: rgba(107, 142, 107, 0.15);
  --shadow-hover: rgba(232, 141, 93, 0.25);
  --radius: 1.25rem;
  --font-body: "Nunito", system-ui, sans-serif;
  --font-display: "Caveat", cursive;
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100dvh;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.5;
  color: var(--text);
  background: var(--cream);
}

.page {
  position: relative;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.5rem 1.25rem 2rem;
  overflow-x: hidden;
}

.paper-texture {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.45;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.08'/%3E%3C/svg%3E");
}

/* Hero */

.hero {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 16rem;
  text-align: center;
  margin-bottom: 2rem;
  animation: fadeUp 0.7s ease-out both;
}

.hero__logo {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  filter: drop-shadow(0 8px 24px var(--shadow));
}

/* Links section */

.links {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 26rem;
  animation: fadeUp 0.7s ease-out 0.15s both;
}

.links__title {
  margin: 0 0 1.25rem;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  text-align: center;
  color: var(--orange);
}

.links__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.link-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.125rem;
  text-decoration: none;
  color: var(--text);
  background: #fff;
  border: 2px solid var(--green-light);
  border-radius: var(--radius);
  box-shadow: 0 4px 16px var(--shadow);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.link-card:hover,
.link-card:focus-visible {
  transform: translateY(-2px);
  border-color: var(--orange);
  box-shadow: 0 8px 28px var(--shadow-hover);
  outline: none;
}

.link-card:active {
  transform: translateY(0);
}

.link-card__icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: var(--green-light);
  color: var(--green);
  transition: background 0.2s ease, color 0.2s ease;
}

.link-card__icon svg {
  width: 1.25rem;
  height: 1.25rem;
}

.link-card--facebook .link-card__icon {
  background: #e8f0fb;
  color: #1877f2;
}

.link-card:hover .link-card__icon,
.link-card:focus-visible .link-card__icon {
  background: var(--orange);
  color: #fff;
}

.link-card__content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}

.link-card__label {
  font-weight: 700;
  font-size: 1.0625rem;
  color: var(--green-dark);
}

.link-card__hint {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.link-card__arrow {
  flex-shrink: 0;
  font-size: 1.25rem;
  color: var(--orange);
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.link-card:hover .link-card__arrow,
.link-card:focus-visible .link-card__arrow {
  opacity: 1;
  transform: translateX(0);
}

.links__footer {
  margin: 1.5rem 0 0;
  text-align: center;
  font-family: var(--font-display);
  font-size: 1.125rem;
  color: var(--text-muted);
}

/* Footer */

.site-footer {
  position: relative;
  z-index: 1;
  margin-top: auto;
  padding-top: 2.5rem;
  text-align: center;
  animation: fadeUp 0.7s ease-out 0.3s both;
}

.site-footer__tail {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--green);
  line-height: 1;
  margin-bottom: 0.25rem;
  transform: rotate(-8deg);
}

.site-footer p {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--brown);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Decorative blobs */

.page::before,
.page::after {
  content: "";
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

.page::before {
  width: 18rem;
  height: 18rem;
  top: -6rem;
  right: -6rem;
  background: radial-gradient(circle, var(--green-light) 0%, transparent 70%);
  opacity: 0.6;
}

.page::after {
  width: 14rem;
  height: 14rem;
  bottom: -4rem;
  left: -4rem;
  background: radial-gradient(circle, rgba(232, 141, 93, 0.2) 0%, transparent 70%);
  opacity: 0.7;
}

/* Animations */

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(1rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Desktop */

@media (min-width: 640px) {
  .page {
    padding: 3rem 2rem 2.5rem;
  }

  .hero {
    max-width: 18rem;
    margin-bottom: 2.5rem;
  }

  .links {
    max-width: 28rem;
  }

  .links__title {
    font-size: 2.25rem;
  }

  .link-card {
    padding: 1.125rem 1.375rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
