@font-face { font-family: "Archivo"; src: url("/legionary/fonts/archivo-400_900-normal.woff2") format("woff2"); font-weight: 400 900; font-stretch: 62% 125%; font-style: normal; font-display: optional; }
@font-face { font-family: "JetBrains Mono"; src: url("/legionary/fonts/jetbrains-mono-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("/legionary/fonts/jetbrains-mono-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }
/* Mantis Pro hub: same engraving house style as Legionary. Dark by default, light on request. */
:root {
  --paper: #0a0a0a; --paper-2: #121212; --ink: #f4f1ec; --ink-2: #d2cdc6; --ash: #9a958e;
  --edge: #3a3a3a; --rule: #262626; --red: #d42d1a; --red-ink: #f35b42; --solid: #f4f1ec; --on-solid: #0a0a0a; --shade: #000;
  --f-display: "Archivo", system-ui, sans-serif;
  --f-body: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;
  color-scheme: dark;
}
:root[data-theme="light"] {
  --paper: #f5e6d4; --paper-2: #fbf3e8; --ink: #141210; --ink-2: #3b352e; --ash: #6f655a;
  --edge: #141210; --rule: #d9c9b2; --red: #c92a17; --red-ink: #b42414; --solid: #141210; --on-solid: #f5e6d4; --shade: #141210;
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--paper); color: var(--ink); }
body { font-family: var(--f-body); font-size: 17px; line-height: 1.55; -webkit-font-smoothing: antialiased; min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }
img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding-inline: 20px; }
@media (max-width: 520px) { .wrap { padding-inline: 16px; } }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.eyebrow { font-family: var(--f-mono); font-size: .76rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--red-ink); }

.top { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--paper) 92%, transparent); backdrop-filter: blur(10px); border-bottom: 2px solid var(--edge); }
.top-in { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--f-display); font-weight: 900; font-size: 1.25rem; letter-spacing: -.03em; }
.brand img { width: 34px; height: 34px; border: 2px solid var(--edge); }
nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
nav a { text-decoration: none; font-weight: 600; color: var(--ink-2); padding: 8px 12px; }
nav a:hover { color: var(--ink); text-decoration: underline; text-decoration-color: var(--red); text-decoration-thickness: 2px; text-underline-offset: 6px; }
.theme-btn { margin-left: 6px; width: 38px; height: 38px; border: 2px solid var(--edge); background: transparent; color: var(--ink); cursor: pointer; font-size: 1.05rem; }
.theme-btn:hover { background: var(--solid); color: var(--on-solid); }

.hero { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: 36px; align-items: center; padding-block: 40px 48px; }
.hero h1 { font-family: var(--f-display); font-weight: 900; font-size: clamp(2.8rem, 6.6vw, 5.4rem); line-height: .92; letter-spacing: -.045em; margin: 14px 0 20px; }
.hero h1 em { font-style: normal; color: var(--red-ink); }
.lede { font-size: 1.2rem; color: var(--ink-2); max-width: 46ch; margin: 0 0 28px; }
.art img { width: 100%; height: auto; background: #f5e6d4; border: 2px solid var(--edge); box-shadow: 10px 10px 0 var(--red); }
:root[data-theme="light"] .art img { border: 0; box-shadow: none; }
@media (max-width: 900px) { .hero { grid-template-columns: 1fr; padding-top: 16px; } .art { order: -1; } }

.cta { display: inline-flex; align-items: center; padding: 16px 26px; background: var(--red); color: #fff; font-weight: 800; text-decoration: none; border: 2px solid var(--edge); box-shadow: 5px 5px 0 var(--shade); transition: transform .15s, box-shadow .15s; }
.cta:hover { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--shade); }
.cta-ghost { display: inline-flex; align-items: center; padding: 14px 22px; border: 2px solid var(--edge); text-decoration: none; font-weight: 700; }
.cta-ghost:hover { background: var(--solid); color: var(--on-solid); }

.sec { padding-block: 56px; }
.sec-h { font-family: var(--f-display); font-weight: 900; font-size: clamp(2.2rem, 4.6vw, 3.4rem); letter-spacing: -.035em; line-height: .98; margin: 8px 0 24px; }
.tools { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 18px; }
@media (max-width: 860px) { .tools { grid-template-columns: 1fr; } }
.tool { display: grid; align-content: start; background: var(--paper-2); border: 2px solid var(--edge); text-decoration: none; color: var(--ink); transition: transform .15s, box-shadow .15s; }
a.tool:hover { transform: translate(-3px, -3px); box-shadow: 8px 8px 0 var(--red); }
.tool img { width: 100%; height: auto; aspect-ratio: 16 / 8; object-position: center 30%; object-fit: cover; background: #f5e6d4; border-bottom: 2px solid var(--edge); }
.tool-body { padding: 22px; display: grid; gap: 10px; }
.tool h3 { font-family: var(--f-display); font-weight: 900; font-size: 1.8rem; letter-spacing: -.035em; margin: 0; }
.tool p { margin: 0; color: var(--ash); }
.tool.soon { border-style: dashed; align-self: start; }
.go { font-weight: 800; color: var(--red-ink); }
.pill { display: inline-flex; width: max-content; font-family: var(--f-mono); font-weight: 700; font-size: .78rem; padding: 4px 9px; border: 2px solid var(--ash); color: var(--ash); text-transform: uppercase; letter-spacing: .05em; }
.pill.live { border-color: #22c27a; color: #22c27a; }

.band { background: var(--red); color: #fff; border-top: 2px solid var(--edge); border-bottom: 2px solid var(--edge); }
.band-in { display: flex; align-items: center; gap: 24px; }
.band img { width: 120px; height: 120px; border: 2px solid #141210; flex: none; }
@media (max-width: 600px) { .band-in { flex-direction: column; align-items: flex-start; } }

.foot { border-top: 2px solid var(--edge); padding-block: 26px 40px; color: var(--ash); font-size: .9rem; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.foot strong { color: var(--ink); }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* The March layer: carved type, torchlight, stone block buttons */
.brand, .hero h1, .sec-h, .tool h3 { font-stretch: 125%; font-weight: 800; }
.hero h1 { font-size: clamp(2.5rem, 0.9rem + 4.4vw, 5rem); line-height: .93; }
.skip-link { position: fixed; left: 16px; top: 12px; z-index: 200; padding: 10px 16px; background: var(--solid); color: var(--on-solid); font-weight: 700; transform: translateY(-200%); text-decoration: none; }
.skip-link:focus-visible { transform: none; }
#main:focus { outline: none; }
.cta, .cta-ghost { background-repeat: no-repeat; background-size: 0% 100%; background-position: left; transition: background-size .4s cubic-bezier(.16,1,.3,1), color .12s .1s, transform .18s cubic-bezier(.16,1,.3,1), box-shadow .18s cubic-bezier(.16,1,.3,1); }
.cta { background-image: linear-gradient(var(--solid), var(--solid)); }
.cta:hover { background-image: linear-gradient(var(--solid), var(--solid)); background-color: var(--red); transform: translate(3px, 3px); box-shadow: 2px 2px 0 var(--shade); background-size: 100% 100%; color: var(--on-solid); }
.cta-ghost { background-image: linear-gradient(var(--solid), var(--solid)); }
.cta-ghost:hover { background-image: linear-gradient(var(--solid), var(--solid)); background-color: transparent; background-size: 100% 100%; color: var(--on-solid); }
nav a { position: relative; }
nav a::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 2px; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .4s cubic-bezier(.16,1,.3,1); }
nav a:hover { text-decoration: none; }
nav a:hover::after { transform: scaleX(1); }
a.tool { transition: transform .35s cubic-bezier(.16,1,.3,1), box-shadow .35s cubic-bezier(.16,1,.3,1); }
a.tool:hover .go { transform: translateX(6px); }
.go { display: inline-block; transition: transform .3s cubic-bezier(.16,1,.3,1); }
[data-torch] { position: relative; overflow: hidden; isolation: isolate; }
[data-torch] img { box-shadow: none; }
.art[data-torch] { border: 2px solid var(--edge); box-shadow: 10px 10px 0 var(--red); }
.art[data-torch] img { border: 0; }
[data-torch]::after { content: ""; position: absolute; inset: 0; pointer-events: none; mix-blend-mode: multiply; background: radial-gradient(circle at var(--tx, 60%) var(--ty, 40%), rgba(255,210,150,0) 0, rgba(255,190,120,0) calc(28% * var(--tf, 1)), rgba(40,20,8,.5) 80%); }
[data-torch]::before { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 1; mix-blend-mode: soft-light; background: radial-gradient(circle at var(--tx, 60%) var(--ty, 40%), rgba(255,179,71,calc(.5 * var(--tf, 1))) 0, rgba(255,179,71,0) 40%); }
:root[data-theme="light"] .art[data-torch] { box-shadow: 10px 10px 0 var(--ink); }
@media (prefers-reduced-motion: no-preference) {
  .hero > div:first-child > * { animation: rise .9s cubic-bezier(.16,1,.3,1) both; }
  .hero > div:first-child > *:nth-child(2) { animation-delay: .07s; }
  .hero > div:first-child > *:nth-child(3) { animation-delay: .14s; }
  .hero > div:first-child > *:nth-child(4) { animation-delay: .21s; }
  .art { animation: open 1.2s cubic-bezier(.16,1,.3,1) .1s both; }
}
@keyframes rise { from { opacity: 0; transform: translateY(28px); } }
@keyframes open { from { clip-path: inset(10% 10% 10% 10%); opacity: 0; } to { clip-path: inset(0 0 0 0); opacity: 1; } }
.brand img { transition: transform .6s cubic-bezier(.16,1,.3,1); }
.brand:hover img { transform: rotate(-12deg) scale(1.08); }
.theme-btn { transition: transform .5s cubic-bezier(.16,1,.3,1), background .2s, color .2s; }
.theme-btn:hover { transform: rotate(45deg); }
.band p { color: #fff; }
.brand { white-space: nowrap; }
@media (max-width: 520px) { nav a { padding: 8px 8px; } .brand span { font-size: 1.05rem; } }
#tools { scroll-margin-top: 80px; }
