/* Diary of India: the site's look (direction D, Right Here).
   Dark on every screen. The place is the only colour. Lamp yellow only points: the ring, the thing's label, the first-hand line.
   Anek for names, dates and labels; Noto Serif for the sentences; English and Hindi at the same weight. */
:root { --night: #0c0907; --rice: #fbf4e6; --soft: #d8c9b4; --lamp: #ffc24a; --line: rgb(251 244 230 / .2);
	--ui: Anek, system-ui, sans-serif; --read: "Noto Serif", Georgia, serif; --pad: clamp(16px, 3.6vw, 56px); --ease: cubic-bezier(.23, 1, .32, 1); }
html { background: var(--night); }
body { -webkit-font-smoothing: antialiased; }
[lang="hi"] { letter-spacing: 0; }
:where(a:focus-visible, button:focus-visible) { outline: 2px solid var(--lamp); outline-offset: 4px; }
.wp-site-blocks { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
.wp-site-blocks > main { flex: 1; }

/* masthead */
.doi-bar { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: 18px var(--pad); }
.doi-mark { display: flex; gap: .7em; align-items: baseline; font: 700 clamp(1.05rem, 1rem + .4vw, 1.3rem)/1.1 var(--ui); font-stretch: 96%; white-space: nowrap; text-decoration: none; }
.doi-mark i { align-self: center; width: .6em; height: .6em; border: 2px solid var(--lamp); border-radius: 50%; }
.doi-nav { display: flex; gap: clamp(1rem, 2.2vw, 2rem); font: 500 .9375rem/1 var(--ui); }
.doi-nav a { padding: .45rem 0; border-bottom: 1px solid transparent; white-space: nowrap; text-decoration: none; }
.doi-nav a[aria-current] { border-color: currentColor; }
@media (hover: hover) { .doi-nav a:hover { border-color: currentColor; } }
.doi-foot { margin: 0; padding: .4rem var(--pad) 2.4rem; font: 400 .875rem/1.5 var(--ui); color: var(--soft); }

/* shared pieces */
.doi-when { margin: 0; font: 500 .9375rem/1.5 var(--ui); color: var(--soft); } .doi-when b { color: var(--rice); font-weight: 600; }
.doi-entry .doi-when, .doi-lead .doi-when { display: block; }
.doi-by, .doi-kind { margin: 0; font: 600 .9375rem/1.35 var(--ui); color: var(--lamp); } .doi-by--under { margin-top: .1rem; }
.doi-by--soft, .doi-kind--soft { color: var(--soft); }
.doi-kind { display: block; font-size: .875rem; }
.doi-thing { display: block; margin-bottom: .35rem; font: 600 .875rem/1.3 var(--ui); letter-spacing: .04em; color: var(--lamp); }
.doi-ring { position: absolute; width: 26px; height: 26px; margin: -13px 0 0 -13px; border-radius: 50%; border: 2px solid var(--lamp); box-shadow: 0 0 0 1px #0c0907, inset 0 0 0 1px #0c0907, 0 0 0 5px rgb(255 194 74 / .2); pointer-events: none; }
.doi-empty { margin: 0; font: 500 1.1rem/1.5 var(--ui); color: var(--soft); max-width: 34rem; }

/* an entry, plain: a still of every stop and its sentence */
.doi-entry { max-width: 46rem; margin: 0 auto; padding: clamp(1.4rem, 4vw, 3rem) var(--pad) 3rem; }
.doi-entry__head { margin-bottom: 1.6rem; }
.doi-entry__title { margin: .5rem 0 .7rem; font: 700 clamp(2rem, 1.2rem + 3.6vw, 3.6rem)/1.04 var(--ui); font-stretch: 90%; letter-spacing: -.02em; text-wrap: balance; }
.doi-shot { position: relative; margin: 0 0 1rem; background: #17120e; } .doi-shot img { display: block; width: 100%; height: auto; }
.doi-made { position: absolute; top: 8px; right: 8px; max-width: calc(100% - 16px); margin: 0; padding: .35rem .6rem; text-align: right; font: 500 .875rem/1.45 var(--ui); color: var(--soft); background: rgb(12 9 7 / .72); }
.doi-made [lang] { display: block; }
.doi-steps { list-style: none; margin: 0; padding: 0; } .doi-steps li { margin-top: clamp(2rem, 6vw, 3.4rem); }
.doi-say { margin: 0; max-width: 34rem; font-size: clamp(1.2rem, 1.05rem + .8vw, 1.65rem); line-height: 1.38; text-wrap: pretty; }
/* the plain name above the headline, in the thing-label pattern; Soft on almanac entries (identity 7.1) */
.doi-name { margin: .9rem 0 .3rem; font: 600 .875rem/1.3 var(--ui); letter-spacing: .04em; color: var(--lamp); } .doi-name--soft { color: var(--soft); }
.doi-name + .doi-entry__title { margin-top: 0; }
/* the festival's own date, apart from the dateline */
.doi-festival { margin: 2rem 0 0; padding-top: 1rem; border-top: 1px solid rgb(251 244 230 / .2); font: 500 1rem/1.5 var(--ui); color: var(--soft); } .doi-festival b { font-weight: 600; } .doi-festival time { color: var(--rice); font-weight: 600; }
.doi-festival__note { display: inline; } .doi-festival time + .doi-festival__note::before { content: ' '; }
.doi-festival__method { display: block; margin-top: .35rem; font-size: .875rem; }
.doi-festival + .doi-source { margin-top: .6rem; }
.doi-source { margin: 2rem 0 0; font: 500 .9375rem/1.5 var(--ui); color: var(--soft); }

/* an entry, walked: added by assets/js/entry.js on top of the plain entry when the reader's device can take it */
.doi-switch, .doi-why { margin: 1rem 0 0; font: 500 .9375rem/1.5 var(--ui); color: var(--soft); } .doi-switch a { color: var(--rice); font-weight: 600; text-underline-offset: .2em; }
.doi-why { margin: 0 0 1.4rem; border: 1px solid var(--line); padding: .6rem .8rem; }
.doi-walking .wp-site-blocks > header { position: absolute; z-index: 5; left: 0; right: 0; top: var(--wp-admin--admin-bar--height, 0px); }
.doi-walk { position: relative; }
.doi-stage { position: sticky; top: 0; height: 100vh; height: 100dvh; overflow: hidden; background: var(--night); }
.doi-stage::before { content: ''; position: absolute; z-index: 1; inset: 0 0 auto 0; height: 110px; pointer-events: none; background: linear-gradient(to bottom, rgb(12 9 7 / .8), transparent); }
.doi-stage::after { content: ''; position: absolute; z-index: 1; inset: auto 0 0 0; height: 58%; pointer-events: none; background: linear-gradient(to top, rgb(12 9 7 / .94) 6%, rgb(12 9 7 / .62) 42%, transparent); }
.doi-poster, .doi-place { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.doi-poster { object-fit: cover; }
.doi-place { opacity: 0; transition: opacity .6s ease; touch-action: pan-y; cursor: grab; } .doi-place.is-ready { opacity: 1; } .doi-place.is-held { cursor: grabbing; }
.doi-pic { position: absolute; inset: 0; overflow: hidden; } .doi-pic img { position: absolute; left: 0; top: 0; max-width: none; transform-origin: 0 0; will-change: transform; user-select: none; }
.doi-ring--live { z-index: 2; left: 0; top: 0; opacity: 0; transition: opacity .3s ease; will-change: transform; } .doi-ring--live.is-on { opacity: 1; }
.doi-leadline { position: absolute; z-index: 2; inset: 0; width: 100%; height: 100%; pointer-events: none; } .doi-leadline line { stroke: var(--lamp); stroke-width: 1.5; opacity: 0; transition: opacity .3s ease; } .doi-leadline line.is-on { opacity: .85; }
.doi-lines { position: absolute; z-index: 3; left: var(--pad); bottom: clamp(1.4rem, 6vh, 3.4rem); width: min(100% - 2 * var(--pad), 35rem); list-style: none; margin: 0; padding: 0; }
.doi-lines li { position: absolute; left: 0; bottom: 0; width: 100%; opacity: 0; transform: translateY(10px); transition: opacity .32s ease, transform .5s var(--ease); pointer-events: none; }
.doi-lines li.is-on { opacity: 1; transform: none; pointer-events: auto; }
.doi-lines .doi-entry__title { font-size: clamp(2rem, 1.2rem + 3.6vw, 4.2rem); line-height: 1.02; }
.doi-hint { margin: .8rem 0 0; font: 500 .9375rem/1.4 var(--ui); color: var(--soft); } .doi-lines .doi-switch { margin-top: .5rem; }
.doi-made--stage { z-index: 3; top: 64px; right: var(--pad); }
@media (max-width: 760px) { .doi-leadline { display: none; } }

/* every place: the newest one large, the earlier ones as rows */
.doi-places { padding: clamp(1.4rem, 4vw, 3.4rem) var(--pad) 3rem; }
.doi-places a { text-decoration: none; }
.doi-places__top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 1.2rem 2rem; margin-bottom: clamp(1.6rem, 4vw, 3rem); }
.doi-places__title { margin: 0; font: 700 clamp(2.4rem, 1.4rem + 4.6vw, 5.2rem)/.98 var(--ui); font-stretch: 88%; letter-spacing: -.025em; }
.doi-places__title [lang] { display: block; font-size: .5em; line-height: 1.5; font-stretch: 100%; font-weight: 500; color: var(--soft); }
.doi-places__lead { margin: .9rem 0 0; max-width: 30rem; font-size: clamp(1.05rem, 1rem + .3vw, 1.2rem); }
.doi-sort { display: flex; gap: .4rem; font: 600 .9375rem/1 var(--ui); }
.doi-sort a { border: 1px solid var(--line); border-radius: 999px; padding: .7rem 1.05rem; transition: background-color .18s ease, color .18s ease, transform .14s var(--ease); }
.doi-sort a:active { transform: scale(.97); } .doi-sort a[aria-current] { background: var(--rice); color: var(--night); border-color: var(--rice); }
.doi-still { position: relative; display: block; aspect-ratio: 3 / 2; overflow: hidden; background: #17120e; }
.doi-still img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s var(--ease); }
@media (hover: hover) and (pointer: fine) { .doi-places a:hover .doi-still img { transform: scale(1.035); } .doi-places a:hover :is(.doi-lead__title, .doi-row__title) { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .16em; } }
.doi-places a:active .doi-still img { transform: scale(.99); }
.doi-lead { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(1.2rem, 3.4vw, 3.4rem); align-items: end; }
.doi-lead__title { margin: .5rem 0 .6rem; font: 700 clamp(1.9rem, 1.2rem + 3vw, 3.8rem)/1.02 var(--ui); font-stretch: 90%; letter-spacing: -.02em; text-wrap: balance; }
.doi-lead__say { display: block; margin: 1rem 0 .2rem; max-width: 26rem; font-size: clamp(1.1rem, 1rem + .5vw, 1.4rem); line-height: 1.4; }
.doi-rows { list-style: none; margin: clamp(2rem, 5vw, 4rem) 0 0; padding: 0; border-top: 1px solid var(--line); }
.doi-rows li a { display: grid; grid-template-columns: clamp(120px, 22vw, 300px) minmax(0, 1fr); gap: clamp(1rem, 3vw, 2.6rem); align-items: center; padding: clamp(1rem, 2.2vw, 1.6rem) 0; border-bottom: 1px solid var(--line); }
.doi-row__title { display: block; margin: .25rem 0 .3rem; font: 700 clamp(1.3rem, 1.05rem + 1.2vw, 2rem)/1.1 var(--ui); font-stretch: 92%; text-wrap: balance; }
.doi-group { margin-top: clamp(2rem, 5vw, 3.4rem); } .doi-group:first-of-type { margin-top: 0; }
.doi-group h2 { margin: 0; padding-bottom: .7rem; border-bottom: 1px solid var(--line); font: 700 clamp(1.5rem, 1.2rem + 1.4vw, 2.3rem)/1.1 var(--ui); font-stretch: 92%; }
.doi-group h2 [lang] { margin-left: .5em; font-weight: 500; color: var(--soft); }
.doi-group .doi-rows { margin-top: 0; border-top: 0; }

/* the calendar offer: shown only when the owner has set a link */
.doi-offer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .8rem 2rem; border: 1px solid var(--line); padding: 1rem 1.2rem; font-family: var(--ui); }
.doi-offer p { margin: 0; } .doi-offer__say { font-weight: 600; font-size: 1.0625rem; line-height: 1.35; } .doi-offer__links { display: flex; flex-wrap: wrap; gap: .5rem; }
.doi-offer__link { display: inline-block; border: 1px solid var(--rice); border-radius: 999px; padding: .7rem 1.1rem; font: 600 .9375rem/1 var(--ui); text-decoration: none; transition: background-color .18s ease, color .18s ease, transform .14s var(--ease); }
.doi-offer__link--main { background: var(--rice); color: var(--night); } .doi-offer__link:active { transform: scale(.97); }
@media (hover: hover) { .doi-offer__link:hover { background: var(--rice); color: var(--night); } }
.doi-offer--index { margin-bottom: clamp(1.6rem, 4vw, 3rem); } .doi-offer--entry { margin-top: 2.4rem; } .doi-offer--footer { margin: 0 var(--pad) 1.4rem; }

/* ordinary pages */
.doi-page { padding: clamp(1.4rem, 4vw, 3rem) var(--pad) 3rem; }
.doi-page h1 { margin: 0 0 1rem; font: 700 clamp(2rem, 1.2rem + 3.6vw, 3.6rem)/1.04 var(--ui); font-stretch: 90%; letter-spacing: -.02em; }

@media (max-width: 760px) {
	.doi-lead { grid-template-columns: 1fr; } .doi-rows li a { grid-template-columns: 112px minmax(0, 1fr); align-items: start; }
	.doi-ring { width: 20px; height: 20px; margin: -10px 0 0 -10px; } .doi-say { font-size: 1.15rem; }
}
@media (prefers-reduced-motion: reduce) { * { transition-duration: .01ms !important; } }

/* the facts under the walk: a plain table, the key, the sources */
.doi-facts { margin: 2.5rem 0 0; padding-top: 1.25rem; border-top: 1px solid rgb(251 244 230 / .2); font: 400 1rem/1.6 var(--read); color: var(--rice); }
.doi-facts h2 { margin: 0 0 .9rem; font: 700 1.4rem/1.2 var(--ui); font-stretch: 90%; }
.doi-facts table { width: 100%; border-collapse: collapse; font: 500 .9375rem/1.4 var(--ui); }
.doi-facts caption { text-align: left; padding-bottom: .5rem; font-weight: 600; color: var(--soft); }
.doi-facts th, .doi-facts td { padding: .45rem .5rem .45rem 0; text-align: left; border-bottom: 1px solid rgb(251 244 230 / .12); }
.doi-facts thead th { color: var(--soft); font-weight: 600; }
.doi-facts tbody th { font-weight: 600; } .doi-facts td:last-child { color: var(--soft); }
.doi-facts tr.is-to-confirm td:last-child, .doi-facts tr.is-expected td:last-child { color: var(--rice); }
.doi-facts__key { margin: .9rem 0 1.2rem; font: 500 .875rem/1.5 var(--ui); color: var(--soft); } .doi-facts__key div { margin: .2rem 0; } .doi-facts__key dt { display: inline; font-weight: 600; color: var(--rice); } .doi-facts__key dt::after { content: ': '; } .doi-facts__key dd { display: inline; margin: 0; }
.doi-facts p { margin: .7rem 0; } .doi-facts b { font: 600 .9375rem/1.4 var(--ui); } .doi-facts a { color: var(--rice); }
.doi-facts__checked { font: 500 .875rem/1.5 var(--ui); color: var(--soft); }
/* trust pages and corrections: a mistake is struck through and dated, never deleted */
.doi-page .wp-block-post-content { font: 400 1.0625rem/1.65 var(--read); max-width: 40rem; }
.doi-page .wp-block-post-content h2 { font: 700 1.25rem/1.25 var(--ui); margin: 2rem 0 .5rem; }
.doi-page .wp-block-post-content img { width: 10rem; height: 10rem; border-radius: 50%; object-fit: cover; }
del { text-decoration: line-through; text-decoration-thickness: 1px; color: var(--soft); } ins { text-decoration: none; }
.doi-corrected { display: block; font: 500 .875rem/1.5 var(--ui); color: var(--soft); }
.doi-footlinks { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; margin: 0; padding: 1.4rem var(--pad) 1rem; border-top: 1px solid var(--line); font: 500 .9375rem/1.4 var(--ui); } .doi-footlinks a { color: var(--rice); }
.doi-facts__lead { font: 600 1.0625rem/1.5 var(--ui); color: var(--rice); margin: 0 0 1rem; }
/* the festivals before and after this one */
.doi-near { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 2.5rem 0 0; padding-top: 1.25rem; border-top: 1px solid rgb(251 244 230 / .2); }
.doi-near a { display: block; font: 600 1.0625rem/1.35 var(--ui); color: var(--rice); text-decoration: none; } .doi-near a:hover, .doi-near a:focus-visible { color: var(--lamp); }
.doi-near span { display: block; margin-bottom: .2rem; font: 500 .8125rem/1.3 var(--ui); color: var(--soft); }
.doi-near__next { grid-column: 2; text-align: right; }
