/* ─────────────────────────────────────────────
   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; }
}
