/* Ministry Workroom suite site.
   COL brand tokens. System font stacks only: Georgia for display, Geist when
   installed (falls back to the platform UI font) for body. No web font
   requests, no scripts. */

:root {
  --ink: #111821;
  --black: #090d12;
  --paper: #fbfaf6;
  --bone: #f2efe7;
  --ink-soft: #4d5866;
  --line: #c9c7c0;
  --blue: #315cff;
  --link: #1736c8;
  --signal: #f0b34b;
  --sky: #aabaff;
  --font-display: Georgia, "Times New Roman", Times, serif;
  --font-body: Geist, "Geist Variable", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --wrap: 1120px;
  --gutter: 16px;
  --radius: 6px;
  --target: 44px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.15;
  margin: 0 0 0.5em;
  letter-spacing: -0.005em;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
}

h1.display {
  font-size: clamp(2.25rem, 6vw, 4rem);
}

h2 {
  font-size: clamp(1.6rem, 3.4vw, 2.25rem);
}

h3 {
  font-size: 1.25rem;
}

p {
  margin: 0 0 1em;
}

a {
  color: var(--link);
  text-underline-offset: 0.15em;
}

a:hover {
  color: var(--blue);
}

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}

main:focus {
  outline: none;
}

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* Skip link */
.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  z-index: 100;
  padding: 12px 16px;
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--radius);
  min-height: var(--target);
  display: inline-flex;
  align-items: center;
}

.skip-link:focus {
  top: var(--gutter);
  color: var(--paper);
}

/* Header */
.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  min-height: var(--target);
  text-decoration: none;
  color: var(--ink);
  padding: 6px 0;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.35rem;
  line-height: 1.1;
}

.brand-by {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.site-nav ul,
.footer-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: var(--target);
  padding: 0 14px;
  text-decoration: none;
  color: var(--ink);
  border-radius: var(--radius);
}

.site-nav a:hover {
  background: var(--bone);
  color: var(--ink);
}

.site-nav a[aria-current="page"] {
  box-shadow: inset 0 -3px 0 var(--signal);
}

/* Sections */
.hero {
  padding: 56px 0 40px;
}

.hero-compact {
  padding: 32px 0 24px;
}

.section {
  padding: 48px 0;
}

.section-bone {
  background: var(--bone);
}

.section-endorsement {
  background: var(--ink);
  color: var(--paper);
}

.section-endorsement a {
  color: var(--sky);
}

.section-endorsement .display {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  max-width: 24ch;
}

.kicker {
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0 0 0.75em;
}

.kicker-light {
  color: var(--sky);
}

.lede,
.section-lede {
  font-size: 1.2rem;
  max-width: 60ch;
  color: var(--ink);
}

.lede-light {
  font-size: 1.1rem;
  max-width: 60ch;
  color: var(--bone);
}

.note {
  padding: 12px 16px;
  border-left: 4px solid var(--signal);
  background: var(--paper);
  max-width: 70ch;
}

.section-bone .note {
  background: var(--paper);
}

.banner {
  margin: 8px 0 20px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-left: 6px solid var(--signal);
  background: var(--bone);
  max-width: 70ch;
}

.banner p {
  margin: 0;
}

.muted {
  color: var(--ink-soft);
}

/* Actions */
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  align-items: center;
  margin: 8px 0 16px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--target);
  padding: 10px 22px;
  border-radius: var(--radius);
  border: 1px solid var(--ink);
  text-decoration: none;
  font-weight: 500;
  color: var(--ink);
  background: var(--paper);
}

.button-primary {
  background: var(--ink);
  color: var(--paper);
}

.button-primary:hover {
  background: var(--black);
  color: var(--paper);
}

.button-light,
.section-endorsement .button-light {
  border-color: var(--paper);
  background: var(--paper);
  color: var(--ink);
}

.button-light:hover,
.section-endorsement .button-light:hover {
  background: var(--bone);
  color: var(--ink);
}

.text-link {
  display: inline-flex;
  align-items: center;
  min-height: var(--target);
  font-weight: 500;
}

.text-link-light {
  color: var(--sky);
}

/* Grid and cards */
.grid {
  display: grid;
  gap: 20px;
  margin: 24px 0;
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
}

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 22px 8px;
}

.section-bone .card {
  background: var(--paper);
}

.card h3,
.app-card h2 {
  margin-top: 0;
}

/* App cards use h2 on /apps/ (they follow the h1 there) and h3 elsewhere;
   both render at the h3 size. */
.app-card h2 {
  font-size: 1.25rem;
}

