/* Hallmark · pre-emit critique: P5 H4 E4 S5 R4 V5 */
/* Hallmark · macrostructure: Map / Diagram (the street is the map) · H9 hero knobs: build=Tier-B hand-SVG, animation=one entrance, scale=dominant
 * theme: custom · paper: oklch(97.6% 0.006 240) · accent: oklch(41% 0.13 262) enamel blue
 * display: Archivo (expanded) · body: Literata · axes: light / grotesk-sans / cool
 * nav: N1a Wordmark + 2 links (company details, email) · footer: Ft5 Statement · studied: no · context: inferred
 */

/* Base */

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

html {
  overflow-x: clip;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scrollbar-color: var(--color-muted) var(--color-paper-2);
}

body {
  margin: 0;
  overflow-x: clip;
  background: var(--color-paper);
  color: var(--color-ink);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
p,
ul,
dl,
dd,
figure {
  margin: 0;
}

ul {
  padding: 0;
}

h1,
h2,
h3 {
  text-wrap: balance;
}

p,
li,
dd {
  text-wrap: pretty;
}

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

a {
  color: inherit;
  text-decoration-thickness: var(--rule-hair);
  text-underline-offset: 0.22em;
}

a:hover {
  text-decoration-thickness: var(--rule-frame);
}

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

::selection {
  background: var(--color-enamel);
  color: var(--color-enamel-ink);
}

time,
.facts dd,
.plaque dd,
.receipt {
  font-variant-numeric: tabular-nums;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: max(var(--gutter), env(safe-area-inset-left)) max(var(--gutter), env(safe-area-inset-right));
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: absolute;
  inset-block-start: var(--space-sm);
  inset-inline-start: var(--space-sm);
  z-index: var(--z-sticky);
  padding: var(--space-xs) var(--space-md);
  background: var(--color-ink);
  color: var(--color-paper);
  font-family: var(--font-sign);
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius);
  transform: translateY(-200%);
}

.skip:focus-visible {
  transform: none;
}

/* Masthead: the street plate and the address */

.masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  padding-block: var(--space-xl) var(--space-md);
}

.plate {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 0.6em 0.95em 0.55em;
  background: var(--color-enamel);
  color: var(--color-enamel-ink);
  border-radius: var(--radius-plate);
  box-shadow:
    inset 0 0 0 3px var(--color-enamel),
    inset 0 0 0 4.5px var(--color-enamel-ink);
  font-family: var(--font-sign);
  font-size: clamp(0.8125rem, 0.75rem + 0.3vw, 0.9375rem);
  font-weight: 800;
  font-stretch: 125%;
  letter-spacing: 0.06em;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

/* The street cat sits on the plate's right end with its tail hanging past the edge. One unit of the drawing is 1.4/15 of the lettering size, so the cat scales with the plate. */
.plate__cat {
  --cat-u: calc(1.4em / 15);
  position: absolute;
  top: calc(-20 * var(--cat-u));
  right: calc(-8 * var(--cat-u));
  width: calc(22 * var(--cat-u));
  height: calc(42 * var(--cat-u));
  max-width: none;
  overflow: visible;
  fill: var(--color-ink);
  stroke: var(--color-ink);
}

.plate__tail {
  fill: none;
  stroke-width: 2.2;
  stroke-linecap: round;
  transform-box: fill-box;
  transform-origin: 0 0;
  transition: transform var(--dur-long) var(--ease-out);
}

/* Pointing at the plate makes the cat swish its tail. */
@media (prefers-reduced-motion: no-preference) {
  .plate:focus-visible .plate__tail {
    transform: rotate(-4deg);
    transition-duration: var(--dur-swish);
    transition-timing-function: var(--ease-swish);
  }
}

@media (prefers-reduced-motion: no-preference) and (hover: hover) and (pointer: fine) {
  .plate:hover .plate__tail {
    transform: rotate(-4deg);
    transition-duration: var(--dur-swish);
    transition-timing-function: var(--ease-swish);
  }
}

.masthead__links {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.masthead__link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-family: var(--font-sign);
  font-size: var(--text-sm);
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  text-decoration-line: underline;
  text-decoration-color: var(--color-rule);
}

.masthead__link:hover {
  text-decoration-color: currentColor;
}

/* Short labels on phones; the long label stays in the accessibility tree. */
.masthead__long {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

@media (min-width: 40rem) {
  .masthead__links {
    gap: var(--space-xl);
  }

  .masthead__long {
    position: static;
    width: auto;
    height: auto;
    overflow: visible;
    clip-path: none;
  }

  .masthead__short {
    display: none;
  }
}

/* Hero: the headline and the street */

.hero {
  --u: min(1.1px, calc((100vw - 2 * var(--gutter)) / 572));
  --foot: 3.5rem;
  --hero-end: var(--space-2xl);
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-xl);
  padding-block: var(--space-lg) var(--hero-end);
}

/* The ground line: the street every house stands on, edge to edge. */
.hero::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: calc(var(--hero-end) + var(--foot) - var(--rule-frame) / 2);
  height: var(--rule-frame);
  background: var(--color-ground);
  pointer-events: none;
}

