/* WisGen — wisgen.ai
   Palette sampled from the first author's manuscript: the cool grey of the sheet under
   indoor light, the violet-black of the biro, and the oxblood of his correction pen.
   One typeface (Literata), because it is a reading face and this company makes things
   to be read. No cards, no eyebrows, no all-caps. */

:root {
  --paper:    #E7E8EC;
  --sheet:    #F4F5F7;
  --ink:      #1C1D24;
  --ink-2:    #4E515C;
  --ink-3:    #5F636E;
  --pen:      #8A4A46;
  --pen-soft: #B98D89;
  --rule:     #CDD0D7;

  --measure: 62ch;
  --shell: 74rem;
  --gutter: clamp(1.25rem, 5vw, 4rem);

  --serif: "Literata", Georgia, "Times New Roman", serif;
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.125rem;
  line-height: 1.62;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--pen); text-underline-offset: 0.18em; text-decoration-thickness: from-font; }
a:hover { color: var(--ink); }

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

.skip {
  position: absolute; left: -9999px;
  background: var(--ink); color: var(--sheet);
  padding: 0.6rem 1rem; text-decoration: none;
}
.skip:focus { left: 1rem; top: 1rem; z-index: 10; }

.shell {
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------------------------------------------------------------- masthead */

.masthead {
  border-bottom: 1px solid var(--rule);
  padding-block: 1.15rem;
}
.masthead-in {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 2rem;
  align-items: baseline;
  justify-content: space-between;
}
.wordmark {
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: -0.012em;
  color: var(--ink);
  text-decoration: none;
}
.masthead nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  font-size: 0.98rem;
}
.masthead nav a { color: var(--ink-2); text-decoration: none; }
.masthead nav a:hover { color: var(--pen); text-decoration: underline; }

/* -------------------------------------------------------------------- hero */

.hero { padding-block: clamp(3.5rem, 9vw, 7rem) clamp(3rem, 7vw, 5.5rem); }

.hero h1 {
  margin: 0 0 clamp(2rem, 4vw, 3rem);
  font-size: clamp(2.7rem, 7.2vw, 4.9rem);
  font-weight: 300;
  line-height: 1.04;
  letter-spacing: -0.028em;
  max-width: 18ch;
}

/* the specimen: real ink, presented as the sheet it came from */
.specimen { margin: 0; }
.specimen img {
  width: 100%;
  max-width: 46rem;
  border: 1px solid var(--rule);
  box-shadow: 0 1px 0 rgba(28, 29, 36, 0.06);
}
.specimen figcaption,
.reading-note {
  margin-top: 0.7rem;
  font-size: 0.92rem;
  color: var(--ink-3);
  font-style: italic;
  max-width: 46rem;
}

.specimen-inline { margin-block: 2.5rem; }
.specimen-inline img { max-width: 30rem; }

/* the same words, in type — the transformation performed down the page */
.reading {
  margin: 2.1rem 0 0;
  max-width: 34ch;
  font-size: clamp(1.5rem, 3.1vw, 2.1rem);
  font-weight: 400;
  line-height: 1.34;
  letter-spacing: -0.014em;
  border-left: 2px solid var(--pen-soft);
  padding-left: 1.15rem;
}
.reading-note { margin-top: 0.75rem; padding-left: calc(1.15rem + 2px); }

