:root {
  --paper: #f8f4ec;
  --paper-deep: #f1ebdf;
  --ink: #1c2a24;
  --ink-soft: #52604f;
  --pine: #0d5c4d;
  --pine-deep: #0a4239;
  --night: #14211c;
  --ochre: #b07a14;
  --hairline: #d8cfba;
  --card: #fffdf8;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "Newsreader", Georgia, serif;
  font-size: 17px;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.65;
  position: relative;
}
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 1; opacity: .35;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.035 0'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}
.mono { font-family: "IBM Plex Mono", monospace; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 28px; position: relative; z-index: 2; }
.wrap-narrow { max-width: 760px; margin: 0 auto; padding: 0 28px; position: relative; z-index: 2; }

/* masthead */
.masthead { border-bottom: 1px solid var(--ink); position: relative; }
.masthead::after { content: ""; display: block; height: 3px; margin-top: 2px; background: var(--ink); }
.masthead .row { display: flex; justify-content: space-between; align-items: baseline; padding: 20px 0 10px; }
.wordmark { font-family: "Fraunces", serif; font-weight: 600; font-size: 21px; letter-spacing: .04em; }
.wordmark a { color: inherit; text-decoration: none; }
.wordmark em { font-style: normal; color: var(--pine); }
.mast-nav { font-family: "IBM Plex Mono", monospace; font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); display: flex; gap: 22px; }
.mast-nav a { color: inherit; text-decoration: none; padding-bottom: 2px; }
.mast-nav a:hover, .mast-nav a[aria-current] { color: var(--pine); border-bottom: 1px solid var(--pine); }
@media (max-width: 640px) { .mast-nav { gap: 14px; } .mast-nav .hide-m { display: none; } }

/* shared type */
.kicker { font-family: "IBM Plex Mono", monospace; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: #96650d; margin-bottom: 26px; }
.page-title { font-family: "Fraunces", serif; font-size: clamp(32px, 4.6vw, 46px); font-weight: 480; line-height: 1.1; letter-spacing: -.015em; }
.prose { padding: 26px 0 60px; }
.prose h2 { font-family: "Fraunces", serif; font-size: 25px; font-weight: 560; margin: 40px 0 12px; letter-spacing: -.01em; }
.prose h3 { font-family: "Fraunces", serif; font-size: 19px; font-weight: 600; margin: 28px 0 8px; }
.prose p, .prose li { color: var(--ink-soft); max-width: 62ch; margin-bottom: 14px; font-size: 17.5px; }
.prose ul { padding-left: 22px; }
.prose li { margin-bottom: 8px; }
.prose strong { color: var(--ink); }
.prose a { color: var(--pine); }
.rule-top { border-top: 1px solid var(--ink); margin-top: 20px; }
.btn {
  display: inline-block; background: var(--pine); color: var(--paper); text-decoration: none;
  font-family: "IBM Plex Mono", monospace; font-size: 14px; letter-spacing: .1em; text-transform: uppercase;
  padding: 15px 26px; border-radius: 3px; border: 1px solid var(--pine-deep);
  box-shadow: 0 2px 0 var(--pine-deep); transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 3px 0 var(--pine-deep); }
.btn:focus-visible { outline: 3px solid var(--ochre); outline-offset: 2px; }
.prose a.btn { color: var(--paper); }

/* footer */
footer { background: var(--night); border-top: 1px solid #2a3a32; margin-top: 60px; }
footer .inner { padding: 34px 0 44px; display: flex; flex-direction: column; gap: 10px; }
footer .foot-links { display: flex; gap: 24px; flex-wrap: wrap; font-family: "IBM Plex Mono", monospace; font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; }
footer .foot-links a { color: #a8bcae; text-decoration: none; }
footer .foot-links a:hover { color: #d7e8e8; }
footer p { font-size: 13px; color: #8fa093; max-width: 62em; }
footer .brand { font-family: "IBM Plex Mono", monospace; font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: #a8bcae; }

/* callout card */
.note-card { background: var(--card); border: 1px solid var(--hairline); border-left: 4px solid var(--ochre); border-radius: 6px; padding: 20px 24px; margin: 26px 0; }
.note-card p { margin-bottom: 0; font-size: 15.5px; }
