/* assets/css/chrome.css — the shared Index button, drawer, contact panel and footer.
   Loaded by every page beside assets/chrome.js, which only builds the markup.
   Styles live here, never in the script (CLAUDE.md: no styling by JavaScript).
   The wordmark is defined once, in masthead.css, and nowhere else. */

.hl-index-btn { background: transparent; border: 0; width: 44px; height: 44px; padding: 0; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; justify-self: end; color: var(--ink, #1d2e26); }
.hl-bars { display: flex; flex-direction: column; justify-content: space-between; width: 26px; height: 18px; }
.hl-bars i { display: block; height: 2px; width: 100%; background: currentColor; }
.hl-index-btn:hover .hl-bars i { background: var(--orange, #F76C24); }
.hl-index-btn:focus-visible { outline: 2px solid var(--orange, #F76C24); outline-offset: 2px; }

/* ---- drawer ---- */
.hl-drawer-overlay { position: fixed; inset: 0; background: rgba(29, 46, 38, 0); pointer-events: none;
  z-index: 999; transition: background-color 250ms ease-out; }
.hl-drawer-overlay.open { background: rgba(29, 46, 38, 0.45); pointer-events: auto; }
.hl-drawer { position: fixed; top: 0; right: 0; bottom: 0; width: 420px; max-width: 92vw;
  background: var(--ink, #1d2e26); color: var(--paper, #F8F6F0); z-index: 1000;
  transform: translateX(100%); transition: transform 320ms cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto; padding: 28px 32px; }
.hl-drawer.open { transform: translateX(0); }
.hl-drawer-head { display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 28px; padding-bottom: 16px; border-bottom: 1px solid rgba(248, 246, 240, 0.25); }
.hl-drawer-eyebrow { font-family: 'GT Alpina Typewriter', 'IBM Plex Mono', monospace; font-size: 10px;
  letter-spacing: 0.14em; text-transform: uppercase; opacity: 0.75; }
.hl-drawer-close { background: transparent; border: 1px solid var(--paper, #F8F6F0); color: var(--paper, #F8F6F0);
  width: 44px; height: 44px; cursor: pointer; font-size: 18px; display: flex; align-items: center;
  justify-content: center; border-radius: 0; padding: 0; }
.hl-drawer-close:hover { background: var(--paper, #F8F6F0); color: var(--ink, #1d2e26); }
.hl-drawer-nav { list-style: none; padding: 0; margin: 0; }
.hl-drawer-nav li { border-bottom: 1px solid rgba(248, 246, 240, 0.2); }
.hl-drawer-nav li:last-child { border-bottom: none; }
.hl-drawer-nav a { display: block; padding: 18px 0; text-decoration: none; color: var(--paper, #F8F6F0); }
.hl-drawer-nav a:hover .label { text-decoration: underline; text-underline-offset: 4px; }
.hl-drawer-nav .label { font-family: 'GT Alpina Fine', serif; font-weight: 400; font-size: 30px;
  line-height: 1.05; display: block; margin-bottom: 6px; }
.hl-drawer-nav .desc { font-family: 'IBM Plex Sans', sans-serif; font-size: 13px; line-height: 1.45;
  opacity: 0.8; display: block; }
.hl-drawer-foot { margin-top: 28px; padding-top: 16px; border-top: 1px solid rgba(248, 246, 240, 0.25);
  display: flex; gap: 18px; flex-wrap: wrap; font-family: 'IBM Plex Sans', sans-serif; font-size: 13px; }
.hl-drawer-foot a { color: var(--paper, #F8F6F0); opacity: 0.85; cursor: pointer; }

/* ---- contact panel ---- */
.hl-modal { display: none; position: fixed; inset: 0; background: rgba(29, 46, 38, 0.85); z-index: 1001;
  padding: 24px; align-items: center; justify-content: center; overflow-y: auto; }
.hl-modal.open { display: flex; }
.hl-modal-inner { background: var(--paper, #F8F6F0); padding: 36px; max-width: 560px; width: 100%;
  border: 2px solid var(--ink, #1d2e26); position: relative; max-height: 90vh; overflow-y: auto; }
.hl-modal h3 { font-family: 'GT Alpina Fine', serif; font-weight: 400; font-size: 32px; margin: 0 0 10px;
  line-height: 1.1; color: var(--ink, #1d2e26); }
.hl-modal .lede { font-family: 'IBM Plex Sans', sans-serif; color: var(--ink-soft, rgba(29, 46, 38, 0.78));
  font-size: 14px; line-height: 1.5; margin: 0 0 20px; }
.hl-modal-close { position: absolute; top: 14px; right: 14px; background: transparent; border: 1px solid var(--ink, #1d2e26);
  cursor: pointer; font-size: 16px; color: var(--ink, #1d2e26); width: 44px; height: 44px; padding: 0; border-radius: 0; }
.hl-modal-close:hover { background: var(--ink, #1d2e26); color: var(--paper, #F8F6F0); }
.hl-modal input, .hl-modal textarea { width: 100%; font-family: 'IBM Plex Sans', sans-serif; font-size: 15px;
  padding: 12px 14px; min-height: 44px; border: 1px solid var(--ink-hairline, rgba(29, 46, 38, 0.22));
  background: var(--paper, #F8F6F0); color: var(--ink, #1d2e26); border-radius: 0; margin-bottom: 12px; box-sizing: border-box; }
.hl-modal textarea { resize: vertical; min-height: 110px; }
.hl-modal-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.hl-modal button[type="submit"] { font-family: 'IBM Plex Sans', sans-serif; font-size: 12px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.08em; background: var(--ink, #1d2e26); color: var(--paper, #F8F6F0);
  border: 1px solid var(--ink, #1d2e26); padding: 13px 22px; min-height: 44px; cursor: pointer; border-radius: 0; }
.hl-modal .msg { font-family: 'IBM Plex Sans', sans-serif; font-size: 13px; color: var(--ink-soft, rgba(29, 46, 38, 0.78)); }

/* ---- footer ----
   The big footer: the stencil line, a four-column row with the small wordmark
   above the blurb, the round stamp, and the legal line. Stardos Stencil is
   SIL OFL and self-hosted, so no Google Fonts request is made. */
@font-face { font-family: 'Stardos Stencil'; font-weight: 400; font-display: swap;
  src: url('/assets/fonts/stardos-stencil-400.woff2') format('woff2'); }
@font-face { font-family: 'Stardos Stencil'; font-weight: 700; font-display: swap;
  src: url('/assets/fonts/stardos-stencil-700.woff2') format('woff2'); }

.hl-footer { background: var(--ink, #1d2e26); color: var(--paper, #F8F6F0); margin-top: 96px; padding: 80px 0 40px; }
.hl-footer-shell { max-width: 1280px; margin: 0 auto; padding: 0 64px; }
@media (max-width: 720px) { .hl-footer { margin-top: 64px; padding: 56px 0 32px; } .hl-footer-shell { padding: 0 24px; } }

.hl-footer-mark { font-family: 'Stardos Stencil', Impact, sans-serif; font-weight: 700; text-transform: uppercase;
  font-size: clamp(88px, 16vw, 220px); line-height: 0.88; letter-spacing: 0.01em;
  color: var(--paper, #F8F6F0); margin: 0 0 56px; }
.hl-footer-mark .pop { color: var(--orange, #F76C24); }
@media (max-width: 720px) { .hl-footer-mark { font-size: 56px; margin-bottom: 36px; } }

.hl-footer-mid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 48px; padding: 48px 0;
  border-top: 1px solid rgba(248, 246, 240, 0.18); border-bottom: 1px solid rgba(248, 246, 240, 0.18); }
@media (max-width: 720px) { .hl-footer-mid { grid-template-columns: 1fr 1fr; gap: 28px; padding: 32px 0; } }
.hl-footer-mid h4 { font-family: 'IBM Plex Sans', system-ui, sans-serif; font-size: 11px; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.14em; color: var(--orange, #F76C24); margin: 0 0 16px; }
.hl-footer-brand { font-family: 'GT Alpina', Georgia, serif !important; text-transform: none !important;
  font-size: 22px !important; letter-spacing: 0 !important; color: var(--paper, #F8F6F0) !important; font-weight: 500 !important; }
.hl-footer-brand em { font-style: italic; }
.hl-footer-mid .blurb { font-family: 'GT Alpina', Georgia, serif; font-style: italic; font-size: 16px; line-height: 1.5; margin: 0; color: var(--paper, #F8F6F0); opacity: 0.9; }
.hl-footer-mid p { font-family: 'GT Alpina', Georgia, serif; font-size: 15px; color: var(--paper, #F8F6F0); margin: 0 0 8px; opacity: 0.9; }
.hl-footer-mid a { color: var(--paper, #F8F6F0); text-decoration: none; border-bottom: 1px solid rgba(248, 246, 240, 0.25);
  padding-bottom: 1px; cursor: pointer; transition: border-color 200ms, color 200ms; }
.hl-footer-mid a:hover { color: var(--orange, #F76C24); border-bottom-color: var(--orange, #F76C24); }

.hl-stamp-row { display: flex; align-items: center; justify-content: flex-start; padding: 48px 0 0; }
.hl-stamp { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; flex-shrink: 0; }
.hl-stamp .stamp-glyph { font-family: 'GT Alpina Fine', 'GT Alpina', Georgia, serif; font-size: 80px; line-height: 1;
  color: var(--paper, #F8F6F0); display: block; }
.hl-stamp .stamp-wordmark { font-family: 'GT Alpina', Georgia, serif; font-weight: 500; font-size: 22px; line-height: 1;
  color: var(--paper, #F8F6F0); }
.hl-stamp .stamp-wordmark em { font-style: italic; }

.hl-legal { margin-top: 40px; padding-top: 24px; border-top: 1px solid rgba(248, 246, 240, 0.18);
  font-family: 'GT Alpina Typewriter', 'IBM Plex Mono', monospace; font-size: 10px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--paper, #F8F6F0); opacity: 0.6; }

/* The menu button sits at the right margin, as on a phone, on every page. */
.masthead-row .index-btn-mount { grid-column: 3; justify-self: end; }
