:root {
  color-scheme: light;
  --ivory: #fffdf7;
  --paper: #ffffff;
  --ink: #071a35;
  --ink-soft: #52627a;
  --line: #dce2e7;
  --lime: #91c83e;
  --lime-dark: #56871e;
  --marigold: #ffb51b;
  --red: #ee2c2c;
  --telegram: #159fe7;
  --telegram-pale: #e9f7ff;
  --whatsapp: #16b85a;
  --whatsapp-pale: #ecfbf2;
  --facebook: #1877f2;
  --shadow: 0 7px 0 rgba(7, 26, 53, 0.06), 0 16px 34px rgba(7, 26, 53, 0.07);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--ivory);
  color: var(--ink);
  font-family: ui-rounded, "Avenir Next", Avenir, "Segoe UI", Helvetica, Arial, sans-serif;
  text-size-adjust: 100%;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background-color: var(--ivory);
  -webkit-font-smoothing: antialiased;
}

body::before,
body::after {
  position: fixed;
  z-index: -1;
  width: 190px;
  height: 190px;
  border-radius: 50%;
  background: #fff0bf;
  content: "";
  opacity: 0.72;
}

body::before {
  top: -108px;
  left: -96px;
}

body::after {
  right: -104px;
  bottom: -112px;
}

.page-shell {
  width: min(100% - 30px, 840px);
  margin: 0 auto;
  padding: max(22px, env(safe-area-inset-top)) 0 10px;
}

.hero {
  text-align: center;
}

.brand-logo {
  display: block;
  width: min(82vw, 410px);
  height: auto;
  margin: 0 auto -5px;
  mix-blend-mode: multiply;
}

h1 {
  max-width: 100%;
  margin: 0 auto;
  font-size: clamp(2rem, calc(7vw + 1rem), 4.65rem);
  font-weight: 900;
  letter-spacing: -0.064em;
  line-height: 0.94;
}

h1 span {
  position: relative;
  display: inline-block;
  margin-top: 0.14em;
}

h1 span::after {
  position: absolute;
  z-index: -1;
  right: 2%;
  bottom: -0.08em;
  left: 2%;
  height: 0.17em;
  border-radius: 99px;
  background: var(--marigold);
  content: "";
  transform: rotate(-1deg);
}

.hero-copy {
  max-width: 35rem;
  margin: 22px auto 26px;
  color: #33445d;
  font-size: clamp(1rem, 4vw, 1.2rem);
  letter-spacing: -0.016em;
  line-height: 1.48;
}

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

.priority-links,
.secondary-links {
  display: grid;
  gap: 12px;
}

.link-card {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  width: 100%;
  color: var(--ink);
  text-decoration: none;
  transform: translateY(0);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
  -webkit-tap-highlight-color: transparent;
}

.link-card--priority {
  min-height: 106px;
  gap: 15px;
  padding: 16px 18px 16px 15px;
  border: 2px solid;
  border-radius: 24px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.link-card--telegram {
  grid-template-areas: "icon badge arrow" "icon copy arrow";
  border-color: var(--telegram);
  background-color: #fbfeff;
}

.link-card--telegram .platform-icon {
  grid-area: icon;
}

.link-card--telegram .link-copy {
  grid-area: copy;
}

.link-card--telegram .arrow {
  grid-area: arrow;
}

.link-card--whatsapp {
  border-color: var(--whatsapp);
  background-color: #fcfffd;
}

.platform-icon,
.channel-icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: var(--paper);
}

.platform-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
}

.platform-icon svg {
  width: 42px;
  height: 42px;
}

.platform-icon--telegram {
  background: var(--telegram);
  box-shadow: inset 0 -5px 0 rgba(7, 26, 53, 0.08);
}

.platform-icon--whatsapp {
  background: var(--whatsapp);
  box-shadow: inset 0 -5px 0 rgba(7, 26, 53, 0.08);
}

.link-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.link-title {
  font-size: clamp(1.06rem, 4.2vw, 1.35rem);
  font-weight: 800;
  letter-spacing: -0.032em;
  line-height: 1.15;
}

