/* Redaktik placeholder. System fonts only: no third-party requests. */
:root {
  --paper: #eef1f5;
  --sheet: #ffffff;
  --ink: #1a2233;
  --ink-soft: #5b6578;
  --rule: #d6dbe4;
  --pencil: #2340e8;
  --marker: #ffe45c;
  --serif: "Charter", "Bitstream Charter", "Iowan Old Style", "Sitka Text", Cambria, Georgia, serif;
  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  /* Fluid root size: every rem-based measure (container, gaps, type) scales
     with the viewport, 16px at 1000px wide up to 23px from about 2270px. */
  font-size: clamp(16px, 0.55vw + 10.5px, 23px);
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.55;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a { color: var(--pencil); text-underline-offset: 0.18em; }
a:focus-visible { outline: 2px solid var(--pencil); outline-offset: 3px; border-radius: 2px; }

.top, main, footer { width: 100%; max-width: 62rem; margin: 0 auto; padding-inline: clamp(1.25rem, 4vw, 2.5rem); }

.more { margin-top: 5rem; padding-inline: clamp(1.75rem, 4vw, 3.25rem); }
.more h2, .cms h2 {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 3vw, 2rem);
  letter-spacing: -0.015em;
  line-height: 1.2;
  margin: 0 0 1.75rem;
}
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem 2.5rem; margin: 0; }
.features div { border-top: 2px solid var(--ink); padding-top: 0.9rem; }
.features dt { font-weight: 650; margin-bottom: 0.35rem; }
.features dd { margin: 0; color: var(--ink-soft); font-size: 0.98rem; }

