/* Bubstack: the Bub theme's colours (bubstack/tokens/tokens.json), in light and dark. */
:root {
  --surface: #faf5ed;
  --shade: #efe9df;
  --ink: #29292b;
  --slate: #686d75;
  --pin: #c62d2b;
  --accent: #ed7385;
  --hairline: #29292b1f;
  --card: #ffffff;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --surface: #1e1f21;
    --shade: #29292b;
    --ink: #faf5ed;
    --slate: #a7acb3;
    --pin: #ff6b68;
    --hairline: #faf5ed1f;
    --card: #29292b;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.6;
}
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -0.025em; }
a { color: var(--pin); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible { outline: 3px solid var(--pin); outline-offset: 4px; border-radius: 4px; }

.shell { max-width: 1080px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .shell { padding: 0 32px; } }

.skip { position: absolute; left: 16px; top: -100px; background: var(--card); padding: 12px; z-index: 2; }
.skip:focus { top: 12px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.topbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 84px;
  border-bottom: 1px solid var(--hairline); }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 700;
  font-size: 1.25rem; letter-spacing: -0.02em; }
.nav { display: flex; gap: 20px; }
.nav a { color: var(--slate); font-size: 0.95rem; text-decoration: none; min-height: 44px; display: inline-flex;
  align-items: center; }
.nav a:hover { color: var(--ink); }

.hero { display: grid; gap: 28px; padding: 56px 0 48px; align-items: center; }
.hero-bub { width: 120px; height: 120px; }
@media (min-width: 800px) {
  .hero { grid-template-columns: 180px 1fr; gap: 40px; padding: 88px 0 72px; }
  .hero-bub { width: 180px; height: 180px; }
}
.eyebrow { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--slate);
  margin-bottom: 16px; }
h1 { font-size: clamp(2.3rem, 7vw, 4.4rem); font-weight: 750; max-width: 14ch; }
.intro { font-size: 1.15rem; color: var(--slate); max-width: 60ch; margin-top: 22px; }

.promise { display: grid; grid-template-columns: 1fr; border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline); margin-bottom: 64px; }
.pledge { padding: 24px 0; }
.pledge + .pledge { border-top: 1px solid var(--hairline); }
.pledge h3 { font-size: 1.1rem; margin-bottom: 6px; }
.pledge p { color: var(--slate); font-size: 0.95rem; }
@media (min-width: 800px) {
  .promise { grid-template-columns: repeat(4, 1fr); }
  .pledge { padding: 28px 24px 28px 0; }
  .pledge + .pledge { border-top: 0; border-left: 1px solid var(--hairline); padding-left: 24px; }
}

.apps { margin-bottom: 72px; }
.apps h2 { font-size: clamp(1.7rem, 4vw, 2.3rem); margin-bottom: 24px; }
.app-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
@media (min-width: 800px) { .app-list { grid-template-columns: 1fr 1fr; } }
.app { display: flex; gap: 18px; align-items: flex-start; background: var(--card); border: 1px solid var(--hairline);
  border-radius: 18px; padding: 22px; }
.app img { width: 72px; height: 72px; border-radius: 16px; flex: none; }
.app h3 { font-size: 1.3rem; margin-bottom: 6px; }
.app-body > p { color: var(--slate); font-size: 0.95rem; }
.app .status { margin-top: 10px; font-size: 0.82rem; font-weight: 600; color: var(--ink); }
.links { display: flex; flex-wrap: wrap; gap: 4px 18px; margin-top: 10px; }
.links a { font-weight: 600; min-height: 44px; display: inline-flex; align-items: center; }

.footer { border-top: 1px solid var(--hairline); padding-top: 24px; padding-bottom: 40px; display: grid; gap: 6px;
  font-size: 0.82rem; color: var(--slate); }

/* Help and policy pages (face-hugger/ and later apps). */
.nav a[aria-current] { color: var(--ink); font-weight: 650; }
.doc { max-width: 760px; padding-top: 40px; padding-bottom: 64px; }
.doc h1 { font-size: clamp(2.2rem, 6vw, 3.4rem); margin-bottom: 8px; }
.doc section { border-top: 1px solid var(--hairline); margin-top: 32px; padding-top: 24px; }
.doc h2 { font-size: 1.4rem; margin-bottom: 12px; }
.doc p, .doc li { color: var(--slate); }
.doc p + p { margin-top: 0.9em; }
.doc ul { padding-left: 1.2em; margin: 0; }
.doc li + li { margin-top: 0.4em; }
.doc strong { color: var(--ink); }
.doc-hero { display: grid; gap: 20px; align-items: center; }
.doc-hero img { width: 96px; height: 96px; }
.doc-hero .status { margin-top: 12px; font-size: 0.85rem; font-weight: 600; color: var(--ink); }
@media (min-width: 640px) { .doc-hero { grid-template-columns: 120px 1fr; } .doc-hero img { width: 120px; height: 120px; } }
.doc details { border-bottom: 1px solid var(--hairline); }
.doc summary { cursor: pointer; font-weight: 600; color: var(--ink); min-height: 48px; padding: 12px 0; display: flex; align-items: center; }
.doc .answer { padding-bottom: 16px; }
.doc-contact { background: var(--card); border: 1px solid var(--hairline); border-radius: 18px; padding: 24px !important; }
.fine { margin-top: 28px; font-size: 0.82rem; }
.doc .doc-hero { border-top: 0; margin-top: 0; padding-top: 0; }
