/* base: nest.css */
/* nest.css — the base theme: tokens, the elements, and the classes modules share (card, stack,
   row, field, notice, badge, tile...). Each module keeps its own look in its own stylesheet
   (its manifest's styles), built on these tokens; an application restyles both. */
:root {
  --bg: #f8f7f4; --surface: #ffffff; --text: #1d1c1a; --muted: #5f5b53;
  --border: #dedad0; --accent: #8a2b1f; --accent-text: #ffffff; --focus: #1f4f8a;
  --ok: #2d6a3e; --danger: #a32121;
  --radius: 8px; --gap: 1rem; --max: 72rem;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #151413; --surface: #1e1d1b; --text: #ecebe6; --muted: #a6a196;
    --border: #34312c; --accent: #e0806f; --accent-text: #151413; --focus: #8db6ea;
    --ok: #7cc48e; --danger: #f08a8a;
  }
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 1rem/1.6 var(--font);
  display: flex; flex-direction: column; min-height: 100vh; }
main { flex: 1; padding-block: 1.5rem 3rem; }
.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: 1rem; }
a { color: var(--accent); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; background: var(--surface); padding: .5rem 1rem; z-index: 10; }

.site-header { background: var(--surface); border-bottom: 1px solid var(--border); }
.bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: .5rem 1.5rem; min-height: 3.5rem; }
.brand { font-weight: 700; color: var(--text); text-decoration: none; font-size: 1.1rem; }
nav ul { display: flex; flex-wrap: wrap; gap: .25rem 1rem; list-style: none; margin: 0; padding: 0; }
nav a { color: var(--muted); text-decoration: none; }
nav a:hover, nav a[aria-current="page"] { color: var(--text); }
.site-footer { border-top: 1px solid var(--border); color: var(--muted); font-size: .9rem; padding-block: 1rem; }

h1, h2, h3 { line-height: 1.25; margin: 1.5rem 0 .75rem; }
h1 { font-size: clamp(1.6rem, 4vw, 2.2rem); margin-top: .5rem; }
p { margin: .5rem 0 1rem; }
code, pre { font-family: var(--mono); font-size: .9em; }
pre { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: .75rem 1rem; overflow-x: auto; }
img, video { max-width: 100%; height: auto; }

.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1rem 1.25rem; margin-block: var(--gap); }
.grid { display: grid; gap: var(--gap); grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); }
.muted { color: var(--muted); }
.stack > * + * { margin-top: var(--gap); }
.row { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }

button, .button { font: inherit; cursor: pointer; border: 1px solid var(--accent); background: var(--accent);
  color: var(--accent-text); border-radius: var(--radius); padding: .5rem 1rem; min-height: 2.5rem;
  text-decoration: none; display: inline-flex; align-items: center; gap: .4rem; }
button.secondary, .button.secondary { background: transparent; color: var(--accent); }
button:disabled { opacity: .55; cursor: not-allowed; }
label { display: block; font-weight: 600; margin-bottom: .25rem; }
input, select, textarea { font: inherit; color: inherit; background: var(--surface); width: 100%;
  border: 1px solid var(--border); border-radius: var(--radius); padding: .5rem .75rem; min-height: 2.5rem; }
textarea { min-height: 6rem; resize: vertical; }
fieldset { border: 1px solid var(--border); border-radius: var(--radius); }

.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); }
table { border-collapse: collapse; width: 100%; background: var(--surface); }
th, td { text-align: left; padding: .5rem .75rem; border-bottom: 1px solid var(--border); }
tr:last-child td { border-bottom: none; }

.notice { border-left: 4px solid var(--accent); background: var(--surface); padding: .75rem 1rem;
  border-radius: 0 var(--radius) var(--radius) 0; }
.notice.ok { border-color: var(--ok); } .notice.danger { border-color: var(--danger); }

