/* index.css — landing page. The "instrument plate": twin sigils on dark ink,
   a value/command seam as the organising motif, serif manifesto, mono machine
   voice.  Shared tokens, menubar, window, footer live in site.css. */

main {
  position: relative;
  z-index: 1;
  max-width: 54rem;
  margin: 0 auto;
  padding: clamp(2.5rem, 8vw, 5.5rem) clamp(1.1rem, 4vw, 2.2rem) 4rem;
  display: flex;
  flex-direction: column;
  gap: clamp(3.5rem, 9vw, 6rem);
}

/* ── hero ── */
.hero { text-align: center; }
.sigil {
  font-family: var(--mono);
  font-weight: 500;
  line-height: 1;
  font-size: clamp(2.6rem, 8vw, 4rem);
  letter-spacing: 0.02em;
  margin-bottom: 0.5rem;
  user-select: none;
}
.sigil .bang  { color: var(--accent); text-shadow: 0 0 24px color-mix(in srgb, var(--accent) 45%, transparent); }
.sigil .brace { color: var(--val);    text-shadow: 0 0 24px color-mix(in srgb, var(--val) 45%, transparent); }
.wordmark {
  font-family: var(--mono);
  font-weight: 600;
  font-size: clamp(4rem, 15vw, 7.5rem);
  line-height: 0.85;
  letter-spacing: -0.05em;
  color: var(--text);
}
.thesis {
  margin-top: 1.5rem;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.35rem, 3.4vw, 1.85rem);
  line-height: 1.4;
  letter-spacing: 0.01em;
  color: var(--text);
}
.thesis em { font-style: italic; color: var(--accent); }
.subthesis {
  margin-top: 0.9rem;
  font-family: var(--mono);
  font-size: clamp(0.82rem, 2vw, 0.95rem);
  color: var(--muted);
  letter-spacing: 0.02em;
}

