:root { color-scheme: light; --paper: #f4efe5; --ink: #3e3b35; --muted: #777267; --accent: #783f3e; --line: #dcd3c5; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.75 -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button, a, input { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid #956d46; outline-offset: 4px; }
.page { max-width: 1120px; padding: 0 48px; margin: auto; }
.masthead { min-height: 96px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); gap: 20px; }
.masthead a { font-family: "Songti SC", "SimSun", serif; font-size: 20px; letter-spacing: 2px; font-weight: 600; }
.masthead span, .muted, .help { color: var(--muted); }
.masthead span { font-size: 12px; letter-spacing: 2px; }
.cover { display: grid; grid-template-columns: 1fr 390px; gap: 64px; align-items: center; min-height: calc(100svh - 190px); padding: 64px 0; }
.eyebrow { color: var(--accent); font-size: 12px; letter-spacing: 3px; margin: 0 0 24px; }
h1, h2 { font-family: "Songti SC", "Noto Serif CJK SC", "SimSun", serif; font-weight: 500; }
h1 { font-size: clamp(38px, 5vw, 60px); line-height: 1.5; letter-spacing: 3px; margin: 0 0 24px; }
h2 { font-size: 27px; margin: 12px 0 6px; }
.introduction { color: var(--muted); line-height: 2; margin: 0; }
.cover-mark { margin-top: 64px; display: flex; gap: 18px; align-items: center; color: var(--muted); font-size: 12px; letter-spacing: 2px; }
.cover-mark i { width: 70px; height: 1px; background: #a9947a; }
.login-card { background: #fffcf6; border: 1px solid #e6ddce; padding: 32px; box-shadow: 5px 7px 0 #ebe3d6; }
.book-number { font-size: 11px; letter-spacing: 2px; color: var(--accent); }
.login-card .muted { font-size: 14px; margin: 0 0 24px; }
label { display: block; font-size: 14px; margin: 16px 0 6px; }
input:not([type="checkbox"]) { width: 100%; min-height: 48px; background: #fffefa; border: 1px solid #cfc5b6; border-radius: 4px; padding: 10px 12px; color: var(--ink); }
input::placeholder { color: #898276; }
.remember { display: flex; align-items: center; gap: 10px; min-height: 44px; margin: 10px 0; }
input[type="checkbox"] { accent-color: var(--accent); width: 18px; height: 18px; margin: 0; }
button { border: 0; border-radius: 4px; min-height: 48px; background: var(--accent); color: #fffaf2; padding: 10px 18px; }
.login-card button { width: 100%; display: flex; justify-content: space-between; align-items: center; }
.login-card button:hover { background: #643332; }
.help { font-size: 12px; margin: 20px 0 0; line-height: 1.8; }
.error { color: #9c302e; border-left: 3px solid; padding: 8px 12px; background: #f9eeea; font-size: 14px; }
footer { border-top: 1px solid var(--line); text-align: center; padding: 24px 0; font-size: 12px; color: var(--muted); letter-spacing: 1px; }
.icp-link { display: block; width: fit-content; margin: 8px auto 0; padding: 10px 0; min-height: 44px; text-decoration: underline; text-underline-offset: 4px; }
.account-bar { display: flex; align-items: center; justify-content: space-between; font-size: 13px; padding: 12px 0; }
.text-button { color: var(--accent); background: none; min-height: 44px; padding: 8px 0 8px 16px; font-size: 13px; text-decoration: underline; text-underline-offset: 5px; }
.story { max-width: 720px; margin: 32px auto 64px; }
.story-heading { text-align: center; }
.story-heading h1 { font-size: clamp(30px, 5vw, 44px); margin: 12px 0 8px; }
.story-heading .eyebrow { margin-bottom: 14px; }
.sample-label { display: inline-block; color: #756340; background: #e9e0ca; font-size: 11px; padding: 3px 10px; border-radius: 2px; letter-spacing: 1px; }
.photo { margin: 36px 0; padding: 12px 12px 16px; background: #fffcf6; border: 1px solid #e4dcce; box-shadow: 3px 5px 0 #e9e1d5; }
.photo img { display: block; width: 100%; height: auto; }
figcaption { color: var(--muted); font-size: 12px; text-align: center; margin-top: 12px; }
.story-body { max-width: 560px; margin: auto; line-height: 2.1; }
.story-body p { margin: 0 0 24px; }
.end-mark { color: var(--accent); text-align: center; letter-spacing: 10px; padding: 10px; }
.sample-note { text-align: center; color: var(--muted); font-size: 12px; }
.skip-link { position: absolute; top: -100px; left: 12px; background: #fff; padding: 12px; }
.skip-link:focus { top: 12px; }
@media (max-width: 760px) {
  .page { padding: 0 24px; }
  .masthead { min-height: 72px; }
  .masthead a { font-size: 17px; }
  .masthead span { display: none; }
  .cover { grid-template-columns: 1fr; gap: 32px; padding: 40px 0 48px; }
  .cover h1 { font-size: 40px; margin-bottom: 16px; }
  .cover .eyebrow { margin-bottom: 16px; }
  .cover-mark { display: none; }
  .login-card { padding: 24px; }
  .story { margin-top: 24px; }
  .photo { margin: 28px -6px; padding: 8px 8px 12px; }
  figcaption { font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }
