/* ==========================================================================
   Locating.uk — cartographic theme
   ========================================================================== */

:root {
    --ink: #16202e;
    --ink-2: #22354b;
    --paper: #f5efe3;
    --paper-2: #ebe1cc;
    --card: #fffaf1;
    --text: #1b2330;
    --text-soft: #5b6270;
    --line: #d8caad;
    --grid: rgba(22, 32, 46, 0.045);
    --signal: #e8553d;
    --signal-dark: #c63f29;
    --sage: #2f6b5c;
    --ochre: #c8902a;
    --on-dark: #f5efe3;
    --on-dark-soft: #b9bfc9;
    --shadow: var(--ink);

    --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
    --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;

    --radius: 6px;
    --max-width: 1140px;
}

@media (prefers-color-scheme: dark) {
    :root {
        --paper: #111924;
        --paper-2: #16202e;
        --card: #1a2534;
        --text: #efe7d8;
        --text-soft: #a9b1bf;
        --line: #2f3e53;
        --grid: rgba(245, 239, 227, 0.035);
        --signal: #f0684f;
        --signal-dark: #e8553d;
        --sage: #5fa893;
        --ochre: #e0ae4f;
        --shadow: #05080d;
    }
}

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

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

body {
    margin: 0;
    font-family: var(--sans);
    font-size: 1.0625rem;
    line-height: 1.65;
    color: var(--text);
    background-color: var(--paper);
    background-image:
        linear-gradient(var(--grid) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid) 1px, transparent 1px);
    background-size: 56px 56px;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--signal-dark); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--signal); }
@media (prefers-color-scheme: dark) { a { color: var(--signal); } }

h1, h2, h3 { font-family: var(--serif); font-weight: 700; line-height: 1.2; letter-spacing: -0.01em; }

.wrap { max-width: var(--max-width); margin: 0 auto; padding: 0 20px; }

.skip-link {
    position: absolute; left: -9999px; top: 8px;
    background: var(--ink); color: var(--on-dark); padding: 8px 14px; z-index: 10;
}
.skip-link:focus { left: 8px; }

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

/* Kicker: small mono label above headings, like a map sheet reference */
.kicker {
    display: inline-flex; align-items: center; gap: 10px;
    font-family: var(--mono); font-size: 0.75rem; font-weight: 600;
    letter-spacing: 0.18em; text-transform: uppercase;
    color: var(--signal-dark); margin: 0 0 10px;
}
.kicker::before { content: ""; width: 28px; height: 2px; background: currentColor; }
@media (prefers-color-scheme: dark) { .kicker { color: var(--signal); } }

/* ---------- Header ---------- */
.site-header {
    background: var(--paper);
    border-bottom: 2px solid var(--ink);
    position: sticky; top: 0; z-index: 5;
}
@media (prefers-color-scheme: dark) { .site-header { border-bottom-color: var(--line); } }
.header-inner {
    display: flex; align-items: center; justify-content: space-between;
    gap: 20px; min-height: 68px;
}
.logo {
    display: inline-flex; align-items: center; gap: 10px;
    font-family: var(--serif); font-size: 1.45rem; font-weight: 700;
    color: var(--text); text-decoration: none; white-space: nowrap;
}
.logo:hover { color: var(--text); }
.logo em { font-style: normal; color: var(--signal); }
.logo-mark { width: 30px; height: 30px; }
.logo-mark path { fill: var(--signal); }
.logo-mark circle { fill: var(--paper); }
.logo-light, .logo-light:hover { color: var(--on-dark); }
.logo-light .logo-mark circle { fill: var(--ink); }