/* htmx: indicators without the inline styles htmx would inject. */
.htmx-indicator { opacity: 0; transition: opacity .2s; }
.htmx-request .htmx-indicator, .htmx-request.htmx-indicator { opacity: 1; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
.narrow { max-width: 28rem; margin-inline: auto; }
button.link { background: none; border: none; color: var(--muted); padding: .25rem .4rem; min-height: auto; }
button.link:hover, button.link.current { color: var(--text); text-decoration: underline; }
.language { gap: 0; }
.field { margin-bottom: 1rem; }
.field .hint, .field .error { display: block; margin-top: .25rem; font-size: .875rem; }
.field .hint { color: var(--muted); }
.field .error { color: var(--danger); }
.field .req { color: var(--danger); }
.field.check { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.field.check input { width: auto; min-height: auto; }
.field.check label { margin: 0; font-weight: 400; }
[aria-invalid="true"] { border-color: var(--danger); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.between { justify-content: space-between; }
form.search { display: flex; gap: .5rem; margin-block: 1rem; }
form.search input { flex: 1; }
.tile { display: flex; flex-direction: column; gap: .25rem; text-decoration: none; color: var(--text); }
.tile:hover { border-color: var(--accent); }
.letters { display: flex; flex-wrap: wrap; gap: .25rem; margin-block: 1rem; }
.letters a { min-width: 2.25rem; text-align: center; padding: .35rem .5rem; border: 1px solid var(--border);
  border-radius: var(--radius); text-decoration: none; background: var(--surface); }
.letters a[aria-current="page"] { background: var(--accent); color: var(--accent-text); border-color: var(--accent); }
ol.results { padding-left: 1.25rem; } ol.results li { margin-bottom: 1rem; } ol.results p { margin: .25rem 0; }
mark { background: color-mix(in srgb, var(--accent) 25%, transparent); color: inherit; border-radius: 2px; }
.pager { margin-top: 1.5rem; }
.danger-zone { margin-top: 2rem; border-top: 1px solid var(--border); padding-top: 1rem; }
.checks { display: flex; flex-wrap: wrap; gap: .25rem 1rem; } label.check { font-weight: 400; display: inline-flex; gap: .35rem; align-items: center; }
label.check input { width: auto; min-height: auto; }
.badge { display: inline-block; font-size: .75rem; padding: .05rem .45rem; border-radius: 999px; background: var(--border); color: var(--text); vertical-align: middle; }
form.inline { display: inline; }
/* numbers in tables, and a change for the better or the worse (the game's benchmark) */
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.better { color: var(--ok); } .worse { color: var(--danger); }
progress { width: 100%; max-width: 32rem; }
/* the language switch: its choices apart, in any theme */
.language { display: flex; flex-wrap: wrap; align-items: center; gap: .15rem .6rem; }

/* the line every site carries: built with Nest */
.nest-credit { margin: .35rem 0 0; font-size: .78rem; opacity: .75; }
.nest-credit a { color: inherit; }

/* morlaca-valley: morlaca.css */
/* morlaca.css — the valley theme (morlaca-valley), on the base theme; heritage and
   chronicle are built on it. A theme's stylesheet comes before the modules' own, so a
   rule for a class a module styles too (.entry, .map...) is written under main, to win. The palette is the valley's: meadow and forest greens, a slate sky, the
   terracotta of the roofs; a band of cross-stitch, as on the sleeve of an ie, under the
   header. Fonts are the system's (no web font to download): a book serif for headings. */

:root {
  --bg: #f4efe4; --surface: #fffcf5; --text: #23251f; --muted: #66645a;
  --border: #e2d9c5; --accent: #9e3a1d; --accent-text: #fffcf5; --focus: #2f5d8a;
  --forest: #24382a; --meadow: #4f6b3c; --slate: #5c6670; --cream: #f3ead8; --stitch: #b4452a;
  --radius: 10px; --max: 74rem;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141814; --surface: #1c211c; --text: #ece8dc; --muted: #a7a395;
    --border: #2f362e; --accent: #e08a68; --accent-text: #141814; --focus: #8db6ea;
    --forest: #101611; --meadow: #9bb787; --slate: #9aa4ad; --cream: #2a2620; --stitch: #c8603f;
  }
}

h1, h2, h3, .brand-name, .footer-name { font-family: var(--serif); font-weight: 600; letter-spacing: .005em; }
h2 { font-size: clamp(1.3rem, 2.6vw, 1.65rem); }
a { text-underline-offset: .15em; }

/* --- the header: forest green, the village's name, the stitched band ------------------ */
.site-header { background: var(--forest); border: 0; color: #f3ead8; }
.site-header .bar { min-height: 4.25rem; }
.brand { display: flex; align-items: center; gap: .7rem; color: #f8f1e1; }
.brand-mark { width: 1.6rem; height: 1.6rem; flex: none; background: var(--stitch);
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); box-shadow: inset 0 0 0 .38rem var(--stitch); position: relative; }
.brand-mark::after { content: ""; position: absolute; inset: .48rem; background: #f3ead8;
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-size: 1.45rem; }
.brand-sub { font-size: .78rem; color: #c9cdb8; letter-spacing: .02em; }
.site-nav ul.menu > li > a { color: #e6e2d2; font-weight: 500; padding: .3rem 0; display: inline-block; }
.site-nav ul.menu > li > a:hover, .site-nav ul.menu a[aria-current="page"] { color: #fff; text-decoration: underline;
  text-decoration-color: var(--stitch); text-decoration-thickness: 2px; text-underline-offset: .45em; }
.site-nav ul.menu ul { background: var(--surface); }
.site-nav ul.menu ul a { color: var(--text); }
.site-header .status, .site-header .status a { color: #e6e2d2; }

.band { height: 10px; background-color: var(--cream);
  background-image:
    linear-gradient(135deg, var(--stitch) 25%, transparent 25%),
    linear-gradient(225deg, var(--stitch) 25%, transparent 25%),
    linear-gradient(315deg, var(--stitch) 25%, transparent 25%),
    linear-gradient(45deg, var(--stitch) 25%, transparent 25%);
  background-size: 10px 10px; background-position: -5px 0, -5px 0, 0 0, 0 0; }

/* --- the hero: the valley, full width, the name over it --------------------------------- */
.hero { position: relative; isolation: isolate; min-height: clamp(20rem, 58vh, 34rem); display: flex; align-items: flex-end;
  color: #fff; background: var(--forest); overflow: hidden; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; z-index: -2; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(20, 28, 22, .05) 30%, rgba(20, 28, 22, .78) 100%); }
.hero-plain { min-height: 14rem; }
.hero-text { padding-block: 2.5rem 2rem; }
.hero h1 { font-size: clamp(2.6rem, 8vw, 4.6rem); margin: 0; line-height: 1; text-shadow: 0 2px 18px rgba(0, 0, 0, .35); }
.hero-tagline { font-family: var(--serif); font-size: clamp(1.1rem, 2.6vw, 1.45rem); margin: .5rem 0 1rem; color: #f3ead8; }
.hero-facts { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; padding: 0; margin: 0; }
.hero-facts li { background: rgba(255, 252, 245, .14); backdrop-filter: blur(4px); border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 999px; padding: .25rem .8rem; font-size: .92rem; }
.home main { padding-top: 2rem; }

/* --- the village's text and its facts ---------------------------------------------------- */
.intro { display: grid; gap: 2rem; grid-template-columns: minmax(0, 1fr) 20rem; align-items: start; }
main .intro-text .body { font-size: 1.06rem; }
main .intro-text .body > p:first-child { font-family: var(--serif); font-size: 1.25rem; }
.factbox { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.1rem 1.25rem;
  border-top: 4px solid var(--meadow); }
.factbox h2 { margin-top: 0; font-size: 1.25rem; }
.factbox h3 { font-size: 1rem; margin: 1.1rem 0 .4rem; color: var(--muted); font-family: var(--font); text-transform: uppercase; letter-spacing: .06em; }
.factbox dl { display: grid; grid-template-columns: auto 1fr; gap: .35rem 1rem; margin: 0; }
.factbox dt { color: var(--muted); }
.factbox dd { margin: 0; font-weight: 600; }
.distances, .access { list-style: none; padding: 0; margin: 0; }
.distances li { display: flex; justify-content: space-between; gap: 1rem; border-bottom: 1px dashed var(--border); padding: .25rem 0; }
.access li { padding: .2rem 0; }
.edit-link { float: right; margin: 0; }

/* --- sections and cards ------------------------------------------------------------------ */
.section { margin-top: 3rem; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  border-bottom: 1px solid var(--border); margin-bottom: 1rem; }
.section-head h2 { margin: 0 0 .5rem; }
.section-head a { font-size: .95rem; }
.section.two { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); }
.link-list { list-style: none; padding: 0; margin: 0; }
.link-list li { border-bottom: 1px solid var(--border); }
.link-list a { display: block; padding: .55rem 0; color: var(--text); text-decoration: none; }
.link-list a:hover { color: var(--accent); }
.link-list a::before { content: "◆"; color: var(--stitch); font-size: .7em; margin-right: .6rem; vertical-align: .15em; }

.cards { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 15.5rem), 1fr)); }
.post-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column; transition: transform .15s ease, box-shadow .15s ease; }
.post-card:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(36, 56, 42, .12); }
.post-card-link { color: var(--text); text-decoration: none; }
.post-card img, .post-card-blank { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; background: var(--cream); }
.post-card-blank { background: linear-gradient(135deg, var(--meadow), var(--forest)); opacity: .85; }
.post-card h3, .post-card .post-card-title { font-size: 1.12rem; margin: .8rem 1rem .25rem; }
.post-card p { margin: 0 1rem 1rem; color: var(--muted); font-size: .93rem; }
.listing-head { margin-bottom: 1.5rem; }
.lead { font-size: 1.1rem; color: var(--muted); max-width: 46rem; }

/* --- an article ---------------------------------------------------------------------------- */
main .entry { max-width: 46rem; }
main .intro .entry { max-width: none; }
main .entry header h1 { font-size: clamp(1.8rem, 4.4vw, 2.6rem); }
main .entry .body { font-size: 1.05rem; }
main .entry .body h2, main .entry .body h3 { margin-top: 2rem; }
main .entry .body blockquote { margin: 1.25rem 0; padding: .25rem 1.25rem; border-left: 4px solid var(--meadow);
  font-family: var(--serif); font-size: 1.08rem; color: var(--muted); }
main .featured { margin: 0 0 1.5rem; }
main .featured img { width: auto; max-width: 100%; max-height: 30rem; object-fit: contain; border-radius: var(--radius); }

/* the gallery, the map and the comments, in the village's colours */
main .gallery-tile { border-radius: var(--radius); }
main .map { border-radius: var(--radius); }

/* --- the footer ------------------------------------------------------------------------- */
.site-footer { background: var(--forest); color: #d8d6c8; border: 0; padding-block: 2.5rem 1rem; margin-top: 3rem; }
.site-footer a { color: #f3ead8; }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); }
.footer-name { font-size: 1.5rem; color: #fff; margin: 0 0 .5rem; }
.footer-head { font-weight: 600; color: #fff; margin: 0 0 .5rem; }
.site-footer ul { display: block; list-style: none; padding: 0; margin: 0; }
.site-footer li { padding: .15rem 0; }
.footer-end { border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 2rem; padding-top: 1rem; font-size: .85rem; color: #a9ad9c; }

@media (max-width: 52rem) {
  .intro { grid-template-columns: 1fr; }
  .site-header .bar { padding-block: .6rem; }
}
@media (max-width: 40rem) {
  .brand-sub { display: none; }
  .hero h1 { font-size: 2.6rem; }
  .site-nav { width: 100%; }
  .site-nav ul.menu { flex-wrap: wrap; gap: .1rem 1rem; }
}

/* the language switch, in the header */
.site-header .language button { color: #c9cdb8; background: none; border: 0; padding: .2rem .35rem; min-height: 0; font-size: .85rem; letter-spacing: .04em; }
.site-header .language button.current { color: #fff; font-weight: 700; text-decoration: underline; text-decoration-color: var(--stitch); text-underline-offset: .35em; }
.site-header .language button:hover { color: #fff; }
.site-header .language { margin-left: auto; }
.site-header .language a { color: #c9cdb8; text-decoration: none; padding: .45rem .5rem; font-size: .85rem; letter-spacing: .04em; min-width: 2.75rem; min-height: 2.75rem; display: inline-flex; align-items: center; justify-content: center; }
.site-header .language a.current { color: #fff; font-weight: 700; text-decoration: underline; text-decoration-color: var(--stitch); text-underline-offset: .35em; }
.site-header .language a:hover { color: #fff; }
/* the footer's links: big enough for a finger */
.site-footer li a { display: inline-block; padding: .5rem 0; min-height: 2.75rem; }
.site-footer li { padding: 0; }

/* --- the search box, in the header ------------------------------------------------------- */
.site-search { display: flex; align-items: center; margin-left: auto; background: rgba(255, 252, 245, .1);
  border: 1px solid rgba(255, 255, 255, .22); border-radius: 999px; padding-left: .8rem; }
.site-search input { background: none; border: 0; color: #f8f1e1; width: 9rem; min-height: 2.5rem; padding: 0; font: inherit; font-size: .92rem; }
.site-search input::placeholder { color: #b9bea8; }
.site-search input:focus { outline: none; width: 12rem; }
.site-search:focus-within { border-color: #f3ead8; box-shadow: 0 0 0 2px var(--focus); }
.site-search button { background: none; border: 0; color: #e6e2d2; min-height: 2.5rem; min-width: 2.75rem; padding: 0 .7rem; cursor: pointer; }
.site-search button:hover { color: #fff; }
.site-search input, .site-search input:focus { transition: width .2s ease; }
.site-header .site-search + .language { margin-left: .25rem; }
@media (prefers-reduced-motion: reduce) { .site-search input { transition: none; } }

/* --- the panorama over an inner page ---------------------------------------------------------- */
.banner { height: clamp(6rem, 16vw, 11rem); overflow: hidden; background: var(--forest); position: relative; }
.banner img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 55%; display: block; }
.banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20, 28, 22, .35), rgba(20, 28, 22, 0) 45%); }
main#main { padding-top: 1.5rem; }

/* --- the way back, and what to read next -------------------------------------------------------- */
.crumbs ol { display: flex; flex-wrap: wrap; gap: .25rem .5rem; list-style: none; padding: 0; margin: 0 0 1rem; font-size: .9rem; color: var(--muted); }
.crumbs li + li::before { content: "›"; margin-right: .5rem; color: var(--stitch); }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--accent); }
.crumbs [aria-current] { color: var(--text); max-width: 32ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.entry-meta a { color: var(--meadow); }
main .entry .children { margin-top: 2rem; }
.related { max-width: none; }

@media (max-width: 52rem) {
  .site-search { order: 3; width: 100%; margin: .25rem 0 .5rem; }
  .site-search input, .site-search input:focus { width: 100%; }
}

/* --- a page that is not there ------------------------------------------------------------ */
.lost { max-width: 36rem; margin: 2rem auto 3rem; text-align: center; }
.lost-code { font-family: var(--serif); font-size: 4.5rem; line-height: 1; margin: 0; color: var(--stitch); }
.lost h1 { font-size: clamp(1.4rem, 3.4vw, 1.9rem); }
.lost .site-search { margin: 1rem auto 1.5rem; max-width: 22rem; background: var(--surface); border-color: var(--border); }
.lost .site-search input { color: var(--text); width: 100%; }
.lost .site-search input::placeholder { color: var(--muted); }
.lost .site-search button { color: var(--muted); }

/* the line every site carries: built with Nest */
.nest-credit { margin: .35rem 0 0; font-size: .78rem; opacity: .75; }
.nest-credit a { color: inherit; }

/* morlaca-chronicle: chronicle.css */
/* chronicle.css — morlaca.ro as the village's almanac, on the valley theme: warm paper,
   ink, an oxblood red; the name set large and spaced, the menu in small capitals between
   double rules, articles set like a book. System serifs only: nothing to download. */

:root {
  --bg: #f4ecdc; --surface: #fbf6ea; --text: #2b2620; --muted: #6f6455; --border: #d9ccb2;
  --accent: #8b2a1d; --accent-text: #fbf6ea; --focus: #2f5d8a;
  --forest: #2b2620; --meadow: #5b6b3c; --cream: #efe4cd; --stitch: #8b2a1d;
  --radius: 2px; --max: 68rem;
  --font: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1b1814; --surface: #23201b; --text: #ebe2d0; --muted: #a99d88; --border: #3a342b;
    --accent: #d9826e; --accent-text: #1b1814; --forest: #12100d; --meadow: #a7b884; --cream: #2a251e; --stitch: #d9826e;
  }
}
body { font-family: var(--font); }

/* --- the masthead ------------------------------------------------------------------------ */
.chronicle-head { background: var(--bg); color: var(--text); }
.chronicle-strip { border-bottom: 1px solid var(--border); font-size: .9rem; }
.chronicle-strip .container { display: flex; align-items: center; justify-content: flex-end; gap: .75rem; min-height: 2.9rem; }
.chronicle-strip .site-search { margin: 0; background: transparent; border: 1px solid var(--border); border-radius: 999px; }
.chronicle-strip .site-search input { color: var(--text); width: 10rem; }
.chronicle-strip .site-search input::placeholder { color: var(--muted); }
.chronicle-strip .site-search button { color: var(--muted); }
.chronicle-strip .site-search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 2px var(--focus); }
.chronicle-strip .language a { color: var(--muted); text-decoration: none; padding: .4rem .45rem; min-width: 2.75rem; min-height: 2.75rem;
  display: inline-flex; align-items: center; justify-content: center; letter-spacing: .06em; font-variant: small-caps; }
.chronicle-strip .language a.current { color: var(--accent); font-weight: 700; }
.chronicle-title { text-align: center; padding-block: clamp(1.5rem, 4vw, 2.75rem) 1rem; }
.chronicle-name { color: var(--text); text-decoration: none; font-size: clamp(2.6rem, 9vw, 5.2rem); letter-spacing: .32em;
  text-transform: uppercase; margin-right: -.32em; line-height: 1; font-weight: 600; }
.chronicle-name:hover { color: var(--accent); }
.chronicle-sub { margin: .75rem 0 0; font-style: italic; color: var(--muted); font-size: clamp(1rem, 2.2vw, 1.2rem); }
.chronicle-nav { border-block: 3px double var(--text); margin-bottom: .25rem; }
.chronicle-nav ul.menu { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 .25rem; list-style: none; margin: 0; padding: 0; }
.chronicle-nav ul.menu > li > a { display: inline-flex; align-items: center; min-height: 2.9rem; padding: 0 .9rem; color: var(--text);
  text-decoration: none; font-variant: small-caps; letter-spacing: .08em; font-size: 1.08rem; }
.chronicle-nav ul.menu > li > a:hover, .chronicle-nav ul.menu a[aria-current="page"] { color: var(--accent); text-decoration: underline;
  text-underline-offset: .35em; }
.chronicle-nav ul.menu ul { background: var(--surface); }

/* --- the village's page: its photograph as a plate -------------------------------------- */
.hero { margin: 0 auto; max-width: var(--max); min-height: clamp(16rem, 48vh, 28rem); }
.hero::after { background: linear-gradient(180deg, rgba(43, 38, 32, 0) 35%, rgba(43, 38, 32, .82) 100%); }
.hero h1 { letter-spacing: .04em; }
.hero-facts li { border-radius: var(--radius); background: rgba(251, 246, 234, .12); }

/* --- articles set like a book ------------------------------------------------------------- */
main#main { padding-top: 1.5rem; }
main .entry { max-width: 42rem; margin-inline: auto; }
main .entry header { text-align: center; border-bottom: 1px solid var(--border); padding-bottom: 1rem; margin-bottom: 1.5rem; }
main .entry header h1 { font-size: clamp(2rem, 5vw, 3rem); font-weight: 600; letter-spacing: .01em; }
.entry-meta { font-variant: small-caps; letter-spacing: .06em; }
main .entry .body { font-size: 1.12rem; line-height: 1.75; hyphens: auto; }
main .entry .body > p:first-of-type::first-letter { float: left; font-size: 3.6em; line-height: .82; margin: .06em .1em 0 0; color: var(--accent); font-weight: 600; }
main .entry .body h2, main .entry .body h3 { text-align: center; font-variant: small-caps; letter-spacing: .05em; }
main .entry .body blockquote { border-left: 0; border-block: 1px solid var(--border); padding: .75rem 1rem; text-align: center; font-style: italic; }
main .featured { margin: 0 calc(50% - min(34rem, 50vw)) 1.75rem; }
main .featured img { width: 100%; max-height: 34rem; object-fit: cover; border-radius: var(--radius); filter: sepia(.08); }
.crumbs { text-align: center; }
.crumbs ol { justify-content: center; font-variant: small-caps; letter-spacing: .05em; }

/* --- lists as an almanac's pages ---------------------------------------------------------- */
.section-head { border-bottom: 3px double var(--border); }
.section-head h2, .listing-head h1 { font-variant: small-caps; letter-spacing: .05em; }
.listing-head { text-align: center; }
.listing-head .lead { margin-inline: auto; font-style: italic; }
.post-card { border-radius: var(--radius); box-shadow: none; background: transparent; border: 0; border-top: 1px solid var(--border); padding-top: .75rem; }
.post-card:hover { transform: none; box-shadow: none; }
.post-card img { border-radius: var(--radius); filter: sepia(.12); transition: filter .2s ease; }
.post-card:hover img { filter: none; }
.post-card .post-card-title { margin-inline: 0; font-size: 1.2rem; }
.post-card p { margin-inline: 0; font-style: italic; }
.link-list a::before { content: "❦"; color: var(--accent); }
.factbox { border-radius: var(--radius); border-top: 3px double var(--text); background: var(--surface); }

/* --- the colophon ------------------------------------------------------------------------- */
.site-footer { background: var(--bg); color: var(--muted); border-top: 3px double var(--text); margin-top: 2.5rem; padding-block: 1rem .8rem; font-size: .9rem; }
.site-footer a { color: var(--accent); }
.chronicle-colophon { text-align: center; max-width: 60rem; }
.chronicle-line { margin: .15rem 0; }
.chronicle-colophon strong { color: var(--text); font-variant: small-caps; letter-spacing: .12em; font-size: 1.05rem; }
.chronicle-mark { font-size: 1.15rem; color: var(--accent); }
.chronicle-end { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .1rem .9rem; }
.chronicle-links a { display: inline-block; padding: .3rem 0; }
.site-footer .nest-credit { text-align: center; margin: .1rem 0 0; }

@media (max-width: 40rem) {
  .chronicle-name { letter-spacing: .18em; margin-right: -.18em; }
  .chronicle-strip .site-search input { width: 7rem; }
}
@media (prefers-reduced-motion: reduce) { .post-card img { transition: none; } }
.chronicle-links { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 0 .9rem; }
.chronicle-links li + li::before { content: "·"; margin-right: .9rem; color: var(--muted); }
/* compact colophon: the links in one row beside the copyright (over the valley theme's
   stacked footer lists) */
.site-footer ul.chronicle-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 .9rem; margin: 0; padding: 0; }
.site-footer ul.chronicle-links li { padding: 0; }
.site-footer ul.chronicle-links li a { display: inline; min-height: 0; padding: 0; }
.site-footer .chronicle-end { margin-top: .2rem; }

/* hangman: hangman.css */
.hangman-board { display: flex; flex-wrap: wrap; gap: 1.5rem; align-items: center; }
.hangman-drawing { width: 9rem; height: auto; flex: none; }
.hangman-drawing path, .hangman-drawing circle { fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; }
.hangman-drawing .figure { stroke: var(--danger, #b3261e); color: var(--danger, #b3261e); }
.hangman-side { flex: 1 1 16rem; min-width: 0; }
.hangman-word { display: flex; flex-wrap: wrap; gap: .35rem; font-size: 1.8rem; font-weight: 600; letter-spacing: .02em; margin: 0 0 .75rem; }
.hangman-word .slot { display: inline-block; min-width: 1.1em; text-align: center; border-bottom: 3px solid currentColor; line-height: 1.2; }
.hangman-word .gap { width: .8em; }
.hangman-word .missed { color: var(--danger, #b3261e); }
.hangman-clue { font-style: italic; }
.hangman-keys { display: flex; flex-wrap: wrap; gap: .35rem; margin: 1rem 0; }
.hangman-keys .key { min-width: 2.4rem; padding: .45rem .5rem; font-weight: 600; }
.hangman-keys .key.hit { opacity: .55; }
.hangman-keys .key.miss { opacity: .35; text-decoration: line-through; }
.hangman-actions { align-items: center; gap: 1rem; margin-top: .5rem; }
.hangman-end { margin: 1rem 0; }

/* admin: preview.css */
/* preview.css — the bar an administrator previewing a theme sees, in any theme (site pages). */
.theme-preview-bar { position: fixed; left: 50%; bottom: 1rem; transform: translateX(-50%); z-index: 50;
  display: flex; flex-wrap: wrap; align-items: center; gap: .4rem 1rem; max-width: calc(100% - 2rem);
  padding: .6rem 1rem; border-radius: 10px; font: .9rem/1.4 system-ui, sans-serif;
  background: #1d1c1a; color: #f4f2ec; box-shadow: 0 8px 28px rgb(0 0 0 / .3); }
.theme-preview-bar a { color: #ffd38a; }

/* comments: comments.css */
/* comments.css — the base look of comments: the thread, its replies and the spam trap.
   Built only on the theme's tokens (--surface, --border, --accent, --radius...), so an
   application restyles it by its own tokens, or by its own stylesheet loaded after this. */
.comments { margin-top: 2.5rem; border-top: 1px solid var(--border); padding-top: 1rem; }
ol.comment-list, ol.comment-replies { list-style: none; padding-left: 0; }
ol.comment-replies { padding-left: 1.25rem; border-left: 2px solid var(--border); }
.comment { margin-bottom: 1rem; } .comment-meta { margin: 0 0 .25rem; } .comment-body p { margin: .25rem 0; }
.comment-reply summary { cursor: pointer; color: var(--muted); font-size: .9rem; }
.trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* notifications: toasts.css */
/* toasts.css — the notifications module's base look, on the theme's tokens. */
.toasts { position: fixed; z-index: 200; right: 1rem; bottom: 1rem; display: flex; flex-direction: column; gap: .5rem;
  width: min(24rem, calc(100vw - 2rem)); pointer-events: none; }
.toast { pointer-events: auto; display: flex; align-items: flex-start; gap: .75rem; padding: .7rem .8rem .7rem 1rem;
  background: var(--surface); color: var(--text); border: 1px solid var(--border); border-left: 4px solid var(--muted);
  border-radius: var(--radius); box-shadow: 0 10px 28px rgba(0, 0, 0, .16); animation: toast-in .22s ease-out; }
.toast-success { border-left-color: var(--ok); }
.toast-info { border-left-color: var(--focus); }
.toast-warning { border-left-color: #b7791f; }
.toast-error { border-left-color: var(--danger); }
.toast-text { flex: 1; line-height: 1.4; }
.toast-text::before { font-weight: 700; margin-right: .4rem; }
.toast-success .toast-text::before { content: "✓"; color: var(--ok); }
.toast-warning .toast-text::before { content: "!"; color: #b7791f; }
.toast-error .toast-text::before { content: "✕"; color: var(--danger); }
.toast-close { border: 0; background: transparent; color: var(--muted); font-size: 1.2rem; line-height: 1;
  padding: 0 .2rem; min-height: 0; cursor: pointer; }
.toast-close:hover { color: var(--text); }
.toast-leaving { animation: toast-out .25s ease-in forwards; }
@keyframes toast-in { from { opacity: 0; transform: translateY(.5rem); } }
@keyframes toast-out { to { opacity: 0; transform: translateX(1rem); } }
@media (prefers-reduced-motion: reduce) { .toast, .toast-leaving { animation: none; } }
@media (max-width: 40rem) { .toasts { left: 1rem; right: 1rem; width: auto; bottom: .75rem; } }

/* glossary: glossary.css */
/* glossary.css — the base look of the glossary: its terms, senses, usage notes and facts.
   Built only on the theme's tokens (--surface, --border, --accent, --radius...), so an
   application restyles it by its own tokens, or by its own stylesheet loaded after this. */
ul.terms { columns: 16rem; column-gap: 2rem; padding-left: 1.1rem; }
ul.inline-list { display: flex; flex-wrap: wrap; gap: .25rem 1rem; list-style: none; padding: 0; }
.senses { padding-left: 1.25rem; } .sense { margin-bottom: 1.25rem; }
.usage { border-left: 3px solid var(--border); margin: .5rem 0; padding-left: 1rem; color: var(--muted); font-style: italic; }
dl.facts { display: grid; grid-template-columns: max-content 1fr; gap: .25rem 1rem; margin: .5rem 0; }
dl.facts dt { color: var(--muted); } dl.facts dd { margin: 0; }
.transcription { font-weight: 400; font-size: .7em; }
fieldset.sense-fields { margin-bottom: 1rem; padding: 1rem; }

/* the webmasters' page: the boxes as another site shows them (the site's own styles are
   inline in the code to copy; here, where inline styles are not allowed, these stand in) */
.embed { margin: 1.5rem 0; }
.embed-preview { margin: .75rem 0; }
.embed-preview > div { border: 1px solid #777; width: 220px; padding: 6px; text-align: center; font-size: 13px; }
.embed-preview > div > a { display: block; margin-bottom: 5px; font-weight: bold; text-decoration: none; }
.embed-preview input:not([type=submit]), .embed-preview select { width: 100%; margin-bottom: 5px; }
.embed-preview > form { display: flex; gap: 4px; max-width: 16em; }
.embed-preview > form input:not([type=submit]) { flex: 1; min-width: 0; margin: 0; }
.embed-code { width: 100%; font-family: ui-monospace, monospace; font-size: .8rem; }

/* the admin panel's dictionaries */
.glossary-facts .card { text-decoration: none; }
.glossary-filter { align-items: flex-end; flex-wrap: wrap; gap: .75rem; }
.letters { display: flex; flex-wrap: wrap; gap: .25rem .5rem; margin: .75rem 0; }
.letters a[aria-current] { font-weight: bold; text-decoration: none; }
.glossary-terms form.row { gap: .4rem; flex-wrap: wrap; align-items: center; }

