/* BastionOB product site. Self-contained: no external fonts, no inline styles (the site runs under a strict content security policy). */
:root {
  --desk: #eceeed;
  --sheet: #ffffff;
  --ink: #12202c;
  --muted: #4d5b69;
  --rule: #cdd5d9;
  --line: #d6e6e3;        /* ruled lines of the book */
  --margin: #c23b2e;      /* the red margin line of a paper occurrence book */
  --seal: #0b6f63;        /* things that are sealed or protected */
  --seal-soft: #dcefec;
  --night: #0e1b24;       /* dark bands */
  --night-ink: #e8eef2;
  --night-muted: #a9b8c4;
  --brass: #e0a100;       /* focus */
  --serif: Charter, "Bitstream Charter", "Sitka Text", Cambria, Georgia, serif;
  --sans: "Segoe UI Variable", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", "SF Mono", Consolas, "Liberation Mono", monospace;
  --wrap: 72rem;
  --gap: clamp(1rem, 3vw, 2rem);
}
@media (prefers-color-scheme: dark) {
  :root {
    --desk: #0f1720; --sheet: #17222d; --ink: #e8eef2; --muted: #a3b1bd; --rule: #2a3a49; --line: #213342;
    --margin: #e5604f; --seal: #5cc8b9; --seal-soft: #123a38; --night: #08111a; --night-ink: #e8eef2; --night-muted: #9fb0bd;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--desk); color: var(--ink); font: 1rem/1.6 var(--sans); }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; margin: 0; letter-spacing: -.01em; }
h1 { font-size: clamp(2.2rem, 4.6vw, 3.5rem); letter-spacing: -.025em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); }
h3 { font-size: 1.2rem; letter-spacing: 0; }
p { margin: 0 0 1rem; max-width: 66ch; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--brass); outline-offset: 3px; }
img { max-width: 100%; height: auto; display: block; }
code, .mono { font-family: var(--mono); font-size: .92em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gap); }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: var(--sheet); padding: .6rem 1rem; z-index: 100; }
.skip:focus { left: 0; }
.hidden { display: none !important; }

/* ---------- header ---------- */
.top { background: var(--sheet); border-bottom: 1px solid var(--rule); }
.top__in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1.5rem; padding-top: .8rem; padding-bottom: .8rem; }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; }
.brand__mark { width: 2.1rem; height: 2.1rem; flex: none; }
.brand__name { font: 700 1.5rem/1 var(--serif); letter-spacing: .02em; }
.brand__tag { color: var(--muted); font-size: .85rem; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: .2rem 1.1rem; font-size: .95rem; }
.nav a { text-decoration: none; padding: .35rem 0; border-bottom: 2px solid transparent; }
.nav a:hover { border-bottom-color: var(--rule); }
.nav a[aria-current="page"] { border-bottom-color: var(--margin); }
.nav .btn { border-bottom: 0; padding: .55rem 1rem; }

/* ---------- buttons ---------- */
.btn { display: inline-block; background: var(--ink); color: var(--sheet); border: 2px solid var(--ink); border-radius: 4px; padding: .8rem 1.3rem; font: 600 1rem/1.2 var(--sans); text-decoration: none; cursor: pointer; }
.btn:hover { background: transparent; color: var(--ink); }
.btn--plain { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--plain:hover { background: var(--ink); color: var(--sheet); }
.btn--small { padding: .5rem .85rem; font-size: .9rem; }
.btn--night { background: var(--night-ink); color: var(--night); border-color: var(--night-ink); }
.btn--night:hover { background: transparent; color: var(--night-ink); }
.btn--night-plain { background: transparent; color: var(--night-ink); border-color: var(--night-ink); }
.btn--night-plain:hover { background: var(--night-ink); color: var(--night); }
.actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.4rem; }

/* ---------- hero ---------- */
.hero { padding: clamp(2rem, 6vw, 4.5rem) 0 clamp(2.5rem, 6vw, 4.5rem); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr); gap: clamp(1.5rem, 5vw, 4rem); align-items: start; }
.hero__lead { font-size: 1.2rem; color: var(--muted); max-width: 34rem; margin-top: 1.4rem; }
.hero h1 { max-width: 15ch; }

/* ---------- the book (hero component) ---------- */
.book { background: var(--sheet); border: 1px solid var(--rule); border-radius: 3px; box-shadow: 0 1px 0 var(--rule), 0 18px 40px -22px rgba(10, 25, 40, .45); position: relative; }
.book__page { position: relative; padding: 0 1rem 0 0; background-image: repeating-linear-gradient(to bottom, transparent 0, transparent calc(2rem - 1px), var(--line) calc(2rem - 1px), var(--line) 2rem); background-position: 0 0; }
.book__page::before { content: ""; position: absolute; top: 0; bottom: 0; left: 5.6rem; width: 4px; border-left: 1px solid var(--margin); border-right: 1px solid var(--margin); pointer-events: none; }
.book__head { display: grid; grid-template-columns: 5.6rem 1fr; line-height: 2rem; font-weight: 600; font-family: var(--serif); }
.book__head span:first-child { padding-left: .8rem; color: var(--muted); font: 400 .8rem/2rem var(--sans); }
.book__head span:last-child { padding-left: 1.1rem; }
.entry { display: grid; grid-template-columns: 5.6rem 1fr; line-height: 2rem; }
.entry__no { padding-left: .8rem; font: 600 .95rem/2rem var(--mono); }
.entry__body { padding-left: 1.1rem; overflow-wrap: anywhere; }
.entry__time { font: .82rem/1 var(--mono); color: var(--muted); margin-right: .4rem; }
.entry__link { color: var(--muted); font-size: .85rem; line-height: 1; }
.entry--new { animation: settle .5s ease-out; }
.entry--sealed .entry__body { font: .82rem/2rem var(--mono); color: var(--seal); word-break: break-all; }
.book__foot { border-top: 1px solid var(--rule); padding: .9rem 1rem; display: flex; flex-wrap: wrap; gap: .6rem; background: var(--sheet); border-radius: 0 0 3px 3px; }
.book__say { min-height: 3.2rem; padding: .6rem 1rem; font-size: .92rem; border-top: 1px solid var(--rule); color: var(--muted); }
.book__say strong { color: var(--ink); }
.caption { color: var(--muted); font-size: .85rem; margin: .7rem 0 0; }
@keyframes settle { from { opacity: 0; transform: translateY(-.4rem); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .entry--new { animation: none; } }

/* ---------- sections ---------- */
.band h2 + p, .page h2 + p { margin-top: .9rem; }
.band { padding: clamp(2.5rem, 6vw, 5rem) 0; }
.band--sheet { background: var(--sheet); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.band--night { background: var(--night); color: var(--night-ink); }
.band--night p { color: var(--night-muted); }
.band__head { max-width: 40rem; margin-bottom: 2rem; }
.band__head p { color: var(--muted); font-size: 1.1rem; margin-top: .9rem; }
.band--night .band__head p { color: var(--night-muted); }

/* rows ruled like the book, used instead of cards */
.rows { border-top: 1px solid var(--rule); }
.row { display: grid; grid-template-columns: minmax(10rem, 16rem) minmax(0, 1fr) auto; gap: .5rem 2rem; padding: 1.4rem 0; border-bottom: 1px solid var(--rule); align-items: baseline; }
.row h3 a { text-decoration: none; }
.row h3 a:hover { text-decoration: underline; }
.row p { margin: 0; color: var(--muted); }
.row__go { font-weight: 600; white-space: nowrap; }

.pairs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.2rem clamp(1.5rem, 5vw, 4rem); }
.pair { border-top: 3px solid var(--seal); padding-top: 1rem; }
.band--night .pair { border-top-color: var(--seal); }
.pair h3 { margin-bottom: .5rem; }
.pair p { margin: 0; }

.shots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1rem, 3vw, 2rem); align-items: start; }
.shot { margin: 0; }
.shot__frame { border: 1px solid var(--rule); border-radius: 6px; overflow: hidden; background: var(--sheet); box-shadow: 0 16px 34px -22px rgba(10, 25, 40, .5); }
.shot__bar { height: 1.5rem; background: var(--desk); border-bottom: 1px solid var(--rule); }
.shot figcaption { color: var(--muted); font-size: .9rem; margin-top: .7rem; }