.site-nav { display: flex; gap: 4px; }
.site-nav a {
    font-family: var(--mono); font-size: 0.8rem; font-weight: 600;
    letter-spacing: 0.08em; text-transform: uppercase;
    color: var(--text-soft); text-decoration: none;
    padding: 8px 12px; border-radius: 999px; white-space: nowrap;
}
.site-nav a:hover { color: var(--text); background: var(--paper-2); }
.site-nav a.active { color: var(--paper); background: var(--ink); }
@media (prefers-color-scheme: dark) { .site-nav a.active { color: var(--ink); background: var(--on-dark); } }

@media (max-width: 860px) {
    .header-inner { flex-direction: column; align-items: stretch; gap: 6px; padding-top: 10px; padding-bottom: 8px; }
    .site-nav {
        overflow-x: auto; scrollbar-width: none; margin: 0 -20px; padding: 0 20px 2px;
        -webkit-mask-image: linear-gradient(to right, #000 82%, transparent);
        mask-image: linear-gradient(to right, #000 82%, transparent);
    }
    .site-nav::-webkit-scrollbar { display: none; }
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    font-family: var(--mono); font-size: 0.85rem; font-weight: 700;
    letter-spacing: 0.06em; text-transform: uppercase; text-decoration: none;
    padding: 13px 22px; border-radius: var(--radius);
    border: 2px solid var(--ink); cursor: pointer;
    box-shadow: 4px 4px 0 var(--shadow);
    transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--shadow); }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--shadow); }
