/* ─────────────────────────────────────────────
   Crafting Legacies
   Warm neutrals, emerald voice, reading first.
   ───────────────────────────────────────────── */

:root {
  --beige:  #F4EEE4;
  --warm:   #EDE4D6;
  --ink:    #332A20;
  --muted:  #6B5D4E;
  --faint:  #8B7C6B;
  --rule:   #DFD3C0;
  --emerald:        #0A7A4A;  /* small text and links */
  --emerald-bright: #0C8B55;  /* display type, marks, rules */
  --emerald-deep:   #086039;  /* pressed states */
  --clay:   #8A6A4B;

  --display: "EB Garamond", Georgia, serif;
  --body: "Source Serif 4", Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--beige);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
::selection { background: var(--emerald-bright); color: var(--beige); }
:focus-visible { outline: 2px solid var(--emerald); outline-offset: 3px; }

.wrap { max-width: 40rem; margin: 0 auto; padding: 0 1.75rem; }
.wide { max-width: 52rem; }

.eyebrow {
  font-family: var(--display);
  font-size: .875rem;
  font-style: italic;
  letter-spacing: .02em;
  color: var(--emerald);
  margin: 0 0 1rem;
}

/* ── Masthead ─────────────────────────────── */

header.top { padding: 2.75rem 0 0; text-align: center; }

.mark {
  font-family: var(--display);
  color: var(--emerald-bright);
  font-size: 1.55rem;
  font-weight: 500;
  font-style: italic;
  text-transform: uppercase;
  letter-spacing: .1em;
  text-decoration: none;
  display: inline-block;
}

.mark small {
  display: block;
  font-family: var(--body);
  font-style: normal;
  font-size: .6875rem;
  font-weight: 400;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: .6rem;
}

nav {
  margin-top: 1.9rem;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: .6rem 1.9rem;
  font-size: .875rem;
  padding-bottom: 1.6rem;
  border-bottom: 1px solid var(--rule);
}

nav a { color: var(--muted); text-decoration: none; }
nav a:hover, nav a[aria-current="page"] { color: var(--emerald); }

/* ── Opening ──────────────────────────────── */

.opening { padding: 4.5rem 0 3.5rem; text-align: center; }

.opening h1 {
  font-family: var(--display);
  font-size: clamp(1.4rem, 3.2vw, 2.15rem);
  font-weight: 400;
  font-style: italic;
  color: var(--emerald-bright);
  line-height: 1.26;
  letter-spacing: -.004em;
  margin: 0 auto;
  max-width: 22ch;
}

.opening p { margin: 1.6rem auto 0; max-width: 32rem; color: var(--muted); }

.banner {
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--clay);
  margin: 0 0 1.6rem;
}

.rule { width: 3rem; height: 2px; background: var(--emerald-bright); margin: 2.75rem auto; }

/* ── Interior page heads ──────────────────── */

.pagehead { padding: 3.75rem 0 0; text-align: center; }

.pagehead h1 {
  font-family: var(--display);
  font-size: clamp(2rem, 4.4vw, 2.9rem);
  font-weight: 400;
  line-height: 1.18;
  color: var(--emerald-bright);
  margin: 0 auto;
  max-width: 20ch;
}

.pagehead p.dek { margin: 1.2rem auto 0; max-width: 32rem; color: var(--muted); }

/* ── The writing ──────────────────────────── */

.piece { padding: 2.25rem 0; border-bottom: 1px solid var(--rule); }
.piece:first-of-type { border-top: 1px solid var(--rule); }

.piece .meta {
  font-size: .75rem;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--clay);
  margin: 0;
}

.piece .meta .flag { color: var(--emerald); font-weight: 600; }

.piece h3 {
  font-family: var(--display);
  font-size: 1.6rem;
  font-weight: 500;
  line-height: 1.25;
  margin: .5rem 0 0;
}

.piece h3 a { text-decoration: none; }
.piece h3 a:hover { color: var(--emerald); }

.piece p.dek { margin: .65rem 0 0; color: var(--muted); font-size: 1rem; }

