/* monteoru-sarata: excavation-paper theme. Cream/umber, amber active phase. */
@font-face { font-family: "Fraunces"; font-weight: 600; font-display: swap;
  src: url("fonts/fraunces-600-latin.woff2") format("woff2"); unicode-range: U+0-FF,U+2013-2014,U+2018-2019,U+201C-201E,U+2212; }
@font-face { font-family: "Fraunces"; font-weight: 600; font-display: swap;
  src: url("fonts/fraunces-600-latin-ext.woff2") format("woff2"); unicode-range: U+100-24F; }
@font-face { font-family: "Fraunces"; font-weight: 700; font-display: swap;
  src: url("fonts/fraunces-700-latin.woff2") format("woff2"); unicode-range: U+0-FF,U+2013-2014,U+2018-2019,U+201C-201E,U+2212; }
@font-face { font-family: "Fraunces"; font-weight: 700; font-display: swap;
  src: url("fonts/fraunces-700-latin-ext.woff2") format("woff2"); unicode-range: U+100-24F; }
@font-face { font-family: "Source Serif 4"; font-weight: 400; font-display: swap;
  src: url("fonts/sourceserif-400-latin.woff2") format("woff2"); unicode-range: U+0-FF,U+2013-2014,U+2018-2019,U+201C-201E,U+2212; }
@font-face { font-family: "Source Serif 4"; font-weight: 400; font-display: swap;
  src: url("fonts/sourceserif-400-latin-ext.woff2") format("woff2"); unicode-range: U+100-24F; }
@font-face { font-family: "Source Serif 4"; font-weight: 600; font-display: swap;
  src: url("fonts/sourceserif-600-latin.woff2") format("woff2"); unicode-range: U+0-FF,U+2013-2014,U+2018-2019,U+201C-201E,U+2212; }
@font-face { font-family: "Source Serif 4"; font-weight: 600; font-display: swap;
  src: url("fonts/sourceserif-600-latin-ext.woff2") format("woff2"); unicode-range: U+100-24F; }

:root {
  --paper: #f3ecdd; --paper2: #e9dfcb; --ink: #2b2419; --ink2: #5c5342;
  --amber: #b3541e; --amber-soft: #d98e4a; --ash: #8a8474; --hearth: #8c3028;
  --blue: #2e5e5a; --line: #cfc4ab; --card: #faf6ea;
  --serif: "Source Serif 4", Georgia, serif; --disp: "Fraunces", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", sans-serif;
}
:root[data-theme="dark"] {
  --paper: #1d1712; --paper2: #262019; --ink: #e8ddc8; --ink2: #b8ab90;
  --amber: #e08a3c; --amber-soft: #e08a3c; --ash: #8a8474; --hearth: #d4695c;
  --blue: #6fb3ad; --line: #4a4234; --card: #241e17;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--serif); font-size: 1.09rem; line-height: 1.68; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: var(--paper); padding: .5rem 1rem; z-index: 99; }
.skip:focus { left: 0; }
.top { position: sticky; top: 0; z-index: 40; display: flex; align-items: center; gap: 1rem; padding: .7rem 1.2rem;
  border-bottom: 1px solid var(--line); background: var(--paper); font-family: var(--sans); font-size: .85rem; }
.top .brand { color: var(--ink); font-weight: 700; text-decoration: none; }
.top nav { margin-left: auto; display: flex; gap: .4rem; align-items: center; }
.top a { color: var(--ink2); }
.top a[aria-current="page"] { color: var(--ink); font-weight: 700; text-decoration: none; }
#theme-toggle { background: none; border: 1px solid var(--line); border-radius: 999px;
  color: var(--ink); padding: .25rem .8rem; cursor: pointer; font: inherit; }
.progress { height: 3px; background: var(--amber); width: 100%; transform-origin: 0 50%;
  transform: scaleX(0); position: sticky; top: 0; z-index: 50; }
main { display: block; }
.wrap { max-width: 68ch; margin: 0 auto; padding: 0 1.2rem; }
.hero { position: relative; min-height: calc(100svh - 52px); display: flex; align-items: flex-end; margin: 0; }
.hero-stage { position: absolute; inset: 0; margin: 0; }
.hero-stage img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-stage figcaption { position: absolute; right: 16px; bottom: 16px; max-width: min(280px, 30vw);
  margin: 0; padding: 8px 10px; border-radius: 8px; background: rgba(20,14,8,.72); color: #f3ecdd;
  font-family: var(--sans); font-size: .75rem; line-height: 1.35; }
.hero-card { position: relative; z-index: 2; width: min(520px, 42vw); margin: 0 0 5vh 4vw;
  background: color-mix(in srgb, var(--card) 94%, transparent); border: 1px solid var(--line);
  border-radius: 16px; box-shadow: 0 12px 34px rgba(20,16,6,.22); padding: 22px 24px 16px; }
.hero h1 { font-family: var(--disp); font-weight: 700; font-size: clamp(1.7rem, 3.2vw, 2.7rem);
  line-height: 1.08; margin: 0 0 .7rem; text-wrap: balance; }
