:root {
  --ivory: #F7F3EB;
  --ivory-2: #EFE9DD;
  --paper: #FBF9F4;
  --forest: #153D2C;
  --forest-deep: #0E2A1F;
  --ink: #14231C;
  --ink-soft: #3E4A43;
  --muted: #6B736D;
  --gold: #A8843F;
  --gold-soft: #C9AE75;
  --hair: rgba(20, 35, 28, 0.14);
  --hair-strong: rgba(20, 35, 28, 0.28);
  --topbar-h: 68px;
  --wrap: 720px;
  --gutter: 22px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --font-serif: 'Cormorant Garamond', 'Cormorant', Georgia, 'Times New Roman', serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--topbar-h) + 16px);
}

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

html, body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 1px solid var(--gold);
  outline-offset: 4px;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  background: var(--forest);
  color: var(--ivory);
  padding: 10px 14px;
  text-decoration: none;
  font-size: 13px;
}

.skip-link:focus {
  top: 12px;
}

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.anchor-top {
  position: absolute;
  top: 0;
}

/* ---------- Backdrop: warm ivory light + soft botanical shadows ---------- */
body {
  background:
    radial-gradient(120% 70% at 50% 0%, #FDFBF6 0%, rgba(253, 251, 246, 0) 60%),
    radial-gradient(90% 60% at 50% 100%, #EDE6D8 0%, rgba(237, 230, 216, 0) 70%),
    var(--ivory);
  background-attachment: fixed;
}

.backdrop {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

/* faint paper grain */
.backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.35;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.45 0 0 0 0 0.40 0 0 0 0 0.30 0 0 0 0.10 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.leaf {
  position: absolute;
  color: #34472F;
  fill: currentColor;
  opacity: 0.13;
  width: clamp(260px, 38vw, 560px);
  height: auto;
  aspect-ratio: 520 / 640;
}

.leaf--l1 {
  left: -14%;
  top: 22%;
  transform: rotate(-28deg);
}

.leaf--l2 {
  left: -18%;
  bottom: -14%;
  transform: rotate(-70deg) scale(0.9);
  opacity: 0.08;
}

.leaf--r1 {
  right: -16%;
  top: 48%;
  transform: scaleX(-1) rotate(-20deg);
}

.leaf--r2 {
  right: -12%;
  top: -10%;
  transform: scaleX(-1) rotate(-95deg) scale(0.75);
  opacity: 0.06;
}

.topbar,
main,
.footer {
  position: relative;
  z-index: 1;
}

.topbar {
  position: sticky;
  z-index: 50;
}

/* Word lists (pillars, tags, footer line): wrap cleanly as whole items */
.footer__line {
  display: flex;
  flex-wrap: wrap;
  column-gap: 1.6em;
  row-gap: 6px;
}

.footer__line span {
  white-space: nowrap;
}

/* ---------- Header ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 247, 240, 0.72);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid var(--hair);
  padding-top: env(safe-area-inset-top);
}

.topbar__inner {
  max-width: 1120px;
  height: var(--topbar-h);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.brand__logo {
  display: block;
  width: 44px;
  height: 44px;
  border-radius: 50%;
}

.brand__name {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 17px;
  text-transform: uppercase;
  letter-spacing: 0.32em;
  color: var(--forest-deep);
}

.topbar__cta {
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  text-decoration: none;
  color: var(--forest-deep);
  padding: 10px 0 8px;
  border-bottom: 1px solid var(--gold);
}

/* ---------- Intro (kept short — the links are the point) ---------- */
.intro {
  padding: 28px 0 8px;
  text-align: center;
}

.intro__title {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 34px;
  line-height: 1.1;
  color: var(--forest-deep);
  margin: 0 0 6px;
}

.intro__text {
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 30em;
  margin: 0 auto;
}

/* ---------- Groups ---------- */
.group {
  padding: 22px 0 6px;
}

.group__label {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.26em;
  color: var(--ink-soft);
  margin: 0 0 12px;
  text-align: center;
}

.group__label--rule {
  display: flex;
  align-items: center;
  gap: 16px;
}

.group__label--rule::before,
.group__label--rule::after {
  content: "";
  flex: 1 1 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(168, 132, 63, 0), rgba(168, 132, 63, 0.6));
}

.group__label--rule::after {
  background: linear-gradient(90deg, rgba(168, 132, 63, 0.6), rgba(168, 132, 63, 0));
}

.stack {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ---------- Link pills ---------- */
.pill {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(252, 249, 242, 0.62));
  border: 1px solid rgba(168, 132, 63, 0.55);
  border-radius: 14px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.8) inset,
    0 6px 18px rgba(40, 50, 35, 0.07);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  overflow: hidden;
  transition: border-color 250ms var(--ease), box-shadow 250ms var(--ease), transform 250ms var(--ease);
}

.pill__link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  text-decoration: none;
  color: inherit;
}

.pill__logo {
  flex: 0 0 auto;
  display: block;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--paper);
  box-shadow: 0 0 0 1px rgba(168, 132, 63, 0.35);
}

.pill__logo--mark {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--forest);
  color: var(--gold-soft);
}

.pill__rule {
  flex: 0 0 auto;
  align-self: stretch;
  width: 1px;
  margin: 4px 0;
  background: rgba(168, 132, 63, 0.45);
}

.pill__body {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.pill__title {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 25px;
  line-height: 1.1;
  color: var(--forest-deep);
}

.pill__kicker {
  font-size: 10.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--gold);
  margin-top: 3px;
}

.pill__desc {
  font-size: 14px;
  line-height: 1.45;
  color: var(--ink);
  margin-top: 6px;
}

