/* Civic Evidence
   Layout: a research-report grid. A narrow margin column names each section and a wide
   column carries the content. The home hero pairs the headline with a land-value contour
   plate drawn around a rail line. */

:root {
  /* Color */
  --paper: #ffffff;
  --band: #edf3f4;
  --plate: #f0f5f6;
  --navy: #13294a;
  --ink: #1f2d41;
  --muted: #526175;
  --rule: #d6dfe5;
  --teal: #0b6b67;
  --teal-deep: #074f4c;
  --on-teal: #ffffff;
  --rail: #0d7772;
  --contour: #13294a;
  --tile: #13294a;
  --tile-line: #5cc8bd;
  --tile-dot: #ffffff;
  --focus: #0b6b67;

  /* Type */
  --font-display: "Literata Variable", Literata, Georgia, "Times New Roman", serif;
  --font-body: "Public Sans Variable", "Public Sans", "Helvetica Neue", Arial, sans-serif;
  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: 1.4375rem;
  --step-3: clamp(1.75rem, 1.4rem + 1.2vw, 2.375rem);
  --step-4: clamp(2.25rem, 1.6rem + 2.5vw, 3.375rem);
  --step-5: clamp(2.625rem, 1.55rem + 4vw, 4.25rem);

  /* Layout */
  --label-col: 16rem;
  --measure: 40rem;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0d1929;
    --band: #12233a;
    --plate: #102036;
    --navy: #eaf0f6;
    --ink: #d3dce7;
    --muted: #9eaec0;
    --rule: #263851;
    --teal: #62cbc0;
    --teal-deep: #8ddcd3;
    --on-teal: #062321;
    --rail: #4fc2b6;
    --contour: #c3d3e4;
    --tile: #20406a;
    --tile-line: #62cbc0;
    --tile-dot: #ffffff;
    --focus: #62cbc0;
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --paper: #0d1929;
  --band: #12233a;
  --plate: #102036;
  --navy: #eaf0f6;
  --ink: #d3dce7;
  --muted: #9eaec0;
  --rule: #263851;
  --teal: #62cbc0;
  --teal-deep: #8ddcd3;
  --on-teal: #062321;
  --rail: #4fc2b6;
  --contour: #c3d3e4;
  --tile: #20406a;
  --tile-line: #62cbc0;
  --tile-dot: #ffffff;
  --focus: #62cbc0;
  color-scheme: dark;
}

@font-face {
  font-family: "Literata Variable";
  src: url("fonts/literata-latin-opsz-normal.woff2") format("woff2-variations"),
       url("fonts/literata-latin-opsz-normal.woff2") format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Public Sans Variable";
  src: url("fonts/public-sans-latin-wght-normal.woff2") format("woff2-variations"),
       url("fonts/public-sans-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Public Sans Variable";
  src: url("fonts/public-sans-latin-wght-italic.woff2") format("woff2-variations"),
       url("fonts/public-sans-latin-wght-italic.woff2") format("woff2");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

/* Base */

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.65;
  overflow-wrap: break-word;
}

@media (min-width: 60em) {
  body { font-size: 1.125rem; }
}

img, svg { max-width: 100%; }

h1, h2, h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.18;
  color: var(--navy);
  text-wrap: balance;
}

p, ul, ol, dl, dd, figure { margin: 0; }

a {
  color: var(--teal);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover { text-decoration-thickness: 2px; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 2px;
}

cite { font-style: italic; }

.wrap {
  max-width: 76rem;
  margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}

@media (min-width: 45em) {
  .wrap {
    padding-left: max(40px, env(safe-area-inset-left, 0px));
    padding-right: max(40px, env(safe-area-inset-right, 0px));
  }
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0.5rem;
  z-index: 20;
  padding: 0.5rem 0.875rem;
  background: var(--paper);
  color: var(--navy);
  font-weight: 600;
}

.skip:focus { left: max(16px, env(safe-area-inset-left, 0px)); }

/* Header */

.site-header { border-bottom: 1px solid var(--rule); }

.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  padding-block: 1.1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  color: var(--navy);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 1.3125rem;
  font-weight: 620;
  letter-spacing: -0.005em;
  line-height: 1.2;
}

.brand svg { width: 30px; height: 30px; flex: none; }
.mark-tile { fill: var(--tile); }
.mark-line { fill: none; stroke: var(--tile-line); stroke-width: 3.2; stroke-linecap: round; }
.mark-dot { fill: var(--tile-dot); stroke: var(--tile); stroke-width: 2; }

.nav ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.125rem 1.5rem;
}

.nav a {
  display: inline-block;
  padding-block: 0.375rem;
  border-bottom: 2px solid transparent;
  color: var(--ink);
  font-size: 0.97rem;
  font-weight: 500;
  text-decoration: none;
}

.nav a:hover { border-bottom-color: var(--rule); }

.nav a[aria-current="page"] {
  border-bottom-color: var(--teal);
  color: var(--navy);
}

@media (max-width: 44.99em) {
  .nav { width: 100%; }
  .nav ul { gap: 0.125rem 1.1rem; }
}

/* Home hero */

