/*
 * Kenyon 1: its announcement on the home page (index.html, .launch) and its own page (kenyon.html), since
 * 10 November 2026 (the owner: "have a big announcement thing on elovaren website", with Anthropic's announcement
 * of a model as the example: one wide picture with the name large on it and a way on, and a dark page behind it
 * with the date, the name, the picture, a list of the page's parts and then the parts). The layout, the words and
 * the picture are Elovaren's own. The picture is not an illustration: it is one flinch of Kenyon 1's nervous
 * system, as it was recorded (img/kenyon, tools/kenyon-film). The film's frame and its two round buttons are the
 * site's own (style.css, .film-frame and .film-controls); kenyon.js runs them.
 */

/* ── On the home page: the film's frame, as wide as the screen allows with all of it showing, with the words on the
   part of the picture the recording leaves empty. On a narrow screen the words stand under the frame instead. ── */
.launch {
  position: relative;
  width: min(90rem, 100%, calc((100svh - var(--header-h) - 8.5rem) * 16 / 9));
  margin: 0 auto;
  container-type: inline-size;
  text-align: left;
}

.launch .film-frame { width: 100%; }

.launch-words {
  position: absolute;
  top: 46%;
  left: 7.2cqw;
  z-index: 2;
  max-width: 42cqw;
  color: #f0efea;
  transition: opacity 0.35s ease;
}

.launch-words h2 {
  margin: 0;
  max-width: none;
  color: #fff;
  font-size: max(2.4rem, 9.4cqw);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.03em;
  white-space: nowrap;
}

.launch-kicker {
  display: block;
  margin: 0 0 0.6em;
  color: rgba(240, 239, 234, 0.74);
  font-family: var(--sans);
  font-size: max(0.8rem, 1.3cqw);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0;
}

.launch-words p {
  margin: 1.5cqw 0 0;
  color: rgba(240, 239, 234, 0.88);
  font-size: max(0.92rem, 1.55cqw);
  line-height: 1.4;
}

/* The way on: the dark page's white button (style.css, .gradus-button). */
.launch-button,
.kn-button {
  display: inline-flex;
  align-items: center;
  min-height: 2.5rem;
  padding: 0.5rem 1.1rem;
  border-radius: 0.5rem;
  background: #fff;
  color: #141413;
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 160ms ease, transform 160ms ease;
}

.launch-button { font-size: max(0.88rem, 1.15cqw); }

/* Beside the way on, where a second button would stand: Kenyon 1 is not open to use yet (the owner, 10 November 2026:
   "make kenyon Coming Soon, so I can deploy the site / announce while I can still work on it / polish"). */
.launch-words .launch-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 1.2em; margin-top: 2cqw; }
.launch-soon { color: rgba(240, 239, 234, 0.8); font-size: max(0.88rem, 1.15cqw); font-weight: 600; line-height: 1.3; }

