/* Shared subscribe component and site footer for the bespoke, self-contained
   directory essays (essays/<slug>/index.html). These are not run through the
   Nunjucks layout (htmlTemplateEngine is off), so the markup is injected at
   build time by the "essayChrome" transform in eleventy.config.js and styled
   here.

   Palette-agnostic: uses only tokens every essay defines (--ink, --ink-soft,
   --paper, --mono, --display, --rule), each with a safe fallback, so the box
   looks consistent regardless of the essay's own accent scheme. The header
   "Subscribe" link is intentionally left unstyled here — it lives inside
   .site-back and inherits that essay's own accent via `.site-back a`. */

.essay-subscribe {
  /* Injected as a full-width child of <body> (no padded wrapper), so use a
     gutter-aware width: 26rem on desktop, but always leave 1.5rem side gutters
     on screens narrower than that instead of running flush to the edges. */
  width: min(26rem, 100% - 3rem);
  margin: 3rem auto 0;
  text-align: center;
}
.essay-subscribe .subscribe-title {
  font-family: var(--display, Georgia, serif);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--ink, #1a1a1a);
  margin: 0 0 .8rem;
}
.essay-subscribe form {
  display: flex;
  gap: .5rem;
  margin: 0 0 .6rem;
}
.essay-subscribe input {
  flex: 1;
  min-width: 0;
  font-family: var(--mono, ui-monospace, monospace);
  font-size: .9rem;
  padding: .6rem .8rem;
  color: var(--ink, #1a1a1a);
  background: var(--paper, #fff);
  border: 1.5px solid var(--rule, rgba(0, 0, 0, .18));
  border-radius: 10px;
}
.essay-subscribe input:focus {
  outline: none;
  border-color: var(--ink, #1a1a1a);
}
.essay-subscribe button {
  font-family: var(--mono, ui-monospace, monospace);
  font-size: .9rem;
  font-weight: 700;
  padding: .6rem 1.1rem;
  color: var(--paper, #fff);
  background: var(--ink, #1a1a1a);
  border: none;
  border-radius: 10px;
  cursor: pointer;
}
.essay-subscribe button:hover { opacity: .85; }
.essay-subscribe .subscribe-note {
  font-family: var(--mono, ui-monospace, monospace);
  font-size: .82rem;
  color: var(--ink-soft, #666);
  margin: 0;
}
.essay-subscribe .subscribe-note a { color: inherit; }

/* Site footer, mirroring the layout essays' .site-foot. The thin rule sits
   under each essay's heavier .methodology double border, matching the flat
   essays' footer weight. */
.essay-foot {
  text-align: center;
  padding: 3rem 1.5rem 4rem;
  border-top: 1.5px solid var(--rule, rgba(0, 0, 0, .18));
  color: var(--ink-soft, #666);
}
.essay-foot p {
  font-family: var(--mono, ui-monospace, monospace);
  font-size: .84rem;
  margin: .4rem 0;
}
.essay-foot a { color: inherit; }
