/* Trostrum site chrome: design tokens, header, mobile menu, footer.
   Loaded on every page, including /duck (which keeps its own Tailwind styles),
   so every selector here is namespaced with .site- to avoid collisions. */
:root {
  --paper:#F6F4EE; --paper-2:#ECE8DD; --ink:#16150F; --ink-2:#2A2820; --muted:#6B685E; --rule:#D9D5C8;
  --accent:#B5371F; --accent-ink:#8F2914; --accent-soft:#E8785F; --ok:#2E7D32;
  --sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Consolas, monospace;
  --w: 1160px;
}

/* header */
.site-header { position: sticky; top: 0; z-index: 60; background: rgba(246,244,238,.95); border-bottom: 1px solid var(--rule);
  font: 400 15px/1.5 var(--sans); color: var(--ink); -webkit-backdrop-filter: saturate(1.4) blur(8px); backdrop-filter: saturate(1.4) blur(8px); }
.site-header * { box-sizing: border-box; }
.site-header .site-wrap { max-width: var(--w); margin: 0 auto; padding: 0 24px; display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 68px; }
.site-logo { color: var(--ink); line-height: 0; text-decoration: none; flex: none; }
.site-logo svg { height: 28px; width: auto; display: block; }
.site-nav { display: flex; align-items: center; gap: 26px; }
.site-nav a { color: var(--ink); text-decoration: none; position: relative; padding: 6px 0; }
.site-nav a:hover { color: var(--accent); }
.site-nav a[aria-current="page"] { color: var(--accent); }
.site-nav a[aria-current="page"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--accent); }
.site-nav .site-cta, .site-cta { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; background: var(--ink); color: var(--paper) !important;
  border: 1px solid var(--ink); border-radius: 2px; font-weight: 500; text-decoration: none; transition: background .15s, border-color .15s; }
.site-nav .site-cta:hover { background: var(--accent); border-color: var(--accent); }
.site-cta[aria-current="page"]::after { display: none; }
.site-menu-btn { display: none; background: none; border: 1px solid var(--rule); border-radius: 2px; width: 42px; height: 42px; padding: 0; cursor: pointer; color: var(--ink); }
.site-menu-btn span, .site-menu-btn span::before, .site-menu-btn span::after { display: block; width: 18px; height: 2px; background: currentColor; margin: 0 auto; position: relative; transition: transform .2s, background .2s; }
.site-menu-btn span::before, .site-menu-btn span::after { content: ""; position: absolute; left: 0; }
.site-menu-btn span::before { top: -6px; }
.site-menu-btn span::after { top: 6px; }
.site-header.is-open .site-menu-btn span { background: transparent; }
.site-header.is-open .site-menu-btn span::before { transform: translateY(6px) rotate(45deg); }
.site-header.is-open .site-menu-btn span::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 980px) {
  .site-menu-btn { display: block; }
  .site-nav { display: none; position: absolute; top: 68px; left: 0; right: 0; background: var(--paper); border-bottom: 1px solid var(--rule);
    flex-direction: column; align-items: stretch; gap: 0; padding: 8px 24px 20px; box-shadow: 0 24px 40px -24px rgba(22,21,15,.35); max-height: calc(100vh - 68px); overflow-y: auto; }
  .site-header.is-open .site-nav { display: flex; }
  .site-nav a { padding: 14px 0; border-bottom: 1px solid var(--rule); font-size: 17px; }
  .site-nav a[aria-current="page"]::after { display: none; }
  .site-nav .site-cta { margin-top: 16px; justify-content: center; border-bottom: 1px solid var(--ink); padding: 14px 16px; }
}
@media (max-width: 560px) {
  .site-header .site-wrap { padding: 0 16px; }
  .site-nav { padding: 8px 16px 20px; }
}

/* footer */
.site-footer { background: var(--ink); color: #C9C5B8; font: 400 15px/1.6 var(--sans); }
.site-footer * { box-sizing: border-box; }
.site-footer a { color: #C9C5B8; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer .site-wrap { max-width: var(--w); margin: 0 auto; padding: 64px 24px 32px; }
.site-footer-grid { display: grid; grid-template-columns: 1.5fr repeat(4, 1fr); gap: 40px; padding-bottom: 48px; border-bottom: 1px solid #3A382F; }
.site-footer .site-logo { color: var(--paper); }
.site-footer .site-logo svg { height: 26px; }
.site-footer-about p { margin: 18px 0 18px; max-width: 24em; }
.site-footer-about address { font-style: normal; font-size: 14px; color: #A8A496; }
.site-footer h2 { font: 500 12px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: #A8A496; margin: 6px 0 18px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; padding-top: 24px; font-size: 13px; color: #A8A496; }
.site-footer-bottom nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
@media (max-width: 900px) {
  .site-footer-grid { grid-template-columns: 1fr 1fr; }
  .site-footer-about { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .site-footer .site-wrap { padding: 48px 16px 28px; }
  .site-footer-grid { gap: 32px 20px; }
}
