/* Criminal Procedure 2: Adjudication · "Verdict".
   A courtroom in daylight: limestone paper, slate ink, one deep plum for the robe and the seal. Charter-style
   serif headings, a plain system sans for reading, small-capital labels like the captions of a verdict form.
   The home page sets a verdict form beside the headline and draws the course as the life of a case, stage by
   stage, on a single rail. Loaded after study.css. System fonts only (no web fonts are fetched). */

:root {
  --paper: #f3f2ee; --ink: #20242c; --ink-2: #3b414c; --muted: #6b707a;
  --rule: #20242c; --hair: #d7d5ce; --tint: #e8e6e0; --accent: #6d2a5a; --accent-2: #8a5a7c;
  --ok: #24573a; --warn: #9a2b1f; --link: #20242c; --card: #fbfaf7; --rail: #b9a3b3;
  --head: Charter, "Bitstream Charter", "Sitka Text", Cambria, "Iowan Old Style", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #15161a; --ink: #e8e7e3; --ink-2: #c6c5c0; --muted: #9a9aa0; --rule: #e8e7e3; --hair: #33343b;
    --tint: #1f2026; --accent: #d79bc6; --accent-2: #b98aad; --ok: #8fd1a7; --warn: #ff9d8a; --link: #e8e7e3;
    --card: #1b1c21; --rail: #5c4b58;
  }
}
:root[data-theme="dark"] {
  --paper: #15161a; --ink: #e8e7e3; --ink-2: #c6c5c0; --muted: #9a9aa0; --rule: #e8e7e3; --hair: #33343b;
  --tint: #1f2026; --accent: #d79bc6; --accent-2: #b98aad; --ok: #8fd1a7; --warn: #ff9d8a; --link: #e8e7e3;
  --card: #1b1c21; --rail: #5c4b58;
}

/* frame: a plum bench rail along the top */
body { font-family: var(--sans); border-top: 6px solid var(--accent); }
.top { border-bottom: 1px solid var(--rule); box-shadow: 0 3px 0 -2px var(--hair); }
.brand { font-family: var(--head); font-weight: 700; font-size: 1.12rem; letter-spacing: 0; }
.brand .mark { width: .62rem; height: .62rem; border-radius: 50%; background: var(--accent); }
.top nav a, .top .aside a { font-variant-caps: all-small-caps; letter-spacing: .06em; font-size: 1rem; }
.top nav a[aria-current="page"] { border-bottom-color: var(--accent); }
.top .aside .cta { background: var(--accent); color: var(--paper); padding: 2px 12px; border-radius: 3px; border-bottom: 0; }
.foot { border-top: 1px solid var(--rule); }
.lockbar { background: var(--accent); color: var(--paper); }

/* type */
h1 { font-family: var(--head); font-weight: 700; letter-spacing: -.015em; line-height: 1.06; }
h1 em { font-style: italic; color: var(--accent); }
h2 { font-family: var(--head); font-weight: 700; font-size: 1.3rem; border-top: 1px solid var(--rule); }
main > section > h2:first-child::before, main > h2::before { font-family: var(--sans); color: var(--accent); font-size: .9rem; }
h3 { font-variant-caps: all-small-caps; text-transform: none; letter-spacing: .08em; font-size: .98rem; color: var(--accent); }
.kicker { font-variant-caps: all-small-caps; letter-spacing: .1em; color: var(--muted); font-size: 1rem; }
.kicker b { color: var(--accent); }
.lede { color: var(--ink-2); }
blockquote { border-left: 4px solid var(--accent); background: var(--card); padding: var(--u) calc(2*var(--u)); }
mark { background: color-mix(in srgb, var(--accent) 14%, transparent); box-shadow: none; }

/* buttons and forms */
.button, button { background: var(--accent); border-color: var(--accent); color: var(--paper); border-radius: 3px; font-weight: 600; }
.button:hover, button:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }
button.quiet { background: transparent; color: var(--ink); border-color: var(--hair); }
textarea, select, input { background: var(--card); border: 1px solid var(--hair); border-radius: 3px; }
.badge { border-radius: 3px; font-variant-caps: all-small-caps; letter-spacing: .06em; }

/* boxes */
.gate, .facts, .hidden { background: var(--card); border: 1px solid var(--hair); border-top: 3px solid var(--accent);
                         padding: calc(2.5*var(--u)) calc(3*var(--u)); }
.facts-grid { background: var(--card); border: 1px solid var(--hair); }
.facts-grid dt { font-variant-caps: all-small-caps; letter-spacing: .08em; color: var(--accent); }
.facts-grid dd { font-family: var(--head); font-weight: 700; overflow-wrap: anywhere; }
ol.cases li, ul.cases li { border-bottom: 1px solid var(--hair); }
.ticks li::before { background: var(--accent); }
.opara:target { box-shadow: -8px 0 0 var(--tint), inset 3px 0 0 var(--accent); }

/* worked problems: questions put to the jury */
.problem { background: var(--card); border: 1px solid var(--hair); border-left: 4px solid var(--accent);
           padding: calc(2.5*var(--u)) calc(3*var(--u)); margin: 0 0 calc(3*var(--u)); }
.problem header { display: flex; flex-wrap: wrap; gap: .3rem .8rem; align-items: baseline; font-variant-caps: all-small-caps;
                  letter-spacing: .08em; color: var(--muted); margin-bottom: var(--u); }
.problem .no { color: var(--accent); font-weight: 700; }
.problem .ask { font-weight: 700; }
.problem details summary { color: var(--accent); font-weight: 600; cursor: pointer; }
.problem .steps li { margin-bottom: 4px; }

/* ---------- home: the verdict ---------- */
@media (min-width: 1100px) { main > .verdict-hero { grid-column: 1 / -1; } }
.verdict-hero { display: grid; grid-template-columns: 1fr; gap: calc(3*var(--u)); align-items: start; margin-bottom: calc(2*var(--u)); }
@media (min-width: 1100px) { .verdict-hero { grid-template-columns: minmax(0, 1.5fr) minmax(16rem, 1fr); gap: calc(5*var(--u)); } }
.verdict-copy h1 { margin-top: calc(.5*var(--u)); }
.actions { display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; align-items: center; }
.verdict-form { position: relative; background: var(--card); border: 1px solid var(--rule); padding: calc(2.5*var(--u)) calc(3*var(--u)) calc(2*var(--u));
                box-shadow: 6px 6px 0 var(--tint); }
.verdict-form::before { content: ""; position: absolute; inset: 5px; border: 1px solid var(--hair); pointer-events: none; }
.vf-title { font-family: var(--head); font-weight: 700; font-size: 1.25rem; text-align: center; margin: 0;
            border-bottom: 2px solid var(--accent); padding-bottom: 6px; }
.vf-intro { font-size: .92rem; color: var(--ink-2); margin: calc(1.5*var(--u)) 0 var(--u); font-style: italic; }
.verdict-form dl { margin: 0; }
.verdict-form dl div { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
                       padding: 7px 0; border-bottom: 1px dotted var(--rail); }
.verdict-form dt { display: flex; align-items: baseline; gap: .55rem; font-size: .95rem; }
.verdict-form dd { margin: 0; font-family: var(--head); font-weight: 700; font-size: 1.2rem; font-variant-numeric: tabular-nums; }
.box { display: inline-grid; place-items: center; width: 1.05rem; height: 1.05rem; border: 1.5px solid var(--ink);
       color: var(--accent); font-weight: 700; font-size: .8rem; line-height: 1; transform: translateY(2px); }
.vf-sign { margin: calc(1.5*var(--u)) 0 0; font-size: .8rem; color: var(--muted); }

/* the life of a case: one rail, numbered stages */
.proceedings { list-style: none; margin: calc(2*var(--u)) 0 0; padding: 0 0 0 1.6rem; position: relative; }
.proceedings::before { content: ""; position: absolute; left: .45rem; top: .4rem; bottom: .4rem; width: 2px; background: var(--rail); }
.proceedings li { position: relative; padding: 0 0 calc(2.2*var(--u)); }
.proceedings li::before { content: ""; position: absolute; left: -1.53rem; top: .32rem; width: .78rem; height: .78rem; border-radius: 50%;
                          background: var(--paper); border: 2px solid var(--accent); }
.proceedings li:last-child::before { background: var(--accent); }
.proceedings .stage { display: block; font-variant-caps: all-small-caps; letter-spacing: .09em; color: var(--accent); font-size: .95rem; }
.proceedings a { font-family: var(--head); font-size: 1.14rem; font-weight: 700; text-decoration: none; }
.proceedings a:hover { text-decoration: underline; }
.proceedings .meta { display: block; margin-top: 2px; }

.rulings, .exhibits { list-style: none; padding: 0; margin: 0; }
.rulings li, .exhibits li { padding: var(--u) 0; border-bottom: 1px solid var(--hair); }
.rulings a { font-weight: 600; }
.rulings .meta { display: block; }
.motions { padding-left: 1.4rem; }
.motions li { margin-bottom: calc(1.5*var(--u)); }
.motions li::marker { color: var(--accent); font-weight: 700; }
.motions b { font-family: var(--head); }

@media print { body { border-top: 0; } .verdict-form { box-shadow: none; } }

/* small screens: keep the header on the page and the form readable */
@media (max-width: 600px) {
  .brand { font-size: 1rem; }
  .top .aside a { font-size: .9rem; letter-spacing: .02em; }
  .top .aside .cta { padding: 2px 8px; }
  .verdict-form { padding: calc(2*var(--u)); box-shadow: 4px 4px 0 var(--tint); }
  .verdict-form dt { font-size: .9rem; }
  .proceedings a { font-size: 1.04rem; }
}
