/* Public pages: the home page, /projects and /homes. See docs/features/public-site.md.
   No scripts and no inline styles on these pages, so all of the look is here.
   The motif is the logo's three staggered bars, which are a small Gantt chart. */

@font-face { font-family: "Karla"; src: url("/fonts/Karla-Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Karla"; src: url("/fonts/Karla-Italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Karla"; src: url("/fonts/Karla-Bold.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Karla"; src: url("/fonts/Karla-ExtraBold.woff2") format("woff2"); font-weight: 800; font-style: normal; font-display: swap; }

:root {
  --slate: #2C3E50;
  --slate-deep: #223140;
  --teal: #1A7A6E;
  --teal-deep: #14625A;
  --mint: #7CD2C0;
  --bar-pale: #DCE9E6;
  --bar-muted: #B8D5CF;
  --paper: #F7F5F0;
  --sheet: #FFFFFF;
  --ink: #2C3E50;
  --ink-soft: #4C5C6B;
  --rule: #D8D5CB;
  --grid-line: #ECE9E1;
  --ochre: #6E470B;
  --ochre-soft: #F6ECD9;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --focus: #14625A;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Karla", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
}
img, svg { display: block; max-width: 100%; height: auto; }
p, ul, ol, dl, dd, figure, h1, h2, h3 { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3 { font-weight: 800; line-height: 1.12; letter-spacing: -0.015em; text-wrap: balance; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); }
h3 { font-size: 1.3rem; line-height: 1.2; }
a { color: var(--teal-deep); text-underline-offset: 0.18em; }
a:hover { color: var(--slate); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }

.wrap { width: min(72rem, 100% - 2 * var(--gutter)); margin-inline: auto; }
.on-dark { --focus: var(--mint); color: #fff; }
.on-dark a { color: #fff; }
.on-dark a:hover { color: var(--mint); }

.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 10;
  padding: 0.6rem 1rem; border-radius: 0.5rem;
  background: #fff; color: var(--slate); font-weight: 700;
}
.skip:focus { top: 0.75rem; }

/* Header */
.site-head { background: var(--slate); }
.head-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem 1.25rem; padding-block: 1rem; }
.logo { display: block; border-radius: 0.5rem; }
.logo img { width: 104px; }
.head-nav ul { display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; }
.head-nav a { display: inline-block; padding-block: 0.6rem; font-weight: 700; text-decoration-color: transparent; }
.head-nav a:hover { text-decoration-color: currentColor; }
.head-nav a[aria-current="page"] { text-decoration-color: var(--mint); text-decoration-thickness: 3px; }
.page-homes .site-head { background: var(--paper); }
.page-homes .head-nav a { color: var(--slate); }
.page-homes .head-nav a:hover { color: var(--teal-deep); }
.page-homes .head-nav a[aria-current="page"] { text-decoration-color: var(--teal); }

/* The status marker. Calm on purpose: it is a fact, not a warning. */
.status {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.2rem 0.8rem 0.2rem 0.6rem; border-radius: 99px;
  background: var(--ochre-soft); color: var(--ochre);
  font-size: 0.9375rem; font-weight: 700; line-height: 1.5;
}
.status::before { content: ""; width: 0.6rem; height: 0.6rem; border: 2px solid currentColor; border-radius: 50%; }

/* Hero */
.hero { padding-block: clamp(2rem, 6vw, 5rem) clamp(3rem, 7vw, 6rem); background: var(--slate); }
.hero-grid { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hero h1 { font-size: clamp(2.2rem, 5.6vw, 4.1rem); }
.hero h1 em { font-style: normal; color: var(--mint); }
.hero-sub { margin-top: 1.25rem; max-width: 36rem; font-size: clamp(1.1rem, 1.8vw, 1.3rem); line-height: 1.5; color: #DCE3E8; }
.hero-status { margin-top: 1.75rem; display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.9rem; }
.hero-status p + p { color: #DCE3E8; }
.hero-long h1 { font-size: clamp(2rem, 4.4vw, 3.3rem); }

/* Home hero: the logo's bars, turned into a statement of how both tools work */
.bars { display: grid; gap: 1rem; font-size: clamp(1.1rem, 1.9vw, 1.4rem); font-weight: 700; line-height: 1.25; color: var(--slate); }
.bars li { width: fit-content; max-width: 100%; padding: 1em 1.4em; border-radius: 2em; }
.bars li:nth-child(1) { background: #fff; }
.bars li:nth-child(2) { background: var(--bar-pale); margin-left: 8%; }
.bars li:nth-child(3) { background: var(--bar-muted); margin-left: 16%; }

/* Sections */
.section { padding-block: clamp(3rem, 7vw, 5.5rem); }
.section-intro { max-width: 42rem; margin-bottom: clamp(1.75rem, 4vw, 3rem); }
.section-intro p { margin-top: 0.9rem; color: var(--ink-soft); }
.section-white { background: var(--sheet); }
.section-dark { background: var(--slate); }
.section-dark .section-intro p { color: #DCE3E8; }

/* Home: the two products laid out like rows on a Gantt chart */
.lanes-section {
  background-color: var(--paper);
  background-image: repeating-linear-gradient(to right, var(--grid-line) 0 1px, transparent 1px 8.3333%);
}
.lanes { display: grid; gap: 1.25rem; }
.lane { padding: clamp(1.4rem, 3.5vw, 2.5rem); border-radius: 1.75rem; }
.lane-1 { background: var(--sheet); border: 1px solid var(--rule); }
.lane-2 { background: var(--bar-pale); }
.lane-3 { background: var(--ochre-soft); }
.lane .kicker { color: var(--ink-soft); font-weight: 700; }
.lane h3 { margin-top: 0.15rem; font-size: clamp(1.6rem, 3vw, 2.2rem); }
.lane .claim { margin-top: 0.6rem; font-size: clamp(1.15rem, 2vw, 1.35rem); line-height: 1.35; font-weight: 700; color: var(--teal-deep); }
.lane .body { margin-top: 0.8rem; max-width: 40rem; }
.lane-3 h3 { font-size: 1.3rem; }
.lane-3 p { margin-top: 0.5rem; }
.caveat { margin-top: 0.8rem; font-weight: 700; }
.lane-foot { margin-top: 1.1rem; display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.9rem; }
.price-note { color: var(--ink-soft); font-size: 0.9375rem; }
.lane-2 .price-note { color: var(--ink); }
.more { display: inline-block; margin-top: 1rem; padding-block: 0.3rem; font-weight: 800; font-size: 1.0625rem; }

/* Home: the same rules in both */
.rules { border-top: 2px solid var(--slate); }
.rule-row { display: grid; gap: 0.75rem; padding-block: 1.4rem; border-bottom: 1px solid var(--rule); }
.rule-row dl { display: grid; gap: 0.75rem; }
.rule-row dt { font-size: 0.875rem; font-weight: 700; color: var(--teal-deep); }

/* Project page: the report as a sheet of paper */
.sheet { padding: 1.25rem; border-radius: 0.75rem; background: var(--sheet); color: var(--ink); font-size: 0.9375rem; line-height: 1.45; box-shadow: 0 1.25rem 2.5rem rgba(0, 0, 0, 0.28); }
.sheet-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.sheet-label { font-family: var(--mono); font-size: 0.75rem; color: var(--ink-soft); }
.sheet-title { margin-top: 0.15rem; font-size: 1.15rem; font-weight: 800; line-height: 1.2; }
.stamp { flex: none; padding: 0.25rem 0.6rem; border: 2px solid var(--teal); border-radius: 0.4rem; color: var(--teal-deep); font-family: var(--mono); font-size: 0.75rem; font-weight: 700; line-height: 1.3; text-align: center; transform: rotate(-3deg); }
.sheet-table { margin-top: 1rem; display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 0.1rem 0.9rem; }
.sheet-table > * { padding-block: 0.4rem; border-bottom: 1px solid var(--grid-line); }
.sheet-head { font-family: var(--mono); font-size: 0.6875rem; color: var(--ink-soft); }
.sheet-num { text-align: right; font-variant-numeric: tabular-nums; }
.blank-target { color: var(--ink-soft); font-style: italic; text-align: right; }
.track-state { display: block; font-size: 0.8125rem; color: var(--ink-soft); }
.sheet-note { margin-top: 0.9rem; padding-top: 0.75rem; border-top: 2px solid var(--slate); font-size: 0.8125rem; color: var(--ink-soft); }
.sheet-note + .sheet-note { margin-top: 0.5rem; padding-top: 0; border-top: 0; }
.fig-caption { margin-top: 0.8rem; font-size: 0.875rem; color: #DCE3E8; }
.page-homes .fig-caption { color: var(--ink-soft); }

/* Project page: plan to report, one bar per step */
.steps { border-top: 2px solid var(--slate); }
.step { display: grid; gap: 0.5rem 2rem; padding-block: 1.1rem 1.75rem; border-bottom: 1px solid var(--rule); }
.track {
  grid-column: 1 / -1; height: 0.8rem; margin-bottom: 0.6rem; position: relative;
  background-image: repeating-linear-gradient(to right, var(--rule) 0 1px, transparent 1px 8.3333%);
}
.track span { position: absolute; top: 0; bottom: 0; border-radius: 99px; background: var(--teal); }
.step:nth-child(1) .track span { left: 0; width: 42%; background: var(--slate); }
.step:nth-child(2) .track span { left: 12%; width: 58%; background: var(--teal); }
.step:nth-child(3) .track span { left: 62%; width: 20%; background: var(--mint); }
.step:nth-child(4) .track span { left: 82%; width: 18%; background: var(--teal-deep); }
.step p + p { margin-top: 0.7rem; }

/* Facts laid out like a ledger */
.ledger { border-top: 2px solid var(--slate); }
.ledger > div { display: grid; gap: 0.3rem 2rem; padding-block: 1.1rem; border-bottom: 1px solid var(--rule); }
.ledger dt { font-weight: 800; font-size: 1.15rem; line-height: 1.3; }

/* A closing band */
.band { display: grid; gap: 1rem; justify-items: start; }
.band p { max-width: 42rem; }
.band .quiet { color: #DCE3E8; }

/* Homes page */
.page-homes .hero { background: var(--paper); padding-top: clamp(1rem, 3vw, 2.5rem); }
.page-homes .hero h1 em { color: var(--teal); }
.page-homes .hero-sub, .page-homes .hero-status p + p { color: var(--ink-soft); }
.not-advice { margin-top: 1.25rem; max-width: 36rem; padding: 0.7rem 1rem; border-left: 4px solid var(--teal); background: var(--bar-pale); font-weight: 700; }
.plan-sheet { padding: 0.75rem; border: 1px solid var(--rule); border-radius: 0.75rem; background: var(--sheet); }
.plan-sheet svg { width: 100%; border-radius: 0.4rem; }
.check-sheet { margin-top: -2.25rem; margin-inline: 1rem 0; position: relative; box-shadow: 0 0.75rem 2rem rgba(44, 62, 80, 0.22); border: 1px solid var(--rule); }
.check-list { margin-top: 0.6rem; }
.check-list li { display: flex; justify-content: space-between; gap: 1rem; padding-block: 0.25rem; border-bottom: 1px solid var(--grid-line); }
.check-found { font-weight: 800; color: var(--ochre); }
.check-route { margin-top: 0.7rem; }
.check-route b { color: var(--teal-deep); }

.p-ground { fill: #EEF0EA; }
.p-road { fill: #D9DCD6; }
.p-plot { fill: #fff; stroke: #B9BDB6; stroke-width: 1.5; }
.p-house { fill: var(--slate); }
.p-next { fill: #9AA6B0; }
.p-ext { fill: url(#hatch); stroke: var(--teal); stroke-width: 2.5; }
.p-hatch { stroke: var(--teal); stroke-width: 2; }
.p-zone { fill: #F6ECD9; fill-opacity: 0.65; stroke: #8A5A12; stroke-width: 2; stroke-dasharray: 8 6; }
.p-label { font-family: inherit; font-size: 15px; font-weight: 700; fill: #6E470B; }
.p-road-label { font-family: inherit; font-size: 14px; fill: #4C5C6B; }
.p-pin { fill: var(--teal); stroke: #fff; stroke-width: 2; }

.stages { display: grid; gap: 1.25rem; counter-reset: stage; }
.stage { display: flex; flex-direction: column; padding: 1.5rem; border-radius: 1.25rem; background: var(--sheet); border: 1px solid var(--rule); counter-increment: stage; }
.stage::before { content: counter(stage); display: grid; place-items: center; width: 2.4rem; height: 2.4rem; margin-bottom: 0.8rem; border-radius: 50%; background: var(--teal); color: #fff; font-weight: 800; }
.stage ul { margin-top: 0.6rem; }
.stage ul li { padding-left: 1rem; position: relative; }
.stage ul li::before { content: ""; position: absolute; left: 0; top: 0.65em; width: 0.45rem; height: 0.2rem; border-radius: 99px; background: var(--teal); }
.stage > p { margin-top: 0.7rem; }
.stage .stage-price { margin-top: auto; padding-top: 1rem; font-weight: 800; }
.stage .stage-note { margin-top: 0.2rem; font-size: 0.9375rem; font-weight: 700; color: var(--ink-soft); }

.table-wrap { max-width: 100%; }
.depth { width: 100%; border-collapse: collapse; border-top: 2px solid var(--slate); }
.depth caption { text-align: left; padding-bottom: 0.75rem; color: var(--ink-soft); }
.depth th, .depth td { padding: 0.8rem 0.75rem 0.8rem 0; border-bottom: 1px solid var(--rule); text-align: left; vertical-align: top; }
.depth thead th { font-size: 0.9375rem; color: var(--ink-soft); }
.depth tbody th { font-weight: 700; }
.depth .read { font-weight: 700; color: var(--teal-deep); }
.authorities { margin-top: 1.5rem; max-width: 46rem; font-size: 0.9375rem; color: var(--ink-soft); }
.authorities + .authorities { margin-top: 0.7rem; }

.trust-list { display: grid; gap: 0 2.5rem; border-top: 2px solid var(--slate); }
.trust-list li { padding-block: 1.1rem; border-bottom: 1px solid var(--rule); }
.trust-list strong { display: block; font-size: 1.1rem; line-height: 1.3; }

/* Footer */
.site-foot { background: var(--slate-deep); color: #DCE3E8; padding-block: 2.25rem; font-size: 0.9375rem; }
.foot-row { display: grid; gap: 1.25rem; }
.foot-row a { color: #fff; }
.foot-row a:hover { color: var(--mint); }
.foot-nav ul { display: flex; flex-wrap: wrap; gap: 0.2rem 1.25rem; }
.foot-nav a, .owner-link { display: inline-block; padding-block: 0.4rem; }
.foot-row .owner-link { color: #AEBBC4; font-size: 0.875rem; }

.nowrap { white-space: nowrap; }

@media (min-width: 45rem) {
  .rule-row dl { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .step { grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr); }
  .ledger > div { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
  .trust-list { grid-template-columns: 1fr 1fr; border-top: 0; }
  .trust-list li:nth-child(-n+2) { border-top: 2px solid var(--slate); }
  .foot-row { grid-template-columns: minmax(0, 2fr) auto auto; align-items: start; }
  .check-sheet { margin-inline: 2rem -0.5rem; }
}

@media (min-width: 56rem) {
  .hero-grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
  .lane-1 { margin-right: 20%; }
  .lane-2 { margin-left: 12%; margin-right: 6%; }
  .lane-3 { margin-left: 50%; }
  .rule-row { grid-template-columns: minmax(0, 1fr) minmax(0, 2.4fr); gap: 2rem; }
  .stages { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: stretch; }
  .stage:nth-child(2) { margin-top: 2rem; }
  .stage:nth-child(3) { margin-top: 4rem; }
}
