/*
Theme Name: Cassian Tax
Theme URI: https://blog.cassian.tax/
Author: Cassian Tax
Description: Tema blogului Cassian Tax: același aspect ca cassian.tax (Playfair Display + Lato, roșul din logo, o singură temă luminoasă).
Version: 1.1
Requires at least: 6.0
Requires PHP: 8.0
Text Domain: cassian-tax
*/

/* Same tokens and building blocks as cassian.tax/index.html and the calculator pages. */
:root {
  --bg: #ffffff; --fg: #141414; --muted: #5c5c60; --rule: #dcdcde;
  --peach: #e30f13; --peach-ink: #c40c10; --slab: #f3f3f4;
  --display: "Playfair Display", Georgia, "Times New Roman", serif;
  --body: "Lato", "Segoe UI", system-ui, -apple-system, sans-serif;
  --wrap: 1120px;
  color-scheme: light;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--body); font-size: 17px; line-height: 1.6; }
a { color: var(--peach-ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--fg); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--peach-ink); outline-offset: 3px; }
img { max-width: 100%; height: auto; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: clamp(16px, 5vw, 48px); }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* header, as on the calculator pages */
.site-header { border-bottom: 1px solid var(--rule); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 18px; flex-wrap: wrap; }
.logo { position: relative; display: block; width: 180px; aspect-ratio: 1024 / 377; }
.logo img { display: block; width: 100%; height: auto; -webkit-user-drag: none; user-select: none; -webkit-touch-callout: none; }
.logo::after { content: ""; position: absolute; inset: 0; }
.site-nav { display: flex; gap: 6px 18px; font-size: 14px; flex-wrap: wrap; }

main { padding-block: clamp(40px, 7vw, 88px); }

/* blog index: giant serif statement, list like "Ce scriu." on the home page */
.statement { font-family: var(--display); font-weight: 700; font-size: clamp(56px, 10vw, 120px); line-height: .98; letter-spacing: -.01em; margin: 0 0 16px; }
.statement em { font-style: normal; color: var(--peach); }
.lead { color: var(--muted); max-width: 62ch; margin: 0 0 40px; font-size: 18px; }
.posts { display: grid; }
.post-item { padding-block: 26px; border-top: 1px solid var(--rule); display: grid; gap: 8px; }
.post-item:last-child { border-bottom: 1px solid var(--rule); }
.meta { font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
.meta a { color: var(--muted); text-decoration: none; }
.meta a:hover { color: var(--peach-ink); }
.post-item h2 { margin: 0; font-family: var(--display); font-weight: 700; font-size: clamp(24px, 3vw, 34px); line-height: 1.2; }
.post-item h2 a { color: var(--fg); text-decoration: none; }
.post-item h2 a:hover { color: var(--peach-ink); }
.post-item p { margin: 0; color: var(--muted); max-width: 70ch; }
.more { font-weight: 700; }
.pagination { display: flex; gap: 16px; justify-content: space-between; margin-top: 32px; font-weight: 700; }
.empty { color: var(--muted); }

/* single article */
.article { max-width: 760px; margin-inline: auto; }
.article h1 { font-family: var(--display); font-weight: 700; font-size: clamp(36px, 5.6vw, 60px); line-height: 1.08; margin: 10px 0 24px; text-wrap: balance; }
.entry { font-size: 18px; line-height: 1.7; }
.entry > * { margin-top: 0; margin-bottom: 1.1em; }
.entry h2 { font-family: var(--display); font-size: clamp(26px, 3vw, 34px); line-height: 1.2; margin: 1.6em 0 .6em; }
.entry h3 { font-size: 21px; font-weight: 900; margin: 1.4em 0 .5em; }
.entry ol, .entry ul { padding-left: 1.2em; }
.entry li { margin-bottom: .4em; }
.entry li::marker { color: var(--peach-ink); font-weight: 700; }
.entry blockquote { margin: 1.4em 0; padding: 4px 0 4px 22px; border-left: 4px solid var(--peach); font-family: var(--display); font-size: 22px; line-height: 1.4; }
.entry figure { margin: 1.6em 0; }
.entry figure img, .entry img { display: block; border: 1px solid var(--rule); }
.entry figcaption, .wp-element-caption { font-size: 14px; color: var(--muted); margin-top: 10px; text-align: center; }
/* Scanned documents (press releases, decisions): narrower, centred, a soft shadow instead of a frame.
   In the editor: select the image → Advanced → Additional CSS class: is-doc */
.entry figure.is-doc { max-width: 560px; margin-inline: auto; }
.entry figure.is-doc img { border: 0; box-shadow: 0 2px 14px rgba(0,0,0,.14); }
.entry figure.is-doc a { display: block; }
.entry hr { border: 0; border-top: 1px solid var(--rule); margin: 2em 0; }
.tags { display: flex; flex-wrap: wrap; gap: 8px 14px; margin: 28px 0 0; padding: 18px 0 0; border-top: 1px solid var(--rule); font-size: 14px; }
.tags a { text-decoration: none; }
.featured { margin: 0 0 28px; }
.featured img { display: block; width: 100%; border: 1px solid var(--rule); }
.cta { margin-top: 40px; padding: 18px 20px; background: var(--slab); display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.cta p { margin: 0; font-weight: 700; }
.cta a { background: var(--peach); color: #ffffff; text-decoration: none; font-weight: 700; padding: 10px 18px; }
.cta a:hover { background: var(--fg); color: #ffffff; }
.back { display: inline-block; margin-top: 28px; font-weight: 700; }

/* WordPress block editor alignment helpers */
.aligncenter { margin-left: auto; margin-right: auto; }
.alignleft { float: left; margin: 0 1.2em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.2em; }

.site-footer { border-top: 1px solid var(--rule); padding-block: 28px; font-size: 13px; color: var(--muted); margin-top: 40px; }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.site-footer a { color: var(--fg); }

@media (max-width: 560px) {
  body { font-size: 16px; }
  .entry { font-size: 17px; }
  .statement { font-size: clamp(48px, 15vw, 64px); }
  .site-footer .wrap { flex-direction: column; }
}