.launch-button:hover,
.kn-button:hover { background: #e9e8e3; transform: translateY(-1px); }
.launch-button:focus-visible { outline: 2px solid #fff; outline-offset: 0.1875rem; }

/* While the film runs the words are out of its way. */
.launch.is-playing .launch-words { opacity: 0; pointer-events: none; }

.launch-caption {
  width: min(90rem, 100%, calc((100svh - var(--header-h) - 8.5rem) * 16 / 9));
  margin: 0.8rem auto 0;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.5;
  text-align: left;
}

.launch-caption a { color: inherit; }

/* ── The film in its frame: the picture until it is asked for, and then the film (kenyon.js). The picture comes
   in from the left the first time it is seen, as the recording runs. ── */
.film-frame video {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #141413;
}

.film-frame.is-waiting video { clip-path: inset(0 100% 0 0); }
.film-frame.is-seen video { clip-path: inset(0 0 0 0); transition: clip-path 2.4s cubic-bezier(0.3, 0.1, 0.2, 1); }

/* The sound is half of it, so the buttons show plainly. */
.film-frame[data-film] .film-button,
.film-frame[data-film] .film-sound { opacity: 0.9; }

@media (max-width: 760px) {
  .launch-words { position: static; max-width: none; margin-top: 1.4rem; color: var(--text); }
  .launch-words h2 { color: var(--text); font-size: clamp(2.6rem, 13vw, 4rem); }
  .launch-kicker { color: var(--muted); font-size: 0.9rem; }
  .launch-words p { margin-top: 0.7rem; color: var(--muted); font-size: 1.05rem; }
  .launch-words .launch-actions { margin-top: 1.1rem; }
  .launch-button { background: var(--text); color: var(--bg); font-size: 0.95rem; }
  .launch-soon { color: var(--muted); font-size: 0.95rem; }
  .launch-button:hover { background: var(--accent-strong); }
  .launch-button:focus-visible { outline-color: var(--accent); }
  .launch.is-playing .launch-words { opacity: 1; pointer-events: auto; }
  .launch-caption { margin-top: 1.2rem; }
}

/* ── Kenyon 1's own page (kenyon.html), dark like Project Gradus's. ── */
.kn-top { padding: 4.25rem 0 2.75rem; }

.kn-date { margin: 0 0 1.4rem; color: var(--muted); font-size: 0.92rem; }

.kn-top h1 {
  max-width: none;
  margin: 0;
  color: #fff;
  font-size: clamp(3rem, 9.2vw, 9rem);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.035em;
}

/* Two tones, as the site's headings have them: the first word steps back to grey. */
.kn-top h1 span { display: block; }
.kn-top h1 span:first-child { color: var(--muted); }

.kn-lede {
  max-width: 26ch;
  margin: 1.5rem 0 0;
  color: var(--text);
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2.3vw, 2rem);
  line-height: 1.25;
  letter-spacing: -0.015em;
}

/* Under the line: it is not open to use yet. */
.kn-soon { margin: 1.1rem 0 0; color: var(--text); font-size: 1.05rem; font-weight: 600; }

.kn-film { margin: 0 auto; }
.kn-film .film-frame { width: min(100%, calc((100svh - var(--header-h) - 5rem) * 16 / 9)); margin: 0 auto; }
.kn-film figcaption { max-width: 78ch; margin: 0.85rem 0 0; color: var(--muted); font-size: 0.86rem; line-height: 1.55; }
.kn-film figcaption a { color: inherit; }

.kn-column { width: min(44rem, calc(100% - 2 * var(--gutter))); margin: 0 auto; }

/* The page's parts, each a line: its name, dots, its number. */
.kn-contents { margin-top: 3.75rem; }
.kn-contents ol { margin: 0; padding: 0; list-style: none; }

.kn-contents a {
  display: flex;
  align-items: baseline;
  gap: 0.7rem;
  padding: 0.5rem 0;
  color: var(--text);
  font-size: 1.06rem;
  text-decoration: none;
}

.kn-leader { flex: 1; min-width: 1.5rem; border-bottom: 2px dotted var(--line); transform: translateY(-0.28em); }
.kn-number { color: var(--muted); font-family: var(--mono); font-size: 0.88rem; font-variant-numeric: tabular-nums; }
.kn-contents a:hover .kn-name,
.kn-contents a:focus-visible .kn-name { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.22em; }
.kn-contents a:hover .kn-leader { border-bottom-color: var(--muted); }

.kn-copy { padding: 3.25rem 0 5rem; color: var(--text); font-size: 1.1rem; line-height: 1.7; }
.kn-copy p { margin: 0 0 1.15rem; text-wrap: pretty; }
.kn-copy a { color: #fff; }

.kn-copy h2 {
  max-width: none;
  margin: 3.75rem 0 1.1rem;
  color: #fff;
  font-size: clamp(1.9rem, 3.2vw, 2.7rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.025em;
}

.kn-copy ul { margin: 0 0 1.15rem; padding-left: 1.2rem; }
.kn-copy li { margin: 0.5rem 0; }
.kn-copy li::marker { color: var(--muted); }
.kn-copy strong { color: #fff; font-weight: 650; }

/* What was written to it, and what it wrote back, word for word. */
.kn-said { margin: 1.3rem 0; padding: 1rem 1.2rem 1.05rem; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); }
.kn-said p { margin: 0; }
.kn-said .kn-who { margin: 0 0 0.35rem; color: var(--muted); font-size: 0.82rem; font-weight: 600; }
.kn-said.is-ours { background: transparent; }

.kn-table { width: 100%; margin: 1.4rem 0 1.5rem; border-collapse: collapse; font-size: 0.98rem; }
.kn-table th,
.kn-table td { padding: 0.75rem 1rem 0.75rem 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.kn-table thead th { border-top: 1px solid var(--line); color: var(--muted); font-size: 0.84rem; font-weight: 600; }
.kn-table tbody th { color: var(--text); font-weight: 400; }
.kn-table td { font-variant-numeric: tabular-nums; white-space: nowrap; }

.kn-note { margin-top: 3rem; padding-top: 1.4rem; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.88rem; line-height: 1.6; }
.kn-copy .kn-note a { color: var(--text); }

@media (max-width: 620px) {
  .kn-top { padding: 2.75rem 0 2rem; }
  .kn-copy { font-size: 1.04rem; }
  .kn-table th,
  .kn-table td { padding-right: 0.6rem; }
  .kn-table td { white-space: normal; }
}
