@font-face {
  font-family: "Syleland Serif";
  src: url("/syleland-serif.woff2?v=20260826i") format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: block;
}

:root {
  color-scheme: light;
  --paper: #f3f0e7;
  --ink: #12231f;
  --green: #0f5a43;
  --lime: #d9f58a;
  --muted: #68756e;
  --line: rgba(18, 35, 31, .22);
  --danger: #a63c31;
  --accent: #d9f58a;
  --ui: Inter, "PingFang SC", "Microsoft YaHei", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --editorial: "Syleland Serif", "Noto Serif SC", "Noto Serif CJK SC", "Source Han Serif SC", "Songti SC", STSong, SimSun, NSimSun, serif;
  --script: Baskerville, Georgia, "Times New Roman", serif;
  --text-xs: 12px;
  --text-sm: clamp(13px, 3.4vw, 14px);
  --text-md: clamp(16px, 4.2vw, 17px);
  --text-lg: clamp(18px, 4.8vw, 20px);
  --text-xl: clamp(25px, 7vw, 28px);
  --display-md: clamp(40px, 11.8vw, 46px);
  --display-lg: clamp(46px, 13.3vw, 52px);
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 40px;
  --space-8: 48px;
  --space-9: 64px;
  font-family: var(--ui);
}

* { box-sizing: border-box; }
html { background: var(--paper); scrollbar-gutter: stable; }
body { margin: 0; min-height: 100vh; color: var(--ink); background: var(--paper); }
button, input { font: inherit; }
a { color: inherit; }
.page-shell { width: min(1440px, calc(100% - 48px)); min-height: 100vh; margin: 0 auto; display: flex; flex-direction: column; }
.masthead { min-height: 96px; display: grid; grid-template-columns: 72px 1fr 72px; align-items: center; border-top: 4px double var(--ink); border-bottom: 4px double var(--ink); }
.mark { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid var(--ink); text-decoration: none; font-family: var(--editorial); font-size: 25px; line-height: 1; }
.wordmark { justify-self: center; text-decoration: none; font-family: var(--editorial); font-size: clamp(18px, 1.5vw, 20px); font-weight: 500; letter-spacing: .32em; text-indent: .32em; }
.status { width: 72px; justify-self: end; color: var(--muted); font-size: var(--text-xs); font-weight: 600; letter-spacing: .08em; text-align: right; }
.login-layout { flex: 1; display: grid; grid-template-columns: minmax(0, 42%) minmax(0, 58%); }
.context { display: grid; grid-template-rows: 18px auto 44px; align-content: start; min-height: 580px; padding: clamp(180px, 26vh, 280px) 6vw 72px 1vw; border-right: 1px solid var(--line); }
.hero-meta { min-height: 18px; }
.hero-tail { min-height: 44px; margin-top: 20px; }
.section-label { margin: 0; color: var(--green); font-family: var(--editorial); font-size: var(--text-sm); font-weight: 600; line-height: 1.2; letter-spacing: .08em; }
h1 { margin: 24px 0 0; font-family: var(--editorial); font-size: clamp(60px, 5vw, 76px); font-weight: 500; line-height: .96; letter-spacing: -.035em; }
h1 em { color: var(--green); font-family: var(--editorial); font-weight: 500; font-style: normal; }
.hero-tail a { width: fit-content; min-height: 44px; display: inline-flex; align-items: center; color: var(--ink); font-size: var(--text-sm); font-weight: 500; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 7px; }
.hero-tail a:hover, .hero-tail a:focus-visible { color: var(--green); }
.login-card { display: flex; flex-direction: column; justify-content: flex-start; padding: 72px 3vw 72px 7vw; }
.section-label { padding-bottom: 20px; border-bottom: 1px solid var(--ink); margin-bottom: 24px; }
label { margin: 0; color: var(--muted); font-size: var(--text-sm); font-weight: 500; letter-spacing: 0; }
input { width: 100%; height: 64px; margin: 0 0 20px; padding: 22px 0 10px; border: 0; border-bottom: 1px solid var(--ink); border-radius: 0; outline: 0; color: var(--ink); background: transparent; font-family: var(--ui); font-size: var(--text-md); line-height: 1.2; }
input:focus { border-bottom: 3px solid var(--green); }
.password-field { position: relative; }
.password-field input { padding-right: 72px; }
.password-field button { position: absolute; right: 0; top: 20px; min-width: 44px; height: 44px; padding: 0; border: 0; color: var(--green); background: transparent; cursor: pointer; font-size: var(--text-sm); font-weight: 500; letter-spacing: 0; }
.submit { min-height: 92px; display: flex; justify-content: space-between; align-items: center; margin-top: 8px; padding: 0 24px; border: 1px solid var(--ink); border-radius: 0; color: var(--ink); background: var(--lime); cursor: pointer; font-family: var(--editorial); font-size: clamp(28px, 2.3vw, 34px); font-weight: 600; line-height: 1.15; }
.submit span:last-child { font-family: var(--editorial); font-size: var(--text-lg); font-weight: 400; letter-spacing: 0; }
.submit:hover, .submit:focus-visible { background: #c8ed5d; }
.mark:focus-visible, .wordmark:focus-visible, .hero-tail a:focus-visible, .password-field button:focus-visible, .submit:focus-visible { outline: 3px solid var(--green); outline-offset: 4px; }
.error { min-height: 20px; margin: 14px 0 0; color: var(--danger); font-size: 12px; }
.session-note { margin: 24px 0 0; color: var(--muted); font-size: var(--text-xs); font-weight: 600; letter-spacing: .04em; }
footer { min-height: 64px; display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--ink); color: var(--muted); font-size: var(--text-xs); font-weight: 600; letter-spacing: .22em; }

