/* danielpirciu.com · stylesheet comun. Tokens din Daniel-Brand/output/colors_and_type.css */
:root {
  --paper-0: #FBF9F5; --paper-1: #F5F2EB; --paper-2: #ECE7DC; --paper-3: #DDD6C5;
  --ink-0: #141210; --ink-1: #2A2724; --ink-2: #5C5852; --ink-3: #8F8A82; --ink-4: #BAB4A8;
  --signal: #D6342B; --solar: #FFE93B; --solar-wash: #FFF6B0; --good: #1F7A4A;
  --link: #1F3A8A; --link-hover: #0F2766;
  --surface: var(--paper-0); --panel: var(--paper-1); --rule: var(--paper-3);
  --text: var(--ink-1); --text-strong: var(--ink-0); --text-muted: var(--ink-2); --on-ink: var(--paper-0);
  --f-display: "Fraunces", "Tiempos", Georgia, serif;
  --f-sans: "Inter Tight", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-6: 24px; --s-8: 32px; --s-10: 40px; --s-12: 48px; --s-16: 64px; --s-20: 80px;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; overflow-x: clip; }
body { background: var(--surface); color: var(--text); font-family: var(--f-sans); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: var(--link); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { color: var(--link-hover); }
:focus-visible { outline: 2px solid var(--link); outline-offset: 3px; }
img { max-width: 100%; height: auto; }
.wrap { max-width: 1080px; margin-inline: auto; padding-inline: clamp(16px, 4vw, 40px); }
.mono { font-family: var(--f-mono); font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); }

/* antet */
.top { display: flex; justify-content: space-between; align-items: center; gap: var(--s-4); padding-block: var(--s-6); }
.wordmark { font-family: var(--f-display); font-weight: 700; font-size: 20px; line-height: 1; color: var(--text-strong); text-decoration: none; letter-spacing: -.01em; }
.wordmark span { color: var(--signal); }
.top nav { display: flex; gap: var(--s-6); font-size: 15px; font-weight: 600; }
.top nav a { color: var(--text-strong); text-decoration: none; white-space: nowrap; }
.top nav a:hover, .top nav a[aria-current="page"] { text-decoration: underline; }

.crumbs { font-size: 14px; color: var(--text-muted); padding-top: var(--s-6); }
.crumbs a { color: var(--text-muted); }
.crumbs span { margin-inline: var(--s-2); }

/* articol */
.page-head { padding-block: var(--s-8) var(--s-10); max-width: 820px; }
.page-head h1 { margin: var(--s-3) 0 0; font-weight: 800; font-size: clamp(32px, 4.8vw, 52px); line-height: 1.05; letter-spacing: -.03em; color: var(--text-strong); text-wrap: balance; }
.page-head .lede { margin: var(--s-6) 0 0; font-size: clamp(18px, 1.8vw, 20px); line-height: 1.55; color: var(--text); max-width: 62ch; }
.page-head .meta { margin-top: var(--s-6); display: flex; gap: var(--s-4); flex-wrap: wrap; font-size: 14px; color: var(--text-muted); }
.hl { background: linear-gradient(transparent 62%, var(--solar) 62%); }

