/* Direction B — Architectural Grid (Blueprint) */
:root {
  --ink: #0f1820;
  --paper: #f5f3ed;
  --paper-2: #ecebe4;
  --rule: #cbc7ba;
  --grid: #d8d5c8;
  --mute: #6b6b66;
  --accent: #c2410c; /* construction orange default */
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: "Inter Tight", system-ui, sans-serif;
  font-size: 15.5px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  background-image:
    linear-gradient(to right, var(--grid) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid) 1px, transparent 1px);
  background-size: 48px 48px;
}

a { color: inherit; }

.frame {
  max-width: 1400px;
  margin: 24px auto;
  background: var(--paper);
  border: 1px solid var(--ink);
  position: relative;
  padding: 0;
}
.frame::before, .frame::after,
.frame > .tick-tl, .frame > .tick-tr, .frame > .tick-bl, .frame > .tick-br {
  position: absolute;
  width: 12px; height: 12px;
  border: 1px solid var(--ink);
  background: var(--paper);
}
.tick-tl { top: -7px; left: -7px; }
.tick-tr { top: -7px; right: -7px; }
.tick-bl { bottom: -7px; left: -7px; }
.tick-br { bottom: -7px; right: -7px; }

.inner { padding: 0 36px; }
@media (max-width: 720px) { .inner { padding: 0 20px; } }

/* TITLE BLOCK (like drawing sheet) */
.title-block {
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  border-bottom: 1px solid var(--ink);
  font-family: "IBM Plex Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.title-block > * {
  padding: 16px 20px;
  border-right: 1px solid var(--ink);
}
.title-block > *:last-child { border-right: none; }
.tb-brand { display: flex; align-items: center; gap: 16px; padding: 12px 20px !important; }
.tb-sister { background: var(--paper-2); }
.tb-sister .k { color: var(--mute); }
.tb-sister a.sister-link { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--ink); padding-bottom: 1px; font-weight: 500; }
.tb-sister a.sister-link:hover { color: var(--accent); border-color: var(--accent); }

/* HERO VISUAL */
.tb-logo {
  height: 40px;
  width: auto;
  max-width: 120px;
  max-height: 40px;
  object-fit: contain;
  object-position: left center;
  display: block;
  flex: 0 0 auto;
}
.tb-mono {
  width: 40px; height: 40px;
  border: 1px solid var(--ink);
  display: grid; place-items: center;
  font-family: "Inter Tight", sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.tb-name { font-family: "Inter Tight", sans-serif; font-size: 14px; letter-spacing: 0; text-transform: none; font-weight: 600; line-height: 1.1; }
.tb-sub { font-size: 9px; color: var(--mute); margin-top: 2px; }
.tb-meta { display: flex; flex-direction: column; justify-content: center; gap: 2px; }
.tb-meta .k { color: var(--mute); }
.tb-meta .v { color: var(--ink); }

/* NAV BAR under title block */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  border-bottom: 1px solid var(--ink);
  font-family: "IBM Plex Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.navbar .nav-left { display: flex; }
.navbar .nav-left a {
  padding: 14px 22px;
  text-decoration: none;
  color: var(--ink);
  border-right: 1px solid var(--ink);
  position: relative;
}
.navbar .nav-left a.active { background: var(--ink); color: var(--paper); }
.navbar .nav-left a.active::before {
  content: "▸";
  margin-right: 6px;
}
.navbar .nav-right { display: flex; align-items: center; padding: 0 22px; gap: 20px; }
.navbar .nav-right a { text-decoration: none; color: var(--ink); }
.navbar .nav-right .dot { width: 8px; height: 8px; background: var(--accent); display: inline-block; }

/* SHEET */
.sheet { padding: 48px 0 0; }
.eyebrow {
  font-family: "IBM Plex Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mute);
}
h1.display, h2.display, h3.display {
  font-family: "Inter Tight", sans-serif;
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.02;
  margin: 0;
}
.h1 { font-size: clamp(48px, 7vw, 104px); }
.h2 { font-size: clamp(32px, 4vw, 56px); line-height: 1.05; }
.h3 { font-size: 22px; line-height: 1.2; letter-spacing: -0.01em; }

.mono {
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.bracket {
  border: 1px solid var(--ink);
  padding: 2px 8px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  display: inline-block;
  line-height: 1.4;
}

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  background: var(--ink);
  color: var(--paper);
  font-family: "IBM Plex Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid var(--ink);
}
.btn:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn .arrow { display: inline-block; }

/* DIMLINE (section dividers as dimension lines) */
.dimline {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 16px;
  align-items: center;
  margin: 64px 0 40px;
}
.dimline .bar { height: 1px; background: var(--ink); position: relative; }
.dimline .bar::before, .dimline .bar::after {
  content: ""; position: absolute; top: -4px;
  width: 1px; height: 9px; background: var(--ink);
}
.dimline .bar::before { left: 0; }
.dimline .bar::after { right: 0; }

/* FOOTER */
.foot {
  margin-top: 64px;
  border-top: 1px solid var(--ink);
  padding: 32px 36px 28px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 40px;
}
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
.foot h4 { margin: 0 0 14px; color: var(--mute); font-weight: 400; font-size: 10px; }
.foot ul { list-style: none; margin: 0; padding: 0; }
.foot li { margin-bottom: 8px; font-size: 11px; text-transform: none; letter-spacing: 0.02em; font-family: "Inter Tight", sans-serif; }
.foot a { text-decoration: none; }
.foot-bottom {
  margin-top: 32px;
  padding-top: 16px;
  border-top: 1px solid var(--rule);
  display: flex;
  justify-content: space-between;
  color: var(--mute);
}
.foot-sister {
  margin-top: 28px;
  padding: 18px 20px;
  border: 1px solid var(--ink);
  background: var(--paper-2);
  display: grid;
  grid-template-columns: auto auto 1fr;
  gap: 20px;
  align-items: baseline;
}
.foot-sister .k { color: var(--mute); font-size: 10px; letter-spacing: 0.14em; }
.foot-sister > a { text-decoration: none; color: var(--ink); font-family: "Inter Tight", sans-serif; font-size: 15px; font-weight: 500; letter-spacing: -0.005em; text-transform: none; border-bottom: 1px solid var(--ink); padding-bottom: 2px; }
.foot-sister > a:hover { color: var(--accent); border-color: var(--accent); }
.foot-sister .sister-note { font-family: "Inter Tight", sans-serif; font-size: 12px; color: var(--mute); text-transform: none; letter-spacing: 0; justify-self: end; text-align: right; max-width: 420px; }
@media (max-width: 760px) {
  .foot-sister { grid-template-columns: 1fr; gap: 8px; }
  .foot-sister .sister-note { justify-self: start; text-align: left; }
}
