:root {
  --powder-blush: #ffbdab;
  --burnt-peach: #db7556;
  --papaya-whip: #fff1db;
  --harvest-orange: #f27c27;
  --cream: #ffffbf;
  --shadow-grey: #232020;
  --color-focus: #1d4ed8;

  --radius-card: 1.5rem;
  --radius-pill: 999px;
  --radius-panel: 1.25rem;

  --shadow-soft: 0 8px 24px rgba(35, 35, 43, 0.12);
  --border-strong: 2px solid rgba(35, 32, 32, 0.18);

  --space-1: 0.5rem;
  --space-2: 0.75rem;
  --space-3: 1rem;
  --space-4: 1.25rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;

  --content-width: 42rem;
}

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

* {
  margin: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  background-color: var(--powder-blush);
  background-image: url("../images/layaBG.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: var(--shadow-grey);
}

img,
picture,
svg,
canvas {
  display: block;
  max-width: 100%;
}

button,
input,
textarea,
select {
  font: inherit;
}

ul[role="list"],
ol[role="list"] {
  list-style: none;
  padding: 0;
}

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

/* Base layout */
.site-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
}

.skip-link:focus {
  left: var(--space-3);
  top: var(--space-3);
  z-index: 999;
  background: #ffffff;
  color: var(--shadow-grey);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-pill);
  outline: 3px solid var(--color-focus);
}

.home-main,
.request-main {
  width: min(100%, var(--content-width));
  margin-inline: auto;
  padding: var(--space-6) var(--space-4);
  flex: 1;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

:focus-visible {
  outline: 3px solid var(--color-focus);
  outline-offset: 4px;
}

/* Fonts */
@font-face {
  font-family: "Moldie";
  src: url("../fonts/Moldie.otf") format("opentype");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "Fredoka";
  src: url("../fonts/Fredoka-Regular.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "Kamryn";
  src: url("../fonts/Kamryn.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}

h1 {
  font-family: "Moldie";
  letter-spacing: 2px;
}

h2,
h3 {
  font-family: "Kamryn";
  letter-spacing: 1px;
}

p {
  font-family: "Fredoka";
}

.about-box-wrap {
  width: min(100%, 19rem);
  min-height: 13rem;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.35rem;
  background: #FFFFBF;
  border: 3px solid var(--shadow-grey);
  border-radius: 0.9rem;
  box-shadow: 0.6rem 0.6rem 0 var(--shadow-grey);
}

.about-box-content {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-text {
  max-width: 11rem;
  margin: 0;
  text-align: center;
  font-size: 0.95rem;
  line-height: 1.45;
}

/* Header / navigation */

.site-header {
  background: #DB7556;
  padding: var(--space-4);
}

.top-nav {
  width: min(100%, var(--content-width));
  margin-inline: auto;
  display: flex;
  justify-content: center;
  align-items: center;
}

.nav-home-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 2.75rem;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-pill);
  background: var(--papaya-whip);
  color: var(--shadow-grey);
  border: 2px solid var(--shadow-grey);
  box-shadow: 0.25rem 0.25rem 0 rgba(35, 32, 32, 0.2);
  font-weight: 700;
  letter-spacing: 0.01em;
  transition:
    background-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease,
    filter 0.2s ease;
  margin: 1rem;
}

.nav-home-link:hover {
  background: #fff8ec;
  box-shadow:
    0.25rem 0.25rem 0 rgba(35, 32, 32, 0.2),
    0 0 0.8rem rgba(255, 241, 219, 0.85);
}

.nav-home-link:active {
  transform: translateY(1px);
}

.nav-home-link[aria-current="page"] {
  background: #fff8ec;
  box-shadow:
    0.25rem 0.25rem 0 rgba(35, 32, 32, 0.2),
    0 0 0 3px rgba(29, 78, 216, 0.2);
}

.nav-home-link:focus-visible {
  outline: 3px solid var(--color-focus);
  outline-offset: 4px;
}

.nav-home-icon {
  width: 5rem;
  height: 5rem;
  object-fit: cover;
  border-radius: 50%;
  transition:
    filter 0.2s ease,
    transform 0.2s ease;
}

.nav-home-link:hover .nav-home-icon {
  filter: brightness(1.08);
  transform: scale(1.04);
}

.nav-home-text {
  font-family: "Moldie";
  font-size: 3rem;
  line-height: 1;
  letter-spacing: 0.3rem;
  color: var(--shadow-grey);
}

/* Home page sections */

.intro-home-title {
  letter-spacing: 5px;
  margin: 1rem;
  padding: 1rem;
  text-align: center;
}

.home-shell {
  background: transparent;
}

.home-intro {
  display: grid;
  justify-items: center;
  margin-bottom: var(--space-4);
}

.home-intro-image {
  width: min(100%, 20rem);
  height: auto;
}

.link-hub {
  background: rgba(255, 241, 219, 0.35);
  border: var(--border-strong);
  border-radius: var(--radius-panel);
  padding: var(--space-5);
}

.link-card-list {
  display: grid;
  gap: var(--space-5);
}

.link-card-item {
  opacity: 0;
  transform: translateY(1rem);
  animation: card-rise 0.55s ease-out forwards;
}

.link-card-item--about {
  animation-delay: 0.05s;
}

.link-card-item--rrlv {
  animation-delay: 0.15s;
}

.link-card-item--intermix {
  animation-delay: 0.25s;
}

.link-card-item--newsletter {
  animation-delay: 0.25s;
}

.link-card-item--support {
  animation-delay: 0.35s;
}

.link-card-item--resources {
  animation-delay: 0.45s;
}

.link-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 5rem;
  width: 100%;
  padding: var(--space-4);
  border-radius: var(--radius-card);
  background: var(--cream);
  color: var(--shadow-grey);
  border: 2px solid var(--shadow-grey);
  box-shadow: 0.75rem 0.75rem 0 #000000;
  text-align: center;
  gap: 0.25rem;
  transition:
    background-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease,
    border-color 0.2s ease;
}

.link-card:hover,
.link-card:focus-visible {
  background: #fff8d6;
  box-shadow: 0.45rem 0.45rem 0 #000000;
  transform: translate(4px, 4px);
  border-color: rgba(35, 32, 32, 0.8);
}

.link-card-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--shadow-grey);
  font-family: "Kamryn";
  letter-spacing: 2px;
}

