/* The Durendal bar: a copy of the site's sticky bar (styles.css .site-header / .bar) for pages that do not load
   styles.css, such as the Straightshot work. Self-contained: every rule sits under .dd-bar, sizes are in px so the
   host page's root font size cannot change them, and nothing depends on the host's tokens.
   Markup: <nav class="dd-bar" aria-label="Durendal Design"> right after the page's skip link (see work/straightshot). */

@font-face {
  font-family: "Pirata One";
  src: url("fonts/pirata-one-wordmark.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}

/* The bar's full height (56px bar + 1px rule). Host pages offset their own sticky parts and anchor targets by it. */
:root:has(.dd-bar) { --dd-bar-h: 57px; }

.dd-bar {
  position: sticky; top: 0; z-index: 10; display: block; margin: 0;
  background: #151613; color: #F2EEE5; border-bottom: 1px solid rgba(242, 238, 229, .24);
  font: 500 15px/1.2 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  letter-spacing: normal; text-transform: none; -webkit-font-smoothing: auto;
}
.dd-bar *, .dd-bar *::before, .dd-bar *::after { box-sizing: border-box; }
.dd-bar__in {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  width: 100%; max-width: 1152px; height: 56px; margin-inline: auto; padding-inline: clamp(20px, 5vw, 72px);
}
.dd-bar a { color: inherit; text-decoration: none; }
.dd-bar a:focus-visible { outline: 2px solid #F2EEE5; outline-offset: 3px; }

/* The name: Pirata One, lowercase, then the sword planted point down. 34px type; the 2px top pad sets the ink on whole pixels. */
.dd-bar__mark {
  display: inline-flex; align-items: center; align-self: stretch; padding-top: 2px;
  font: 400 34px/1 "Pirata One", Georgia, serif; letter-spacing: .01em; text-transform: lowercase; white-space: nowrap;
}
.dd-bar__sword { display: inline-block; width: 10px; height: 30px; max-width: none; margin-left: 14px; vertical-align: -2px; fill: currentColor; }
.dd-bar__sm { display: none; }

/* The button: outlined parchment; on hover, focus and press an oxblood blade cuts across it on a diagonal. */
.dd-bar__cta {
  flex: none; position: relative; isolation: isolate; display: inline-flex; align-items: center;
  height: 36px; padding-inline: 16px; border: 1px solid #F2EEE5; white-space: nowrap;
  transition: border-color .3s, color .25s;
}
.dd-bar__cta::before {
  content: ""; position: absolute; inset: -1px; z-index: -1; background: #7A302C;
  clip-path: polygon(0 0, 0 0, -35% 100%, 0 100%); transition: clip-path .38s cubic-bezier(.2, .7, .2, 1);
}
.dd-bar__cta:is(:hover, :focus-visible, :active) { border-color: #7A302C; }
.dd-bar__cta:is(:hover, :focus-visible, :active)::before { clip-path: polygon(0 0, 135% 0, 100% 100%, 0 100%); }
/* One inline label (not separate flex items), so the spaces between words survive. */
.dd-bar__label { display: block; }

@media (max-width: 639px) {
  .dd-bar__mark { padding-top: 1px; font-size: 29px; }
  .dd-bar__sword { width: 9px; height: 26px; margin-left: 12px; }
  .dd-bar__lg { display: none; }
  .dd-bar__sm { display: inline; }
  /* The visible box stays 36px; the tap area reaches 44px. */
  .dd-bar__cta::after { content: ""; position: absolute; inset: -5px -1px; }
}
@media (max-width: 389px) { .dd-bar__long { display: none; } }
@media (prefers-reduced-motion: reduce) { .dd-bar__cta, .dd-bar__cta::before { transition: none; } }
@media print { .dd-bar { display: none; } }
