/* Colour Within — Site layer
   Layout helpers on top of colour-within.css design tokens.
   Used by index, privacy, support. */

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--cw-canvas);
  color: var(--cw-text-primary);
  font-family: var(--cw-font-rounded);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration-color: color-mix(in oklab, currentColor 35%, transparent);
  text-underline-offset: 3px;
}
a:hover {
  text-decoration-color: currentColor;
}

/* Page-level background — soft orbs on cream paper */
.cw-page {
  min-height: 100vh;
  background:
    radial-gradient(
      560px 560px at 8% 12%,
      color-mix(in oklab, var(--cw-sky) 14%, transparent),
      transparent 70%
    ),
    radial-gradient(
      520px 520px at 92% 88%,
      color-mix(in oklab, var(--cw-rose) 10%, transparent),
      transparent 70%
    );
}

/* Top header bar — used on text pages */
.site-header {
  max-width: 880px;
  margin: 0 auto;
  padding: 32px 24px 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-header .wordmark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}
.site-header .wordmark img.mark {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: block;
}
.site-header .wordmark .name {
  font-family: var(--cw-font-serif);
  font-size: 18px;
  color: var(--cw-text-primary);
  letter-spacing: -0.005em;
}

.site-header nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}
.site-header nav a {
  font-family: var(--cw-font-rounded);
  font-weight: 500;
  font-size: 14px;
  color: var(--cw-text-secondary);
  text-decoration: none;
  padding: 8px 14px;
  border-radius: var(--cw-r-pill);
  transition:
    background 0.15s ease,
    color 0.15s ease;
}
.site-header nav a:hover {
  background: var(--cw-accent-soft);
  color: var(--cw-text-primary);
}
.site-header nav a.is-current {
  background: var(--cw-accent-soft);
  color: var(--cw-text-primary);
}

/* Long-form text page container */
.prose {
  max-width: 720px;
  margin: 24px auto 0;
  padding: 32px 24px 80px;
}

.prose .eyebrow {
  font-family: var(--cw-font-rounded);
  font-weight: 600;
  font-size: 14px;
  color: var(--cw-text-tertiary);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.prose h1 {
  font-family: var(--cw-font-serif);
  font-weight: 400;
  font-size: 44px;
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--cw-text-primary);
  margin: 0 0 12px;
}

.prose .updated {
  font-family: var(--cw-font-rounded);
  font-weight: 500;
  font-size: 14px;
  color: var(--cw-text-tertiary);
  margin: 0 0 32px;
}

.prose .lede {
  font-family: var(--cw-font-rounded);
  font-weight: 400;
  font-size: 18px;
  line-height: 1.55;
  color: var(--cw-text-secondary);
  margin: 0 0 36px;
  text-wrap: pretty;
}

.prose h2 {
  font-family: var(--cw-font-serif);
  font-weight: 400;
  font-size: 26px;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--cw-text-primary);
  margin: 44px 0 12px;
  text-wrap: balance;
}

.prose h3 {
  font-family: var(--cw-font-rounded);
  font-weight: 600;
  font-size: 17px;
  line-height: 1.3;
  color: var(--cw-text-primary);
  margin: 28px 0 8px;
}

.prose p,
.prose li {
  font-family: var(--cw-font-rounded);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.65;
  color: var(--cw-text-primary);
  margin: 0 0 14px;
  text-wrap: pretty;
}

.prose ul,
.prose ol {
  margin: 0 0 18px;
  padding-left: 22px;
}
.prose ul li,
.prose ol li {
  margin: 0 0 6px;
  padding-left: 4px;
}
.prose ul li::marker {
  color: var(--cw-text-secondary);
}

.prose a {
  color: var(--cw-text-primary);
  text-decoration: underline;
  text-decoration-color: color-mix(
    in oklab,
    var(--cw-text-primary) 30%,
    transparent
  );
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: text-decoration-color 0.15s ease;
}
.prose a:hover {
  text-decoration-color: var(--cw-text-primary);
}

.prose strong {
  font-weight: 600;
  color: var(--cw-text-primary);
}

/* Soft card around the FAQ groups on support */
.prose details {
  background: var(--cw-card);
  border: 1px solid var(--cw-card-border);
  border-radius: var(--cw-r-card-sm);
  padding: 18px 22px;
  margin: 0 0 12px;
  box-shadow: var(--cw-shadow-card);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.prose details summary {
  cursor: pointer;
  list-style: none;
  font-family: var(--cw-font-rounded);
  font-weight: 600;
  font-size: 16px;
  color: var(--cw-text-primary);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 4px 0;
}
.prose details summary::-webkit-details-marker {
  display: none;
}
.prose details summary::after {
  content: "";
  width: 10px;
  height: 10px;
  border-right: 1.5px solid var(--cw-text-tertiary);
  border-bottom: 1.5px solid var(--cw-text-tertiary);
  transform: rotate(45deg);
  transition: transform 0.2s ease;
  flex-shrink: 0;
  margin-right: 4px;
}
.prose details[open] summary::after {
  transform: rotate(-135deg);
  margin-bottom: -4px;
}
.prose details > *:not(summary) {
  margin-top: 14px;
}
.prose details > p:last-child,
.prose details > ul:last-child,
.prose details > ol:last-child {
  margin-bottom: 0;
}

/* Contact card on support */
.contact-card {
  background: var(--cw-card);
  border: 1px solid var(--cw-card-border);
  border-radius: var(--cw-r-card);
  padding: 28px 28px;
  box-shadow: var(--cw-shadow-card);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  margin: 8px 0 28px;
}
.contact-card .row {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 0;
}
.contact-card .row + .row {
  border-top: 1px solid var(--cw-card-border);
  margin-top: 6px;
  padding-top: 16px;
}
.contact-card .label {
  font-family: var(--cw-font-rounded);
  font-weight: 600;
  font-size: 14px;
  color: var(--cw-text-primary);
}
.contact-card .meta {
  font-family: var(--cw-font-rounded);
  font-weight: 400;
  font-size: 14px;
  color: var(--cw-text-secondary);
}
.contact-card .meta a {
  color: var(--cw-text-primary);
}

/* Footer */
.site-footer {
  max-width: 880px;
  margin: 0 auto;
  padding: 24px 24px 40px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  border-top: 1px solid var(--cw-card-border);
}
.site-footer .left,
.site-footer .right {
  font-family: var(--cw-font-rounded);
  font-weight: 500;
  font-size: 14px;
  color: var(--cw-text-secondary);
  display: inline-flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.site-footer a {
  color: var(--cw-text-secondary);
  text-decoration: none;
  transition: color 0.15s ease;
}
.site-footer a:hover {
  color: var(--cw-text-primary);
}
.site-footer .dot {
  display: inline-block;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--cw-text-secondary);
  opacity: 0.5;
}
.site-footer .madein {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Small screens */
@media (max-width: 600px) {
  .prose h1 {
    font-size: 34px;
  }
  .prose h2 {
    font-size: 22px;
  }
  .prose {
    padding: 20px 20px 64px;
  }
  .site-header {
    padding: 24px 20px 4px;
    align-items: flex-start;
    gap: 16px;
  }
  .site-header nav {
    max-width: 100%;
  }
  .site-header nav a {
    padding: 7px 10px;
  }
  .site-footer {
    padding: 20px;
  }
}
