/*
  Wick shared overrides
  ---------------------
  Page-specific CSS still lives inline in each HTML file while the site is in
  lofi/static mode. Put global visual tokens and shared chrome tweaks here so
  common edits do not need to be repeated by hand across every page.
*/

:root {
  --max: 1880px;
  --paper: #F7F2EA;
  --page: #F7F2EA;
  --surface: #FFFDF8;
  --surface-warm: #FCFAF5;
  --line: #DDD6CA;
  --line-soft: #E9E2D8;
  --field: #F1ECE3;
  --field-2: #E9E2D8;
  --inverse-heading: #FFFDF8;
  --inverse-body: rgba(252,250,245,0.84);
  --inverse-muted: rgba(252,250,245,0.66);
  --inverse-rose: #F8DCE8;
}

.site-shell {
  background:
    linear-gradient(90deg, rgba(11,13,16,0.012) 1px, transparent 1px),
    linear-gradient(180deg, rgba(11,13,16,0.009) 1px, transparent 1px),
    var(--page);
  background-size: 96px 96px, 96px 96px, auto;
}

main {
  width: 100%;
  max-width: none;
  background: rgba(252,250,245,0.58);
  border-left-color: transparent;
  border-right-color: transparent;
  box-shadow: none;
}

.breadcrumb,
.crumbs {
  display: none !important;
}

.product-hero,
.article-hero {
  padding-top: 40px;
}

.services-hero,
.blog-hero,
.about-hero {
  padding-top: 42px;
}

.masthead .brand img {
  filter: invert(1) grayscale(1) brightness(1.1) sepia(0.04);
  opacity: 0.92;
}

.masthead .btn {
  border-color: rgba(252,250,245,0.54);
  background: rgba(252,250,245,0.018);
  color: rgba(252,250,245,0.88);
  box-shadow: inset 0 1px 0 rgba(255,253,248,0.045);
}

.masthead .btn:hover,
.masthead .btn:focus-visible {
  background: rgba(252,250,245,0.07);
  border-color: rgba(252,250,245,0.76);
  color: rgba(255,253,248,0.98);
  box-shadow: 0 0 0 1px rgba(255,253,248,0.075), 0 12px 24px rgba(0,0,0,0.18);
}

.masthead .icon-button {
  color: rgba(252,250,245,0.86);
}

.masthead .icon-button:hover,
.masthead .icon-button:focus-visible {
  color: rgba(255,253,248,0.98);
}

.related-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.related-card {
  min-height: 0;
  padding: 22px 24px;
  gap: 12px;
}

.related-card .meta-row {
  display: none;
}

.hero-card {
  min-height: 0;
  padding: 18px;
  gap: 0;
  align-content: center;
}

.hero-card-top {
  display: none;
}

.hero-diagram {
  min-height: 0;
  aspect-ratio: 16 / 10;
}

.hero-diagram svg,
.hero-diagram img {
  min-height: 0;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 980px) {
  main {
    width: 100%;
    border-left-color: transparent;
    border-right-color: transparent;
    box-shadow: none;
  }
}

@media (max-width: 760px) {
  .product-hero,
  .article-hero,
  .services-hero,
  .blog-hero,
  .about-hero {
    padding-top: 28px;
  }

  .related-grid {
    grid-template-columns: 1fr;
  }
}

#data-reality,
#definition,
.dark-band,
.inverse-section {
  color: var(--inverse-body);
}

#data-reality,
#definition,
.dark-band,
.inverse-section.final-cta {
  background:
    radial-gradient(circle at 18% 18%, rgba(248,220,232,0.085), transparent 34%),
    radial-gradient(circle at 82% 78%, rgba(241,250,248,0.045), transparent 34%),
    linear-gradient(135deg, #0B0D10, #141316);
}

#data-reality,
#definition,
.inverse-section.final-cta {
  box-shadow:
    inset 0 1px 0 rgba(255,253,248,0.07),
    inset 0 -1px 0 rgba(0,0,0,0.26);
}

#data-reality h1,
#data-reality h2,
#data-reality h3,
#definition h1,
#definition h2,
#definition h3,
.dark-band h1,
.dark-band h2,
.dark-band h3,
.inverse-section h1,
.inverse-section h2,
.inverse-section h3 {
  color: var(--inverse-heading);
}

#data-reality p,
#definition p,
.dark-band p,
.dark-band .section-heading p:not(.eyebrow),
.inverse-section p {
  color: var(--inverse-body);
}

#data-reality .eyebrow,
#definition .eyebrow,
.dark-band .eyebrow,
.inverse-section .eyebrow {
  color: var(--inverse-rose);
}

#definition .muted,
.inverse-section .muted {
  color: var(--inverse-muted);
}

#data-reality .text-link,
#definition .text-link,
.dark-band .text-link,
.inverse-section .text-link {
  color: var(--inverse-heading);
}

.drawer-cta {
  border: 1px solid var(--line);
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 24% 28%, rgba(232,93,143,0.05), transparent 36%),
    radial-gradient(circle at 74% 72%, rgba(63,174,159,0.04), transparent 36%),
    radial-gradient(circle, rgba(11,13,16,0.036) 0 1px, transparent 1.25px) 0 0 / 20px 20px,
    linear-gradient(135deg, rgba(255,255,255,0.78), rgba(252,241,246,0.36) 52%, rgba(241,250,248,0.32));
}