.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 2px solid var(--ink-0); margin-bottom: var(--s-12); }
.stats div { padding: var(--s-4) var(--s-4) var(--s-6) 0; border-bottom: 1px solid var(--rule); }
.stats b { display: block; font-family: var(--f-display); font-weight: 700; font-size: clamp(28px, 3.4vw, 38px); line-height: 1.1; color: var(--text-strong); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.stats span { display: block; margin-top: var(--s-1); font-size: 14px; line-height: 20px; color: var(--text-muted); }
@media (min-width: 52rem) { .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); } .stats div + div { padding-left: var(--s-4); border-left: 1px solid var(--rule); } .stats.three { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.tldr { background: var(--panel); border: 1px solid var(--rule); padding: var(--s-6) var(--s-8); margin-bottom: var(--s-12); max-width: 820px; }
.tldr h2 { margin: 0 0 var(--s-3); font-size: 18px; letter-spacing: 0; }
.tldr ul { margin: 0; padding-left: 1.2em; display: grid; gap: var(--s-2); }

.article { max-width: 760px; }
.article h2 { margin: var(--s-12) 0 var(--s-4); font-weight: 700; font-size: clamp(24px, 2.6vw, 30px); line-height: 1.2; letter-spacing: -.02em; color: var(--text-strong); text-wrap: balance; }
.article h3 { margin: var(--s-8) 0 var(--s-3); font-size: 19px; line-height: 1.3; color: var(--text-strong); }
.article p, .article ul, .article ol { margin: 0 0 var(--s-4); }
.article ul, .article ol { padding-left: 1.3em; display: grid; gap: var(--s-2); }
.article blockquote { margin: var(--s-6) 0; padding: var(--s-4) var(--s-6); border-left: 0; background: var(--panel); font-size: 17px; }
.article b, .article strong { color: var(--text-strong); }
.callout { margin: var(--s-6) 0; padding: var(--s-4) var(--s-6); background: var(--solar-wash); border: 1px solid var(--ink-0); }
.callout p:last-child { margin-bottom: 0; }

.table-box { overflow-x: auto; margin: var(--s-4) 0 var(--s-6); }
table { border-collapse: collapse; width: 100%; font-size: 15px; font-variant-numeric: tabular-nums; }
th, td { text-align: left; padding: var(--s-2) var(--s-3); border-bottom: 1px solid var(--rule); vertical-align: top; }
th { font-family: var(--f-mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--text-strong); border-bottom: 2px solid var(--ink-0); }

/* grafice simple din HTML */
.chart { margin: var(--s-4) 0 var(--s-8); display: grid; gap: var(--s-2); }
.chart figcaption { font-size: 14px; color: var(--text-muted); margin-bottom: var(--s-2); }
.bar { display: grid; grid-template-columns: minmax(0, 11rem) minmax(0, 1fr) 4rem; gap: var(--s-3); align-items: center; font-size: 14px; }
.bar i { display: block; height: 14px; background: var(--paper-2); position: relative; }
.bar i::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--w); background: var(--ink-0); }
.bar.hot i::after { background: #F5D900; box-shadow: inset 0 0 0 1.5px var(--ink-0); }
.bar em { font-style: normal; font-family: var(--f-mono); font-size: 13px; text-align: right; color: var(--text-strong); }
@media (max-width: 40rem) { .bar { grid-template-columns: minmax(0, 7.5rem) minmax(0, 1fr) 3.4rem; gap: var(--s-2); } }

/* carduri de resurse */
.cards { display: grid; gap: var(--s-4); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 52rem) { .cards.two { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
a.card { display: grid; gap: var(--s-2); align-content: start; padding: var(--s-6); background: var(--panel); text-decoration: none; color: var(--text); border: 1px solid var(--rule); }
a.card:hover { border-color: var(--ink-0); }
a.card strong { font-size: 20px; line-height: 1.3; color: var(--text-strong); }
a.card .more { font-weight: 700; color: var(--link); }
a.card.feature { background: var(--ink-0); color: var(--paper-2); border-color: var(--ink-0); }
a.card.feature strong { color: var(--on-ink); font-size: clamp(22px, 2.4vw, 28px); }
a.card.feature .mono { color: var(--solar); }
a.card.feature .more { color: var(--solar); }
.section { padding-block: var(--s-12) 0; }
.section > h2 { margin: 0 0 var(--s-2); font-size: clamp(22px, 2.4vw, 28px); letter-spacing: -.02em; color: var(--text-strong); }
.section > p { margin: 0 0 var(--s-6); color: var(--text-muted); max-width: 62ch; }
.list-plain { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; border-top: 1px solid var(--rule); }
.list-plain li { border-bottom: 1px solid var(--rule); }
.list-plain a { display: grid; gap: var(--s-1); padding: var(--s-4) 0; text-decoration: none; color: var(--text); }
.list-plain a strong { color: var(--text-strong); font-size: 18px; }
.list-plain a:hover strong { text-decoration: underline; }

/* autor + intrebari */
.author { margin-top: var(--s-16); display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--s-6); align-items: start; padding: var(--s-8); background: var(--panel); max-width: 820px; }
.author img { width: 88px; height: 88px; border-radius: 50%; border: 2px solid var(--ink-0); }
.author p { margin: 0 0 var(--s-3); font-size: 16px; }
.author p:last-child { margin: 0; }
@media (max-width: 40rem) { .author { grid-template-columns: minmax(0, 1fr); } }

.faq { max-width: 760px; }
.faq details { border-bottom: 1px solid var(--rule); padding-block: var(--s-4); }
.faq summary { cursor: pointer; font-weight: 700; color: var(--text-strong); }
.faq details p { margin: var(--s-3) 0 0; }

.foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--s-4); margin-top: var(--s-20); padding-block: var(--s-8); border-top: 1px solid var(--rule); font-size: 13px; color: var(--text-muted); }

/* link spre formatul original */
.source { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--s-2) var(--s-3); margin: calc(var(--s-6) * -1) 0 var(--s-10); padding: var(--s-3) var(--s-4); border: 1px solid var(--rule); background: var(--panel); max-width: 820px; font-size: 15px; }
.source a { font-weight: 700; }
.source a::after { content: " \2197"; }
.source .note { color: var(--text-muted); }
