/*
 * Bonfetti chrome: tokens, header, buttons, badges and footer shared by every
 * page Bonfetti speaks in its own voice (body.site): home, /connect, sign-in,
 * the host's pages and errors. Page rules live in home.css, connect.css,
 * account.css and host.css. Guest invitation pages do not load this file.
 */
@font-face {
  font-family: 'Libre Caslon Text';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/libre-caslon-text-regular.ttf') format('truetype');
}

.site {
  /* Color */
  --paper: #fff8ec;
  --cream: #f8eddf;
  --white: #ffffff;
  --stationery: #fffdf8;
  --ink: #392333;
  --ink-2: #57434e;
  --ink-3: #6b5960;
  --hair: rgba(57, 35, 51, 0.1);
  --hair-2: rgba(57, 35, 51, 0.18);
  --hair-3: rgba(57, 35, 51, 0.32);
  --tomato: #dc482f;
  --tomato-deep: #c13a22;
  --tomato-deeper: #a6301b;
  --tomato-soft: #fbe3da;
  --butter: #f5d579;
  --butter-soft: #fbecc4;
  --blush: #f5dcd2;
  --olive: #4f5c22;
  --olive-soft: #e9edd3;
  --sky: #dfe6f7;
  --cobalt: #305ac7;
  --plum: #2f1d2a;
  --focus: #392333;

  /* Type */
  --font-display: 'Libre Caslon Display', 'Libre Caslon Text', Georgia, serif;
  --font-serif: 'Libre Caslon Text', Georgia, serif;
  --font-ui: 'DM Sans', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;

  /* Shape */
  --r-xs: 4px;
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 20px;
  --r-xl: 28px;
  --shadow-sm: 0 1px 2px rgba(57, 35, 51, 0.06), 0 2px 6px rgba(57, 35, 51, 0.04);
  --shadow-md:
    0 1px 2px rgba(57, 35, 51, 0.05), 0 4px 10px rgba(57, 35, 51, 0.05),
    0 16px 32px -8px rgba(57, 35, 51, 0.1);
  --shadow-lg:
    0 1px 2px rgba(57, 35, 51, 0.05), 0 6px 14px rgba(57, 35, 51, 0.06),
    0 24px 48px -12px rgba(57, 35, 51, 0.16), 0 48px 96px -24px rgba(57, 35, 51, 0.14);

  /* Layout */
  --gutter: 20px;
  --wrap: 1200px;
  --section: 96px;
  --header: 64px;

  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-kerning: normal;
  text-rendering: optimizeLegibility;
}
@media (min-width: 600px) {
  .site {
    --gutter: 32px;
    --section: 120px;
    --header: 72px;
  }
}
@media (min-width: 1024px) {
  .site {
    --gutter: 40px;
    --section: 128px;
  }
}

.site .wrap {
  width: min(100% - 2 * var(--gutter), var(--wrap));
  margin-inline: auto;
}
.site p,
.site figure,
.site blockquote {
  margin: 0;
}
.site h1,
.site h2 {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 400;
  text-wrap: balance;
}
.site h1 {
  font-size: clamp(44px, 5.2vw, 76px);
  line-height: 1;
  letter-spacing: -0.022em;
}
.site h2 {
  font-size: clamp(36px, 4.2vw, 56px);
  line-height: 1.04;
  letter-spacing: -0.018em;
}
.site h3 {
  margin: 0;
  font-family: var(--font-ui);
  font-weight: 600;
  letter-spacing: -0.01em;
}
.site .lede {
  color: var(--ink-2);
  font-size: 19px;
  line-height: 1.6;
  text-wrap: pretty;
}
.site ::selection {
  background: var(--butter);
  color: var(--ink);
}
.site a:focus-visible,
.site button:focus-visible,
.site input:focus-visible,
.site select:focus-visible,
.site textarea:focus-visible,
.site [tabindex]:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

.site .skip-link {
  position: absolute;
  left: 16px;
  top: 12px;
  z-index: 50;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-weight: 600;
  transform: translateY(-200%);
  transition: transform 0.2s ease;
}
.site .skip-link:focus {
  transform: none;
}
.site .skip-link:focus-visible {
  outline-color: var(--tomato-deep);
}

