:root {
      color-scheme: dark;
      --black: #0b0c0c;
      --muted: #b1b4b6;
      --text: #f1f0ec;
      --silver: #c7c7c4;
      --content: 900px;
    }

    * { box-sizing: border-box; }
    html { background: var(--black); }

    @media (prefers-reduced-motion: no-preference) {
      html { scroll-behavior: smooth; }
    }

    body {
      position: relative;
      min-width: 320px;
      min-height: 100svh;
      margin: 0;
      background:
        radial-gradient(ellipse 52rem 34rem at 50% 0%, #1b1b1a 0, rgba(27,27,26,.5) 34%, transparent 72%),
        var(--black);
      background-repeat: no-repeat;
      color: var(--text);
      font-family: "EB Garamond", Garamond, serif;
      line-height: 1.5;
    }

    img { display: block; max-width: 100%; }

    .page {
      width: min(var(--content), calc(100% - 40px));
      min-height: 100svh;
      margin: 0 auto;
      display: grid;
      grid-template-rows: minmax(0, 1fr) auto;
      justify-items: center;
      padding: 1.5rem 0 4rem;
    }

    .memorial-content {
      align-self: center;
      display: flex;
      flex-direction: column;
      align-items: center;
      width: 100%;
      padding: 1.5rem 0;
    }

    .title-block {
      width: min(100%, 760px);
      margin-top: -1rem;
      text-align: center;
    }

    h1 {
      margin: .1rem 0 0;
      color: var(--text);
      font-size: clamp(2.75rem, 11vw, 5.4rem);
      font-weight: 400;
      line-height: .92;
      letter-spacing: -.015em;
    }

    .years {
      margin: .8rem 0 0;
      color: #aaa8a2;
      font-size: clamp(1.15rem, 2vw, 1.4rem);
      font-variant-numeric: lining-nums;
      letter-spacing: .22em;
    }

    .portrait {
      position: relative;
      width: min(300px, 72vw);
      aspect-ratio: 4 / 5;
      margin: clamp(1.25rem, 2.5vw, 1.8rem) 0 0;
      overflow: hidden;
      border-radius: 2px;
      box-shadow: 0 1.75rem 4rem rgba(0, 0, 0, .34);
    }

    .portrait img {
      display: block;
      width: 100%;
      height: 100%;
      border-radius: inherit;
      filter: grayscale(1) contrast(1.08) brightness(.78);
      object-fit: cover;
      object-position: 50% 20%;
    }

    .announcement {
      width: min(100%, 720px);
      margin: 2.35rem 0 0;
      color: var(--text);
      font-size: clamp(1.05rem, 1.6vw, 1.25rem);
      font-style: normal;
      font-weight: 400;
      line-height: 1.55;
      text-align: left;
    }

    .announcement p {
      margin: 0;
    }

    .announcement p + p {
      margin-top: 1.15em;
    }

    .announcement-heading {
      margin: 0 0 1.4em;
      color: #f0f0ed;
      font-size: clamp(1.35rem, 2.5vw, 1.7rem);
      font-style: normal;
      font-weight: 600;
      line-height: 1.2;
      text-align: center;
    }

    .announcement strong {
      color: #f1f1ee;
      font-weight: 600;
    }

    .announcement-closing {
      margin-top: 1.6em !important;
      font-size: 1.08em;
      text-align: left;
    }

    .announcement-signature {
      margin-top: 0.8em !important;
      color: var(--silver);
      font-family: Arial, Helvetica, sans-serif;
      font-size: .78em;
      font-style: normal;
      font-weight: 700;
      letter-spacing: .14em;
      text-align: left;
      text-transform: uppercase;
    }

    .memorial-rule {
      width: min(9rem, 28vw);
      height: 1px;
      margin: 1rem 0 0;
      border: 0;
      background: var(--silver);
      opacity: .65;
    }

    .announcement time {
      display: block;
      margin: 1rem 0 0;
      color: var(--muted);
      font-family: Arial, Helvetica, sans-serif;
      font-size: .85rem;
      font-style: normal;
      font-weight: 400;
      letter-spacing: .12em;
      text-transform: uppercase;
    }

    .tributes {
      width: min(100%, 680px);
      margin: 2rem 0 0;
      padding-top: 1.5rem;
      border-top: 1px solid rgba(199, 199, 196, .42);
      text-align: left;
    }

    .tributes-heading {
      margin: 0 0 1.15em;
      color: var(--text);
      font-size: clamp(1.3rem, 2vw, 1.55rem);
      font-style: normal;
      font-weight: 600;
      letter-spacing: .02em;
    }

    .tributes-list {
      display: flex;
      flex-direction: column;
      gap: 0.6em;
      margin: 0 0 1.5em;
      padding: 0;
      list-style: none;
    }

    .tributes-list li {
      padding-bottom: 0.6em;
      border-bottom: 1px solid rgba(199, 199, 196, .18);
      color: var(--text);
      font-size: clamp(.95rem, 1.4vw, 1.05rem);
      line-height: 1.55;
    }

    .tributes-list li p {
      white-space: pre-line;
    }

    .tribute-sender {
      display: block;
      margin-top: .4em;
      color: var(--muted);
      font-size: .8rem;
      letter-spacing: .05em;
      text-transform: uppercase;
    }

    .tributes-empty {
      margin: 0 0 1.5em;
      color: var(--muted);
      font-size: .95rem;
      font-style: italic;
    }

    .site-footer {
      width: 100%;
      margin-top: 2rem;
      display: flex;
      justify-content: center;
      align-items: center;
      padding: 0 .25rem;
    }

    .association {
      display: flex;
      align-items: center;
      gap: .45rem;
      color: var(--muted);
      font-size: .78rem;
      font-weight: 400;
      line-height: 1.25;
      letter-spacing: .1em;
      text-align: center;
      text-transform: uppercase;
    }

    .association-name {
      display: flex;
      flex-direction: column;
      align-items: center;
      line-height: 1.05;
    }

    @media (max-width: 560px) {
      .page { width: calc(100% - 32px); }
      .title-block { margin-top: 0; }
      h1 { line-height: 1; }
      .announcement-heading { font-size: 1.15rem; }
      .tributes { margin-top: 4.5rem; padding-top: 2.75rem; }
    }