.readmore { margin: 2.5rem 0 0; font-size: .9375rem; text-align: center; }
.readmore a { color: var(--emerald); text-decoration: none; border-bottom: 1px solid var(--rule); padding-bottom: 2px; }
.readmore a:hover { border-bottom-color: var(--emerald); }
.readmore.left { text-align: left; }

section { padding: 4.5rem 0; }

/* ── Concerns ─────────────────────────────── */

.concerns { background: var(--warm); }
.concerns h2 { font-family: var(--display); color: var(--emerald-bright); font-size: 1.9rem; font-weight: 400; margin: 0 0 1.4rem; line-height: 1.25; }
.concerns p { color: var(--muted); margin: 0 0 1.1rem; }
.concerns strong { color: var(--emerald); font-weight: 600; }

/* ── About strip ──────────────────────────── */

.about h2 { font-family: var(--display); color: var(--emerald-bright); font-size: 1.9rem; font-weight: 400; margin: 0 0 1.3rem; line-height: 1.25; }
.about p { color: var(--muted); margin: 0 0 1.1rem; }

/* ── Article ──────────────────────────────── */

.article-head { padding: 3.75rem 0 0; text-align: center; }

.article-head .meta {
  font-size: .75rem;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--clay);
  margin: 0 0 1rem;
}

.article-head .meta .flag { color: var(--emerald); font-weight: 600; }

.article-head h1 {
  font-family: var(--display);
  font-size: clamp(1.9rem, 4.2vw, 2.75rem);
  font-weight: 400;
  line-height: 1.18;
  color: var(--emerald-bright);
  margin: 0 auto;
  max-width: 22ch;
}

.article-head p.dek { margin: 1.2rem auto 0; max-width: 32rem; color: var(--muted); }

.prose { padding: 0 0 3.5rem; }
.prose p { margin: 0 0 1.4rem; }

.prose h2 {
  font-family: var(--display);
  font-size: 1.55rem;
  font-weight: 500;
  line-height: 1.3;
  color: var(--emerald);
  margin: 2.75rem 0 .9rem;
}

.prose h3 { font-family: var(--display); font-size: 1.25rem; font-weight: 600; margin: 2rem 0 .6rem; }

.prose blockquote {
  margin: 2.25rem 0;
  padding-left: 1.35rem;
  border-left: 2px solid var(--emerald-bright);
  color: var(--muted);
  font-family: var(--display);
  font-size: 1.25rem;
  font-style: italic;
  line-height: 1.45;
}

.prose blockquote p { margin: 0; }

.prose ul, .prose ol { margin: 0 0 1.4rem; padding-left: 1.25rem; }
.prose li { margin-bottom: .55rem; }
.prose li::marker { color: var(--clay); }

.prose hr { border: 0; border-top: 1px solid var(--rule); margin: 2.75rem 0; }

.prose a { color: var(--emerald); text-decoration-color: var(--rule); text-underline-offset: .16em; }
.prose a:hover { text-decoration-color: var(--emerald); }

/* ── The Legacy Circle ────────────────────── */

.invite { background: var(--warm); border-top: 1px solid var(--rule); text-align: center; }

.circle-name {
  font-family: var(--display);
  font-style: italic;
  font-size: 1.25rem;
  color: var(--emerald-bright);
  margin: 1.8rem auto .5rem;
  letter-spacing: .02em;
}

.invite h2 {
  font-family: var(--display);
  font-size: clamp(1.6rem, 3.4vw, 2.2rem);
  font-weight: 400;
  font-style: italic;
  color: var(--emerald-bright);
  line-height: 1.28;
  margin: 0 auto;
  max-width: 22ch;
}

.invite p { color: var(--muted); margin: 0 auto 2rem; max-width: 30rem; font-size: .9688rem; }

.form { display: flex; gap: .5rem; max-width: 26rem; margin: 0 auto; flex-wrap: wrap; }

.form input {
  flex: 1 1 13rem;
  padding: .8rem .95rem;
  border: 1px solid var(--rule);
  background: var(--beige);
  color: var(--ink);
  font-family: var(--body);
  font-size: .9375rem;
}

.form button {
  padding: .8rem 1.4rem;
  border: 0;
  background: var(--emerald);
  color: var(--beige);
  font-family: var(--body);
  font-size: .9375rem;
  font-weight: 600;
  cursor: pointer;
}

