/* Okay Labs blog: shares the homepage's palette and type. */
:root {
  --ink: #1a1710;
  --parchment: #f5f0e8;
  --warm-white: #faf8f3;
  --moss: #3d5a2e;
  --moss-light: #8aab6f;
  --terra: #b8522a;
  --terra-light: #e8b49a;
  --straw: #d4a843;
  --straw-light: #f0d898;
  --mid: #4a4238;
  --rule: #ccc5b4;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--warm-white); color: var(--ink);
  font-family: 'Lora', Georgia, serif; font-size: 17px;
  line-height: 1.75; overflow-x: hidden;
}
a { color: var(--moss); }
a:hover { color: var(--terra); }
:focus-visible { outline: 2px solid var(--terra); outline-offset: 2px; }

/* Nav (same as the homepage) */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 1.25rem 2.5rem;
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(250,248,243,0.94); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--rule);
}
.nav-logo {
  font-family: 'DM Mono', monospace; font-size: 13px;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink); text-decoration: none;
  display: flex; align-items: center; gap: 9px;
}
nav ul { list-style: none; display: flex; gap: 2.5rem; }
nav a {
  font-family: 'DM Mono', monospace; font-size: 11px;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--mid); text-decoration: none; transition: color 0.2s;
}
nav a:hover, nav a[aria-current="page"] { color: var(--terra); }
.nav-mobile-link { display: none; }

/* Shared type */
.eyebrow {
  font-family: 'DM Mono', monospace; font-size: 11px;
  letter-spacing: 0.15em; text-transform: uppercase; color: var(--terra);
}
.section-rule { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.section-rule::before { content: ''; width: 2.5rem; height: 1px; background: var(--terra); }
.page-title {
  font-family: 'Playfair Display', serif; font-weight: 900;
  font-size: clamp(2.4rem, 5vw, 4rem); line-height: 1.05;
  letter-spacing: -0.02em; color: var(--ink); text-wrap: balance;
}
.page-title em { font-style: italic; color: var(--moss); }
.lede { font-size: 1.1rem; color: var(--mid); max-width: 58ch; margin-top: 1.25rem; }

/* Blog index */
.blog-head { padding: 9rem 5rem 3rem; border-bottom: 1px solid var(--rule); }
.post-list { list-style: none; padding: 1rem 5rem 6rem; display: grid; }
.post-item { border-bottom: 1px solid var(--rule); }
.post-item a {
  display: grid; grid-template-columns: 11rem minmax(0, 1fr); gap: 0.5rem 2.5rem;
  padding: 2.25rem 0; text-decoration: none; color: inherit;
}
.post-item a:hover .post-title { color: var(--terra); }
.post-meta { font-family: 'DM Mono', monospace; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--mid); padding-top: 0.45rem; display: grid; gap: 0.35rem; align-content: start; }
.post-tag { color: var(--moss); }
.post-title { font-family: 'Playfair Display', serif; font-weight: 700; font-size: 1.6rem; line-height: 1.2; color: var(--ink); transition: color 0.2s; }
.post-summary { color: var(--mid); max-width: 62ch; margin-top: 0.5rem; }
.post-body-col { min-width: 0; }

/* Article */
.article-head { padding: 9rem 1.5rem 2.5rem; max-width: 46rem; margin: 0 auto; }
.article-head .meta { font-family: 'DM Mono', monospace; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--mid); margin-top: 1.5rem; }
.prose { max-width: 46rem; margin: 0 auto; padding: 0 1.5rem; }
.prose > * + * { margin-top: 1.25rem; }
.prose h2 { font-family: 'Playfair Display', serif; font-size: 1.6rem; line-height: 1.25; margin-top: 3rem; }
.prose h3 { font-family: 'Playfair Display', serif; font-size: 1.25rem; margin-top: 2rem; }
.prose ul, .prose ol { padding-left: 1.4rem; }
.prose li + li { margin-top: 0.4rem; }
.prose blockquote { border-left: 3px solid var(--moss); padding-left: 1.5rem; font-style: italic; color: var(--mid); }
.prose img { max-width: 100%; height: auto; display: block; }
.prose figcaption, .wide figcaption { font-family: 'DM Mono', monospace; font-size: 11px; letter-spacing: 0.05em; color: var(--mid); margin-top: 0.6rem; }
.wide { max-width: 72rem; margin: 3rem auto; padding: 0 1.5rem; }
.wide iframe { display: block; width: 100%; border: 0; background: transparent; }
.article-foot { max-width: 46rem; margin: 4rem auto 6rem; padding: 2rem 1.5rem 0; border-top: 1px solid var(--rule); display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-family: 'DM Mono', monospace; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; }
.article-foot a { text-decoration: none; }

/* Footer (same as the homepage) */
footer {
  background: var(--ink); color: var(--parchment);
  padding: 3.5rem 5rem;
  display: flex; align-items: center; justify-content: space-between;
}
.footer-logo {
  font-family: 'DM Mono', monospace; font-size: 13px;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--parchment); display: flex; align-items: center; gap: 9px;
}
.footer-meta {
  font-family: 'DM Mono', monospace; font-size: 11px;
  color: rgba(245,240,232,0.6); letter-spacing: 0.05em;
  text-align: right; line-height: 1.8;
}
.footer-meta a { color: inherit; }

