html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #f1eadf;
  color: #172132;
}

.public-shell {
  position: relative;
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  overflow: clip;
  color: #172132;
}

.public-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.7;
  background-image:
    linear-gradient(rgb(255 255 255 / 0.28) 1px, transparent 1px),
    linear-gradient(90deg, rgb(255 255 255 / 0.18) 1px, transparent 1px);
  background-size: 160px 160px;
  mask-image: linear-gradient(180deg, rgb(0 0 0 / 0.72), transparent 72%);
}

.public-shell::after {
  content: "";
  position: absolute;
  right: -8rem;
  bottom: -14rem;
  width: 30rem;
  height: 30rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgb(29 77 141 / 0.16), transparent 68%);
  filter: blur(28px);
  pointer-events: none;
}

.public-shell--landing {
  background:
    radial-gradient(circle at 10% 10%, rgb(255 255 255 / 0.64), transparent 24%),
    radial-gradient(circle at 82% 18%, rgb(33 92 164 / 0.1), transparent 24%),
    linear-gradient(180deg, #f4ede1 0%, #ece2d3 46%, #f3ece1 100%);
}

.public-shell--document {
  background:
    radial-gradient(circle at top right, rgb(67 112 176 / 0.16), transparent 22%),
    linear-gradient(180deg, #f3eee3 0%, #ece5d8 100%);
}

.public-topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: #fff;
  border-bottom: 1px solid rgb(25 36 53 / 0.14);
  box-shadow:
    0 1px 0 rgb(255 255 255 / 1) inset,
    0 10px 24px rgb(17 24 35 / 0.04);
}

.public-topbar__inner,
.public-footer__inner {
  width: min(100% - 2.5rem, 1320px);
  margin-inline: auto;
}

.public-topbar__inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 0;
}

.public-brand,
.public-brand:hover {
  color: inherit;
  text-decoration: none;
}

.public-brand__logo {
  display: block;
  width: clamp(10rem, 13vw, 12.4rem);
  height: auto;
}

.public-topbar__spacer {
  flex: 1 1 auto;
}

.public-topbar__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.public-topbar__link,
.public-footer__nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.5rem;
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
  border: 1px solid rgb(17 34 53 / 0.1);
  background: #fff;
  color: #253243;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 750;
  letter-spacing: 0.01em;
  transition:
    transform 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease,
    color 180ms ease,
    box-shadow 180ms ease;
}

.public-topbar__link:hover,
.public-topbar__link:focus-visible,
.public-footer__nav a:hover,
.public-footer__nav a:focus-visible {
  color: #111a25;
  background: #fff;
  border-color: rgb(17 34 53 / 0.16);
  box-shadow: 0 12px 24px rgb(17 24 35 / 0.08);
  transform: translateY(-1px);
}

.public-topbar__status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.2rem;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  border: 1px solid rgb(17 34 53 / 0.1);
  background: #f4f6f9;
  color: #39506a;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.public-main {
  position: relative;
  z-index: 1;
}

.public-footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid rgb(20 28 43 / 0.08);
  background: rgb(248 243 235 / 0.82);
  backdrop-filter: blur(14px);
}

.public-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0 1.35rem;
}

.public-footer__note {
  margin: 0;
  color: #4b5562;
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.public-footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.public-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0;
  color: #525c69;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.public-eyebrow::before {
  content: "";
  width: 2.8rem;
  height: 1px;
  background: linear-gradient(90deg, rgb(15 24 36 / 0.92) 0%, rgb(15 24 36 / 0.08) 100%);
}

@media (max-width: 767.98px) {
  .public-topbar__inner,
  .public-footer__inner {
    width: min(100% - 1.25rem, 1320px);
  }

  .public-topbar__inner,
  .public-footer__inner {
    gap: 0.85rem;
  }

  .public-topbar__inner {
    padding: 0.85rem 0;
  }

  .public-topbar__actions,
  .public-footer__inner {
    justify-content: space-between;
  }

  .public-topbar__link,
  .public-footer__nav a,
  .public-topbar__status {
    min-height: 2.3rem;
    padding-inline: 0.8rem;
  }

  .public-footer__inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 0.95rem 0 1.2rem;
  }

  .public-eyebrow {
    letter-spacing: 0.14em;
  }

  .public-eyebrow::before {
    width: 2.1rem;
  }
}