.lead {
  margin: clamp(2.5rem, 5vw, 3.5rem) 0 0;
  max-width: 44ch;
  font-size: clamp(1.2rem, 2vw, 1.4rem);
  line-height: 1.5;
  color: var(--ink-2);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1rem;
  margin: 2.2rem 0 0;
}
.btn {
  display: inline-block;
  padding: 0.72rem 1.35rem;
  border: 1px solid var(--ink);
  color: var(--ink);
  text-decoration: none;
  font-size: 1rem;
  transition: background-color 120ms ease, color 120ms ease, border-color 120ms ease;
}
.btn:hover { background: var(--ink); color: var(--paper); }
.btn-primary { background: var(--pen); border-color: var(--pen); color: #FBFAF9; }
.btn-primary:hover { background: var(--ink); border-color: var(--ink); color: #FBFAF9; }

/* ------------------------------------------------------------------- bands */

.band {
  border-top: 1px solid var(--rule);
  padding-block: clamp(3rem, 6.5vw, 5rem);
}
.band-alt { background: var(--sheet); }

.band h2 {
  margin: 0 0 1.6rem;
  font-size: clamp(1.75rem, 3.4vw, 2.45rem);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.band > .shell > .status { margin: 0 0 0.5rem; }

.prose { max-width: var(--measure); }
.prose p { margin: 0 0 1.15rem; }
.prose p:last-child { margin-bottom: 0; }

.aside {
  max-width: var(--measure);
  margin: 2.4rem 0 0;
  padding-top: 1.1rem;
  border-top: 1px solid var(--rule);
  font-size: 1rem;
  color: var(--ink-2);
}

/* status words — the red pen is reserved for what is actually running */
.status {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.005em;
  color: var(--ink-3);
}
.status-live { color: var(--pen); }
.status-soon { color: var(--ink-2); }

/* the offer: a numbered sequence, because it genuinely is one */
.steps {
  counter-reset: step;
  list-style: none;
  margin: 2.2rem 0 0;
  padding: 0;
  max-width: var(--measure);
}
.steps li {
  counter-increment: step;
  position: relative;
  margin-bottom: 1.15rem;
  padding-left: 2.4rem;
  color: var(--ink-2);
}
.steps li:last-child { margin-bottom: 0; }
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0.06em;
  width: 1.55rem;
  height: 1.55rem;
  border: 1px solid var(--pen-soft);
  border-radius: 50%;
  color: var(--pen);
  font-size: 0.88rem;
  line-height: 1.5rem;
  text-align: center;
}
.steps b { color: var(--ink); font-weight: 600; }

/* screenshots as evidence */
.shot { margin: 2.5rem 0 0; }
.shot img {
  width: 100%;
  border: 1px solid var(--rule);
  background: #fff;
}
.shot figcaption {
  margin-top: 0.7rem;
  font-size: 0.92rem;
  color: var(--ink-3);
  font-style: italic;
  max-width: var(--measure);
}

/* ----------------------------------------------------------------- outline */

.outline {
  margin-top: 2.6rem;
  display: grid;
  gap: 2.4rem;
}
@media (min-width: 60rem) {
  .outline { grid-template-columns: repeat(3, 1fr); gap: 3rem 2.5rem; }
}

.layer h3 {
  margin: 0 0 0.35rem;
  padding-bottom: 0.55rem;
  border-bottom: 1px solid var(--rule);
  font-size: 1.22rem;
  font-weight: 600;
  letter-spacing: -0.008em;
}
.layer-note {
  margin: 0.7rem 0 1.1rem;
  font-size: 0.98rem;
  font-style: italic;
  color: var(--ink-3);
}
.layer ul { margin: 0; padding: 0; list-style: none; }
.layer li {
  margin-bottom: 0.95rem;
  padding-left: 0;
  font-size: 1.02rem;
  line-height: 1.5;
  color: var(--ink-2);
}
.layer li:last-child { margin-bottom: 0; }
.layer li .status { margin-right: 0.5ch; }
.layer li strong { color: var(--ink); font-weight: 600; }

/* ------------------------------------------------------------------ footer */

footer {
  border-top: 1px solid var(--rule);
  padding-block: clamp(2.5rem, 5vw, 3.5rem);
  font-size: 0.98rem;
  color: var(--ink-2);
}
.footer-in {
  display: grid;
  gap: 1.8rem 3rem;
}
@media (min-width: 46rem) {
  .footer-in { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.footer-block p { margin: 0 0 0.3rem; }
.footer-name {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.012em;
}
.footer-legal { color: var(--ink-3); font-style: italic; }

/* ------------------------------------------------------------------ motion */
/* One moment on the page: the typed reading arrives just after the ink it came from.
   The content is in the HTML either way — this only affects how it appears. */

@media (prefers-reduced-motion: no-preference) {
  .reading, .reading-note {
    animation: settle 620ms cubic-bezier(0.22, 0.61, 0.36, 1) both;
  }
  .reading { animation-delay: 260ms; }
  .reading-note { animation-delay: 430ms; }
}

@keyframes settle {
  from { opacity: 0; transform: translateY(0.55rem); }
  to   { opacity: 1; transform: none; }
}
