@font-face {
	font-family: "Archivo";
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url("assets/fonts/archivo-latin-ext.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: "Archivo";
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url("assets/fonts/archivo-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;
}

:root {
	--ground: #F4F6F5;
	--ink: #0C1015;
	--ink-2: #434B55;
	--accent: #2438F0;
	--on-accent: #FFFFFF;

	--font: "Archivo", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--ease: cubic-bezier(0.16, 1, 0.3, 1);

	--gutter: clamp(20px, 4vw, 56px);
	--max: 1440px;
}

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

html {
	background: var(--ground);
	color: var(--ink);
	font-family: var(--font);
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
	scrollbar-color: var(--ink) var(--ground);
}

body {
	margin: 0;
	font-size: 1rem;
	line-height: 1.55;
	font-feature-settings: "tnum" 1;
	text-rendering: optimizeLegibility;
	-webkit-font-smoothing: antialiased;
}

::selection { background: var(--accent); color: var(--on-accent); }

a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }

:focus-visible {
	outline: 3px solid var(--accent);
	outline-offset: 3px;
}

h1, h2, h3, p, dl, dd, ul, table { margin: 0; padding: 0; }
ul { list-style: none; }

.skip {
	position: absolute;
	left: var(--gutter);
	top: -100px;
	background: var(--ink);
	color: var(--ground);
	padding: 10px 14px;
	z-index: 10;
}
.skip:focus { top: 12px; }

/* ---------- bar ---------- */

.bar {
	max-width: var(--max);
	margin: 0 auto;
	padding: 20px var(--gutter);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
}

.wordmark {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-weight: 650;
	font-size: 1.25rem;
	letter-spacing: -0.03em;
	text-decoration: none;
}
.wordmark-glyph { width: 22px; height: 22px; display: block; }

.bar-nav { display: flex; gap: clamp(18px, 3vw, 36px); font-size: 0.9375rem; }
.bar-nav a { text-decoration: none; padding: 6px 0; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size 0.35s var(--ease); }
.bar-nav a:hover { background-size: 100% 1px; }

/* ---------- hero ---------- */

.hero {
	max-width: var(--max);
	margin: 0 auto;
	padding: clamp(12px, 2.5vh, 32px) var(--gutter) 0;
}

.hero-head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 32px;
	margin-bottom: clamp(24px, 4vh, 40px);
}

.lede {
	margin-top: clamp(14px, 2.4vh, 22px);
	max-width: 62ch;
	font-size: 1.125rem;
	line-height: 1.45;
	color: var(--ink-2);
	text-wrap: pretty;
}

h1 {
	font-size: clamp(2.75rem, 6.4vw, 5rem);
	line-height: 0.96;
	font-weight: 620;
	letter-spacing: -0.035em;
	text-wrap: balance;
}

.titleblock {
	flex: 0 0 auto;
	width: min(100%, 300px);
	display: grid;
	grid-template-columns: 1fr 1fr;
	border-top: 1px solid var(--ink);
	border-left: 1px solid var(--ink);
	font-size: 0.9375rem;
	line-height: 1.3;
}
.titleblock > div {
	border-right: 1px solid var(--ink);
	border-bottom: 1px solid var(--ink);
	padding: 8px 12px 9px;
}
.titleblock dt { font-size: 0.75rem; color: var(--ink-2); }
.titleblock dd { font-weight: 560; }

/* ---------- sheet (the map) ---------- */

.sheet {
	display: grid;
	grid-template-columns: repeat(12, 1fr);
	padding: 0 1px 1px 0;
}

.cell { display: grid; margin: 0 -1px -1px 0; }
.cell-a { grid-column: 1 / 8; }
.cell-b { grid-column: 8 / 13; }
.cell-c { grid-column: 1 / 5; }
.cell-d { grid-column: 5 / 10; }
.cell-e { grid-column: 10 / 13; }

.parcel {
	--line: var(--ink);
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: 24px;
	min-height: clamp(180px, 23vh, 250px);
	padding: 18px 22px 18px;
	color: var(--ink);
	text-decoration: none;
	background-color: transparent;
	transition: background-color 0.3s var(--ease), color 0.3s var(--ease);
}

.parcel::before {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	background-image:
		linear-gradient(var(--line), var(--line)),
		linear-gradient(var(--line), var(--line)),
		linear-gradient(var(--line), var(--line)),
		linear-gradient(var(--line), var(--line));
	background-repeat: no-repeat;
	background-position: left top, left top, right bottom, right bottom;
	background-size: 100% 1px, 1px 100%, 100% 1px, 1px 100%;
}

a.parcel:hover,
a.parcel:focus-visible {
	background-color: var(--accent);
	color: var(--on-accent);
	--line: var(--ink);
}
a.parcel:focus-visible { outline-offset: -6px; outline-color: var(--ink); z-index: 1; }
a.parcel:hover:focus-visible { outline-color: var(--on-accent); }

