/* Shared approved identity: original artwork + sample E lettering.
   Keep the name as text: never restore the cropped brand-horizontal lockup. */
@font-face {
  font-family: "DejaVu Serif Brand";
  src: url("assets/DejaVuSerif-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
[hidden] { display: none !important; }
.brand, .footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: auto;
  max-width: 100%;
  flex: 0 0 auto;
  overflow: visible;
  background: transparent;
  text-decoration: none;
  letter-spacing: 0;
}
.brand img.brand-logo, .footer-brand img.brand-logo,
.hero-lockup img.hero-logo, .login-logo {
  display: block;
  object-fit: contain;
  flex: 0 0 auto;
  filter: url(#logo-paper);
  mix-blend-mode: normal;
  background: transparent;
}
.brand img.brand-logo, .footer-brand img.brand-logo { width: 64px; height: 40px; }
.brand-words { display: flex; min-width: 0; flex-direction: column; line-height: 1.25; }
.brand-words strong, .hero-lockup h1 {
  font-family: "DejaVu Serif Brand", Georgia, serif;
  font-weight: 700;
  color: var(--maroon);
  letter-spacing: 0;
}
.brand-words strong { font-size: 18px; white-space: nowrap; }
.brand-words small { margin-top: 4px; color: #7d6753; font-size: 8px; white-space: nowrap; }
.hero { background: var(--paper); }
.hero-copy { padding: 42px 3vw 36px 5vw; }
.hero-lockup { width: min(620px, 100%); margin: 0 0 20px; background: transparent; }
.hero-lockup img.hero-logo { width: 180px; height: auto; margin: 0 auto 20px; }
.hero-lockup h1 { margin: 0; font-size: clamp(28px, 3.3vw, 54px); line-height: 1.3; }
.hero-lockup p { margin: 12px 0 0; color: #765943; font-size: 16px; }
.hero-art {
  background-image: linear-gradient(90deg, var(--paper) 0%, var(--paper) 12%, rgba(251,247,238,.75) 26%, rgba(251,247,238,0) 52%), url("assets/hero-scene.jpg");
}
footer { grid-template-columns: minmax(275px,1.35fr) 1.1fr .55fr .7fr 1fr; }
.footer-brand .brand-words strong { color: #f2dfc1; }
.footer-brand .brand-words small { color: #cdbda7; }
.login-logo { width: 112px; height: auto; margin: 0 auto 20px; }
.login h1 { font-family: "DejaVu Serif Brand", Georgia, serif; font-size: 28px; color: var(--maroon); margin: 12px 0; }
.login { margin: 5vh auto; }
.login label { text-align: left; margin-top: 26px; }
.password-field { position: relative; }
.login .password-field input { margin: 0; padding-right: 80px; min-height: 52px; }
.password-field button { position: absolute; right: 7px; top: 7px; padding: 8px 12px; background: transparent; border: 0; color: var(--maroon); }
.login #passwordHelp { text-align: left; line-height: 1.6; margin: 10px 0 20px; }
.login #loginBtn { min-width: 160px; }
.login #loginMsg:empty, #appMsg:empty { display: none; }
.back-home { display: inline-block; margin-top: 14px; font-size: 14px; color: var(--maroon); }
button:disabled { cursor: wait; opacity: .65; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
@media (max-width: 1350px) {
  .site-header { height: 68px; padding: 0 18px; }
  .header-cta { display: none; }
  .nav-toggle { display: block; }
  .nav { position: absolute; left: 0; right: 0; top: 68px; background: var(--paper); border-bottom: 1px solid #eadfc9; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 18px 18px; }
  .nav.open { display: flex; }
  .nav a { padding: 11px 4px; border-bottom: 1px solid #efe3d1; }
}
@media (max-width: 1100px) {
  .brand-words small { display: none; }
  footer { grid-template-columns: 1.3fr 1fr 1fr; }
}
@media (max-width: 820px) {
  .brand-words strong { font-size: 15px; }
  .hero-copy { padding: 34px 18px 28px; }
  footer { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  footer { grid-template-columns: 1fr; }
  .hero-lockup h1 { font-size: clamp(24px, 7vw, 36px); }
  .hero-lockup p { font-size: 14px; }
  .login { padding: 24px 18px; margin: 18px auto; }
  .login h1 { font-size: 25px; }
}
@media (max-width: 360px) {
  .brand img.brand-logo, .footer-brand img.brand-logo { width: 48px; height: 30px; }
  .brand-words strong { font-size: 14px; }
}
