/* One stylesheet for the whole site. Bone stock, serif, understated. */

:root {
  color-scheme: light;
}

body {
  font-family: Garamond, "EB Garamond", "Hoefler Text", "Times New Roman", serif;
  font-size: 18px;
  line-height: 1.65;
  color: #1c1c1c;
  background: #f4f1e4;
  margin: 0;
  padding: 0;
  -webkit-text-size-adjust: 100%;
}

a {
  color: #1c1c1c;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-color: #b7b09a;
}

a:hover {
  text-decoration-color: #1c1c1c;
}

.muted {
  color: #8a8472;
}

/* ---------- Business card landing (index.html) ---------- */

.card-page {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 24px;
  box-sizing: border-box;
  background: #e7e4d6;
}

.card {
  width: 400px;
  max-width: 100%;
  min-height: 232px;
  background: #f6f3e7;            /* subtle off-white "bone" coloring */
  color: #161616;
  border: 1px solid #cbc5af;
  border-radius: 2px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.14), 0 8px 22px rgba(0, 0, 0, 0.07);
  padding: 30px 34px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: center;
  text-transform: lowercase;
}

.card-top {
  margin: 0;
  font-size: 0.7rem;
  letter-spacing: 0.34em;
  color: #2b2b2b;
}

.card-mid {
  padding: 8px 0;
}

.card-name {
  margin: 0;
  font-size: clamp(1.15rem, 5.5vw, 1.5rem);
  font-weight: 600;
  letter-spacing: 0.1em;
  line-height: 1.25;
}

.card-title {
  margin: 8px 0 0;
  font-size: 0.82rem;
  letter-spacing: 0.3em;
  color: #2b2b2b;
}

.card-contact {
  margin: 0;
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  line-height: 2.1;
  color: #333;
}

.card-contact .sep {
  margin: 0 6px;
  color: #888;
}

.card a {
  color: inherit;
  text-decoration: none;
}

.card a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- Essays index + reader ---------- */

.wrap {
  max-width: 620px;
  margin: 0 auto;
  padding: 80px 24px 96px;
}

.page-title {
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  margin: 0 0 40px;
}

.article-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.article-list li {
  margin: 0 0 16px;
}

.article-list .date {
  color: #8a8472;
  font-size: 0.8rem;
  margin-left: 10px;
  white-space: nowrap;
}

/* Rendered Markdown */

article h1 {
  font-size: 1.7rem;
  font-weight: 600;
  line-height: 1.25;
  margin: 0 0 6px;
}

article .meta {
  color: #8a8472;
  font-size: 0.85rem;
  margin: 0 0 36px;
}

article h2 {
  font-size: 1.25rem;
  margin: 36px 0 10px;
}

article h3 {
  font-size: 1.05rem;
  margin: 26px 0 8px;
}

article p {
  margin: 0 0 20px;
}

article ul,
article ol {
  margin: 0 0 20px;
  padding-left: 24px;
}

article li {
  margin: 0 0 8px;
}

article blockquote {
  margin: 0 0 20px;
  padding: 2px 0 2px 18px;
  border-left: 2px solid #cbc5af;
  color: #5a564a;
}

article pre {
  background: #ece8d8;
  padding: 16px 18px;
  border-radius: 3px;
  overflow-x: auto;
  font-size: 0.82rem;
}

article code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.82em;
  background: #ece8d8;
  padding: 1px 5px;
  border-radius: 3px;
}

article pre code {
  background: none;
  padding: 0;
}

article img {
  max-width: 100%;
  height: auto;
}

article hr {
  border: 0;
  border-top: 1px solid #d8d2bf;
  margin: 36px 0;
}

.foot {
  margin-top: 64px;
  font-size: 0.85rem;
}
