/* Quiet Blog — Laroo Labs AI Newsletter
   Shared stylesheet for the archive home and issue pages.
   Extracted from archive-redesign/v3/quiet-blog/mockups (mock overlay removed).
   Indigo #4F46E5 is used ONLY for underlined links, focus rings and the
   subscribe button (solid indigo, white visible label). */
:root {
  --bg: #FFFFFE;
  --text: #1A1A1A;
  --muted: #555555;
  --rule: #DDDDDD;
  --link: #4F46E5;
  --link-visited: #4338CA;
  --link-hover-bg: #EEF2FF;
  --soft: #F5F5F5;
  --measure: 36rem;
  --font-ui: Helvetica, Arial, sans-serif;
  --font-body: Verdana, Helvetica, Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
body.reading { line-height: 1.75; }

/* Links: always underlined via border-bottom (CVD-safe) */
a:link {
  color: var(--link);
  text-decoration: none;
  border-bottom: 1px solid var(--link);
  padding-bottom: 1px;
}
a:visited {
  color: var(--link-visited);
  text-decoration: none;
  border-bottom: 1px dotted var(--link-visited);
  padding-bottom: 1px;
}
a:hover {
  background: var(--link-hover-bg);
  border-bottom-color: var(--link);
}
a:focus-visible {
  outline: 2px solid var(--link);
  outline-offset: 2px;
}
.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--text); color: #fff; padding: 8px 12px; z-index: 20;
  font-family: var(--font-ui); font-weight: 700; text-decoration: none; border: 0;
}
.skip:link, .skip:visited { color: #fff; border: 0; }
.skip:focus { left: 0; }

.wrap {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 32px 20px 64px;
}

/* Header */
header.site {
  margin-bottom: 2.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--rule);
}
body.reading header.site { margin-bottom: 1.75rem; }
header.site .name {
  margin: 0 0 0.35rem;
  font-family: var(--font-ui);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
}
body.reading header.site .name { font-size: 1.1rem; letter-spacing: 0; }
header.site .name a,
header.site .name a:visited { color: var(--text); border-bottom: none; }
header.site .name a:hover { background: transparent; color: var(--link); }
header.site .tagline {
  margin: 0 0 0.85rem;
  font-size: 0.875rem;
  color: var(--muted);
  font-family: var(--font-ui);
}
nav.primary {
  font-family: var(--font-ui);
  font-size: 0.8125rem;
  font-weight: 600;
}
nav.primary a { margin-right: 1.1rem; }
nav.primary a[aria-current="page"] {
  color: var(--text);
  border-bottom: 2px solid var(--text);
}

/* Archive list */
.intro {
  margin: 0 0 2rem;
  color: var(--muted);
  font-size: 0.9375rem;
}
.issue {
  margin: 0;
  padding: 1.35rem 0;
  border-bottom: 1px solid var(--rule);
}
.issue:first-of-type { border-top: 1px solid var(--rule); }
.issue .meta {
  margin: 0 0 0.35rem;
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.02em;
}
.issue .meta .latest {
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0;
}
.issue h2 {
  margin: 0 0 0.4rem;
  font-family: var(--font-ui);
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.35;
}
.issue h2 a,
.issue h2 a:visited { color: var(--text); border-bottom: none; }
.issue h2 a:hover {
  color: var(--link);
  background: transparent;
  border-bottom: 1px solid var(--link);
}
.issue .blurb {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.55;
}

/* Issue page */
.crumb {
  margin: 0 0 1.75rem;
  font-family: var(--font-ui);
  font-size: 0.8125rem;
  color: var(--muted);
}
.crumb a { font-weight: 600; }

