:root {
  --paper: #ffffff;
  --ink: #171614;
  --shadow: rgba(0,0,0,.18);
  --rule: #1f1e1b;
  --engrave: #9a9387;
  --accent: #2b2a27;
  --green: #295f3a;
}

html, body {
  height: 100%;
  margin: 0;
  background-color: var(--paper);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Framed layout */
.artifact {
  box-sizing: border-box;
  max-width: 860px;
  margin: 3rem auto;
  padding: 2.5rem 2.25rem 2.5rem;
  background: var(--paper);
  border: 10px double var(--engrave);
  outline: 2px solid #d1cbc1;
  box-shadow: 0 40px 70px var(--shadow), inset 0 0 4px rgba(0,0,0,.12);
}

/* Typography */
.smallcaps { font-family: "IM Fell English SC", serif; letter-spacing: .16em; }
.serif { font-family: "Spectral", serif; }
.script { font-family: "Great Vibes", cursive; }

h1 {
  margin: 1.8rem 0 0.3rem;
  text-align: center;
  font: 700 44px/1.12 "IM Fell English SC", serif;
  letter-spacing: .06em;
  color: var(--ink);
  text-shadow: 0 1px 0 #fff, 0 1px 1px rgba(0,0,0,.12);
}

.subtitle {
  text-align: center;
  margin: .4rem 0 2.2rem;
  font: 400 14px/1.1 "IM Fell English SC", serif;
  letter-spacing: .25em;
  color: var(--accent);
  display: flex;
  justify-content: center;
  gap: 0.5em;
}

/* Plaque box */
.plaque {
  border: 2px solid var(--rule);
  padding: 1.15rem 1.25rem 1.35rem;
  margin: 0 auto 1.8rem;
  max-width: 700px;
  text-align: center;
  box-shadow: inset 0 0 0.5px rgba(0,0,0,.3), inset 0 1px 2px rgba(255,255,255,.4);
}
.plaque .cap { font: 400 13px "IM Fell English SC", serif; letter-spacing: .3em; }
.plaque h2 { margin: .35rem 0 0; font: 400 48px/1.08 "Great Vibes", cursive; }

/* Body text */
.lede {
  margin: 1.6rem auto 1.9rem;
  max-width: 720px;
  font: 400 19px/1.75 "Spectral", serif;
}
.lede .sc { font-variant: small-caps; letter-spacing: .06em; }

.section {
  margin: 1.8rem auto;
  max-width: 740px;
}
.section .head {
  text-align: center;
  letter-spacing: .22em;
  font: 400 15px/1.1 "IM Fell English SC", serif;
  margin: .8rem 0 1rem;
}
.rule {
  border-top: 1px solid var(--rule);
  margin: .8rem 0 1.2rem;
  opacity: .9;
}
.section p {
  font: 400 18px/1.78 "Spectral", serif;
  margin: .7rem 0;
}
.section .green { color: var(--green); font-style: italic; }

/* Footer */
.strap {
  margin: 2.2rem auto .2rem;
  padding-top: .9rem;
  border-top: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  max-width: 740px;
  color: #35332f;
  font: 400 15px/1.5 "Spectral", serif;
}

a { color: inherit; text-decoration-thickness: .06em; text-underline-offset: .16em; }
.muted { opacity: .9; }

.quiet-enter {
  font-family: "IM Fell English SC", serif;
  font-size: 15px;
  letter-spacing: .28em;
  text-decoration: none;
  color: var(--accent);
  transition: opacity .25s ease;
}
.quiet-enter:hover { opacity: .6; }

/* Responsive adjustments */
@media (max-width: 760px) {
  .artifact { margin: 4.2rem 1rem; padding: 2.25rem 1.2rem 1.8rem; }
  h1 { font-size: 34px; }
  .plaque h2 { font-size: 38px; }
  .lede { font-size: 18px; }
}

/* Kill default link styling in the TOC rows */
.toc-line .title a,
.toc-line .title a:link,
.toc-line .title a:visited {
  color: inherit;           /* use the surrounding text color */
  text-decoration: none;    /* no underline */
}

/* The “green-titled” treatment */
.toc-line .title a.green,
.toc-line .title a.green:link,
.toc-line .title a.green:visited {
  color: #2f6b48;           /* calm green used earlier */
  text-decoration: none;
  font-weight: 600;         /* optional */
}

/* Optional hover hint */
.toc-line .title a.green:hover {
  text-decoration: underline dotted;
  text-underline-offset: .15em;
}

/* Override all default link behavior for the green link */
.toc-line .title a.green,
.toc-line .title a.green:link,
.toc-line .title a.green:visited {
  color: var(--green) !important;    /* force the soft green */
  text-decoration: none !important;  /* remove underline */
  font-style: italic;                /* optional, matches your green style */
}

.toc-line .title a.green:hover {
  text-decoration: underline dotted;
  text-underline-offset: 0.15em;
}
