:root {
  /*
    Single source of truth for the ambient illustration's corner
    inset -- read at runtime by JS via getComputedStyle, rather than
    duplicated as hardcoded constants in the script. Tuned together
    with .entry-illustration-wrap's padding below; if you adjust
    that padding, revisit these too.
  */
  --spool-margin: 44px;
  --needle-margin: 30px;
  --indent-scale: 1;

  /*
    12 evenly-spaced, equal-radius offsets -- approximates a true
    circular dilation of each glyph, so the ambient thread behind
    text ducks cleanly around letterforms with no visible gaps at
    ascenders/thin strokes.
  */
  --text-halo:
    5px 0 0 var(--color-paper),
    4.33px 2.5px 0 var(--color-paper),
    2.5px 4.33px 0 var(--color-paper),
    0 5px 0 var(--color-paper),
    -2.5px 4.33px 0 var(--color-paper),
    -4.33px 2.5px 0 var(--color-paper),
    -5px 0 0 var(--color-paper),
    -4.33px -2.5px 0 var(--color-paper),
    -2.5px -4.33px 0 var(--color-paper),
    0 -5px 0 var(--color-paper),
    2.5px -4.33px 0 var(--color-paper),
    4.33px -2.5px 0 var(--color-paper);
}

.entry-illustration-wrap {
  position: relative;
  padding: 108px 8px 84px;
  margin-bottom: var(--space-5);
}

.ambient-thread-svg {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  z-index: -1;
  pointer-events: none;
}

.top-edge-beads-svg {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  z-index: 1;
  pointer-events: none;
}

.ambient-thread-path {
  fill: none;
  stroke: var(--color-thread);
  stroke-width: 2;
  stroke-linecap: round;
  opacity: 0.5;
}

/*
  pointer-events: none is already inherited from the parent
  .ambient-thread-svg (also set to none). Restated here as
  defensive redundancy only -- harmless, and guards against this
  rule accidentally being lost from the parent in a future edit.
*/
.spool-icon,
.needle-icon { pointer-events: none; }

.top-edge-bead {
  fill: var(--color-bead-gold);
  stroke: var(--color-thread);
  stroke-width: 1.5;
}

.entry-header { margin-bottom: var(--space-5); }

.entry-title {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 2rem;
  line-height: 1.25;
  margin: 0 0 var(--space-2);
  text-shadow: var(--text-halo);
}

.entry-location {
  font-size: 0.9rem;
  color: var(--color-ink-soft);
  font-style: italic;
  text-shadow: var(--text-halo);
}

ol.thank-yous {
  list-style: none;
  margin: 0;
  padding: 0;
}

ol.thank-yous li:first-child::marker {
  content: "⤳ ";
  font-weight: 700;
  color: var(--color-thread);
}

ol.thank-yous li:not(:first-child)::marker {
  content: "⤷ ";
  font-weight: 900;
  color: var(--color-thread);
}

.thank-you {
  max-width: var(--width, 56ch);
  margin: 0 0 var(--space-5) calc(var(--indent, 0px) * var(--indent-scale, 1));
  font-family: var(--font-serif);
  font-size: 1.15rem;
  line-height: 1.20;
  color: color-mix(
    in srgb,
    var(--color-ink) calc(100% - var(--tint, 0%)),
    var(--color-thread) var(--tint, 0%)
  );
  text-shadow: var(--text-halo);
  text-align: justify;
  -webkit-hyphens: auto;
  hyphens: auto;
}

.thank-you:last-child { margin-bottom: 0; }

.entry-tags {
  margin: var(--space-5) 0 0;
  font-size: 0.85rem;
  color: var(--color-ink-soft);
}

.entry-tags a { color: var(--color-ink-soft); text-decoration: none; text-shadow: var(--text-halo); }
.entry-tags a:hover { color: var(--color-thread); text-decoration: underline; }
.entry-tags .tag-sep { margin: 0 var(--space-2); color: var(--color-line); text-shadow: var(--text-halo); }

.no-js .ambient-thread-svg,
.no-js .top-edge-beads-svg { display: none; }

.read-another {
  padding-top: var(--space-5);
  border-top: 1px solid var(--color-line);
  font-size: 0.95rem;
  text-align: center;
  margin-bottom: var(--space-6);
}
.read-another a { color: var(--color-ink-soft); }
.read-another a:hover { color: var(--color-thread); }

/*
  NOTE: 720px is also the breakpoint used in base.css for
  --content-width. If you change one, change the other.
*/
@media (min-width: 720px) {
  :root {
    --indent-scale: 2;
  }
  .entry-title { font-size: 2.4rem; }
  .thank-you { font-size: 1.25rem; }
}