.hero__title {
  max-width: 17ch;
  font-family: var(--font-sign);
  font-size: var(--text-display);
  font-weight: 800;
  font-stretch: 116%;
  line-height: 0.98;
  letter-spacing: -0.028em;
  overflow-wrap: anywhere;
  min-width: 0;
}

.hero__lede {
  max-width: 36em;
  margin-top: var(--space-lg);
  color: var(--color-ink-2);
  font-size: var(--text-md);
  line-height: 1.5;
}

.hero__lede a {
  color: var(--color-ink);
  text-decoration-color: var(--color-rule);
}

.hero__lede a:hover {
  text-decoration-color: currentColor;
}

.street {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-inline: var(--gutter);
}

.street__run {
  display: none;
}

@media (min-width: 40rem) {
  .street {
    padding-inline: 0;
  }

  .street__run {
    display: block;
    flex: 1 1 0;
    min-width: 0;
    height: calc(var(--u) * 232);
    margin-bottom: var(--foot);
    background: var(--color-neighbour);
    -webkit-mask-image: url("../img/neighbours.svg");
    mask-image: url("../img/neighbours.svg");
    -webkit-mask-repeat: repeat-x;
    mask-repeat: repeat-x;
    -webkit-mask-size: auto 100%;
    mask-size: auto 100%;
    -webkit-mask-position: right bottom;
    mask-position: right bottom;
  }

  .street__run--after {
    flex: 0 0 max(var(--gutter), calc((100% - var(--wrap)) / 2 + var(--gutter)));
    -webkit-mask-position: left bottom;
    mask-position: left bottom;
  }
}

.street__row {
  display: flex;
  align-items: flex-end;
  gap: calc(var(--u) * 6);
  list-style: none;
}

.lot__house {
  display: block;
  overflow: clip;
}

.lot:nth-child(2) { --i: 1; }
.lot:nth-child(3) { --i: 2; }

.lot__house .house {
  animation: rise var(--dur-long) var(--ease-out) both;
  animation-delay: calc(120ms + var(--i, 0) * 90ms);
}

.lot__link {
  --focus: var(--color-enamel);
  display: grid;
  justify-items: start;
  color: var(--color-ink);
  text-decoration: none;
  border-radius: var(--radius);
}

.lot__link:focus-visible {
  outline-offset: 6px;
}

.lot__name {
  display: block;
  height: calc(var(--space-lg) + var(--space-2xs));
  padding-top: var(--space-xs);
  font-family: var(--font-sign);
  font-size: var(--text-sm);
  font-weight: 700;
  font-stretch: 112%;
  line-height: 1.2;
  white-space: nowrap;
  text-decoration-line: underline;
  text-decoration-color: transparent;
  text-decoration-thickness: var(--rule-frame);
  text-underline-offset: 0.25em;
  transition: text-decoration-color var(--dur-short) var(--ease-out);
}

.lot__status {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  height: calc(var(--space-lg) + var(--space-2xs));
  color: var(--color-muted);
  font-size: var(--text-xs);
  line-height: 1.2;
  white-space: nowrap;
}

.lot__link:hover .lot__name,
.lot__link:focus-visible .lot__name {
  text-decoration-color: currentColor;
}

/* Status pips: a lit window for live, a drawn outline for planned */

.pip {
  flex: none;
  width: 0.62em;
  height: 0.8em;
  border-radius: 1px;
}

.pip--live {
  background: var(--color-light-warm);
  box-shadow: 0 0 0 1.5px var(--color-ink);
}

.pip--soon {
  border: 1.5px dashed currentColor;
}

/* The houses */

.house {
  width: calc(var(--u) * var(--w));
  height: calc(var(--u) * var(--h));
  overflow: visible;
}

.house--t3lly { --w: 176; --h: 300; }
.house--kraftbuch { --w: 212; --h: 266; }
.house--itemerary { --w: 172; --h: 266; }

.house__roof {
  fill: var(--color-roof);
}

.house__lights > * {
  opacity: 0;
  transition: opacity 160ms var(--ease-out);
}

/* Lights come on floor by floor, bottom up: the DOM order inside each group is the order. */
.house__lights > :nth-child(2) { --n: 1; }
.house__lights > :nth-child(3) { --n: 2; }
.house__lights > :nth-child(4) { --n: 3; }
.house__lights > :nth-child(5) { --n: 4; }
.house__lights > :nth-child(6) { --n: 5; }
.house__lights > :nth-child(7) { --n: 6; }
.house__lights > :nth-child(8) { --n: 7; }
.house__lights > :nth-child(9) { --n: 8; }
.house__lights > :nth-child(10) { --n: 9; }
.house__lights > :nth-child(11) { --n: 10; }

.lot__link:hover .house__lights > *,
.lot__link:focus-visible .house__lights > * {
  opacity: 1;
  transition-delay: calc(var(--n, 0) * 45ms);
}

.house__cat {
  animation: appear 520ms var(--ease-out) both;
  animation-delay: 760ms;
}

.house__cat-tail {
  fill: none;
  stroke-width: 2.2;
  stroke-linecap: round;
}

.house--t3lly .house__wall { fill: var(--color-t3-charcoal); }
.house--t3lly .house__ledge { fill: var(--color-t3-charcoal-2); }
.house--t3lly .house__panes > * { fill: var(--color-t3-window); }
.house--t3lly .house__lights > *,
.house--t3lly .house__tv { fill: var(--color-light-warm); }
.house--t3lly .house__frames { fill: none; stroke: var(--color-t3-bone); stroke-width: 2.4; }
.house--t3lly .house__door { fill: var(--color-t3-amber); }
.house--t3lly .house__cat { fill: var(--color-t3-charcoal); stroke: var(--color-t3-charcoal); }

.house--kraftbuch .house__wall { fill: var(--color-kb-orange); }
.house--kraftbuch .house__ledge { fill: var(--color-kb-orange-deep); }
.house--kraftbuch .house__panes > * { fill: var(--color-kb-window); }
.house--kraftbuch .house__lights > * { fill: var(--color-light); }
.house--kraftbuch .house__frames { fill: none; stroke: var(--color-kb-cream); stroke-width: 2.2; }
.house--kraftbuch .house__door { fill: var(--color-kb-night); }
.house--kraftbuch .house__cat { fill: var(--color-ink); stroke: var(--color-ink); }

.house--itemerary .house__wall { fill: var(--color-it-paper); stroke: var(--color-it-ink); stroke-width: 2; }
.house--itemerary .house__plan { fill: none; stroke: var(--color-it-ink); stroke-width: 1.4; stroke-dasharray: 4 3.5; }
.house--itemerary .house__lights > * { fill: var(--color-light); }
.house--itemerary .house__scaffold { fill: none; stroke: var(--color-it-ink); stroke-width: 1.6; stroke-linecap: square; }
.house--itemerary .house__plank { stroke-width: 3.2; }
.house--itemerary .house__board { fill: var(--color-it-paper); stroke: var(--color-it-ink); stroke-width: 1.6; }
.house--itemerary .house__mark { fill: var(--color-it-vermilion); }
.house--itemerary .house__board-lines { fill: none; stroke: var(--color-it-ink); stroke-width: 2.4; stroke-linecap: round; }

.lot__link--itemerary:hover .house__lights > *,
.lot__link--itemerary:focus-visible .house__lights > * {
  opacity: 0.6;
}

@media (min-width: 60rem) {
  .hero {
    padding-block: var(--space-xl) var(--hero-end);
  }
}

@supports (height: 100svh) {
  @media (min-width: 60rem) {
    .hero {
      --u: max(0.72px, min(1.15px, calc((100vw - 2 * var(--gutter)) / 572), calc((100svh - 32.5rem) / 300)));
    }
  }
}

/* House sections, shared */

.house-section {
  --ground: var(--color-paper);
  --ink: var(--color-ink);
  --ink-2: var(--color-ink-2);
  --line: var(--color-rule);
  --frame: var(--color-ink);
  --focus: var(--color-enamel);
  --btn: var(--color-ink);
  --btn-ink: var(--color-paper);
  --btn-hover: var(--color-ink-2);
  --tick: var(--color-ink);
  --screen-shadow: transparent;
  padding-block: var(--space-3xl) calc(var(--space-3xl) + var(--space-md));
  background: var(--ground);
  color: var(--ink);
}

.house-section__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-2xl);
}

.house-section__main {
  min-width: 0;
}

.house-section__name {
  display: flex;
  align-items: center;
  gap: 0.35em;
  font-family: var(--font-sign);
  font-size: var(--text-2xl);
  font-weight: 800;
  font-stretch: 118%;
  line-height: 1;
  letter-spacing: -0.022em;
  overflow-wrap: anywhere;
  min-width: 0;
}

.house-section__kind {
  margin-top: var(--space-md);
  color: var(--ink-2);
  font-family: var(--font-sign);
  font-size: var(--text-base);
  font-weight: 600;
  line-height: 1.4;
}

.house-section__status {
  display: flex;
  align-items: center;
  gap: 0.5em;
  margin-top: var(--space-md);
  color: var(--ink-2);
  font-family: var(--font-sign);
  font-weight: 600;
  line-height: 1.4;
}

.house-section__lede {
  max-width: 34em;
  margin-top: var(--space-lg);
  font-size: var(--text-md);
  line-height: 1.5;
}

.ticks {
  display: grid;
  gap: var(--space-xs);
  max-width: 36em;
  margin-top: var(--space-xl);
  list-style: none;
}

.ticks li {
  position: relative;
  padding-inline-start: 1.6em;
}

.ticks li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0.1em;
  top: 0.42em;
  width: 0.62em;
  height: 0.8em;
  border-radius: 1px;
  background: var(--tick);
}

.ticks--planned li::before {
  background: none;
  border: 1.5px dashed var(--tick);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-md) var(--space-xl);
  margin-top: var(--space-xl);
}

.actions__note {
  margin-top: var(--space-sm);
  color: var(--ink-2);
  font-size: var(--text-sm);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  min-height: calc(var(--space-2xl) - var(--space-md));
  padding-inline: var(--space-lg) var(--space-md);
  background: var(--btn);
  color: var(--btn-ink);
  border-radius: var(--radius);
  font-family: var(--font-sign);
  font-size: var(--text-sm);
  font-weight: 650;
  font-stretch: 110%;
  letter-spacing: 0.005em;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition:
    background-color var(--dur-short) var(--ease-out),
    transform var(--dur-micro) var(--ease-out);
}

.btn:hover {
  background: var(--btn-hover);
}

.btn:active {
  transform: translateY(1px);
}

.btn[aria-disabled="true"],
.copy:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.link:active,
.lot__link:active .lot__name,
.masthead__link:active,
.close__address:active {
  opacity: 0.75;
}

.btn__arrow {
  width: 1em;
  height: 1em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.link {
  font-family: var(--font-sign);
  font-size: var(--text-sm);
  font-weight: 600;
  white-space: nowrap;
  text-decoration-line: underline;
  text-decoration-color: var(--line);
}

.link:hover {
  text-decoration-color: currentColor;
}

/* Facts: a window grid, hairline mullions inside a heavier frame */

.facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: var(--space-xl);
  border: var(--rule-frame) solid var(--frame);
  border-radius: var(--radius);
  overflow: hidden;
}

/* Each cell draws its right and bottom mullion; the outer ones fall outside the frame and are clipped. */
.facts__cell {
  margin: 0 calc(-1 * var(--rule-hair)) calc(-1 * var(--rule-hair)) 0;
  padding: var(--space-md) var(--space-md) var(--space-lg);
  border-inline-end: var(--rule-hair) solid var(--line);
  border-block-end: var(--rule-hair) solid var(--line);
}

