/* Heti AI-hírlevél — minimalista, olvasható tipográfia.
 * Mobile-first, max-width ~720px, system fontok.
 * A material oldalra majd átstílozható.
 */

:root {
  color-scheme: dark;
  --fg: #e8e7e4;
  --fg-soft: #c8c6c0;
  --fg-muted: #8e8b84;
  --bg: #15161a;
  --bg-soft: #1d1f24;
  --accent: #e88b54;
  --accent-soft: #3a2a1f;
  --border: #2a2c32;
  --code-bg: #1d1f24;
  --link: #7eaeff;
  --link-visited: #c19dff;
  --serif: Charter, "Bitstream Charter", "Sitka Text", Cambria, Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.65;
  font-feature-settings: "liga", "kern";
  text-rendering: optimizeLegibility;
}

.wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 4rem;
}

header.masthead {
  border-bottom: 1px solid var(--border);
  padding-bottom: 1.25rem;
  margin-bottom: 2rem;
  font-family: var(--sans);
}

header.masthead .brand {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--fg-muted);
  margin: 0 0 0.5rem;
}

header.masthead .brand a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px dotted var(--fg-muted);
}

header.masthead .meta {
  font-size: 0.85rem;
  color: var(--fg-muted);
  margin: 0.25rem 0 0;
}

header.masthead .meta .pill {
  display: inline-block;
  padding: 0.1em 0.55em;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.03em;
}

h1 {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 2rem;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0 0 1.1rem;
  color: var(--fg);
}

h2 {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 1.3rem;
  line-height: 1.3;
  letter-spacing: -0.005em;
  margin: 2.5rem 0 0.75rem;
  color: var(--fg);
  padding-top: 0.3rem;
}

h2:first-of-type { margin-top: 1.5rem; }

h3 {
  font-family: var(--sans);
  font-size: 1.08rem;
  font-weight: 600;
  margin: 1.75rem 0 0.6rem;
}

p {
  margin: 0 0 1.1rem;
  color: var(--fg);
}

.lead {
  font-size: 1.12rem;
  color: var(--fg-soft);
  border-left: 3px solid var(--accent);
  padding-left: 1rem;
  margin: 1.5rem 0 2rem;
}

a {
  color: var(--link);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}
a:visited { color: var(--link-visited); }
a:hover { text-decoration-thickness: 2px; }

strong, b { font-weight: 700; color: var(--fg); }
em, i { font-style: italic; }

blockquote {
  border-left: 3px solid var(--border);
  padding: 0.3rem 1rem;
  margin: 1.5rem 0;
  color: var(--fg-soft);
  font-style: italic;
}

ul, ol {
  padding-left: 1.5rem;
  margin: 0 0 1.2rem;
}
li { margin: 0.35rem 0; }
li > p { margin: 0 0 0.5rem; }

code {
  font-family: var(--mono);
  font-size: 0.92em;
  background: var(--code-bg);
  padding: 0.1em 0.35em;
  border-radius: 3px;
  color: var(--fg);
}

pre {
  background: var(--code-bg);
  border-radius: 6px;
  padding: 1rem;
  overflow-x: auto;
  font-size: 0.88rem;
  line-height: 1.5;
  margin: 1.2rem 0;
}
pre code {
  background: transparent;
  padding: 0;
}

hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 2.5rem 0 1.5rem;
}

table {
  border-collapse: collapse;
  width: 100%;
  margin: 1.2rem 0;
  font-size: 0.95rem;
}
th, td {
  text-align: left;
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid var(--border);
}
th {
  font-family: var(--sans);
  font-weight: 600;
  background: var(--bg-soft);
}

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

.placeholder-image {
  border: 1px dashed var(--border);
  background: var(--bg-soft);
  color: var(--fg-muted);
  padding: 1.5rem;
  text-align: center;
  font-family: var(--sans);
  font-size: 0.9rem;
  margin: 1.5rem 0;
  border-radius: 4px;
}

.hero-image {
  display: block;
  width: 100%;
  height: auto;
  margin: 1.5rem 0 2rem;
  border-radius: 8px;
}

/* ITLine top-nav — minden hírlevél tetejére, hogy az olvasó vissza tudjon
   menni a Materialsra és az itline.hu-ra (különben a cikk standalone HTML
   és nincs nav-back). */
.itline-topnav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15, 15, 18, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(251, 191, 36, 0.20);
  font-family: var(--sans);
}
.itline-topnav-inner {
  max-width: 720px;
  margin: 0 auto;
  padding: 0.65rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.itline-brand {
  display: inline-flex;
  align-items: baseline;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.5px;
  color: #f3f4f6;
}
.itline-brand-mark { color: #f3f4f6; }
.itline-brand-mark-accent { color: #fbbf24; }
.itline-brand:hover .itline-brand-mark-accent { color: #f59e0b; }
.itline-nav-links {
  display: inline-flex;
  align-items: center;
  gap: 1.25rem;
  font-size: 0.9rem;
}
.itline-nav-links a {
  color: #d1d5db;
  text-decoration: none;
  transition: color 120ms ease;
}
.itline-nav-links a:hover { color: #fbbf24; }
@media (max-width: 480px) {
  .itline-topnav-inner { padding: 0.55rem 1rem; }
  .itline-nav-links { gap: 0.85rem; font-size: 0.85rem; }
}

footer.colophon {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  color: var(--fg-muted);
  font-size: 0.88rem;
  font-family: var(--sans);
  line-height: 1.55;
}
footer.colophon a { color: var(--fg-soft); }

/* Kis finomítás: a source-lista link-ek tömörebbek */
h2#források + ul a,
h2#sources + ul a { text-decoration-thickness: 1px; }

@media (min-width: 960px) {
  html { font-size: 18px; }
  .wrap { padding: 4rem 1.5rem 5rem; }
  h1 { font-size: 2.3rem; }
}