.hero .kick { font-family: var(--sans); font-size: .75rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--amber); margin: 0 0 .45rem; }
.hero .deck { font-size: 1.05rem; color: var(--ink2); margin: 0 0 .8rem; }
.hero-fig { display: flex; gap: .8rem; align-items: baseline; margin: 0 0 .8rem; }
.hero-fig b { font-family: var(--disp); font-size: 2.4rem; line-height: 1; color: var(--amber); }
.hero-fig span { color: var(--ink2); font-size: .95rem; }
.cta-row { display: flex; gap: .8rem; flex-wrap: wrap; align-items: center; margin: .4rem 0 .2rem; }
.quiet { color: var(--ink); font-family: var(--sans); font-size: .92rem; }
.btn { display: inline-block; border: 1px solid var(--ink); border-radius: 999px;
  padding: .55rem 1.3rem; color: var(--ink); text-decoration: none; font-family: var(--sans);
  font-size: .92rem; background: none; cursor: pointer; }
.btn.primary { background: var(--amber); border-color: var(--amber); color: #fff; }
:root[data-theme="dark"] .btn.primary { color: #1d1712; }

/* ---- scrolly stage ---- */
.scrolly { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 0;
  align-items: start; }
.stage-col { position: sticky; top: 0; height: 100svh; display: flex; }
#stage { flex: 1; display: grid; grid-template-rows: auto 1fr auto; gap: .4rem;
  padding: .8rem; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: var(--paper2); min-width: 0; }
.chips { display: flex; gap: .35rem; flex-wrap: wrap; align-items: center; }
.chip { font-family: var(--sans); font-size: .78rem; border: 1px solid var(--line);
  background: var(--card); color: var(--ink); border-radius: 999px; padding: .28rem .7rem;
  cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--amber); border-color: var(--amber); color: #fff; }
:root[data-theme="dark"] .chip[aria-pressed="true"] { color: #1d1712; }
.stage-btn { font-family: var(--sans); font-size: .78rem; border: 1px solid var(--line);
  background: none; color: var(--ink); border-radius: 999px; padding: .28rem .7rem; cursor: pointer; }
.panels { position: relative; display: grid; grid-template-columns: 172px 1fr; gap: .5rem; min-height: 0; }
.panels figure { margin: 0; background: var(--card); border: 1px solid var(--line);
  border-radius: 6px; padding: .4rem; min-width: 0; display: flex; flex-direction: column; }
.panels svg { width: 100%; height: auto; display: block; }
#fig-section { max-height: 100%; }
#fig-section svg { max-height: 62svh; }
.panel-cap { font-family: var(--sans); font-size: .75rem; color: var(--ink2); margin: .3rem 0 0; }
#fig-plan { position: absolute; right: .6rem; bottom: .6rem; width: 218px; z-index: 5;
  box-shadow: 0 4px 18px rgba(0,0,0,.18); }
#fig-plan svg { max-height: 30svh; }
.verdict-bar { display: flex; gap: .6rem; align-items: center; flex-wrap: wrap;
  font-family: var(--sans); font-size: .85rem; }
.verdict-bar select { font: inherit; color: var(--ink); background: var(--card);
  border: 1px solid var(--line); border-radius: 6px; padding: .3rem .5rem; max-width: 12rem; }
#verdict { margin: 0; }
#verdict b { color: var(--amber); }
.share-row { display: flex; gap: .5rem; align-items: center; margin-left: auto; }
#share-status { font-size: .78rem; color: var(--ink2); }
/* svg drawing language */
.sec-band { fill: var(--paper2); stroke: var(--ink2); stroke-width: 1; cursor: pointer; }
.sec-band.lit { fill: var(--amber); fill-opacity: .28; stroke: var(--amber); stroke-width: 2; }
.sec-lab { font-family: var(--sans); font-size: 11px; fill: var(--ink); }
.sec-sub { font-family: var(--sans); font-size: 8.5px; fill: var(--ink2); }
.hearth { fill: var(--hearth); }
.map-dot { fill: var(--ash); opacity: .45; }
.map-dot.lit { fill: var(--amber); opacity: 1; }
.map-dot.type { stroke: var(--ink); stroke-width: 1.4; opacity: 1; }
.map-lab { font-family: var(--sans); font-size: 10px; fill: var(--ink); display: none; }
.map-lab.lit { display: block; }
#county-pin { display: none; }
#county-pin.on { display: block; }
#dist-line { stroke: var(--blue); stroke-dasharray: 4 3; stroke-width: 1.4; }
.plan-marker { display: none; }
.plan-marker.lit { display: block; }
.plan-ink { stroke: var(--ink2); fill: none; }
.plan-txt { font-family: var(--sans); font-size: 9px; fill: var(--ink2); }

/* ---- beats ---- */
.beats-col { padding: 0 1.2rem 0 2rem; }
.beat { min-height: 92svh; display: flex; flex-direction: column; justify-content: center;
  border-bottom: 1px dashed var(--line); padding: 2rem 0; }
.beat:last-child { border-bottom: 0; }
.beat .step { font-family: var(--sans); font-size: .78rem; color: var(--amber);
  text-transform: uppercase; letter-spacing: .08em; margin: 0 0 .4rem; }
.beat h3 { font-family: var(--disp); font-size: 1.5rem; margin: 0 0 .6rem; }
.beat h3 .ph { color: var(--amber); }
.beat p { margin: 0 0 .8rem; }
.beat .planline, .beat .mapline { font-family: var(--sans); font-size: .84rem; color: var(--ink2);
  border-left: 3px solid var(--line); padding-left: .7rem; }
.beat .mapline { border-color: var(--amber); }
.beat.opaque { opacity: 1; }

/* ---- article sections ---- */
section.bloc { padding: 2.2rem 0; border-top: 1px solid var(--line); }
section.bloc .kick { font-family: var(--sans); font-size: .78rem; color: var(--amber);
  text-transform: uppercase; letter-spacing: .08em; margin: 0 0 .4rem; }
section.bloc h2 { font-family: var(--disp); font-size: clamp(1.5rem, 3.4vw, 2.1rem);
  margin: 0 0 1rem; line-height: 1.2; text-wrap: balance; }
section.bloc p { margin: 0 0 1rem; }
.table-scroll { width: 100%; max-width: 100%; overflow-x: auto; overscroll-behavior-inline: contain; }
.table-scroll:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }
table.counts { border-collapse: collapse; width: 100%; font-size: .95rem; margin: 1.2rem 0; }
table.counts caption { font-family: var(--sans); font-size: .82rem; color: var(--ink2);
  text-align: left; padding-bottom: .5rem; }
