/* =====================================================================
   Pages — the prose pages, forms and call-to-action bands
   ---------------------------------------------------------------------
   These styles cover the about page, the contact page, the legal pages
   and anything else built from a config section. They are shared by every
   site.
   ===================================================================== */

/* ---------------------------------------------------------------------
   Prose pages
   --------------------------------------------------------------------- */

.prose-page {
  padding: 56px 24px 72px;
  max-width: 780px;
}

.prose-page .listing-head {
  margin-bottom: 36px;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--border);
}

.prose-sections {
  display: flex;
  flex-direction: column;
  gap: 34px;
}

.prose-section h2 {
  margin: 0 0 10px;
  font-size: 1.16rem;
  font-weight: 700;
  letter-spacing: -.015em;
  color: var(--text);
}

.prose-section p {
  margin: 0 0 12px;
  color: var(--text-dim);
  line-height: 1.72;
}

.prose-section p:last-child { margin-bottom: 0; }

.prose-section a {
  color: var(--accent-text);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.prose-section a:hover { color: var(--accent); }

/* ---------------------------------------------------------------------
   Legal pages
   --------------------------------------------------------------------- */

.legal-page { max-width: 820px; }

.clause-index {
  margin: 0 0 40px;
  padding: 20px 24px;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.clause-index h2 {
  margin: 0 0 12px;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.clause-index ol {
  margin: 0;
  padding-left: 20px;
  columns: 2;
  column-gap: 32px;
}

.clause-index li {
  margin: 0 0 6px;
  break-inside: avoid;
  font-size: .9rem;
  line-height: 1.5;
}

.clause-index a {
  color: var(--text-dim);
  text-decoration: none;
}

.clause-index a:hover {
  color: var(--accent-text);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.clause-list {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: clause;
}

.clause {
  margin: 0 0 34px;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--border);
  counter-increment: clause;
}

.clause:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: 0;
}

.clause h2 {
  margin: 0 0 10px;
  font-size: 1.06rem;
  font-weight: 700;
  letter-spacing: -.01em;
  color: var(--text);
}

.clause h2::before {
  content: counter(clause) ". ";
  color: var(--text-faint);
  font-family: var(--font-mono);
  font-size: .84rem;
}

.clause p {
  margin: 0 0 12px;
  color: var(--text-dim);
  line-height: 1.72;
}

.clause p:last-child { margin-bottom: 0; }

/* ---------------------------------------------------------------------
   Forms
   --------------------------------------------------------------------- */

.site-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 480px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0;
}

.form-field label {
  font-size: .85rem;
  font-weight: 600;
  color: var(--text-dim);
}

.form-field input,
.form-field textarea {
  padding: 11px 14px;
  background: var(--bg-input);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-s);
  color: var(--text);
  font: inherit;
  font-size: .95rem;
  line-height: 1.5;
  resize: vertical;
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.form-actions { margin: 0; }

.form-note {
  margin: 0;
  font-size: .84rem;
  color: var(--text-faint);
}

.form-note a { color: var(--accent-text); }

/* A hidden field that only a bot would fill in. */
.form-honeypot {
  position: absolute !important;
  left: -9999px;
  width: 1px; height: 1px;
  overflow: hidden;
}

/* ---------------------------------------------------------------------
   Contact
   --------------------------------------------------------------------- */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 44px;
  align-items: start;
  margin-bottom: 40px;
}

.social-links {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.social-links a {
  display: inline-block;
  padding: 7px 14px;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-dim);
  text-decoration: none;
  font-size: .87rem;
  font-weight: 550;
}

.social-links a:hover {
  color: var(--text);
  border-color: var(--border-strong);
}

/* ---------------------------------------------------------------------
   Call to action
   --------------------------------------------------------------------- */

.page-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
  margin-top: 48px;
  padding: 28px 32px;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.page-cta h2 {
  margin: 0 0 6px;
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: -.015em;
}

.page-cta p {
  margin: 0;
  color: var(--text-dim);
  font-size: .93rem;
}

/* ---------------------------------------------------------------------
   Narrow screens
   --------------------------------------------------------------------- */

@media (max-width: 720px) {
  .prose-page { padding: 36px 20px 52px; }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .clause-index ol { columns: 1; }

  .page-cta {
    flex-direction: column;
    align-items: flex-start;
    padding: 22px 20px;
  }
}