.facts dt {
  color: var(--ink-2);
  font-family: var(--font-sign);
  font-size: var(--text-xs);
  font-weight: 650;
  letter-spacing: 0.08em;
  line-height: 1.3;
  text-transform: uppercase;
}

.facts dd {
  margin-top: var(--space-2xs);
  font-size: var(--text-sm);
  line-height: 1.45;
}

/* t3lly: charcoal, bone, one amber light */

.house-section--t3lly {
  --ground: var(--color-t3-charcoal);
  --ink: var(--color-t3-bone);
  --ink-2: var(--color-t3-bone-muted);
  --line: var(--color-t3-line);
  --frame: var(--color-t3-bone-muted);
  --focus: var(--color-t3-amber);
  --btn: var(--color-t3-bone);
  --btn-ink: var(--color-t3-charcoal);
  --btn-hover: var(--color-t3-amber-hover);
  --tick: var(--color-t3-amber);
}

.house-section--t3lly ::selection {
  background: var(--color-t3-amber);
  color: var(--color-t3-charcoal);
}

.t3-wordmark {
  width: auto;
  height: 1.3em;
  margin-block: -0.12em -0.05em;
}

.t3-wordmark g {
  fill: none;
  stroke: var(--color-t3-bone);
  stroke-width: 3.1;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.t3-wordmark circle {
  fill: var(--color-t3-amber);
}

/* Kraftbuch: signal orange, night navy, amber mark */

.house-section--kraftbuch {
  --ground: var(--color-kb-orange);
  --ink: var(--color-kb-ink);
  --ink-2: var(--color-kb-ink);
  --line: var(--color-kb-line);
  --frame: var(--color-kb-ink);
  --focus: var(--color-kb-ink);
  --btn: var(--color-kb-ink);
  --btn-ink: var(--color-kb-cream);
  --btn-hover: var(--color-kb-ink-hover);
  --tick: var(--color-kb-ink);
  --screen-shadow: var(--color-kb-orange-deep);
  padding-block: calc(var(--space-3xl) - var(--space-md)) var(--space-3xl);
}

.house-section--kraftbuch ::selection {
  background: var(--color-kb-ink);
  color: var(--color-kb-cream);
}

.house-section--kraftbuch .house-section__kind {
  font-weight: 650;
}

.kb-icon {
  width: 1em;
  height: 1em;
  flex: none;
}

.kb-icon__tile { fill: var(--color-kb-night); }
.kb-icon__bell { fill: var(--color-kb-amber); }

.screen {
  --tilt: 2.5deg;
  justify-self: center;
  width: min(100%, 21rem);
}

.house-section--kraftbuch .screen {
  --tilt: -2.5deg;
}

/* The phones lean a little; pointing at one straightens it with a small settle. */
.screen img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-screen);
  box-shadow: 0 1.25rem 2.5rem -1rem var(--screen-shadow);
  outline: var(--rule-hair) solid var(--line);
  transform: rotate(var(--tilt));
  transition: transform var(--dur-long) var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .screen:hover img {
    transform: rotate(0deg) translateY(calc(-1 * var(--space-xs)));
    transition-duration: var(--dur-settle);
  }

  @supports (transition-timing-function: linear(0, 1)) {
    .screen:hover img {
      transition-timing-function: var(--ease-settle);
    }
  }
}

.caption {
  margin-top: var(--space-md);
  color: var(--ink-2);
  font-size: var(--text-sm);
  line-height: 1.45;
  text-align: start;
}


/* Itemerary: receipt paper, ink, one vermilion mark */

.house-section--itemerary {
  --ground: var(--color-it-paper);
  --ink: var(--color-it-ink);
  --ink-2: var(--color-it-muted);
  --line: var(--color-it-rule);
  --frame: var(--color-it-ink);
  --focus: var(--color-it-vermilion);
  --btn: var(--color-it-ink);
  --btn-ink: var(--color-it-paper);
  --btn-hover: var(--color-it-ink-hover);
  --tick: var(--color-it-ink);
  border-top: var(--rule-frame) solid var(--color-it-ink);
}

