/* România în fotografii — peliculă derulată prin scroll.
   Tokeni semantici; nicio culoare în atribute style din HTML. */

@font-face { font-family: "Fraunces"; src: url("fonts/fraunces-normal-latin.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; 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: "Fraunces"; src: url("fonts/fraunces-normal-latin-ext.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; 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: "Fraunces"; src: url("fonts/fraunces-italic-latin.woff2") format("woff2"); font-weight: 400 700; font-style: italic; font-display: swap; 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: "Fraunces"; src: url("fonts/fraunces-italic-latin-ext.woff2") format("woff2"); font-weight: 400 700; font-style: italic; font-display: swap; 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: "Plex Sans"; src: url("fonts/IBMPlexSans-latin.woff2") format("woff2"); font-weight: 400 600; font-style: normal; font-display: swap; 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: "Plex Sans"; src: url("fonts/IBMPlexSans-latin-ext.woff2") format("woff2"); font-weight: 400 600; font-style: normal; font-display: swap; 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: "Plex Mono"; src: url("fonts/IBMPlexMono-400-latin.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; 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: "Plex Mono"; src: url("fonts/IBMPlexMono-400-latin-ext.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; 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: "Plex Mono"; src: url("fonts/IBMPlexMono-600-latin.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; 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: "Plex Mono"; src: url("fonts/IBMPlexMono-600-latin-ext.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; 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; }

:root {
  --bg: #f2f1ec;
  --bg-surface: #e9e7df;
  --text-primary: #191b1f;
  --text-secondary: #3d4149;
  --accent: #7c4a1e;
  --safelight: #9c2617;
  --line: #c9c5b8;
  --line-soft: #d8d4c8;
  --mount: #131418;
  --mount-text: #e8e4d8;
  --mount-dim: #b6b1a1;
  --focus: #9c2617;
  --ui: "Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --mono: "Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --bar-h: 52px;
  --read-w: 42rem;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #101114;
    --bg-surface: #17181c;
    --text-primary: #ece9e1;
    --text-secondary: #bcc0c9;
    --accent: #d29a5b;
    --safelight: #ff8a70;
    --line: #34363d;
    --line-soft: #26282e;
    --focus: #ff8a70;
  }
}
:root[data-theme="light"] {
  --bg: #f2f1ec; --bg-surface: #e9e7df; --text-primary: #191b1f;
  --text-secondary: #3d4149; --accent: #7c4a1e; --safelight: #9c2617;
  --line: #c9c5b8; --line-soft: #d8d4c8; --focus: #9c2617;
}
:root[data-theme="dark"] {
  --bg: #101114; --bg-surface: #17181c; --text-primary: #ece9e1;
  --text-secondary: #bcc0c9; --accent: #d29a5b; --safelight: #ff8a70;
  --line: #34363d; --line-soft: #26282e; --focus: #ff8a70;
}

[hidden] { display: none !important; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--bg); color: var(--text-primary);
  font: 400 1.06rem/1.65 var(--ui);
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--accent); color: var(--bg); }
a { color: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 2px solid var(--focus); outline-offset: 3px;
}
.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 60;
  background: var(--text-primary); color: var(--bg);
  padding: .55rem 1rem; font: 600 .9rem var(--ui); text-decoration: none;
}
.skip:focus { top: calc(var(--browser-safe-top, env(safe-area-inset-top, 0px)) + .6rem); }
section, .frame { scroll-margin-top: calc(var(--bar-h) + var(--browser-safe-top, env(safe-area-inset-top, 0px)) + 14px); }

