/* satchmonyc.com — Editorial emerald
   Palette: deep forest green + cream paper + aged gold. Old-style serif, numbered H2s.
*/

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

:root {
  --paper: #f5efe0;
  --paper-2: #efe7d3;
  --paper-3: #e8dfc5;
  --ink: #1a1f1c;
  --ink-strong: #0a0f0c;
  --ink-mute: #4d5450;
  --emerald: #14432f;
  --emerald-2: #1c5a3f;
  --emerald-dim: #2d6b52;
  --gold: #a67c2c;
  --gold-2: #b8863d;
  --gold-dim: #8d6720;
  --rule: #c9bfa0;
  --rule-strong: #a89e80;
}

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: Georgia, "Times New Roman", "Liberation Serif", serif;
  font-size: 18px;
  line-height: 1.72;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

/* Typography */
h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.6rem;
  line-height: 1.15;
  margin: 0 0 1.2rem;
  font-weight: 700;
  color: var(--ink-strong);
  letter-spacing: -0.015em;
}
h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.5rem;
  line-height: 1.3;
  margin: 3.2rem 0 1rem;
  padding-bottom: 0.7rem;
  font-weight: 700;
  color: var(--emerald);
  border-bottom: 1px solid var(--rule);
  position: relative;
  padding-left: 3.2rem;
  counter-increment: section;
}
article > h2::before {
  content: counter(section, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0.1rem;
  font-family: Georgia, serif;
  font-size: 1.05rem;
  color: var(--gold);
  font-weight: 400;
  letter-spacing: 0.15em;
  padding-right: 0.8rem;
  border-right: 1px solid var(--rule);
  padding: 0.3rem 0.8rem 0.3rem 0;
  min-width: 2.6rem;
}
article { counter-reset: section; }
h2#toc-heading, .faq-h, .related h2, aside h2 { padding-left: 0; }
h2#toc-heading::before, .faq-h::before, .related h2::before, aside h2::before { content: none; }

h3 {
  font-family: Georgia, serif;
  font-style: italic;
  font-size: 1.2rem;
  margin: 1.8rem 0 0.6rem;
  color: var(--emerald-2);
  font-weight: 700;
}
p { margin: 0 0 1.1rem; color: var(--ink); }
strong { color: var(--ink-strong); font-weight: 700; }
em { font-style: italic; }
a { color: var(--emerald); text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--gold-dim); text-decoration-color: var(--emerald-dim); }

/* Drop cap on the article's first paragraph */
article > p:first-of-type::first-letter {
  font-family: Georgia, serif;
  font-size: 3.6rem;
  line-height: 0.9;
  float: left;
  margin: 0.35rem 0.6rem 0 0;
  color: var(--emerald);
  font-weight: 700;
}

/* Layout */
.wrap { max-width: 800px; margin: 0 auto; padding: 0 24px; }
main { padding: 2rem 0 3rem; }

/* Masthead header */
.site-header {
  background: var(--paper);
  color: var(--ink);
  border-bottom: 3px double var(--emerald);
}
.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 18px 24px 12px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.logo {
  font-family: Georgia, "Times New Roman", serif;
  color: var(--emerald);
  text-decoration: none;
  font-size: 1.7rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
}
.logo-mark {
  font-size: 0.7rem;
  letter-spacing: 0.32em;
  color: var(--gold);
  font-weight: 400;
  text-transform: uppercase;
  font-family: Georgia, serif;
  font-style: italic;
}
nav.primary {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  align-items: baseline;
}
nav.primary a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 400;
  padding: 6px 0 4px;
  border-bottom: 1px solid transparent;
  font-family: Georgia, serif;
}
nav.primary a:hover { color: var(--emerald); border-bottom-color: var(--gold); }
nav.primary a.active { color: var(--emerald); border-bottom-color: var(--emerald); font-weight: 700; }

/* Breadcrumbs */
.breadcrumbs {
  font-size: 0.82rem;
  color: var(--ink-mute);
  margin: 1rem 0 0;
  font-style: italic;
}
.breadcrumbs a { color: var(--ink-mute); text-decoration: underline; text-decoration-color: var(--rule); }
.breadcrumbs a:hover { color: var(--emerald); }
.breadcrumbs span[aria-current] { color: var(--ink-strong); }

