:root {
  color-scheme: light;
  --page: #f7faf6;
  --surface: #fcfdfb;
  --surface-strong: #edf3ee;
  --ink: #162119;
  --ink-soft: #435348;
  --forest: #234f33;
  --forest-hover: #173923;
  --line: #b8c6bb;
  --paper-shadow: 0 18px 48px rgba(27, 55, 36, 0.12);
  --card-shadow: 0 8px 24px rgba(27, 55, 36, 0.08);
  --card-radius: 22px;
  --button-radius: 999px;
  --ease: cubic-bezier(0.23, 1, 0.32, 1);
}

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

html {
  min-width: 320px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  min-width: 320px;
  min-height: 100dvh;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 18% 8%, rgba(106, 139, 112, 0.15), transparent 32rem),
    #e8eee8;
  color: var(--ink);
  font-family: "Outfit", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: #b9d5c0;
  color: var(--ink);
}

img {
  display: block;
  max-width: 100%;
  height: auto;
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
}

picture {
  display: block;
}

a {
  color: inherit;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 20;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--ink);
  color: #ffffff;
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-160%);
}

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

.link-page {
  width: 100%;
  max-width: 560px;
  min-height: 100dvh;
  margin: 0 auto;
  overflow: hidden;
  background: var(--page);
}

.link-hero {
  position: relative;
  isolation: isolate;
  width: 100%;
  aspect-ratio: 16 / 11;
  min-height: 330px;
  overflow: hidden;
  background: #9ab49d;
}

.link-hero picture,
.link-hero img {
  width: 100%;
  height: 100%;
}

.link-hero img {
  object-fit: cover;
  object-position: center;
}

.link-hero::after {
  position: absolute;
  right: -2px;
  bottom: -1px;
  left: -2px;
  z-index: 4;
  height: 18px;
  background: var(--page);
  clip-path: polygon(
    0 48%,
    7% 68%,
    15% 44%,
    23% 62%,
    31% 42%,
    39% 67%,
    48% 43%,
    57% 63%,
    67% 41%,
    77% 65%,
    87% 45%,
    94% 64%,
    100% 48%,
    100% 100%,
    0 100%
  );
  content: "";
}

.hero-shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(12, 30, 18, 0.38), transparent 42%),
    linear-gradient(90deg, transparent 46%, rgba(12, 30, 18, 0.14));
  pointer-events: none;
}

.hero-greeting {
  position: absolute;
  top: max(28px, env(safe-area-inset-top));
  right: 22px;
  z-index: 2;
  max-width: 52%;
  text-align: right;
  transform: rotate(-2deg);
}

