:root {
  color-scheme: light; --ink: #22252a; --muted: #555c63; --blue: #314db7;
  --line: #dadbd5; --sheet: #f8f8f4; --frame: #eae7df;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--sheet); color: var(--ink); line-height: 1.55;
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: var(--blue); text-underline-offset: .19em; }
a:hover { text-decoration: underline; }
a:focus-visible, summary:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; }
.wrap { max-width: 1232px; margin: 0 auto; padding-inline: clamp(16px, 4.2vw, 58px); }
.top { border-bottom: 1px solid var(--line); background: #fff; }
.top-row { min-height: 67px; display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.brand { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; font-size: 23px; font-weight: 650; letter-spacing: -.045em; color: var(--ink); text-decoration: none; }
.brand bdi span { font-size: .72em; font-weight: 500; letter-spacing: -.025em; color: var(--muted); }
.brand img { width: 31px; height: 31px; }
.top nav { display: flex; align-items: center; gap: clamp(10px, 3vw, 33px); font-size: .92rem; }
.top nav > a { color: var(--ink); text-decoration: none; }
.language { position: relative; }
.language summary, .filters summary { cursor: pointer; font-weight: 600; }
.lang-list { list-style: none; padding: 8px; margin: 0; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.language .lang-list { position: absolute; z-index: 2; inset-inline-end: 0; top: calc(100% + 12px); width: 16rem; max-width: calc(100vw - 32px); display: grid; grid-template-columns: repeat(2, 1fr); box-shadow: 0 7px 30px #2222; }
.lang-list a { display: block; padding: 5px 9px; text-decoration: none; }
.lang-list a[aria-current] { color: var(--ink); font-weight: 650; }
main { padding-block: 34px 64px; }
.crumbs ol, .tags, .paginator { display: flex; flex-wrap: wrap; gap: 7px 13px; align-items: baseline; padding: 0; margin: 0; list-style: none; }
.crumbs { margin-bottom: 28px; font-size: .875rem; color: var(--muted); }
.crumbs li + li::before { content: '/'; color: var(--muted); margin-inline-end: 13px; }
.crumbs a, .tags a { color: var(--muted); }
h1, h2, h3, p, figure { margin: 0; }
h1, h2 { text-wrap: balance; line-height: 1.13; }
h1 { font: 500 clamp(2.15rem, 4.6vw, 4.1rem)/1.1 Georgia, "Times New Roman", serif; letter-spacing: -.035em; }
h2 { font: 500 clamp(1.45rem, 2.8vw, 2.1rem)/1.23 Georgia, "Times New Roman", serif; }
.intro { max-width: 67ch; color: var(--muted); margin-top: 14px; }
.hero { display: grid; grid-template-columns: 1.12fr 1fr; gap: clamp(20px, 4vw, 54px); align-items: center; }
.hero figure { border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: var(--frame); }
.hero img { display: block; width: 100%; height: auto; }
.hero h1 { font-size: clamp(2.2rem, 4.2vw, 3.65rem); }
.cta { display: inline-block; margin-block: 20px 4px; background: var(--blue); color: #fff; padding: 11px 21px; border-radius: 5px; font-weight: 650; text-decoration: none; }
.cta:hover { background: #213879; }
.specs { display: flex; flex-wrap: wrap; gap: 12px 22px; margin: 19px 0 0; }
.specs dt, .tile small, .pieces span { font-size: .86rem; color: var(--muted); }
.specs dd { margin: 0; }
.instructions, .section, .filters { border-top: 1px solid var(--line); margin-top: 38px; padding-top: 25px; }
.instructions { display: grid; grid-template-columns: 1fr 1.18fr; gap: 40px; }
.pieces { padding: 0; margin: 14px 0; list-style: none; }
.pieces li { padding: 8px 0; border-bottom: 1px solid var(--line); display: flex; gap: 12px; align-items: center; justify-content: space-between; }
.pieces span { flex-shrink: 0; }
.piece-name { min-width: 0; display: flex; align-items: center; gap: 10px; }
.piece-name img { width: 40px; height: 40px; object-fit: contain; flex: none; }
.steps { margin: 14px 0 0; padding-inline-start: 1.5rem; }
.steps li + li { margin-top: 6px; }
.tags { margin-top: 18px; }
.filters { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px 22px; align-items: start; }
.filters summary { padding: 8px 0; }
.filters .tags { margin-top: 4px; gap: 4px 14px; }
.filters > .tags { grid-column: 1 / -1; }
.filters .tags a { font-size: .875rem; }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(18px, 3vw, 32px); margin-top: 20px; }
.tile { min-width: 0; text-decoration: none; color: var(--ink); }
.tile img { display: block; width: 100%; height: auto; border: 1px solid var(--line); background: var(--frame); border-radius: 6px; }
.tile strong, .tile small { display: block; }
.tile strong { margin-top: 7px; font-size: 1.02rem; }
.paginator { margin-top: 30px; }
.paginator a, .paginator span { display: inline-flex; justify-content: center; min-width: 35px; padding: 5px; border: 1px solid var(--line); border-radius: 4px; text-decoration: none; }
.paginator span { background: var(--ink); color: #fff; }
footer { border-top: 1px solid var(--line); color: var(--muted); font-size: .92rem; }
footer .wrap { padding-block: 20px; }
.gateway { max-width: 1232px; padding-block: min(10vh, 90px); }
.gateway .lang-list { max-width: 760px; display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 7px; margin-block: 24px; }
@media (max-width: 800px) {
  .hero { grid-template-columns: 1fr; gap: 18px; }
  .hero figure { max-width: 640px; width: 100%; }
  .grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 600px) {
  .top-row { min-height: 54px; }
  .brand { gap: 6px; font-size: 20px; }
  .brand img { width: 25px; height: 25px; }
  .top nav { font-size: .85rem; }
  main { padding-block: 20px 38px; }
  .crumbs { margin-bottom: 18px; }
  .filters, .instructions { grid-template-columns: 1fr; gap: 16px; }
  .filters { gap: 0; }
  .grid { gap: 16px 12px; }
  .tile small { font-size: .8rem; }
}
@media (max-width: 380px) {
  .top nav > a { display: none; }
  .gateway .lang-list { grid-template-columns: 1fr 1fr; }
}
h1, h2, .tile strong, .pieces strong, .intro { overflow-wrap: anywhere; }
.entry-actions { display:flex; align-items:center; flex-wrap:wrap; gap:.75rem 1.5rem; margin-block:1.2rem 2rem; }
.calendar-sections { display:flex; flex-wrap:wrap; gap:.6rem 1.3rem; padding-block:1rem; }
.calendar-list { list-style:none; padding:0; display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,18rem),1fr)); gap:0 1.5rem; }
.calendar-list li { border-top:1px solid var(--line); padding:.8rem 0; }
.calendar-list a, .calendar-list small { display:block; }
.calendar-list small { color:var(--muted); }
.source-list { padding-left:1.25rem; }
.source-list li { margin:.35rem 0; }
@media(max-width:480px) {
  .top-row { flex-wrap:wrap; gap:2px 12px; padding-block:8px; }
  .top nav > a { display:inline; }
}
.geo-links,.geo-highlights,.geo-results { list-style:none; padding:0; display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,15rem),1fr)); gap:0 1.3rem; }
.geo-links li,.geo-highlights li,.geo-results li { padding:.7rem 0; border-bottom:1px solid var(--line); min-width:0; overflow-wrap:anywhere; }
.geo-links small,.geo-highlights small,.geo-results small { display:block; color:var(--muted); font-size:.85rem; }
.geo-highlights { grid-template-columns:repeat(auto-fit,minmax(min(100%,23rem),1fr)); }
.geo-highlights li { display:flex; align-items:baseline; justify-content:space-between; gap:.7rem; }
.geo-ref { flex:none; font-size:.8rem; color:var(--muted); }
.geo-search { margin:1.4rem 0; }
.geo-search label { display:grid; gap:.3rem; font-weight:600; max-width:42rem; }
.geo-search input { padding:.75rem; border-radius:8px; border:1px solid #a3a7af; font:inherit; width:100%; }
.geo-status { min-height:1.2em; font-size:.88rem; color:var(--muted); }
.geo-results:empty { display:none; }
.geo-more { border:1px solid var(--line); border-radius:7px; padding:.6rem 1rem; font:inherit; cursor:pointer; }
.geo-search [data-geo-global] { margin-block:.65rem .4rem; color:var(--ink); background:#fff; }
.geo-search button:focus-visible,.geo-search input:focus-visible { outline:3px solid var(--blue); outline-offset:2px; }
.geo-results a:first-child { font-weight:600; }
.geo-choices,.geo-art { display:flex; flex-wrap:wrap; gap:.6rem 1rem; margin:1rem 0 1.6rem; }
.geo-choices a { border:1px solid var(--line); border-radius:8px; padding:.5rem .8rem; }
.geo-art a { flex:0 1 15rem; display:grid; text-decoration:none; }
.geo-art img { display:block; width:100%; height:auto; border-radius:8px; }
.geo-source { margin:2rem 0 1rem; font-size:.9rem; color:var(--muted); }
.geo-source summary { cursor:pointer; }
@media(max-width:700px) { .top-row,.top nav { flex-wrap:wrap; gap:6px 14px; } .top-row {padding-block:9px;} }

.recipient-controls { margin-top:1.2rem; }
.recipient-controls label { display:grid; gap:.35rem; max-width:24rem; }
.recipient-controls select { padding:.65rem; border:1px solid var(--line); border-radius:6px; font:inherit; }
.recipient-variants { margin-block:.75rem 1.2rem; }
.recipient-variants summary { cursor:pointer; }
[data-recipient-group] { margin-top:2.2rem; }
[data-recipient-term][hidden] { display:none; }
.recipient-tile > .geo-ref { display:inline-block; margin-top:.35rem; }
[data-recipient-controls] section { margin-top:2rem; }

.top-row { position:relative; }
.catalog-more summary { cursor:pointer; }
.catalog-more > div { position:absolute; z-index:3; top:calc(100% - 2px); right:clamp(12px,4vw,58px); display:grid; padding:.45rem; gap:.15rem; background:white; border:1px solid var(--line); border-radius:8px; box-shadow:0 4px 15px #1112; }
.catalog-more a { padding:.42rem .75rem; color:var(--ink); text-decoration:none; }
.catalog-more a:hover { background:var(--sheet); }
.story-intents { display:flex; flex-wrap:wrap; column-gap:1.25rem; row-gap:.55rem; margin-block:1.5rem; }
.story-shelf { margin-top:2.4rem; }
.story-role { color:var(--muted); font-weight:600; margin-bottom:.45rem; }
.story-line { margin:1rem 0; padding-inline-start:.85rem; border-inline-start:2px solid #a97b4d; font-family:Georgia,serif; font-size:1.2rem; }
.story-form { display:flex; flex-wrap:wrap; align-items:flex-end; gap:.65rem; }
.story-form label { display:grid; gap:.25rem; font-size:.87rem; font-weight:600; }
.story-form input { font:inherit; color:var(--ink); border:1px solid #a3a7af; border-radius:5px; padding:.65rem; width:min(12rem,100%); }
.story-form .cta { font:inherit; cursor:pointer; border:0; margin:0; }
.story-hero figure a { display:block; }
.name-search { max-width:40rem; }
.name-search .geo-more { margin:.55rem 0; }
.name-search input, .name-compose select { min-width:0; }
.name-choices { margin:1rem 0 1.6rem; }
.name-choices summary { cursor:pointer; font-weight:600; }
.name-compose { display:flex; flex-wrap:wrap; gap:.65rem; align-items:end; }
.name-compose label { min-width:0; max-width:100%; }
.name-compose button { color:#fff; background:var(--blue); }
.name-caption { padding:.55rem 1rem; text-align:center; font:italic clamp(1.1rem,2vw,1.6rem) Georgia,serif; overflow-wrap:anywhere; }

.name-compose select { width:100%; max-width:100%; }

.name-related { margin-block-start:1.2rem; }
.name-related ul { margin-top:.35rem; }