.drawer-cta::before,
.drawer-cta::after {
  content: "";
  position: absolute;
  pointer-events: none;
  z-index: 1;
}

.drawer-cta::before {
  width: 1px;
  height: 82%;
  right: 30%;
  top: 9%;
  background: linear-gradient(180deg, transparent, rgba(232,93,143,0.08), rgba(63,174,159,0.07), transparent);
}

.drawer-cta::after {
  width: 82%;
  height: 1px;
  left: 9%;
  bottom: 28%;
  background: linear-gradient(90deg, transparent, rgba(232,93,143,0.09), rgba(63,174,159,0.07), transparent);
}

.drawer-cta > :not(.drawer-cta-mark) {
  position: relative;
  z-index: 2;
}

.drawer-cta-mark {
  position: absolute;
  z-index: 0;
  width: 330px;
  height: auto;
  right: -102px;
  top: -72px;
  opacity: 0.43;
  filter: drop-shadow(0 18px 34px rgba(11,13,16,0.045));
}

.drawer-cta-icon {
  width: 32px;
  height: 32px;
  position: relative;
  display: block;
  color: var(--ink);
}

.drawer-cta-icon::before,
.drawer-cta-icon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  background: currentColor;
  transform: translate(-50%, -50%);
}

.drawer-cta-icon::before {
  width: 24px;
  height: 2px;
}

.drawer-cta-icon::after {
  width: 2px;
  height: 24px;
}

.mini-icon svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
}

.drawer-nav a {
  position: relative;
  background: transparent;
  border-left-color: transparent;
  transition: color 150ms ease;
}

.drawer-nav a::before {
  content: "";
  position: absolute;
  left: 12px;
  right: 10px;
  bottom: 3px;
  height: 1px;
  background: rgba(11,13,16,0.16);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 150ms ease, background 150ms ease;
}

.drawer-nav a:hover,
.drawer-nav a:focus-visible {
  background: transparent;
  border-left-color: transparent;
  color: var(--ink, #0B0D10);
}

.drawer-nav a:hover::before,
.drawer-nav a:focus-visible::before {
  transform: scaleX(1);
  background: rgba(11,13,16,0.28);
}

.drawer-nav a:hover .nav-arrow,
.drawer-nav a:focus-visible .nav-arrow {
  transform: translateX(3px);
}

.site-footer {
  border-top: 1px solid rgba(255,253,248,0.08);
  background:
    radial-gradient(circle at 18% 18%, rgba(248,220,232,0.055), transparent 34%),
    radial-gradient(circle at 84% 80%, rgba(241,250,248,0.035), transparent 34%),
    linear-gradient(135deg, #0B0D10, #141316);
  padding: 46px 76px 28px;
  display: grid;
  gap: 38px;
}

.site-footer-top {
  display: grid;
  grid-template-columns: minmax(260px, 0.95fr) minmax(520px, 1.45fr);
  gap: 56px;
  align-items: start;
}

.site-footer-brand {
  width: 96px;
  display: inline-flex;
  align-items: center;
}

.site-footer-brand img {
  display: block;
  width: 100%;
  height: auto;
  filter: invert(1) grayscale(1) brightness(1.16);
  opacity: 0.94;
}

.site-footer-copy {
  margin: 18px 0 0;
  max-width: 360px;
  color: rgba(252,250,245,0.72);
  font-size: 15px;
  line-height: 1.55;
}

.site-footer-nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.site-footer-group {
  display: grid;
  gap: 11px;
  align-content: start;
}

.site-footer-group h2 {
  margin: 0 0 4px;
  color: #F8DCE8;
  font-size: 12px;
  line-height: 1.2;
  font-weight: 820;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-footer-group a {
  width: fit-content;
  color: rgba(252,250,245,0.70);
  font-size: 14px;
  line-height: 1.3;
  transition: color 150ms ease;
}

.site-footer-group a:hover,
.site-footer-group a:focus-visible {
  color: #FFFDF8;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.site-footer-bottom {
  border-top: 1px solid rgba(255,253,248,0.10);
  padding-top: 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px;
  color: rgba(252,250,245,0.50);
  font-size: 13px;
  line-height: 1.4;
}

@media (max-width: 980px) {
  .site-footer {
    padding: 38px 34px 26px;
  }

  .site-footer-top {
    grid-template-columns: 1fr;
    gap: 34px;
  }
}

@media (max-width: 640px) {
  .site-footer {
    padding: 34px 22px 24px;
  }

  .site-footer-nav {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .site-footer-bottom {
    display: grid;
  }
}
