/* capability: public-pages */
/* The company card on joininn.co (PUBLIC-01). Layout: one Zaan house front (green clapboard, white gable trim,
   a pointed gable) stands on the waterline and carries the name; below the waterline, a quiet footer holds the
   company's register details in small type (Don, 2026-11-11: not front and centre). The three families are
   served from this origin (PUBLIC-02), each under the SIL Open Font License beside its files. */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/fonts/bricolage-grotesque-latin.woff2") format("woff2");
  font-weight: 600 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Schibsted Grotesk";
  src: url("/fonts/schibsted-grotesk-latin.woff2") format("woff2");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("/fonts/ibm-plex-mono-400-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --sky: #DDE5DF;
  --water: #EDF1EC;
  --ink: #15241C;
  --muted: #56665D;
  --line: #C9D2CB;
  --quay: #15241C;
  --zaan: #1E4B35;
  --zaan-seam: #163B29;
  --trim: #F7F8F3;
  --font-display: "Bricolage Grotesque", "Avenir Next", system-ui, sans-serif;
  --font-body: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-data: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --rise: clamp(64px, 11vw, 120px);
  --frame: 980px;
}
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --sky: #09100C;
    --water: #0D1511;
    --ink: #E6ECE7;
    --muted: #9CABA2;
    --line: #26362D;
    --quay: #3A4E42;
    --zaan: #1F4A35;
    --zaan-seam: #173A29;
    --trim: #EEF2EC;
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--water);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.frame {
  width: 100%;
  max-width: calc(var(--frame) + 2 * 16px);
  margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}

/* Above the waterline: the sky and the one house, standing on the quay. */
.street {
  flex: 1;
  display: flex;
  align-items: flex-end;
  background: var(--sky);
  padding-top: clamp(40px, 9vw, 112px);
}
.house {
  --inset: clamp(0px, 7vw, 88px);
  width: min(560px, calc(100% - var(--inset)));
  margin-left: var(--inset);
  display: flex;
  background: var(--trim);
  clip-path: polygon(0 var(--rise), 50% 0, 100% var(--rise), 100% 100%, 0 100%);
}
.planks {
  flex: 1;
  margin: 8px 8px 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 22px;
  min-height: clamp(360px, 52vw, 500px);
  padding: calc(var(--rise) + 40px) clamp(24px, 5vw, 52px) clamp(32px, 5vw, 56px);
  background-color: var(--zaan);
  background-image: repeating-linear-gradient(to bottom, transparent 0 26px, var(--zaan-seam) 26px 28px);
  color: var(--trim);
  clip-path: polygon(0 calc(var(--rise) - 8px), 50% 0, 100% calc(var(--rise) - 8px), 100% 100%, 0 100%);
}
.mark {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(84px, 16vw, 168px);
  line-height: 0.84;
  letter-spacing: -0.04em;
}
.what {
  margin: 0;
  max-width: 30ch;
  font-size: clamp(17px, 1.7vw, 20px);
  line-height: 1.45;
  color: color-mix(in oklab, var(--trim) 88%, var(--zaan));
  text-wrap: pretty;
}

/* Below the waterline: the register, small and quiet. */
.register {
  border-top: 3px solid var(--quay);
  background: var(--water);
  padding-block: 28px 36px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
}
.register .frame {
  display: grid;
  gap: 18px;
}
.register dl {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 14px 28px;
}
.register dt {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.register dd {
  margin: 2px 0 0;
  color: var(--ink);
  overflow-wrap: anywhere;
}
.register address { font-style: normal; }
.num {
  font-family: var(--font-data);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}
.copy { margin: 0; }

@media (max-width: 560px) {
  .house { --inset: 0px; }
}
