/* remember.vanessalefler.com - static */
:root {
  --bg: #000;             /* pure black, per owner request */
  --panel: #1c1a18;
  --ink: #e9e4dc;         /* warm off-white, not #fff  (16.6:1 on --bg) */
  --muted: #a89f94;       /* secondary text            ( 8.1:1 on --bg) */
  --rule: #332f2b;        /* decorative separators / photo frames only */
  --edge: #7a7166;        /* interactive boundaries    ( 4.4:1 on --bg, WCAG 1.4.11) */
  --link: #a8c0c9;        /*                           (11.1:1 on --bg) */
  --focus: #dcc79a;       /*                           (12.7:1 on --bg) */
  --serif: Georgia, "Iowan Old Style", "Palatino Linotype", Palatino, "Times New Roman", serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; color-scheme: dark; }
/* one font stack, everywhere, including anything the block editor emitted */
body, button, input { font-family: var(--serif); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-size: 1.0625rem;
  line-height: 1.75;
}
.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--panel); color: var(--ink);
  padding: .6rem 1rem; z-index: 10;
}
.skip:focus { left: .5rem; top: .5rem; }
header.site {
  border-bottom: 1px solid var(--rule);
  padding: 2.5rem 1.25rem 1.25rem;
  text-align: center;
}
.site-title {
  margin: 0;
  font-size: 1.6rem;
  letter-spacing: .01em;
  font-weight: normal;
}
.site-title a { color: var(--ink); text-decoration: none; }
.site-tagline {
  margin: .35rem 0 1.5rem;
  color: var(--muted);
  font-size: .95rem;
  letter-spacing: .06em;
}
header.site nav ul {
  list-style: none;
  margin: 0; padding: 0;
  display: flex; flex-wrap: wrap;
  justify-content: center;
  gap: .35rem 1.4rem;
}
header.site nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: .95rem;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
}
header.site nav a:hover,
header.site nav a[aria-current="page"] {
  color: var(--ink);
  border-bottom-color: var(--edge);
}
main {
  max-width: 68ch;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 5rem;
}
h1 {
  font-size: 1.75rem;
  font-weight: normal;
  line-height: 1.3;
  margin: 0 0 1.75rem;
}
p { margin: 0 0 1.35rem; }
a { color: var(--link); }
a:hover { color: var(--ink); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
img { max-width: 100%; height: auto; }
/* the block editor tagged one home-page paragraph "large"; normalise it so
   every page shares the same sizes and weights */
.has-large-font-size { font-size: inherit; line-height: inherit; }
.wp-block-media-text__media { margin: 0 0 2rem; }
.wp-block-media-text__media img { border-radius: 2px; }
.embed { word-break: break-word; }
ul.gallery {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: .6rem;
}
ul.gallery a { display: block; }
ul.gallery img {
  display: block;
  width: 100%; height: 100%;
  object-fit: cover;
  aspect-ratio: 250 / 140;
  background: var(--panel);
  border: 1px solid var(--rule);
}
ul.gallery a:hover img { border-color: var(--muted); }

/* lightbox: native <dialog> so focus trap, Esc and inert background are free */
dialog#lb {
  border: 0; padding: 0;
  max-width: 100vw; max-height: 100vh;
  width: 100%; height: 100%;
  background: transparent; color: var(--ink);
  overflow: hidden;
}
dialog#lb::backdrop { background: rgba(8, 7, 6, .92); }
dialog#lb .lb-frame {
  height: 100%;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 1rem; padding: 1rem;
}
dialog#lb img {
  max-width: 100%;
  max-height: calc(100vh - 6rem);
  object-fit: contain;
  border: 1px solid var(--rule);
}
.lb-ctl { display: flex; gap: .75rem; }
.lb-ctl button {
  background: var(--panel);
  color: var(--ink);
  border: 1px solid var(--edge);
  border-radius: 2px;
  font-size: 1.1rem;
  line-height: 1;
  padding: .55rem .95rem;
  cursor: pointer;
}
.lb-ctl button:hover { border-color: var(--ink); }
/* the photo grid wants more room than the reading measure */
body.wide main { max-width: 1100px; }
@media (min-width: 40em) {
  main { padding-top: 3.5rem; }
  h1 { font-size: 2rem; }
}
