:root {
  --cream: #b1a43f;
  --paper: #fffefa;
  --ink: #1d1e1b;
  --smoke: #71716c;
  --hairline: #e9e4d7;
  --red: #df1715;
}
* { box-sizing: border-box; }
html, body { min-height: 100%; }
body { margin: 0; color: var(--ink); background: var(--cream); font-family: Arial, Helvetica, sans-serif; }
a { color: inherit; }
.landing-screen, .docs-screen { min-height: 100svh; }
.landing-identity, .docs-identity { min-height: 100svh; display: grid; place-items: center; background: var(--cream); }
.identity-copy { display: flex; width: min(100% - 3rem, 48rem); flex-direction: column; align-items: center; text-align: center; }
.wordmark { margin: 0; color: var(--paper); font-size: clamp(3.5rem, 9vw, 8rem); font-weight: 900; letter-spacing: -0.09em; line-height: 0.84; }
.wordmark-mark { display: inline-block; width: 0.17em; height: 0.17em; margin: 0 0.075em 0.13em 0.13em; vertical-align: baseline; background: var(--red); }
.status-copy { margin-top: clamp(4.5rem, 11vh, 8.5rem); color: var(--smoke); }
.status-copy p, .docs-link, .panel-eyebrow { margin: 0; font-family: 'Courier New', Courier, monospace; font-size: 0.88rem; font-weight: 700; letter-spacing: 0.52em; }
.status-copy span { display: block; margin-top: 0.55rem; font-family: 'Courier New', Courier, monospace; font-size: clamp(0.95rem, 1.8vw, 1.25rem); font-weight: 700; }
.docs-link { margin-top: clamp(4.5rem, 10vh, 7rem); color: var(--smoke); text-decoration: none; transition: color 180ms ease, transform 180ms ease; }
.docs-link:hover, .docs-link:focus-visible { color: var(--red); outline: none; transform: translateY(-2px); }
.docs-screen { display: grid; grid-template-columns: minmax(0, 1fr) minmax(38rem, 1fr); background: var(--cream); }
.docs-identity { min-height: 100svh; }
.document-panel { min-height: 100svh; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; overflow: hidden; border-left: 1px solid rgba(255,255,255,0.65); border-radius: 1.75rem 0 0 1.75rem; background: var(--paper); box-shadow: -18px 0 50px rgba(43,40,29,0.08); animation: panel-enter 520ms cubic-bezier(0.16,1,0.3,1) both; }
.panel-header { display: flex; align-items: start; justify-content: space-between; gap: 1.5rem; padding: clamp(1.5rem,4vw,3.25rem) clamp(1.5rem,4vw,3.5rem) 1.35rem; border-bottom: 1px solid var(--hairline); }
.panel-eyebrow { color: var(--smoke); font-size: 0.67rem; letter-spacing: 0.25em; }
.quiet-status { display: inline-block; width: 0.52rem; height: 0.52rem; margin-right: 0.48rem; border-radius: 999px; background: var(--red); box-shadow: 0 0 0 0 rgba(223,23,21,0.25); animation: quiet-pulse 2.8s ease-in-out infinite; }
.panel-header h1 { margin: 0.8rem 0 0; font-size: clamp(1.3rem,2.4vw,2rem); letter-spacing: -0.045em; }
.panel-action, .panel-footer a { color: var(--ink); font-family: 'Courier New', Courier, monospace; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.12em; text-decoration: none; }
.panel-action { white-space: nowrap; padding-top: 0.22rem; }
.panel-action:hover, .panel-action:focus-visible, .panel-footer a:hover, .panel-footer a:focus-visible { color: var(--red); outline: none; }
.pdf-stage { min-height: 0; padding: clamp(1rem,2.2vw,2rem); background: #f5f4f1; }
.pdf-stage iframe { width: 100%; height: 100%; min-height: 26rem; border: 1px solid #dedbd2; border-radius: 0.7rem; background: #fff; }
.panel-footer { display: flex; justify-content: space-between; gap: 1rem; padding: 1.05rem clamp(1.5rem,4vw,3.5rem); border-top: 1px solid var(--hairline); color: var(--smoke); font-size: 0.76rem; }
@keyframes panel-enter { from { opacity: 0; transform: translateX(6%); } to { opacity: 1; transform: translateX(0); } }
@keyframes quiet-pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(223,23,21,0.2); opacity: 0.72; } 50% { box-shadow: 0 0 0 0.45rem rgba(223,23,21,0); opacity: 1; } }
@media (max-width: 900px) { .docs-screen { display: block; } .docs-identity { display: none; } .document-panel { min-height: 100svh; border: 0; border-radius: 0; box-shadow: none; } }
@media (max-width: 540px) { .identity-copy { width: min(100% - 2rem, 30rem); } .wordmark { font-size: clamp(3.15rem,14vw,5.1rem); } .status-copy { margin-top: 4.5rem; } .status-copy p, .docs-link { font-size: 0.72rem; letter-spacing: 0.38em; } .status-copy span { font-size: 0.92rem; } .panel-header { gap: 1rem; padding: 1.3rem 1.15rem 1rem; } .panel-action { max-width: 7rem; line-height: 1.35; text-align: right; } .pdf-stage { padding: 0.85rem; } .pdf-stage iframe { min-height: 24rem; } .panel-footer { padding: 0.9rem 1.15rem; font-size: 0.68rem; } .panel-footer span { max-width: 11rem; } }
@media (prefers-reduced-motion: reduce) { .document-panel, .quiet-status { animation: none; } }