/* Bara de sus: un rând */
.topbar {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 1rem;
  min-height: var(--bar-h);
  padding: calc(var(--browser-safe-top, env(safe-area-inset-top, 0px)) + 0px) 1rem 0;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line-soft);
  font: 500 .92rem/1 var(--ui);
}
.topbar .home { font-weight: 600; text-decoration: none; white-space: nowrap; }
.topbar .home .film-mark { color: var(--safelight); font-family: var(--mono); font-weight: 600; }
.topnav { display: flex; gap: 1.1rem; overflow-x: auto; scrollbar-width: none; white-space: nowrap; min-width: 0; }
.topnav::-webkit-scrollbar { display: none; }
.topnav a { text-decoration: none; color: var(--text-secondary); padding: .4rem 0; }
.topnav a:hover, .topnav a[aria-current="true"] { color: var(--text-primary); }
.topnav a[aria-current="true"] { box-shadow: inset 0 -2px 0 var(--safelight); }
.spacer { flex: 1; }
.chip {
  font-family: var(--ui); font-weight: 600; text-decoration: none; white-space: nowrap;
  border: 1px solid var(--line); padding: .42rem .7rem; border-radius: 999px;
}
.icon-btn {
  width: 36px; height: 36px; border-radius: 50%; flex: none;
  border: 1px solid var(--line); background: transparent; color: var(--text-primary);
  display: grid; place-items: center; cursor: pointer; padding: 0;
}
.icon-btn svg { display: block; }
.icon-btn svg[hidden] { display: none; }

/* Marginile peliculei */
.film-edge {
  display: none;
  position: fixed; top: 0; bottom: 0; width: 34px; z-index: 5;
  background:
    radial-gradient(circle at 50% 12px, var(--bg) 5px, transparent 5.5px) 0 0 / 34px 34px repeat-y,
    var(--mount);
  pointer-events: none;
}
.film-edge--l { left: 0; } .film-edge--r { right: 0; }
@media (min-width: 1280px) {
  .film-edge { display: block; }
  body { padding-left: 34px; padding-right: 34px; }
}