/* ── the value | command seam (hero duality and bash | ral) ── */
.duality, .compare {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 1px minmax(0, 1fr);
  border: 1px solid var(--line);
  background: var(--plate);
  box-shadow:
    inset  1px  1px 0 var(--bevel-hi),
    inset -1px -1px 0 var(--bevel-lo);
}
.seam { background: var(--line); position: relative; }
.seam::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 6px;
  height: 6px;
  transform: translate(-50%, -50%) rotate(45deg);
  background: var(--ink);
  border: 1px solid var(--faint);
}
.duo { padding: clamp(1.8rem, 5vw, 3rem) clamp(1.4rem, 4vw, 2.4rem); }
.duo-sigil {
  display: block;
  font-family: var(--mono);
  font-weight: 500;
  font-size: clamp(2.4rem, 7vw, 3.6rem);
  line-height: 1;
}
.duo.val .duo-sigil { color: var(--val);    text-shadow: 0 0 26px color-mix(in srgb, var(--val) 40%, transparent); }
.duo.cmd .duo-sigil { color: var(--accent); text-shadow: 0 0 26px color-mix(in srgb, var(--accent) 40%, transparent); }
.duo-label {
  display: block;
  margin-top: 0.7rem;
  font-family: var(--mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  color: var(--faint);
}
.duo-line {
  margin-top: 1rem;
  font-family: var(--serif);
  font-size: clamp(1.4rem, 4vw, 1.9rem);
  font-weight: 500;
}
.duo-line em { font-style: italic; }
.duo.val .duo-line em { color: var(--val); }
.duo.cmd .duo-line em { color: var(--accent); }
.duo-note { margin-top: 0.7rem; font-size: 0.95rem; color: var(--muted); line-height: 1.6; }

/* ── manifesto prose ── */
.prose { display: flex; flex-direction: column; gap: 1.3rem; }
.prose p, .taste-lead {
  font-family: var(--serif);
  font-size: 1.12rem;
  line-height: 1.78;
  color: var(--text);
  max-width: 48rem;
}
.eyebrow {
  font-family: var(--mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.26em;
  color: var(--accent);
}
.eyebrow.center { text-align: center; }
.prose code, .taste-lead code, .foundations code {
  font-family: var(--mono);
  font-size: 0.86em;
  padding: 0.06em 0.34em;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 2px;
  color: var(--text);
}
code.val { color: var(--val); }
code.cmd { color: var(--accent); }

/* ── taste: bash | ral ── */
.taste { display: flex; flex-direction: column; gap: 1.3rem; }
.panel { display: flex; flex-direction: column; min-width: 0; }
.panel-label {
  padding: 0.5rem 1.1rem;
  font-family: var(--mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  background: var(--panel);
}
.panel.ral .panel-label { color: var(--accent); }
.compare pre {
  margin: 0;
  padding: 1.15rem 1.2rem;
  font-family: var(--mono);
  font-size: 0.82rem;
  line-height: 1.75;
  color: var(--muted);
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}
.panel.ral pre { color: var(--text); }
.compare pre::-webkit-scrollbar { height: 5px; }
.compare pre::-webkit-scrollbar-thumb { background: var(--line); }
.compare .c { color: var(--faint); font-style: italic; }
.compare .k { color: var(--kw); font-weight: 600; }
.compare .s { color: var(--str); }
.compare .v { color: var(--val); }
.compare .bang { color: var(--accent); font-weight: 600; }

/* ── get ral: install + downloads ── */
.get { display: flex; flex-direction: column; gap: 1.1rem; }
.install {
  display: flex;
  align-items: stretch;
  gap: 0.5rem;
  padding: 0.5rem;
  border: 1px solid var(--line);
  background: var(--plate);
  box-shadow:
    inset  1px  1px 0 var(--bevel-hi),
    inset -1px -1px 0 var(--bevel-lo);
}
.install-prompt {
  display: flex;
  align-items: center;
  padding: 0 0.4rem 0 0.5rem;
  font-family: var(--mono);
  color: var(--val);
  font-weight: 600;
  user-select: none;
}
.install-cmd {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  padding: 0.55rem 0.7rem;
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--text);
  background: var(--ink);
  border: 1px solid var(--line);
  box-shadow: inset 1px 1px 0 var(--bevel-lo);
  white-space: nowrap;
  overflow-x: auto;
  cursor: pointer;
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}
.install-cmd::-webkit-scrollbar { height: 4px; }
.install-cmd::-webkit-scrollbar-thumb { background: var(--line); }
.btn {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  padding: 0 1.1rem;
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--text);
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow:
    inset  1px  1px 0 var(--bevel-hi),
    inset -1px -1px 0 var(--bevel-lo);
  cursor: pointer;
  user-select: none;
  transition: color 0.12s, border-color 0.12s;
}
.btn:hover { border-color: var(--accent); }
.btn:active, .btn.pressed {
  box-shadow:
    inset  1px  1px 0 var(--bevel-lo),
    inset -1px -1px 0 var(--bevel-hi);
}
.btn.done { color: var(--val); border-color: var(--val); }

.downloads {
  padding: 1rem 1.1rem;
  border: 1px solid var(--line);
  background: var(--plate);
  box-shadow:
    inset  1px  1px 0 var(--bevel-hi),
    inset -1px -1px 0 var(--bevel-lo);
}
.dl-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
  gap: 0.6rem;
}
.dl-group {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 0.6rem 0.8rem;
  background: var(--panel);
  border: 1px solid var(--line);
}
.dl-os {
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.1rem;
}
.dl-btn {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--accent);
  text-decoration: none;
  line-height: 1.5;
}
.dl-btn:hover { color: var(--accent-2); text-decoration: underline; }
.dl-btn.primary { color: var(--text); font-weight: 500; }
.dl-btn.primary:hover { color: var(--accent); }
.dl-btn.allutils::before { content: '+ '; color: var(--faint); }
.dl-src {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1rem;
  align-items: baseline;
  margin-top: 0.9rem;
  padding-top: 0.8rem;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 0.8rem;
}
.dl-src .label { color: var(--muted); }
.dl-repo .gh-mark {
  vertical-align: -0.15em;
  margin-right: 0.4rem;
  opacity: 0.85;
}
.dl-repo:hover .gh-mark { opacity: 1; }
.dl-sep { color: var(--faint); }

