/* Citeborne — ink on paper */

:root {
  --paper: #F4EFE6;
  --paper-deep: #EBE4D8;
  --ink: #2A2A2A;
  --ink-soft: #4A4640;
  --cite-blue: #2B5A7A;
  --ochre: #C4A35A;
  --rule: #D4CBB8;
  --max: 42rem;
  --wide: 52rem;
  --pad: clamp(1.25rem, 4vw, 2.5rem);
  --serif: "Fraunces", "Source Serif 4", "Libre Baskerville", Georgia, "Times New Roman", serif;
  --body: "Source Serif 4", "Libre Baskerville", Georgia, "Times New Roman", serif;
  --sans: "Source Sans 3", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--paper);
  background-image:
    radial-gradient(ellipse at 50% 0%, rgba(196, 163, 90, 0.06), transparent 55%),
    url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.125rem;
  line-height: 1.65;
  font-weight: 400;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--cite-blue);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  transition: color 0.15s ease;
}

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

a:focus-visible {
  outline: 2px solid var(--cite-blue);
  outline-offset: 3px;
  border-radius: 2px;
}

/* Skip link */
.skip-link {
  position: absolute;
  left: var(--pad);
  top: -100%;
  z-index: 100;
  background: var(--ink);
  color: var(--paper);
  padding: 0.5rem 1rem;
  font-family: var(--sans);
  font-size: 0.875rem;
  text-decoration: none;
}

.skip-link:focus {
  top: 0.75rem;
}

/* Header */
.site-header {
  border-bottom: 1px solid var(--rule);
  background: rgba(244, 239, 230, 0.92);
  backdrop-filter: blur(6px);
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-inner {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 1rem var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.wordmark {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
  line-height: 1;
  color: inherit;
}

.wordmark .cite {
  color: var(--cite-blue);
  font-weight: 650;
}

.wordmark .borne {
  color: var(--ink);
  font-weight: 500;
}

.wordmark:hover .cite,
.wordmark:hover .borne {
  color: var(--cite-blue);
}

.wordmark:focus-visible {
  outline: 2px solid var(--cite-blue);
  outline-offset: 4px;
  border-radius: 2px;
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 1.35rem;
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.site-nav a {
  color: var(--ink-soft);
  text-decoration: none;
  padding: 0.25rem 0;
  border-bottom: 1.5px solid transparent;
}

.site-nav a:hover {
  color: var(--ink);
  border-bottom-color: var(--rule);
}

.site-nav a[aria-current="page"] {
  color: var(--cite-blue);
  border-bottom-color: var(--cite-blue);
}

/* Main */
main {
  flex: 1;
  width: 100%;
}

.page {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 4.5rem) var(--pad) clamp(3rem, 8vw, 5.5rem);
}

.page--home {
  max-width: var(--wide);
}

/* Hero / lockup */
.hero {
  text-align: center;
  margin-bottom: clamp(2.5rem, 6vw, 4rem);
  padding-bottom: clamp(2rem, 5vw, 3rem);
  border-bottom: 1px solid var(--rule);
}

.hero-lockup {
  margin: 0 auto 2.25rem;
  max-width: 36rem;
}

.hero-lockup img {
  width: 100%;
  border-radius: 2px;
  box-shadow: 0 1px 0 rgba(42, 42, 42, 0.04), 0 12px 40px rgba(42, 42, 42, 0.06);
}

.lead {
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2.6vw, 1.75rem);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 0 auto;
  max-width: 34rem;
}

/* Typography */
.page-title {
  font-family: var(--serif);
  font-size: clamp(1.85rem, 4vw, 2.5rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 0 0 1.25rem;
  color: var(--ink);
}

.page-title .cite {
  color: var(--cite-blue);
}

.eyebrow {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ochre);
  margin: 0 0 0.75rem;
}

.prose p {
  margin: 0 0 1.15rem;
  color: var(--ink);
}

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

.prose strong {
  font-weight: 600;
}

.section {
  margin-top: clamp(2.25rem, 5vw, 3.25rem);
}

.section-title {
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2.4vw, 1.6rem);
  font-weight: 600;
  letter-spacing: -0.015em;
  margin: 0 0 1.25rem;
  color: var(--ink);
  padding-bottom: 0.65rem;
  border-bottom: 1px solid var(--rule);
}

/* How it works */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.35rem;
  counter-reset: step;
}

.steps li {
  position: relative;
  padding: 1.25rem 1.35rem 1.25rem 4rem;
  background: rgba(255, 255, 255, 0.35);
  border: 1px solid var(--rule);
  border-radius: 3px;
  counter-increment: step;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 1.15rem;
  top: 1.2rem;
  width: 1.75rem;
  height: 1.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--paper);
  background: var(--cite-blue);
  border-radius: 50%;
  line-height: 1;
}

.steps li p {
  margin: 0;
  font-size: 1.05rem;
}

.steps li strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: var(--ink);
}

/* Audience note */
.note {
  margin-top: clamp(2rem, 4vw, 2.75rem);
  padding: 1.35rem 1.5rem;
  border-left: 3px solid var(--ochre);
  background: rgba(196, 163, 90, 0.08);
  font-size: 1.05rem;
}

.note p {
  margin: 0;
}

/* Service cards */
.service-list {
  display: grid;
  gap: 1.5rem;
  margin-top: 2rem;
}

.service-card {
  padding: 1.5rem 1.5rem 1.6rem;
  border: 1px solid var(--rule);
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.35);
}

.service-card h2 {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0 0 0.75rem;
  color: var(--cite-blue);
}

.service-card p {
  margin: 0;
  font-size: 1.05rem;
}

.disclaimer {
  margin: 0 0 0.25rem;
  padding: 1.15rem 1.35rem;
  background: var(--paper-deep);
  border-radius: 3px;
  font-size: 1.05rem;
}

/* CTAs */
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1rem;
  margin-top: clamp(2rem, 4vw, 2.75rem);
  justify-content: center;
}

.page:not(.page--home) .cta-row {
  justify-content: flex-start;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 0.7rem 1.35rem;
  border-radius: 2px;
  text-decoration: none;
  border: 1.5px solid transparent;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.button--primary {
  background: var(--cite-blue);
  color: var(--paper);
  border-color: var(--cite-blue);
}

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

.button--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--rule);
}

.button--ghost:hover {
  border-color: var(--cite-blue);
  color: var(--cite-blue);
}

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

/* Contact invitation */
.invite {
  max-width: 34rem;
}

.invite-list {
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.65rem;
}

.invite-list li {
  display: flex;
  gap: 0.75rem;
  align-items: baseline;
  padding: 0.85rem 1rem;
  border: 1px solid var(--rule);
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.35);
  font-size: 1.05rem;
}

.invite-list span {
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ochre);
  min-width: 5.5rem;
}

.soon {
  margin-top: 2rem;
  font-family: var(--sans);
  font-size: 0.875rem;
  color: var(--ink-soft);
  font-style: italic;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--rule);
  padding: 1.75rem var(--pad);
  margin-top: auto;
}

.footer-inner {
  max-width: var(--wide);
  margin: 0 auto;
  text-align: center;
  font-family: var(--sans);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
}

.footer-brand {
  font-family: var(--serif);
  font-size: 1rem;
  letter-spacing: -0.01em;
  margin-bottom: 0.4rem;
  color: var(--ink);
}

.footer-brand .cite {
  color: var(--cite-blue);
  font-weight: 650;
}

.footer-brand .borne {
  font-weight: 500;
}

.footer-lines {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem 0.75rem;
}

.footer-lines .tagline {
  color: var(--ochre);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.72rem;
}

.footer-lines .cats {
  color: var(--ink-soft);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.72rem;
}

.footer-lines .sep {
  color: var(--rule);
}

/* Utility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Responsive */
@media (max-width: 640px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.85rem;
    padding-top: 0.9rem;
    padding-bottom: 0.9rem;
  }

  .site-nav ul {
    gap: 0.1rem 1rem;
  }

  .steps li {
    padding-left: 3.75rem;
  }

  .invite-list li {
    flex-direction: column;
    gap: 0.25rem;
  }
}

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

  a,
  .button {
    transition: none;
  }
}

/* ——— Check page (lead tool) ——— */
.page--check {
  max-width: var(--max);
}

.lead--page {
  text-align: left;
  margin: 0 0 1.15rem;
  max-width: none;
  font-size: clamp(1.2rem, 2.2vw, 1.45rem);
}

.check-disclaimer {
  margin: 1rem 0 0;
  padding: 1rem 1.2rem;
  background: var(--paper-deep);
  border-radius: 3px;
  font-size: 0.98rem;
  color: var(--ink-soft);
}

.check-disclaimer--quiet {
  font-family: var(--sans);
  font-size: 0.875rem;
  font-style: italic;
  background: transparent;
  padding: 0.5rem 0 0;
  border-left: 3px solid var(--ochre);
  padding-left: 0.9rem;
  margin-top: 1.25rem;
}

.check-disclaimer--report {
  margin-top: 1.25rem;
}

.check-step {
  margin-top: clamp(2rem, 4vw, 2.75rem);
  outline: none;
}

.check-step-intro {
  margin: 0 0 1.15rem;
  color: var(--ink);
  font-size: 1.05rem;
}

.check-form {
  display: grid;
  gap: 1.15rem;
}

.check-field {
  display: grid;
  gap: 0.4rem;
}

.check-field label {
  font-family: var(--sans);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink);
}

.check-field .req,
.check-field .opt {
  font-weight: 500;
  color: var(--ink-soft);
  letter-spacing: 0;
}

.check-field input,
.check-field select,
.check-field textarea {
  font-family: var(--body);
  font-size: 1.05rem;
  line-height: 1.45;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid var(--rule);
  border-radius: 3px;
  padding: 0.7rem 0.85rem;
  width: 100%;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.check-field textarea {
  resize: vertical;
  min-height: 10rem;
}

.check-field input:focus-visible,
.check-field select:focus-visible,
.check-field textarea:focus-visible {
  outline: 2px solid var(--cite-blue);
  outline-offset: 2px;
  border-color: var(--cite-blue);
}

.check-field input::placeholder,
.check-field textarea::placeholder {
  color: #8a8478;
}

button.button {
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  font: inherit;
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.check-question-list {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
  display: grid;
  gap: 0.65rem;
}

.check-question-item {
  margin: 0;
}

.check-question-label {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  padding: 1rem 1.15rem;
  border: 1px solid var(--rule);
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.check-question-label:hover {
  border-color: var(--cite-blue);
}

.check-question-label:has(input:checked) {
  border-color: var(--cite-blue);
  background: rgba(43, 90, 122, 0.07);
  box-shadow: inset 0 0 0 1px var(--cite-blue);
}

.check-question-label input {
  margin-top: 0.3rem;
  accent-color: var(--cite-blue);
  flex-shrink: 0;
}

.check-question-text {
  font-size: 1.05rem;
  line-height: 1.45;
  color: var(--ink);
}

.check-selected-question {
  margin: 0 0 1.35rem;
  padding: 1rem 1.25rem;
  border-left: 3px solid var(--cite-blue);
  background: rgba(43, 90, 122, 0.06);
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 500;
  line-height: 1.4;
  color: var(--ink);
}

.check-report {
  margin-top: 0.25rem;
}

.check-report-status {
  padding: 1.35rem 1.5rem;
  border-radius: 3px;
  border: 1px solid var(--rule);
  margin-bottom: 1.25rem;
}

.check-report-status--found {
  border-color: var(--cite-blue);
  background: rgba(43, 90, 122, 0.08);
}

.check-report-status--not-found {
  border-color: var(--rule);
  background: var(--paper-deep);
}

.check-report-status--mentioned {
  border-color: var(--ochre);
  background: rgba(196, 163, 90, 0.12);
}

.check-report-outcome {
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin: 0 0 0.5rem;
  color: var(--ink);
}

.check-report-status--found .check-report-outcome {
  color: var(--cite-blue);
}

.check-report-explain {
  margin: 0;
  font-size: 1.05rem;
  color: var(--ink);
}

.check-report-meta {
  margin: 0 0 0.65rem;
  font-size: 1.02rem;
}

.check-label {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ochre);
  margin-right: 0.5rem;
  min-width: 4.5rem;
}

.check-next {
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
}

.check-next-title {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
  color: var(--ink);
}

.check-next p {
  margin: 0 0 1rem;
  font-size: 1.05rem;
}

.check-next .cta-row {
  margin-top: 0;
  justify-content: flex-start;
}

@media (max-width: 640px) {
  .check-question-label {
    padding: 0.9rem 1rem;
  }
}