.hero .wrap {
  display: grid;
  gap: 2.5rem;
  padding-block: 3rem 3.5rem;
}

@media (min-width: 60em) {
  .hero .wrap {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    align-items: center;
    gap: 4rem;
    padding-block: 5rem;
  }
}

.hero h1 {
  font-size: var(--step-5);
  font-weight: 560;
  line-height: 1.05;
  letter-spacing: -0.015em;
}

.hero .lead {
  margin-top: 1.5rem;
  max-width: 34rem;
  font-size: clamp(1.15rem, 1rem + 0.5vw, 1.375rem);
  line-height: 1.5;
}

.actions {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.75rem;
}

.byline {
  margin-top: 2.25rem;
  padding-top: 1.25rem;
  max-width: 34rem;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 0.95rem;
}

.plate-box {
  background: var(--plate);
  border-radius: 2px;
}

.plate-svg { display: block; width: 100%; height: auto; }

.plate figcaption {
  margin-top: 0.75rem;
  color: var(--muted);
  font-size: var(--step--1);
  line-height: 1.5;
}

.ct {
  fill: none;
  stroke: var(--contour);
  stroke-width: 1;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.ct-idx { stroke-width: 1.75; }

.rail-casing { fill: none; stroke: var(--plate); stroke-width: 13; stroke-linecap: round; }
.rail { fill: none; stroke: var(--rail); stroke-width: 6; stroke-linecap: round; }
.rail-proposed { fill: none; stroke: var(--rail); stroke-width: 4; stroke-dasharray: 9 7; }
.stn { fill: var(--plate); stroke: var(--navy); stroke-width: 3; }
.stn-x { stroke-width: 3.5; }
.stn-proposed { stroke-width: 2.5; stroke-dasharray: 4 3; }

/* Buttons and links */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.875rem;
  padding: 0.7rem 1.3rem;
  border: 1.5px solid var(--teal);
  border-radius: 3px;
  background: var(--teal);
  color: var(--on-teal);
  font: inherit;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
}

.btn:hover { background: var(--teal-deep); border-color: var(--teal-deep); }

.btn-secondary {
  background: transparent;
  color: var(--teal);
}

.btn-secondary:hover { background: var(--band); border-color: var(--teal); }

.strong-link { font-weight: 600; }

/* Inner page heading */

.page-head .wrap > div { padding-block: 3rem 2.75rem; }

@media (min-width: 60em) {
  .page-head .wrap > div { padding-block: 4.5rem 3.5rem; }
}

.page-head h1 {
  max-width: 20ch;
  font-size: var(--step-4);
  font-weight: 580;
  letter-spacing: -0.01em;
}

.page-head .lead {
  margin-top: 1.25rem;
  max-width: 42rem;
  font-size: var(--step-1);
  line-height: 1.55;
}

.page-head .lead + p { margin-top: 1rem; }

/* Section rows */

.row-grid {
  display: grid;
  gap: 1.25rem;
  padding-block: 2.75rem;
  border-top: 1px solid var(--rule);
}

@media (min-width: 60em) {
  .row-grid {
    grid-template-columns: var(--label-col) minmax(0, 1fr);
    gap: 3rem;
    padding-block: 3.75rem;
  }
}

.row-grid > * { min-width: 0; }

.row-label {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 650;
  line-height: 1.4;
  color: var(--navy);
}

.row-foot { margin-top: 2rem; }

.prose {
  max-width: var(--measure);
  display: grid;
  gap: 1.1rem;
}

/* Home: practice areas, record, background */

.areas {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 2rem 3rem;
}

@media (min-width: 45em) {
  .areas { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.areas h3 { font-size: 1.375rem; line-height: 1.25; }
.areas h3 a { color: var(--navy); text-decoration: none; }
.areas h3 a:hover { text-decoration: underline; text-decoration-color: var(--teal); }
.areas p { margin-top: 0.5rem; color: var(--muted); }

.statement {
  max-width: 46rem;
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 1.1rem + 0.75vw, 1.7rem);
  font-weight: 400;
  line-height: 1.42;
  color: var(--navy);
}

.trio {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 2rem;
}

@media (min-width: 45em) {
  .trio { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.5rem; }
}

.trio h3 { font-size: 1.2rem; line-height: 1.3; }
.trio p { margin-top: 0.5rem; }

/* Entries: selected work */

.entries { list-style: none; padding: 0; }

.entries > li {
  display: grid;
  gap: 0.375rem 2rem;
  padding-block: 1.5rem;
  border-top: 1px solid var(--rule);
}

.entries > li:first-child { padding-top: 0; border-top: 0; }
.entries > li:last-child { padding-bottom: 0; }

@media (min-width: 45em) {
  .entries > li { grid-template-columns: 6rem minmax(0, 1fr); }
}

.when {
  padding-top: 0.15rem;
  color: var(--muted);
  font-size: 0.95rem;
  font-variant-numeric: tabular-nums lining-nums;
}

.entry-title {
  font-family: var(--font-display);
  font-size: 1.1875rem;
  font-weight: 560;
  line-height: 1.38;
  color: var(--navy);
}

.facts-inline {
  margin-top: 0.5rem;
  display: grid;
  gap: 0.2rem;
  font-size: 0.97rem;
}

.facts-inline div {
  display: grid;
  grid-template-columns: 4.25rem minmax(0, 1fr);
  gap: 0.75rem;
}

.facts-inline dt { color: var(--muted); }

/* Lists with station markers */

.dot-list {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 0.6rem;
}

.dot-list li {
  position: relative;
  padding-left: 1.5rem;
}

.dot-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 0.625rem;
  height: 0.625rem;
  border: 2px solid var(--teal);
  border-radius: 50%;
}