/* Deschiderea */
.opening { max-width: 76rem; margin: 0 auto; padding: clamp(1.6rem, 5vw, 3.6rem) 1.25rem 0; }
.opening--after { padding-top: 1.4rem; }
.opening .kicker {
  font: 600 .82rem/1.5 var(--mono); color: var(--safelight); margin: 0 0 1rem;
}
h1 {
  font: 600 clamp(2.3rem, 6.2vw, 4.4rem)/1.04 var(--serif);
  letter-spacing: -0.01em; margin: 0 0 1.1rem; max-width: 16ch;
}
.deck { font-size: clamp(1.12rem, 2.2vw, 1.32rem); line-height: 1.55; max-width: 44rem; margin: 0 0 1.4rem; }
.lead { max-width: var(--read-w); }
.lead p { margin: 0 0 1rem; }
.reading-hint {
  display: flex; flex-wrap: wrap; gap: .8rem 1.2rem; align-items: center;
  max-width: var(--read-w); margin: 1.6rem 0 0; padding: .9rem 1rem;
  border: 1px solid var(--line); background: var(--bg-surface);
  font-size: .95rem; line-height: 1.5;
}
.play-btn {
  font: 600 .92rem var(--ui); cursor: pointer; white-space: nowrap;
  background: var(--text-primary); color: var(--bg); border: 1px solid var(--text-primary);
  padding: .62rem 1.05rem; border-radius: 999px; min-height: 44px;
}
.play-btn[data-on="true"] { background: var(--safelight); border-color: var(--safelight); color: #fff; }
.play-hint { color: var(--text-secondary); font-size: .88rem; }

/* Actele */
.act { max-width: 76rem; margin: 0 auto; padding: clamp(2.6rem, 7vw, 5rem) 1.25rem 0; }
.act-head { border-top: 2px solid var(--text-primary); padding-top: 1.1rem; margin-bottom: 1.2rem; }
.act-years {
  font: 600 clamp(3.2rem, 9vw, 6.4rem)/0.95 var(--serif);
  letter-spacing: -0.02em; margin: 0; color: var(--text-primary);
}
.act-years .y2 { color: var(--safelight); }
.act h2 { font: 600 clamp(1.5rem, 3.4vw, 2.2rem)/1.15 var(--serif); margin: .55rem 0 0; }
.act h2 .act-y { color: var(--text-secondary); font-size: .62em; font-weight: 500; }
.act-intro { max-width: var(--read-w); margin: 1rem 0 2.2rem; }
.act-intro p { margin: 0 0 1rem; }

/* Cadrele */
.frame { margin: 0 auto clamp(2.4rem, 6vw, 4.2rem); }
.frame--hero { max-width: 92rem; }
.frame--wide { max-width: 72rem; }
.frame--std { max-width: 54rem; }
.frame--portrait { max-width: 34rem; }
.frame--tiny { max-width: 34rem; }
.mount { background: var(--mount); padding: clamp(.55rem, 1.6vw, 1.1rem); }
.mount img.ph { display: block; width: 100%; height: auto; background: #000; }
.frame-meta {
  display: flex; flex-wrap: wrap; gap: .35rem 1.1rem; align-items: baseline;
  padding: .8rem .15rem 0;
}
.fno { font: 600 .95rem var(--mono); color: var(--safelight); white-space: nowrap; }
.fwhen { font: 600 1.02rem var(--serif); }
.fwhere { color: var(--text-secondary); font-size: .95rem; }
figcaption { max-width: var(--read-w); padding: .55rem .15rem 0; }
figcaption p { margin: 0; font-size: 1.0rem; line-height: 1.62; }
.credit {
  margin: .7rem 0 0; font: 400 .76rem/1.55 var(--mono); color: var(--text-secondary);
  max-width: var(--read-w); padding: 0 .15rem;
}
.credit a { text-decoration: underline; text-underline-offset: 2px; }
.hero-band { max-width: 92rem; margin: clamp(1.8rem, 4vw, 3rem) auto 0; padding: 0 1.25rem; }

/* Developează la intrare (numai cu JS și fără reduced-motion) */
html.js-develop .frame .mount img.ph {
  filter: sepia(.5) contrast(.9) brightness(1.06) saturate(.75);
}
html.js-develop .frame.is-in .mount img.ph {
  filter: none; transition: filter 1.25s ease;
}

/* Înainte/după */
.ba { position: relative; background: #000; }
.ba .ba-stack { position: relative; }
.ba img { display: block; width: 100%; height: auto; }
html.js .ba .ba-stack { aspect-ratio: 3 / 2; overflow: hidden; }
html.js .ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
html.js .ba .ba-before { clip-path: inset(0 calc(100% - var(--pos, 50%)) 0 0); }
.ba-line {
  display: none; position: absolute; top: 0; bottom: 0; width: 2px;
  left: var(--pos, 50%); background: #fff; box-shadow: 0 0 0 1px rgb(0 0 0 / .45);
  pointer-events: none;
}
html.js .ba-line { display: block; }
.ba-tag {
  position: absolute; top: .7rem; z-index: 2; pointer-events: none;
  font: 600 .85rem var(--mono); color: #fff; background: rgb(0 0 0 / .62);
  padding: .3rem .55rem;
}
.ba-tag--b { left: .7rem; } .ba-tag--a { right: .7rem; }
.ba-controls { display: none; padding: .8rem .15rem 0; max-width: var(--read-w); }
html.js .ba-controls { display: block; }
.ba-controls label { display: block; font-size: .95rem; margin-bottom: .45rem; }
.ba-controls input[type="range"] { width: 100%; min-height: 44px; accent-color: var(--safelight); }

/* Anul curent, fix */
.year-now {
  position: fixed; left: calc(1rem + env(safe-area-inset-left, 0px));
  bottom: calc(1rem + env(safe-area-inset-bottom, 0px)); z-index: 40;
  pointer-events: none; opacity: 0; transition: opacity .3s ease;
}
@media (min-width: 1280px) { .year-now { left: calc(34px + 1rem); } }
.year-now.show { opacity: 1; }
.year-now .yn-year {
  display: block; font: 600 clamp(1.7rem, 4vw, 2.6rem)/1 var(--mono);
  color: var(--safelight);
  text-shadow: 0 1px 0 var(--bg), 0 0 14px var(--bg);
}
.year-now .yn-frame { font: 600 .78rem var(--mono); color: var(--text-secondary); }
@media (prefers-reduced-motion: reduce) { .year-now { transition: none; } }

/* Șina de lectură */
.rail { display: none; }
@media (min-width: 1180px) {
  .rail {
    display: flex; flex-direction: column; gap: .65rem;
    position: fixed; right: calc(34px + .9rem); top: 50%; transform: translateY(-50%);
    z-index: 40; margin: 0; padding: 0; list-style: none;
  }
  .rail li { position: relative; }
  .rail a {
    display: block; width: 26px; height: 26px; position: relative;
  }
  .rail a::before {
    content: ""; position: absolute; inset: 9px; border-radius: 50%;
    border: 1.5px solid var(--text-secondary); background: transparent;
  }
  .rail a[aria-current="true"]::before { background: var(--safelight); border-color: var(--safelight); }
  .rail .rl {
    position: absolute; right: 32px; top: 50%; transform: translateY(-50%);
    white-space: nowrap; font: 600 .78rem var(--mono);
    background: var(--text-primary); color: var(--bg); padding: .3rem .55rem;
    opacity: 0; pointer-events: none;
  }
  .rail a:hover .rl, .rail a:focus-visible .rl { opacity: 1; }
}

/* Planșa de contact */
.contact { max-width: 76rem; margin: 0 auto; padding: clamp(2.6rem, 7vw, 5rem) 1.25rem 0; }
.contact h2, .method h2, .related h2 { font: 600 clamp(1.6rem, 3.6vw, 2.3rem)/1.15 var(--serif); margin: 0 0 .8rem; }
.contact > p, .method > p { max-width: var(--read-w); }
.sheet {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px;
  background: var(--mount); padding: clamp(.7rem, 2vw, 1.3rem); margin-top: 1.4rem;
  list-style: none;
}
.sheet li { margin: 0; }
.sheet a { display: block; text-decoration: none; color: var(--mount-text); }
.sheet img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: #000; }
.sheet .sc { display: block; font: 400 .68rem/1.5 var(--mono); color: var(--mount-dim); padding: .4rem .1rem .2rem; }
.sheet .sc b { color: var(--mount-text); font-weight: 600; }
.sheet a:hover img, .sheet a:focus-visible img { outline: 2px solid var(--safelight); outline-offset: -2px; }
@media (max-width: 760px) { .sheet { grid-template-columns: repeat(3, 1fr); } }

/* Metoda + legături */
.method, .related { max-width: 76rem; margin: 0 auto; padding: clamp(2.6rem, 7vw, 5rem) 1.25rem 0; }
.qa { max-width: var(--read-w); }
.qa h3 { font: 600 1.18rem/1.35 var(--serif); margin: 1.6rem 0 .5rem; }
.qa p { margin: 0 0 .8rem; }
.related ul { max-width: var(--read-w); padding-left: 1.2rem; }
.related li { margin-bottom: .45rem; }

/* Distribuire */
.share-row { display: flex; align-items: center; gap: .55rem; flex-wrap: wrap; margin: 2.2rem 0 0; }
.share-label { font-size: .92rem; color: var(--text-secondary); margin-right: .3rem; }
.share-btn {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--line-soft); background: transparent; color: var(--text-primary);
  cursor: pointer; padding: 0; text-decoration: none;
}
@media (pointer: coarse) { .share-btn { width: 44px; height: 44px; } }
.share-btn:hover, .share-btn:focus-visible { color: var(--safelight); border-color: var(--safelight); }
.share-btn svg { width: 17px; height: 17px; fill: currentColor; }
.share-status { font-size: .88rem; color: var(--text-secondary); min-height: 1.2em; }

/* Subsol */
footer.site {
  max-width: 76rem; margin: clamp(3rem, 8vw, 5rem) auto 0; padding: 1.4rem 1.25rem 3rem;
  border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: .6rem 1.6rem; align-items: baseline;
  font-size: .92rem;
}
footer.site .f-upd { color: var(--text-secondary); }
footer.site a { text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 640px) {
  .topnav { gap: .8rem; }
  h1 { max-width: none; }
  .year-now .yn-year { font-size: 1.45rem; }
}
@media print {
  .topbar, .rail, .year-now, .share-row, .film-edge, .play-btn { display: none !important; }
  body { padding: 0; background: #fff; color: #000; }
  .mount { background: #fff; padding: 0; }
  .frame { break-inside: avoid; }
}