@media (max-width: 900px) {
  nav { padding: 1rem 1.5rem; }
  nav ul { display: none; }
  .nav-mobile-link { display: inline; }
  .blog-head { padding: 7rem 1.5rem 2rem; }
  .post-list { padding: 0.5rem 1.5rem 4rem; }
  .post-item a { grid-template-columns: 1fr; padding: 1.75rem 0; }
  .post-meta { padding-top: 0; grid-auto-flow: column; justify-content: start; gap: 1rem; }
  .article-head { padding-top: 7rem; }
  .wide { padding: 0 0.5rem; }
  footer { padding: 2.5rem 1.5rem; flex-direction: column; gap: 1rem; text-align: center; }
  .footer-meta { text-align: center; }
}

/* Comments */
.comments { max-width: 46rem; margin: 4rem auto 0; padding: 0 1.5rem; }
.comments h2 { font-family: 'Playfair Display', serif; font-size: 1.6rem; line-height: 1.25; }
.comments h2 .comments-count { font-family: 'DM Mono', monospace; font-size: 0.9rem; font-weight: 400; color: var(--mid); margin-left: 0.4rem; }
.comment-list { margin-top: 1.5rem; display: grid; gap: 0; }
.comment-thread { border-top: 1px solid var(--rule); padding: 1.5rem 0; }
.comment-thread:last-child { border-bottom: 1px solid var(--rule); }
.comment-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.25rem 0.9rem; }
.comment-name { font-weight: 500; }
.comment-badge { font-family: 'DM Mono', monospace; font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--warm-white); background: var(--moss); padding: 0.1rem 0.5rem; border-radius: 2px; }
.comment-date { font-family: 'DM Mono', monospace; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--mid); }
.comment-text { margin-top: 0.4rem; white-space: pre-wrap; overflow-wrap: anywhere; }
.comment-replies { margin: 1.25rem 0 0 1.25rem; padding-left: 1.25rem; border-left: 2px solid var(--moss-light); display: grid; gap: 1.25rem; }
.comment-empty { color: var(--mid); font-style: italic; }
.comment-form { margin-top: 2.5rem; display: grid; gap: 1.1rem; }
.comment-form h3 { font-family: 'Playfair Display', serif; font-size: 1.25rem; }
.comment-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.comment-form label { display: grid; gap: 0.35rem; font-family: 'DM Mono', monospace; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--mid); }
.comment-form label small { text-transform: none; letter-spacing: 0.02em; font-size: 11px; }
.comment-form input, .comment-form textarea {
  font: 17px/1.6 'Lora', Georgia, serif; color: var(--ink); background: #fff;
  border: 1px solid var(--rule); border-radius: 2px; padding: 0.6rem 0.75rem; width: 100%;
}
.comment-form textarea { min-height: 8rem; resize: vertical; }
.comment-form input:focus, .comment-form textarea:focus { outline: 2px solid var(--terra); outline-offset: 1px; border-color: var(--terra); }
.comment-form button {
  justify-self: start; font-family: 'DM Mono', monospace; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase;
  background: var(--terra); color: var(--warm-white); border: 0; padding: 0.85rem 1.6rem; cursor: pointer; border-radius: 2px;
}
.comment-form button:hover { background: var(--ink); }
.comment-form button:disabled { opacity: 0.6; cursor: default; }
.comment-form .note { font-size: 0.9rem; color: var(--mid); }
.comment-status { font-size: 0.95rem; min-height: 1.5em; }
.comment-status.ok { color: var(--moss); }
.comment-status.err { color: var(--terra); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 900px) { .comment-form .row { grid-template-columns: 1fr; } .comment-replies { margin-left: 0.25rem; padding-left: 1rem; } }

/* Byline author note at the end of each post */
.author-note { max-width: 46rem; margin: 3.5rem auto 0; padding: 1.75rem 1.5rem 0; border-top: 1px solid var(--rule); display: grid; grid-template-columns: 4.5rem minmax(0, 1fr); gap: 1.25rem; align-items: start; }
.author-mark, .author-photo { width: 4.5rem; height: 4.5rem; border-radius: 50%; }
.author-mark { background: var(--moss); display: grid; place-items: center; }
.author-mark svg { width: 2.6rem; height: 2.6rem; }
.author-photo { object-fit: cover; display: block; }
.author-name { font-family: 'DM Mono', monospace; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--terra); margin-bottom: 0.3rem; }
.author-note p { color: var(--mid); font-size: 0.98rem; }
@media (max-width: 600px) { .author-note { grid-template-columns: 3.25rem minmax(0, 1fr); gap: 1rem; } .author-mark, .author-photo { width: 3.25rem; height: 3.25rem; } .author-mark svg { width: 1.9rem; height: 1.9rem; } }
