/* buletin.digivest.ro — one stylesheet for all pages. Light theme only: the official
   logos need a light background. No inline styles anywhere (the CSP forbids them). */

/* ---------- Fonts (self-hosted; both include Ș ș Ț ț with comma below) ---------- */

@font-face {
  font-family: "Chakra Petch";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/chakra-petch-latin-ext-600-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Chakra Petch";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/chakra-petch-latin-600-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/ibm-plex-sans-latin-ext-400-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/ibm-plex-sans-latin-ext-600-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Tokens (BRIEF §4.2, taken from the cover) ---------- */

:root {
  --bg: #F2F5F7;
  --surface: #FFFFFF;
  --ink: #333333;
  --muted: #5B6670;
  --trace: #C4CED6;
  --accent: #2B59C7;
  --accent-dark: #224AA8;
  --error: #B42318;
  --field-border: #76828E; /* 3:1 or better against --surface, as form controls need */

  --font-heading: "Chakra Petch", "IBM Plex Sans", system-ui, sans-serif;
  --font-body: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --measure: 44rem;
  --gutter: 1.25rem;
  --radius: 6px;
}

/* ---------- Base ---------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-wrap: break-word;
}

@media (min-width: 40em) {
  body {
    font-size: 1.125rem;
  }
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.15;
  text-wrap: balance;
}

h1 {
  font-size: clamp(1.9rem, 1.35rem + 2.9vw, 3.1rem);
  letter-spacing: -0.01em;
}

h2 {
  font-size: clamp(1.5rem, 1.25rem + 1.2vw, 2rem);
}

h3 {
  font-size: 1.2rem;
  line-height: 1.25;
}

p,
ul,
ol,
dl {
  margin: 0;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--accent-dark);
  text-decoration-thickness: 2px;
}

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

strong {
  font-weight: 600;
}

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

[hidden] {
  display: none !important;
}

.container {
  width: 100%;
  max-width: calc(var(--measure) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.muted {
  color: var(--muted);
}

.skip-link {
  position: absolute;
  left: 0.5rem;
  top: -4rem;
  z-index: 10;
  padding: 0.6rem 1rem;
  background: var(--surface);
  border: 2px solid var(--accent);
  border-radius: var(--radius);
  font-weight: 600;
}

.skip-link:focus {
  top: 0.5rem;
}

/* ---------- Header ---------- */

.site-header {
  padding-block: 1.25rem;
  border-bottom: 1px solid var(--trace);
}

.site-header__logo {
  display: inline-block;
  line-height: 0;
}

.site-header__logo img {
  display: block;
  width: 140px;
  height: 40px;
}

/* Landing page: the cover band is the header. It carries the logo, so the logo is
   not repeated above it. This is the one memorable element; everything else is calm. */
.cover {
  line-height: 0;
}

.cover img {
  display: block;
  width: 100%;
  height: clamp(150px, 25vw, 340px);
  object-fit: cover;
  object-position: center;
}

/* ---------- Buttons ---------- */

.button {
  display: inline-block;
  padding: 0.85rem 1.6rem;
  border: 2px solid var(--accent);
  border-radius: var(--radius);
  background: var(--accent);
  color: #FFFFFF;
  font: inherit;
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.button:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  color: #FFFFFF;
}

.button:focus-visible {
  border-radius: var(--radius);
}

.button[disabled] {
  background: var(--muted);
  border-color: var(--muted);
  cursor: progress;
}

/* ---------- Landing page ---------- */

.hero {
  padding-block: 2.25rem 3.5rem;
  text-align: center;
}

.hero .container {
  max-width: calc(58rem + 2 * var(--gutter));
}

.hero h1 {
  max-width: 20em;
  margin-inline: auto;
}

.hero__lead {
  max-width: 36em;
  margin: 1.25rem auto 0;
  font-size: 1.15em;
  line-height: 1.5;
}

.hero__action {
  margin-top: 2rem;
}

.hero__note {
  margin-top: 0.9rem;
  color: var(--muted);
  font-size: 0.9em;
}

.section {
  padding-block: 3rem;
  border-top: 1px solid var(--trace);
}

.section > .container > h2 {
  margin-bottom: 1rem;
}

.section p + p {
  margin-top: 1rem;
}

/* The outline of an issue: a plain list with hairlines, in the order it arrives. */
.issue {
  margin-top: 2rem;
  padding: 0;
  list-style: none;
  border-bottom: 1px solid var(--trace);
}

.issue > li {
  padding-block: 1.4rem;
  border-top: 1px solid var(--trace);
}

.issue h3 {
  margin-bottom: 0.4rem;
}

@media (min-width: 46em) {
  .issue > li {
    display: grid;
    grid-template-columns: 13rem 1fr;
    column-gap: 2rem;
  }

  .issue h3 {
    margin-bottom: 0;
    padding-top: 0.15em;
  }
}

.format {
  margin-top: 0.9rem;
  padding-left: 1rem;
  border-left: 2px solid var(--accent);
}

.format div + div {
  margin-top: 0.5rem;
}

.format dt {
  display: inline;
  font-weight: 600;
}

.format dd {
  display: inline;
  margin: 0;
}

.audience {
  margin-top: 1.5rem;
  padding: 0;
  list-style: none;
}

.audience li {
  padding-left: 1rem;
  border-left: 2px solid var(--trace);
}

.audience li + li {
  margin-top: 1.1rem;
}

.audience + p {
  margin-top: 1.5rem;
}

/* ---------- Form ---------- */

.card {
  margin-top: 1.75rem;
  padding: 1.5rem 1.25rem;
  background: var(--surface);
  border: 1px solid var(--trace);
  border-radius: 10px;
}

@media (min-width: 40em) {
  .card {
    padding: 2.25rem;
  }
}

.field {
  min-width: 0;
  margin: 0 0 1.5rem;
  padding: 0;
  border: 0;
}

.field > label,
.field > legend {
  display: block;
  padding: 0;
  margin-bottom: 0.4rem;
  font-weight: 600;
}

.optional {
  color: var(--muted);
  font-weight: 400;
  font-size: 0.9em;
}

.field-help {
  margin-bottom: 0.5rem;
  color: var(--muted);
  font-size: 0.9em;
  line-height: 1.45;
}

.field input[type="text"],
.field input[type="email"],
.field select,
.field textarea {
  display: block;
  width: 100%;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--field-border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  line-height: 1.4;
}

.field textarea {
  min-height: 6.5rem;
  resize: vertical;
}

.field ::placeholder {
  color: var(--muted);
  opacity: 1;
}

.field [aria-invalid="true"] {
  border-color: var(--error);
  box-shadow: 0 0 0 1px var(--error);
}

.checks {
  display: grid;
  gap: 0.15rem;
}

.check {
  display: grid;
  grid-template-columns: 1.5rem 1fr;
  column-gap: 0.6rem;
  align-items: start;
  padding-block: 0.4rem;
  font-weight: 400;
  cursor: pointer;
}

.field > label.check {
  display: grid;
  margin-bottom: 0;
  font-weight: 400;
}

.check input {
  width: 1.25rem;
  height: 1.25rem;
  margin: 0.2em 0 0;
  accent-color: var(--accent);
}

/* Errors: icon and text, never colour alone. */
.field-error,
.form-error {
  margin-top: 0.45rem;
  padding-left: 1.6rem;
  background: url("/assets/img/icon-error.svg") no-repeat 0 0.2em / 1.15rem 1.15rem;
  color: var(--error);
  font-size: 0.95em;
  font-weight: 600;
  line-height: 1.45;
}

.form-error {
  margin: 0 0 1rem;
}

.data-notice {
  margin-bottom: 1.25rem;
  padding: 1rem 1.1rem;
  background: var(--bg);
  border-radius: var(--radius);
  color: var(--ink);
  font-size: 0.9em;
  line-height: 1.55;
}

.turnstile {
  min-height: 65px;
}

.form-actions {
  margin-top: 0.5rem;
}

.form-actions .button {
  width: 100%;
}

@media (min-width: 30em) {
  .form-actions .button {
    width: auto;
    min-width: 14rem;
  }
}

/* Honeypot: off-screen, not display:none (bots skip fields that are plainly hidden). */
.hp {
  position: absolute;
  left: -200vw;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Success / state panels (form success and the confirmation page). */
.panel {
  margin-top: 1.75rem;
  padding: 1.75rem 1.25rem;
  background: var(--surface);
  border: 1px solid var(--trace);
  border-left: 4px solid var(--accent);
  border-radius: 10px;
}

.panel:focus {
  outline: none;
}

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

.panel h1,
.panel h2 {
  font-size: clamp(1.5rem, 1.25rem + 1.2vw, 2rem);
  margin-bottom: 0.75rem;
}

.panel p + p,
.panel .panel__action {
  margin-top: 1.25rem;
}

@media (min-width: 40em) {
  .panel {
    padding: 2.25rem;
  }
}

/* ---------- Simple pages (confirmation, 404) ---------- */

.page {
  padding-block: 3rem 4rem;
}

.page--narrow .container {
  max-width: calc(36rem + 2 * var(--gutter));
}

/* ---------- Privacy notice ---------- */

.draft-banner {
  margin-bottom: 2rem;
  padding: 0.85rem 1.1rem;
  background: var(--surface);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  font-weight: 600;
}

.prose h1 {
  font-size: clamp(1.6rem, 1.3rem + 1.6vw, 2.3rem);
}

.prose h2 {
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
  font-size: 1.35rem;
}

.prose p {
  margin-top: 1rem;
}

.prose ul {
  margin-top: 1rem;
  padding-left: 1.25rem;
}

.prose li + li {
  margin-top: 0.6rem;
}

.prose .version {
  color: var(--muted);
}

/* Placeholders the DPO still has to complete. */
.placeholder {
  padding: 0.05em 0.3em;
  background: #FFF1C2;
  color: var(--ink);
  border-radius: 3px;
}

/* ---------- Footer ---------- */

.site-footer {
  margin-top: 1rem;
}

/* The circuit-trace motif, used once outside the cover: the divider above the footer. */
.trace-divider {
  display: block;
  width: 100%;
  height: 56px;
  color: var(--trace);
}

.trace-divider .secured {
  color: var(--accent);
}

.site-footer__panel {
  background: var(--surface);
  border-top: 1px solid var(--trace);
  padding-block: 2.25rem 2.5rem;
}

.site-footer .container {
  max-width: calc(60rem + 2 * var(--gutter));
}

.funding {
  display: block;
  line-height: 0;
  text-align: center;
}

.funding img {
  width: 100%;
  max-width: 54rem;
  height: auto;
}

.site-footer__text {
  max-width: var(--measure);
  margin: 1.75rem auto 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
  text-align: center;
}

.site-footer__text p + p {
  margin-top: 0.6rem;
}

/* ---------- Motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
