/*
  burrow's site. Warm earth below, sky above, nothing that moves but a slow
  fade as the page arrives.

  The face: Burrow Sans (fonts/burrow-sans.ttf, every weight), Josefin Sans
  with the room over and under its letters made even about its capitals, so
  words and figures center in a circle, a button or beside a tile in every
  browser (Safari keeps no CSS ascent-override); renamed, as the license asks
  of a font changed, by local/tools/burrow-sans.py. Its license is beside it
  (fonts/OFL.txt). Copyright 2010 The Josefin Sans Project Authors
  (https://github.com/ThomasJockin/JosefinSansFont-master), with Reserved Font
  Name "Josefin Sans". Licensed under the SIL Open Font License, Version 1.1.
*/
@font-face {
	font-family: "Burrow Sans";
	font-weight: 100 700;
	font-display: swap;
	src: url(fonts/burrow-sans.ttf) format("truetype");
}

:root {
	color-scheme: light dark;
	--ground: #f4ede0;
	--card: #fbf7ef;
	--ink: #3a2a1d;
	--quiet: #7d6a54;
	--line: #e3d7c3;
	--grass: #5f7d43;
	--amber: #b07a2a;
	--soil: #e9dcc6;
	--soil-deep: #e2d2b8;
	--grass-line: #a3b78a;
	/* the strip of sky over the nest, at the end of a summer day */
	--sky-high: #c4d3dc;
	--sky-low: #f3dcc2;
	--shell: #2d2621;
	--shell-edge: #3b322b;
	--shadow: 0 1px 2px rgba(58, 42, 29, 0.08), 0 10px 30px rgba(58, 42, 29, 0.10);
	/* the night band: the farm's moonlit blue */
	--night-high: #1a2232;
	--night-low: #34405a;
	--night-ink: #e4e8f0;
	--night-quiet: #a7b2c6;
}
@media (prefers-color-scheme: dark) {
	:root {
		--ground: #1f1711;
		--card: #2a2018;
		--ink: #efe4cf;
		--quiet: #b3a189;
		--line: #3f3022;
		--grass: #9dbb78;
		--amber: #ddb06a;
		--soil: #2b2017;
		--soil-deep: #261c14;
		--grass-line: #5f7548;
		--sky-high: #1f2738;
		--sky-low: #4a3f45;
		--shell: #15110e;
		--shell-edge: #2a221c;
		--shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 10px 30px rgba(0, 0, 0, 0.3);
		--night-high: #121825;
		--night-low: #263048;
	}
}

* { box-sizing: border-box; }
html { background: var(--ground); -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	color: var(--ink);
	background: var(--ground);
	font: 19px/1.6 "Burrow Sans", ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", sans-serif;
	-webkit-font-smoothing: antialiased;
	overflow-wrap: break-word;
	/* the page fades in, as everything on the device does */
	animation: arrive 1.6s ease-out both;
}
@keyframes arrive { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { body { animation: none; } }

img { display: block; max-width: 100%; height: auto; }
a { color: var(--grass); text-underline-offset: 3px; }
p { margin: 0 0 1em; }
em { font-style: italic; }
strong { font-weight: 600; }

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 16px; }
.text { max-width: 640px; }
.center { margin-left: auto; margin-right: auto; }

/* ---- The header: sky, a line of grass, then soil ---------------------- */
header {
	background: linear-gradient(to bottom, var(--sky-high), var(--sky-low));
	border-bottom: 3px solid var(--grass-line);
	padding: 72px 0 56px;
	text-align: center;
}
header img {
	width: 72px;
	height: 72px;
	margin: 0 auto 22px;
	border-radius: 16px;
	box-shadow: var(--shadow);
}
header h1 {
	margin: 0;
	font-size: 56px;
	font-weight: 300;
	letter-spacing: 0.22em;
	line-height: 1;
	/* the tracking after the last letter, matched before the first, so it
	   centers (given back as a negative margin, it ran past a phone's edge) */
	padding-left: 0.22em;
}
header p {
	margin: 18px 0 0;
	font-size: 20px;
	font-style: italic;
	font-weight: 300;
	color: var(--quiet);
}
@media (prefers-color-scheme: dark) {
	header p { color: var(--ink); opacity: 0.75; }
}