.cms {
  margin-top: 5rem;
  background: var(--ink);
  color: #e8ecf3;
  border-radius: 3px;
  padding: clamp(1.75rem, 4vw, 3.25rem);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2.5rem 3.5rem;
}
.cms h2 { color: #fff; max-width: 18ch; margin-bottom: 1rem; }
.cms p { max-width: 36em; margin: 0; font-size: 1.05rem; color: #c3cad6; }
.cms .ask { grid-column: 1 / -1; color: #fff; font-weight: 600; display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.cms .contact {
  display: inline-block;
  color: var(--ink);
  background: var(--marker);
  font-weight: 650;
  text-decoration: none;
  padding: 0.55rem 1rem;
  border-radius: 3px;
}
.cms .contact:hover { background: #fff; }
.cms .contact:focus-visible { outline-color: var(--marker); }

.top { padding-top: 1.5rem; display: flex; justify-content: space-between; align-items: baseline; }
.logo { font-family: var(--serif); font-weight: 700; font-size: 1.35rem; letter-spacing: -0.01em; color: var(--ink); text-decoration: none; }
.logo::after { content: ""; display: inline-block; width: 0.42em; height: 0.42em; margin-left: 0.12em; border-radius: 50%; background: var(--pencil); }
.status { color: var(--ink-soft); font-size: 0.95rem; }

main { flex: 1; padding-block: clamp(1.25rem, 3vh, 2rem) 4rem; }

/* The manuscript: example sentences edited against the press code, one at a time. */
.sheet {
  position: relative;
  margin: 0;
  background: var(--sheet);
  padding: clamp(1.75rem, 4vw, 3.25rem) clamp(1.75rem, 4vw, 3.25rem) 1.5rem;
  border-radius: 3px;
  box-shadow: 0 1px 0 var(--rule), 0 24px 48px -28px rgba(26, 34, 51, 0.35);
}
.sheet::before {
  /* margin rule between text column and notes */
  content: "";
  position: absolute;
  top: 1.5rem; bottom: 1.5rem;
  right: calc(15rem + clamp(1.75rem, 4vw, 3.25rem) + 1.25rem);
  border-left: 1px solid var(--rule);
}
/* All slides share one grid cell, so the sheet keeps the height of the tallest. */
.slides { display: grid; }
.slide {
  grid-area: 1 / 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 15rem;
  gap: 2.5rem;
  align-items: center;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.35s ease, visibility 0s linear 0.35s;
}
.slide.is-active { visibility: visible; opacity: 1; transition: opacity 0.35s ease; }

.draft {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 3.4vw, 2.4rem);
  line-height: 1.45;
  margin: 0;
}
/* Edit marks. Backgrounds follow line wraps, so every mark survives narrow screens. */
.draft .hl { background: linear-gradient(var(--marker), var(--marker)) no-repeat 0 60% / 100% 70%; }
.draft del {
  text-decoration: none;
  color: var(--ink-soft);
  background: linear-gradient(var(--pencil), var(--pencil)) no-repeat 0 58% / 100% 0.09em;
}
.draft ins {
  text-decoration: underline 0.06em;
  text-underline-offset: 0.18em;
  color: var(--pencil);
}
.note {
  font-size: 0.95rem;
  color: var(--ink-soft);
  border-left: 3px solid var(--pencil);
  padding-left: 1rem;
}
.note b { display: block; color: var(--pencil); font-size: 1.05rem; margin-bottom: 0.2rem; }

/* Sequence per slide: mark, note, strike, insert. Re-runs whenever a slide becomes active. */
.is-active .hl { animation: mark 0.7s cubic-bezier(.6,.1,.3,1) 0.4s both; }
.is-active .note { animation: appear 0.5s ease-out 1.1s both; }
.is-active del { animation: strike 0.5s ease-out 1.8s both; }
.is-active ins { animation: insert 0.6s ease-out 2.4s both; }

@keyframes mark { from { background-size: 0% 70%; } to { background-size: 100% 70%; } }
@keyframes strike { from { background-size: 0% 0.09em; color: var(--ink); } to { background-size: 100% 0.09em; color: var(--ink-soft); } }
@keyframes insert { from { font-size: 0; opacity: 0; } to { font-size: 1em; opacity: 1; } }
@keyframes appear { from { opacity: 0; transform: translateX(-6px); } to { opacity: 1; transform: none; } }

.dots { display: flex; gap: 0.25rem; margin-top: 1.25rem; margin-left: -0.5rem; }
.dots button {
  width: 1.75rem; height: 1.75rem;
  padding: 0; border: 0; background: none; cursor: pointer;
  display: grid; place-items: center;
}
.dots button::before {
  content: "";
  width: 0.5rem; height: 0.5rem; border-radius: 50%;
  background: var(--rule);
  transition: background 0.2s, transform 0.2s;
}
.dots button:hover::before { background: var(--ink-soft); }
.dots button[aria-pressed="true"]::before { background: var(--pencil); transform: scale(1.3); }
.dots button:focus-visible { outline: 2px solid var(--pencil); outline-offset: 0; border-radius: 50%; }

@media (prefers-reduced-motion: reduce) {
  .is-active .hl, .is-active .note, .is-active del, .is-active ins { animation: none; }
  .slide, .slide.is-active { transition: none; }
}

.pitch { display: grid; grid-template-columns: minmax(0, 1fr) 15rem; gap: 2.5rem; margin-top: 3.5rem; padding-inline: clamp(1.75rem, 4vw, 3.25rem); }
.pitch h1 {
  font-family: var(--serif);
  font-size: clamp(1.9rem, 4.2vw, 3rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 1.25rem;
  text-wrap: balance;
}
.pitch p { margin: 0 0 1rem; max-width: 36em; color: var(--ink-soft); font-size: 1.15rem; }
.pitch .soon { color: var(--ink); font-weight: 600; margin-top: 1.75rem; }
.facts { list-style: none; margin: 0.4rem 0 0; padding: 0; font-size: 0.95rem; color: var(--ink-soft); }
.facts li { padding: 0.75rem 0; border-top: 1px solid var(--rule); }
.facts li:first-child { border-top: 0; padding-top: 0; }
.facts strong { color: var(--ink); display: block; }

footer {
  padding-block: 1.5rem 2rem;
  display: flex; gap: 1.5rem; flex-wrap: wrap;
  font-size: 0.9rem; color: var(--ink-soft);
}
footer a { color: var(--ink-soft); }
footer span { margin-right: auto; }

@media (max-width: 52rem) {
  .slide, .pitch { grid-template-columns: 1fr; gap: 1.5rem; }
  .sheet::before { display: none; }
  .pitch, .more { padding-inline: 0; }
  .features { grid-template-columns: 1fr; gap: 1.5rem; }
  .cms { grid-template-columns: 1fr; }
}

/* Legal pages */
.legal { max-width: 42rem; }
.legal h1 { font-family: var(--serif); font-size: clamp(2rem, 4vw, 2.6rem); letter-spacing: -0.02em; margin: 0 0 2rem; }
.legal h2 { font-family: var(--serif); font-size: 1.35rem; margin: 2.5rem 0 0.75rem; }
.legal h3 { font-size: 1.05rem; margin: 1.75rem 0 0.4rem; }
.legal p, .legal li { color: var(--ink); }
.legal address { font-style: normal; }
.back { display: inline-block; margin-bottom: 2rem; }
