:root {
  --cream: #EEDFC4;
  --paper: #F1E8D6;
  --ink: #3A3A3A;
  --red: #8E1E14;
  --blue: #496977;
  --desk: #BBB8AE;
  --cabinet: #DDD5C5;
  --line: rgba(58, 58, 58, .22);
  --mono: 'Courier New', Courier, monospace;
  --sans: 'Arial Narrow', Arial, Helvetica, sans-serif;
  --serif: Georgia, 'Times New Roman', serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { background: var(--desk); }
body { margin: 0; color: var(--ink); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
.skip-link { position: fixed; top: 8px; left: 8px; z-index: 10; padding: 12px 16px; transform: translateY(-160%); background: var(--paper); font: 14px/1.5 var(--mono); }
.skip-link:focus { transform: none; outline: 3px solid var(--blue); }
.error-page { max-width: 640px; margin: 8vh auto; padding: 32px; background: var(--paper); font: 16px/1.6 var(--sans); }
.error-page h1 { font-size: 28px; }
.error-page a:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; }
.app-shell {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  width: min(1120px, calc(100% - 64px));
  margin: 56px auto;
  border: 1px solid #999182;
  background: var(--cabinet);
}
.file-cabinet { padding-top: 38px; border-right: 1px solid #AAA294; }
.language-switch { display: flex; align-items: center; gap: 9px; margin: 0 26px 24px; font: 11px/1.5 var(--mono); }
.language-switch a { color: var(--ink); text-decoration: none; }
.language-switch a, .language-switch .is-current { display: inline-flex; align-items: center; min-width: 24px; min-height: 28px; }
.language-switch a:hover { text-decoration: underline; text-underline-offset: 3px; }
.language-switch a:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; }
.language-switch .is-current { font-weight: 700; color: var(--ink); }
.language-switch__divider { color: #897F70; }
.file-cabinet h1 { margin: 0 26px 34px; font: 700 25px/1.04 var(--sans); letter-spacing: -.045em; }
.file-list { border-top: 1px solid var(--line); }
.file-link {
  display: grid;
  grid-template-columns: 25px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 68px;
  padding: 18px 26px;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}
.file-link:hover { background: #E8E0D1; }
.file-link:focus-visible { outline: 3px solid var(--blue); outline-offset: -3px; }
.file-link.is-active { background: var(--paper); box-shadow: inset 3px 0 var(--red); }
.file-link__num { color: var(--red); font: 700 10px var(--mono); }
.file-link__title { font: 700 15px var(--sans); }
.document-tray { min-width: 0; padding: 32px; background: #C4BFB3; }
.sheet {
  max-width: 792px;
  min-height: 620px;
  margin: 0 auto;
  padding: 36px 44px 44px;
  border: 1px solid #B2A58E;
  background: var(--paper);
  box-shadow: 0 4px 14px #736D5E18;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand__emblem { flex: none; width: 51px; height: 57px; object-fit: contain; }
.brand__name { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; }
.brand__wordmark { display: block; width: 210px; max-width: 100%; height: auto; }
.brand__name small { margin: 1px 0 0 10px; font: 700 7px var(--mono); letter-spacing: .32em; }
.brand-bio { max-width: 36ch; margin: 18px 0 0; font: 11px/1.7 var(--mono); color: #635D52; }
.accent-rule { height: 3px; margin: 22px 0 34px; background: var(--red); }
.memo-title { margin: 0 0 30px; font: normal 42px/1.05 var(--serif); letter-spacing: -.045em; }
.fields { margin: 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.fields div {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-height: 40px;
  padding-block: 9px;
}
.fields div + div { border-top: 1px solid var(--line); }
.fields dt, .fields dd { margin: 0; font: 700 10px/1.5 var(--mono); letter-spacing: .025em; }
.fields dt { color: var(--blue); }
.fields dd { overflow-wrap: anywhere; }
.project-note { margin: 18px 0 0; color: #635D52; font: 14px/1.5 var(--serif); }
.works { margin: 30px 0 0; padding: 0; list-style: none; }
.work { padding: 24px 0; border-bottom: 1px solid var(--line); }
.work:first-child { padding-top: 0; }
.work h3 { margin: 0 0 10px; font: 700 27px/1.1 var(--sans); letter-spacing: -.035em; }
.work__type { color: var(--blue); font: 11px/1.5 var(--mono); }
.work p { margin: 9px 0 0; color: #635D52; font: 14px/1.5 var(--serif); }
.memo-footer { display: flex; justify-content: flex-end; padding-top: 32px; }
.date-stamp { display: flex; flex-direction: column; gap: 6px; max-width: 100%; padding: 8px 12px; border: 2px solid var(--red); color: var(--red); text-align: center; transform: rotate(-4deg); opacity: .86; font: 700 20px/1.1 var(--mono); }
.date-stamp span { font-size: 8px; letter-spacing: .14em; }
.date-stamp time { white-space: nowrap; }
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
::selection { background: var(--blue); color: var(--paper); }
@media (max-width: 920px) {
  .app-shell { grid-template-columns: 180px minmax(0, 1fr); width: calc(100% - 32px); margin: 24px auto; }
  .file-cabinet h1 { margin-inline: 20px; font-size: 23px; }
  .language-switch { margin-inline: 20px; }
  .file-link { padding-inline: 20px; }
  .document-tray { padding: 22px; }
  .sheet { padding-inline: 30px; }
}
@media (max-width: 680px) {
  .app-shell { display: block; width: 100%; margin: 0; border: 0; }
  .file-cabinet { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; padding-top: 14px; border-right: 0; }
  .language-switch { grid-column: 2; grid-row: 1; justify-content: flex-end; margin: 0 20px 14px 8px; }
  .file-cabinet h1 { grid-column: 1; grid-row: 1; margin: 0 0 14px 20px; font: 700 11px var(--mono); letter-spacing: .035em; }
  .file-cabinet h1 br { display: none; }
  .file-list { display: grid; grid-column: 1 / -1; grid-template-columns: 1fr 1fr; border-top: 0; }
  .file-link { min-height: 56px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
  .file-link + .file-link { border-left: 1px solid var(--line); }
  .file-link.is-active { box-shadow: inset 0 3px var(--red); }
  .document-tray { padding: 14px 10px 24px; }
  .sheet { min-height: 0; padding: 28px 24px 38px; }
  .brand__emblem { width: 44px; height: 50px; }
  .brand__wordmark { width: 190px; }
  .brand__name small { font-size: 6px; }
  .brand-bio { margin-top: 16px; font-size: 10px; }
  .accent-rule { margin: 20px 0 30px; }
  .memo-title { margin-bottom: 26px; font-size: 36px; }
  .fields div { grid-template-columns: 66px minmax(0, 1fr); min-height: 42px; gap: 10px; }
  .fields dt, .fields dd { font-size: 9px; }
  .project-note, .work p { font-size: 13px; }
  .works { margin-top: 28px; }
  .work { padding-block: 24px; }
  .work h3 { font-size: 25px; }
  .date-stamp { font-size: 17px; }
}
@media print {
  html, body { background: #FFF; }
  .app-shell { display: block; width: 100%; margin: 0; border: 0; }
  .file-cabinet, .visually-hidden { display: none !important; }
  .document-tray { padding: 0; background: #FFF; }
  .sheet { max-width: none; min-height: 0; margin: 0; padding: 0; border: 0; box-shadow: none; background: #FFF; }
  .work { break-inside: avoid; }
  @page { size: A4; margin: 18mm; }
}
