/* irei.lv. The one bold element is the plate: a Rīga house plate, white
   condensed letters on enamel blue with a white rule inset from the edge.
   Everything else stays quiet: one column, plain lists, no cards. */

:root {
	--enamel: #1f3a5f;
	--enamel-deep: #172c48;
	--ink: #1c2530;
	--ink-soft: #4a5562;
	--paper: #ffffff;
	--mist: #e9edf0;
	--ochre: #c8922e;
	--measure: 40rem;
	--condensed: "Fira Sans Condensed", "Arial Narrow", sans-serif;
	--text: "Fira Sans", system-ui, sans-serif;
}

* { box-sizing: border-box; }

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

body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font: 400 1.0625rem/1.6 var(--text);
	font-kerning: normal;
}

.top, main, footer {
	max-width: calc(var(--measure) + 2rem);
	margin: 0 auto;
	padding: 0 1rem;
}

.top {
	display: flex;
	justify-content: flex-end;
	padding-top: 1rem;
}

.langs { display: flex; gap: 0.25rem; font: 600 0.9375rem/1 var(--condensed); }
.langs a, .langs span {
	padding: 0.4rem 0.55rem;
	border-radius: 4px;
	color: var(--enamel);
	text-decoration: none;
}
.langs a:hover { background: var(--mist); }
.langs span[aria-current] { background: var(--enamel); color: var(--paper); }

/* The plate. */
.hero { padding: 3.5rem 0 1rem; }

.plate {
	display: inline-flex;
	align-items: stretch;
	border-radius: 14px;
	background: var(--enamel);
	color: var(--paper);
	box-shadow: inset 0 0 0 7px var(--enamel), inset 0 0 0 9.5px var(--paper);
	padding: 1.75rem 1.6rem 1.25rem 1.8rem;
	gap: 1.4rem;
}

.plate-word {
	font: 700 clamp(4.25rem, 15vw, 7.5rem)/0.9 var(--condensed);
	letter-spacing: -0.01em;
}

.plate-city {
	align-self: flex-end;
	font: 600 clamp(1.1rem, 3.4vw, 1.5rem)/1 var(--condensed);
	padding-bottom: 0.35rem;
	border-left: 2px solid rgba(255, 255, 255, 0.55);
	padding-left: 1rem;
}

.lead {
	max-width: 32rem;
	margin: 1.75rem 0 0;
	font-size: 1.3125rem;
	line-height: 1.5;
}

/* The street: an ordinary Rīga residential street, wider than the text. */
.street { margin: 2rem 0 0.5rem; }
.street img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 8px; }
.street figcaption { margin-top: 0.5rem; color: var(--ink-soft); font-size: 0.875rem; }
@media (min-width: 60rem) { .street { margin-left: -6rem; margin-right: -6rem; } }

/* Sections. */
section { padding: 2.25rem 0 0.5rem; }

h2 {
	margin: 0 0 0.75rem;
	font: 700 1.75rem/1.15 var(--condensed);
	color: var(--enamel);
}

h3 {
	margin: 0 0 0.25rem;
	font: 700 1.25rem/1.2 var(--condensed);
}

p { margin: 0 0 1rem; max-width: var(--measure); }

a { color: var(--enamel); text-underline-offset: 0.18em; }

.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.25rem; }

.button {
	display: inline-block;
	padding: 0.7rem 1.15rem 0.75rem;
	border-radius: 6px;
	background: var(--enamel);
	color: var(--paper);
	font: 600 1.0625rem/1.2 var(--condensed);
	text-decoration: none;
	border: 2px solid var(--enamel);
}
.button:hover { background: var(--enamel-deep); border-color: var(--enamel-deep); }
.button.secondary { background: transparent; color: var(--enamel); }
.button.secondary:hover { background: var(--mist); }

/* The three steps: a real sequence, so numbered, joined by a line. */
.steps { list-style: none; counter-reset: step; margin: 1rem 0 0; padding: 0; }
.steps li {
	counter-increment: step;
	position: relative;
	padding: 0 0 1.5rem 3.25rem;
}
.steps li::before {
	content: counter(step);
	position: absolute;
	left: 0;
	top: -0.1rem;
	width: 2.1rem;
	height: 2.1rem;
	border-radius: 6px;
	background: var(--enamel);
	color: var(--paper);
	font: 700 1.25rem/2.1rem var(--condensed);
	text-align: center;
}
.steps li:not(:last-child)::after {
	content: "";
	position: absolute;
	left: 1.0rem;
	top: 2.3rem;
	bottom: 0.35rem;
	width: 2px;
	background: var(--mist);
}
.steps p { margin: 0; color: var(--ink-soft); }

