/* ====== Base / Theme (no CSS variables) ====== */

html {
  height: 100%;
  box-sizing: border-box;
}

body {
  height: 100%;
  margin: 0;
  color: #1f2430;
  background: #fff9f2;
  /* add the blurred “mixed color” background glow */
  background-image:
    radial-gradient(900px 520px at 12% 10%, rgba(255, 74, 61, 0.25), rgba(255, 74, 61, 0) 60%),
    radial-gradient(820px 520px at 88% 18%, rgba(76, 201, 240, 0.22), rgba(76, 201, 240, 0) 58%),
    radial-gradient(920px 620px at 48% 92%, rgba(255, 183, 3, 0.22), rgba(255, 183, 3, 0) 62%);

  /* makes the glow “stay put” while scrolling */
  background-attachment: fixed;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  line-height: 1.45;
}

.bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
}

.bg::before,
.bg::after {
  content: "";
  position: absolute;

  /* same idea as inset: -20% */
  top: -20%;
  left: -20%;
  right: -20%;
  bottom: -20%;

  filter: blur(60px);
  opacity: 0.75;
  transform: translateZ(0);
}

.bg::before {
  background:
    radial-gradient(520px 420px at 18% 18%, rgba(255, 74, 61, 0.35), rgba(255, 74, 61, 0) 62%),
    radial-gradient(560px 440px at 85% 22%, rgba(76, 201, 240, 0.30), rgba(76, 201, 240, 0) 60%),
    radial-gradient(620px 520px at 55% 85%, rgba(255, 183, 3, 0.28), rgba(255, 183, 3, 0) 65%);
}

.bg::after {
  background:
    radial-gradient(620px 520px at 22% 80%, rgba(255, 74, 61, 0.18), rgba(255, 74, 61, 0) 62%),
    radial-gradient(680px 520px at 78% 78%, rgba(76, 201, 240, 0.16), rgba(76, 201, 240, 0) 64%);
  opacity: 0.55;
  filter: blur(80px);
}


/* Prefer box-sizing without universal selector */
body, header, main, footer, section, article, aside, nav, div,
h1, h2, h3, p, ul, li, a, button, img, hr, span, iframe {
  box-sizing: inherit;
}

a {
  color: inherit;
  text-decoration: underline;
}

a:hover {
  text-decoration-color: #ff4a3d;
}

img {
  max-width: 100%;
  display: block;
}

/* ====== Skip link ====== */

.skip {
  position: absolute;
  left: -9999px;
  top: 10px;
  background: #ffffff;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(31, 36, 48, 0.12);
}

.skip:focus {
  left: 12px;
  outline: none;
  box-shadow: 0 0 0 3px rgba(76, 201, 240, 0.45);
}

/* ====== Layout shell ====== */

.shell {
  max-width: 980px;
  width: 100%;
  margin: 18px auto 0;
  padding: 0 14px 18px;
}

/* ====== Topbar ====== */

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 249, 242, 0.92);
  border-bottom: 1px solid rgba(31, 36, 48, 0.08);
}

.topbar__inner {
  max-width: 980px;
  width: 100%;
  margin: 0 auto;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.brand__badge {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid rgba(31, 36, 48, 0.12);
  background: #ffffff;
}

.brand__title {
  font-weight: 800;
  letter-spacing: 0.2px;
}

.brand__subtitle {
  color: #5b6678;
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ghost-btn {
  border: 1px solid rgba(31, 36, 48, 0.12);
  background: rgba(255, 255, 255, 0.75);
  border-radius: 999px;
  padding: 8px 10px;
  font-weight: 600;
  cursor: pointer;
}

.ghost-btn:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(76, 201, 240, 0.45);
}

/* ====== Cards / Typography ====== */

.card {
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(31, 36, 48, 0.10);
  border-radius: 16px;
  box-shadow: 0 12px 30px rgba(31, 36, 48, 0.12);
}

.card--inset {
  background: rgba(255, 255, 255, 0.72);
  box-shadow: none;
  border-radius: 12px;
}

.hero {
  padding: 18px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 16px;
}

.hero__headline {
  margin: 0 0 6px;
  font-family: Merriweather, Georgia, "Times New Roman", serif;
  font-size: 34px;
  line-height: 1.1;
}

.hero__blurb {
  margin: 0 0 14px;
  color: #5b6678;
  max-width: 60ch;
}

.h2 {
  margin: 0 0 10px;
  font-size: 16px;
  letter-spacing: 0.2px;
  text-transform: uppercase;
  color: rgba(31, 36, 48, 0.86);
}

.h3 {
  margin: 0 0 8px;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.2px;
  color: rgba(31, 36, 48, 0.86);
}

.tiny {
  margin: 10px 0 0;
  font-size: 12.5px;
  color: #5b6678;
}

.kbd-hint {
  font-weight: 800;
  color: rgba(31, 36, 48, 0.85);
}

/* ====== Chips / Buttons ====== */

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 14px;
}

.chip {
  border: 1px dashed rgba(31, 36, 48, 0.22);
  background: rgba(255, 183, 3, 0.12);
  border-radius: 999px;
  padding: 7px 10px;
  font-size: 13px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(31, 36, 48, 0.12);
  background: #ff4a3d;
  color: #ffffff;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 10px 18px rgba(255, 74, 61, 0.18);
  transition: opacity 120ms ease;
}

.btn:hover {
  opacity: 0.96;
}

.btn:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(76, 201, 240, 0.45);
}

.btn--soft {
  background: rgba(255, 255, 255, 0.85);
  color: #1f2430;
  font-weight: 700;
  box-shadow: none;
}

