/* Sêkar Jagad · ꦱꦼꦏꦂꦗꦒꦢ꧀ — volcanic indigo, sogan brown, dawn gold, rice green, daluang paper */
@font-face{font-family:"Noto Sans Javanese";font-style:normal;font-weight:400;font-display:swap;
  src:url("fonts/noto-sans-javanese-400.woff2") format("woff2");unicode-range:U+A980-A9DF,U+200B-200D,U+25CC}
@font-face{font-family:"Noto Sans Javanese";font-style:normal;font-weight:600;font-display:swap;
  src:url("fonts/noto-sans-javanese-600.woff2") format("woff2");unicode-range:U+A980-A9DF,U+200B-200D,U+25CC}
:root{
  --paper:#f3e9d3;      /* daluang bark paper */
  --paper-hi:#f9f3e4;
  --ink:#2b2350;        /* the indigo of the volcano at dawn */
  --ink-soft:#5f5873;
  --ink-faint:#958d98;
  --indigo:#3b3a7a;
  --deep:#221b44;
  --sogan:#8f4a22;      /* batik brown */
  --sogan-soft:#b87a4b;
  --gold:#c08a2e;
  --rice:#4f7a3a;
  --rule:#c2ad88;
  --jv:"Noto Sans Javanese","Javanese Text",sans-serif;
  --en:"EB Garamond","Iowan Old Style","Palatino Linotype",Palatino,"Book Antiqua",Georgia,"Noto Sans Javanese",serif;
}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;text-size-adjust:100%}
body{
  margin:0;color:var(--ink);font:15px/1.85 var(--en);
  background-color:var(--paper);
  /* dawn light over the paper */
  background-image:
    radial-gradient(ellipse 60% 230px at 80% 0,rgba(250,200,140,.55),rgba(250,200,140,0) 70%),
    radial-gradient(ellipse 55% 200px at 14% 0,rgba(196,176,222,.38),rgba(196,176,222,0) 70%),
    linear-gradient(to bottom,rgba(240,176,128,.45) 0,rgba(248,210,166,.28) 24px,rgba(250,232,200,.10) 84px,rgba(243,233,211,0) 170px),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .45 0 0 0 0 .34 0 0 0 0 .2 0 0 0 .08 0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat:no-repeat,no-repeat,no-repeat,repeat;
  animation:arrive .7s ease-out both;
}
/* a parang border along the top of every page */
body::before{content:"";display:block;height:12px;background:url("batik/parang.svg") repeat-x 0 0/12px 12px;opacity:.9;
  border-bottom:1px solid rgba(94,55,32,.35)}