/* What you know in advance: a list of terms, one row each. */
.facts { margin: 1rem 0 0; }
.facts div {
	display: grid;
	grid-template-columns: 11rem 1fr;
	gap: 1.25rem;
	padding: 0.85rem 0;
	border-top: 1px solid var(--mist);
}
.facts div:last-child { border-bottom: 1px solid var(--mist); }
.facts dt { font: 700 1.0625rem/1.4 var(--condensed); color: var(--enamel); }
.facts dd { margin: 0; }

.contact { padding-bottom: 2rem; }

/* While nothing is free: where else to look and what to check first. */
.elsewhere { margin-top: 1.75rem; padding: 1.1rem 1.25rem 0.4rem; background: var(--mist); border-radius: 8px; max-width: var(--measure); }
.elsewhere h3 { color: var(--enamel); }
.elsewhere ul { margin: 0.5rem 0 1rem; padding-left: 1.15rem; }
.elsewhere li { margin: 0 0 0.4rem; }

footer {
	padding-top: 1.5rem;
	padding-bottom: 2.5rem;
	color: var(--ink-soft);
	font-size: 0.9375rem;
}
footer p:first-child { border-top: 1px solid var(--mist); padding-top: 1.25rem; }
footer .credit { font-size: 0.8125rem; margin-top: 0.5rem; }
footer .credit a { color: inherit; }

/* Marked gaps while the contact details are not set. */
mark.todo {
	background: #fff1c9;
	color: var(--ink);
	padding: 0 0.25rem;
	border-radius: 3px;
	font: 500 0.9em/1 var(--text);
}
.button.is-missing { opacity: 0.85; cursor: default; }
.soon { color: var(--ink-soft); }

:focus-visible { outline: 3px solid var(--ochre); outline-offset: 2px; border-radius: 4px; }

@media (max-width: 34rem) {
	.hero { padding-top: 2.25rem; }
	.plate { padding: 1.3rem 1.2rem 1rem 1.35rem; gap: 1rem; }
	.lead { font-size: 1.1875rem; }
	.facts div { grid-template-columns: 1fr; gap: 0.15rem; }
}

/* The knowledge base. */
.kb-top { justify-content: space-between; align-items: center; }
.plate-small { padding: 0.55rem 0.8rem 0.55rem 0.9rem; gap: 0.6rem; border-radius: 9px; text-decoration: none; box-shadow: inset 0 0 0 4px var(--enamel), inset 0 0 0 5.5px var(--paper); }
.plate-small .plate-word { font-size: 1.75rem; }
.plate-small .plate-city { font-size: 0.875rem; padding-left: 0.55rem; padding-bottom: 0.15rem; }
.kb-index { font: 600 1rem/1 var(--condensed); color: var(--enamel); text-decoration: none; }
.kb-index:hover { text-decoration: underline; }
.kb { padding-top: 2rem; }
.kb h1 { margin: 0 0 0.5rem; font: 700 clamp(2rem, 6vw, 2.75rem)/1.1 var(--condensed); color: var(--enamel); }
.kb .updated { color: var(--ink-soft); font-size: 0.9375rem; }
.kb article h2 { margin-top: 2rem; }
.kb article h3 { margin-top: 1.25rem; }
.kb article ul, .kb article ol { max-width: var(--measure); padding-left: 1.2rem; }
.kb article li { margin-bottom: 0.4rem; }
.kb .table { overflow-x: auto; margin: 1rem 0 1.25rem; }
.kb table { border-collapse: collapse; font-size: 0.9375rem; min-width: 28rem; }
.kb th, .kb td { text-align: left; vertical-align: top; padding: 0.5rem 0.75rem 0.5rem 0; border-bottom: 1px solid var(--mist); }
.kb th { font: 700 0.9375rem/1.3 var(--condensed); color: var(--enamel); }
.kb-list { list-style: none; padding: 0; margin: 1.5rem 0 0; max-width: var(--measure); }
.kb-list li { padding: 1rem 0; border-top: 1px solid var(--mist); }
.kb-list li:last-child { border-bottom: 1px solid var(--mist); }
.kb-list a { font: 700 1.25rem/1.25 var(--condensed); }
.kb-list p { margin: 0.35rem 0 0; color: var(--ink-soft); }
.kb-links { padding-left: 1.2rem; max-width: var(--measure); }
.kb-links li { margin-bottom: 0.35rem; }
.top { align-items: center; gap: 1rem; }
.top-tips { margin-right: auto; font: 600 1rem/1 var(--condensed); color: var(--enamel); text-decoration: none; padding: 0.4rem 0; }
.top-tips:hover { text-decoration: underline; }