.house-section--itemerary ::selection {
  background: var(--color-it-ink);
  color: var(--color-it-paper);
}

.site-board {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-xl);
  align-content: start;
}

.receipt {
  display: grid;
  gap: var(--space-lg);
}

.receipt__label {
  color: var(--color-it-muted);
  font-family: var(--font-sign);
  font-size: var(--text-xs);
  font-weight: 650;
  letter-spacing: 0.08em;
  line-height: 1.3;
  text-transform: uppercase;
}

.receipt__row {
  display: flex;
  justify-content: space-between;
  gap: var(--space-md);
  padding-block: var(--space-xs);
  border-bottom: var(--rule-hair) dashed var(--color-it-rule);
}

.receipt__row--bank {
  margin-top: var(--space-xs);
  padding: var(--space-sm) var(--space-md);
  border: var(--rule-hair) solid var(--color-it-rule);
  border-radius: var(--radius);
  background: var(--color-it-paper-2);
  color: var(--color-it-muted);
  font-family: var(--font-sign);
  font-weight: 600;
}

.receipt__part--itemerary {
  position: relative;
  padding: var(--space-lg) var(--space-lg) var(--space-md);
  border: var(--rule-hair) solid var(--color-it-ink);
  border-radius: var(--radius);
  background: var(--color-it-paper);
}

.receipt__lines {
  margin-top: var(--space-xs);
  list-style: none;
}

.receipt__row--total {
  margin-top: var(--space-2xs);
  border-top: var(--rule-frame) solid var(--color-it-ink);
  border-bottom: 0;
  padding-top: var(--space-sm);
  font-family: var(--font-sign);
  font-weight: 700;
}

.receipt__stamp {
  position: absolute;
  inset-block-start: var(--space-md);
  inset-inline-end: var(--space-md);
  padding: 0.2em 0.5em 0.15em;
  border: 1.5px solid var(--color-it-vermilion);
  border-radius: 3px;
  color: var(--color-it-vermilion);
  font-family: var(--font-sign);
  font-size: var(--text-xs);
  font-weight: 750;
  letter-spacing: 0.1em;
  line-height: 1.2;
  text-transform: uppercase;
  transform: rotate(-4deg);
}

.board {
  border-bottom: var(--rule-frame) solid var(--color-it-ink);
}

.board__sign {
  padding: var(--space-md) var(--space-lg) var(--space-xs);
  border: var(--rule-frame) solid var(--color-it-ink);
  border-radius: 2px;
  background: var(--color-it-paper);
}

.board__head {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding-bottom: var(--space-sm);
  border-bottom: var(--rule-frame) solid var(--color-it-ink);
  font-family: var(--font-sign);
  font-size: var(--text-md);
  font-weight: 800;
  font-stretch: 118%;
  letter-spacing: -0.01em;
  line-height: 1.1;
}

.board__mark {
  flex: none;
  width: 0.85em;
  height: 0.85em;
  background: var(--color-it-vermilion);
}

.board__list {
  margin-top: var(--space-2xs);
}

.board__posts {
  display: block;
  height: var(--space-xl);
  margin-inline: 14%;
  border-inline: 6px solid var(--color-it-ink);
}

.board__row {
  display: grid;
  grid-template-columns: minmax(0, 7.5rem) minmax(0, 1fr);
  gap: var(--space-md);
  padding-block: var(--space-xs);
  border-bottom: var(--rule-hair) solid var(--color-it-rule);
}

@media (min-width: 40rem) {
  .board__row {
    grid-template-columns: minmax(0, 9rem) minmax(0, 1fr);
  }
}

.board__row:last-child {
  border-bottom: 0;
}

.board dt {
  color: var(--color-it-muted);
  font-family: var(--font-sign);
  font-size: var(--text-xs);
  font-weight: 650;
  letter-spacing: 0.08em;
  line-height: 1.9;
  text-transform: uppercase;
}

.board dd {
  font-size: var(--text-sm);
}

/* Company: the enamel house and its plaque */