.hero-greeting h1 {
  margin: 0;
  color: #ffffff;
  font-family: "Segoe Print", "Bradley Hand", cursive;
  font-size: clamp(1.75rem, 7.8vw, 2.65rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.035em;
  text-wrap: balance;
  text-shadow: 0 2px 14px rgba(12, 30, 18, 0.7);
}

.hero-greeting h1 span {
  display: block;
  white-space: nowrap;
}

.link-content {
  padding: 28px 18px 54px;
}

.section-intro {
  display: grid;
  place-items: center;
  gap: 9px;
  padding: 4px 0 24px;
  text-align: center;
}

.section-intro h2 {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.section-intro span {
  width: 38px;
  height: 2px;
  background: var(--forest);
}

.link-list {
  display: grid;
  gap: 14px;
}

.link-card {
  display: grid;
  grid-template-columns: minmax(116px, 41%) 1fr;
  min-height: 194px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--card-radius);
  background: var(--surface);
  box-shadow: var(--card-shadow);
  transition:
    transform 180ms var(--ease),
    box-shadow 180ms var(--ease),
    border-color 180ms var(--ease);
}

.link-card-media {
  min-width: 0;
  background: var(--surface-strong);
}

.link-card-media picture,
.link-card-media img {
  width: 100%;
  height: 100%;
}

.link-card-media img {
  object-fit: cover;
  object-position: center;
}

.link-card:nth-child(2) .link-card-media img {
  object-position: 48% 42%;
}

.link-card:nth-child(3) .link-card-media img {
  object-position: 50% 52%;
}

.link-card:nth-child(4) .link-card-media img {
  object-position: 52% 44%;
}

.link-card-body {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  padding: 18px 16px;
}

.link-card h3,
.partner-card h3 {
  margin: 0;
  font-size: clamp(1.1rem, 5vw, 1.42rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.025em;
  text-transform: uppercase;
}

.link-card p,
.partner-body > p:not(.partner-label) {
  margin: 8px 0 16px;
  color: var(--ink-soft);
  font-size: 0.9rem;
  line-height: 1.38;
}

.link-button {
  display: inline-flex;
  width: 100%;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding: 12px 17px 12px 20px;
  border: 2px solid var(--forest);
  border-radius: var(--button-radius);
  background: var(--forest);
  color: #ffffff;
  font-size: 0.86rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.04em;
  text-decoration: none;
  text-transform: uppercase;
  transition:
    background-color 160ms var(--ease),
    border-color 160ms var(--ease),
    transform 160ms var(--ease);
}

.link-arrow {
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 0;
  transition: transform 160ms var(--ease);
}

.link-button:focus-visible,
.link-footer a:focus-visible {
  outline: 3px solid #e7a93c;
  outline-offset: 3px;
}

.link-button:active {
  transform: scale(0.98);
}

.partner-card {
  overflow: hidden;
  margin-top: 8px;
  border: 1px solid #8ca393;
  border-radius: var(--card-radius);
  background: #e7efe9;
  box-shadow: 0 16px 36px rgba(28, 64, 40, 0.16);
}

.partner-media {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #b8cbbd;
}

.partner-media picture,
.partner-media img {
  width: 100%;
  height: 100%;
}

.partner-media img {
  object-fit: cover;
  object-position: center;
}

.partner-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 22px;
}

.partner-logo {
  width: 126px;
  height: auto;
  margin: 0 0 16px;
  object-fit: contain;
  object-position: left center;
}

.partner-label {
  margin: 0 0 6px;
  color: var(--forest);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.partner-card h3 {
  font-size: clamp(1.45rem, 6vw, 1.9rem);
}

.partner-button {
  max-width: 100%;
  background: var(--forest);
}

.link-footer {
  position: relative;
  isolation: isolate;
  min-height: 250px;
  overflow: hidden;
  padding: 45px 22px max(34px, env(safe-area-inset-bottom));
  text-align: center;
}

.link-footer::before,
.link-footer::after {
  position: absolute;
  right: -8%;
  bottom: 0;
  left: -8%;
  z-index: -2;
  content: "";
}

.link-footer::before {
  height: 126px;
  background: #d4dfd5;
  clip-path: polygon(0 48%, 18% 34%, 34% 58%, 51% 28%, 72% 52%, 88% 32%, 100% 50%, 100% 100%, 0 100%);
}

.link-footer::after {
  z-index: -1;
  height: 84px;
  background: #b5c6b8;
  clip-path: polygon(0 52%, 17% 22%, 36% 55%, 57% 34%, 74% 64%, 90% 28%, 100% 48%, 100% 100%, 0 100%);
}

.link-footer > p {
  max-width: 19ch;
  margin: 0 auto 34px;
  color: var(--ink);
  font-family: "Segoe Print", "Bradley Hand", cursive;
  font-size: clamp(1.2rem, 6vw, 1.65rem);
  font-weight: 700;
  line-height: 1.45;
  transform: rotate(-1deg);
}

.link-footer nav {
  display: flex;
  justify-content: center;
  gap: 22px;
}

.link-footer a {
  color: var(--forest);
  font-size: 0.82rem;
  font-weight: 700;
  text-underline-offset: 4px;
}

@media (hover: hover) and (pointer: fine) {
  .link-card:hover {
    border-color: #839989;
    box-shadow: 0 13px 30px rgba(27, 55, 36, 0.13);
    transform: translateY(-2px);
  }

  .link-button:hover {
    border-color: var(--forest-hover);
    background: var(--forest-hover);
  }

  .link-button:hover .link-arrow {
    transform: translateX(3px);
  }
}

@media (max-width: 370px) {
  .link-content {
    padding-right: 12px;
    padding-left: 12px;
  }

  .link-card {
    grid-template-columns: 104px 1fr;
  }

  .link-card-body {
    padding: 14px 12px;
  }

  .link-card h3 {
    font-size: 1.02rem;
  }

  .link-card p {
    margin-top: 6px;
    margin-bottom: 12px;
    font-size: 0.8rem;
  }

  .link-button {
    padding-right: 13px;
    padding-left: 15px;
    font-size: 0.76rem;
  }
}

/* Compact social links and the secondary website action */
.section-intro {
  padding-bottom: 18px;
}

.social-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.social-icon-button {
  display: inline-flex;
  min-width: 0;
  min-height: 56px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--button-radius);
  background: var(--surface);
  box-shadow: 0 6px 18px rgba(27, 55, 36, 0.07);
  color: var(--forest);
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-decoration: none;
  white-space: nowrap;
  transition:
    transform 160ms var(--ease),
    box-shadow 160ms var(--ease),
    border-color 160ms var(--ease),
    background-color 160ms var(--ease);
}

.social-icon-button svg {
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
}

.website-button {
  display: inline-flex;
  width: 100%;
  min-height: 56px;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px 14px 20px;
  border: 1px solid var(--line);
  border-radius: var(--button-radius);
  background: var(--surface);
  box-shadow: var(--card-shadow);
  color: var(--forest);
  font-size: clamp(0.7rem, 3vw, 0.82rem);
  font-weight: 800;
  letter-spacing: 0.01em;
  text-decoration: none;
  text-transform: none;
  white-space: nowrap;
  transition:
    transform 160ms var(--ease),
    box-shadow 160ms var(--ease),
    border-color 160ms var(--ease),
    background-color 160ms var(--ease);
}

.social-icon-button:focus-visible,
.website-button:focus-visible {
  outline: 3px solid #e7a93c;
  outline-offset: 3px;
}

.social-icon-button:active,
.website-button:active {
  transform: scale(0.98);
}

@media (hover: hover) and (pointer: fine) {
  .social-icon-button:hover,
  .website-button:hover {
    border-color: #839989;
    background: var(--surface-strong);
    box-shadow: 0 10px 24px rgba(27, 55, 36, 0.12);
    transform: translateY(-2px);
  }

  .website-button:hover .link-arrow {
    transform: translateX(3px);
  }
}

@media (max-width: 370px) {
  .social-actions {
    gap: 8px;
  }

  .social-icon-button {
    gap: 8px;
    padding-right: 10px;
    padding-left: 10px;
    font-size: 0.78rem;
  }
}
@media (min-width: 700px) {
  body {
    padding: 28px 0;
  }

  .link-page {
    min-height: calc(100dvh - 56px);
    border-radius: 28px;
    box-shadow: var(--paper-shadow);
  }

  .link-hero {
    border-radius: 28px 28px 0 0;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