.hero__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* ====== Status / Lists ====== */

.status {
  padding: 12px;
  border: 1px solid rgba(76, 201, 240, 0.25);
  background: rgba(76, 201, 240, 0.10);
  margin: 0 0 14px;
}

.status__row {
  display: flex;
  align-items: baseline;
  justify-content: flex-start;
  gap: 12px;
}

.status__label {
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.2px;
  font-size: 12px;
  color: rgba(31, 36, 48, 0.82);
}

.status__value {
  font-weight: 700;
  font-size: 14px;
}

.status__meta {
  margin-top: 6px;
  color: rgba(31, 36, 48, 0.70);
  font-size: 12.5px;
  display: flex;
  gap: 8px;
  align-items: center;
}

.dot {
  opacity: 0.6;
}

.list {
  margin: 0;
  padding-left: 18px;
  color: rgba(31, 36, 48, 0.82);
}

.list li {
  margin: 6px 0;
}

.date {
  font-weight: 700;
  color: rgba(31, 36, 48, 0.72);
}

.updates, .todo, .portrait {
  padding: 12px;
}

.updates__scroller {
  max-height: 100px; /* tweak this */
  overflow-y: auto;
  padding-right: 6px; /* keeps text from sitting under scrollbar */
}
  
.checklist {
  list-style: none;
  padding: 0;
  margin: 0;
}

.checklist li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 7px 0;
  border-bottom: 1px solid rgba(31, 36, 48, 0.08);
}

.checklist li:last-child {
  border-bottom: none;
}

.box {
  width: 16px;
  height: 16px;
  border-radius: 5px;
  border: 1.5px solid rgba(31, 36, 48, 0.35);
  background: rgba(255, 255, 255, 0.6);
  margin-top: 2px;
  flex: 0 0 auto;
}

.portrait__img {
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(31, 36, 48, 0.12);
  background: #ffffff;
}

.portrait__caption {
  margin-top: 10px;
  font-size: 12.5px;
  color: #5b6678;
}

/* ====== Hub + Chat grid ====== */

.grid {
  margin-top: 16px;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 16px;
}

.hub {
  padding: 16px;
}

.hub__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.hub__tile {
  border-radius: 14px;
  border: 1px solid rgba(31, 36, 48, 0.10);
  background: rgba(255, 255, 255, 0.65);
  padding: 12px;
  text-decoration: none;
  position: relative;
  min-height: 92px;
  transition: transform 120ms ease, background 120ms ease, border-color 120ms ease;
}

.hub__tile:hover {
  background: rgba(255, 255, 255, 0.82);
  border-color: rgba(255, 74, 61, 0.26);
  transform: translateY(-2px);
}

.hub__tile:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(76, 201, 240, 0.45);
}

.hub__icon {
  font-size: 22px;
  display: inline-block;
  margin-bottom: 6px;
}

.hub__name {
  display: block;
  font-weight: 800;
}

.hub__desc {
  display: block;
  margin-top: 2px;
  font-size: 12.5px;
  color: #5b6678;
}

.chat {
  padding: 16px;
  align-self: flex-start;
  position: sticky;
  top: 74px;
}

.embed {
  border-radius: 14px;
  border: 1px dashed rgba(31, 36, 48, 0.22);
  background: rgba(255, 183, 3, 0.10);
  padding: 10px;
}

.embed__placeholder {
  height: auto;
  display: block;
  color: rgba(31, 36, 48, 0.70);
  font-weight: 700;
}

.cbox-frame {
  display: block;
  width: 100%;
  height: 450px;              /* match your iframe height */
  border: 0;
}

.rule {
  border: none;
  border-top: 1px solid rgba(31, 36, 48, 0.10);
  margin: 14px 0;
}

/* ====== Footer (bottom bar, not sticky) ====== */

.footer {
  max-width: 980px;
  width: 100%;
  margin: 0 auto 26px;
  padding: 0 14px;
}

.footer__inner {
  padding: 16px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.footer__title {
  text-transform: uppercase;
  letter-spacing: 0.2px;
  font-size: 12px;
  font-weight: 800;
  color: rgba(31, 36, 48, 0.76);
  margin-bottom: 10px;
}

.footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
}

.footer__nav a {
  color: rgba(31, 36, 48, 0.86);
  text-decoration: none;
  border-bottom: 2px solid transparent;
}

.footer__nav a:hover {
  border-bottom-color: rgba(255, 74, 61, 0.45);
}

.buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.footer__fineprint {
  margin-top: 12px;
}

/* ====== Tooltip bubble ====== */

.tip {
  position: fixed;
  left: 0;
  top: 0;
  transform: translate(-9999px, -9999px);
  max-width: 240px;
  padding: 9px 10px;
  border-radius: 12px;
  border: 1px solid rgba(31, 36, 48, 0.12);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 30px rgba(31, 36, 48, 0.12);
  color: rgba(31, 36, 48, 0.86);
  font-size: 12.5px;
  z-index: 99;
}

/* ====== Responsive ====== */

@media (max-width: 920px) {
  .hero { grid-template-columns: 1fr; }
  .grid { grid-template-columns: 1fr; }
  .chat { position: static; }
  .hub__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__inner { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .brand__subtitle { display: none; }
  .hub__grid { grid-template-columns: 1fr; }
}

/* ====== Reduced motion support (no !important) ====== */
:root[data-reduce-motion="true"] .hub__tile,
:root[data-reduce-motion="true"] .tip,
:root[data-reduce-motion="true"] .btn {
  transition: none;
}