/* Hero */
.hero {
  padding: 2.5rem 0 1.5rem;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 2rem;
}
.eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--emerald);
  font-weight: 700;
  margin-bottom: 1.4rem;
  padding-bottom: 0.4rem;
  border-bottom: 2px solid var(--gold);
  font-family: Georgia, serif;
}
.hero-meta {
  color: var(--ink-mute);
  font-size: 0.95rem;
  margin-top: 0.4rem;
  font-style: italic;
}
.hero-image, .article-image {
  width: 100%;
  height: auto;
  display: block;
  margin: 1.8rem 0 0.4rem;
  border: 1px solid var(--rule);
}
.hero-image + .caption, .article-image + .caption {
  font-size: 0.85rem;
  color: var(--ink-mute);
  font-style: italic;
  padding-top: 0.3rem;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 0.6rem;
  margin-bottom: 1.5rem;
}

/* TOC — like a magazine's index of contents */
.toc {
  background: var(--paper-2);
  border-top: 3px double var(--emerald);
  border-bottom: 3px double var(--emerald);
  padding: 1.6rem 1.8rem;
  margin: 2.5rem 0;
}
.toc-title {
  font-family: Georgia, serif;
  font-size: 0.78rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--emerald);
  margin: 0 0 1.2rem;
  text-align: center;
  font-weight: 700;
  padding-bottom: 0;
  border: none;
}
.toc ol {
  margin: 0;
  padding: 0;
  list-style: none;
  columns: 2;
  column-gap: 2.5rem;
  counter-reset: toc-counter;
}
.toc li {
  break-inside: avoid;
  margin-bottom: 0.55rem;
  padding-left: 2.4rem;
  position: relative;
  counter-increment: toc-counter;
  font-size: 0.95rem;
}
.toc li::before {
  content: counter(toc-counter, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0;
  color: var(--gold);
  font-family: Georgia, serif;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
}
.toc a { color: var(--ink); text-decoration: none; }
.toc a:hover { color: var(--emerald); }

/* FAQ */
.faq { margin: 2rem 0; }
.faq details {
  border-bottom: 1px solid var(--rule);
  padding: 1.2rem 0;
}
.faq details:first-of-type { border-top: 1px solid var(--rule); }
.faq summary {
  cursor: pointer;
  font-family: Georgia, serif;
  font-weight: 700;
  font-size: 1.08rem;
  color: var(--emerald);
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: baseline;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "＋";
  color: var(--gold);
  font-size: 1.3rem;
  flex: 0 0 auto;
  font-weight: 400;
}
.faq details[open] summary::after { content: "－"; }
.faq details p { margin: 0.8rem 0 0; }

/* Author bio */
.author-bio {
  display: flex;
  gap: 1.4rem;
  align-items: flex-start;
  margin: 3rem 0 1rem;
  padding: 1.8rem;
  background: var(--paper-2);
  border-top: 3px solid var(--emerald);
  border-bottom: 1px solid var(--rule);
}
.author-bio img {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  flex: 0 0 auto;
  border: 2px solid var(--gold);
}
.author-bio .who { font-size: 0.98rem; color: var(--ink); }
.author-bio .who-name {
  font-family: Georgia, serif;
  font-weight: 700;
  color: var(--emerald);
  font-size: 1.25rem;
  margin: 0 0 0.2rem;
}
.author-bio .who-role {
  font-size: 0.7rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 0.7rem;
  font-weight: 700;
}

/* RG box */
.rg {
  background: var(--paper-2);
  padding: 1.3rem 1.6rem;
  border-left: 4px solid var(--gold);
  margin: 2.5rem 0 1rem;
  font-size: 0.98rem;
  color: var(--ink);
  font-style: italic;
}
.rg strong { color: var(--emerald); font-weight: 700; font-style: normal; }

/* Related pages */
.related {
  border-top: 3px double var(--emerald);
  padding: 1.5rem 0;
  margin: 2.5rem 0 1.5rem;
}
.related-title {
  font-family: Georgia, serif;
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--emerald);
  margin: 0 0 0.8rem;
  font-weight: 700;
}
.related ul { margin: 0; padding: 0; list-style: none; }
.related li {
  padding: 0.5rem 0;
  border-bottom: 1px dotted var(--rule);
  font-size: 0.98rem;
}
.related li:last-child { border-bottom: none; }
.related a { color: var(--ink); text-decoration: none; }
.related a:hover { color: var(--emerald); text-decoration: underline; text-decoration-color: var(--gold); }
.related li::before {
  content: "›";
  color: var(--gold);
  margin-right: 0.5rem;
  font-weight: 700;
}