.form button:hover { background: var(--emerald-deep); }

.form-note { margin: 1rem auto 0; font-size: .8125rem; color: var(--faint); }

/* ── Footer ───────────────────────────────── */

footer { padding: 2.75rem 0 3.5rem; text-align: center; font-size: .8125rem; color: var(--muted); }
footer a { color: var(--muted); text-decoration: none; margin: 0 .7rem; }
footer a:hover { color: var(--emerald); }
footer .fine { margin-top: 1rem; font-size: .75rem; color: var(--faint); line-height: 1.7; }

@media (max-width: 34rem) {
  .opening { padding: 3rem 0 2.5rem; }
  section { padding: 3.25rem 0; }
  footer a { display: inline-block; margin: 0 .55rem .4rem; }
}

/* ─────────────────────────────────────────────
   Visual layer — added September 2026
   Parcel artwork, drop caps, portrait, page fades.
   ───────────────────────────────────────────── */

/* ── Page transitions ─────────────────────── */
/* Modern browsers cross-fade between pages. Older ones simply don't,
   and nothing breaks. */

@view-transition { navigation: auto; }

@media (prefers-reduced-motion: no-preference) {
  body { animation: pagein .34s ease-out both; }
  @keyframes pagein { from { opacity: 0; transform: translateY(6px); } }
}

/* ── Parcel artwork ───────────────────────── */

.plan { display: block; width: 100%; height: 100%; }

.plan-strip {
  display: block;
  height: 68px;
  margin: 0 0 1.1rem;
  overflow: hidden;
  background: var(--beige);
  border: 1px solid var(--rule);
  opacity: .78;
  transition: opacity .25s ease;
}

.piece:hover .plan-strip { opacity: 1; }

.plan-banner {
  height: 200px;
  overflow: hidden;
  background: var(--beige);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  margin: 2.5rem 0 3rem;
}

.article-head + .plan-banner { margin-top: 2.5rem; }

/* ── Drop cap ─────────────────────────────── */

.prose p.opens::first-letter {
  font-family: var(--display);
  font-size: 3.4em;
  line-height: .82;
  float: left;
  padding: .06em .09em 0 0;
  color: var(--emerald-bright);
  font-style: italic;
}

.prose p.opens { margin-top: .2rem; }

/* ── Portrait ─────────────────────────────── */

.portrait {
  max-width: 22rem;
  margin: 2.5rem auto 0;
  padding: 0 1.75rem;
}

.portrait img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--rule);
}

/* ── Lists breathe a little more ──────────── */

.piece { padding: 2.5rem 0; }

@media (max-width: 34rem) {
  .plan-strip { height: 54px; }
  .plan-banner { height: 140px; margin: 2rem 0 2.25rem; }
  .prose p.opens::first-letter { font-size: 3em; }
}

/* Portrait on the homepage — smaller, sits above the About text */
.portrait--inline {
  max-width: 13rem;
  margin: 0 0 1.75rem;
  padding: 0;
}
.portrait--inline img { border: 1px solid var(--rule); }

@media (max-width: 34rem) {
  .portrait--inline { max-width: 10.5rem; margin-left: auto; margin-right: auto; }
}

/* ─────────────────────────────────────────────
   Photographs — washed into the page
   ───────────────────────────────────────────── */

/* Article pictures: in lists, and as a banner on the article itself. */

.scene { display: block; width: 100%; height: 100%; overflow: hidden; }

.scene img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .92;
  -webkit-mask-image: linear-gradient(to bottom,
    rgba(0,0,0,0) 0%, rgba(0,0,0,1) 22%, rgba(0,0,0,1) 78%, rgba(0,0,0,0) 100%);
          mask-image: linear-gradient(to bottom,
    rgba(0,0,0,0) 0%, rgba(0,0,0,1) 22%, rgba(0,0,0,1) 78%, rgba(0,0,0,0) 100%);
}

.plan-strip {
  display: block;
  height: 96px;
  margin: 0 0 1.2rem;
  overflow: hidden;
  background: var(--beige);
  transition: opacity .3s ease;
  opacity: .9;
}