/* Header */
.site .site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: block;
  max-width: none;
  margin: 0;
  padding: 0;
  background: rgba(255, 248, 236, 0.86);
  backdrop-filter: saturate(1.4) blur(16px);
  -webkit-backdrop-filter: saturate(1.4) blur(16px);
  border-bottom: 1px solid var(--hair);
}
.site .header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: var(--header);
}
.site .logo {
  width: 128px;
  /* The wordmark PNG carries transparent padding; align its ink to the grid. */
  margin-left: -12px;
}
.site .site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 15px;
  font-weight: 500;
}
.site .site-nav > .nav-link {
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  color: var(--ink-2);
  white-space: nowrap;
  transition:
    background-color 0.2s ease,
    color 0.2s ease;
}
.site .site-nav > .nav-link:hover {
  background: rgba(57, 35, 51, 0.06);
  color: var(--ink);
}
.site .site-nav > .nav-link[aria-current='page'] {
  background: rgba(57, 35, 51, 0.06);
  color: var(--ink);
}
.site .agent-shortcut {
  margin-left: 8px;
}
.site .agent-shortcut .copy-status:not(:empty) {
  top: calc(100% + 12px);
  width: 272px;
  padding: 12px 16px;
  border: 1px solid var(--hair);
  border-radius: var(--r-md);
  background: var(--white);
  box-shadow: var(--shadow-md);
  color: var(--ink);
  font-size: 14px;
  line-height: 1.45;
}

/* Buttons: one pill shape everywhere; tomato is the only filled color. */
.site .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--font-ui);
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;
}
.site .btn svg {
  flex-shrink: 0;
  transition: transform 0.2s ease;
}
.site .btn:active {
  transform: translateY(1px);
}
.site .btn-sm {
  height: 40px;
  padding: 0 16px;
  font-size: 14px;
}
.site .btn-sm svg {
  width: 16px;
  height: 16px;
}
.site .btn-lg {
  height: 52px;
  padding: 0 24px;
  font-size: 16px;
}
.site .btn-primary {
  background: var(--tomato-deep);
  color: var(--white);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 1px 2px rgba(57, 35, 51, 0.18),
    0 8px 20px -8px rgba(193, 58, 34, 0.6);
}
.site .btn-primary:hover {
  background: var(--tomato-deeper);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 1px 2px rgba(57, 35, 51, 0.2),
    0 12px 24px -8px rgba(166, 48, 27, 0.65);
}
.site .btn-secondary,
.site .btn-quiet {
  background: var(--white);
  color: var(--ink);
  border-color: var(--hair-2);
  box-shadow: var(--shadow-sm);
}
.site .btn-secondary:hover,
.site .btn-quiet:hover {
  border-color: var(--hair-3);
  box-shadow: var(--shadow-md);
}
.site .btn-quiet svg {
  color: var(--tomato-deep);
}
.site .btn-outline-light {
  color: var(--paper);
  border-color: rgba(255, 248, 236, 0.4);
}
.site .btn-outline-light:hover {
  border-color: var(--paper);
  background: rgba(255, 248, 236, 0.08);
}
.site .btn-outline-light:hover svg {
  transform: translateX(2px);
}
.site .copy-status:empty {
  display: none;
}

.site .quiet-link {
  color: var(--ink-2);
  font-size: 15px;
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: var(--hair-3);
  text-underline-offset: 4px;
  transition:
    color 0.2s ease,
    text-decoration-color 0.2s ease;
}
.site .quiet-link:hover {
  color: var(--ink);
  text-decoration-color: currentColor;
}

/* One badge shape, four tones: reply states and event status. */
.site .badge {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
  white-space: nowrap;
}
.site .b-yes {
  background: var(--olive-soft);
  color: var(--olive);
}
.site .b-maybe {
  background: var(--butter-soft);
  color: #6b4d0f;
}
.site .b-no {
  background: var(--tomato-soft);
  color: var(--tomato-deeper);
}
.site .b-wait {
  background: rgba(57, 35, 51, 0.06);
  color: var(--ink-2);
}

/* Footer */
.site .site-footer {
  display: block;
  margin-top: var(--section);
  padding: 0;
  border-top: 1px solid var(--hair);
  color: var(--ink-2);
  font-size: 15px;
}
.site .footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 48px;
  padding-block: 64px 56px;
}
.site .footer-brand .logo {
  width: 120px;
  margin-left: -11px;
}
.site .footer-brand p {
  max-width: 22em;
  margin-top: 16px;
  color: var(--ink-3);
  line-height: 1.6;
  text-wrap: balance;
}
.site .footer-nav {
  display: grid;
  align-items: start;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
}
.site .footer-heading {
  margin-bottom: 16px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
}
.site .footer-nav ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.site .footer-nav a {
  display: inline-block;
  padding-block: 2px;
  color: var(--ink-2);
  font-weight: 400;
  transition: color 0.2s ease;
}
.site .footer-nav a:hover {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--hair-3);
  text-underline-offset: 4px;
}
.site .footer-base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding-block: 24px 40px;
  border-top: 1px solid var(--hair);
  color: var(--ink-3);
  font-size: 14px;
}

