/* Night is the default: most of these animals were photographed after dark. */
:root {
  --bg: #0a0c0b;
  --panel: #111513;
  --line: rgba(226, 222, 210, 0.14);
  --line-strong: rgba(226, 222, 210, 0.42);
  --text: #e4e0d4;
  --dim: #8f9589;
  --key: #7fa5c6;
  --accent: #dba24c;
  --mat: #050606;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", "Noto Serif", Georgia, serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, "Roboto Mono", "DejaVu Sans Mono", Consolas, monospace;
  --gutter: clamp(18px, 4.5vw, 44px);
  color-scheme: dark;
}
:root[data-theme="day"] {
  --bg: #f2eddf;
  --panel: #e8e1cd;
  --line: rgba(29, 27, 21, 0.16);
  --line-strong: rgba(29, 27, 21, 0.6);
  --text: #1d1b15;
  --dim: #5f5a4a;
  --key: #2c5d85;
  --accent: #8d5a17;
  --mat: #0a0c0b;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 3.5rem; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--serif); font-size: 1.0625rem; line-height: 1.6;
  transition: background-color 0.35s, color 0.35s;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 0.18em; }
h1, h2 { font-weight: 500; line-height: 1.05; margin: 0; text-wrap: balance; }
h2 { font-size: clamp(2rem, 7.2vw, 3.6rem); letter-spacing: -0.02em; margin-bottom: 0.5em; }
p { margin: 0 0 1em; max-width: 60ch; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.wrap { max-width: 1240px; margin: 0 auto; padding: 0 var(--gutter); }
main > section { padding: clamp(4rem, 11vw, 8rem) 0 0; }
main > section:last-child { padding-bottom: clamp(4rem, 11vw, 8rem); }

/* Top bar */
.bar {
  position: fixed; z-index: 20; top: 0; left: 0; right: 0;
  display: flex; align-items: center; gap: 1.1rem;
  padding: calc(0.55rem + env(safe-area-inset-top)) var(--gutter) 0.55rem;
  font-family: var(--mono); font-size: 0.74rem;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.bar a { text-decoration: none; color: var(--dim); padding: 0.4rem 0; }
.bar a:hover { color: var(--text); }
.bar .who { color: var(--text); margin-right: auto; }
.theme { background: none; border: 1px solid var(--line-strong); padding: 0.3rem 0.6rem; cursor: pointer; }
.theme:hover { border-color: var(--accent); color: var(--accent); }
[data-theme="night"] .t-day, [data-theme="day"] .t-night { display: none; }

/* Hero: always dark, whatever the theme */
.hero { position: relative; height: 100svh; min-height: 540px; overflow: hidden; background: #050606; color: #e4e0d4; }
.hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 53% 40%; animation: settle 1.6s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(5, 6, 6, 0.96) 0%, rgba(5, 6, 6, 0.6) 30%, rgba(5, 6, 6, 0) 60%),
              linear-gradient(to bottom, rgba(5, 6, 6, 0.55) 0%, rgba(5, 6, 6, 0) 22%);
}
.readout {
  position: absolute; z-index: 1; top: calc(3.6rem + env(safe-area-inset-top)); left: var(--gutter); right: var(--gutter);
  margin: 0; max-width: none; font-family: var(--mono); font-size: 0.7rem; line-height: 1.5; color: rgba(228, 224, 212, 0.78);
}
.hero-text { position: absolute; z-index: 1; left: var(--gutter); right: var(--gutter); bottom: clamp(1.75rem, 6vh, 4rem); animation: rise 0.9s 0.25s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.hero h1 { font-size: clamp(3.4rem, 15.5vw, 9rem); letter-spacing: -0.035em; line-height: 0.9; }
.lede { font-size: clamp(1.15rem, 2.7vw, 1.6rem); line-height: 1.38; max-width: 33ch; margin: 1rem 0 1.4rem; }
.hero-record { font-family: var(--mono); font-size: 0.72rem; color: #dba24c; margin: 0; }
@keyframes settle { from { transform: scale(1.06); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes rise { from { transform: translateY(14px); opacity: 0; } to { transform: none; opacity: 1; } }

/* Ruled key/value sheets: the same structure for the ask, the skills, the CV and the contact details */
.sheet { margin: 2.2rem 0; border-top: 1px solid var(--line-strong); max-width: 46rem; }
.sheet > div { display: grid; grid-template-columns: 7.2rem 1fr; gap: 0.9rem; padding: 0.85rem 0; border-bottom: 1px solid var(--line); }
.sheet dt { font-family: var(--mono); font-size: 0.74rem; color: var(--key); padding-top: 0.42em; }
.sheet dd { margin: 0; }
.sheet + h2 { margin-top: clamp(3.5rem, 9vw, 6rem); }
.sheet a, .about p a { color: var(--accent); }
.big { font-size: clamp(1.4rem, 4.6vw, 2.2rem); line-height: 1.25; max-width: 26ch; letter-spacing: -0.01em; }
.button {
  display: inline-block; font-family: var(--mono); font-size: 0.85rem; text-decoration: none;
  background: var(--accent); color: var(--bg); padding: 0.95em 1.5em; margin-top: 0.4rem;
}
.button:hover { background: var(--text); }

/* Galleries */
.stat { font-family: var(--mono); font-size: 0.74rem; color: var(--key); margin-bottom: 1.4rem; }
.intro { color: var(--dim); }
.open { font-family: var(--mono); font-size: 0.86em; color: var(--accent); }
.chip-inline { font-family: var(--mono); font-size: 0.8em; border: 1px solid var(--line-strong); padding: 0.05em 0.4em; color: var(--text); }
/* Mosaic: rows of unequal tiles. Each tile's width follows its photograph's aspect ratio (--ar),
   so every row is filled edge to edge and all tiles in a row share one height.
   A tile alone in its row takes the full width (very tall ones are cropped to the screen height). */
.grid { --row-h: 230px; --gap: 4px; display: flex; flex-wrap: wrap; align-items: flex-start; gap: var(--gap); padding: 0 4px; margin-top: clamp(1.6rem, 5vw, 3rem); }
figure { margin: 0; min-width: 0; }
.tile { position: relative; flex: calc(var(--ar) * 100) 1 calc(var(--ar) * var(--row-h)); aspect-ratio: var(--ar); max-height: 88vh; background: var(--mat); overflow: hidden; }
.tile.lead { flex-basis: 100%; }
.tile.small { flex-basis: calc(var(--ar) * var(--row-h) * 0.48); }
.row-break { flex: 0 0 100%; height: 0; margin-bottom: calc(-1 * var(--gap)); }
.tile .zoom { display: block; width: 100%; height: 100%; cursor: zoom-in; }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1); }
.tile:hover img { transform: scale(1.03); }
.tile figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; pointer-events: none;
  padding: 1.6rem 0.6rem 0.5rem; color: #e4e0d4;
  background: linear-gradient(to top, rgba(5, 6, 6, 0.86), rgba(5, 6, 6, 0));
}
.tile .taxon { margin: 0; font-size: 0.86rem; line-height: 1.2; text-wrap: balance; }
.tile .note { display: none; }
.tile.plate figcaption { font-family: var(--mono); font-size: 0.62rem; line-height: 1.35; }
.help {
  pointer-events: auto; cursor: pointer; display: inline-block; margin-top: 0.4rem;
  font-family: var(--mono); font-size: 0.68rem; color: #050606; background: #dba24c; border: 0; padding: 0.6em 0.85em;
  touch-action: manipulation;
}
.help:hover { background: #e4e0d4; }
.lightbox-record .help { display: none; }

/* The 1:1 button is a generous tap target; the visible chip is the span inside it. */
.chip {
  position: absolute; right: 0; top: 0; z-index: 1;
  min-width: 52px; min-height: 46px; padding: 0.4rem 0.4rem 0 0;
  display: flex; align-items: flex-start; justify-content: flex-end;
  background: none; border: 0; cursor: zoom-in; touch-action: manipulation;
}
.chip span {
  font-family: var(--mono); font-size: 0.66rem; color: #e4e0d4;
  background: rgba(5, 6, 6, 0.62); padding: 0.5em 0.7em;
  --c: rgba(228, 224, 212, 0.9);
  background-image:
    linear-gradient(var(--c), var(--c)), linear-gradient(var(--c), var(--c)),
    linear-gradient(var(--c), var(--c)), linear-gradient(var(--c), var(--c)),
    linear-gradient(var(--c), var(--c)), linear-gradient(var(--c), var(--c)),
    linear-gradient(var(--c), var(--c)), linear-gradient(var(--c), var(--c));
  background-repeat: no-repeat;
  background-size: 7px 1px, 1px 7px, 7px 1px, 1px 7px, 7px 1px, 1px 7px, 7px 1px, 1px 7px;
  background-position: 0 0, 0 0, 100% 0, 100% 0, 0 100%, 0 100%, 100% 100%, 100% 100%;
}
.chip:hover span { color: #dba24c; --c: #dba24c; }

/* Record fields (shown in the viewer) */
.fields { margin: 0.7rem 0 0; font-family: var(--mono); font-size: 0.72rem; line-height: 1.5; border-top: 1px solid var(--line); }
.fields > div { display: grid; grid-template-columns: 8.2em 1fr; gap: 0.6rem; padding: 0.32rem 0; border-bottom: 1px solid var(--line); }
.fields dt { color: var(--key); }
.fields dd { margin: 0; overflow-wrap: anywhere; }

@media (min-width: 760px) {
  .grid { --row-h: 340px; --gap: 6px; max-width: 1240px; margin-left: auto; margin-right: auto; padding: 0 var(--gutter); }
  .tile .taxon { font-size: 1rem; }
  .tile figcaption { padding: 2.2rem 0.8rem 0.65rem; }
  .tile.plate figcaption { font-size: 0.7rem; }
  .sheet > div { grid-template-columns: 9rem 1fr; }
}
@media (min-width: 1100px) {
  .grid { --row-h: 340px; }
}

/* The rare find gets a panel of its own */
.find { margin-top: clamp(4rem, 11vw, 8rem); padding-bottom: clamp(3rem, 8vw, 5rem) !important; background: var(--panel); border-top: 1px solid var(--line-strong); border-bottom: 1px solid var(--line); }
.find h2 { color: var(--accent); }

/* Landscape strip */
.landscapes h2 { font-size: clamp(1.4rem, 4vw, 2rem); font-style: italic; color: var(--dim); }
.strip { display: flex; gap: 0.75rem; overflow-x: auto; padding: 0 var(--gutter) 1rem; scroll-snap-type: x proximity; }
.strip-item { flex: 0 0 auto; scroll-snap-align: start; }
.strip-item img { height: clamp(220px, 46vw, 440px); width: auto; }
.strip-item figcaption { font-family: var(--mono); font-size: 0.72rem; color: var(--dim); padding: 0.7rem 0 0; }

.contact { background: var(--panel); border-top: 1px solid var(--line-strong); }
.contact .sheet dd { font-family: var(--mono); font-size: 0.95rem; }

footer { padding: 2.5rem 0 calc(3rem + env(safe-area-inset-bottom)); font-family: var(--mono); font-size: 0.72rem; line-height: 1.6; color: var(--dim); border-top: 1px solid var(--line); }
footer p { max-width: 62ch; }

/* Draft markers: remove once the real content is in */
.todo { outline: 2px dashed #d0503c; outline-offset: 2px; background: rgba(208, 80, 60, 0.14); }

/* Lightbox with 1:1 zoom */
.lightbox {
  border: 0; padding: 0; margin: 0; width: 100vw; height: 100dvh; max-width: none; max-height: none;
  background: #050606; color: #e4e0d4; overflow: hidden;
  --line: rgba(226, 222, 210, 0.14); --key: #7fa5c6; --dim: #8f9589; --accent: #dba24c;
}
.lightbox[open] { display: grid; grid-template-rows: auto 1fr auto; }
.lightbox::backdrop { background: #050606; }
.tools { display: flex; gap: 0.5rem; padding: calc(0.6rem + env(safe-area-inset-top)) 0.75rem 0.6rem; font-family: var(--mono); font-size: 0.74rem; z-index: 2; }
.tools button { background: none; border: 1px solid rgba(226, 222, 210, 0.35); padding: 0.55em 0.85em; cursor: pointer; }
.tools button:hover { border-color: #dba24c; color: #dba24c; }
.tools .one { margin-left: auto; }
.tools .one[aria-pressed="true"] { background: #dba24c; border-color: #dba24c; color: #050606; }
.tools .one[hidden] { display: none; }
.stage { position: relative; min-height: 0; overflow: hidden; display: grid; place-items: center; }
.frame { position: relative; flex: none; transition: transform 0.55s cubic-bezier(0.3, 0.7, 0.1, 1); will-change: transform; }
.frame .full { width: 100%; height: 100%; }
.frame .detail { position: absolute; opacity: 0; transition: opacity 0.3s; }
.frame .detail.ready { opacity: 1; }
.region { position: absolute; border: 1px solid rgba(219, 162, 76, 0.95); box-shadow: 0 0 0 1px rgba(5, 6, 6, 0.5); pointer-events: none; transition: opacity 0.3s; }
.zoomed .region { opacity: 0; }
.has-detail .frame { cursor: zoom-in; }
.zoomed .frame { cursor: zoom-out; }
.lightbox-record { padding: 0.7rem var(--gutter) calc(0.9rem + env(safe-area-inset-bottom)); max-height: 38dvh; overflow: auto; z-index: 2; background: #050606; }
.lightbox-record .taxon { font-size: 1.25rem; margin: 0; }
.lightbox-record .note { color: var(--dim); margin: 0; font-size: 0.95rem; }
.lightbox-record .fields { max-width: 34rem; }
.lightbox-record .plain { font-family: var(--mono); font-size: 0.74rem; color: var(--dim); margin: 0; }
.lightbox-record .pixels { font-family: var(--mono); font-size: 0.7rem; color: #dba24c; margin: 0.5rem 0 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero > img, .hero-text { animation: none; }
  .frame, body { transition: none; }
}

/* Imprint and privacy page */
.legal { padding: 6rem 0 4rem; }
.legal h1 { font-size: clamp(2rem, 7vw, 3.2rem); letter-spacing: -0.02em; margin-bottom: 1.5rem; }
.legal h2 { font-size: 1.5rem; letter-spacing: 0; margin: 2.8rem 0 0.8rem; }
.legal h3 { font-family: var(--mono); font-weight: 400; font-size: 0.78rem; color: var(--key); margin: 1.8rem 0 0.4rem; }
.legal address { font-style: normal; margin-bottom: 1em; }
.legal a { color: var(--accent); }
.legal ul { padding-left: 1.2rem; max-width: 60ch; }
.legal .back { font-family: var(--mono); font-size: 0.78rem; }
.optout { font-family: var(--mono); font-size: 0.8rem; background: none; border: 1px solid var(--line-strong); padding: 0.7em 1em; cursor: pointer; }
.optout:hover { border-color: var(--accent); color: var(--accent); }
.optout-state { font-family: var(--mono); font-size: 0.74rem; color: var(--dim); margin-left: 0.6rem; }
footer a { color: var(--accent); }

/* Suggest an identification */
.suggest-open { display: block; margin-top: 0.8rem; font-family: var(--mono); font-size: 0.74rem; color: #dba24c; background: none; border: 1px solid rgba(219, 162, 76, 0.6); padding: 0.6em 0.9em; cursor: pointer; }
.suggest-open:hover { background: #dba24c; color: #050606; }
.suggest { border: 1px solid rgba(226, 222, 210, 0.3); padding: 0; width: min(30rem, calc(100vw - 24px)); max-height: calc(100dvh - 24px); background: #111513; color: #e4e0d4; }
.suggest::backdrop { background: rgba(5, 6, 6, 0.8); }
.suggest form { padding: 1.2rem 1.2rem 1.3rem; display: grid; gap: 0.85rem; }
.suggest h2 { font-size: 1.5rem; letter-spacing: -0.01em; margin: 0; }
.suggest-photo { display: grid; grid-template-columns: 5.5rem 1fr; gap: 0.8rem; align-items: center; }
.suggest-photo img { width: 5.5rem; height: 5.5rem; object-fit: cover; }
.suggest-photo p { margin: 0; font-size: 1rem; line-height: 1.35; }
.suggest-id { font-family: var(--mono); font-size: 0.7rem; color: #8f9589; }
.suggest label { display: grid; gap: 0.3rem; font-family: var(--mono); font-size: 0.72rem; color: #7fa5c6; }
.suggest .optional { color: #8f9589; }
.suggest input, .suggest textarea { font: 1rem var(--serif); color: #e4e0d4; background: #050606; border: 1px solid rgba(226, 222, 210, 0.35); padding: 0.6em 0.7em; width: 100%; border-radius: 0; }
.suggest input:focus, .suggest textarea:focus { outline: 2px solid #dba24c; outline-offset: 0; border-color: transparent; }
.suggest .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.suggest-note { margin: 0; font-size: 0.85rem; line-height: 1.45; color: #8f9589; }
.suggest-note a { color: #dba24c; }
.suggest-status { margin: 0; min-height: 1.4em; font-family: var(--mono); font-size: 0.76rem; color: #dba24c; }
.suggest-actions { display: flex; gap: 0.6rem; }
.suggest-actions button { font-family: var(--mono); font-size: 0.82rem; padding: 0.8em 1.2em; cursor: pointer; border: 1px solid rgba(226, 222, 210, 0.35); background: none; color: #e4e0d4; }
.suggest-actions .send { background: #dba24c; border-color: #dba24c; color: #050606; }
.suggest-actions button:disabled { opacity: 0.5; cursor: default; }
.suggest form.sent label, .suggest form.sent .suggest-note, .suggest form.sent .cancel { display: none; }
/* small tiles on phones: keep the label and button from covering the photograph */
@media (max-width: 759px) {
  .tile.small figcaption { padding: 1.2rem 0.4rem 0.4rem; }
  .tile.small .taxon { font-size: 0.78rem; }
  .tile.small .help { font-size: 0.56rem; padding: 0.4em 0.5em; margin-top: 0.25rem; white-space: nowrap; }
  .tile.small .chip { min-width: 44px; min-height: 40px; }
}

/* See more and the "Beyond arachnids" page */
.see-more { display: flex; flex-wrap: wrap; align-items: center; gap: 0.9rem 1.2rem; margin: 1.6rem 0 0; max-width: none; }
.see-more span { color: var(--dim); max-width: 44ch; }
.more-head { padding: clamp(6rem, 16vw, 9rem) 0 0; }
.more-head h1 { font-size: clamp(2.8rem, 12vw, 6.5rem); letter-spacing: -0.03em; line-height: 0.95; margin-bottom: 1.2rem; }
.jump { font-family: var(--mono); font-size: 0.78rem; display: flex; flex-wrap: wrap; gap: 0.5rem 1.4rem; max-width: none; margin-top: 1.6rem; }
.jump a { color: var(--key); text-decoration: none; border-bottom: 1px solid var(--line-strong); padding-bottom: 0.15rem; }
.jump a:hover { color: var(--accent); border-color: var(--accent); }
.more > section { padding: clamp(3.5rem, 9vw, 6rem) 0 0; }
.more > .more-end { padding-bottom: clamp(4rem, 11vw, 8rem); }

/* Loading states for slow connections: blurred preview first, a small ring while the photograph loads */
.hero { background-size: cover; background-position: 53% 40%; }
.tile .zoom, .strip-item .zoom { background-size: cover; background-position: center; position: relative; }
.strip-item .zoom { display: block; }
.tile img, .strip-item img { color: transparent; }
.js .zoom:not(.loaded)::after, .stage.loading::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 28px; height: 28px; margin: -14px 0 0 -14px;
  border: 2px solid rgba(228, 224, 212, 0.25); border-top-color: #dba24c; border-radius: 50%;
  animation: spin 0.9s linear infinite; pointer-events: none; z-index: 1;
}
.stage.loading::after { width: 36px; height: 36px; margin: -18px 0 0 -18px; z-index: 3; }
@keyframes spin { to { transform: rotate(360deg); } }
.frame { background-size: 100% 100%; }
.frame .full { opacity: 0; transition: opacity 0.25s; }
.frame .full.ready { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .js .zoom:not(.loaded)::after, .stage.loading::after { animation-duration: 2.5s; }
}

/* 1:1 view: give the photograph the whole screen, keep only the pixel readout */
.zoomed .lightbox-record > :not(.pixels) { display: none; }
.zoomed .lightbox-record { padding-top: 0.5rem; padding-bottom: calc(0.5rem + env(safe-area-inset-bottom)); }
.zoomed .lightbox-record .pixels { margin: 0; }

/* Last item of the strip: a photograph half covered by the way to the second page */
.strip-more { position: relative; display: block; text-decoration: none; color: #e4e0d4; background: var(--mat); }
.strip-more .cover {
  position: absolute; top: 0; bottom: 0; right: 0; width: 50%;
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 0.35rem;
  padding: 0 1rem 0 22%;
  background: linear-gradient(to right, rgba(5, 6, 6, 0) 0%, rgba(5, 6, 6, 0.86) 34%, rgba(5, 6, 6, 0.94) 100%);
}
.strip-more b { font-family: var(--serif); font-weight: 500; font-size: clamp(1.5rem, 5vw, 2.2rem); line-height: 1.05; color: #dba24c; }
.strip-more b::after { content: ""; display: block; width: 2.2rem; height: 1px; background: #dba24c; margin-top: 0.6rem; transition: width 0.3s; }
.strip-more:hover b::after { width: 4rem; }
.strip-more small { font-family: var(--mono); font-size: 0.68rem; line-height: 1.4; color: rgba(228, 224, 212, 0.8); }

/* Copy deterrents: photographs cannot be dragged out, selected, or saved by long-press */
.tile img, .strip-item img, .hero > img, .frame img, .suggest-photo img {
  -webkit-user-drag: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none;
}
.zoom, .strip-more { -webkit-touch-callout: none; }

/* Contact links on the opening screen */
.hero-contact { display: flex; flex-wrap: wrap; gap: 0.5rem 0.6rem; margin: 0 0 1.1rem; max-width: none; font-family: var(--mono); font-size: 0.74rem; }
.hero-contact a { color: #050606; background: #dba24c; text-decoration: none; padding: 0.6em 0.85em; }
.hero-contact a:hover { background: #e4e0d4; }

/* Collapsed galleries: fixed length, last visible row half covered by "Show more" */
.gallery { --sec-bg: var(--bg); }
.find { --sec-bg: var(--panel); }
.grid { position: relative; }
.grid.collapsed { overflow: hidden; }
.more-cover {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  display: flex; align-items: flex-end; justify-content: center; padding-bottom: 1.1rem;
  background: linear-gradient(to bottom, transparent 0%, color-mix(in srgb, var(--sec-bg) 55%, transparent) 50%, var(--sec-bg) 100%);
}
.more-cover[hidden] { display: none; }
.more-cover button {
  display: grid; gap: 0.2rem; justify-items: center; cursor: pointer;
  background: #dba24c; color: #050606; border: 0; padding: 0.8rem 1.6rem 0.75rem;
}
.more-cover button:hover { background: var(--text); color: var(--bg); }
.more-cover b { font-family: var(--serif); font-weight: 500; font-size: 1.25rem; line-height: 1.1; }
.more-cover small { font-family: var(--mono); font-size: 0.66rem; }

/* Comfortable tap targets for text links and small buttons */
.bar a { padding: 0.7rem 0; }
.theme { padding: 0.55rem 0.7rem; }
.sheet dd a, footer a, .legal .back a { display: inline-block; padding: 0.55em 0; }
.tile:not(.small) .help { padding: 0.8em 0.95em; }
[hidden] { display: none !important; }

/* Contact channels: logo, name of the service as the link */
.channels { list-style: none; padding: 0; margin: 2.2rem 0 0; max-width: 34rem; border-top: 1px solid var(--line-strong); }
.channels li { border-bottom: 1px solid var(--line); }
.channels a { display: flex; align-items: center; gap: 0.9rem; padding: 0.95rem 0.2rem; text-decoration: none; color: var(--text); }
.channels a:hover b { color: var(--accent); }
.channels .ico { width: 26px; height: 26px; flex: none; }
.channels b { font-weight: 500; font-size: 1.2rem; text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 0.2em; }
.channels span { font-family: var(--mono); font-size: 0.78rem; color: var(--dim); margin-left: auto; text-align: right; overflow-wrap: anywhere; }

/* more room between the top bar and the camera readout on the opening screen */
.readout { top: calc(4.7rem + env(safe-area-inset-top)); }

/* Opening photograph: the eyes stay in the upper third on every screen shape, clear of the name and text */
.hero > img { object-position: 50% 32%; }
.hero { background-position: 50% 32%; }