.parcel-top {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 16px;
	font-size: 0.875rem;
	line-height: 1.2;
}
.parcel-no { color: var(--accent); font-weight: 600; transition: color 0.3s var(--ease); }
a.parcel:hover .parcel-no, a.parcel:focus-visible .parcel-no { color: var(--on-accent); }

.parcel-url { display: inline-flex; align-items: center; gap: 6px; }
.parcel-url svg {
	width: 11px; height: 11px;
	transition: transform 0.35s var(--ease);
}
a.parcel:hover .parcel-url svg, a.parcel:focus-visible .parcel-url svg { transform: translate(2px, -2px); }

.parcel-body { display: block; flex: 1; padding-top: 14px; }
.parcel-name {
	display: block;
	font-size: clamp(1.875rem, 3.1vw, 2.75rem);
	line-height: 1;
	font-weight: 620;
	letter-spacing: -0.03em;
	margin-bottom: 12px;
}
.parcel-line {
	display: block;
	max-width: 34ch;
	font-size: 1rem;
	line-height: 1.4;
	color: var(--ink-2);
	text-wrap: pretty;
	transition: color 0.3s var(--ease);
}
a.parcel:hover .parcel-line, a.parcel:focus-visible .parcel-line { color: var(--on-accent); }

.parcel-spec {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	padding-top: 10px;
	border-top: 1px solid color-mix(in srgb, currentColor 30%, transparent);
	font-size: 0.8125rem;
	line-height: 1.3;
}
.parcel-spec span:last-child { text-align: right; color: var(--ink-2); transition: color 0.3s var(--ease); }
a.parcel:hover .parcel-spec span:last-child, a.parcel:focus-visible .parcel-spec span:last-child { color: var(--on-accent); }

/* undeveloped land on the sheet: hatched, not a link */
.parcel--open {
	cursor: default;
	background-image: repeating-linear-gradient(135deg, color-mix(in srgb, var(--ink) 14%, transparent) 0 1px, transparent 1px 9px);
}
.parcel--open .parcel-no { color: var(--ink-2); }
.parcel--open .parcel-name { font-size: clamp(1.25rem, 1.8vw, 1.5rem); line-height: 1.15; letter-spacing: -0.02em; }

.sheet-foot {
	display: flex;
	align-items: center;
	gap: 28px;
	padding-top: 14px;
	font-size: 0.8125rem;
	color: var(--ink-2);
}
.scale { display: flex; align-items: center; gap: 10px; }
.scale svg { display: block; color: var(--ink); }
.north { display: flex; align-items: center; gap: 6px; }
.north svg { color: var(--ink); display: block; }
.note { margin-left: auto; }

/* ---------- opening motion: the sheet is surveyed once ---------- */

@media (prefers-reduced-motion: no-preference) {
	.parcel::before { animation: survey 0.9s var(--ease) backwards; }
	.cell-b .parcel::before { animation-delay: 0.08s; }
	.cell-c .parcel::before { animation-delay: 0.16s; }
	.cell-d .parcel::before { animation-delay: 0.24s; }
	.cell-e .parcel::before { animation-delay: 0.32s; }

	.parcel > * { animation: set 0.6s var(--ease) backwards; animation-delay: 0.45s; }
	.cell-b .parcel > * { animation-delay: 0.53s; }
	.cell-c .parcel > * { animation-delay: 0.61s; }
	.cell-d .parcel > * { animation-delay: 0.69s; }
	.cell-e .parcel > * { animation-delay: 0.77s; }
}

@keyframes survey {
	from { background-size: 0 1px, 1px 0, 0 1px, 1px 0; }
}
@keyframes set {
	from { opacity: 0; transform: translateY(6px); }
}

/* ---------- register ---------- */

.build, .register, .about {
	max-width: var(--max);
	margin: 0 auto;
	padding: clamp(72px, 12vh, 140px) var(--gutter) 0;
}

h2 {
	font-size: clamp(1.75rem, 3.4vw, 2.75rem);
	line-height: 1.05;
	font-weight: 620;
	letter-spacing: -0.03em;
	margin-bottom: clamp(24px, 4vh, 40px);
	text-wrap: balance;
}