@media (max-width: 800px) {
  .page-shell { width: calc(100% - clamp(40px, 14vw, 60px)); min-height: 100svh; }
  .masthead { min-height: 78px; grid-template-columns: 64px 1fr 64px; }
  .mark { width: clamp(38px, 10.8vw, 42px); height: clamp(38px, 10.8vw, 42px); font-size: var(--text-lg); }
  .wordmark { font-size: clamp(18px, 5vw, 20px); letter-spacing: .3em; text-indent: .3em; }
  .status { width: 64px; font-size: var(--text-xs); }
  .login-layout { flex: none; grid-template-columns: 1fr; }
  .context { height: 274px; min-height: 0; padding: 48px 0 40px; border-right: 0; border-bottom: 1px solid var(--line); }
  .hero-meta { min-height: 17px; }
  .hero-tail { min-height: 44px; margin-top: 16px; }
  .section-label { font-size: var(--text-sm); }
  h1 { margin-top: 24px; font-size: var(--display-lg); font-weight: 600; line-height: 1; letter-spacing: -.03em; }
  h1 em { font-size: var(--display-lg); font-weight: 600; line-height: 1; letter-spacing: -.03em; }
  .login-card { padding: 40px 0 48px; }
  .section-label { padding-bottom: 22px; margin-bottom: 20px; }
  label { margin: 0; font-size: var(--text-sm); font-weight: 500; letter-spacing: 0; }
  input { height: 64px; margin: 0 0 18px; padding: 22px 0 10px; font-size: var(--text-md); line-height: 1.2; }
  .password-field input { padding-right: 60px; }
  .password-field button { top: 20px; min-width: 44px; height: 44px; padding: 0; font-size: var(--text-sm); font-weight: 500; letter-spacing: 0; }
  .submit { min-height: 92px; margin-top: 6px; padding-inline: 22px; font-size: var(--text-xl); font-weight: 600; line-height: 1.15; transition: background-color 140ms ease; }
  .submit span:last-child { font-size: var(--text-lg); font-weight: 400; letter-spacing: 0; }
  .submit:active { background: #c8ed5d; }
  .submit:active span:last-child { transform: translateX(2px); }
  .submit span:last-child { transition: transform 140ms ease; }
  .error:empty { display: none; }
  .error:not(:empty) { min-height: 20px; margin: 16px 0 0; }
  footer { min-height: 64px; margin-top: auto; }
}

@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }
