/* dictena.com — one stylesheet, no framework, no webfont fetch.
   The origin CSP is script-src 'self' and style-src 'self' 'unsafe-inline'; nothing
   here loads from anywhere else, which is what keeps that policy narrow. */

:root {
  --ink: #14181f;
  --ink-soft: #4c5566;
  --ink-faint: #737d8c;
  --paper: #fbfaf7;
  --panel: #ffffff;
  --rule: #e2ded4;
  --accent: #1f3d5c;      /* the blue of a bound statute book, not a startup */
  --accent-soft: #eef2f6;
  --good: #1d6b46;
  --late: #94551a;
  --plain: #6b7280;
  --shadow: 0 1px 2px rgba(20, 24, 31, .05), 0 8px 24px -16px rgba(20, 24, 31, .28);
  --measure: 62ch;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.65 "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  font-feature-settings: "kern", "liga";
}

/* Interface chrome is set in the system UI face; running prose stays in the serif.
   Lawyers read prose all day, and a screen face for a paragraph reads like a form. */
.masthead, nav, button, input, .state, .when, .badge, table, .pill, footer {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

a { color: var(--accent); text-underline-offset: 2px; }
a:hover { color: var(--ink); }

.wrap { width: min(72rem, 100% - 3rem); margin-inline: auto; }
.narrow { max-width: var(--measure); }

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

/* ---------------------------------------------------------------- masthead */

.masthead {
  border-bottom: 1px solid var(--rule);
  background: rgba(251, 250, 247, .92);
  backdrop-filter: saturate(140%) blur(6px);
  position: sticky; top: 0; z-index: 5;
}
.masthead .wrap {
  display: flex; align-items: center; gap: 1.5rem;
  min-height: 4rem; flex-wrap: wrap;
}
.brand {
  font-family: inherit;
  font-weight: 700; font-size: 1.2rem; letter-spacing: .01em;
  color: var(--ink); text-decoration: none;
}
.masthead nav { margin-left: auto; display: flex; gap: 1.25rem; align-items: center; font-size: .9375rem; }
.masthead nav a { color: var(--ink-soft); text-decoration: none; }
.masthead nav a:hover { color: var(--ink); text-decoration: underline; }
.lang { display: inline-flex; border: 1px solid var(--rule); border-radius: 3px; overflow: hidden; }
.lang a { padding: .2rem .5rem; font-size: .8125rem; color: var(--ink-faint); text-decoration: none; }
.lang a[aria-current] { background: var(--accent); color: #fff; }

/* ---------------------------------------------------------------- sections */

section { padding: 4.5rem 0; border-bottom: 1px solid var(--rule); }
section:last-of-type { border-bottom: 0; }

h1 {
  font-size: clamp(2.1rem, 5vw, 3.1rem); line-height: 1.12;
  letter-spacing: -.015em; margin: 0 0 1.25rem; max-width: 18ch;
}
h2 { font-size: clamp(1.5rem, 3vw, 1.9rem); line-height: 1.2; margin: 0 0 1rem; letter-spacing: -.01em; }
h3 { font-size: 1.125rem; margin: 0 0 .4rem; }
p { max-width: var(--measure); }
.lede { font-size: 1.1875rem; color: var(--ink-soft); }

.hero { padding-top: 5.5rem; }
.badge {
  display: inline-block; font-size: .75rem; letter-spacing: .09em; text-transform: uppercase;
  color: var(--accent); background: var(--accent-soft);
  padding: .3rem .6rem; border-radius: 2px; margin-bottom: 1.25rem; font-weight: 600;
}

.cols { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); }
.card {
  background: var(--panel); border: 1px solid var(--rule); border-radius: 4px;
  padding: 1.5rem; box-shadow: var(--shadow);
}
.card p { font-size: .9688rem; color: var(--ink-soft); margin: 0; }
.step { font-size: .75rem; letter-spacing: .09em; text-transform: uppercase; color: var(--ink-faint); font-weight: 600; }

/* ---------------------------------------------------------------- forms */

form { max-width: 30rem; }
label { display: block; font-size: .875rem; color: var(--ink-soft); margin: .9rem 0 .3rem; }
input[type=email], input[type=text] {
  width: 100%; padding: .7rem .8rem; font-size: 1rem;
  border: 1px solid var(--rule); border-radius: 3px; background: #fff; color: var(--ink);
}
input:focus-visible, button:focus-visible, a:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 2px;
}
.hp { position: absolute; left: -9999px; }  /* honeypot */
button {
  margin-top: 1rem; padding: .8rem 1.4rem; font-size: 1rem; font-weight: 600;
  border: 0; border-radius: 3px; background: var(--accent); color: #fff; cursor: pointer;
}
button:hover { background: #16304a; }
button[disabled] { opacity: .55; cursor: progress; }
button.ghost { background: transparent; color: var(--accent); border: 1px solid var(--rule); }

.result {
  margin-top: 1rem; padding: .8rem 1rem; border-radius: 3px; font-size: .9375rem;
  background: var(--accent-soft); border: 1px solid var(--rule);
}
.result-bad { background: #fdf1ee; border-color: #e8c9c0; }
.key {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: .875rem; word-break: break-all; display: block; margin-top: .5rem;
  padding: .6rem; background: #fff; border: 1px dashed var(--rule); border-radius: 3px;
}

/* ---------------------------------------------------------------- coverage */

.table-scroll { overflow-x: auto; border: 1px solid var(--rule); border-radius: 4px; background: var(--panel); }
table { border-collapse: collapse; width: 100%; font-size: .9375rem; }
th, td { text-align: left; padding: .75rem 1rem; border-bottom: 1px solid var(--rule); vertical-align: top; }
th { font-size: .75rem; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-faint); font-weight: 600; }
tbody tr:last-child td { border-bottom: 0; }
.jur td { background: var(--accent-soft); font-weight: 600; font-size: .8125rem; letter-spacing: .05em; text-transform: uppercase; color: var(--accent); }
.when { color: var(--ink-faint); font-size: .875rem; white-space: nowrap; }
.state { display: inline-block; font-size: .75rem; font-weight: 600; padding: .15rem .5rem; border-radius: 2px; white-space: nowrap; }
.state-live { background: #e6f2eb; color: var(--good); }
.state-stale { background: #fbeee0; color: var(--late); }
.state-planned { background: #eef0f3; color: var(--plain); }

/* ---------------------------------------------------------------- pricing */

.tiers { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); align-items: start; }
.tier { background: var(--panel); border: 1px solid var(--rule); border-radius: 4px; padding: 1.75rem; box-shadow: var(--shadow); }
.tier.featured { border-color: var(--accent); }
.price { font-size: 2.1rem; font-weight: 700; letter-spacing: -.02em; }
.price small { font-size: .875rem; font-weight: 400; color: var(--ink-faint); }
.tier ul { padding-left: 1.1rem; margin: 1rem 0 0; font-size: .9375rem; color: var(--ink-soft); }
.tier li { margin: .3rem 0; }
.tier form { margin-top: 1.25rem; }
.tier form label { margin-top: 0; }

/* ---------------------------------------------------------------- misc */

.pill { display: inline-block; font-size: .8125rem; color: var(--ink-faint); border: 1px solid var(--rule); border-radius: 999px; padding: .2rem .7rem; }
.note { font-size: .9375rem; color: var(--ink-faint); }
details { border-top: 1px solid var(--rule); padding: 1rem 0; max-width: var(--measure); }
details summary { cursor: pointer; font-weight: 600; }
details p { margin: .6rem 0 0; color: var(--ink-soft); font-size: .9688rem; }

footer { padding: 3rem 0 4rem; color: var(--ink-faint); font-size: .875rem; }
footer a { color: var(--ink-soft); }
footer .wrap > * + * { margin-top: .75rem; }

@media (max-width: 40rem) {
  section { padding: 3rem 0; }
  .wrap { width: min(72rem, 100% - 2rem); }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

.spaced { margin-top: 2rem; }