.company {
  --focus: var(--color-enamel-ink);
  --ink-2: var(--color-enamel-muted);
  --line: var(--color-enamel-line);
  --frame: var(--color-enamel-muted);
  padding-block: var(--space-3xl) calc(var(--space-3xl) + var(--space-lg));
  background: var(--color-enamel);
  color: var(--color-enamel-ink);
}

.company ::selection {
  background: var(--color-enamel-ink);
  color: var(--color-enamel);
}

.company__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-2xl);
}

.company__title {
  font-family: var(--font-sign);
  font-size: var(--text-2xl);
  font-weight: 800;
  font-stretch: 116%;
  line-height: 1.02;
  letter-spacing: -0.022em;
  max-width: 14ch;
  overflow-wrap: anywhere;
  min-width: 0;
}

.company__text p {
  max-width: 34em;
  margin-top: var(--space-lg);
  font-size: var(--text-md);
  line-height: 1.55;
}

.company__text p + p {
  margin-top: var(--space-md);
}

.company__text .company__person {
  margin-top: var(--space-xl);
  color: var(--color-enamel-muted);
  font-size: var(--text-base);
}

.company__subtitle {
  margin-top: var(--space-2xl);
  font-family: var(--font-sign);
  font-size: var(--text-md);
  font-weight: 800;
  font-stretch: 112%;
  line-height: 1.2;
}

.facts--skills {
  grid-template-columns: minmax(0, 1fr);
  margin-top: var(--space-md);
}

@media (min-width: 30rem) {
  .facts--skills {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.facts--skills a {
  color: var(--color-enamel-ink);
}

.company__person a {
  color: var(--color-enamel-ink);
  font-family: var(--font-sign);
  font-weight: 600;
  white-space: nowrap;
}

.plaque {
  align-self: start;
  padding: calc(var(--space-xl) - var(--space-2xs)) var(--space-xl) var(--space-xl);
  background: var(--color-enamel-deep);
  border-radius: var(--radius-plate);
  box-shadow:
    inset 0 0 0 6px var(--color-enamel-deep),
    inset 0 0 0 8px var(--color-enamel-ink);
}

.plaque__title {
  font-family: var(--font-sign);
  font-size: var(--text-sm);
  font-weight: 800;
  font-stretch: 125%;
  letter-spacing: 0.12em;
  line-height: 1.2;
  text-transform: uppercase;
}

.plaque__list {
  margin-top: var(--space-md);
}

.plaque__row {
  display: grid;
  gap: var(--space-3xs);
  padding-block: var(--space-sm);
  border-top: var(--rule-hair) solid var(--color-enamel-line);
}

.plaque dt {
  color: var(--color-enamel-muted);
  font-family: var(--font-sign);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.plaque dd {
  font-family: var(--font-sign);
  font-size: var(--text-base);
  font-weight: 600;
  font-stretch: 105%;
  overflow-wrap: anywhere;
}

@media (min-width: 30rem) {
  .plaque__row {
    grid-template-columns: minmax(0, 11rem) minmax(0, 1fr);
    gap: var(--space-md);
    align-items: baseline;
  }
}

/* Close: the address, set large */

.close {
  --focus: var(--color-night-ink);
  padding-block: var(--space-3xl) var(--space-xl);
  background: var(--color-night);
  color: var(--color-night-ink);
}

.close ::selection {
  background: var(--color-night-ink);
  color: var(--color-night);
}

.close__lead {
  max-width: 30em;
  color: var(--color-night-muted);
  font-size: var(--text-md);
  line-height: 1.5;
}

.close__mail {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-md) var(--space-xl);
  margin-top: var(--space-md);
}

.close__address {
  font-family: var(--font-sign);
  font-size: clamp(1.3rem, 6.1vw, 3.6rem);
  font-weight: 800;
  font-stretch: 112%;
  letter-spacing: -0.02em;
  line-height: 1.1;
  white-space: nowrap;
  text-decoration-line: underline;
  text-decoration-color: var(--color-night-line);
  text-decoration-thickness: var(--rule-frame);
  text-underline-offset: 0.16em;
}

.close__address:hover {
  text-decoration-color: currentColor;
}

.copy {
  position: relative;
  display: inline-grid;
  min-height: calc(var(--space-xl) + var(--space-2xs));
  padding: 0 var(--space-md);
  background: none;
  color: var(--color-night-ink);
  border: 1.5px solid var(--color-night-edge);
  border-radius: var(--radius);
  font-family: var(--font-sign);
  font-size: var(--text-sm);
  font-weight: 600;
  cursor: pointer;
  transition:
    border-color var(--dur-short) var(--ease-out),
    transform var(--dur-micro) var(--ease-out);
}

.copy > span {
  grid-area: 1 / 1;
  align-self: center;
  white-space: nowrap;
  transition: opacity var(--dur-micro) var(--ease-out);
}

.copy:hover {
  border-color: var(--color-night-muted);
}

.copy:active {
  transform: translateY(1px);
}

.copy__done {
  opacity: 0;
}

.copy[data-state="copied"] .copy__label {
  opacity: 0;
}

.copy[data-state="copied"] .copy__done {
  opacity: 1;
}

.close__meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-xs) var(--space-xl);
  margin-top: var(--space-3xl);
  padding-top: var(--space-lg);
  border-top: var(--rule-hair) solid var(--color-night-line);
  color: var(--color-night-muted);
  font-size: var(--text-sm);
}