/* ---- The opening: the device, and what it is -------------------------- */
.opening {
	background: linear-gradient(to bottom, var(--soil), var(--ground) 70%);
	padding: 64px 0 24px;
}
.opening .wrap {
	display: grid;
	grid-template-columns: minmax(0, 440px) minmax(0, 1fr);
	gap: 56px;
	align-items: center;
}
.opening .lead { font-size: 23px; line-height: 1.5; }
@media (max-width: 820px) {
	.opening .wrap { grid-template-columns: minmax(0, 1fr); gap: 40px; }
	.opening .device { max-width: 440px; margin: 0 auto; width: 100%; }
}

/* The RG DS Plus, drawn plainly: two shells, a hinge between */
.device { margin: 0; }
.device .shell {
	background: var(--shell);
	border: 1px solid var(--shell-edge);
	border-radius: 22px;
	padding: 14px;
	box-shadow: var(--shadow);
}
.device .shell img { border-radius: 4px; width: 100%; }
.device .hinge {
	height: 10px;
	margin: -1px 14% 0;
	background: linear-gradient(to bottom, var(--shell), var(--shell-edge) 50%, var(--shell));
	border-radius: 2px;
}
.device figcaption { margin-top: 14px; text-align: center; }

/* ---- Sections ---------------------------------------------------------- */
section { padding: 56px 0; }
h2 {
	margin: 0 0 20px;
	font-size: 32px;
	font-weight: 300;
	letter-spacing: 0.02em;
	line-height: 1.2;
}
figcaption, .caption {
	font-size: 16px;
	line-height: 1.45;
	color: var(--quiet);
}

.shot {
	border-radius: 14px;
	box-shadow: var(--shadow);
	width: 100%;
	background: var(--soil);
}
figure { margin: 0; }
figure figcaption { margin-top: 12px; }

.pair {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 24px;
	margin-top: 36px;
}
@media (max-width: 720px) { .pair { grid-template-columns: minmax(0, 1fr); } }

.wide { margin-top: 36px; }

/* The four places */
.places {
	list-style: none;
	padding: 0;
	margin: 36px 0 0;
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 20px;
}
.places li { margin: 0; }
.places p { margin: 12px 0 0; font-size: 16px; line-height: 1.45; color: var(--quiet); }
.places strong { color: var(--ink); font-weight: 600; }
@media (max-width: 900px) { .places { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 440px) { .places { grid-template-columns: minmax(0, 1fr); } }

/* A list of small things */
.gifts {
	list-style: none;
	padding: 0;
	margin: 0 0 1em;
}
.gifts li { margin: 0 0 0.6em; padding-left: 22px; position: relative; }
.gifts li::before {
	/* a crumb */
	content: "";
	position: absolute;
	left: 2px;
	top: 0.55em;
	width: 8px;
	height: 7px;
	border-radius: 50% 45% 55% 40%;
	background: var(--amber);
	opacity: 0.7;
}

/* Side by side: words and a picture */
.beside {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 48px;
	align-items: center;
}
@media (max-width: 820px) { .beside { grid-template-columns: minmax(0, 1fr); gap: 32px; } }

/* ---- Night: the page goes moonlit for a while ------------------------- */
.night {
	background: linear-gradient(to bottom, var(--night-high), var(--night-low));
	color: var(--night-ink);
	padding: 72px 0;
}
.night figcaption { color: var(--night-quiet); }
.night .shot { background: var(--night-high); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35); }
.night a { color: var(--night-ink); }

