:root {
  --crn-red: #a52121;
  --crn-red-dark: #741717;
  --crn-gold: #b5853f;
  --crn-teal: #0f766e;
  --crn-ink: #171717;
  --crn-muted: #6f655d;
  --crn-line: #d9dedc;
  --crn-blue: #38506b;
  --crn-paper: #fffefa;
  --crn-panel: #ffffff;
}

body {
  background:
    linear-gradient(180deg, #e9eef0 0, #f7f7f4 22rem, #f6f3ee 100%) !important;
}

body > header {
  border-top: 0 !important;
  background: rgb(255 254 250 / 0.94) !important;
  backdrop-filter: blur(14px);
}

body > header::before {
  content: "";
  display: block;
  height: 0.22rem;
  background: var(--crn-red);
}

body > header > div:first-child {
  border-color: rgb(165 33 33 / 0.18) !important;
}

body > header .grid.items-end > div:first-child {
  border-left: 3px solid rgb(157 31 31 / 0.55);
  padding-left: 0.75rem;
}

body > header .grid.items-end a[href="index-demo.html"] {
  border-bottom: 0;
  padding-bottom: 0;
}

body > main {
  margin-top: 0.9rem;
  margin-bottom: 1.2rem;
  border-radius: 0.5rem;
  background: var(--crn-paper);
  box-shadow:
    0 24px 70px rgb(24 38 44 / 0.08),
    inset 0 0 0 1px rgb(23 23 23 / 0.05);
}

#nav-shell {
  border-bottom: 0 !important;
  background: rgb(255 253 249 / 0.92) !important;
}

#primary-nav {
  border: 1px solid var(--crn-line);
  border-radius: 0.5rem;
  background: #fff !important;
  background-image: none !important;
  padding-inline: 0.75rem;
  color: var(--crn-ink);
  box-shadow: 0 12px 28px rgb(24 38 44 / 0.05);
}

#secondary-nav {
  margin-top: 0.45rem;
  border-radius: 0.5rem;
  background: #fff;
  box-shadow: 0 18px 36px rgb(24 38 44 / 0.08);
}

#primary-nav button:hover,
#primary-nav a:hover,
#secondary-nav a:hover {
  color: var(--crn-red);
}

.secondary-panel.is-open {
  border-color: var(--crn-line) !important;
}

.section-label::before {
  width: 0.5rem !important;
  height: 0.5rem !important;
  background: var(--crn-red) !important;
}

.story-link img,
figure img {
  border-radius: 0.32rem;
}

.story-link:hover img {
  filter: saturate(1.02) contrast(1.04);
  opacity: 0.95;
}

.compact-list li {
  position: relative;
  border-top-color: rgb(222 214 204 / 0.82) !important;
  padding-left: 0.9rem;
}

.compact-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.18rem;
  width: 0.28rem;
  height: 0.28rem;
  border-radius: 999px;
  background: rgb(157 31 31 / 0.58);
}

.compact-list li:first-child::before {
  top: 0.55rem;
}

body > main [class~="border-neutral-950"],
body > main [class~="border-neutral-300"],
body > aside [class~="border-neutral-950"],
body > aside [class~="border-neutral-300"] {
  border-color: var(--crn-line) !important;
}

a.text-red-900,
.text-red-900 {
  color: var(--crn-red) !important;
}

.bg-red-900 {
  background-color: var(--crn-red) !important;
}

button.bg-red-900:hover,
a.bg-neutral-950:hover {
  background-color: var(--crn-red-dark) !important;
}

input,
button {
  border-radius: 0.125rem;
}

#mobile-menu {
  background: var(--crn-paper) !important;
}

.demo2-card {
  border: 1px solid var(--crn-line) !important;
  border-radius: 0.5rem;
  background:
    linear-gradient(180deg, rgb(255 255 255 / 0.92), rgb(255 255 255 / 0.98)),
    #fff !important;
  box-shadow: 0 14px 34px rgb(24 38 44 / 0.045);
}

.demo2-card-pad {
  padding: clamp(1rem, 2vw, 1.35rem);
}

.demo2-card.py-5,
.demo2-card.py-6,
.demo2-card.pb-5,
.demo2-card.pb-6,
.demo2-card.pt-5,
.demo2-card.pt-4 {
  padding: clamp(1rem, 2vw, 1.35rem) !important;
}

.demo2-card:hover {
  box-shadow: 0 18px 42px rgb(24 38 44 / 0.075);
}

.demo2-card .border-b,
.demo2-card .border-t,
.demo2-card.border-b,
.demo2-card.border-t {
  border-color: rgb(217 222 220 / 0.9) !important;
}

.demo2-card img {
  border-radius: 0.32rem;
}

.demo2-card > :first-child {
  margin-top: 0;
}

.demo2-card > :last-child {
  margin-bottom: 0;
}

.demo2-card-title {
  align-items: stretch !important;
  border-bottom: 1px solid rgb(23 23 23 / 0.72) !important;
}

.demo2-card-title h2,
.demo2-card-title h3 {
  display: flex;
  align-items: center;
  border-left: 4px solid var(--crn-red);
  padding-left: 0.7rem;
  line-height: 1.05;
}

.demo2-card-title a {
  align-self: end;
  padding-bottom: 0.35rem;
}

.article-body {
  color: var(--crn-ink);
}

.article-inline-media {
  border-color: var(--crn-line) !important;
}

.media-dot.is-active {
  background: var(--crn-red) !important;
}

.legacy-footer,
body > footer {
  border-color: rgb(23 23 23 / 0.18) !important;
  background:
    linear-gradient(180deg, rgb(255 255 255 / 0.22), transparent 36%),
    #eef0f5 !important;
  color: #111;
}

body > footer a {
  color: #111;
}

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 520ms ease,
    transform 560ms cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 180ms ease;
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 640px) {
  body > main {
    margin-top: 0;
    margin-bottom: 0;
    border-radius: 0;
    box-shadow: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal-on-scroll {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
