/* ==========================================================================
   McMenomy Law — Wireframe kit
   Deliberately unstyled: grayscale structure + blueprint-blue annotations.
   Feedback here should be about placement and content, not colors and fonts.
   ========================================================================== */

:root {
  --bg: #FAFAF7;
  --card: #FFFFFF;
  --ink: #2E2E2C;
  --mid: #7A7A74;
  --faint: #B9B9B2;
  --line: #CFCFC8;
  --fill: #EFEFEA;
  --fill-2: #E3E3DC;
  --dark: #3B3B38;
  --dark-fill: #4A4A46;
  --blue: #3F6DB5;
  --blue-soft: #EAF0F8;
  --mono: "SF Mono", ui-monospace, "Cascadia Mono", Menlo, monospace;
  --sans: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.5;
  padding-bottom: 92px; /* presenter bar */
}

/* ---------- chrome ---------- */
.wf-topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 20px;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mid);
}
.wf-topbar strong { color: var(--ink); font-weight: 600; }
.wf-topbar .toggle-notes {
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  border: 1px solid var(--blue);
  color: var(--blue);
  background: transparent;
  border-radius: 999px;
  padding: 4px 12px;
  cursor: pointer;
}
.hide-notes .toggle-notes { border-color: var(--faint); color: var(--faint); }

.wf-page { max-width: 1160px; margin: 0 auto; padding: 28px 20px 40px; }

.wf-pagehead {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px 20px;
  margin-bottom: 22px;
}
.wf-pagehead h1 { font-size: 22px; font-weight: 650; }
.wf-pagehead .meta { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--mid); }

/* ---------- sections ---------- */
.wf-section {
  position: relative;
  background: var(--card);
  border: 1.5px solid var(--line);
  border-radius: 10px;
  padding: 26px 26px 24px;
  margin-bottom: 26px;
}
.wf-label {
  position: absolute;
  top: -9px;
  left: 14px;
  background: var(--bg);
  padding: 0 8px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mid);
  white-space: nowrap;
}
.wf-section--dark { background: var(--dark); border-color: var(--dark); }
.wf-section--dark .wf-bar, .wf-section--dark .wf-h { background: var(--dark-fill); }
.wf-section--dark .wf-img { background-color: var(--dark-fill); border-color: #5E5E58; color: #A5A59E; }
.wf-section--dark .wf-btn { border-color: #8B8B84; color: #D9D9D2; }
.wf-section--dark .wf-btn--solid { background: #D9D9D2; color: var(--dark); border-color: #D9D9D2; }
.wf-section--dark .wf-cap { color: #A5A59E; }
.wf-section--tint { background: var(--fill); }

/* ---------- primitives ---------- */
.wf-h { background: var(--fill-2); border-radius: 6px; height: 26px; }
.wf-h--xl { height: 40px; }
.wf-h--sm { height: 18px; }
.wf-bar { background: var(--fill-2); border-radius: 5px; height: 10px; }
.stack { display: grid; gap: 10px; }
.stack--tight { gap: 7px; }
.w-90 { width: 90%; } .w-80 { width: 80%; } .w-70 { width: 70%; } .w-60 { width: 60%; }
.w-50 { width: 50%; } .w-40 { width: 40%; } .w-30 { width: 30%; } .w-20 { width: 20%; }

.wf-img {
  position: relative;
  background-color: var(--fill);
  background-image:
    linear-gradient(45deg, transparent calc(50% - 0.75px), var(--line) calc(50% - 0.75px), var(--line) calc(50% + 0.75px), transparent calc(50% + 0.75px)),
    linear-gradient(-45deg, transparent calc(50% - 0.75px), var(--line) calc(50% - 0.75px), var(--line) calc(50% + 0.75px), transparent calc(50% + 0.75px));
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  place-items: center;
  min-height: 90px;
  overflow: hidden;
}
.wf-img > span {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px 12px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mid);
  text-align: center;
}
.wf-img--arch { border-radius: 130px 130px 8px 8px; }

.wf-btn {
  display: inline-block;
  border: 1.5px solid var(--mid);
  border-radius: 999px;
  padding: 9px 22px;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
  background: transparent;
  white-space: nowrap;
}
.wf-btn--solid { background: var(--mid); color: #fff; }
.wf-btn-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

.wf-cap {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mid);
}
.wf-text { font-size: 13px; color: var(--mid); }

/* layout helpers */
.cols { display: grid; gap: 16px; }
.cols-2 { grid-template-columns: 1fr 1fr; }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-4 { grid-template-columns: repeat(4, 1fr); }
.cols-2-1 { grid-template-columns: 2fr 1fr; }
.cols-1-2 { grid-template-columns: 1fr 2fr; }
.cols-side { grid-template-columns: 220px 1fr; }
.vcenter { align-items: center; }
.box {
  border: 1px dashed var(--line);
  border-radius: 8px;
  padding: 16px;
  background: var(--card);
}
.wf-section--dark .box { background: transparent; border-color: #5E5E58; }
.mt { margin-top: 16px; }
.mt-lg { margin-top: 26px; }

/* ---------- annotations ---------- */
.n {
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-family: var(--mono);
  font-size: 11px;
  flex: none;
}
.wf-note {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  margin-top: 14px;
  padding: 10px 12px;
  background: var(--blue-soft);
  border-left: 3px solid var(--blue);
  border-radius: 0 8px 8px 0;
  font-size: 13px;
  color: #2F4E7E;
}
.wf-note .n { margin-top: 1px; }
.hide-notes .wf-note, .hide-notes .pin { display: none !important; }
.pin {
  position: absolute;
  top: -10px;
  right: 14px;
  display: inline-flex;
  gap: 6px;
}

/* ---------- presenter bar ---------- */
.presenter {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 20px;
  background: var(--ink);
  color: #EDEDE8;
}
.presenter .mid {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: center;
  color: #B9B9B2;
}
.presenter .mid strong { color: #fff; display: block; font-size: 12.5px; margin-bottom: 2px; }
.presenter a {
  color: #EDEDE8;
  text-decoration: none;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid #6B6B65;
  border-radius: 999px;
  padding: 8px 18px;
  white-space: nowrap;
}
.presenter a:hover { border-color: #fff; }
.presenter a.disabled { opacity: 0.3; pointer-events: none; }

/* ---------- cover / TOC ---------- */
.cover { max-width: 860px; margin: 0 auto; padding: 60px 20px; }
.cover h1 { font-size: 34px; font-weight: 700; margin: 14px 0 6px; }
.cover .sub { color: var(--mid); font-size: 16px; margin-bottom: 34px; }
.toc { list-style: none; padding: 0; display: grid; gap: 10px; counter-reset: t; }
.toc a {
  counter-increment: t;
  display: flex;
  align-items: center;
  gap: 16px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: var(--card);
  padding: 16px 18px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
}
.toc a::before {
  content: counter(t, decimal-leading-zero);
  font-family: var(--mono);
  color: var(--blue);
  font-weight: 400;
}
.toc a span { font-weight: 400; color: var(--mid); font-size: 13px; margin-left: auto; text-align: right; }
.toc a:hover { border-color: var(--blue); }
.legend { margin-top: 34px; padding: 18px; border: 1px dashed var(--line); border-radius: 10px; font-size: 13px; color: var(--mid); display: grid; gap: 8px; }
.legend b { color: var(--ink); }

@media (max-width: 760px) {
  .cols-2, .cols-3, .cols-4, .cols-2-1, .cols-1-2, .cols-side { grid-template-columns: 1fr; }
  .presenter .mid strong { font-size: 11px; }
}