/* ---- What it will never do --------------------------------------------- */
.never {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 20px;
	margin-top: 32px;
}
.never div {
	background: var(--card);
	border-radius: 16px;
	padding: 24px 24px 8px;
	box-shadow: var(--shadow);
}
.never h3 { margin: 0 0 10px; font-size: 21px; font-weight: 600; }
.never p { color: var(--quiet); font-size: 17px; }
@media (max-width: 640px) { .never { grid-template-columns: minmax(0, 1fr); } }

/* ---- Under the glass: the device --------------------------------------- */
.soil-band {
	background: linear-gradient(to bottom, var(--ground), var(--soil) 30%, var(--soil-deep));
}
.facts {
	margin: 28px 0 0;
	padding: 0;
	display: grid;
	grid-template-columns: max-content minmax(0, 1fr);
	gap: 10px 24px;
	font-size: 17px;
}
.facts dt { color: var(--quiet); }
.facts dd { margin: 0; }
@media (max-width: 520px) {
	.facts { grid-template-columns: minmax(0, 1fr); gap: 2px; }
	.facts dd { margin-bottom: 12px; }
}

/* ---- The end ------------------------------------------------------------ */
.why { text-align: center; padding: 80px 0 64px; }
.why .text { margin: 0 auto; }
.why .last {
	margin-top: 36px;
	font-size: 23px;
	font-style: italic;
	font-weight: 300;
}
footer {
	border-top: 3px solid var(--grass-line);
	background: var(--soil-deep);
	padding: 36px 0 48px;
	text-align: center;
	font-size: 15px;
	color: var(--quiet);
}
footer img { width: 36px; height: 36px; margin: 0 auto 14px; opacity: 0.9; }
footer p { margin: 0 0 6px; }

/* ---- Phones ------------------------------------------------------------- */
@media (max-width: 520px) {
	body { font-size: 18px; }
	header { padding: 52px 0 40px; }
	header img { width: 60px; height: 60px; border-radius: 14px; }
	header h1 { font-size: 42px; }
	header p { font-size: 18px; }
	.opening { padding-top: 40px; }
	.opening .lead { font-size: 20px; }
	section { padding: 44px 0; }
	h2 { font-size: 27px; }
	.device .shell { padding: 9px; border-radius: 16px; }
	.night { padding: 56px 0; }
	.why .last { font-size: 21px; }
}

/* A pair left with one picture: it sits alone, centered at a pair's width */
.pair.single { grid-template-columns: minmax(0, 1fr); max-width: 560px; margin-inline: auto; }

/* ---- Moving through the site: four pages, named plainly --------------- */
.site-nav {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 6px 22px;
	margin: 0 0 40px;
	padding: 0 16px;
	font-size: 17px;
	letter-spacing: 0.04em;
}
.site-nav a { color: var(--ink); text-decoration: none; opacity: 0.7; padding: 4px 2px; border-bottom: 1px solid transparent; }
.site-nav a:hover { opacity: 1; border-bottom-color: var(--grass-line); }
.site-nav a[aria-current="page"] { opacity: 1; border-bottom-color: var(--grass); }
header { padding-top: 28px; }
header.page { padding-bottom: 44px; }
header.page h1 { font-size: 44px; letter-spacing: 0.08em; padding-left: 0.08em; }
header.page img { width: 56px; height: 56px; border-radius: 13px; }
/* (each page's tile beside its name, the two centered together) */
header .title { display: flex; justify-content: center; align-items: center; gap: 18px; }
header .title img { margin: 0; }
header.page h1 { padding-left: 0; }
@media (max-width: 520px) {
	header .title { gap: 12px; }
	header.page img { width: 44px; height: 44px; border-radius: 10px; }
	header.page h1 { font-size: 34px; }
}