body.leaving{animation:leave .26s ease-in both}
@keyframes arrive{from{opacity:0;transform:translateY(4px)}to{opacity:1;transform:none}}
@keyframes leave{to{opacity:0;transform:translateY(-3px)}}
a{color:var(--indigo);text-decoration:none;border-bottom:1px dotted rgba(59,58,122,.35)}
a:hover,a:focus-visible{color:var(--sogan);border-bottom-color:var(--sogan)}
a:focus-visible{outline:1px dotted var(--sogan);outline-offset:3px}
::selection{background:#d9d0e8;color:var(--deep)}

/* Aksara Jawa: never letter-space it or change case; it needs room above and below for its stacked signs */
.jv,.jv-title,.aks,[lang="jv-Java"]{font-family:var(--jv);letter-spacing:0 !important;text-transform:none !important;word-break:normal;font-style:normal}

.wrap{max-width:38rem;margin:0 auto;padding:0 1.25rem}
.wrap.wide{max-width:52rem}
.wide .notes,.wide .walk,.wide hr.px:not(.short),.wide .aks{max-width:38rem;margin-left:auto;margin-right:auto}
.top{display:flex;justify-content:space-between;align-items:baseline;gap:1rem;
  font-size:11px;letter-spacing:.14em;color:var(--ink-soft);padding:1.7rem 0 .6rem}
.top a{border:0;color:var(--ink-soft)}
.top a:hover{color:var(--sogan)}
.top .home{letter-spacing:.1em;font-size:12px;color:var(--ink)}
.top .home .jv{font-size:14px;margin-right:.35em;color:var(--sogan)}
.crumbs span{margin:0 .35em;color:var(--rule)}

/* dividers: a pixel zig-zag, and a kawung band */
.px{height:3px;border:0;margin:1.6rem auto;width:100%;
  background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='3' shape-rendering='crispEdges'%3E%3Crect x='0' y='2' width='1' height='1' fill='%23ae9672'/%3E%3Crect x='1' y='1' width='1' height='1' fill='%23ae9672'/%3E%3Crect x='2' y='0' width='2' height='1' fill='%23ae9672'/%3E%3Crect x='4' y='1' width='1' height='1' fill='%23ae9672'/%3E%3Crect x='5' y='2' width='1' height='1' fill='%23ae9672'/%3E%3C/svg%3E") repeat-x center}
.px.short{width:5.5rem}
hr.batik{height:14px;border:0;margin:1.9rem auto;max-width:22rem;
  background:url("batik/kawung.svg") repeat-x center/14px 14px;
  -webkit-mask-image:linear-gradient(90deg,transparent,#000 22%,#000 78%,transparent);mask-image:linear-gradient(90deg,transparent,#000 22%,#000 78%,transparent)}
hr.batik.short{max-width:9rem}

.small{font-size:12px;color:var(--ink-soft);letter-spacing:.04em}
h1,h2,h3{font-weight:normal;margin:0}
.label{font-size:11px;letter-spacing:.28em;text-transform:uppercase;color:var(--ink-soft);margin:0 0 .9rem}
.label .jv,.notes h2 .jv{font-size:15px;margin-right:.7em;color:var(--sogan);vertical-align:-.05em}

/* ---------- index ---------- */
.hero{margin:1.1rem 0 .2rem}
.hero-art{position:relative;margin:0}
.art{display:block;width:100%;height:auto}
.hero-art .art{aspect-ratio:600/250;border:1px solid #d1bf9c;box-shadow:0 1px 0 #fffaf0,0 18px 34px -22px rgba(34,27,68,.55)}
.cartouche{position:absolute;top:12px;right:14px;margin:0;text-align:center;
  background:url("batik/kawung.svg") 0 0/10px 10px;padding:4px;
  box-shadow:0 2px 8px rgba(34,27,68,.3);line-height:1}
.cartouche .jv{display:block;background:linear-gradient(to bottom,#fbf3e1,#f1e3c6);color:var(--sogan);
  font-size:24px;font-weight:600;padding:.55rem .8rem .45rem;border:1px solid #5e3720;line-height:1.5}
.cartouche small{display:block;background:#5e3720;color:#f6e9cf;font-size:10px;letter-spacing:.28em;padding:.25rem .4rem .3rem;text-transform:uppercase}
.intro{text-align:center;margin:1.8rem auto 0;max-width:30rem}
.intro .en-title{font-size:21px;letter-spacing:.06em;font-style:italic;color:var(--deep)}
.intro p{margin:.6rem 0;font-size:14px;color:var(--ink-soft)}
.intro .jv-line{font-size:17px;color:var(--sogan);margin:.2rem 0 .8rem}
.enter{display:inline-block;margin-top:.8rem;font-size:12px;letter-spacing:.3em;border:0;color:var(--sogan)}
.enter:hover{color:var(--indigo)}

.toc{margin:0;padding:0;list-style:none}
.toc>li{display:grid;grid-template-columns:9.5rem 1fr;gap:.2rem 1.2rem;padding:.95rem 0;border-bottom:1px dotted rgba(174,150,114,.6)}
.toc>li:last-child{border-bottom:0}
.poet-name{line-height:1.5}
.poet-name .nm{font-size:15px;letter-spacing:.03em;display:block;color:var(--ink)}
.poet-name .en{font-size:12px;color:var(--ink-soft);display:block;letter-spacing:.03em;font-style:italic}
.poet-name .yrs{font-size:11px;color:var(--ink-faint);letter-spacing:.08em}
.toc ol{list-style:none;margin:0;padding:0;font-size:14px;line-height:1.75}
.toc ol li{display:flex;gap:.7em;align-items:baseline}
.toc ol li::before{content:"";flex:0 0 5px;height:5px;background:var(--sogan);opacity:.6;transform:translateY(-.15em) rotate(45deg)}
.toc ol a{border:0;color:var(--ink)}
.toc ol a .lt{margin-right:.55em}
.toc ol a .t{color:var(--ink-soft);font-style:italic;font-size:13.5px}
.toc ol a:hover .lt,.toc ol a:hover .t{color:var(--sogan)}
.toc ol a.read .lt{color:var(--ink-soft)}
.toc ol li:has(a.read)::before{background:transparent;box-shadow:inset 0 0 0 1px var(--sogan)}
#progress{color:var(--rice);letter-spacing:.06em;margin:.4rem 0 0}

.updates{list-style:none;margin:0;padding:0;font-size:12px;color:var(--ink-soft)}
.updates li{display:flex;gap:1rem}
.updates time{font-variant-numeric:tabular-nums;color:var(--ink);letter-spacing:.05em}

/* ---------- nature prints ---------- */
.banner{margin:.6rem auto 0;max-width:38rem}
.banner .art{aspect-ratio:600/200;border:1px solid #d1bf9c;box-shadow:0 1px 0 #fffaf0,0 14px 26px -20px rgba(34,27,68,.5)}
.thumb{flex:0 0 auto;display:block;width:64px;height:64px;margin-bottom:.45rem}
.thumb .art{width:64px;height:64px;border:1px solid #d1bf9c}
.orn{display:flex;align-items:center;gap:.9rem;max-width:20rem;margin:1.5rem auto}
.orn span{flex:1;height:1px;background:repeating-linear-gradient(90deg,var(--rule) 0 1px,transparent 1px 4px)}
.orn-i{display:block;flex:0 0 auto}
.corner{float:right;width:96px;height:96px;margin:-.6rem 0 .4rem 1rem;opacity:.95}
.corner .art{width:96px;height:96px}
.plates{display:grid;gap:2rem;max-width:38rem;margin:0 auto}
.plate{margin:0}
.plate figcaption{font-size:13px;line-height:1.8;color:#3f3a58;margin-top:.55rem}
.plate figcaption .jvn{font-size:15px;color:var(--ink);font-weight:normal}
.plate figcaption .jv{font-size:15px;color:var(--sogan);margin-left:.3em}
.plate figcaption .en{font-style:italic;color:var(--ink-soft);margin-left:.4em}
.plate .small{margin:.2rem 0 0}

/* ---------- poem page ---------- */
.poem-head{text-align:center;margin:1.6rem 0 1rem}
.poem-head h1 .jv-title{display:block;font-size:27px;line-height:1.75;color:var(--sogan)}
.poem-head h1 .lt{display:block;font-size:20px;letter-spacing:.06em;color:var(--deep);margin-top:.15rem}
.poem-head h1 .en{display:block;font-size:15.5px;font-style:italic;letter-spacing:.04em;color:var(--ink-soft);margin-top:.25rem}
.poem-head .by{margin-top:.8rem;font-size:12px;letter-spacing:.12em;color:var(--ink-soft)}

/* the Aksara Jawa text, on a panel edged with parang */
.aks{font-size:21px;line-height:2.45;color:var(--deep);text-align:center;
  margin:1.2rem auto .4rem;padding:1.1rem 2.4rem 1.2rem;
  background:url("batik/parang.svg") left top/12px 12px repeat-y,url("batik/parang.svg") right top/12px 12px repeat-y,
    linear-gradient(to bottom,rgba(249,243,228,.92),rgba(249,243,228,.6));
  border:1px solid rgba(174,150,114,.6);box-shadow:0 10px 24px -22px rgba(34,27,68,.6)}
.aks .l{display:block;text-wrap:balance}
.wide .aks.kawi{max-width:46rem}
.aks .gap{display:block;height:.9em}

/* Latin and English side by side, one grid row per line so long lines stay level */
.lines{display:grid;grid-template-columns:1fr 1fr;column-gap:0;max-width:48rem;margin:1.3rem auto .6rem}
.lines .l{padding-left:1.3em;text-indent:-1.3em;line-height:1.75;padding-top:.16em;padding-bottom:.16em}
.lines .o{font-size:16px;color:var(--ink);border-right:2px solid var(--sogan);padding-right:1.6rem}
.lines .e{font-size:15.5px;color:#2f2a4a;padding-left:calc(1.6rem + 1.3em)}
.lines .gap{height:.9em;border-right:2px solid var(--sogan)}
.lines .gap + .gap{border-right:0}
.notes{font-size:13.5px;line-height:1.85;color:#3f3a58}
.notes h2{font-size:11px;letter-spacing:.28em;text-transform:uppercase;color:var(--ink-soft);margin:1.6rem 0 .5rem}
.notes p{margin:.4rem 0}
.pat{font-variant-numeric:tabular-nums;white-space:nowrap;color:var(--sogan);letter-spacing:.02em}
.source{font-size:12px;color:var(--ink-soft);line-height:1.75}
.source a{overflow-wrap:anywhere}

.walk{display:grid;grid-template-columns:1fr auto 1fr;gap:1rem;align-items:start;font-size:13px;margin:2rem 0 .4rem}
.walk a{border:0;display:block;line-height:1.55}
.walk .dir{display:block;font-size:10.5px;letter-spacing:.3em;color:var(--ink-faint);text-transform:uppercase}
.walk .lt{letter-spacing:.04em;color:var(--ink)}
.walk .t{display:block;font-style:italic;color:var(--ink-soft)}
.walk a:hover .lt,.walk a:hover .t{color:var(--sogan)}
.walk .next{text-align:right}
.walk .mid{text-align:center;font-size:15px;padding-top:.7rem}
.walk .mid a{color:var(--sogan)}
.drift{text-align:center;margin:1.6rem 0 0}
.drift a{display:inline-block;border:1px solid rgba(59,58,122,.3);padding:.4rem 1.2rem .45rem;font-size:13px;letter-spacing:.12em;color:var(--indigo);background:rgba(249,243,228,.6);transition:background .4s,color .4s,border-color .4s}
.drift a:hover{background:var(--indigo);color:var(--paper-hi);border-color:var(--indigo)}
.drift a .jv,.share .jv{font-size:15px;margin-right:.55em}
.share{text-align:center;margin:1.1rem 0 0;font-size:12px;letter-spacing:.1em}
.share[hidden]{display:none}
.share button{font:inherit;letter-spacing:inherit;color:var(--ink-soft);background:none;border:0;border-bottom:1px dotted var(--ink-faint);padding:0 0 1px;cursor:pointer;transition:color .3s,border-color .3s}
.share button:hover,.share button:focus-visible{color:var(--indigo);border-bottom-color:var(--indigo)}
.share .ok{display:inline-block;min-width:7.5em;margin-left:.8em;color:var(--rice);text-align:left}
.keys{text-align:center;font-size:10.5px;letter-spacing:.14em;color:var(--ink-faint);margin:.9rem 0 0}
kbd{font:inherit;border:1px solid #cdb994;border-bottom-width:2px;padding:0 .35em;background:var(--paper-hi);color:var(--ink-soft)}

/* ---------- later voices / about ---------- */
.prose{font-size:14px;line-height:1.9;color:#373254}
.prose p{margin:.7rem 0}
.prose code{font-size:12.5px;background:rgba(194,173,136,.2);padding:0 .25em}
.voice{padding:1.2rem 0;border-bottom:1px dotted rgba(174,150,114,.6)}
.voice h3{font-size:17px}
.voice h3 .yrs{font-size:12px;color:var(--ink-faint);letter-spacing:.08em}

/* ---------- the footer: volcanoes, clouds, sawah, hawk-eagles (WebAssembly; class name kept from the template) ---------- */
.sea{-webkit-mask-image:linear-gradient(to bottom,transparent 0,#000 30%);mask-image:linear-gradient(to bottom,transparent 0,#000 30%);display:block;width:100%;height:290px;image-rendering:pixelated;image-rendering:crisp-edges;margin-top:3.2rem}
.sea.small{height:240px}
.no-wasm .sea{display:none}
.shore{position:relative;background:#221b44;color:#bfb6d4;font-size:11px;letter-spacing:.14em;padding:1.4rem 1rem 2.2rem;text-align:center;line-height:2}
.shore::before{content:"";position:absolute;left:0;right:0;top:0;height:12px;background:url("batik/megamendung.svg") repeat-x 0 0/48px 12px;opacity:.85}
.shore a{color:#efe3c8;border-bottom-color:rgba(239,227,200,.3)}
.shore a:hover{color:#e9b980;border-bottom-color:#e9b980}
.shore .jv{font-size:14px;color:#e9c98f}
.no-wasm .shore{border-top:6px solid var(--sogan)}

/* ---------- small screens ---------- */
@media (max-width:640px){
  body{font-size:14.5px}
  .top{padding-top:1.3rem}
  .hero-art .art{aspect-ratio:600/330}
  .cartouche{top:8px;right:8px}
  .cartouche .jv{font-size:19px;padding:.4rem .6rem .3rem}
  .banner .art{aspect-ratio:600/260}
  .corner{display:none}
  .poet-name{display:flex;gap:.8rem;align-items:center}
  .thumb{margin:0}
  .toc>li{grid-template-columns:1fr;gap:.35rem}
  .aks{font-size:19px;padding:.9rem 1.5rem 1rem;line-height:2.35}
  .lines{grid-template-columns:1fr}
  .lines .o{border-right:0;padding-right:0;padding-bottom:0}
  .lines .e{padding-left:1.3em;padding-top:0;margin-bottom:.45em;font-style:italic;color:var(--ink-soft)}
  .lines .gap{border:0;height:.5em}
  .walk{grid-template-columns:1fr 1fr}
  .walk .mid{grid-column:1/-1;grid-row:2;padding-top:0}
  .sea{height:210px}
  .sea.small{height:180px}
}
@media (prefers-reduced-motion:reduce){
  body,body.leaving{animation:none}
  .drift a,.share button{transition:none}
}
@media print{.sea,.shore,.drift,.keys,.walk,body::before{display:none}body{background:none}.aks{background:none}}
.prose .jv{font-size:1.12em;color:var(--sogan)}