.card h3 a,
.app-card h2 a {
  color: var(--ink);
  text-decoration: none;
  display: inline-block;
  padding: 4px 0;
}

.card h3 a:hover,
.app-card h2 a:hover {
  text-decoration: underline;
}

.card-from {
  color: var(--ink-soft);
  font-size: 0.95rem;
  margin-top: -0.25em;
}

.card-audience {
  font-size: 0.98rem;
}

.status {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--ink);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0 0 12px;
  background: var(--paper);
  color: var(--ink);
}

.status-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: baseline;
}

.status-row .status {
  margin: 0;
}

.status-note {
  color: var(--ink-soft);
  max-width: 60ch;
}

/* The offer line a product declares ("Free to start. Plans for teams."). */
.offer {
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 12px;
}

.status-row + .offer {
  margin-top: 12px;
}

.status-list dt {
  font-weight: 600;
  margin-top: 1em;
}

.status-list dd {
  margin: 0.25em 0 0;
  max-width: 70ch;
}

/* Steps */
.steps {
  counter-reset: step;
  list-style: none;
  margin: 24px 0;
  padding: 0;
  display: grid;
  gap: 16px;
}

.steps li {
  counter-increment: step;
  position: relative;
  padding: 16px 16px 4px 64px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.steps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 18px;
  top: 16px;
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--ink-soft);
}

.steps h3 {
  margin: 0 0 0.25em;
}

.tags {
  list-style: none;
  padding: 0;
  margin: 16px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tags li {
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--paper);
}

.link-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.link-list li {
  padding: 6px 0;
}

.link-list a {
  display: inline-block;
  min-height: 32px;
  padding: 6px 0;
}

/* Breadcrumbs */
.breadcrumbs ol {
  list-style: none;
  padding: 0;
  margin: 0 0 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  font-size: 0.9rem;
}

.breadcrumbs li + li::before {
  content: "/";
  color: var(--ink-soft);
  padding: 0 6px 0 2px;
}

.breadcrumbs a {
  display: inline-block;
  padding: 6px 2px;
}

.breadcrumbs a[aria-current="page"] {
  color: var(--ink-soft);
  text-decoration: none;
}

/* Table */
/* A table never widens the page: on a narrow phone it scrolls inside its own
   labelled box (the wrapper in lib/pages.mjs), and long words such as domain
   names wrap. scripts/check.mjs requires the wrapper on every table. */
.table-scroll {
  max-width: 100%;
  overflow-x: auto;
  margin: 16px 0;
}

.table-scroll > .table {
  margin: 0;
}

.table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  background: var(--paper);
  border: 1px solid var(--line);
}

.table caption {
  text-align: left;
  color: var(--ink-soft);
  padding: 8px 0;
  caption-side: top;
}

.table th,
.table td {
  text-align: left;
  padding: 10px 8px;
  border-top: 1px solid var(--line);
  vertical-align: top;
}

/* Only links (domain names) may break mid-word; names and words wrap at spaces. */
.table td a {
  overflow-wrap: anywhere;
}

.table thead th {
  border-top: 0;
  background: var(--bone);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Prose pages */
.prose h2 {
  font-size: 1.5rem;
  margin-top: 1.75em;
}

.prose p {
  max-width: 70ch;
}

/* Footer */
.site-footer {
  background: var(--ink);
  color: var(--bone);
  margin-top: 0;
}

.site-footer a {
  color: var(--sky);
}

.site-footer a:hover {
  color: var(--paper);
}

.footer-grid {
  display: grid;
  gap: 32px;
  padding-top: 48px;
  padding-bottom: 32px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
}

.footer-endorsement {
  grid-column: span 1;
}

.footer-lede {
  max-width: 44ch;
}

.footer-nav ul {
  flex-direction: column;
  gap: 0;
}

.footer-nav a {
  display: inline-flex;
  align-items: center;
  min-height: var(--target);
}

.footer-note {
  font-size: 0.9rem;
  color: var(--line);
}

.footer-bottom {
  border-top: 1px solid rgba(201, 199, 192, 0.3);
  padding-top: 20px;
  padding-bottom: 28px;
  font-size: 0.9rem;
  color: var(--line);
}

.footer-bottom p {
  margin: 0;
}

@media (min-width: 720px) {
  .table th,
  .table td {
    padding: 12px;
  }

  .table td a {
    overflow-wrap: normal;
  }

  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
  }

  .hero {
    padding: 80px 0 56px;
  }

  .section {
    padding: 64px 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

@media print {
  .site-header,
  .site-footer,
  .skip-link {
    display: none;
  }
}