/* ── foundations coda ── */
.foundations {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  text-align: center;
}
.foundations p {
  font-family: var(--serif);
  font-size: 0.98rem;
  line-height: 1.8;
  color: var(--muted);
  max-width: 42rem;
}
.foundations em { font-style: italic; color: var(--text); }
.foundations a { color: var(--text); }
.foundations a:hover { color: var(--accent); }

/* ── responsive ── */
@media (max-width: 40rem) {
  .duality, .compare { grid-template-columns: 1fr; }
  .seam { height: 1px; width: 100%; }
  .seam::after { display: none; }
  .duo.cmd, .panel.ral { border-top: 1px solid var(--line); }
  .install { flex-wrap: wrap; }
  .install-cmd { flex: 1 1 100%; }
}

/* ── motion: one orchestrated entrance ── */
@media (prefers-reduced-motion: no-preference) {
  .sigil     { animation: rise 0.7s ease both; }
  .wordmark  { animation: rise 0.7s 0.06s ease both; }
  .thesis    { animation: rise 0.7s 0.12s ease both; }
  .subthesis { animation: rise 0.7s 0.18s ease both; }
  .duality .duo.val { animation: inLeft  0.8s 0.28s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  .duality .duo.cmd { animation: inRight 0.8s 0.28s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  .duality .seam    { animation: grow 0.55s 0.6s ease both; transform-origin: top; }
}
@keyframes rise    { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes inLeft  { from { opacity: 0; transform: translateX(-20px); } to { opacity: 1; transform: none; } }
@keyframes inRight { from { opacity: 0; transform: translateX(20px);  } to { opacity: 1; transform: none; } }
@keyframes grow    { from { opacity: 0; transform: scaleY(0); } to { opacity: 1; transform: none; } }

/* ── the bash | ral comparison breaks out wider than the reading column,
      so the longest ral line fits without scrolling inside its pane ── */
.compare {
  width: min(72rem, calc(100vw - 2rem));
  margin-left: 50%;
  transform: translateX(-50%);
}

/* ── "now powering exarch" burst sticker — 90s product energy in the right
      gutter, anchored near the hero so it scrolls away above the content ── */
.burst { display: none; }
@media (min-width: 75rem) {
  .burst {
    position: absolute;
    top: 4.75rem;
    right: clamp(1rem, 4vw, 3.5rem);
    z-index: 15;
    display: grid;
    place-items: center;
    width: 13.5rem;
    height: 13.5rem;
    background: radial-gradient(circle at 50% 40%, #f3cf7c 0%, var(--accent) 58%, #a85428 100%);
    clip-path: polygon(50% 0%, 59.58% 14.26%, 75% 6.7%, 76.16% 23.84%, 93.3% 25%, 85.74% 40.42%, 100% 50%, 85.74% 59.58%, 93.3% 75%, 76.16% 76.16%, 75% 93.3%, 59.58% 85.74%, 50% 100%, 40.42% 85.74%, 25% 93.3%, 23.84% 76.16%, 6.7% 75%, 14.26% 59.58%, 0% 50%, 14.26% 40.42%, 6.7% 25%, 23.84% 23.84%, 25% 6.7%, 40.42% 14.26%);
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.55));
  }
}
.burst-text {
  width: 8rem;
  transform: rotate(45deg);
  text-align: center;
  font-family: var(--mono);
  font-size: 0.76rem;
  font-weight: 600;
  line-height: 1.4;
  color: #2a1606;
  text-shadow: 0 1px 0 rgba(255, 240, 214, 0.3);
}
.burst-text code { font-weight: 700; }
.burst-text a { color: #5a1e14; text-decoration: underline; text-underline-offset: 2px; }
.burst-text a:hover { color: #7a2e20; }
