/* National atlas: for the UK-wide area. A paper map of the whole country: chart-paper background with faint grid squares, deep
   atlas blue, Fraunces headings, a black-and-white map scale bar under the header, square grid-reference numbers and a magenta
   route line like the tourist routes on a road atlas. Layered over site.css (body.theme-atlas). */
@font-face { font-family: "Fraunces"; src: url(../fonts/fraunces.woff2) format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Inter"; src: url(../fonts/inter.woff2) format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url(../fonts/plex-mono-500.woff2) format("woff2"); font-weight: 500; font-display: swap; }
:root {
  --bg: #f4f1e6; --surface: #fffdf6; --ink: #1c2a3a; --muted: #5d6670; --line: #ddd6c3; --accent: #1f5f99; --accent-2: #174a78; --on-accent: #fff;
  --atlas: #14304f; --atlas-ink: #e8eef4; --pink: #c2185b; --radius: 4px; --route: #c2185b;
  --serif: "Fraunces", Georgia, "Times New Roman", serif; --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  --grid: rgba(31,95,153,.07); /* the grid squares on the page */
  --scale: repeating-linear-gradient(90deg, #1c2a3a 0 48px, #fffdf6 48px 96px); /* map scale bar */
  --shadow: 0 1px 2px rgba(20,48,79,.06), 0 8px 24px rgba(20,48,79,.07);
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #0d1620; --surface: #142230; --ink: #e9eef2; --muted: #9eabb7; --line: #24384a; --accent: #7fb6e6; --accent-2: #a6cdef; --on-accent: #0b2036;
    --atlas: #08111a; --pink: #f06292; --route: #f06292; --grid: rgba(127,182,230,.06);
    --scale: repeating-linear-gradient(90deg, #e9eef2 0 48px, #08111a 48px 96px); --shadow: 0 1px 2px rgba(0,0,0,.4); }
}
body { font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 64px 64px; }
h1, h2, h3, .logo, .tx strong, .area-cards strong, .area-cards .aname, .near-cards strong, .group-h, .place .lead, .sources h2 { font-family: var(--serif); font-weight: 500; letter-spacing: -.005em; }
.logo { font-size: 1.1rem; font-weight: 600; color: #fff; }

/* header with a scale bar under it; hero; footer */
.site-head { background: var(--atlas); border-bottom: 0; backdrop-filter: none; -webkit-backdrop-filter: none; }
.site-head::after { content: ""; position: absolute; left: 0; right: 0; bottom: -5px; height: 5px; background: var(--scale);
  border-bottom: 1px solid var(--ink); pointer-events: none; }
.crumb a { color: var(--atlas-ink); }
.head-share, .head-me { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.head-share:hover, .head-me:hover { color: #fff; border-color: #fff; }
.hero, .hero.no-img { background: var(--atlas); }
.hero.no-img { background-image: repeating-radial-gradient(circle at 70% 40%, transparent 0 22px, rgba(255,255,255,.06) 22px 23px); } /* contour lines */
.hero-txt { background: linear-gradient(transparent, rgba(10,24,40,.85)); padding-bottom: 28px; }
.hero h1 { font-size: clamp(2rem, 6vw, 3.6rem); text-shadow: none; }
.hero h1::after { content: ""; display: block; width: 144px; height: 6px; margin-top: 14px; border: 1px solid #fff;
  background: repeating-linear-gradient(90deg, #fff 0 24px, transparent 24px 48px); } /* a little scale bar under the title */
.intro .prose { font-size: 1.08rem; }
.intro .prose.drop > p:first-child::first-letter { font-family: var(--serif); font-weight: 500; color: var(--accent);
  -webkit-initial-letter: 2; initial-letter: 2; margin-right: .14em; } /* the letter's top lines up with the first line, its foot with the second */
@supports not ((initial-letter: 2) or (-webkit-initial-letter: 2)) {
  .intro .prose.drop > p:first-child::first-letter { float: left; font-size: 3em; line-height: .8; padding: .1em .12em 0 0; margin: 0; }
}
.site-foot { position: relative; background: var(--atlas); color: #aebccb; border-top: 0; margin-top: 64px; }
.site-foot::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 5px; background: var(--scale); }
.site-foot a { color: var(--atlas-ink); }

/* list + controls: map-legend labels, grid-reference numbers */
.btn, .act, .chip, .tools input[type=search], .seg, .fbtn { border-radius: 4px; }
.seg button { border-radius: 2px; }
.seg button.on { background: var(--atlas); color: #fff; }
@media (prefers-color-scheme: dark) { .seg button.on { background: var(--accent); color: var(--on-accent); } }
.num { border-radius: 2px; font-family: var(--mono); font-weight: 500; font-size: .8rem; box-shadow: inset 0 0 0 2px rgba(255,255,255,.35); }
.th { border-radius: 2px; }
.tx strong { font-size: 1.1rem; line-height: 1.35; }
.tys { text-transform: uppercase; letter-spacing: .08em; font-size: .72rem; font-weight: 600; }
.group-h { font-size: 1.3rem; border-bottom: 2px dashed var(--c, var(--accent)); }
.fgh { text-transform: uppercase; letter-spacing: .1em; font-size: .72rem; font-weight: 700; color: var(--accent); }
.view-toggle { background: var(--atlas); color: #fff; box-shadow: 0 6px 24px rgba(0,0,0,.25), inset 0 -4px 0 var(--pink); }

/* home */
.home-hero h1 { font-size: clamp(2.2rem, 6vw, 3.4rem); }
.area-cards a { border-radius: 4px; box-shadow: none; border: 1px solid var(--line); }
.area-cards strong { font-size: 1.3rem; }

/* place page */
.place h1 { font-size: clamp(2rem, 5.5vw, 3rem); line-height: 1.2; }
.place .lead { font-size: 1.16rem; color: var(--ink); line-height: 1.55; }
.facts dt { text-transform: uppercase; letter-spacing: .08em; font-size: .72rem; font-weight: 700; color: var(--accent); }
.near-cards .img { border-radius: 2px; }
