/* Shared styles for /blog/*.html articles.
   Extracted from the article inline <style> so every article stays consistent.
   Readability pass: narrower reading measure + serif body prose. The noir
   palette, wallpaper, and Courier New on headings/code are deliberately kept. */

html, body { height: 100%; margin: 0; }
body {
  background-image: url('/static/about_us.jpg');
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #f0e6d2;
  font-family: 'Courier New', monospace;
  line-height: 1.5;
}

.top-nav {
  position: fixed;
  top: 20px;
  right: 30px;
  z-index: 1001;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.top-nav a {
  display: inline-block;
  background-color: rgba(212, 175, 55, 0.9);
  color: #1a1a1a;
  text-decoration: none;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: bold;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.5);
}
.top-nav a:hover { background-color: #d4af37; transform: scale(1.03); }

/* Reading column. Narrowed to ~38rem for a comfortable measure; opacity
   raised to 0.97 so the wallpaper no longer bleeds through behind text.
   border-box keeps the padded box within max-width. */
.container {
  box-sizing: border-box;
  max-width: 38rem;
  margin: 90px auto 40px auto;
  padding: 28px 24px;
  background-color: rgba(26, 26, 26, 0.97);
  border-radius: 10px;
  border: 2px solid #8b7355;
  box-shadow: 0 0 30px rgba(0,0,0,0.85);
}

/* Headings: unchanged. Courier New (inherited from body) + gold. */
h1 {
  text-align: center;
  color: #d4af37;
  font-size: 32px;
  margin: 0 0 10px 0;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
}
h2 {
  color: #c9a961;
  font-size: 20px;
  margin: 26px 0 10px 0;
  border-bottom: 2px solid #8b7355;
  padding-bottom: 8px;
}
h3 {
  color: #d4af37;
  font-size: 16px;
  margin: 20px 0 6px 0;
}

/* Body prose: serif for word-shape recognition, larger and looser. */
main.container p,
main.container li,
main.container td,
main.container th,
main.container blockquote {
  font-family: Georgia, "Iowan Old Style", "Times New Roman", serif;
  font-size: 17px;
  line-height: 1.7;
}
main.container p { margin-bottom: 1.4em; }

/* Meta paragraphs stay their own (smaller) sizes, but pick up the serif face.
   These prefix main.container so they outrank the body rule above. */
main.container p.dek { font-size: 14px; margin-bottom: 18px; }
main.container p.subtitle { font-size: 15px; margin-bottom: 22px; }
main.container p.note { font-size: 12.5px; }
main.container p.breadcrumb { font-size: 12px; }

.dek {
  text-align: center;
  font-style: italic;
  color: rgba(201,169,97,0.95);
  margin: 0 0 18px 0;
}
.subtitle {
  text-align: center;
  margin: 0 0 22px 0;
  color: rgba(240,230,210,0.92);
}

/* Lede: larger serif italic. Prefixed so it beats main.container p on size. */
main.container p.lede {
  font-family: Georgia, "Iowan Old Style", "Times New Roman", serif;
  font-size: 19px;
  line-height: 1.6;
  font-style: italic;
  opacity: 0.9;
  color: rgba(240,230,210,0.95);
}

ul { margin: 10px 0 0 18px; }

.breadcrumb {
  color: rgba(240,230,210,0.7);
  margin: 0 0 16px 0;
}
.breadcrumb a { color: #c9a961; text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

/* Code: unchanged, stays monospace. pre scrolls so long SQL lines never
   break the narrower column. */
pre {
  background: rgba(0,0,0,0.55);
  border: 1px solid rgba(212,175,55,0.35);
  border-left: 4px solid #8b7355;
  border-radius: 6px;
  padding: 14px 16px;
  overflow-x: auto;
  font-size: 13px;
  line-height: 1.6;
  color: #f5e9cf;
  margin: 14px 0;
}
code {
  background: rgba(212,175,55,0.14);
  color: #ffd700;
  padding: 1px 5px;
  border-radius: 3px;
  font-size: 13px;
}
pre code { background: none; color: inherit; padding: 0; font-size: 13px; }

/* Steps list: SQL keywords stay monospace, descriptions become serif. */
.steps { list-style: none; margin: 16px 0 0 0; padding: 0; counter-reset: step; }
.steps li {
  counter-increment: step;
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 9px 12px;
  border-left: 3px solid rgba(212,175,55,0.5);
  background: rgba(139,115,85,0.14);
  border-radius: 0 6px 6px 0;
  margin-bottom: 6px;
}
.steps li::before {
  content: counter(step);
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  line-height: 22px;
  text-align: center;
  border-radius: 50%;
  background: rgba(212,175,55,0.9);
  color: #1a1a1a;
  font-weight: bold;
  font-size: 12px;
}
.steps .clause {
  flex: 0 0 auto;
  min-width: 96px;
  color: #ffd700;
  font-weight: 700;
  font-size: 13px;
  font-family: "Courier New", monospace;
}
.steps .what {
  font-family: Georgia, "Iowan Old Style", "Times New Roman", serif;
  font-size: 17px;
  color: rgba(240,230,210,0.95);
}
.steps li.highlight { border-left-color: #ff6b6b; background: rgba(255,107,107,0.12); }

.table-wrap { overflow-x: auto; margin: 14px 0; }
table { border-collapse: collapse; width: 100%; min-width: 520px; font-size: 13px; }
th, td { border: 1px solid rgba(139,115,85,0.6); padding: 8px 10px; text-align: left; }
th { background: rgba(212,175,55,0.18); color: #ffd700; }
tr:nth-child(even) td { background: rgba(255,255,255,0.03); }

.err {
  margin: 14px 0;
  background: rgba(139,0,0,0.22);
  border-left: 4px solid #b04a4a;
  border-radius: 0 6px 6px 0;
  padding: 12px 14px;
}
.err p:first-child { margin-top: 0; color: #ff9d9d; font-weight: bold; }
.err p:last-child { margin-bottom: 0; }

.note {
  color: rgba(240,230,210,0.72);
  font-style: italic;
  border-top: 1px solid rgba(139,115,85,0.5);
  padding-top: 12px;
  margin-top: 18px;
}

.callout {
  margin-top: 18px;
  background: rgba(139,115,85,0.22);
  border-left: 4px solid #8b7355;
  padding: 12px 14px;
  border-radius: 6px;
}

/* Inline prose links: lighter gold than h2, underlined, body-sized so they
   read as links, not headings. The CTA button is excluded so it keeps its
   dark-on-gold button look. */
main.container p a:not(.cta),
main.container li a:not(.cta) {
  font-size: inherit;
  font-family: inherit;
  color: #E8C766;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  text-decoration-color: rgba(232, 199, 102, 0.45);
}
main.container p a:not(.cta):hover,
main.container li a:not(.cta):hover {
  text-decoration-color: #E8C766;
}

.cta {
  display: inline-block;
  margin-top: 14px;
  padding: 12px 26px;
  background-color: rgba(212,175,55,0.9);
  color: #1a1a1a;
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  font-size: 15px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.5);
  transition: all 0.2s ease;
}
.cta:hover { background-color: #d4af37; transform: scale(1.03); }

.copyright-footer {
  text-align: center;
  padding: 15px 0 22px 0;
  font-size: 12px;
  color: rgba(240, 230, 210, 0.9);
}

@media (max-width: 700px) {
  .container { margin: 80px 12px 30px 12px; padding: 22px 18px; }
  h1 { font-size: 24px; }
  .top-nav { right: 12px; }
  .steps li { flex-wrap: wrap; gap: 8px; }
  .steps .clause { min-width: 0; }
}
