:root {
  color-scheme: dark;
  --background: #090806;
  --panel: rgba(19, 15, 11, 0.94);
  --panel-strong: #16100b;
  --orange: #ce6a35;
  --orange-bright: #f08a4f;
  --orange-dim: #7b3d21;
  --text: #f2dfd2;
  --muted: #ad9484;
  --line: rgba(206, 106, 53, 0.32);
  --shadow: rgba(206, 106, 53, 0.18);
}

* { box-sizing: border-box; }

html { min-height: 100%; background: var(--background); }

body {
  min-height: 100vh;
  margin: 0;
  display: grid;
  place-items: center;
  overflow-x: hidden;
  color: var(--text);
  background:
    radial-gradient(circle at 50% -20%, rgba(206, 106, 53, 0.16), transparent 46%),
    linear-gradient(rgba(206, 106, 53, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(206, 106, 53, 0.025) 1px, transparent 1px),
    var(--background);
  background-size: auto, 34px 34px, 34px 34px, auto;
  font-family: "Cascadia Code", "JetBrains Mono", "DejaVu Sans Mono", Consolas, monospace;
  line-height: 1.65;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 5;
  opacity: 0.16;
  background: repeating-linear-gradient(to bottom, transparent 0, transparent 3px, rgba(0, 0, 0, 0.42) 4px);
  mix-blend-mode: multiply;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 6;
  box-shadow: inset 0 0 150px rgba(0, 0, 0, 0.82);
}

.page {
  position: relative;
  z-index: 2;
  width: min(920px, calc(100% - 32px));
  margin: 48px auto;
}

.terminal {
  overflow: hidden;
  border: 1px solid var(--orange-dim);
  border-radius: 4px;
  background: linear-gradient(145deg, rgba(26, 19, 13, 0.95), rgba(10, 8, 6, 0.98));
  box-shadow: 0 0 0 1px rgba(240, 138, 79, 0.06), 0 28px 90px rgba(0, 0, 0, 0.52), 0 0 42px var(--shadow);
}

.titlebar {
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 16px;
  border-bottom: 1px solid var(--orange-dim);
  background: linear-gradient(180deg, rgba(206, 106, 53, 0.15), rgba(206, 106, 53, 0.04)), var(--panel-strong);
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}

.window-buttons { display: flex; gap: 7px; flex: 0 0 auto; }
.window-buttons i {
  width: 9px;
  height: 9px;
  display: block;
  border: 1px solid var(--orange-dim);
  background: rgba(206, 106, 53, 0.09);
}

.titlebar-title {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.content { padding: clamp(28px, 6vw, 68px); }

.status {
  margin: 0 0 18px;
  color: var(--orange-bright);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.status::before { content: "> "; color: var(--muted); }

h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(2.1rem, 7vw, 4.9rem);
  line-height: 1.02;
  letter-spacing: -0.065em;
  text-wrap: balance;
}

.cursor {
  display: inline-block;
  width: 0.58em;
  height: 0.12em;
  margin-left: 0.08em;
  vertical-align: 0.08em;
  background: var(--orange-bright);
  box-shadow: 0 0 12px rgba(240, 138, 79, 0.5);
  animation: blink 1.08s steps(1, end) infinite;
}

@keyframes blink {
  0%, 48% { opacity: 1; }
  49%, 100% { opacity: 0; }
}

.lead {
  max-width: 720px;
  margin: 28px 0 0;
  color: var(--text);
  font-size: clamp(1.05rem, 2.4vw, 1.28rem);
}

.separator {
  height: 1px;
  margin: 34px 0;
  border: 0;
  background: linear-gradient(90deg, var(--orange), var(--line), transparent);
}

.copy {
  max-width: 750px;
  color: var(--muted);
  font-size: 0.98rem;
}

.copy strong { color: var(--text); }

.archive-box {
  position: relative;
  margin: 32px 0 0;
  padding: 22px 22px 21px;
  border: 1px solid var(--line);
  background: linear-gradient(90deg, rgba(206, 106, 53, 0.085), transparent 64%), rgba(0, 0, 0, 0.2);
}

.archive-box::before {
  content: "";
  position: absolute;
  top: -1px;
  left: -1px;
  width: 58px;
  height: 3px;
  background: var(--orange-bright);
}

.archive-label {
  display: block;
  margin-bottom: 8px;
  color: var(--orange-bright);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.archive-box p { margin: 0; color: var(--muted); }

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 18px;
  border: 1px solid var(--orange);
  background: var(--orange);
  color: #140b06;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.065em;
  text-decoration: none;
  text-transform: uppercase;
  transition: transform 140ms ease, background 140ms ease, color 140ms ease, box-shadow 140ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
  background: var(--orange-bright);
  box-shadow: 0 8px 24px rgba(206, 106, 53, 0.23);
  outline: none;
}

.button.secondary { background: transparent; color: var(--orange-bright); }
.button.secondary:hover,
.button.secondary:focus-visible { background: rgba(206, 106, 53, 0.1); color: var(--text); }

.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
  padding: 16px 18px;
  border-top: 1px solid rgba(206, 106, 53, 0.16);
  color: #735b4c;
  background: rgba(0, 0, 0, 0.24);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer b { color: #9b6c50; font-weight: 600; }

@media (max-width: 620px) {
  .page { width: min(100% - 18px, 920px); margin: 18px auto; }
  .titlebar { min-height: 39px; padding: 0 12px; font-size: 0.68rem; }
  .content { padding: 30px 22px 34px; }
  h1 { letter-spacing: -0.055em; }
  .lead { margin-top: 22px; }
  .separator { margin: 28px 0; }
  .actions { display: grid; }
  .button { width: 100%; }
  .footer { padding: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .cursor { animation: none; }
  .button { transition: none; }
}

::selection { color: #090806; background: var(--orange-bright); }