.link-description {
  margin-top: 4px;
  color: var(--ink-soft);
  font-size: clamp(0.82rem, 3.3vw, 0.98rem);
  font-weight: 500;
  line-height: 1.25;
}

.priority-badge {
  grid-area: badge;
  align-self: end;
  justify-self: start;
  margin-bottom: 5px;
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--telegram-pale);
  color: #00689f;
  font-size: 0.59rem;
  font-weight: 900;
  letter-spacing: 0.09em;
  line-height: 1;
  text-transform: uppercase;
}

.arrow {
  width: 12px;
  height: 12px;
  margin-right: 3px;
  border-top: 3px solid currentcolor;
  border-right: 3px solid currentcolor;
  transform: rotate(45deg);
}

.section-heading {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  margin: 31px 0 15px;
}

.section-heading span {
  height: 1px;
  background: #dfe3e1;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(1.15rem, 4.6vw, 1.5rem);
  font-weight: 900;
  letter-spacing: -0.038em;
}

.link-card--secondary {
  min-height: 78px;
  gap: 14px;
  padding: 10px 19px 10px 11px;
  border: 1px solid var(--line);
  border-radius: 19px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 4px 0 rgba(7, 26, 53, 0.035), 0 10px 25px rgba(7, 26, 53, 0.045);
}

.channel-icon {
  width: 56px;
  height: 56px;
  border-radius: 17px;
  background: var(--marigold);
  box-shadow: inset 0 -4px 0 rgba(7, 26, 53, 0.08);
}

.channel-icon svg {
  width: 38px;
  height: 38px;
}

.channel-icon--home {
  background: var(--lime);
}

.channel-icon--pets {
  background: var(--marigold);
}

.channel-icon--facebook {
  border-radius: 50%;
  background: var(--facebook);
}

.link-card:hover {
  border-color: var(--ink);
  box-shadow: 0 4px 0 rgba(7, 26, 53, 0.09), 0 13px 28px rgba(7, 26, 53, 0.08);
  transform: translateY(-2px);
}

.link-card:active {
  box-shadow: 0 2px 0 rgba(7, 26, 53, 0.07);
  transform: translateY(2px);
}

.link-card:focus-visible {
  outline: 4px solid var(--ink);
  outline-offset: 4px;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 24px 20px calc(25px + env(safe-area-inset-bottom));
  color: var(--ink);
  font-size: 0.83rem;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.footer-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--lime);
}

.edge-decoration {
  position: fixed;
  z-index: -1;
  display: none;
  width: 120px;
  height: 68px;
  align-items: center;
  justify-content: center;
  border: 3px solid #f3c64f;
  border-radius: 15px;
  color: #e7b127;
  opacity: 0.38;
  transform: rotate(-17deg);
}

.edge-decoration::before {
  position: absolute;
  inset: 7px;
  border: 2px dashed currentcolor;
  border-radius: 9px;
  content: "";
}

.edge-decoration--left {
  top: 205px;
  left: -36px;
}

.edge-decoration--right {
  right: -37px;
  bottom: 175px;
  transform: rotate(17deg);
}

.ticket-mark {
  font-size: 1.8rem;
  font-weight: 900;
}

@media (max-width: 480px) {
  .page-shell {
    width: min(100% - 24px, 840px);
  }

  .brand-logo {
    width: min(88vw, 310px);
  }

  .link-card--priority {
    min-height: 96px;
    gap: 12px;
    padding: 15px 14px 15px 12px;
    border-radius: 21px;
  }

  .platform-icon {
    width: 56px;
    height: 56px;
  }

  .platform-icon svg {
    width: 37px;
    height: 37px;
  }

  .priority-badge {
    padding: 3px 6px;
    font-size: 0.52rem;
  }

  .link-card--secondary {
    min-height: 72px;
    gap: 12px;
    padding: 9px 15px 9px 9px;
  }

  .channel-icon {
    width: 52px;
    height: 52px;
  }
}

@media (min-width: 900px) {
  .page-shell {
    padding-top: 36px;
  }

  .edge-decoration {
    display: flex;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