table { width: 100%; border-collapse: collapse; }
thead th {
	text-align: left;
	font-size: 0.8125rem;
	font-weight: 500;
	color: var(--ink-2);
	padding: 0 20px 10px 0;
}
tbody tr { position: relative; border-top: 1px solid var(--ink); transition: background-color 0.25s var(--ease), color 0.25s var(--ease); }
tbody tr:last-child { border-bottom: 1px solid var(--ink); }
tbody th, tbody td {
	text-align: left;
	vertical-align: baseline;
	padding: 20px 20px 20px 0;
	font-weight: 400;
	line-height: 1.4;
}
tbody tr:not(.r-open):hover { background: var(--accent); color: var(--on-accent); }
tbody tr:hover td:first-child, tbody tr:hover th, tbody tr:hover td { padding-left: 0; }
.r-no { width: 8%; color: var(--accent); font-weight: 600; transition: color 0.25s var(--ease); }
tbody tr:not(.r-open):hover .r-no { color: var(--on-accent); }
tbody th { width: 20%; font-size: 1.25rem; font-weight: 600; letter-spacing: -0.02em; }
tbody th a { text-decoration: none; }
tbody th a::after { content: ""; position: absolute; inset: 0; }
tbody td:nth-child(3) { width: 44%; max-width: 46ch; }
tbody td:last-child { padding-right: 0; }
.r-open th, .r-open td { color: var(--ink-2); }
.r-open .r-no { color: var(--ink-2); }

/* ---------- build + about columns ---------- */

.build h2 { max-width: 30ch; }
.about h2 { max-width: 18ch; }

.cols {
	display: grid;
	border-top: 1px solid var(--ink);
}
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-4 { grid-template-columns: repeat(4, 1fr); }
.cols > div { padding: 22px 28px 0 0; }
.cols > div + div { padding-left: 24px; border-left: 1px solid var(--ink); }
.cols h3 { font-size: 1.25rem; font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; margin-bottom: 10px; }
.cols-4 h3 { font-size: clamp(1.5rem, 2.4vw, 2rem); margin-bottom: 14px; }
.cols p { color: var(--ink-2); max-width: 38ch; text-wrap: pretty; }

/* ---------- footer ---------- */

.foot {
	width: calc(100% - 2 * var(--gutter));
	max-width: calc(var(--max) - 2 * var(--gutter));
	margin: clamp(80px, 14vh, 160px) auto 0;
	padding: 28px 0 40px;
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 20px 48px;
	align-items: start;
	border-top: 1px solid var(--ink);
	font-size: 0.9375rem;
}

.foot-contact { font-size: clamp(1.25rem, 2.2vw, 1.75rem); line-height: 1.3; letter-spacing: -0.02em; font-weight: 560; text-wrap: balance; }
.foot-contact a { color: var(--accent); text-decoration-thickness: 1.5px; }
.foot-links { display: flex; flex-direction: column; gap: 6px; text-align: right; }
.foot-links a { text-decoration: none; background: linear-gradient(currentColor, currentColor) 100% 100% / 0 1px no-repeat; transition: background-size 0.35s var(--ease); }
.foot-links a:hover { background-size: 100% 1px; }
.foot-small { grid-column: 1 / -1; color: var(--ink-2); font-size: 0.8125rem; }

/* ---------- responsive ---------- */

@media (max-width: 1100px) {
	.cols-4 { grid-template-columns: 1fr 1fr; }
	.cols-4 > div:nth-child(3) { padding-left: 0; border-left: 0; }
	.cols-4 > div:nth-child(n+3) { border-top: 1px solid var(--ink); margin-top: 24px; }
}

@media (max-width: 960px) {
	.cell-a, .cell-b, .cell-c, .cell-d, .cell-e { grid-column: 1 / -1; }
	.parcel { min-height: 0; gap: 56px; }
	.hero-head { flex-direction: column; align-items: flex-start; }
	.titleblock { width: 100%; max-width: 360px; }
	.sheet-foot { flex-wrap: wrap; gap: 12px 24px; }
	.note { margin-left: 0; flex-basis: 100%; }
	.cols-3, .cols-4 { grid-template-columns: 1fr; }
	.cols > div, .cols > div + div, .cols-4 > div:nth-child(3) { padding: 20px 0 24px; border-left: 0; margin-top: 0; }
	.cols > div + div, .cols-4 > div:nth-child(n+3) { border-top: 1px solid var(--ink); margin-top: 0; }
}

@media (max-width: 720px) {
	.titleblock { display: none; }
	.parcel { gap: 14px; padding: 14px 16px; }
	.parcel-body { padding-top: 14px; }
	.lede { font-size: 1rem; }
	.parcel--open { min-height: 0; }
	.parcel-line { max-width: none; }
	thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
	table, tbody, tr, th, td { display: block; }
	tbody tr {
		display: grid;
		grid-template-columns: 3.2rem 1fr;
		padding: 18px 0;
	}
	tbody th, tbody td { width: auto !important; padding: 0 !important; }
	.r-no { grid-row: 1 / span 3; }
	tbody th { grid-column: 2; margin-bottom: 4px; }
	tbody td { grid-column: 2; }
	tbody td:last-child { color: var(--ink-2); font-size: 0.875rem; margin-top: 4px; }
	tbody tr:hover td:last-child { color: var(--on-accent); }
	.foot { grid-template-columns: 1fr; }
	.foot-links { text-align: left; }
}

@media (max-width: 480px) {
	.bar-nav a:nth-child(1) { display: none; }
	.parcel { padding: 16px 16px; }
}