@media (max-width: 599px) {
  .site .logo {
    width: 108px;
    margin-left: -10px;
  }
  .site .site-nav {
    gap: 0;
    font-size: 14px;
  }
  .site .site-nav > .nav-link {
    height: 40px;
    padding: 0 12px;
  }
  .site .agent-shortcut {
    margin-left: 4px;
  }
  .site .agent-shortcut .copy-status:not(:empty) {
    width: min(272px, calc(100vw - 2 * var(--gutter)));
  }
  .site .lede {
    font-size: 17px;
  }
  .site .footer-top {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
    padding-block: 48px 40px;
  }
  .site .footer-base {
    flex-direction: column;
    padding-bottom: 32px;
  }
}

@media (max-width: 379px) {
  .site .site-nav > .nav-sample {
    display: none;
  }
}
@media (max-width: 419px) {
  .site .nav-more {
    display: none;
  }
}

/* Small phones: a tighter header so the agent shortcut stays inside the gutter. */
@media (max-width: 374px) {
  .site .header-row {
    gap: 8px;
  }
  .site .logo {
    width: 96px;
    margin-left: -9px;
  }
  .site .site-nav > .nav-link {
    padding: 0 10px;
  }
  .site .agent-shortcut .btn-sm {
    padding: 0 14px;
  }
  .site .agent-shortcut .btn-sm svg {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site *,
  .site .skip-link {
    transition: none !important;
  }
  .site .btn:active {
    transform: none;
  }
}

.site .legal-links {
  display: flex;
  gap: 20px;
  font-size: 13px;
}
.site .legal-links a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Public product documentation. Keep these rules in the versioned stylesheet:
   the production CSP intentionally blocks inline styles. */
.site .content-page {
  max-width: 48rem;
  margin: 4rem auto;
}
.site .content-page h1 {
  margin-bottom: 1rem;
  font-size: clamp(2.25rem, 6vw, 3.5rem);
}
.site .content-page h2 {
  margin-top: 3rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--hair-2);
  font-size: 1.75rem;
}
.site .content-page h3 {
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  font-size: 1.25rem;
}
.site .content-page section {
  margin-bottom: 3rem;
}
.site .content-page table {
  width: 100%;
  margin: 1.5rem 0;
  border-collapse: collapse;
  font-size: 0.95rem;
}
.site .content-page thead {
  background: var(--cream);
}
.site .content-page th,
.site .content-page td {
  padding: 0.75rem;
  border: 1px solid var(--hair-2);
  text-align: left;
  vertical-align: top;
}
.site .content-page code {
  padding: 0.2em 0.4em;
  border-radius: 3px;
  background: var(--cream);
  font-size: 0.9em;
}
.site .content-page ol,
.site .content-page ul {
  padding-left: 1.5rem;
}
.site .content-page li {
  margin: 0.5rem 0;
}
@media (max-width: 599px) {
  .site .content-page {
    margin-block: 2.5rem;
    overflow-x: auto;
  }
}
/* Layout gallery (/layouts): wireframes that open the sample in each layout. */
.site .content-page .layout-options {
  list-style: none;
  padding: 0;
  margin: 2rem 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}
.site .content-page .layout-option {
  margin: 0;
}
.layout-option a {
  display: flex;
  flex-direction: column;
  gap: 6px;
  height: 100%;
  padding: 14px;
  border: 1px solid var(--line, #ddd6c8);
  border-radius: 8px;
  color: inherit;
  text-decoration: none;
  background: #fffefa;
}
.layout-option a:hover,
.layout-option a:focus-visible {
  border-color: currentColor;
}
.layout-option svg {
  width: 100%;
  height: auto;
  border-radius: 4px;
  margin-bottom: 6px;
}
.layout-option span {
  font-size: 14px;
  line-height: 1.5;
  opacity: 0.8;
}
.site .content-page .layout-option code {
  align-self: flex-start;
  font-size: 12px;
}
