/* hadarauti.com — macheta A2: linen, red and black cross-stitch (ștergar), Cormorant for titles, Inter for text.
   Written for the phone first (most of the village reads on a phone), then widened for bigger screens. Only own files. */

@font-face { font-family: Inter; src: url(fonts/inter-latin.woff2) format("woff2"); font-weight: 400 700; font-display: swap; unicode-range: U+0000-00FF, U+2000-206F, U+20AC; }
@font-face { font-family: Inter; src: url(fonts/inter-latin-ext.woff2) format("woff2"); font-weight: 400 700; font-display: swap; unicode-range: U+0100-024F, U+0218-021B; }
@font-face { font-family: Inter; src: url(fonts/inter-cyrillic.woff2) format("woff2"); font-weight: 400 700; font-display: swap; unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: Cormorant; src: url(fonts/cormorant-latin.woff2) format("woff2"); font-weight: 500 700; font-display: swap; unicode-range: U+0000-00FF, U+2000-206F; }
@font-face { font-family: Cormorant; src: url(fonts/cormorant-latin-ext.woff2) format("woff2"); font-weight: 500 700; font-display: swap; unicode-range: U+0100-024F, U+0218-021B; }
@font-face { font-family: Cormorant; src: url(fonts/cormorant-cyrillic.woff2) format("woff2"); font-weight: 500 700; font-display: swap; unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }

:root {
  --bg: #fbf7ef;
  --alt: #f3ead9;
  --card: #fffdf8;
  --text: #2e2a25;
  --muted: #5f564b;        /* 6.6:1 on the background */
  --ink: #1d1814;
  --red: #a3201c;          /* 7:1 on the background, white text on it 7.4:1 */
  --green: #1f6b2a;
  --line: #e3d7c2;
  --line2: #c4b293;
  --head: Cormorant, Georgia, "Times New Roman", serif;
  --band: url(stergar.svg) repeat-x center / auto 33px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }   /* the buttons (display: inline-block) must stay hidden when the script hides them */
html { -webkit-text-size-adjust: 100%; }
html.lb-open { overflow: hidden; }
body {
  margin: 0; color: var(--text); font: 17px/1.65 Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: repeating-linear-gradient(0deg, rgba(120, 90, 40, .035) 0 1px, transparent 1px 4px), repeating-linear-gradient(90deg, rgba(120, 90, 40, .035) 0 1px, transparent 1px 4px), var(--bg);
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
a:focus-visible, button:focus-visible, .menu-button:focus-visible, summary:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--head); color: var(--ink); line-height: 1.12; margin: 0 0 .45em; font-weight: 700; }
h2 { font-size: clamp(28px, 7vw, 44px); }
p { margin: 0 0 1em; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 820px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--red); color: #fff; padding: 10px 16px; z-index: 30; }
.skip:focus { left: 8px; }