/* 404: an empty lot */

.lost {
  display: grid;
  gap: var(--space-2xl);
  align-items: end;
  padding-block: var(--space-2xl) var(--space-3xl);
}

.lost__title {
  font-family: var(--font-sign);
  font-size: var(--text-2xl);
  font-weight: 800;
  font-stretch: 116%;
  letter-spacing: -0.022em;
  line-height: 1.02;
  overflow-wrap: anywhere;
  min-width: 0;
}

.lost__lede {
  max-width: 30em;
  margin-top: var(--space-lg);
  color: var(--color-ink-2);
  font-size: var(--text-md);
  line-height: 1.5;
}

.lost__actions {
  margin-top: var(--space-xl);
}

.lost .btn {
  --btn: var(--color-ink);
  --btn-ink: var(--color-paper);
  --btn-hover: var(--color-ink-2);
}

.lost__plot {
  width: min(100%, 15rem);
  height: auto;
}

.lost__plan {
  fill: none;
  stroke: var(--color-ink);
  stroke-width: 1.6;
  stroke-dasharray: 5 4;
}

.lost__ground {
  stroke: var(--color-ground);
  stroke-width: 2;
}

@media (min-width: 60rem) {
  .lost {
    grid-template-columns: minmax(0, 1fr) auto;
    padding-block: var(--space-4xl);
  }
}

/* Desktop composition */

@media (min-width: 60rem) {
  .house-section__grid,
  .company__grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--space-lg);
  }

  .house-section--t3lly .house-section__main { grid-column: 1 / span 7; }
  .house-section--t3lly .screen { grid-column: 9 / span 4; grid-row: 1; align-self: start; justify-self: end; margin-top: var(--space-sm); }

  .house-section--kraftbuch .house-section__main { grid-column: 6 / span 7; grid-row: 1; }
  .house-section--kraftbuch .screen { grid-column: 1 / span 4; grid-row: 1; align-self: start; justify-self: start; margin-top: var(--space-sm); }

  .house-section--itemerary .house-section__main { grid-column: 1 / span 6; }
  .house-section--itemerary .site-board { grid-column: 8 / span 5; }

  .company__text { grid-column: 1 / span 6; }
  .plaque { grid-column: 8 / span 5; }
}

/* Motion: the street settles once, then everything holds still */

@keyframes rise {
  from {
    transform: translateY(16%);
  }
}

@keyframes appear {
  from {
    opacity: 0;
  }
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

@media (prefers-reduced-motion: reduce) {
  .lot__house .house,
  .house__cat {
    animation: none;
  }

  .house__lights > *,
  .lot__name,
  .btn,
  .copy,
  .copy > span {
    transition-duration: 0ms;
  }

  .screen img,
  .screen:hover img {
    transform: rotate(var(--tilt));
    transition: none;
  }

  .lot__link:hover .house__lights > *,
  .lot__link:focus-visible .house__lights > * {
    transition-delay: 0ms;
  }
}

@media print {
  .skip,
  .street,
  .actions,
  .copy {
    display: none;
  }

  .house-section,
  .company,
  .close {
    padding-block: var(--space-xl);
  }
}