.pill__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 6px;
  margin-top: 8px;
}

.pill__tags span {
  font-size: 11px;
  font-weight: 500;
  color: var(--forest);
  border: 1px solid rgba(21, 61, 44, 0.18);
  border-radius: 999px;
  padding: 2px 9px;
  white-space: nowrap;
}

.pill__arrow {
  flex: 0 0 auto;
  color: var(--gold);
  transition: transform 300ms var(--ease);
}

@media (hover: hover) {
  .pill:hover {
    border-color: var(--gold);
    box-shadow:
      0 1px 0 rgba(255, 255, 255, 0.8) inset,
      0 10px 26px rgba(40, 50, 35, 0.11);
    transform: translateY(-1px);
  }
  .pill__link:hover .pill__arrow {
    transform: translateX(4px);
  }
}

/* Telegram strip inside the bottom of a pill */
.pill__tg {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  background: var(--forest);
  color: var(--ivory);
  text-decoration: none;
  border-top: 1px solid rgba(168, 132, 63, 0.55);
}

.pill__tg-icon {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #2AABEE;
  color: #fff;
}

.pill__tg-text {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  font-size: 12.5px;
  line-height: 1.35;
  color: rgba(247, 243, 235, 0.78);
}

.pill__tg-text strong {
  font-size: 14px;
  font-weight: 600;
  color: var(--ivory);
}

.pill__tg-cta {
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--forest-deep);
  background: var(--gold-soft);
  border-radius: 999px;
  padding: 6px 14px;
}

.pill__tg--soon {
  background: rgba(21, 61, 44, 0.06);
  color: var(--muted);
  border-top-color: rgba(168, 132, 63, 0.3);
}

.pill__tg--soon .pill__tg-icon {
  background: rgba(21, 61, 44, 0.18);
}

.pill__tg--soon .pill__tg-text,
.pill__tg--soon .pill__tg-text strong {
  color: var(--ink-soft);
}

.pill__tg--soon .pill__tg-cta {
  background: transparent;
  color: var(--gold);
  border: 1px solid rgba(168, 132, 63, 0.6);
}

/* Compact pills (Other Sites) */
.pill--compact .pill__link {
  padding: 12px 16px 12px 18px;
}

.pill--compact .pill__title {
  font-size: 21px;
}

.pill--compact .pill__desc {
  margin-top: 3px;
  font-size: 13.5px;
}

.pill--soon {
  border-style: dashed;
  background: rgba(255, 255, 255, 0.35);
  box-shadow: none;
}

.pill--soon .pill__title {
  color: var(--muted);
}

.pill--soon .pill__kicker {
  color: var(--muted);
}

/* ---------- Social circles ---------- */
.group--social {
  padding-top: 28px;
}

.socials {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  gap: 8px 26px;
}

.social {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.social__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #1E5039, var(--forest-deep) 70%);
  color: var(--ivory);
  box-shadow: 0 0 0 1.5px var(--gold-soft), 0 4px 12px rgba(14, 42, 31, 0.25);
  transition: transform 250ms var(--ease);
}

.social__label {
  font-size: 10.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--ink-soft);
}

@media (hover: hover) {
  .social:hover .social__icon {
    transform: translateY(-2px);
  }
}

/* ---------- Footer ---------- */
.footer {
  text-align: center;
  padding: 30px 0 calc(32px + env(safe-area-inset-bottom));
}

.footer__rule {
  display: block;
  width: 72px;
  height: 1px;
  margin: 0 auto 18px;
  background: var(--gold);
}

.footer__line {
  justify-content: center;
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  color: var(--ink-soft);
  margin: 0 0 16px;
}

.footer__note {
  font-size: 11.5px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 40em;
  margin: 0 auto 8px;
}

.footer__copy {
  font-size: 11px;
  color: var(--muted);
  margin: 0;
}

/* ---------- Larger screens ---------- */
@media (min-width: 720px) {
  :root {
    --topbar-h: 76px;
    --gutter: 32px;
    --wrap: 760px;
  }
  .brand__logo {
    width: 52px;
    height: 52px;
  }
  .brand__name {
    font-size: 19px;
  }
  .intro {
    padding: 36px 0 10px;
  }
  .intro__title {
    font-size: 40px;
  }
  .intro__text {
    font-size: 16px;
  }
  .group {
    padding-top: 26px;
  }
  .stack {
    gap: 14px;
  }
  .pill__link {
    gap: 22px;
    padding: 18px 26px;
  }
  .pill__logo {
    width: 56px;
    height: 56px;
  }
  .pill__title {
    font-size: 30px;
  }
  .pill__desc {
    font-size: 15px;
  }
  .pill__tg {
    padding: 10px 26px;
  }
  .pill--compact .pill__link {
    padding: 14px 26px;
  }
  .pill--compact .pill__title {
    font-size: 24px;
  }
  .socials {
    gap: 8px 36px;
  }
  .social__icon {
    width: 58px;
    height: 58px;
  }
}

/* ---------- Phones: backdrop tuning ---------- */
@media (max-width: 719px) {
  .leaf {
    width: 300px;
    opacity: 0.11;
  }
  .leaf--l1 {
    left: -140px;
    top: 28%;
  }
  .leaf--r1 {
    right: -150px;
    top: 56%;
  }
  .leaf--l2,
  .leaf--r2 {
    opacity: 0.06;
  }
}

@media (max-width: 360px) {
  .brand__name {
    letter-spacing: 0.24em;
    font-size: 15px;
  }
  .pill__title {
    font-size: 22px;
  }
  .socials {
    gap: 8px 16px;
  }
}