.piece:hover .plan-strip { opacity: 1; }

.plan-banner {
  height: 260px;
  overflow: hidden;
  background: var(--beige);
  margin: 2.25rem 0 3rem;
}

/* ── Hero background ──────────────────────── */

.opening--image { position: relative; overflow: hidden; }

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 62%;
  opacity: .88;
}

/* A soft wash of page colour so the words always win */
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 58% at 50% 46%,
      rgba(244,238,228,.86) 0%, rgba(244,238,228,.52) 62%, rgba(244,238,228,.2) 100%),
    linear-gradient(to bottom,
      var(--beige) 0%, rgba(244,238,228,.3) 26%,
      rgba(244,238,228,.3) 68%, var(--beige) 100%);
}

.opening--image > .wrap,
.opening--image > .rule { position: relative; z-index: 1; }

.opening--image { padding: 6rem 0 4.5rem; }

@media (max-width: 34rem) {
  .plan-strip { height: 76px; }
  .plan-banner { height: 170px; margin: 1.75rem 0 2.25rem; }
  .opening--image { padding: 3.75rem 0 3rem; }
  .hero-bg img { object-position: center 58%; }
}

/* ── Legacy Circle, before a mailing service is connected ── */

.form-mail { margin: 0 auto; max-width: 30rem; font-size: 1rem; }
.form-mail a { color: var(--emerald); text-decoration-color: var(--rule);
  text-underline-offset: .16em; }
.form-mail a:hover { text-decoration-color: var(--emerald); }

/* ─────────────────────────────────────────────
   The Library
   ───────────────────────────────────────────── */

.shelves { margin: 0 0 2.5rem; }

.shelf {
  display: block;
  padding: 1.6rem 0;
  border-bottom: 1px solid var(--rule);
  text-decoration: none;
  transition: padding-left .2s ease;
}

.shelf:first-child { border-top: 1px solid var(--rule); }
.shelf:hover { padding-left: .5rem; }

.shelf-title {
  display: block;
  font-family: var(--display);
  font-size: 1.55rem;
  font-weight: 500;
  color: var(--emerald-bright);
  line-height: 1.25;
}

.shelf:hover .shelf-title { color: var(--emerald); }

.shelf-blurb {
  display: block;
  margin-top: .4rem;
  color: var(--muted);
  font-size: .9688rem;
}

.libnote {
  color: var(--faint);
  font-size: .875rem;
  border-left: 2px solid var(--rule);
  padding-left: 1rem;
  margin: 0;
}

.kicker {
  font-size: .75rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--clay);
  margin: 0 0 1rem;
}

.kicker a { color: var(--clay); text-decoration: none; }
.kicker a:hover { color: var(--emerald); }

/* ── Citation entries ─────────────────────── */

.library .entry {
  padding: 1.75rem 0 1.5rem;
  border-bottom: 1px solid var(--rule);
}

.library h2 + .entry,
.library .entry:first-child { border-top: 1px solid var(--rule); }

.library h2 {
  font-family: var(--display);
  font-size: 1.05rem;
  font-weight: 600;
  font-style: normal;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--clay);
  margin: 3rem 0 1.25rem;
}

.entry-title {
  font-family: var(--display);
  font-size: 1.4rem;
  font-weight: 500;
  line-height: 1.28;
  margin: 0;
  color: var(--ink);
}

.entry-title a {
  color: var(--emerald-bright);
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 1px;
}

.entry-title a:hover { border-bottom-color: var(--emerald); }

.entry-title a::after {
  content: "\2197";
  font-size: .7em;
  margin-left: .28em;
  color: var(--clay);
  vertical-align: .18em;
}

.entry-cite {
  margin: .45rem 0 0;
  font-size: .8125rem;
  letter-spacing: .05em;
  color: var(--clay);
}

.entry-note { margin-top: .75rem; }
.entry-note p { margin: 0 0 .85rem; }
.entry-note p:last-child { margin-bottom: 0; }

.library .prose p { max-width: none; }

@media (max-width: 34rem) {
  .shelf-title { font-size: 1.35rem; }
  .entry-title { font-size: 1.22rem; }
}
