/* Readable layout for block-editor pages such as the legal pages (see page.php). */

.tart-text-page {
  width: min(880px, calc(100% - 2 * var(--rail, 24px)));
  margin: 0 auto;
  padding: clamp(56px, 8vw, 110px) 0 clamp(64px, 9vw, 120px);
  color: var(--ink-2, #332c24);
  font: 400 17px/1.7 var(--sans, 'Space Grotesk', sans-serif);
}

.tart-text-page__header {
  margin-bottom: clamp(32px, 5vw, 56px);
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(20, 17, 13, .18);
}

.tart-text-page__header h1 {
  margin: 0;
  color: var(--ink, #14110d);
  font: 400 clamp(54px, 8vw, 104px)/.9 var(--display-font, 'Bebas Neue', sans-serif);
  letter-spacing: -.01em;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.tart-text-page__content> :first-child {
  margin-top: 0;
}

.tart-text-page__content h2 {
  margin: 2.2em 0 .6em;
  color: var(--ink, #14110d);
  font: 400 clamp(30px, 3.4vw, 40px)/1 var(--display-font, 'Bebas Neue', sans-serif);
  letter-spacing: .01em;
  text-transform: uppercase;
}

.tart-text-page__content h3 {
  margin: 1.8em 0 .5em;
  color: var(--ink, #14110d);
  font: 700 19px/1.35 var(--sans, 'Space Grotesk', sans-serif);
}

.tart-text-page__content p,
.tart-text-page__content ul,
.tart-text-page__content ol {
  margin: 0 0 1.1em;
}

.tart-text-page__content ul,
.tart-text-page__content ol {
  padding-left: 1.3em;
}

.tart-text-page__content li {
  margin-bottom: .4em;
}

.tart-text-page__content strong {
  color: var(--ink, #14110d);
}

.tart-text-page__content a {
  color: var(--mark, #4e3a8a);
  text-decoration: underline;
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}

.tart-text-page__content .tart-updated {
  color: var(--mute, #6b6353);
  font: 400 13px/1.5 var(--mono, 'IBM Plex Mono', monospace);
  letter-spacing: .06em;
  text-transform: uppercase;
}

.tart-text-page__content blockquote {
  margin: 1.4em 0;
  padding: 18px 22px;
  border-left: 4px solid var(--mark, #4e3a8a);
  background: var(--paper-soft, #f5efe3);
}

.tart-text-page__content blockquote p:last-child {
  margin-bottom: 0;
}

.tart-text-page__content figure.wp-block-table {
  margin: 0 0 1.6em;
  overflow-x: auto;
}

.tart-text-page__content table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  line-height: 1.5;
}

.tart-text-page__content th,
.tart-text-page__content td {
  padding: 10px 12px;
  border: 1px solid rgba(20, 17, 13, .16);
  text-align: left;
  vertical-align: top;
}

.tart-text-page__content th {
  background: var(--paper-deep, #e4dccb);
  color: var(--ink, #14110d);
  font-weight: 700;
}

.tart-text-page__content td code,
.tart-text-page__content code {
  font: 400 13px/1.4 var(--mono, 'IBM Plex Mono', monospace);
  overflow-wrap: anywhere;
}

@media (max-width: 680px) {
  .tart-text-page {
    font-size: 16px;
  }

  .tart-text-page__content table {
    min-width: 520px;
  }
}
