/* GA4 Consent Mode Test Bench — no build step, no external assets. */

:root {
  --navy: #0b1b34;
  --navy-2: #142c4f;
  --gold: #b4893c;
  --gold-light: #e0c07f;
  --paper: #fbf9f5;
  --ink: #1f2933;
  --muted: #5f6b7a;
  --rule: #e2ddd3;
  --card: #ffffff;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --serif: Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
}

.wrap { width: min(1080px, 100% - 3rem); margin-inline: auto; }

a { color: #8a5f1c; }
a:hover { color: var(--navy); }

.skip { position: absolute; left: -9999px; background: var(--navy); color: #fff; padding: .6rem 1rem; }
.skip:focus { left: 1rem; top: 1rem; z-index: 100; }

/* ---------- masthead ---------- */
.masthead { background: var(--navy); color: #fff; border-bottom: 4px solid var(--gold); }
.masthead .wrap {
  display: flex; flex-wrap: wrap; gap: 1rem 2rem;
  align-items: center; justify-content: space-between;
  padding: 1.1rem 0;
}
.brand { display: flex; align-items: center; gap: .85rem; text-decoration: none; color: #fff; }
.brand-mark {
  font-family: var(--sans); font-weight: 700; font-size: .95rem; letter-spacing: .08em;
  background: var(--gold); color: var(--navy);
  padding: .45rem .55rem; border-radius: 4px;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-text strong { font-family: var(--sans); font-size: 1.02rem; letter-spacing: .01em; }
.brand-text em { font-style: normal; font-size: .8rem; color: var(--gold-light); }

.nav { display: flex; flex-wrap: wrap; gap: 1.4rem; font-family: var(--sans); font-size: .92rem; }
.nav a { color: #dfe6f0; text-decoration: none; padding: .35rem 0; border-bottom: 2px solid transparent; }
.nav a:hover { color: #fff; border-bottom-color: rgba(255,255,255,.35); }
.nav a[aria-current="page"] { color: #fff; border-bottom-color: var(--gold); }

/* ---------- url bar ---------- */
.urlbar {
  font-family: var(--mono); font-size: .74rem; color: var(--muted);
  padding: .6rem 0; border-bottom: 1px solid var(--rule);
}
.urlbar code { background: #efeae0; padding: .1rem .35rem; border-radius: 3px; color: #3b4757; }

/* ---------- generic blocks ---------- */
main { padding: 2.5rem 0 4rem; }

.eyebrow {
  font-family: var(--sans); font-size: .72rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; color: var(--gold);
  margin: 0 0 .5rem;
}
h1 { font-size: clamp(2rem, 5vw, 3rem); line-height: 1.15; margin: 0 0 .75rem; color: var(--navy); }
h2 { font-size: 1.45rem; line-height: 1.25; margin: 0 0 .5rem; color: var(--navy); }
.lede { font-size: 1.15rem; color: #3c4653; max-width: 62ch; margin: 0 0 1.5rem; }

.hero { border-bottom: 1px solid var(--rule); padding-bottom: 2.25rem; margin-bottom: 2.5rem; }
.pagehead { border-bottom: 1px solid var(--rule); padding-bottom: 1.5rem; margin-bottom: 2.25rem; }

.btn {
  display: inline-block; font-family: var(--sans); font-size: .9rem; font-weight: 600;
  background: var(--navy); color: #fff; text-decoration: none;
  padding: .7rem 1.4rem; border-radius: 4px; border: 1px solid var(--navy);
  cursor: pointer; margin-right: .5rem;
}
.btn:hover { background: var(--navy-2); color: #fff; }
.btn-ghost { background: transparent; color: var(--navy); }
.btn-ghost:hover { background: #eae5db; color: var(--navy); }

/* ---------- home grid ---------- */
.grid { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); }
.card { background: var(--card); border: 1px solid var(--rule); border-radius: 6px; padding: 1.4rem 1.5rem 1.5rem; }
.kicker {
  font-family: var(--sans); font-size: .68rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--gold); margin: 0 0 .45rem;
}
.card p { font-size: .95rem; }
.byline { font-family: var(--sans); font-size: .78rem; color: var(--muted); }
.more { font-family: var(--sans); font-size: .85rem; font-weight: 600; text-decoration: none; }

/* ---------- archive list ---------- */
.list { border-top: 1px solid var(--rule); }
.row {
  display: grid; grid-template-columns: 190px 1fr; gap: 1.5rem;
  padding: 1.6rem 0; border-bottom: 1px solid var(--rule);
}
.row-meta { display: flex; flex-direction: column; gap: .4rem; }
.date { font-family: var(--sans); font-size: .82rem; color: var(--muted); }
.tag {
  align-self: start; font-family: var(--sans); font-size: .66rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  background: #eae5db; color: #6b5426; padding: .2rem .5rem; border-radius: 3px;
}
.row-body p { font-size: .96rem; margin: .3rem 0 .6rem; }

/* ---------- prose / panels ---------- */
.prose { max-width: 68ch; }
.prose h2 { margin-top: 2rem; }
.panel {
  background: #fff; border: 1px solid var(--rule); border-left: 4px solid var(--gold);
  border-radius: 4px; padding: 1.5rem 1.75rem; margin-top: 2.5rem;
}
.panel p, .panel li { font-size: .95rem; }
.checklist, .steps { padding-left: 1.2rem; }
.checklist li, .steps li { margin: .35rem 0; }
code { font-family: var(--mono); font-size: .85em; background: #efeae0; padding: .08rem .3rem; border-radius: 3px; }
.note { font-size: .9rem; color: var(--muted); margin-top: 1.75rem; }

/* ---------- subscribe ---------- */
.two-col { display: grid; gap: 2.5rem; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); }
.form { background: #fff; border: 1px solid var(--rule); border-radius: 6px; padding: 1.75rem; }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-family: var(--sans); font-size: .85rem; font-weight: 600; margin-bottom: .35rem; }
.field input[type="text"], .field input[type="email"], .field select {
  width: 100%; font-family: var(--sans); font-size: .95rem;
  padding: .6rem .7rem; border: 1px solid #c9c2b5; border-radius: 4px; background: #fff;
}
.field.checkbox { display: flex; align-items: flex-start; gap: .6rem; }
.field.checkbox label { font-weight: 400; font-size: .88rem; }
.form-note { font-family: var(--sans); font-size: .8rem; color: var(--muted); margin: 1rem 0 0; }
.form-status {
  font-family: var(--sans); font-size: .9rem; font-weight: 600; color: #1d6b3f;
  background: #e7f4ec; border: 1px solid #bcdfc9; border-radius: 4px;
  padding: .7rem .9rem; margin-top: 1rem;
}
.side h2 { font-size: 1.15rem; margin-top: 1.6rem; }
.side h2:first-child { margin-top: 0; }
.side p, .side li { font-size: .93rem; }

/* ---------- footer ---------- */
.foot {
  background: var(--navy); color: #c6d0de; margin-top: 4rem;
  padding: 2rem 0 2.5rem; font-family: var(--sans); font-size: .85rem;
}
.foot a { color: var(--gold-light); }
.foot p { max-width: 70ch; }
.foot-links { margin-top: 1rem; }
.linklike {
  background: none; border: 0; padding: 0; cursor: pointer;
  color: var(--gold-light); font: inherit; text-decoration: underline;
}

@media (max-width: 760px) {
  .two-col { grid-template-columns: 1fr; }
  .row { grid-template-columns: 1fr; gap: .5rem; }
  .row-meta { flex-direction: row; align-items: center; gap: .75rem; }
  .masthead .wrap { padding: .9rem 0; }
}

/* ---------- debug panel ---------- */
.dbg-fab {
  position: fixed; right: 18px; bottom: 18px; z-index: 9000;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--navy); color: var(--gold-light); border: 2px solid var(--gold);
  font-size: 20px; line-height: 1; cursor: pointer;
  box-shadow: 0 4px 14px rgba(0,0,0,.28);
}
.dbg {
  position: fixed; right: 18px; bottom: 18px; z-index: 9001;
  width: min(400px, calc(100vw - 36px)); max-height: min(78vh, 700px);
  display: flex; flex-direction: column;
  background: #0f2039; color: #dbe4f0;
  border: 1px solid #2c456e; border-radius: 8px;
  box-shadow: 0 10px 34px rgba(0,0,0,.4);
  font-family: var(--sans); font-size: 13px; line-height: 1.45;
}
.dbg[hidden] { display: none; }
.dbg-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: .7rem .9rem; border-bottom: 1px solid #2c456e; background: #0b1b34;
  border-radius: 8px 8px 0 0;
}
.dbg-head strong { color: var(--gold-light); font-size: 13px; letter-spacing: .02em; }
.dbg-head button { background: none; border: 0; color: #9fb2cc; font-size: 20px; cursor: pointer; line-height: 1; }
.dbg-body { overflow-y: auto; padding: .3rem .9rem .9rem; }
.dbg section { padding: .8rem 0; border-bottom: 1px solid #1d3557; }
.dbg section:last-child { border-bottom: 0; }
.dbg h4 { margin: 0 0 .5rem; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: #8fa6c6; }
.dbg .hint { text-transform: none; letter-spacing: 0; color: #6b82a3; font-weight: 400; }
.dbg table { width: 100%; border-collapse: collapse; font-family: var(--mono); font-size: 11.5px; }
.dbg table td { padding: .18rem 0; vertical-align: top; }
.dbg table td:first-child { color: #9fb2cc; padding-right: .6rem; }
.dbg .granted { color: #5fd08a; font-weight: 600; }
.dbg .denied { color: #f08a7a; font-weight: 600; }
.dbg .unset { color: #6b82a3; }
.dbg dl { margin: 0; font-family: var(--mono); font-size: 11.5px; }
.dbg dt { color: #9fb2cc; }
.dbg dd { margin: 0 0 .45rem; word-break: break-all; color: #dbe4f0; }
.dbg-buttons { display: flex; flex-wrap: wrap; gap: .4rem; }
.dbg-buttons button {
  font-family: var(--mono); font-size: 11px; cursor: pointer;
  background: #1b3358; color: #dbe4f0; border: 1px solid #35527e;
  border-radius: 4px; padding: .35rem .6rem;
}
.dbg-buttons button:hover { background: #26456f; }
.dbg pre {
  margin: 0; max-height: 190px; overflow: auto;
  background: #0a1729; border: 1px solid #1d3557; border-radius: 4px;
  padding: .55rem; font-family: var(--mono); font-size: 11px; color: #b9cbe4;
  white-space: pre-wrap; word-break: break-word;
}
