/* Standalone stylesheet for the static blog (WS4).

   The colour and font values below are DUPLICATED from client/src/index.css
   on purpose — exactly as scripts/og/og-default.html duplicates them. A blog
   page is a hand-written HTML document with no Tailwind pass and no access to
   the SPA's custom properties, and the SPA's compiled CSS is hash-named
   (assets/index-*.css), so referencing it would couple every article to a
   build artefact name that changes on each deploy.

     #F5EFE7 = --background    (34 33% 94%)
     #FBF7F0 = --surface       (40 53% 97%)
     #1B1712 = --foreground    (30 18% 9%)
     #4A443C = --ink-3-strong  (30 18% 28%)
     #B8553A = --accent        (13 52% 47%)

   No @import (a second blocking round-trip) and no animations. */

:root {
  --background: #f5efe7;
  --surface: #fbf7f0;
  --foreground: #1b1712;
  --ink-3-strong: #4a443c;
  --accent: #b8553a;
  --accent-soft: rgba(184, 85, 58, 0.1);
  --accent-line: rgba(184, 85, 58, 0.3);
  --line: rgba(26, 22, 18, 0.08);
  --font-display: 'Fraunces', 'Times New Roman', serif;
  --font-sans: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'IBM Plex Mono', ui-monospace, monospace;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  font-size: 18px;
  line-height: 1.65;
}

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

pre,
table {
  display: block;
  max-width: 100%;
  overflow-x: auto;
}

a {
  color: var(--accent);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--surface);
  color: var(--foreground);
  padding: 10px 16px;
  z-index: 10;
}

.skip:focus {
  left: 8px;
  top: 8px;
}

.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

/* E2E 2026-10-07 MP9: the app's lockup («heinuntași.», italic, light, an
   accent dot), not a bold «HeiNuntași». */
.wordmark {
  font-family: var(--font-display);
  font-size: 24px;
  font-style: italic;
  font-weight: 300;
  line-height: 1;
  color: var(--foreground);
  text-decoration: none;
}

.wordmark-dot {
  color: var(--accent);
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
  font-size: 16px;
}

.site-nav a {
  display: inline-block;
  padding-block: 10px;
  text-decoration: none;
}

.site-nav .cta {
  border: 1px solid var(--accent-line);
  background: var(--accent-soft);
  border-radius: 3px;
  padding: 8px 14px;
}

main {
  max-width: 68ch;
  margin: 0 auto;
  padding: 32px 20px 56px;
}

h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 2rem;
  line-height: 1.2;
  margin: 0 0 12px;
}

h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.45rem;
  line-height: 1.25;
  margin: 40px 0 10px;
}

h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin: 26px 0 6px;
}

p,
ul,
ol {
  margin: 0 0 18px;
}

li {
  margin-bottom: 8px;
}

.lede,
.post-meta {
  color: var(--ink-3-strong);
}

.post-meta {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0 0 20px;
}

/* SEO PR 2 (D2): the byline directly under the article's H1. */
.post-byline {
  color: var(--ink-3-strong);
  margin: -4px 0 22px;
}

/* SEO PR 3 (M14): a 24 px target (WCAG 2.5.8). */
.post-byline a {
  display: inline-block;
  padding-block: 4px;
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* SEO PR 2 (D4): the corrections line before the CTA card. */
.corrections {
  color: var(--ink-3-strong);
  font-size: 0.9rem;
  margin: 32px 0 0;
}

blockquote {
  margin: 20px 0;
  padding: 4px 0 4px 18px;
  border-left: 2px solid var(--accent-line);
  color: var(--ink-3-strong);
}

code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  background: var(--accent-soft);
  padding: 1px 5px;
  border-radius: 3px;
  /* SEO PR 2 (P21): example URLs are inline code now; a 33-character link
     must wrap on a 320 px phone instead of widening the page. */
  overflow-wrap: anywhere;
}

pre {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 14px 16px;
}

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

table {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.95rem;
}

th,
td {
  border: 1px solid var(--line);
  padding: 8px 10px;
  text-align: left;
}

.post-list {
  list-style: none;
  padding: 0;
}

.card {
  border-top: 1px solid var(--line);
  padding-top: 20px;
  margin-bottom: 26px;
}

.card h2 {
  margin-top: 0;
  font-size: 1.3rem;
}

.card h2 a {
  text-decoration: none;
}

.faq,
.related,
.cta-card {
  max-width: 68ch;
  margin: 36px auto 0;
}

.cta-card {
  background: var(--surface);
  border: 1px solid var(--accent-line);
  border-radius: 3px;
  padding: 22px 24px;
}

.cta-card h2 {
  margin-top: 0;
}

.cta-button {
  display: inline-block;
  background: var(--accent);
  color: var(--surface);
  text-decoration: none;
  border-radius: 3px;
  padding: 11px 20px;
  font-weight: 600;
}

.related ul {
  padding-left: 20px;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--surface);
  padding: 22px 20px 32px;
  color: var(--ink-3-strong);
  font-size: 0.95rem;
}

.site-footer p {
  margin: 0 0 8px;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0 18px;
}

/* MP9: a 44 px-ish tap target per link on a phone. */
.footer-nav a {
  display: inline-block;
  padding-block: 10px;
}

/* SEO PR 2 (D6, P12): the short legal identity and ANPC's SAL pictogram in
   the 250 × 50 box OPANPC 270/2026 requires (ANPC's 201 × 50 file, contained,
   never stretched). Links keep a ≥ 24 px hit height (WCAG 2.5.8). */
.site-footer .legal-line {
  font-size: 0.85rem;
  margin: 14px 0 6px;
}

.legal-line a {
  display: inline-block;
  padding-block: 4px;
}

.anpc-sal {
  display: inline-block;
}

/* SEO PR 3 (M19): the 201 × 50 mark sits at the box's left edge, in line
   with the legal text when the two stack. */
.anpc-sal img {
  display: block;
  width: 250px;
  height: 50px;
  max-width: none;
  object-fit: contain;
  object-position: left center;
}

/* SEO PR 2 (P19): the header CTA keeps one line on a 360 px phone. */
.site-nav .cta {
  white-space: nowrap;
}

@media (max-width: 480px) {
  /* Body stays at the base 18px on purpose — long-form Romanian copy on a
     phone is the whole point of these pages, and a step down buys ~2
     characters per line while costing legibility. Only the headline scales. */
  h1 {
    font-size: 1.7rem;
  }

  .site-header {
    padding: 14px 16px;
  }

  main {
    padding: 24px 16px 44px;
  }
}