/* header: name, RO/RU, menu; the ștergar under it */
.top { position: sticky; top: 0; z-index: 20; background: rgba(251, 247, 239, .97); }
.top::after { content: ""; display: block; height: 33px; background: var(--band), #f4ecdc; border-top: 1px solid var(--line); }
.top-in { display: flex; align-items: center; gap: 12px; min-height: 64px; position: relative; }
.logo { text-decoration: none; display: flex; flex-direction: column; line-height: 1.05; margin-right: auto; }
.logo b { font: 700 25px var(--head); color: var(--ink); }
.logo small { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.lang { display: flex; border: 1px solid var(--line2); border-radius: 999px; overflow: hidden; font-size: 14px; font-weight: 700; }
.lang a { padding: 8px 12px; text-decoration: none; }
.lang a.on { background: var(--red); color: #fff; }
.menu-toggle { position: absolute; opacity: 0; pointer-events: none; }
.menu-button { cursor: pointer; padding: 16px 8px; }
.burger, .burger::before, .burger::after { display: block; width: 26px; height: 2px; background: var(--ink); content: ""; position: relative; transition: transform .2s; }
.burger::before { position: absolute; top: -8px; }
.burger::after { position: absolute; top: 8px; }
.menu-toggle:checked + .menu-button .burger { background: transparent; }
.menu-toggle:checked + .menu-button .burger::before { transform: translateY(8px) rotate(45deg); }
.menu-toggle:checked + .menu-button .burger::after { transform: translateY(-8px) rotate(-45deg); }
.menu { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--bg); border-bottom: 1px solid var(--line); padding: 4px 16px 16px; z-index: 25; }
.menu-toggle:checked ~ .menu { display: block; }
.menu ul { list-style: none; margin: 0; padding: 0; }
.menu a { display: block; padding: 13px 0; border-bottom: 1px solid var(--line); text-decoration: none; font-size: 18px; }
.menu a[aria-current="page"] { color: var(--red); font-weight: 700; }

/* buttons and small titles */
.btn { display: inline-block; padding: 14px 24px; background: var(--red); color: #fff !important; font-weight: 700; text-decoration: none; border-radius: 2px; box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .18); }
.btn.ghost { background: transparent; color: var(--ink) !important; box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn.ghost.light { color: #fff !important; box-shadow: inset 0 0 0 1.5px #fff; }
.acts { display: flex; flex-wrap: wrap; gap: 10px; }
.acts.center { justify-content: center; }
.kicker { display: inline-block; font-size: 13px; letter-spacing: .18em; text-transform: uppercase; color: var(--red); font-weight: 700; margin-bottom: 8px; }
.kicker::before { content: ""; display: inline-block; width: 18px; height: 14px; background: url(romb.svg) no-repeat center / contain; vertical-align: -2px; margin-right: 8px; }
.lead { font-size: 19px; }

/* home: the big photo with the name on it */
.hero { position: relative; min-height: 78vh; display: flex; align-items: flex-end; color: #fff; }
.hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 40%; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0, 0, 0, .8), rgba(0, 0, 0, .35) 55%, rgba(0, 0, 0, .1)); }
.hero .wrap { position: relative; z-index: 1; padding-bottom: 44px; width: 100%; }
.hero h1 { color: #fff; font-size: clamp(56px, 15vw, 104px); margin: 0; text-shadow: 0 2px 20px rgba(0, 0, 0, .4); }
.hero p { font-size: 18px; max-width: 640px; }
.hero .kicker { color: #ffd2c8; }

/* the four numbers, the BNM strip */
.ban { padding: 56px 0 30px; background: var(--band) top; }
.facts { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.facts li { background: url(cusatura.svg) repeat-x top / auto 9px, var(--card); padding: 26px 14px 14px; border-radius: 4px; font-size: 14px; color: var(--muted); box-shadow: 0 1px 0 var(--line), 0 8px 24px -16px rgba(60, 40, 10, .3); }
.facts b { display: block; font: 700 30px var(--head); color: var(--ink); }
.curs { padding: 0 0 50px; }
.curs-in { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; background: var(--card); border: 1px solid var(--line); border-radius: 4px; padding: 18px; }
.curs-in p { margin: 0; }
.curs .d { font: 700 24px var(--head); color: var(--ink); }
.curs ul { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.curs li { border: 1px solid var(--line2); border-radius: 999px; padding: 6px 12px; font-size: 15px; white-space: nowrap; }
.curs li b { margin-right: 6px; color: var(--red); }
.src2 { font-size: 12.5px; color: var(--muted); flex-basis: 100%; }

/* sections */
.block { padding: 60px 0; }
.alt { background: var(--band) top, var(--band) bottom, var(--alt); padding: 80px 0; }
.two { display: grid; gap: 30px; align-items: center; }
.two img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 4px; }
.cards { display: grid; gap: 18px; }
.card { display: block; background: var(--card); border: 1px solid var(--line); border-radius: 4px; overflow: hidden; text-decoration: none; }
.card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.card div { padding: 16px 18px 20px; }
.card .cat { margin: 0 0 2px; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--red); font-weight: 700; }
.card h3 { font-size: 24px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.gal { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 24px 0; }
.gal figure { margin: 0; }
.gal a { display: block; }
.gal img { width: 100%; aspect-ratio: 1; object-fit: cover; border: 5px solid var(--card); box-shadow: 0 0 0 1px var(--line); }
.gal figcaption { font-size: 13px; color: var(--muted); margin-top: 6px; line-height: 1.4; }
.soon { text-align: center; }
.soon p { color: var(--muted); }

/* inner pages */
.phead { padding: 30px 0 10px; }
.phead.has-cover { position: relative; color: #fff; padding: 160px 0 40px; }
.phead.has-cover > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.phead.has-cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0, 0, 0, .8), rgba(0, 0, 0, .25)); }
.phead.has-cover .wrap { position: relative; z-index: 1; }
.phead.has-cover h1, .phead.has-cover .crumbs { color: #fff; }
.phead.has-cover .kicker { color: #ffd2c8; }
.phead h1 { font-size: clamp(38px, 10vw, 68px); }
.crumbs { font-size: 14px; margin-bottom: 14px; color: var(--muted); }
.crumbs span { opacity: .6; margin: 0 4px; }
.prose h2 { font-size: clamp(26px, 6vw, 34px); margin-top: 1.4em; }
.prose ul { padding-left: 20px; }
.prose li { margin: 6px 0; }
.tl { list-style: none; padding: 0; margin: 10px 0 0; border-left: 3px dotted var(--red); }
.tl li { padding: 0 0 20px 22px; position: relative; }
.tl li::before { content: ""; position: absolute; left: -10px; top: 6px; width: 17px; height: 17px; border-radius: 50%; background: var(--bg); border: 3px solid var(--red); }
.tl span { font: 700 21px var(--head); color: var(--ink); }
.tl p { margin: 2px 0 0; color: var(--muted); }
.people { list-style: none !important; padding: 0 !important; display: grid; gap: 14px; }
.people li { background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--red); padding: 16px 18px; margin: 0 !important; }
.people h3 { font-size: 22px; margin-bottom: 4px; }
.people p { margin: 0; color: var(--muted); }
.mail a { font: 700 clamp(24px, 7vw, 34px) var(--head); color: var(--red); word-break: break-word; }
.note { color: var(--muted); }
.sources { margin-top: 40px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.links { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.links a { display: inline-block; padding: 10px 16px; border: 1px solid var(--line2); text-decoration: none; }


/* announcements and events */
.btn.big { padding: 16px 26px; font-size: 18px; }
.btn.small { padding: 7px 12px; font-size: 13px; }
.btn.viber { background: #665cac; }
.btn.wa { background: #128c7e; }
.btn.danger { background: #7a1512; }
.btn.ghost.danger { background: transparent; color: #7a1512 !important; box-shadow: inset 0 0 0 1.5px #7a1512; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 20px; -webkit-overflow-scrolling: touch; }
.chips a { flex: none; padding: 9px 14px; border: 1px solid var(--line2); border-radius: 999px; text-decoration: none; background: var(--card); font-size: 15px; white-space: nowrap; }
.chips a[aria-current] { background: var(--red); border-color: var(--red); color: #fff; }
.empty { color: var(--muted); font-style: italic; }
.block.board { padding-top: 16px; }
.ads { display: grid; gap: 14px; margin: 10px 0 24px; }
.ad { display: grid; grid-template-columns: 110px 1fr; gap: 14px; background: var(--card); border: 1px solid var(--line); border-radius: 4px; overflow: hidden; text-decoration: none; }
.ad img, .ad .noimg { width: 110px; height: 100%; min-height: 96px; object-fit: cover; }
.ad .noimg { display: grid; place-items: center; font-size: 40px; background: var(--alt); }
.ad-t { display: flex; flex-direction: column; padding: 10px 12px 10px 0; gap: 2px; }
.ad-t .cat { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--red); font-weight: 700; }
.ad-t b { font: 700 20px/1.2 var(--head); color: var(--ink); }
.ad-t .price { font-weight: 700; color: var(--ink); }
.ad-t .when { font-size: 13px; color: var(--muted); }
.evs { display: grid; gap: 14px; margin: 10px 0 24px; }
.ev { display: flex; gap: 14px; background: var(--card); border: 1px solid var(--line); border-radius: 4px; padding: 14px; text-decoration: none; }
.evs.past .ev { opacity: .8; }
.ev .date { flex: none; width: 62px; text-align: center; background: var(--red); color: #fff; border-radius: 4px; padding: 8px 0; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; align-self: flex-start; }
.ev .date b { display: block; font: 700 28px/1 var(--head); letter-spacing: 0; }
.ev-t { display: block; font: 700 20px/1.2 var(--head); color: var(--ink); margin: 2px 0; }
.who { display: block; font-size: 13px; font-weight: 700; color: var(--muted); }
.who.off { color: var(--green); }
.where { display: block; font-size: 14px; color: var(--muted); }
.listing h1 { font-size: clamp(30px, 8vw, 48px); }
.listing .price.big { font: 700 28px var(--head); color: var(--red); margin: 0 0 16px; }
.listing .body { font-size: 18px; margin: 18px 0; white-space: normal; overflow-wrap: anywhere; }
.listing .photos { grid-template-columns: 1fr 1fr; }
.listing .photos figure:first-child { grid-column: 1 / -1; }
.listing .photos img { aspect-ratio: 4 / 3; }
.evmeta { font-size: 18px; }
.contact-btns { display: flex; flex-wrap: wrap; gap: 10px; }
.contact-btns .btn { flex: 1 1 100%; text-align: center; }
.meta { color: var(--muted); font-size: 14px; margin-top: 24px; }
.report button { background: none; border: 0; color: var(--muted); text-decoration: underline; cursor: pointer; padding: 6px 0; font: inherit; font-size: 14px; }
.notice { background: #fff3cd; border: 1px solid #e5c76b; padding: 12px 14px; border-radius: 4px; }
.ok { background: #e7f4e8; border: 1px solid #9cc9a0; padding: 12px 14px; border-radius: 4px; color: #1d4d22; }
.errors { background: #fbe9e7; border: 1px solid #e3a59d; padding: 10px 14px; border-radius: 4px; margin-bottom: 16px; }
.errors p { margin: 4px 0; color: #7a1512; }
.secret { background: var(--card); border: 2px dashed var(--red); padding: 14px; word-break: break-all; }

/* the form: big fields, easy with a thumb */
.lform { display: grid; gap: 18px; }
.lform label { display: grid; gap: 6px; font-weight: 700; color: var(--ink); }
.lform small { font-weight: 400; color: var(--muted); font-size: 14px; }
.lform input[type=text], .lform input[type=tel], .lform input[type=url], .lform input[type=date], .lform input[type=time], .lform select, .lform textarea {
  width: 100%; font: 400 17px Inter, sans-serif; padding: 13px 12px; border: 1.5px solid var(--line2); border-radius: 4px; background: #fff; color: var(--text); }
.lform textarea { resize: vertical; }
.lform input:focus, .lform select:focus, .lform textarea:focus { outline: 3px solid rgba(163, 32, 28, .35); border-color: var(--red); }
.lform fieldset { border: 0; padding: 0; margin: 0; }
.lform legend { font-weight: 700; color: var(--ink); margin-bottom: 8px; }
.row2 { display: grid; gap: 14px; }
.row2.phone { grid-template-columns: minmax(0, 1fr); }
.cats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pick { display: flex !important; align-items: center; gap: 8px !important; font-weight: 400 !important; background: var(--card); border: 1.5px solid var(--line2); border-radius: 4px; padding: 12px; cursor: pointer; }
.pick input { width: 20px; height: 20px; accent-color: var(--red); }
.pick:has(input:checked) { border-color: var(--red); background: #fff4f2; }
.geo { background: var(--card); border: 1px solid var(--line) !important; padding: 14px !important; border-radius: 4px; display: grid; gap: 10px; }
.geo-msg { margin: 0; color: var(--green); font-weight: 700; }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.rules { font-size: 14px; color: var(--muted); }
.manage { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); display: grid; gap: 20px; }
.manage form { display: grid; gap: 10px; }

/* admin */
.table-box { overflow-x: auto; }
table.adm { border-collapse: collapse; width: 100%; font-size: 14px; background: var(--card); }
.adm th, .adm td { border-bottom: 1px solid var(--line); padding: 8px; text-align: left; vertical-align: top; }
.adm tr.hidden { background: #fbe9e7; }
.adm .acts { gap: 6px; }
.focus { background: var(--card); border: 2px solid var(--red); padding: 16px; margin: 20px 0; }
.lform.inline { max-width: 520px; margin: 10px 0 20px; }

/* the notification box */
.notif { background: var(--card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 30px 0; }
.notif h2 { font-size: clamp(24px, 6vw, 32px); }
.notif .topics { display: flex; flex-wrap: wrap; gap: 8px; }
.push-msg { font-weight: 700; color: var(--green); margin: 0; }
.ios-hint { font-size: 15px; color: var(--muted); background: var(--alt); padding: 10px 12px; border-radius: 4px; }

/* footer, with the ștergar on top */
.foot { position: relative; background: var(--ink); color: #d4c9b8; padding: 70px 0 24px; font-size: 15px; }
.foot::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 33px; background: var(--band), #f4ecdc; }
.foot-in { display: grid; gap: 24px; }
.foot b { font: 700 24px var(--head); color: #fff; }
.foot ul { list-style: none; padding: 0; margin: 0; columns: 2; line-height: 2.1; }
.foot a { text-decoration: none; }
.foot a:hover { color: #fff; }
.foot-copy { border-top: 1px solid rgba(255, 255, 255, .15); margin-top: 26px; padding-top: 16px; font-size: 12.5px; }
.foot-copy p { margin: 4px 0; }

/* the gallery's big view (made by galerie.js) */
.lb { position: fixed; inset: 0; z-index: 50; background: rgba(5, 5, 5, .96); display: flex; align-items: center; justify-content: center; }
.lb[hidden] { display: none; }
.lb img { max-width: 94vw; max-height: 84vh; object-fit: contain; }
.lb button { position: absolute; background: none; border: 0; color: #fff; font-size: 46px; cursor: pointer; padding: 12px 18px; line-height: 1; }
.lb button[hidden] { display: none; }
.lb-x { top: 8px; right: 8px; }
.lb-pv { left: 2px; }
.lb-nx { right: 2px; }
.lb-ct { position: absolute; bottom: 12px; margin: 0; color: #bbb; font-size: 14px; letter-spacing: .1em; }

/* wider screens */
@media (min-width: 700px) {
  .wrap { padding: 0 24px; }
  .facts { grid-template-columns: repeat(4, 1fr); gap: 20px; }
  .facts li { padding: 30px 22px 22px; font-size: 15px; }
  .facts b { font-size: 40px; }
  .cards { grid-template-columns: 1fr 1fr; }
  .gal { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .foot-in { grid-template-columns: 1fr 1.4fr; }
  .ads { grid-template-columns: 1fr 1fr; }
  .evs { grid-template-columns: 1fr 1fr; }
  .row2 { grid-template-columns: 1fr 1fr; }
  .row2.phone { grid-template-columns: 220px 1fr; }
  .cats { grid-template-columns: repeat(3, 1fr); }
  .contact-btns .btn { flex: 0 1 auto; }
  .phead.has-cover { padding: 220px 0 50px; }
}
@media (min-width: 1150px) {
  .menu-button { display: none; }
  .menu { display: block; position: static; background: none; border: 0; padding: 0; order: 2; }
  .menu ul { display: flex; gap: 16px; }
  .menu a { display: inline; padding: 0; border: 0; font-size: 15px; }
  .lang { order: 3; }
  .two { grid-template-columns: 1fr 1fr; gap: 56px; }
  .cards { grid-template-columns: repeat(4, 1fr); }
  .ads { grid-template-columns: repeat(3, 1fr); }
  .evs { grid-template-columns: repeat(3, 1fr); }
  .gal { grid-template-columns: repeat(4, 1fr); }
  .hero { min-height: 84vh; }
  .hero .wrap { padding-bottom: 70px; }
  .block { padding: 84px 0; }
  .alt { padding: 110px 0; }
}
@media (prefers-reduced-motion: reduce) {
  .burger, .burger::before, .burger::after { transition: none; }
}