article.post h1 {
  margin: 0 0 0.5rem;
  font-family: var(--font-ui);
  font-size: 1.65rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
}
.dateline {
  margin: 0 0 1.75rem;
  font-family: var(--font-ui);
  font-size: 0.8125rem;
  color: var(--muted);
  font-weight: 600;
}
article.post p { margin: 0 0 1.15em; }
article.post h2 {
  margin: 1.75em 0 0.6em;
  font-family: var(--font-ui);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.35;
}
article.post h3 {
  margin: 1.5em 0 0.45em;
  font-family: var(--font-ui);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.4;
}
article.post .section + h2 { margin-top: 0.6em; }
article.post ul { margin: 0 0 1.15em; padding: 0 0 0 1.25em; }
article.post li { margin: 0 0 0.4em; }
article.post figure { margin: 1.5em 0 1em; }
article.post img {
  display: block;
  max-width: 100%;
  height: auto;
  border: 0;
}
.note {
  margin: 1em 0;
  padding: 0.85em 1em;
  background: var(--soft);
  border-left: 3px solid var(--link);
}
.note > :last-child { margin-bottom: 0; }
.try {
  margin: 1.25em 0;
  padding: 1em 1.1em;
  border: 1px solid var(--rule);
}
.try .lbl {
  margin: 0 0 0.4em;
  font-family: var(--font-ui);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
article.post .section {
  margin: 2em 0 0.5em;
  font-family: var(--font-ui);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  border-top: 1px solid var(--rule);
  padding-top: 1.25em;
}
.end {
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--rule);
  font-size: 0.9rem;
  color: var(--muted);
}
.end .links { margin: 0.75em 0; font-family: var(--font-ui); font-size: 0.8125rem; font-weight: 600; }
.end .links a { margin-right: 1rem; }
.end .fine { font-size: 0.75rem; }

/* Prev / next */
.pager {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--rule);
  font-family: var(--font-ui);
  font-size: 0.8125rem;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem;
}
.pager .dir { color: var(--muted); font-weight: 600; display: block; margin-bottom: 0.2rem; }
.pager .off { color: var(--muted); opacity: 0.7; }
.pager .next { text-align: right; margin-left: auto; }
.pager a, .pager a:visited { font-weight: 700; border-bottom: none; }
.pager a:hover { border-bottom: 1px solid var(--link); }

/* Footer */
footer.site {
  margin-top: 2.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--rule);
  font-family: var(--font-ui);
  font-size: 0.75rem;
  color: var(--muted);
}
footer.site a { margin-right: 0.75rem; }
.try p:last-child { margin: 0; }

/* Subscribe page (form) */
main.subscribe h1 {
  margin: 0 0 0.75rem;
  font-family: var(--font-ui);
  font-size: 1.65rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
}
main.subscribe p { margin: 0 0 1.15em; }
main.subscribe .fine { font-size: 0.75rem; color: var(--muted); }
form.subscribe {
  margin: 1.75rem 0 1.5rem;
  padding: 1.25rem 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  font-family: var(--font-ui);
}
form.subscribe label {
  display: block;
  margin: 0 0 0.4rem;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--text);
}
form.subscribe input[type="email"] {
  display: block;
  width: 100%;
  max-width: 24rem;
  margin: 0 0 0.9rem;
  padding: 0.6rem 0.7rem;
  font-family: var(--font-ui);
  font-size: 1rem; /* >=16px: no iOS zoom on focus */
  color: var(--text);
  background: var(--bg);
  border: 1px solid #8A8A8A; /* hairline, 3:1+ against bg */
  border-radius: 0;
  -webkit-appearance: none;
  appearance: none;
}
form.subscribe input::placeholder { color: #767676; }
form.subscribe input:focus,
form.subscribe input:focus-visible {
  outline: 2px solid var(--link);
  outline-offset: 2px;
  border-color: var(--link);
}
form.subscribe input[aria-invalid="true"] { border: 2px solid var(--text); }
form.subscribe button {
  display: inline-block;
  padding: 0.6rem 1.25rem;
  font-family: var(--font-ui);
  font-size: 0.9375rem;
  font-weight: 700;
  color: #fff;
  background: var(--link);
  border: 1px solid var(--link);
  border-radius: 0;
  cursor: pointer;
}
form.subscribe button:hover { background: var(--link-visited); border-color: var(--link-visited); }
form.subscribe button:focus-visible { outline: 2px solid var(--link); outline-offset: 3px; }
/* Honeypot: off-screen, not display:none (some bots skip hidden fields) */
form.subscribe .hp {
  position: absolute !important;
  left: -10000px; top: auto;
  width: 1px; height: 1px;
  overflow: hidden;
}
/* Error: text + heavy rule, never colour alone */
.form-error {
  margin: 1.25rem 0 0;
  padding: 0.75em 1em;
  font-family: var(--font-ui);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text);
  background: var(--soft);
  border-left: 4px solid var(--text);
}
.form-error[hidden] { display: none; }
