/*
 * Bază: variabile, reset, tipografie, linkuri, focus.
 * Ordinea de încărcare e contractul cascadei: base → layout → components → blocks → pages/*.
 */

:root {
  /* Paleta din theme.json */
  --dragne-navy: #0e192f;
  --dragne-ink: #2a3242;
  --dragne-muted: #5d6675;
  --dragne-rule: #e3e6eb;
  --dragne-mist: #f1f2f5;
  /* Tonuri folosite în mai multe locuri */
  --dragne-ink-deep: #1b2331;   /* text pe homepage și în arhiva de știri */
  --dragne-slate: #6a7282;      /* breadcrumbs, taburi, paginare */
  --dragne-grey: #88949b;       /* textul secundar folosit la titluri și la lupă */
  --dragne-line: #f0f1f5;       /* linii fine în widget-uri, liste */
  --dragne-label: #9ca3af;      /* etichete mici, majuscule */
  /* Fonturi */
  --dragne-font: 'Hanken Grotesk', 'Helvetica Neue', Arial, sans-serif;
  --dragne-font-text: 'Open Sans', sans-serif;
  --dragne-font-serif: 'Cormorant Garamond', Georgia, serif;
}

/* ── Reset (doar ce folosește site-ul) ────────────────────── */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--dragne-font-text);
  font-size: 16px;
  font-weight: 300;
  line-height: 1.75;
  color: #444;
  background-color: #f8f8f8;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

article,
aside,
figure,
footer,
header,
main,
nav,
section {
  display: block;
}

[hidden] {
  display: none;
}

figure {
  margin: 0;
}

img {
  border: 0;
  vertical-align: middle;
}

svg:not(:root) {
  overflow: hidden;
}

strong {
  font-weight: bold;
}

sup {
  position: relative;
  top: -0.5em;
  font-size: 75%;
  line-height: 0;
  vertical-align: baseline;
}

button,
input {
  margin: 0;
  color: inherit;
  font: inherit;
}

button {
  overflow: visible;
  text-transform: none;
  -webkit-appearance: button;
  cursor: pointer;
}

button::-moz-focus-inner,
input::-moz-focus-inner {
  padding: 0;
  border: 0;
}

input[type="checkbox"] {
  padding: 0;
}

input[type="search"] {
  -webkit-appearance: textfield;
  box-sizing: content-box;
}

input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-decoration {
  -webkit-appearance: none;
}

label {
  cursor: pointer;
}

::selection {
  background-color: rgba(0, 0, 0, 0.08);
  color: inherit;
}

/* ── Tipografie ───────────────────────────────────────────── */

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0 0 20px;
  font-family: var(--dragne-font-text);
  font-weight: 300;
  line-height: 1.6em;
  color: var(--dragne-grey);
}

h1,
h2,
h3 {
  font-family: var(--dragne-font-serif);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(28px, 4vw, 42px); }
h2 { font-size: clamp(22px, 3vw, 32px); }
h3 { font-size: clamp(18px, 2.5vw, 24px); }
h4 { font-size: 18px; font-weight: 600; }
h5 { font-size: 15px; font-weight: 500; }
h6 { font-size: 14px; font-weight: 500; }

h2 a,
h3 a {
  color: inherit;
}

p {
  margin: 0 0 20px;
}

blockquote {
  margin-left: 0;
  margin-bottom: 20px;
  padding-left: 1.5em;
  border-left: 3px solid currentColor;
  font-family: var(--dragne-font-serif);
  font-size: 1.2em;
  font-style: italic;
  line-height: 1.6em;
  opacity: 0.85;
}

.entry-content p {
  orphans: 3;
  widows: 3;
}

.entry-content p + p {
  margin-top: 1.4em;
}

/* ── Linkuri și focus (WCAG 2.1) ──────────────────────────── */

a {
  background: transparent;
  color: #777;
  font-weight: normal;
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--dragne-navy);
}

a:active,
a:hover {
  outline: 0;
}

.entry-content a {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

:focus {
  outline: 0;
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
  border-radius: 2px;
}

/* ── Utilitare ────────────────────────────────────────────── */

/* Text doar pentru cititoarele de ecran (clasa standard WordPress) */
.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  border: 0;
  white-space: nowrap;
  word-wrap: normal !important;
}

.pull-left {
  float: left;
}

.pull-right {
  float: right;
}

.text-right {
  text-align: right;
}

.space-20 {
  padding-top: 20px;
  padding-bottom: 20px;
}

.space-bottom-10 {
  padding-bottom: 10px;
}

img[class*="attachment-"],
.size-large,
.size-medium,
.size-thumbnail {
  max-width: 100%;
  height: auto;
}

.container::before,
.container::after,
.row::before,
.row::after,
.header-type::before,
.header-type::after,
.entry-meta::before,
.entry-meta::after,
.entry-content::before,
.entry-content::after {
  content: " ";
  display: table;
}

.container::after,
.row::after,
.header-type::after,
.entry-meta::after,
.entry-content::after {
  clear: both;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
