@font-face {
  font-family: "Unifraktur Maguntia";
  src: url("fonts/unifraktur-maguntia.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
:root {
  color-scheme: dark;
  --ink: #10100f;
  --white: #f2efe8;
  --silver: #c5c1ba;
  --line: #595853;
  --red: #d78b83;
  --serif: "Songti SC", "Noto Serif CJK SC", SimSun, serif;
  --mono: "SFMono-Regular", Consolas, monospace;
  --gothic: "Unifraktur Maguntia", Georgia, serif;
}
* { box-sizing: border-box }
body {
  margin: 0; min-height: 100vh; color: var(--white);
  font: 16px/1.7 "PingFang SC", "Microsoft YaHei", sans-serif;
  background: radial-gradient(ellipse at 72% 28%, #292825, transparent 58%), var(--ink);
}
.shell { width: min(1280px, 93%); margin: auto }
header, footer, .bar, nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem }
header { height: 69px; border-bottom: 3px double var(--line); font-size: 14px; letter-spacing: .12em }
.ename { font: 400 1em/1 var(--gothic); font-synthesis: none }
.mast, .display { display: block; height: auto; object-fit: contain }
.mast { width: 100px }
footer { margin: 14px 0 18px; color: var(--silver); font: 12px/1.4 var(--mono); letter-spacing: .065em }
.hero {
  position: relative; isolation: isolate; display: grid; align-items: center;
  border: 2px solid; border-color: #0a0a09 #777570 #777570 #0a0a09; overflow: hidden;
}
.hero { grid-template-columns: 47% 53%; background: #151513 }
.hero-copy { padding: clamp(18px, 2.6vw, 42px); z-index: 2 }
.hero-copy::before {
  content: ""; position: absolute; z-index: 2; pointer-events: none;
  left: 6px; top: 6px; width: 15px; height: 15px;
  border-top: 1px solid var(--silver); border-left: 1px solid var(--silver);
}
.meta, .bar { color: var(--silver); font: 14px/1.5 var(--mono); letter-spacing: .08em }
.meta { display: inline-flex; align-items: center; gap: 9px }
.meta::before { content: "✦"; color: var(--red) }
.display { width: min(100%, 350px); margin: 18px 0 14px }
.hero h1 { margin: 0; font: 600 clamp(24px, 2.5vw, 38px)/1.45 var(--serif); letter-spacing: .07em }
.intro, .desc { color: #d8d4ce; line-height: 1.95 }
.intro { max-width: 29em; margin: 22px 0 28px }
.photo { position: relative; margin: 0; overflow: hidden; align-self: stretch; min-width: 0; background: #191918 }
.photo img { display: block; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.13) }
.hero .photo { min-height: clamp(355px, 32vw, 450px); border-left: 1px solid var(--line) }
.hero .photo img { position: absolute; inset: 0; object-position: 52% center }
.photo::after {
  content: ""; pointer-events: none; position: absolute; inset: 0;
  background: repeating-linear-gradient(0deg, transparent 0 3px, #0002 3px 4px),
              linear-gradient(0deg, #080808bb, transparent 27%);
}
.photo figcaption {
  position: absolute; z-index: 1; bottom: 18px; left: 22px; right: 22px; 
  display: flex; align-items: center; gap: 12px; font: italic 21px Georgia, serif; color: white;
  text-shadow: 0 1px 5px #000;
}
.photo figcaption::after { content: ""; height: 1px; background: #fff7; flex: 1 }
button { font: inherit; cursor: pointer }
.btn {
  min-height: 46px; padding: 10px 30px; background: var(--white); color: var(--ink);
  font-weight: 650; border: 1px solid var(--white); border-radius: 0; letter-spacing: .08em;
}
.btn:hover:enabled { background: #e8b7b1; border-color: #e8b7b1 }
.btn:disabled { color: #a09c96; background: #282826; border-color: #4d4b47; cursor: default }
.quiet { background: none; color: var(--silver); border: 0; padding: 12px 0; text-decoration: underline; text-underline-offset: 5px }
button:focus-visible, summary:focus-visible, input:focus-visible + label { outline: 2px solid #f2aaa2; outline-offset: 3px }
.screen:focus { outline: 0 }
@media (max-width: 760px) {
  .shell { width: 94% }
  header { height: 52px }
  .mast { width: 84px }
  .hero { grid-template-columns: 1fr }
  .hero .photo { grid-row: 1; min-height: 0; height: clamp(175px, 47vw, 300px); border: 0; border-bottom: 1px solid var(--line) }
  .hero .photo img { object-position: center 39% }
  .photo figcaption { left: 14px; bottom: 10px; font-size: 17px }
  .hero-copy { padding: 21px }
  .display { width: min(90%, 275px); margin: 6px 0 12px }
  .intro { margin: 13px 0 19px }
}

/* The outer desktop stays visible around a single active document window. */
.desktop {
  position: relative; isolation: isolate; display: grid; place-items: center;
  margin-top: 15px; min-height: min(76vh, 720px); padding: clamp(24px, 4.5vw, 70px);
  background: #2a2928; border: 1px solid #60605e; overflow: hidden;
}
.desktop::before, .desktop::after { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: -1 }
.desktop::before {
  background: url("images/cover.jpg") center 35% / cover;
  filter: grayscale(1) invert(.8) contrast(1.6); opacity: .54;
}
.desktop::after {
  background: repeating-linear-gradient(0deg, #0003 0 1px, transparent 1px 4px), linear-gradient(115deg, #0002, #0008);
}
.os-window {
  width: min(100%, 1000px); min-width: 0; padding: 4px; background: #343434;
  border: 2px solid; border-color: #b5b3ad #181817 #141413 #8c8a85;
  box-shadow: 1px 1px 0 #070707, 7px 9px 0 #0008, 0 18px 42px #0008;
}
.titlebar { display: flex; align-items: center; gap: 10px; padding: 5px 9px; margin-bottom: 4px;
  background: linear-gradient(90deg,#171618,#393737); border: 1px solid #121211;
  color: #eeeae3; font: 600 14px/1.45 var(--mono); letter-spacing: .09em }
.window-icon { font: 20px/1 Georgia,serif; color: #e6c3b9 }
.titlebar i { flex: 1; height: 8px; background: repeating-linear-gradient(0deg, #817e79 0 1px, transparent 1px 3px); opacity: .64 }
.question-body, .dossier { display: grid; background: #141414; border: 2px solid; border-color: #0a0a09 #777570 #777570 #0a0a09 }
.question-body { grid-template-columns: .9fr 1.1fr }
.prompt-pane, .profile { padding: clamp(20px, 2.6vw, 39px); min-width: 0 }
.prompt-pane { background: linear-gradient(145deg, #252322, #151414); border-right: 1px solid #55514e }
.scene { display: flex; align-items: center; gap: 10px; color: #ddd1c7; font: 14px/1.4 var(--mono); letter-spacing: .14em }
.scene span { font-size: 20px; color: var(--red) }
.scene::after { content: ""; flex: 1; height: 3px; border-block: 1px solid #57514d }
.prompt-pane h1 { margin: 25px 0 6px; font: 600 clamp(20px, 1.95vw, 27px)/1.65 var(--serif) }
.choices-pane { display: grid; gap: 8px; align-content: center; padding: clamp(16px, 2vw, 29px) }
.option { position: relative }
.option input { position: absolute; opacity: 0 }
.option label { display: flex; align-items: baseline; gap: 14px; padding: 12px; line-height: 1.6; cursor: pointer;
  border: 1px solid; border-color: #64625e #262624 #262624 #64625e; background: #252524 }
.option label:hover { background: #30302d }
.letter { min-width: 24px; text-align: center; color: #e1dcd4; font: 16px/1.5 var(--mono); background: #171717; border: 1px solid #67645f }
.option input:checked + label { background: #382928; border-color: #b1847c }
.option input:checked + label .letter { background: #e0bab1; color: #211b1a }
.statusbar { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-top: 5px }
.statusbar nav { gap: 5px }
.progress-cell, .status-cell, .viewer figcaption { color: #d7d5cf; font: 13px/1.5 var(--mono) }
.progress-cell, .status-cell { padding: 5px 9px; border: 1px solid; border-color: #181817 #78756f #78756f #181817 }
.progress-cell { display: flex; align-items: center; gap: 10px }
.meter { width: 80px; height: 9px; background: #181717 }
.meter i { display: block; height: 100%; background: repeating-linear-gradient(90deg,#c59e95 0 6px,transparent 6px 8px) }
.win-button { min-height: 40px; padding: 5px 14px; font-size: 15px; color: #edeae2; background: #393937;
  border: 2px solid; border-color: #96948c #10100f #10100f #96948c }
.win-button.primary { background: #d9d4c9; color: #201e1b; border-top-color: #fff; border-left-color: #fff }
.win-button:active:enabled { border-color: #171716 #b9b5ac #b9b5ac #171716 }
.win-button:hover:enabled { filter: brightness(1.14) }
.win-button:disabled { background: #333331; color: #a39f97; cursor: default; border-color: #605e58 #20201e #20201e #605e58 }
.dossier { grid-template-columns: .88fr 1.12fr }
.viewer { display: flex; flex-direction: column; min-width: 0; margin: 12px; padding: 4px; background: #090909;
  border: 2px solid; border-color: #070707 #65635f #65635f #070707 }
.viewer { align-self: center }
.portrait img { display: block; width: 100%; height: auto }
.viewer figcaption { padding: 6px; background: #20201f }
.viewer a { color: inherit }
.ename { font-size: clamp(45px, 5vw, 78px); margin: 18px 0; overflow-wrap: anywhere }
.quote { color: #e4baad; font: 600 20px/1.65 var(--serif) }
.moments { background: #20201e; border: 1px solid #56524b; padding: 9px 12px; margin-top: 17px }
.moments summary { color: var(--silver); cursor: pointer }
.moments p { border-left: 2px solid var(--red); padding-left: 10px }
@media (max-width: 760px) {
  .desktop { padding: 16px 6px; min-height: 0 }
  .question-body, .dossier { grid-template-columns: 1fr }
  .prompt-pane { border: 0; border-bottom: 1px solid #494643; padding: 15px }
  .prompt-pane h1 { margin: 10px 0 0; font-size: 20px }
  .choices-pane { padding: 10px; gap: 7px }
  .option label { gap: 9px; padding: 10px }
  .meter { display: none }
  .viewer { margin: 9px 9px 0 }
  .profile { padding: 17px }
  .statusbar { gap: 4px }
  .win-button { min-height: 44px; padding: 4px 9px }
}

#begin { display: inline-flex; align-items: center; gap: 9px }
.launch-icon { position: relative; width: 16px; height: 13px; border: 1px solid currentColor; box-shadow: inset 0 3px currentColor }
.launch-icon::after { content: ""; position: absolute; inset: 5px 3px 2px; border-block: 1px solid currentColor }
.statusbar:has(.result-actions) { flex-wrap: wrap }
.result-actions { display: flex; align-items: stretch; flex-wrap: wrap; gap: 6px; margin-left: auto }
.result-actions a { display: inline-flex; align-items: center; text-decoration: none }
.share-feedback:not(:empty) { width: 100%; padding: 4px 8px; font: 14px/1.5 var(--mono) }
.share-feedback:empty { display: none }
.share-feedback input { width: min(100%, 36em); font: inherit }