/* Footer */
.site-footer {
  background: var(--emerald);
  color: var(--paper);
  padding: 2.8rem 0 1.5rem;
  margin-top: 3rem;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
}
.site-footer h4 {
  font-family: Georgia, serif;
  color: var(--gold);
  font-size: 0.75rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  margin: 0 0 1rem;
  font-weight: 700;
}
.site-footer p { color: var(--paper-3); font-size: 0.94rem; line-height: 1.6; }
.site-footer a { color: var(--paper); text-decoration: none; }
.site-footer a:hover { color: var(--gold-2); text-decoration: underline; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer ul li { margin-bottom: 0.5rem; font-size: 0.94rem; }
.footer-disclaimer {
  max-width: 1100px;
  margin: 2rem auto 0;
  padding: 1.5rem 24px 0;
  border-top: 1px solid var(--emerald-dim);
  font-size: 0.85rem;
  color: var(--paper-3);
  line-height: 1.6;
  font-style: italic;
}

/* Contact form */
.form-field { margin-bottom: 1.3rem; }
.form-field label {
  display: block;
  font-weight: 700;
  margin-bottom: 0.4rem;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--emerald);
  font-family: Georgia, serif;
}
.form-field input, .form-field textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid var(--rule-strong);
  background: var(--paper);
  font: inherit;
  font-family: Georgia, serif;
  color: var(--ink);
}
.form-field input:focus, .form-field textarea:focus {
  border-color: var(--emerald);
  outline: none;
  background: #fff;
}
.form-field textarea { min-height: 150px; resize: vertical; }
.btn {
  display: inline-block;
  background: var(--emerald);
  color: var(--paper);
  padding: 0.85rem 2rem;
  border: none;
  font: inherit;
  font-family: Georgia, serif;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  text-decoration: none;
  font-size: 0.85rem;
}
.btn:hover { background: var(--gold-dim); }

/* Article body */
article p, article ul, article ol { max-width: 68ch; }
article ul, article ol { margin: 0 0 1.3rem; padding-left: 1.6rem; }
article li { margin-bottom: 0.45rem; }
article li::marker { color: var(--gold); }

blockquote {
  border-left: 3px solid var(--gold);
  margin: 1.8rem 0;
  padding: 0.2rem 0 0.2rem 1.4rem;
  color: var(--ink-mute);
  font-style: italic;
  font-size: 1.1rem;
  line-height: 1.55;
}

/* Section rule — thin gold */
.section-rule {
  border: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--gold) 25%, var(--gold) 75%, transparent 100%);
  margin: 2.5rem 0 1.5rem;
}

/* Responsive */
@media (max-width: 768px) {
  body { font-size: 17px; }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.3rem; margin-top: 2.4rem; padding-left: 2.6rem; }
  article > h2::before { font-size: 0.9rem; min-width: 2rem; }
  h3 { font-size: 1.05rem; }
  .header-inner { padding: 14px 18px 10px; }
  .logo { font-size: 1.35rem; }
  nav.primary { gap: 14px; width: 100%; }
  nav.primary a { font-size: 0.72rem; letter-spacing: 0.12em; }
  .toc ol { columns: 1; }
  .footer-inner { grid-template-columns: 1fr; gap: 1.5rem; }
  .author-bio { flex-direction: column; align-items: flex-start; gap: 1rem; }
  article > p:first-of-type::first-letter { font-size: 3rem; }
}

/* Print */
@media print {
  .site-header, .site-footer, nav.primary, .toc, .rg, .related { display: none; }
  body { background: #fff; color: #000; font-size: 12pt; }
  h1, h2, h3 { color: #000; border-color: #000; }
  a { color: #000; text-decoration: none; }
}

/* Focus */
:focus-visible { outline: 2px solid var(--emerald); outline-offset: 3px; }