table.counts th, table.counts td { border-bottom: 1px solid var(--line); padding: .45rem .5rem;
  text-align: left; vertical-align: top; }
table.counts th { font-family: var(--sans); font-size: .8rem; color: var(--ink2); }
table.counts td.n { font-variant-numeric: tabular-nums; white-space: nowrap; }
#locuri ul.sites { list-style: none; margin: 1rem 0; padding: 0; display: grid; gap: .5rem; }
#locuri .sites li { border: 1px solid var(--line); border-radius: 6px; padding: .55rem .8rem;
  background: var(--card); font-size: .95rem; }
#locuri .sites li[data-active="true"] { border-color: var(--amber); }
#locuri .sites .ph-tags { font-family: var(--sans); font-size: .75rem; color: var(--amber); }
#locuri .sites .pub { font-family: var(--sans); font-size: .78rem; color: var(--ink2); display: block; }
#surse ol { padding-left: 1.3rem; }
#surse li { margin-bottom: .7rem; font-size: .95rem; }
#surse li .st { font-family: var(--sans); font-size: .78rem; color: var(--ink2); }
footer.site { border-top: 1px solid var(--line); padding: 1.6rem 1.2rem 3rem;
  font-family: var(--sans); font-size: .82rem; color: var(--ink2); }
footer.site p { max-width: 68ch; margin: 0 0 .6rem; }
#to-top { position: fixed; right: 1rem; bottom: 1rem; z-index: 60; border-radius: 999px;
  border: 1px solid var(--line); background: var(--card); color: var(--ink);
  padding: .5rem .9rem; cursor: pointer; font-family: var(--sans); font-size: .82rem; }
#to-top[hidden] { display: none; }
.scroll-cue { text-align: center; color: var(--ink2); font-family: var(--sans); font-size: .85rem;
  padding: .4rem 0 1.4rem; }

/* phone */
#plan-toggle { display: none; }
@media (max-width: 860px) {
  .hero { display: block; min-height: 0; }
  .hero-stage { position: relative; height: 42svh; }
  .hero-stage figcaption { left: 8px; right: 8px; bottom: 8px; max-width: none; }
  .hero-card { width: auto; margin: 0; border-radius: 0; box-shadow: none; }
  .scrolly { display: block; }
  .stage-col { position: sticky; top: 0; height: auto; z-index: 20; }
  #stage { height: min(40svh, 320px); min-height: min(190px, 34svh); overflow: hidden; }
  .panels { grid-template-columns: 1fr; }
  #fig-section { display: none; }
  #fig-map { min-height: 0; }
  #fig-map svg { max-height: 24svh; }
  #fig-plan { display: none; right: .6rem; left: .6rem; width: auto; top: .6rem; bottom: auto; }
  #stage[data-view="plan"] #fig-plan { display: block; }
  #stage[data-view="plan"] #fig-map { visibility: hidden; }
  #plan-toggle { display: inline-block; }
  .chips { flex-wrap: wrap; overflow: visible; padding-bottom: .2rem; gap: .25rem; }
  .chip, .stage-btn { font-size: .72rem; padding: .22rem .48rem; }
  .beats-col { padding: 0 1.2rem; }
  .beat { min-height: 0; padding: 1.6rem 0; }
  .map-lab { font-size: 26px; font-weight: 600;
    paint-order: stroke; stroke: var(--paper); stroke-width: 3px; stroke-linejoin: round; }
}

@media (prefers-reduced-motion: reduce) {
  .chip, .sec-band, .map-dot { transition: none !important; }
}
.chip, .sec-band, .map-dot, .plan-marker { transition: opacity .25s ease, fill .25s ease; }