.link-card-subtitle {
  font-size: 0.9375rem;
  line-height: 1.35;
  color: var(--shadow-grey);
  font-family: "Fredoka";
}

/* Highlight text */
a:hover,
a:focus-visible {
  color: #56291b;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.14em;
}

/* Request panel */
.request-panel {
  background: var(--papaya-whip);
  border: var(--border-strong);
  border-radius: var(--radius-panel);
  padding: var(--space-5);
  display: grid;
  gap: var(--space-3);
}

.request-panel h1 {
  font-size: 1.75rem;
  line-height: 1.2;
  text-align: center;
}

.request-intro {
  text-align: center;
}

.typeform-shell {
  display: grid;
  gap: var(--space-2);
}

.typeform-shell > div[data-tf-live] {
  width: 100%;
  min-height: 36rem;
}

@media (max-width: 47.99rem) {
  .typeform-shell > div[data-tf-live] {
    min-height: 32rem;
  }
}

/* Footer */
.site-footer {
  background: var(--burnt-peach);
  color: var(--papaya-whip);
  padding: var(--space-4);
}

.footer-row {
  width: min(100%, var(--content-width));
  margin-inline: auto;
}

.footer-row-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-3);
  flex-wrap: wrap;
}

.footer-row-bottom {
  margin-top: var(--space-4);
  display: grid;
  gap: var(--space-2);
}

.back-to-top,
.professional-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-pill);
  background: var(--papaya-whip);
  color: var(--shadow-grey);
  border: 2px solid var(--shadow-grey);
  font-family: "Moldie";
  letter-spacing: 3px;
  transition:
    background-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease,
    border-color 0.2s ease;
}

.back-to-top:hover,
.back-to-top:focus-visible,
.professional-link:hover,
.professional-link:focus-visible {
  background: #fff8ec;
  box-shadow: 0.25rem 0.25rem 0 rgba(35, 32, 32, 0.2);
  transform: translate(2px, 2px);
  border-color: rgba(35, 32, 32, 0.8);
}

.back-to-top-icon {
  width: 2rem;
  height: 2rem;
  object-fit: contain;
}

.social-links {
  display: flex;
  gap: var(--space-2);
  align-items: center;
  flex-wrap: wrap;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.75rem;
  min-height: 2.75rem;
  border-radius: 50%;
  background: var(--papaya-whip);
  border: 2px solid var(--shadow-grey);
  transition:
    background-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease,
    border-color 0.2s ease;
}

.social-links a:hover,
.social-links a:focus-visible {
  background: #fff8ec;
  box-shadow: 0.2rem 0.2rem 0 rgba(35, 32, 32, 0.2);
  transform: translate(2px, 2px);
  border-color: rgba(35, 32, 32, 0.8);
}

.social-icon-svg {
  width: 1.25rem;
  height: 1.25rem;
  object-fit: contain;
}

.professional-text {
  font-weight: 700;
  letter-spacing: 2px;
}

/* Animation */
@keyframes card-rise {
  from {
    opacity: 0;
    transform: translateY(1rem);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive */
@media (min-width: 48rem) {
  .link-card {
    min-height: 5.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .link-card-item {
    opacity: 1;
    transform: none;
    animation: none;
  }

  .nav-home-link,
  .nav-home-icon,
  .link-card,
  .back-to-top,
  .professional-link,
  .social-links a {
    transition: none;
  }
}