/* ---- The farm moving: short silent loops, its own frames --------------- */
video.shot, .device video { display: block; width: 100%; height: auto; }
.device .shell video { border-radius: 4px; background: #000; aspect-ratio: 4 / 3; }

/* ---- Where to go next --------------------------------------------------- */
.more {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
	margin-top: 32px;
}
.more a {
	display: block;
	background: var(--card);
	border-radius: 16px;
	box-shadow: var(--shadow);
	color: var(--ink);
	text-decoration: none;
	overflow: hidden;
	transition: transform 0.6s ease, box-shadow 0.6s ease;
}
.more a:hover { transform: translateY(-2px); }
.more img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.more div { padding: 18px 22px 10px; }
.more h3 { margin: 0 0 6px; font-size: 22px; font-weight: 600; }
.more p { color: var(--quiet); font-size: 17px; }
@media (max-width: 860px) { .more { grid-template-columns: minmax(0, 1fr); } }

/* ---- How to use it: the device, and each thing on it ------------------- */
.diagram { margin: 8px auto 0; max-width: 760px; }
.diagram svg { width: 100%; height: auto; display: block; overflow: visible; }
.diagram .body { fill: var(--shell); stroke: var(--shell-edge); }
.diagram .screen { fill: var(--soil-deep); }
.diagram .control { fill: var(--shell-edge); stroke: #5a4c40; stroke-width: 1.5; }
.diagram .control.lit { fill: var(--amber); stroke: var(--amber); }
.diagram .label { font: 600 15px "Burrow Sans", sans-serif; fill: var(--ink); }
.diagram .lead-line { stroke: var(--quiet); stroke-width: 1; fill: none; }
.diagram .num { font: 600 13px "Burrow Sans", sans-serif; fill: var(--card); text-anchor: middle; dominant-baseline: central; }
.diagram .dot { fill: var(--grass); }

.controls {
	list-style: none;
	padding: 0;
	margin: 40px 0 0;
	display: grid;
	gap: 22px;
	grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (max-width: 760px) { .controls { grid-template-columns: minmax(0, 1fr); } }
.controls li {
	background: var(--card);
	border-radius: 16px;
	box-shadow: var(--shadow);
	padding: 20px 22px 10px 66px;
	position: relative;
}
.controls .n {
	position: absolute;
	left: 20px;
	top: 20px;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background: var(--grass);
	color: var(--card);
	font-weight: 600;
	font-size: 15px;
	display: grid;
	place-items: center;
}
.controls h3 { margin: 2px 0 6px; font-size: 21px; font-weight: 600; }
.controls p { font-size: 17px; color: var(--quiet); }
.controls p.kid { color: var(--ink); font-size: 18px; }

.steps { counter-reset: step; list-style: none; padding: 0; margin: 0 0 1em; }
.steps li { counter-increment: step; position: relative; padding-left: 40px; margin-bottom: 0.7em; }
.steps li::before {
	content: counter(step);
	position: absolute;
	left: 0;
	top: 0.05em;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	/* (as the buttons' numbers have them, solid: one look for a number
	   in a circle across the site) */
	background: var(--grass);
	color: var(--card);
	font-size: 15px;
	font-weight: 600;
	display: grid;
	place-items: center;
}

/* (Burrow Sans's 1, as Josefin's, is drawn left of the middle of its own width, a 40th of
   its size, so centered by its box it sat left in its circle: moved back,
   wherever a 1 stands alone in one) */
.steps li:first-child::before { text-indent: 0.05em; }
.controls li:first-child .n { text-indent: 0.05em; }

/* ---- The field guide: entries, each a picture and a few lines ----------- */
.contents {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 10px;
	margin: 28px 0 0;
	padding: 0;
	list-style: none;
}
.contents a {
	display: inline-block;
	padding: 7px 16px 5px;
	border-radius: 999px;
	background: var(--card);
	box-shadow: var(--shadow);
	color: var(--ink);
	text-decoration: none;
	font-size: 16px;
}
.entries {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 22px;
	margin-top: 32px;
}
@media (max-width: 900px) { .entries { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .entries { grid-template-columns: minmax(0, 1fr); } }
.entry {
	background: var(--card);
	border-radius: 16px;
	box-shadow: var(--shadow);
	overflow: hidden;
	display: flex;
	flex-direction: column;
}
.entry img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.entry .about { padding: 16px 20px 8px; }
.entry h3 { margin: 0 0 2px; font-size: 21px; font-weight: 600; }
.entry .latin { margin: 0 0 10px; font-size: 15px; font-style: italic; color: var(--quiet); }
.entry p { font-size: 17px; }
.entry .when { font-size: 15px; color: var(--quiet); }
.entry details { margin: 0 0 12px; font-size: 16px; color: var(--quiet); }
.entry summary { cursor: pointer; color: var(--grass); font-size: 15px; letter-spacing: 0.02em; }
.entry details p { font-size: 16px; margin-top: 8px; }

.kid-note {
	background: var(--card);
	border-left: 4px solid var(--grass-line);
	border-radius: 0 12px 12px 0;
	padding: 14px 18px 4px;
	margin: 20px 0;
	font-size: 18px;
}

/* The life of one ant, egg to worker */
.life {
	list-style: none;
	padding: 0;
	margin: 32px 0 0;
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 16px;
}
@media (max-width: 720px) { .life { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.life li { background: var(--card); border-radius: 14px; box-shadow: var(--shadow); padding: 16px 16px 6px; text-align: center; }
.life svg { width: 84px; height: 84px; display: block; margin: 0 auto 8px; }
.life img { width: 120px; height: 120px; display: block; margin: 0 auto 10px; border-radius: 12px; box-shadow: var(--shadow); }
.life h3 { margin: 0 0 4px; font-size: 19px; font-weight: 600; }
.life p { font-size: 15px; color: var(--quiet); }

/* The nest, cut open: a drawing to touch */
.cutaway {
	display: grid;
	grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
	gap: 32px;
	align-items: start;
	margin-top: 32px;
}
@media (max-width: 820px) { .cutaway { grid-template-columns: minmax(0, 1fr); } }
.cutaway svg { width: 100%; height: auto; display: block; border-radius: 16px; box-shadow: var(--shadow); }
.cutaway .spot { cursor: pointer; }
.cutaway .spot circle.ring { fill: rgba(43, 29, 19, 0.62); stroke: rgba(255, 248, 228, 0.9); stroke-width: 2.5; transition: stroke-width 0.6s ease, fill 0.6s ease; }
.cutaway .spot:hover circle.ring, .cutaway .spot:focus circle.ring, .cutaway .spot[aria-pressed="true"] circle.ring { stroke-width: 4; fill: rgba(95, 125, 67, 0.9); }
.cutaway .spot:focus { outline: none; }
.cutaway .spot:focus-visible circle.ring { stroke: var(--amber); }
.cutaway .spot text { font: 600 28px "Burrow Sans", sans-serif; fill: #fff8e6; text-anchor: middle; dominant-baseline: central; pointer-events: none; }
.cutaway .told {
	background: var(--card);
	border-radius: 16px;
	box-shadow: var(--shadow);
	padding: 22px 24px 10px;
	min-height: 220px;
	transition: opacity 0.3s ease;
}
.cutaway .told h3 { margin: 0 0 8px; font-size: 22px; font-weight: 600; }
.cutaway .told .hint { color: var(--quiet); }
.cutaway .told.fading { opacity: 0; }

table.acts { width: 100%; border-collapse: collapse; margin-top: 24px; font-size: 17px; }
.acts th, .acts td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.acts th { font-weight: 600; width: 30%; }
.acts td { color: var(--quiet); }
@media (max-width: 560px) {
	.acts, .acts tbody, .acts tr, .acts th, .acts td { display: block; width: auto; }
	.acts th { border-bottom: 0; padding-bottom: 2px; }
	.acts td { padding-top: 0; }
}
.life svg.ant { color: var(--ink); }

/* ---- Books: covers on a shelf, each with a few lines and its download ---- */
.books {
	list-style: none;
	padding: 0;
	margin: 32px 0 0;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 22px;
}
@media (max-width: 860px) { .books { grid-template-columns: minmax(0, 1fr); } }
.book {
	display: grid;
	grid-template-columns: 150px minmax(0, 1fr);
	gap: 20px;
	align-items: start;
	background: var(--card);
	border-radius: 16px;
	box-shadow: var(--shadow);
	padding: 18px;
}
.book img { width: 150px; border-radius: 4px; box-shadow: 0 2px 8px rgba(58, 42, 29, 0.25); background: var(--soil); }
.book h3 { margin: 2px 0 2px; font-size: 21px; font-weight: 600; line-height: 1.25; }
.book p { font-size: 16px; line-height: 1.45; margin: 0 0 0.6em; }
.book .by { font-size: 15px; color: var(--quiet); margin-bottom: 10px; }
.book .note { font-style: italic; color: var(--quiet); }
.book .voice { font-size: 15px; color: var(--quiet); }
.book .get {
	display: inline-block;
	padding: 8px 16px 6px;
	border-radius: 999px;
	background: var(--grass);
	color: var(--card);
	text-decoration: none;
	font-weight: 600;
	font-size: 16px;
	transition: opacity 0.6s ease;
}
.book .get:hover { opacity: 0.85; }
.book .get-line { margin: 4px 0 2px; }
.book .size { font-size: 15px; color: var(--quiet); margin-left: 8px; white-space: nowrap; }
@media (max-width: 520px) {
	.book { grid-template-columns: 110px minmax(0, 1fr); gap: 14px; padding: 14px; }
	.book img { width: 110px; }
	.book h3 { font-size: 19px; }
}

/* ---- How to use it: the RG DS Plus drawn, every button on it to touch ---
   The drawing's own shades of the shell, lit a little from above. Its
   screens show the farm, which looks the same in either light. */
:root {
	--hh-hi: #4b3f35;
	--hh-mid: #2f2721;
	--hh-lo: #1f1915;
	--hh-face: #2a231d;
	--hh-line: #5a4a3d;
	--hh-key: #3b3129;
	--hh-key-hi: #5d4e41;
	--hh-well: #191411;
	--hh-glass: #100d0b;
	--hh-print: #eadfca;
	--hh-glow: #ffd88f;
	--hh-drop: rgba(58, 42, 29, 0.24);
}
@media (prefers-color-scheme: dark) {
	:root {
		--hh-hi: #5b4c40;
		--hh-mid: #3a3029;
		--hh-lo: #28201b;
		--hh-face: #342a23;
		--hh-line: #6e5d4e;
		--hh-key: #483d34;
		--hh-key-hi: #6b5b4d;
		--hh-well: #1b1612;
		--hh-glass: #0d0b09;
		--hh-print: #efe4cf;
		--hh-glow: #ffcf7a;
		--hh-drop: rgba(0, 0, 0, 0.45);
	}
}

.handheld {
	display: grid;
	grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
	gap: 40px;
	align-items: start;
	margin-top: 36px;
}
.handheld svg { display: block; width: 100%; height: auto; overflow: visible; filter: drop-shadow(0 12px 22px var(--hh-drop)); }
.handheld figcaption { margin-top: 10px; text-align: center; }

.handheld .hh-hi { stop-color: var(--hh-hi); }
.handheld .hh-mid { stop-color: var(--hh-mid); }
.handheld .hh-lo { stop-color: var(--hh-lo); }
.handheld .hh-well { stop-color: var(--hh-well); }
.handheld .hh-key-hi { stop-color: var(--hh-key-hi); }
.handheld .hh-key { stop-color: var(--hh-key); stroke: var(--hh-lo); stroke-width: 1.2; }
.handheld .hh-body { stroke: var(--hh-line); stroke-width: 1.5; }
.handheld .hh-edge { fill: var(--hh-lo); stroke: var(--hh-line); stroke-width: 1.5; }
.handheld .hh-face { fill: var(--hh-face); opacity: 0.55; }
.handheld .hh-rim { fill: var(--hh-mid); stroke: var(--hh-line); stroke-width: 1.2; }
.handheld .hh-window { fill: var(--hh-glass); stroke: var(--hh-lo); stroke-width: 1; }
.handheld .hh-grille, .handheld .hh-hole, .handheld .hh-notch, .handheld .hh-slot { fill: var(--hh-well); }
.handheld .hh-bump { fill: var(--hh-lo); }
.handheld .hh-port { fill: var(--hh-glass); stroke: var(--hh-line); stroke-width: 1.2; }
.handheld .hh-tongue { fill: var(--hh-key-hi); }
.handheld .hh-joint { fill: none; stroke: var(--hh-lo); stroke-width: 1.5; }
.handheld .hh-recess { stroke: var(--hh-line); stroke-width: 1.2; }
.handheld .hh-ring { fill: none; stroke: var(--hh-lo); stroke-width: 2; }
.handheld .hh-dish { fill: none; stroke: var(--hh-lo); stroke-width: 1.2; opacity: 0.6; }
.handheld .hh-dpad-well { fill: var(--hh-well); stroke: var(--hh-well); stroke-width: 7; stroke-linejoin: round; }
.handheld .hh-mark { fill: none; stroke: var(--hh-print); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; opacity: 0.55; }
.handheld .hh-letter { font: 600 17px "Burrow Sans", sans-serif; fill: var(--hh-print); text-anchor: middle; dominant-baseline: central; opacity: 0.85; pointer-events: none; }
.handheld .hh-label text { font: 600 19px "Burrow Sans", sans-serif; fill: var(--quiet); text-anchor: middle; letter-spacing: 0.04em; }
.handheld .hh-led { fill: #6b675a; stroke: var(--hh-lo); stroke-width: 1; transition: fill 0.6s ease; }
.handheld .hh-led-amber { fill: #7d6646; }

/* A spot gathers a soft light round it, under a finger, a pointer or the
   keyboard, and keeps it while its words are told */
.handheld .spot { cursor: pointer; }
.handheld .spot:focus { outline: none; }
.handheld .halo { fill: var(--hh-glow); filter: url(#hh-soft); opacity: 0; transition: opacity 0.6s ease; pointer-events: none; }
.handheld .halo-line { fill: none; stroke: var(--hh-glow); stroke-width: 12; }
.handheld .hit { fill: transparent; stroke: none; }
.handheld .spot:focus-visible .halo { opacity: 1; }
.handheld .spot[aria-pressed="true"] .halo { opacity: 0.85; }
.handheld .spot:focus-visible .hit { stroke: var(--amber); stroke-width: 2.5; }
.handheld .spot[data-spot="lights"]:focus-visible .hh-led-amber,
.handheld .spot[data-spot="lights"][aria-pressed="true"] .hh-led-amber { fill: #f3b65c; }
@media (hover: hover) {
	.handheld .spot:hover .halo { opacity: 1; }
	.handheld .spot[data-spot="lights"]:hover .hh-led-amber { fill: #f3b65c; }
}

.handheld .told {
	position: sticky;
	top: 24px;
	background: var(--card);
	border-radius: 16px;
	box-shadow: var(--shadow);
	padding: 22px 24px 10px;
	min-height: 250px;
	transition: opacity 0.3s ease, min-height 0.5s ease;
}
.handheld .told-now { display: flow-root; }
.handheld .told.fading { opacity: 0; }
.handheld .told h3 { margin: 0 0 4px; font-size: 22px; font-weight: 600; }
.handheld .told p { font-size: 17px; color: var(--quiet); }
.handheld .told p.where { margin-bottom: 12px; font-size: 15px; font-style: italic; }
.handheld .told p.kid { font-size: 18px; color: var(--ink); }
@media (max-width: 820px) {
	.handheld { grid-template-columns: minmax(0, 1fr); gap: 24px; }
	.handheld figure { width: 100%; max-width: 520px; margin: 0 auto; }
	.handheld .told { position: static; min-height: 0; }
}
@media (prefers-reduced-motion: reduce) {
	.handheld .halo, .handheld .told, .handheld .hh-led { transition: none; }
}
