:root { color-scheme: light; }
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  background: #fbf9f6;
  color: #3c302c;
  font: 400 16px/1.6 "Avenir Next", "Segoe UI", sans-serif;
}
a { color: #8c2d2d; }
button, select { font: inherit; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.site-chrome-frame {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 100vh;
  padding: 10px 12px 16px;
}
.site-chrome-main { flex: 1; min-width: 0; }

.site-header {
  position: relative;
  height: 68px;
  flex: none;
  display: flex;
  align-items: center;
  gap: 34px;
  padding: 0 28px;
  background: #fffdfa;
  border: 1px solid #eee5dd;
  border-radius: 20px;
  box-shadow: 0 4px 20px #55402a08;
  z-index: 40;
}
.site-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 0;
  background: transparent;
  color: #273448;
  font-size: 17px;
  font-weight: 600;
  text-decoration: none;
}
.site-brand .cadding-logo { width: 28px; height: 28px; object-fit: contain; }
.site-nav { display: flex; align-items: center; gap: 8px; min-width: 0; }
.site-nav-button {
  border: 0;
  background: transparent;
  color: #718097;
  border-radius: 10px;
  padding: 10px 13px;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}
.site-nav-button.active,
.site-nav-button:hover { background: #f6eeee; color: #932d31; }
.site-nav-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid #eadfd6;
  border-radius: 12px;
  background: #fff;
  color: #4d3e35;
  cursor: pointer;
  flex: none;
}
.site-nav-toggle > span {
  display: block;
  width: 16px;
  height: 1.5px;
  border-radius: 99px;
  background: currentColor;
  transition: transform .18s ease, opacity .18s ease;
}
.site-header.nav-open .site-nav-toggle > span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.site-header.nav-open .site-nav-toggle > span:nth-child(2) { opacity: 0; }
.site-header.nav-open .site-nav-toggle > span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
.site-header-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  flex: none;
}
.site-theme {
  width: 36px;
  height: 36px;
  border: 1px solid #eadfd6;
  border-radius: 999px;
  background: #fff;
  color: #4d3e35;
  cursor: pointer;
}
.site-theme:hover { border-color: #d4b4b0; color: #923236; }
.primary-button,
.site-cta,
.outline-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 34px;
  min-height: 34px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: #8c2d2d;
  color: #fff !important;
  font-size: 12px;
  font-weight: 550;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: background .16s ease, border-color .16s ease, color .16s ease, transform .16s ease;
}
.primary-button:hover,
.site-cta:hover { background: #752424; }
.outline-button {
  border: 1px solid #eadfd6;
  background: #fff;
  color: #4d3e35 !important;
}
.outline-button:hover { border-color: #d4b4b0; color: #923236 !important; }

.landing-footer,
.site-chrome-footer {
  flex: none;
  width: min(1280px, 100%);
  margin: 8px auto 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 28px 12px 22px;
  border-top: 1px solid #eee4db;
  color: #8e7c70;
}
.footer-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px 28px;
  flex-wrap: wrap;
}
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #473831;
  text-decoration: none;
  font-size: 14px;
  font-weight: 550;
}
.footer-brand .cadding-logo { width: 22px; height: 22px; object-fit: contain; }
.footer-inline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 18px;
}
.footer-inline a,
.footer-inline button {
  padding: 0;
  border: 0;
  background: transparent;
  color: #7d6d61;
  text-decoration: none;
  font-size: 13px;
  font-weight: 400;
  cursor: pointer;
  transition: color .16s ease;
}
.footer-inline a:hover,
.footer-inline button:hover { color: #923236; }
.footer-locale { margin-left: auto; }
.footer-locale-select {
  appearance: none;
  height: 34px;
  min-width: 140px;
  padding: 0 28px 0 12px;
  border: 1px solid #eadfd6;
  border-radius: 999px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%238e7c70' d='M1 1l5 5 5-5'/%3E%3C/svg%3E") no-repeat right 12px center;
  color: #4d3e35;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: border-color .18s ease;
}
.footer-locale-select:hover,
.footer-locale-select:focus { border-color: #d4b4b0; outline: none; }
.footer-legal {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  padding-top: 14px;
  border-top: 1px solid #eee4db;
  color: #a18d7e;
  font-size: 11px;
}
.footer-funding { height: 28px; width: auto; max-width: min(360px, 46vw); object-fit: contain; }

.blog-shell { max-width: 1080px; margin: 0 auto; padding: 40px 24px 72px; }
.blog-hero { max-width: 40rem; margin-bottom: 8px; }
.blog-hero h1,
.blog-article h1 {
  margin: 0 0 14px;
  font-size: clamp(30px, 4.5vw, 44px);
  font-weight: 550;
  line-height: 1.1;
  letter-spacing: -.03em;
  color: #2b211c;
}
.blog-hero > p {
  margin: 0;
  color: #5c4d43;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
}
.blog-hero-actions,
.blog-article-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}
.blog-article-actions { margin-top: 40px; padding-top: 28px; border-top: 1px solid #eadfd6; }
.blog-eyebrow,
.blog-kicker {
  color: #8a7366;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.blog-kicker { display: flex; gap: 12px; align-items: center; margin: 0; }
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 36px;
}
.blog-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  overflow: hidden;
  border: 1px solid #eadfd6;
  border-radius: 18px;
  background: #fff;
  color: inherit;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.blog-card:hover {
  border-color: #d4beb0;
  box-shadow: 0 10px 28px #523a280e;
  transform: translateY(-2px);
}
.blog-card-media {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #f3ebe4;
}
.blog-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.blog-card-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
  padding: 18px 18px 20px;
}
.blog-card h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 550;
  line-height: 1.3;
  color: #2b211c;
}
.blog-card h2 a {
  color: inherit;
  text-decoration: none;
}
.blog-card h2 a:hover { color: #8c2d2d; }
.blog-card-body > p {
  margin: 0;
  color: #5c4d43;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.55;
}
.blog-read {
  margin-top: auto;
  align-self: flex-start;
  width: auto;
}
.blog-article { max-width: 760px; }
.blog-back {
  display: inline-block;
  margin-bottom: 22px;
  color: #7d6d61;
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
}
.blog-back:hover { color: #923236; }
.blog-excerpt {
  margin: 0 0 24px;
  color: #5c4d43;
  font-size: 17px;
  font-weight: 400;
  line-height: 1.55;
}
.blog-cover {
  margin: 0 0 28px;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid #eadfd6;
  background: #f3ebe4;
}
.blog-cover img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.blog-body h2 {
  margin: 32px 0 10px;
  font-size: 24px;
  font-weight: 550;
  line-height: 1.25;
  color: #2b211c;
}
.blog-body h3 {
  margin: 24px 0 8px;
  font-size: 18px;
  font-weight: 550;
  color: #2b211c;
}
.blog-body p,
.blog-body li {
  color: #4d3e35;
  font-weight: 400;
}
.blog-body strong,
.blog-body b,
.blog-body th {
  font-weight: 550;
}
.blog-body em { font-style: italic; font-weight: 400; }
.blog-body ul,
.blog-body ol { padding-left: 1.2rem; }
.blog-table-wrap { overflow-x: auto; margin: 20px 0; }
.blog-body table { width: 100%; border-collapse: collapse; font-size: 14px; }
.blog-body th,
.blog-body td {
  padding: 8px 10px;
  border-bottom: 1px solid #eadfd6;
  text-align: left;
  vertical-align: top;
  font-weight: 400;
}
.blog-body th { font-weight: 550; color: #2b211c; }

.theme-dark {
  color-scheme: dark;
  background: #080b10;
  color: #e8edf3;
}
.theme-dark body,
html.theme-dark body { background: #080b10; color: #e8edf3; }
.theme-dark .site-header {
  background: #07090d;
  border-color: #252b36;
  box-shadow: none;
}
.theme-dark .site-brand,
.theme-dark .site-nav-button {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
  color: #dbe4ef;
}
.theme-dark .site-nav-button:hover,
.theme-dark .site-nav-button.active {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
  color: #00d8eb;
}
.theme-dark .site-theme {
  background: linear-gradient(180deg, #171b24, #10131a);
  border-color: #333b49;
  color: #d5dce7;
}
.theme-dark .outline-button {
  background: #151a22;
  border-color: #303742;
  color: #d5deea !important;
}
.theme-dark .landing-footer,
.theme-dark .site-chrome-footer,
.theme-dark .footer-legal { border-color: #29313d; color: #a7b2c2; }
.theme-dark .footer-brand { color: #e8edf3; }
.theme-dark .footer-inline a,
.theme-dark .footer-inline button { color: #a7b2c2; }
.theme-dark .footer-inline a:hover,
.theme-dark .footer-inline button:hover { color: #54e4f2; }
.theme-dark .footer-locale-select {
  border-color: #303742;
  background-color: #151a22;
  color: #d5deea;
}
.theme-dark .blog-hero h1,
.theme-dark .blog-article h1,
.theme-dark .blog-card h2,
.theme-dark .blog-body h2,
.theme-dark .blog-body h3,
.theme-dark .blog-body th { color: #e8edf3; }
.theme-dark .blog-card {
  background: #11111a;
  border-color: #252b36;
  color: #e8edf3;
}
.theme-dark .blog-card-body > p,
.theme-dark .blog-excerpt,
.theme-dark .blog-body p,
.theme-dark .blog-body li,
.theme-dark .blog-eyebrow,
.theme-dark .blog-kicker,
.theme-dark .blog-back { color: #a7b2c2; }
.theme-dark .blog-cover,
.theme-dark .blog-card-media,
.theme-dark .blog-body th,
.theme-dark .blog-body td,
.theme-dark .blog-article-actions { border-color: #29313d; }
.theme-dark .site-nav-toggle {
  background: #151a22;
  border-color: #303742;
  color: #d5dce7;
}
@media (max-width: 1100px) {
  .site-header { gap: 12px; padding-inline: 18px; }
  .site-nav-toggle { display: flex; }
  .site-nav {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    z-index: 50;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 10px;
    border: 1px solid #eee5dd;
    border-radius: 16px;
    background: #fffdfa;
    box-shadow: 0 16px 40px #523a2818;
  }
  .site-header.nav-open .site-nav { display: flex; }
  .theme-dark .site-nav {
    background: #0c1016;
    border-color: #29313d;
    box-shadow: 0 18px 40px #0008;
  }
  .site-nav-button {
    display: flex;
    width: 100%;
    justify-content: flex-start;
    padding: 12px 14px;
    font-size: 15px;
    text-align: left;
    border-radius: 12px;
  }
}
@media (max-width: 650px) {
  .site-chrome-frame { padding: 6px 6px 12px; gap: 6px; }
  .site-header { height: 60px; gap: 10px; padding: 0 12px; border-radius: 16px; }
  .site-brand { font-size: 16px; }
  .site-brand .cadding-logo { width: 26px; height: 26px; }
  .site-nav-toggle { width: 38px; height: 38px; }
  .site-cta { padding: 0 12px; font-size: 12px; height: 36px; }
  .site-theme { width: 36px; height: 36px; }
  .footer-bar { gap: 14px; }
  .footer-inline { width: 100%; order: 3; }
  .footer-locale { margin-left: 0; }
  .footer-legal { flex-direction: column; align-items: flex-start; gap: 10px; }
  .footer-funding { max-width: 100%; height: 26px; }
  .blog-shell { padding: 28px 16px 56px; }
}