.sub-label {
  margin-bottom: 0.75rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 650;
  color: var(--navy);
}

/* Services */

.area-name { font-size: 1.5rem; line-height: 1.25; }

.question {
  max-width: 40rem;
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 1.05rem + 0.5vw, 1.4rem);
  font-weight: 450;
  line-height: 1.45;
  color: var(--navy);
}

.area-body { margin-top: 1rem; max-width: var(--measure); }
.related { margin-top: 1.75rem; max-width: 46rem; }

.grid-2 {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 2rem 3rem;
}

@media (min-width: 45em) {
  .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.grid-2 h3 { font-size: 1.2rem; line-height: 1.3; }
.grid-2 p { margin-top: 0.4rem; }
.grid-2 .note { margin-top: 0.6rem; color: var(--muted); font-size: 0.95rem; }

/* Steps drawn as stations on a line: the order is the content. */

.steps {
  list-style: none;
  padding: 0;
  counter-reset: step;
  display: grid;
  gap: 1.75rem;
}

.steps li {
  position: relative;
  display: grid;
  grid-template-columns: 2.5rem minmax(0, 1fr);
  column-gap: 1rem;
  counter-increment: step;
}

.steps li::before {
  content: counter(step);
  position: relative;
  z-index: 1;
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 3px solid var(--navy);
  border-radius: 50%;
  background: var(--paper);
  color: var(--navy);
  font-family: var(--font-display);
  font-weight: 650;
  line-height: 1;
}

.steps li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: calc(1.25rem - 3px);
  top: 1.25rem;
  width: 6px;
  height: calc(100% + 1.75rem);
  background: var(--rail);
}

.steps h3 { padding-top: 0.35rem; font-size: 1.2rem; line-height: 1.3; }
.steps p { margin-top: 0.35rem; }

@media (min-width: 45em) {
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.5rem; }
  .steps li { display: block; }
  .steps li::before { margin-bottom: 1rem; }
  .steps li:not(:last-child)::after {
    left: 1.25rem;
    top: calc(1.25rem - 3px);
    width: calc(100% + 2.5rem);
    height: 6px;
  }
  .steps h3 { padding-top: 0; }
}

/* Research */

.pubs {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 1.6rem;
  max-width: 48rem;
}

.pub-title {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 520;
  line-height: 1.42;
  color: var(--navy);
}

.pub-meta {
  margin-top: 0.3rem;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

.pub-note {
  position: relative;
  margin-top: 0.4rem;
  padding-left: 1.25rem;
  color: var(--teal);
  font-size: 0.93rem;
  line-height: 1.5;
}

.pub-note::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.42em;
  width: 0.55rem;
  height: 0.55rem;
  border: 2px solid var(--teal);
  border-radius: 50%;
}

/* Contact */

.email-big {
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 1.05rem + 1.8vw, 2.375rem);
  font-weight: 500;
  line-height: 1.25;
  color: var(--navy);
  text-decoration-color: var(--teal);
  overflow-wrap: anywhere;
}

.copy-row {
  margin-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
}

.copy-status { color: var(--muted); font-size: 0.95rem; }

/* Closing band */

.cta { background: var(--band); }

.cta-grid {
  display: grid;
  gap: 1rem;
  padding-block: 3.25rem;
}

@media (min-width: 60em) {
  .cta-grid {
    grid-template-columns: var(--label-col) minmax(0, 1fr);
    gap: 3rem;
    padding-block: 4rem;
  }
}

.cta-grid > * { min-width: 0; }
.cta h2 { font-size: var(--step-3); font-weight: 580; }
.cta p { max-width: var(--measure); }
.cta .email-big { display: inline-block; margin-top: 0.75rem; }
.cta .small { margin-top: 1rem; font-size: 0.95rem; }

/* Footer */

.site-footer {
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 0.95rem;
}

.cta + .site-footer { border-top: 0; }

.f-grid {
  display: grid;
  align-items: start;
  gap: 2rem;
  padding-block: 3rem 2.25rem;
}

@media (min-width: 45em) {
  .f-grid { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1.4fr); }
}

.f-grid ul { list-style: none; padding: 0; display: grid; gap: 0.35rem; }
.f-grid a { color: var(--ink); }
.f-grid .brand { font-size: 1.15rem; }
.f-grid .brand svg { width: 26px; height: 26px; }
.f-about { margin-top: 0.75rem; display: grid; gap: 0.15rem; }

.f-bottom {
  padding-block: 1.25rem 2.5rem;
  border-top: 1px solid var(--rule);
  font-size: var(--step--1);
}