.btn-primary { background: var(--signal); color: #fff; }
.btn-primary:hover { color: #fff; }
.btn-light { background: #f5efe3; color: #16202e; }
.btn-light:hover { color: #16202e; }
.btn-sm { padding: 10px 18px; }

/* ---------- Hero ---------- */
.hero {
    position: relative; overflow: hidden;
    background: var(--ink); color: var(--on-dark);
    border-bottom: 2px solid var(--ink);
}
.hero::before {
    content: ""; position: absolute; inset: 0;
    background: url("/assets/img/topo-hero.svg") center / cover no-repeat;
    opacity: 0.22;
}
.hero-inner {
    position: relative;
    display: grid; grid-template-columns: 1.25fr 1fr; align-items: center; gap: 40px;
    padding-top: 84px; padding-bottom: 92px;
}
.hero .kicker { color: var(--ochre); }
.hero h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); margin: 0 0 18px; }
.hero h1 span { color: var(--signal); font-style: italic; }
.hero-lede { font-size: 1.15rem; color: var(--on-dark-soft); max-width: 560px; margin: 0 0 32px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero .btn { border-color: #f5efe3; box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.45); }

/* Radar: pulsing rings around a pin */
.radar { position: relative; width: min(360px, 100%); aspect-ratio: 1; margin: 0 auto; }
.radar::before, .radar::after {
    content: ""; position: absolute; border-radius: 50%;
    border: 1px dashed rgba(245, 239, 227, 0.25);
}
.radar::before { inset: 0; }
.radar::after { inset: 22%; }
.radar .ring {
    position: absolute; inset: 0; border-radius: 50%;
    border: 2px solid var(--signal); opacity: 0;
    animation: ping 3.6s ease-out infinite;
}
.radar .ring:nth-child(2) { animation-delay: 1.2s; }
.radar .ring:nth-child(3) { animation-delay: 2.4s; }
.radar-pin {
    position: absolute; left: 50%; top: 50%; width: 76px; height: 76px;
    transform: translate(-50%, -80%);
    filter: drop-shadow(0 8px 10px rgba(0, 0, 0, 0.4));
}
.radar-pin path { fill: var(--signal); }
.radar-pin circle { fill: var(--paper); }
.radar-dot {
    position: absolute; left: 50%; top: 50%; width: 14px; height: 6px;
    transform: translate(-50%, -50%); border-radius: 50%;
    background: rgba(0, 0, 0, 0.45);
}
.radar-label {
    position: absolute; left: 50%; bottom: 6%; transform: translateX(-50%);
    font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.16em;
    color: var(--ochre); background: rgba(22, 32, 46, 0.85);
    padding: 6px 12px; border: 1px solid rgba(245, 239, 227, 0.2); white-space: nowrap;
}
@keyframes ping {
    0% { transform: scale(0.18); opacity: 0.9; }
    80% { opacity: 0.08; }
    100% { transform: scale(1); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
    .radar .ring { animation: none; opacity: 0.35; }
    .radar .ring:nth-child(1) { transform: scale(0.4); }
    .radar .ring:nth-child(2) { transform: scale(0.7); }
    .radar .ring:nth-child(3) { transform: scale(1); }
    .btn, .card { transition: none; }
}

@media (max-width: 860px) {
    .hero-inner { grid-template-columns: 1fr; padding-top: 56px; padding-bottom: 64px; }
    .radar { width: 240px; }
}

/* ---------- Sections ---------- */
section { padding: 64px 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 28px; }
.section-heading { font-size: clamp(1.7rem, 3vw, 2.2rem); margin: 0; }
.section-sub { color: var(--text-soft); margin: 8px 0 0; max-width: 640px; }
.section-link {
    font-family: var(--mono); font-size: 0.8rem; font-weight: 700;
    letter-spacing: 0.08em; text-transform: uppercase; white-space: nowrap;
}
.section-tight { padding-top: 0; }

/* ---------- Legend tags ---------- */
.legend {
    display: inline-flex; align-items: center; gap: 8px;
    font-family: var(--mono); font-size: 0.7rem; font-weight: 700;
    letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-soft);
}
.legend::before {
    content: ""; width: 10px; height: 10px; border-radius: 50%;
    border: 2px solid var(--card); outline: 1.5px solid currentColor;
    background: currentColor;
}
.legend-devices { color: var(--signal-dark); }
.legend-people { color: var(--sage); }
.legend-post { color: var(--ochre); }
@media (prefers-color-scheme: dark) { .legend-devices { color: var(--signal); } }

/* ---------- Cards ---------- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 26px; }
.card {
    position: relative; display: flex; flex-direction: column;
    background: var(--card); border: 2px solid var(--ink); border-radius: var(--radius);
    overflow: hidden; box-shadow: 5px 5px 0 var(--shadow);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
@media (prefers-color-scheme: dark) { .card { border-color: var(--line); } }
.card:hover { transform: translate(-3px, -3px); box-shadow: 8px 8px 0 var(--shadow); }
.card-media { border-bottom: 2px solid var(--ink); aspect-ratio: 1200 / 630; overflow: hidden; background: var(--paper-2); }
@media (prefers-color-scheme: dark) { .card-media { border-bottom-color: var(--line); } }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.card:hover .card-media img { transform: scale(1.04); }
.card-body { display: flex; flex-direction: column; gap: 10px; padding: 20px 22px 22px; flex-grow: 1; }
.card h3 { font-size: 1.25rem; margin: 0; }
.card h3 a { color: var(--text); text-decoration: none; }
.card h3 a::after { content: ""; position: absolute; inset: 0; }
.card p { color: var(--text-soft); margin: 0; flex-grow: 1; font-size: 0.98rem; }
.card-meta { font-family: var(--mono); font-size: 0.75rem; color: var(--text-soft); letter-spacing: 0.04em; }
.card:focus-within { outline: 3px solid var(--signal); outline-offset: 3px; }
.card h3 a:focus-visible { outline: none; }

/* Featured card: wide layout for the lead post */
.card-feature { flex-direction: row; }
.card-feature .card-media { flex: 1.3; border-bottom: 0; border-right: 2px solid var(--ink); aspect-ratio: auto; min-height: 320px; }
@media (prefers-color-scheme: dark) { .card-feature .card-media { border-right-color: var(--line); } }
.card-feature .card-body { flex: 1; padding: 32px; justify-content: center; }
.card-feature h3 { font-size: 1.9rem; }
.card-feature p { flex-grow: 0; font-size: 1.05rem; }
@media (max-width: 760px) {
    .card-feature { flex-direction: column; }
    .card-feature .card-media { border-right: 0; border-bottom: 2px solid var(--ink); aspect-ratio: 1200 / 630; min-height: 0; }
    .card-feature .card-body { padding: 22px; }
    .card-feature h3 { font-size: 1.45rem; }
}

/* ---------- Home: route tiles and quick reference ---------- */
.routes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
@media (max-width: 760px) { .routes { grid-template-columns: 1fr; } }
.route {
    position: relative; display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: start;
    padding: 28px; border: 2px solid var(--ink); border-radius: var(--radius);
    background: var(--card); box-shadow: 5px 5px 0 var(--shadow);
    text-decoration: none; color: var(--text);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
@media (prefers-color-scheme: dark) { .route { border-color: var(--line); } }
.route:hover { transform: translate(-3px, -3px); box-shadow: 8px 8px 0 var(--shadow); color: var(--text); }
.route-icon {
    width: 64px; height: 64px; border-radius: 50%;
    display: grid; place-items: center; color: #fff;
}
.route-icon svg { width: 34px; height: 34px; fill: none; stroke: currentColor; stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; }
.route-devices .route-icon { background: var(--signal); }
.route-people .route-icon { background: var(--sage); }
.route h3 { font-size: 1.45rem; margin: 2px 0 6px; }
.route p { margin: 0 0 12px; color: var(--text-soft); }
.route-count { font-family: var(--mono); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--signal-dark); }
@media (prefers-color-scheme: dark) { .route-count { color: var(--signal); } }

.quickref {
    display: grid; grid-template-columns: repeat(4, 1fr);
    border: 2px solid var(--ink); border-radius: var(--radius); background: var(--card);
    box-shadow: 5px 5px 0 var(--shadow);
}
@media (prefers-color-scheme: dark) { .quickref { border-color: var(--line); } }
.quickref div { padding: 22px 24px; border-right: 1px dashed var(--line); }
.quickref div:last-child { border-right: 0; }
.quickref strong { display: block; font-family: var(--mono); font-size: 1.6rem; color: var(--signal-dark); letter-spacing: 0.02em; }
@media (prefers-color-scheme: dark) { .quickref strong { color: var(--signal); } }
.quickref span { font-size: 0.92rem; color: var(--text-soft); }
@media (max-width: 860px) {
    .quickref { grid-template-columns: repeat(2, 1fr); }
    .quickref div:nth-child(2) { border-right: 0; }
    .quickref div:nth-child(-n+2) { border-bottom: 1px dashed var(--line); }
}

/* ---------- Safety note ---------- */
.safety-banner {
    display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: start;
    background: var(--card); border: 2px solid var(--ink); border-left: 10px solid var(--signal);
    border-radius: var(--radius); padding: 22px 26px;
}
@media (prefers-color-scheme: dark) { .safety-banner { border-color: var(--line); border-left-color: var(--signal); } }
.safety-banner svg { width: 30px; height: 30px; fill: none; stroke: var(--signal); stroke-width: 6; stroke-linecap: round; }
.safety-banner strong { display: block; font-family: var(--serif); font-size: 1.2rem; margin-bottom: 4px; }
.safety-banner p { margin: 0; color: var(--text-soft); }

/* ---------- Article pages (guides and posts) ---------- */
.article-header { border-bottom: 2px solid var(--ink); background: var(--paper-2); }
@media (prefers-color-scheme: dark) { .article-header { border-bottom-color: var(--line); } }
.article-header-inner {
    display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center;
    padding-top: 48px; padding-bottom: 56px;
}
.article-header h1 { font-size: clamp(2rem, 4vw, 2.9rem); margin: 12px 0 14px; }
.article-header .summary { font-size: 1.15rem; color: var(--text-soft); margin: 0 0 18px; }
.article-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; font-family: var(--mono); font-size: 0.78rem; color: var(--text-soft); letter-spacing: 0.04em; }
.article-cover {
    border: 2px solid var(--ink); border-radius: var(--radius); overflow: hidden;
    box-shadow: 8px 8px 0 var(--shadow); background: var(--paper);
}
@media (prefers-color-scheme: dark) { .article-cover { border-color: var(--line); } }
.article-cover img { width: 100%; }
@media (max-width: 860px) {
    .article-header-inner { grid-template-columns: 1fr; gap: 28px; padding-top: 32px; padding-bottom: 40px; }
}

.breadcrumb { font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.06em; color: var(--text-soft); margin: 0; }
.breadcrumb a { color: var(--text-soft); }
.breadcrumb a:hover { color: var(--signal); }

.prose {
    max-width: 72ch; margin: 0 auto; padding: 56px 0 24px;
    font-size: 1.1rem;
}
.prose > :first-child { margin-top: 0; }
.prose > p:first-child { font-size: 1.22rem; line-height: 1.6; }
.prose h2 { font-size: 1.6rem; margin: 44px 0 14px; padding-top: 18px; border-top: 1px dashed var(--line); }
.prose p { margin: 0 0 18px; }
.prose ul { margin: 0 0 20px; padding-left: 22px; }
.prose ol { list-style: none; counter-reset: step; margin: 0 0 22px; padding: 0; }
.prose ol > li {
    counter-increment: step; position: relative;
    padding: 4px 0 12px 52px; margin-bottom: 4px;
}
.prose ol > li::before {
    content: counter(step);
    position: absolute; left: 0; top: 0;
    width: 34px; height: 34px; border-radius: 50%;
    display: grid; place-items: center;
    background: var(--ink); color: var(--paper);
    font-family: var(--mono); font-size: 0.85rem; font-weight: 700;
    box-shadow: 0 0 0 4px var(--paper), 0 0 0 6px var(--signal);
}
@media (prefers-color-scheme: dark) { .prose ol > li::before { background: var(--signal); color: var(--ink); box-shadow: 0 0 0 4px var(--paper), 0 0 0 6px var(--line); } }
.prose ol > li:not(:last-child)::after {
    content: ""; position: absolute; left: 16px; top: 42px; bottom: -6px;
    border-left: 2px dotted var(--line);
}
.prose strong { color: var(--text); }

/* Page shell for simple content pages (about, privacy, etc.) */
.page-head { padding: 56px 0 8px; }
.page-head h1 { font-size: clamp(2rem, 4vw, 2.8rem); margin: 0; }
.page-head .section-sub { font-size: 1.1rem; }
.panel {
    background: var(--card); border: 2px solid var(--ink); border-radius: var(--radius);
    box-shadow: 5px 5px 0 var(--shadow); padding: 34px 38px; margin: 28px 0 64px;
}
@media (prefers-color-scheme: dark) { .panel { border-color: var(--line); } }
.panel h2 { font-size: 1.35rem; margin: 30px 0 10px; }
.panel h2:first-child { margin-top: 0; }
.panel p { margin: 0 0 14px; }
.panel p:last-child { margin-bottom: 0; }
@media (max-width: 600px) { .panel { padding: 24px 22px; } }

/* ---------- Guides listing: search and filters ---------- */
.toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin: 28px 0 32px; }
.search-form { display: flex; gap: 10px; flex: 1 1 320px; max-width: 480px; }
.search-form input[type="search"] {
    flex-grow: 1; min-width: 0; padding: 11px 14px;
    border: 2px solid var(--ink); border-radius: var(--radius);
    background: var(--card); color: var(--text);
    font-size: 1rem; font-family: inherit;
}
@media (prefers-color-scheme: dark) { .search-form input[type="search"] { border-color: var(--line); } }
.search-form input[type="search"]:focus { outline: 3px solid var(--signal); outline-offset: 1px; }

.filter-pills { display: flex; gap: 8px; flex-wrap: wrap; }
.filter-pills a {
    font-family: var(--mono); font-size: 0.78rem; font-weight: 700;
    letter-spacing: 0.06em; text-transform: uppercase; text-decoration: none;
    padding: 8px 14px; border-radius: 999px;
    border: 2px solid var(--ink); color: var(--text); background: var(--card);
}
@media (prefers-color-scheme: dark) { .filter-pills a { border-color: var(--line); } }
.filter-pills a:hover { color: var(--text); background: var(--paper-2); }
.filter-pills a.active { background: var(--ink); color: var(--paper); }
@media (prefers-color-scheme: dark) { .filter-pills a.active { background: var(--on-dark); color: var(--ink); border-color: var(--on-dark); } }
.results-note { font-family: var(--mono); font-size: 0.85rem; color: var(--text-soft); margin: -12px 0 24px; }
.empty-state { grid-column: 1 / -1; padding: 40px; text-align: center; border: 2px dashed var(--line); border-radius: var(--radius); color: var(--text-soft); }

/* ---------- FAQ ---------- */
.faq-list { display: flex; flex-direction: column; gap: 14px; margin: 28px 0 64px; }
.faq-item {
    background: var(--card); border: 2px solid var(--ink); border-radius: var(--radius);
    box-shadow: 4px 4px 0 var(--shadow);
}
@media (prefers-color-scheme: dark) { .faq-item { border-color: var(--line); } }
.faq-item summary {
    display: flex; gap: 14px; align-items: center;
    padding: 18px 22px; cursor: pointer; list-style: none;
    font-family: var(--serif); font-size: 1.15rem; font-weight: 700;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::before {
    content: "+"; flex: none; width: 28px; height: 28px; border-radius: 50%;
    display: grid; place-items: center;
    background: var(--signal); color: #fff; font-family: var(--mono); font-size: 1rem;
}
.faq-item[open] summary::before { content: "\2212"; background: var(--ink); }
@media (prefers-color-scheme: dark) { .faq-item[open] summary::before { background: var(--sage); } }
.faq-item p { color: var(--text-soft); margin: 0; padding: 0 22px 20px 64px; }

/* ---------- Footer ---------- */
.site-footer {
    position: relative; overflow: hidden;
    background: var(--ink); color: var(--on-dark-soft);
    border-top: 2px solid var(--ink); margin-top: 32px;
}
.site-footer::before {
    content: ""; position: absolute; inset: 0;
    background: url("/assets/img/topo-hero.svg") right center / cover no-repeat;
    opacity: 0.08;
}
.footer-grid {
    position: relative;
    display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.4fr; gap: 36px;
    padding-top: 56px; padding-bottom: 40px;
}
.footer-brand p { font-size: 0.95rem; margin: 14px 0 0; max-width: 340px; }
.site-footer h2 {
    font-family: var(--mono); font-size: 0.75rem; font-weight: 700;
    letter-spacing: 0.16em; text-transform: uppercase; color: var(--ochre); margin: 6px 0 14px;
}
.footer-links { display: flex; flex-direction: column; gap: 8px; }
.footer-links a { color: var(--on-dark); text-decoration: none; }
.footer-links a:hover { color: var(--signal); text-decoration: underline; }
.footer-safety p { font-size: 0.95rem; margin: 0; }
.footer-safety strong { color: var(--on-dark); }
.footer-base {
    position: relative; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
    padding-top: 18px; padding-bottom: 26px;
    font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.08em;
}
.footer-base::before {
    content: ""; position: absolute; top: 0; left: 20px; right: 20px;
    border-top: 1px dashed rgba(245, 239, 227, 0.18);
}
@media (prefers-color-scheme: dark) { .site-footer { border-top-color: var(--line); } }
.footer-base .coords { color: var(--ochre); }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; gap: 28px; } }