.two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(1.5rem, 5vw, 4rem); align-items: start; }
.ticks { list-style: none; margin: 1rem 0 0; padding: 0; }
.ticks li { padding: .55rem 0 .55rem 1.7rem; border-top: 1px solid var(--rule); position: relative; }
.ticks li:last-child { border-bottom: 1px solid var(--rule); }
.ticks li::before { content: ""; position: absolute; left: .2rem; top: 1.05rem; width: .55rem; height: .3rem; border-left: 2px solid var(--seal); border-bottom: 2px solid var(--seal); transform: rotate(-45deg); }
.ticks--no li::before { border: 0; width: .6rem; height: 2px; background: var(--margin); transform: none; top: 1.35rem; }
.band--night .ticks li, .band--night .ticks li:last-child { border-color: #24384a; }

pre.code { margin: 1rem 0 0; padding: 1rem 1.1rem; background: var(--night); color: var(--night-ink); border-radius: 4px; overflow-x: auto; font: .85rem/1.55 var(--mono); }
.steps { counter-reset: step; list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.steps li { counter-increment: step; display: grid; grid-template-columns: 3.2rem 1fr; padding: 1.1rem 0; border-bottom: 1px solid var(--rule); }
.steps li::before { content: counter(step); font: 600 1.6rem/1.2 var(--serif); color: var(--margin); }
.steps h3 { margin-bottom: .3rem; }
.steps p { margin: 0; color: var(--muted); }

.standing { border-left: 4px solid var(--margin); padding: .4rem 0 .4rem 1.2rem; max-width: 46rem; }
.standing p { margin-bottom: .5rem; }

/* ---------- inner pages ---------- */
.sub { margin-top: .9rem; color: var(--muted); }
.band--night .sub { color: var(--night-muted); }
.tight { margin-top: .8rem; }
.mt { margin-top: 1.5rem; }
.page { padding: clamp(2rem, 5vw, 3.5rem) 0 clamp(2.5rem, 6vw, 4.5rem); }
.page h1 { font-size: clamp(2rem, 4.6vw, 3.2rem); max-width: 18ch; }
.page__lead { font-size: 1.2rem; color: var(--muted); max-width: 40rem; margin-top: 1.2rem; }
.prose { max-width: var(--wrap); }
.prose > h2, .prose > h3, .prose > .notice { max-width: 44rem; }
.prose h2 { margin: 2.6rem 0 .8rem; font-size: 1.6rem; }
.prose h3 { margin: 1.6rem 0 .4rem; }
.prose ul { padding-left: 1.2rem; max-width: 62ch; }
.prose li { margin-bottom: .4rem; }
.diagram { width: 100%; max-width: 46rem; height: auto; margin: 1.5rem 0 .5rem; }
.diagram .box { fill: var(--sheet); stroke: var(--ink); stroke-width: 1.5; }
.diagram .box--seal { fill: var(--seal-soft); stroke: var(--seal); }
.diagram .arrow { stroke: var(--ink); stroke-width: 1.5; fill: none; }
.diagram .arrow--dash { stroke-dasharray: 5 4; stroke: var(--margin); }
.diagram text { fill: var(--ink); font: 14px var(--sans); }
.diagram .t-strong { font: 700 15px var(--sans); }
.diagram .t-small { font-size: 12px; fill: var(--muted); }
.form { display: grid; gap: .9rem; max-width: 34rem; }
.form label { display: grid; gap: .3rem; font-weight: 600; font-size: .95rem; }
.form input, .form textarea { font: inherit; font-weight: 400; color: inherit; background: var(--sheet); border: 1px solid var(--muted); border-radius: 4px; padding: .65rem .75rem; }
.form__msg { min-height: 1.5rem; font-weight: 600; }
.notice { border: 1px solid var(--rule); border-left: 4px solid var(--brass); background: var(--sheet); padding: .9rem 1.1rem; max-width: 46rem; }
.notice p { margin: 0; }

/* ---------- footer ---------- */
.foot { background: var(--night); color: var(--night-muted); padding: 2.5rem 0 3rem; font-size: .92rem; }
.foot__grid { display: grid; grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr)); gap: 1.5rem 2rem; }
.foot a { color: var(--night-ink); }
.foot ul { list-style: none; margin: .5rem 0 0; padding: 0; }
.foot li { margin-bottom: .35rem; }
.foot strong { color: var(--night-ink); }
.foot__small { margin-top: 2rem; padding-top: 1.2rem; border-top: 1px solid #24384a; max-width: 60rem; }

/* ---------- small screens ---------- */
@media (max-width: 62rem) {
  .hero__grid, .two { grid-template-columns: minmax(0, 1fr); }
  .shots, .pairs { grid-template-columns: minmax(0, 1fr); }
  .row { grid-template-columns: minmax(0, 1fr); }
  .foot__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 34rem) {
  .brand__tag { display: none; }
  .book__page::before { left: 5.1rem; }
  .book__head, .entry { grid-template-columns: 5.1rem 1fr; }
  .entry__no { font-size: .78rem; padding-left: .5rem; }
  .book__head span:first-child { padding-left: .5rem; }
  .foot__grid { grid-template-columns: minmax(0, 1fr); }
}
@media print { .top, .foot, .ea-fab, .ea-panel { display: none !important; } }
