@font-face {
  font-family: "Instrument Serif";
  src: url("/assets/instrument-serif-italic.ttf") format("truetype");
  font-style: italic;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Space Grotesk";
  src: url("/assets/space-grotesk.ttf") format("truetype");
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
}
:root {
  color-scheme: light;
  --paper: #eeeae2;
  --ink: #242621;
  --muted: #65665e;
  --line: #c8c8bb;
  --accent: #b84428;
  --surface: #f8f5ee;
  --body: "Space Grotesk", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --serif: "Instrument Serif", "Baskerville", "Songti SC", serif;
}
* { box-sizing: border-box; }
html { min-width: 320px; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1rem/1.5 var(--body); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button, summary { -webkit-tap-highlight-color: transparent; }
button, a, summary, input { touch-action: manipulation; }
::selection { color: var(--surface); background: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: fixed; top: 12px; left: 12px; transform: translateY(-200%); padding: 12px 20px; background: var(--ink); color: var(--surface); z-index: 30; }
.skip-link:focus { transform: none; }
.page { max-width: 1480px; min-height: 100svh; margin: 0 auto; padding: 0 clamp(24px, 5vw, 80px); display: flex; flex-direction: column; }
.header { position: relative; z-index: 5; min-height: 100px; display: flex; align-items: center; gap: 28px; border-bottom: 1px solid var(--ink); }
.signature { display: inline-flex; align-items: center; min-width: 48px; min-height: 48px; font: italic 44px/.8 var(--serif); }
.signature span { margin: 0 0 2px 7px; color: var(--accent); font: 300 27px/1 var(--body); }
.header-label { font-size: .875rem; letter-spacing: .12em; }
.header-actions { display: flex; align-items: center; gap: 32px; margin-left: auto; }
.logout { display: flex; align-items: center; min-height: 44px; color: var(--muted); font-size: .875rem; }
.logout:hover { color: var(--accent); }
.more { position: relative; }
.more summary { min-height: 48px; display: flex; align-items: center; gap: 22px; font-size: .875rem; list-style: none; cursor: pointer; user-select: none; }
.more summary::-webkit-details-marker { display: none; }
.more summary:hover, .more[open] summary { color: var(--accent); }
.plus { font-size: 24px; font-weight: 300; transition: transform .2s ease; }
.more[open] .plus { transform: rotate(45deg); }
.more-panel { position: absolute; top: calc(100% + 10px); right: -18px; width: 340px; padding: 22px 26px 12px; border: 1px solid var(--ink); background: var(--ink); color: var(--surface); }
.menu-heading { display: flex; justify-content: space-between; padding-bottom: 15px; border-bottom: 1px solid #686b5e; font-size: .875rem; }
.menu-heading .small-index { color: #bdbfb1; }
.more-panel > a { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 68px; padding: 14px 0; border-bottom: 1px solid #494c42; font-size: 1rem; }
.more-panel > a:last-child { border-bottom: 0; }
.more-panel > a small { display: inline-block; margin-left: 14px; color: #bdbfb1; font-size: .8125rem; }
.more-panel > a > span:last-child { color: #bdbfb1; transition: transform .18s ease; }
.more-panel > a:hover { color: #f1b8a1; }
.more-panel > a:hover > span:last-child { color: #f1b8a1; transform: translate(2px, -2px); }
.more-panel :focus-visible { outline-color: #f1b8a1; }
.workspace { flex: 1; display: grid; grid-template-columns: minmax(0, .88fr) minmax(0, 1.35fr); gap: clamp(36px, 6vw, 96px); padding: 56px 0 64px; align-items: stretch; }
.identity { display: flex; flex-direction: column; min-width: 0; padding-top: 4px; }
.eyebrow { margin: 0; font-size: .75rem; font-weight: 500; letter-spacing: .13em; }
.wordmark { margin: 8px 0 0 -8px; font: italic 400 clamp(120px, 16vw, 222px)/1 var(--serif); letter-spacing: -.065em; white-space: nowrap; }
.wordmark span { color: var(--accent); }
.service-index { min-width: 0; align-self: center; }
.index-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 0 20px; }
.index-heading h2 { margin: 0; font-size: .875rem; font-weight: 500; letter-spacing: .08em; }
.small-index { color: var(--muted); font-size: .75rem; font-weight: 500; letter-spacing: .06em; }
.service { display: grid; grid-template-columns: 26px minmax(0, 1fr) 35px; gap: clamp(14px, 2.1vw, 34px); }
.service-number { font-size: .75rem; font-weight: 500; line-height: 1.5; }
.service-content { min-width: 0; }
.service h3 { margin: 0; font-weight: 500; }
.service p { margin: 10px 0 0; font-size: .875rem; color: var(--muted); letter-spacing: .035em; }
.service-arrow { display: block; width: 32px; height: 32px; transition: transform .22s ease; }
.service-arrow svg { display: block; width: 100%; height: 100%; }
.service:hover .service-arrow { transform: translate(3px, -3px); }
.service-featured { min-height: 278px; padding: 27px 28px 31px; background: var(--ink); color: var(--surface); transition: background-color .2s ease; }
.service-featured .service-number { color: #d3d2c2; }
.service-featured .service-type { display: block; margin: 2px 0 22px; color: #d3d2c2; font-size: .75rem; letter-spacing: .07em; }
.service-featured h3 { font-size: clamp(30px, 3.3vw, 48px); letter-spacing: -.045em; line-height: 1.07; }
.service-featured h3 em { font: italic 400 1.33em/.97 var(--serif); letter-spacing: -.025em; }
.service-featured p { margin-top: 22px; color: #d3d2c2; }
.service-featured .service-arrow { color: #e8a286; }
.service-featured:hover { background: #343a2d; }
.service-featured:focus-visible { outline-offset: 5px; }
.service-row { min-height: 130px; align-items: center; padding: 25px 28px; border-bottom: 1px solid var(--line); transition: background-color .2s ease; }
.service-row h3 { font-size: clamp(25px, 2.55vw, 36px); letter-spacing: -.045em; line-height: 1.1; }
.service-row p { margin-top: 8px; }
.service-row .service-number { align-self: start; padding-top: 6px; color: var(--muted); }
.service-row .service-arrow { color: var(--muted); }
.service-row:hover { background: #e6e3d9; }
.service-row:hover h3, .service-row:hover .service-arrow { color: var(--accent); }
.footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 66px; border-top: 1px solid var(--line); color: var(--muted); font-size: .75rem; letter-spacing: .045em; }
.login-header-note { margin-left: auto; color: var(--muted); font-size: .875rem; }
.login-workspace { align-items: center; }
.login-identity { align-self: stretch; }
.login-section { width: 100%; max-width: 400px; justify-self: center; padding: 30px 0; }
.login-eyebrow { color: var(--muted); }
.login-section h1 { margin: 25px 0 14px; font-weight: 500; font-size: clamp(27px, 3vw, 40px); line-height: 1.3; letter-spacing: -.045em; }
.login-section h1 span { margin-left: 5px; color: var(--accent); }
.login-description { color: var(--muted); font-size: .875rem; margin: 0 0 36px; }
.field { margin-bottom: 24px; }
.field label { display: block; margin-bottom: 9px; font-size: .875rem; }
.field input { display: block; width: 100%; min-height: 51px; padding: 12px 14px; border: 1px solid #a3a69a; border-radius: 0; color: var(--ink); background: transparent; appearance: none; }
.field input:focus { outline: 2px solid var(--accent); outline-offset: 2px; border-color: var(--accent); background: var(--surface); }
.login-button { display: flex; justify-content: space-between; align-items: center; gap: 18px; width: 100%; min-height: 56px; margin-top: 36px; padding: 15px 18px; border: 0; border-radius: 0; color: var(--surface); background: var(--ink); cursor: pointer; transition: background-color .18s ease; }
.login-button > span:last-child { font-size: 24px; line-height: 1; }
.login-button:hover { background: var(--accent); }
.alert { margin: 0 0 26px; padding: 10px 0 10px 14px; border-left: 2px solid var(--accent); color: var(--accent); font-size: .875rem; }
@media (min-width: 1450px) { .workspace { padding-top: 80px; padding-bottom: 80px; } }
@media (max-width: 1050px) {
  .workspace { grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr); gap: 40px; }
  .wordmark { font-size: clamp(110px, 15.5vw, 170px); }
  .service-featured { padding: 24px; }
  .service-row { padding: 24px; }
}
@media (max-width: 760px) {
  .header { min-height: 80px; gap: 16px; }
  .header-actions { gap: 22px; }
  .header-label { font-size: .8125rem; letter-spacing: .04em; }
  .more summary { gap: 10px; }
  .more-panel { right: -55px; }
  .workspace { display: block; padding: 28px 0 38px; }
  .identity { padding-top: 0; }
  .identity-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
  .identity-top .eyebrow { order: 2; padding-bottom: 20px; text-align: right; font-size: .75rem; }
  .wordmark { font-size: 130px; margin-top: -8px; margin-bottom: 22px; }
  .service-index { width: 100%; }
  .index-heading { padding-bottom: 16px; }
  .service-featured { min-height: 250px; padding: 24px; }
  .service-featured h3 { font-size: 40px; }
  .service-row { min-height: 122px; padding: 24px; }
  .service-row h3 { font-size: 30px; }
  .footer { min-height: 58px; }
  .login-identity .wordmark { margin-bottom: 0; }
  .login-section { margin: 25px auto 15px; padding: 0; }
  .login-section h1 { margin-top: 16px; }
  .login-section .login-eyebrow { display: none; }
  .login-description { margin-bottom: 28px; }
}
@media (max-width: 420px) {
  .page { padding: 0 20px; }
  .header-label { display: none; }
  .header-actions { gap: 24px; }
  .more-panel { position: fixed; top: 76px; left: 20px; right: 20px; width: auto; max-height: calc(100svh - 100px); overflow-y: auto; padding: 19px 22px 10px; }
  .more-panel > a small { margin-left: 10px; }
  .identity-top .eyebrow { max-width: 95px; padding-bottom: 20px; }
  .wordmark { font-size: 112px; }
  .service { grid-template-columns: 20px minmax(0, 1fr) 25px; gap: 14px; }
  .service-featured { min-height: 235px; padding: 22px 18px; }
  .service-featured h3 { font-size: 34px; }
  .service-arrow { width: 26px; height: 26px; }
  .service-row { padding: 22px 18px; }
  .service-row h3 { font-size: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
.menu-heading a { color: #f1b8a1; text-decoration: underline; text-underline-offset: 4px; }
.more-panel { max-height: min(640px, 75svh); overflow-y: auto; }
.more-panel > a small { font-size: .875rem; }
.directory { flex: 1; padding: 46px 0 64px; }
.directory-heading { margin-bottom: 38px; }
.directory-heading .eyebrow { font-size: .875rem; }
.directory-heading h1 { font-size: clamp(32px, 5vw, 52px); font-weight: 500; letter-spacing: -.04em; margin: 12px 0; }
.directory-heading h1 span { color: var(--accent); }
.directory-heading p, .directory-editor > p { color: var(--muted); }
.directory-layout { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(300px, 1fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.directory-row { padding: 24px 0; border-top: 1px solid var(--line); }
.directory-row:first-child { border-color: var(--ink); }
.directory-row h2 { font-size: 21px; font-weight: 500; margin: 0 0 4px; }
.directory-row p { margin: 0 0 6px; color: var(--muted); }
.directory-row code { font: 14px/1.6 "Space Grotesk", monospace; overflow-wrap: anywhere; }
.directory-state { font-size: 14px; font-weight: 400; color: var(--muted); margin-left: 8px; }
.directory-actions, .directory-actions form { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; }
.directory-actions { margin-top: 12px; }
.directory-actions a, .directory-actions button { font-size: 14px; min-height: 40px; display: inline-flex; align-items: center; }
.directory-actions button { border: 0; padding: 0; background: transparent; color: inherit; cursor: pointer; }
.directory-actions button:disabled { color: #8a8d80; cursor: default; }
.directory-actions a:hover, .directory-actions button:enabled:hover, .danger { color: var(--accent); }
.directory-editor { border-top: 2px solid var(--accent); padding-top: 20px; scroll-margin-top: 30px; }
.directory-editor h2 { margin: 0; font-size: 24px; font-weight: 500; }
.directory-editor > p { margin-bottom: 28px; }
.directory-editor .field { margin-bottom: 18px; }
.directory-editor select { width: 100%; padding: 12px; min-height: 48px; border: 1px solid #a3a69a; border-radius: 0; font: inherit; color: var(--ink); background: transparent; }
.check-field { display: flex; align-items: center; gap: 10px; min-height: 44px; font-size: 14px; }
.check-field input { width: 18px; height: 18px; accent-color: var(--accent); }
.editor-buttons { display: flex; align-items: center; flex-wrap: wrap; gap: 24px; margin-top: 20px; }
.primary-button { padding: 13px 22px; border: 0; border-radius: 0; min-height: 48px; background: var(--ink); color: var(--surface); cursor: pointer; }
.primary-button:hover { background: var(--accent); }
@media (max-width: 820px) { .directory-layout { grid-template-columns: 1fr; } .directory-editor { max-width: 560px; width: 100%; } }
