/* ==========================================================================
   Chess Anywhere — prose pages (/privacy, /press, /llm-info)
   Shared chrome is in css/base.css; this is only what a page of running
   text needs. Each page sets its own measure with a --measure custom
   property, because the right column width for a privacy policy is not the
   right one for a screenshot grid.
   ========================================================================== */

.page {
  --measure: 640px;
  max-width: var(--measure);
  margin: 0 auto;
  padding: clamp(48px, 10vw, 110px) 24px;
}

.page--wide { --measure: 900px; }
.page--mono { --measure: 760px; }

.page__title {
  font-family: var(--font-heading);
  font-weight: var(--font-heading-weight);
  text-transform: uppercase;
  font-size: clamp(32px, 5vw, 44px);
  line-height: 1.05;
  margin: 0 0 28px;
  text-wrap: balance;
}

/* The opening line of a policy or a press summary carries the whole point,
   so it is set a size up from the body. */
.page__lead {
  font-size: 19px;
  line-height: 1.6;
  margin: 0 0 24px;
}

.page p {
  font-size: 16px;
  line-height: 1.7;
  margin: 0 0 20px;
  color: color-mix(in srgb, var(--color-text) 85%, transparent);
}

.page h2 {
  font-family: var(--font-heading);
  font-weight: var(--font-heading-weight);
  text-transform: uppercase;
  font-size: 22px;
  margin: 0 0 16px;
}

.page ul {
  font-size: 16px;
  line-height: 1.8;
  margin: 0 0 48px;
  padding-left: 20px;
  max-width: 60ch;
}

.page__note {
  font-family: var(--font-mono);
  font-size: 12px;
  color: color-mix(in srgb, var(--color-text) 55%, transparent);
  margin: 32px 0 0;
}

/* Wide content must scroll inside its own box rather than pushing the page
   sideways — a mono table of rule names is wider than a phone. */
.page__scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* The press contact address is the whole point of its paragraph, so it is
   worth making a real target rather than a line of text to pinch at. */
.page p > a[href^='mailto:'] {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.page .blueprint { margin-bottom: 40px; }

/* ---------------------------------------------------------------------- */
/* Screenshot grids (/press)                                              */
/* ---------------------------------------------------------------------- */

.shots {
  display: grid;
  gap: 20px;
  margin-bottom: 40px;
}
.shots--phone { grid-template-columns: repeat(auto-fit, minmax(min(160px, 100%), 1fr)); }
.shots--tablet { grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); }

.shots figure { margin: 0; }

/* No overflow:hidden here — a blueprint draws its registration marks outside
   its own box, so clipping the frame erases the corners. The image is
   width:100% and cannot spill anyway. */
.shots .blueprint { margin-bottom: 0; }

.shots img {
  display: block;
  width: 100%;
  height: auto;
}

.shots figcaption {
  font-size: 11px;
  margin-top: 6px;
  color: color-mix(in srgb, var(--color-text) 55%, transparent);
}

/* ---------------------------------------------------------------------- */
/* Machine-readable page (/llm-info)                                      */
/* ---------------------------------------------------------------------- */
/* Set entirely in mono: the page is a rendering of llms.txt, and looking
   like the plain-text file is the point. */

.page--mono {
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.75;
}

.page--mono .page__note--intro {
  margin: 0 0 40px;
  font-size: 14px;
  color: color-mix(in srgb, var(--color-text) 60%, transparent);
}

.page--mono h2 {
  font-family: var(--font-mono);
  font-weight: 600;
  text-transform: none;
  font-size: 15px;
  margin: 0 0 10px;
  color: var(--color-accent-700);
}

.page--mono pre {
  white-space: pre-wrap;
  word-break: break-word;
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.75;
  margin: 0 0 32px;
}

.page--mono .blueprint pre { margin: 0; }
.page--mono .blueprint { padding: 20px 24px; }

/* ---------------------------------------------------------------------- */
/* Responsive                                                             */
/* ---------------------------------------------------------------------- */

@media (max-width: 700px) {
  .page__lead { font-size: 18px; }
  .page--mono,
  .page--mono pre { font-size: 13px; }
}

/* ---------------------------------------------------------------------- */
/* Prose-page footer                                                      */
/* ---------------------------------------------------------------------- */
/* Aligns to the same measure as the page above it, so the footer links sit
   under the text rather than under the full 1200px grid. */

.site-footer--page { padding: 32px 0; }

.site-footer--page nav {
  max-width: var(--measure, 640px);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 14px;
}

.site-footer--page.is-wide { --measure: 900px; }
.site-footer--page.is-mono { --measure: 760px; }
