/* Self-hosted fonts, Latin set, from Google Fonts (SIL Open Font License 1.1; licences in /fonts). L-0392. */
@font-face {
  font-family: 'DM Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/dm-mono-400-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Hanken Grotesk';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/hanken-grotesk-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Hanken Grotesk';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/fonts/hanken-grotesk-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/newsreader-400-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* land.build landing page. Colours and type from Context/brand.md. */
:root {
  --ink: #1A1814;
  --white: #F9F7F3;
  --amber: #C17B3A;
  --band: #F2EEE6;
  --rule: #E6E1D8;
  --line: #CFC7B8;
  --muted: #6E675C;
  --body2: #4A453D;
  --on-ink-muted: #B8AF9F;
  /* The one surprising accent (addendum #3): plan blue, used only on the YOURS lot and the hero button. Warm white on it = 7.05:1. */
  --plan-blue: #2B3FD6;
  --plan-blue-deep: #2338C8;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Hanken Grotesk", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: "DM Mono", ui-monospace, Menlo, Consolas, monospace;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--white); color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 1.55; }
a { color: var(--ink); text-underline-offset: 3px; }
a:hover { color: #8A5526; }
a:focus-visible, .btn:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { text-wrap: balance; }

.skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: var(--white); padding: 10px 16px; border-radius: 6px; z-index: 10; }
.skip:focus { left: 16px; }

.wrap { max-width: 1200px; margin: 0 auto; padding-inline: max(16px, env(safe-area-inset-left, 0px)) max(16px, env(safe-area-inset-right, 0px)); }
@media (min-width: 640px) { .wrap { padding-inline: 24px; } }
.narrow { max-width: 820px; margin: 0 auto; padding-inline: 16px; }
@media (min-width: 640px) { .narrow { padding-inline: 24px; } }

/* The wordmark: the dot is a perfect amber circle on the baseline, never a glyph. */
.wordmark { text-decoration: none; color: var(--ink); font-weight: 600; font-size: 26px; letter-spacing: -0.01em; white-space: nowrap; }
.wordmark .dot { display: inline-block; width: 0.27em; height: 0.27em; border-radius: 50%; background: var(--amber); margin: 0 0.04em; vertical-align: baseline; }
.wordmark.small { font-size: 18px; }

.bar { border-bottom: 1px solid var(--rule); }
.bar-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 16px; padding-block: 16px; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; font-size: 15px; }
.nav a { text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.outline { border: 1px solid var(--ink); border-radius: 6px; padding: 0 18px; }
@media (max-width: 639px) { .nav .wide-only { display: none; } .bar-in { flex-wrap: nowrap; } }

.hero { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; padding-block: 64px 56px; }
@media (min-width: 900px) { .hero { padding-block: 88px 72px; } }
.hero-copy { flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.eyebrow { margin: 0; font-family: var(--mono); font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.eyebrow.on-ink { color: var(--on-ink-muted); }
h1 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(44px, 7vw, 80px); line-height: 1.02; letter-spacing: -0.02em; }
.hook { margin: 0; font-family: var(--serif); font-style: italic; font-size: clamp(22px, 2.6vw, 30px); line-height: 1.2; color: var(--body2); max-width: 22em; }
.lede { margin: 0; font-size: 20px; color: var(--body2); max-width: 32em; }
.actions { display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: center; font-size: 15px; }
.btn { text-decoration: none; background: var(--amber); color: var(--ink); font-weight: 600; border-radius: 6px; padding: 0 28px; min-height: 48px; display: inline-flex; align-items: center; font-size: 16px; }
.btn:hover { color: var(--ink); filter: brightness(1.06); }
.btn.light { background: var(--white); }
.btn.accent { background: var(--plan-blue); color: var(--white); }
.btn.accent:hover { background: var(--plan-blue-deep); color: var(--white); filter: none; }

.plan { flex: 1 1 340px; min-width: 0; max-width: 440px; margin: 0; }
.plan svg { width: 100%; height: auto; display: block; }
.plan-cap { margin-top: 8px; font-size: 13px; color: var(--muted); }
.pl-stage { fill: #EFE9DE; stroke: var(--ink); stroke-width: 1.5; }
.pl-kerb { stroke: #A99F8E; stroke-width: 30; fill: none; }
.pl-road { stroke: var(--white); stroke-width: 28; fill: none; }
.pl-kerb-c { fill: #A99F8E; } .pl-road-c { fill: var(--white); }
.pl-lot rect, .pl-lot polygon { fill: none; stroke: #A99F8E; stroke-width: 1; }
.pl-lot .mine { fill: var(--plan-blue); stroke: var(--plan-blue); stroke-width: 1.5; }
.pl-num { font-family: var(--mono); font-size: 9px; fill: var(--muted); text-anchor: middle; }
.pl-mine { fill: var(--white); letter-spacing: 0.08em; font-weight: 600; }
.pl-dim text { font-family: var(--mono); font-size: 8px; fill: #8C8476; text-anchor: middle; }
.pl-dim .on-blue { fill: var(--white); }
.pl-legend text { font-family: var(--mono); font-size: 9px; fill: var(--muted); letter-spacing: 0.06em; }
.pl-legend path { stroke: var(--muted); stroke-width: 1; fill: none; }
.pl-legend .pl-north { fill: var(--ink); stroke: none; }
.pl-peg { fill: var(--amber); stroke: var(--white); stroke-width: 2; }

.band { background: var(--band); border-block: 1px solid var(--rule); }
.dot-block { padding-block: 72px; display: flex; flex-direction: column; gap: 28px; }
.say { display: flex; flex-direction: column; gap: 6px; }
.dot-mark { display: inline-block; width: max(10px, 0.3em); height: max(10px, 0.3em); border-radius: 50%; background: var(--amber); margin-right: 0.35em; vertical-align: baseline; }
.say h2 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(28px, 4vw, 36px); line-height: 1.15; }
.sub { margin: 0; font-size: 19px; color: var(--body2); }
.doors { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.doors li { border-bottom: 1px solid var(--line); }
.door { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 58px; padding: 12px 4px; text-decoration: none; font-size: 18px; }
.door .arr { font-family: var(--mono); color: var(--muted); transition: transform .15s; }
.door:hover { color: var(--ink); background: rgba(193,123,58,.07); }
.door:hover .arr, .door:focus-visible .arr { color: #8A5526; transform: translateX(4px); }
@media (prefers-reduced-motion: reduce) { .door .arr { transition: none; } }

.how { padding-block: 80px; display: flex; flex-direction: column; gap: 40px; }
.how h2, .ink h2 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(32px, 5vw, 44px); line-height: 1.1; max-width: 16em; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; position: relative; }
.steps::before { content: ""; position: absolute; left: 0; right: 0; top: 7px; border-top: 1px solid var(--ink); }
.steps li { position: relative; padding-top: 32px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.peg { position: absolute; top: 0; left: 0; width: 15px; height: 15px; border-radius: 50%; border: 2px solid var(--amber); background: var(--white); }
.steps .now .peg { background: var(--amber); }
.num { font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: #8A5526; }
@media (max-width: 759px) {
  .steps { grid-template-columns: 1fr; gap: 28px; padding-left: 32px; }
  .steps::before { left: 7px; right: auto; top: 8px; bottom: 8px; border-top: 0; border-left: 1px solid var(--ink); }
  .steps li { padding-top: 0; }
  .peg { left: -32px; top: 2px; }
}
.steps h3 { margin: 0; font-size: 21px; font-weight: 600; }
.steps p { margin: 0; color: var(--body2); }

.ink { background: var(--ink); color: var(--white); }
.partners-in { padding-block: 72px; display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-end; justify-content: space-between; }
.partners-in > div:first-child { flex: 1 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.partner-links { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.todo { margin: 0; font-family: var(--mono); font-size: 13px; }

.foot { padding-block: 40px 56px; display: flex; flex-wrap: wrap; gap: 16px 24px; justify-content: space-between; align-items: center; font-size: 14px; color: var(--muted); }
.foot-nav { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.foot-nav a { color: var(--ink); min-height: 44px; display: inline-flex; align-items: center; }
.fine { flex: 1 1 100%; margin: 0; font-size: 13px; line-height: 1.6; max-width: 60em; }
.fine a { color: var(--muted); }

/* Collection notice page */
.doc { max-width: 680px; margin: 0 auto; padding: 56px 16px 80px; }
.doc h1 { font-size: clamp(36px, 6vw, 52px); margin-bottom: 24px; }
.doc h2 { font-family: var(--serif); font-weight: 400; font-size: 26px; margin: 36px 0 8px; }
.doc p, .doc li { color: var(--body2); }

/* Tap targets at least 44px; smaller drawing on phones. */
.actions a { min-height: 44px; display: inline-flex; align-items: center; }
.wordmark { display: inline-block; line-height: 44px; }
.partner-mail { margin: 0; font-size: 15px; color: var(--white); }
.partner-mail a { color: var(--white); min-height: 44px; display: inline-flex; align-items: center; }
.partner-mail a:hover { color: #E8C9A6; }
.after-doors { margin: 0; font-size: 17px; color: var(--body2); max-width: 36em; }
/* Phones: the plan shows as a short cropped strip (Mark/Hume), so Dot still comes soon. */
@media (max-width: 639px) { .hero { gap: 28px; padding-block: 40px 32px; } .plan { flex-basis: 100%; max-width: none; } .plan-art { height: 116px; overflow: hidden; border: 1px solid var(--rule); } .plan svg { height: auto; margin-top: calc(-75.9% + 58px); } }
/* Editorial type scale (addendum #4): desktop only. Phones keep the 25 Nov sizes so Dot still comes soon. */
@media (min-width: 900px) {
  .hero { gap: 56px; align-items: flex-end; }
  .hero-copy { flex-basis: 560px; }
  .hero h1 { font-size: clamp(84px, 8.4vw, 124px); line-height: 0.94; letter-spacing: -0.035em; }
  .plan { flex-basis: 420px; max-width: 520px; }
}
/* Living plan (addendum #2). The plan links to Dot. Lots tint on hover, and all lots tint when the link has keyboard focus. */
.plan-art { display: block; color: inherit; }
.plan-art:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 2px; }
.pl-lot rect, .pl-lot polygon { pointer-events: all; }
.pl-lot rect:not(.mine):hover, .pl-lot polygon:hover, .plan-art:focus-visible .pl-lot rect:not(.mine), .plan-art:focus-visible .pl-lot polygon { fill: rgba(193,123,58,.16); }
/* Motion only when the visitor hasn't asked for less. With reduced motion the plan is static, as before. */
@media (prefers-reduced-motion: no-preference) {
  .pl-stage, .pl-lot rect, .pl-lot polygon { stroke-dasharray: 2000; stroke-dashoffset: 2000; animation: pl-draw 1.4s cubic-bezier(.3,.6,.3,1) forwards; }
  .pl-lot rect:nth-of-type(3n+2), .pl-lot polygon { animation-delay: .15s; }
  .pl-lot rect:nth-of-type(3n) { animation-delay: .3s; }
  .pl-lot rect.mine { fill-opacity: 0; animation: pl-draw 1.4s cubic-bezier(.3,.6,.3,1) .3s forwards, pl-fill .5s ease-out 1.3s forwards; }
  .pl-kerb, .pl-road, .pl-kerb-c, .pl-road-c, .pl-num, .pl-dim, .pl-legend { opacity: 0; animation: pl-fade .8s ease-out .6s forwards; }
  .pl-num.pl-mine { animation-delay: 1.6s; }
  .pl-peg { transform-box: fill-box; transform-origin: 50% 100%; opacity: 0; animation: pl-drop .6s cubic-bezier(.3,1.4,.5,1) 1.7s forwards; }
  .pl-lot rect, .pl-lot polygon { transition: fill .2s; }
}
@keyframes pl-draw { to { stroke-dashoffset: 0; } }
@keyframes pl-fill { to { fill-opacity: 1; } }
@keyframes pl-fade { to { opacity: 1; } }
@keyframes pl-drop { 0% { opacity: 0; transform: translateY(-46px); } 30% { opacity: 1; } 100% { opacity: 1; transform: translateY(0); } }
/* Dot as a conversation (addendum #5): the greeting is a chat bubble from Dot, the doors are reply chips. Same links, same order. */
.say { flex-direction: row; align-items: flex-end; gap: 12px; }
.dot-mark.avatar { flex: none; width: 18px; height: 18px; margin: 0 0 14px; }
.bubbles { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; min-width: 0; }
.bubble { background: var(--white); border: 1px solid var(--rule); border-radius: 20px 20px 20px 6px; padding: 14px 20px; max-width: 30em; }
.say h2.bubble { font-size: clamp(24px, 3.4vw, 32px); }
.sub.bubble { padding-block: 10px; }
.doors.chips { border-top: 0; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; padding-left: 30px; }
.chips li { border: 0; max-width: 100%; }
.chips .door { min-height: 48px; padding: 10px 18px 10px 20px; border: 1.5px solid var(--ink); border-radius: 999px; background: var(--white); font-size: 17px; line-height: 1.3; gap: 10px; }
.chips .door:hover, .chips .door:focus-visible { background: var(--ink); color: var(--white); }
.chips .door:hover .arr, .chips .door:focus-visible .arr { color: var(--white); }
.chips .door:focus-visible { outline-offset: 3px; border-radius: 999px; }
@media (max-width: 639px) { .doors.chips { padding-left: 0; } .dot-block { gap: 22px; } }
/* The bubbles and chips appear as Dot's band scrolls into view, where the browser supports scroll-driven CSS. Elsewhere, and with reduced motion, they are simply there. */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .bubble, .chips li { animation: chat-in linear both; animation-timeline: view(); animation-range: entry 10% entry 60%; }
    .sub.bubble { animation-range: entry 25% entry 75%; }
    .chips li { animation-range: entry 30% entry 90%; }
  }
}
@keyframes chat-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
/* Phones: keep Dot's greeting on the first screen with the new hook line (Mark/Hume's 25 Nov rule). */
@media (max-width: 639px) {
  .hero-copy { gap: 18px; }
  .hook { font-size: 19px; }
  .lede { font-size: 18px; }
  .hero { padding-block: 28px 24px; gap: 20px; }
  .dot-block { padding-block: 32px 56px; }
}
