  :root {
    --paper: #fbf8f2;
    --ink: #2f2a26;
    --muted: #6d655d;
    --wash-blue: #3b4a8c;
    --wash-violet: #6b5aa8;
    --wash-peach: #e9a77f;
    --line: #e6ded2;
    --card: #ffffff;
  }
  * { box-sizing: border-box; }
  body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: "Lato", system-ui, sans-serif;
    font-size: 18px;
    line-height: 1.7;
  }
  /* Painted watercolor wash that sits behind the whole page */
  .wash {
    position: fixed; inset: 0; z-index: -1; pointer-events: none;
    background: #efe6dc url("photos/background-test-sheet.webp") center / cover no-repeat;
  }
  header {
    text-align: center;
    padding: 88px 16px 72px;
  }
  .title-panel {
    display: inline-block; max-width: 100%;
    padding: 28px 40px 24px;
    background: rgba(251,248,242,.78);
    border-radius: 6px;
    box-shadow: 0 0 40px 16px rgba(251,248,242,.55);
  }
  header h1, header .dates, header .eyebrow { text-shadow: 0 0 18px rgba(251,248,242,.9), 0 0 4px rgba(251,248,242,.9); }
  main {
    background: rgba(251,248,242,.72);
    box-shadow: 0 0 60px 20px rgba(251,248,242,.6);
  }
  .eyebrow { letter-spacing: .2em; text-transform: uppercase; font-size: 13px; color: var(--muted); margin: 0 0 12px; }
  h1 {
    font-family: "Cormorant Garamond", Georgia, serif;
    font-weight: 600;
    font-size: clamp(40px, 8vw, 68px);
    line-height: 1.1;
    margin: 0;
    color: var(--wash-blue);
  }
  .dates { font-family: "Cormorant Garamond", Georgia, serif; font-style: italic; font-size: 22px; color: var(--muted); margin-top: 10px; }
  nav {
    display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 24px;
    padding: 14px 16px;
    border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
    background: rgba(251,248,242,.92);
    backdrop-filter: blur(6px);
    position: sticky; top: 0; z-index: 1;
  }
  nav a { color: var(--wash-violet); text-decoration: none; font-weight: 700; font-size: 15px; }
  nav a:hover { text-decoration: underline; }
  main { max-width: 960px; margin: 0 auto; padding: 0 16px 80px; }
  section { padding-top: 56px; scroll-margin-top: 56px; }
  h2 { font-family: "Cormorant Garamond", Georgia, serif; font-weight: 600; font-size: 34px; color: var(--wash-blue); margin: 0 0 8px; }
  .intro { margin: 0 0 24px; color: var(--muted); }
  blockquote {
    margin: 32px 0; padding: 8px 0 8px 24px;
    border-left: 4px solid var(--wash-peach);
    font-family: "Cormorant Garamond", Georgia, serif; font-style: italic; font-size: 26px; line-height: 1.4;
  }
  blockquote cite { display: block; font-style: normal; font-family: "Lato", sans-serif; font-size: 15px; color: var(--muted); margin-top: 8px; }

  .gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 18px; }
  .piece { margin: 0; background: var(--card); padding: 12px 12px 16px; border: 1px solid var(--line); box-shadow: 0 2px 10px rgba(0,0,0,.04); display: flex; flex-direction: column; }
  .thumb { height: 170px; display: flex; align-items: center; justify-content: center; background: #f4f1ec; }
  .thumb img { max-width: 100%; max-height: 100%; display: block; cursor: zoom-in; }
  .peek { position: fixed; top: 50%; transform: translateY(-50%); z-index: 9; pointer-events: none; display: none;
          background: #fff; padding: 10px; box-shadow: 0 10px 40px rgba(0,0,0,.35); border-radius: 4px; }
  .peek.open { display: block; }
  .peek img { display: block; max-width: min(46vw, 760px); max-height: 82vh; }
  .lightbox { position: fixed; inset: 0; z-index: 10; background: rgba(30,26,24,.88); display: none; align-items: center; justify-content: center; padding: 16px; cursor: zoom-out; }
  .lightbox.open { display: flex; }
  .lightbox img { max-width: 100%; max-height: 100%; box-shadow: 0 8px 40px rgba(0,0,0,.5); }
  .placeholder {
    aspect-ratio: 4 / 5; display: grid; place-items: center; text-align: center;
    color: var(--muted); font-size: 14px;
    background: linear-gradient(135deg, rgba(59,74,140,.10), rgba(233,167,127,.14));
  }
  .piece h3 { font-family: "Cormorant Garamond", Georgia, serif; font-weight: 600; font-size: 19px; margin: 12px 0 0; text-align: center; }
  .details { text-align: center; font-size: 15px; color: var(--muted); margin: 2px 0 0; }
  .status { text-align: center; margin: 8px 0 0; font-weight: 700; font-size: 15px; color: var(--wash-blue); }
  .status.quiet { color: var(--muted); font-weight: 400; font-style: italic; }
  .buy {
    display: block; text-align: center; margin-top: auto; padding: 9px 12px;
    background: var(--wash-violet); color: #fff; text-decoration: none;
    font-size: 15px; font-weight: 700; border-radius: 4px;
  }
  .buy:hover { background: var(--wash-blue); }
  .spacer { height: 10px; }
  .empty { grid-column: 1 / -1; text-align: center; padding: 40px 16px; border: 1px dashed var(--line); color: var(--muted); font-style: italic; }

  .lifespan { font-family: "Cormorant Garamond", Georgia, serif; font-style: italic; font-size: 21px; color: var(--muted); margin: 0 0 16px; }
  footer a { color: var(--wash-violet); text-decoration: none; font-weight: 700; }
  footer a:hover { text-decoration: underline; }
  .byline { font-style: italic; color: var(--muted); font-size: 15px; text-align: right; margin-top: 8px; }
  .note { color: var(--muted); font-size: 15px; }
  footer { text-align: center; color: var(--muted); font-size: 14px; padding: 32px 16px; border-top: 1px solid var(--line); background: rgba(251,248,242,.92); }
  @media (max-width: 520px) {
    body { font-size: 17px; }
    blockquote { font-size: 22px; }
  }

  /* memorial page */
  .memorial { max-width: 720px; margin: 0 auto; padding: 56px 0 24px; }
  .memorial p { font-size: 19px; line-height: 1.85; }
  .memorial .lifespan { text-align: center; }
  .memorial h2 { text-align: center; }
  .memorial .survived { text-align: center; font-style: italic; margin-top: 32px; }
  .back { display: inline-block; margin-top: 24px; color: var(--wash-violet); font-weight: 700; text-decoration: none; }
  .back:hover { text-decoration: underline; }
