/* The signed-out front page (vr/front.py). One column of plain sections on the reading paper; the only colour is one quiet accent for headings, links and the verse's chanted line. No boxes and no rules between sections. */
#front {
  --fr-acc: hsl(22 42% 33%);
  max-width: 56rem; margin: 0 auto;
}
.uk-theme-ink #front { --fr-acc: var(--wact); }
.dark #front { --fr-acc: hsl(32 52% 72%); }
.dark.uk-theme-ink #front { --fr-acc: hsl(40 72% 74%); }

#front .fr-hero { padding: 4rem 0 1rem; }
#front .fr-om { color: var(--fr-acc); }
#front .fr-sec > h2 { color: var(--fr-acc); }
#front a.underline { color: var(--fr-acc); text-decoration-color: color-mix(in srgb, var(--fr-acc) 40%, transparent); text-underline-offset: .2em; }
#front a.underline:hover { text-decoration-color: currentColor; }
#front .fr-sec { margin-top: 4.5rem; }
#front .fr-sec > p { max-width: 40rem; }
#front .fr-small { font-size: .875rem; }
#front .fr-lbl, #front .fr-h3, #front .fr-kicker {
  display: block; font-family: inherit; font-size: .6875rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted-foreground); margin: 0 0 .5rem; line-height: 1.4;
}
#front .fr-kicker { color: var(--fr-acc); margin-bottom: 1.1rem; }

/* the library's figures: one slim line under the hero */
#front .fr-figs { display: flex; flex-wrap: wrap; justify-content: center; gap: .2rem 1.6rem; margin: 2.25rem auto 0; font-size: .9375rem; color: var(--muted-foreground); }
#front .fr-figs strong { color: var(--foreground); font-weight: 600; font-variant-numeric: lining-nums; }

/* the day's verse */
#front .fr-verse { max-width: 42rem; margin: 4rem auto 0; text-align: center; }
#front .fr-vtext { font-size: clamp(1.3rem, 1rem + 1.4vw, 1.75rem); line-height: 1.75; }
#front .fr-vtext span { display: block; transition: color .2s; }
#front .fr-vtext span.on { color: var(--fr-acc); }
#front .fr-iast { margin-top: .9rem; font-style: italic; color: var(--muted-foreground); line-height: 1.6; }
#front .fr-iast span { display: block; }
#front .fr-mean { margin: 1.1rem auto 0; max-width: 36rem; line-height: 1.65; }
#front .fr-vfoot { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .6rem 1.1rem; margin-top: 1.3rem; font-size: .875rem; }
#front .fr-src { color: var(--muted-foreground); }
#front .fr-src:hover { color: var(--fr-acc); }
#front .fr-play {
  display: inline-flex; align-items: center; gap: .45rem; padding: .3rem .95rem .3rem .75rem; border-radius: 999px; cursor: pointer;
  border: 1px solid color-mix(in srgb, var(--fr-acc) 55%, transparent); color: var(--fr-acc); background: transparent; font: inherit;
}
#front .fr-play:hover { background: color-mix(in srgb, var(--fr-acc) 8%, transparent); }
#front .fr-play[disabled] { opacity: .5; cursor: default; }
#front .fr-play .i-pause, #front .fr-play[aria-pressed="true"] .i-play { display: none; }
#front .fr-play[aria-pressed="true"] .i-pause { display: inline; }
#front .fr-credit { margin-top: .6rem; font-size: .8125rem; color: var(--muted-foreground); }
/* the verse's scripts: a row of names in their own scripts, the one in force ruled under as the almanac's switches are */
#front .fr-scripts { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 1rem; margin-top: .7rem; font-size: .875rem; }
#front .fr-sc { min-height: 2rem; padding: .25rem .1rem 0; border-bottom: 2px solid transparent; color: var(--muted-foreground); cursor: pointer; line-height: 1.4; }
#front .fr-sc:hover { color: var(--fr-acc); }
#front .fr-sc[aria-pressed="true"] { color: var(--foreground); border-bottom-color: var(--fr-acc); }
#front .fr-wait :is(.fr-vtext, .fr-iast) { opacity: 0; }
#front .fr-sc:focus-visible { outline: 2px solid var(--fr-acc); outline-offset: 2px; }
/* the pañcāṅga's heading with the almanac's own Sanskrit · Tamil switch beside it */
#front .fr-sechd { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0 1.5rem; }
#front .mh.fr-names { max-width: none; margin: 0; padding: 0; }
#front .fr-names .names { margin-left: 0; }
/* phones: a tighter hero and verse, so today's verse and its Listen button sit in the first screen */
@media (max-width: 40rem) {
  #front .fr-hero { padding: 1.25rem 0 0; }
  #front .fr-om { display: none; }
  #front .fr-hero h1 { font-size: 2.5rem; line-height: 1.15; margin-bottom: .6rem; }
  #front .fr-hero > p { font-size: 1rem; line-height: 1.55; margin-bottom: 1.1rem; }
  #front .fr-figs { margin-top: 1.1rem; font-size: .875rem; gap: 0 1.1rem; }
  #front .fr-verse { margin-top: 1.75rem; }
  #front .fr-kicker { margin-bottom: .6rem; }
  #front .fr-vtext { font-size: 1.2rem; line-height: 1.6; }
  #front .fr-iast { margin-top: .5rem; font-size: .9375rem; line-height: 1.5; }
  #front .fr-mean { margin-top: .6rem; line-height: 1.55; }
  #front .fr-vfoot { margin-top: .8rem; }
  #front .fr-scripts { gap: 0 .85rem; margin-top: .4rem; }
  #front .fr-sc, #front .fr-names .names a { min-height: 40px; display: inline-flex; align-items: center; }
}
/* short phone screens: the figures strip gives way (Read repeats the counts), so the verse and Listen still fit */
@media (max-width: 40rem) and (max-height: 740px) { #front .fr-figs { display: none; } #front .fr-verse { margin-top: 1.25rem; } }

/* two columns from 48rem: a sample beside its text; stacked below */
#front .fr-two { display: grid; gap: 2rem 2.75rem; margin-top: 2rem; }
@media (min-width: 48rem) { #front .fr-two { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } #front .fr-jy { grid-template-columns: minmax(0, 23rem) minmax(0, 1fr); align-items: start; } }
#front .fr-fests { margin-bottom: .75rem; }
#front .fr-fests li { display: flex; gap: .9rem; align-items: baseline; padding: .2rem 0; }
#front .fr-date { flex: 0 0 6.6rem; color: var(--fr-acc); font-variant-numeric: tabular-nums; }
#front .fr-fests small { color: var(--muted-foreground); font-size: .8125rem; }
#front .ta { font-family: 'Noto Serif Tamil', 'Noto Sans Tamil', serif; }

/* the featured texts as doors: the name, then the text's opening line in its own script */
#front .fr-doors { display: grid; gap: 1.1rem 2.75rem; margin: 1.75rem 0 1.5rem; }
@media (min-width: 40rem) { #front .fr-doors { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
#front .fr-doors a { display: block; }
#front .fr-doors strong { font-weight: 600; }
#front .fr-doors a:hover strong { color: var(--fr-acc); }
#front .fr-open { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: var(--muted-foreground); font-size: 1.0625rem; line-height: 1.7; }

/* the primer's example chart and two figures read from it */
#front .mh.jy.fr-chart { max-width: none; margin: 0; padding: 0; font-size: .9375rem; }
#front .fr-chart .chart { max-width: 23rem; margin: 0; }
#front .fr-sample { margin-bottom: 1.5rem; }
#front .fr-bala li { display: grid; grid-template-columns: 4.6rem minmax(0, 1fr) 2.6rem; align-items: center; gap: .7rem; font-size: .875rem; line-height: 1.75; }
#front .fr-bala .num { text-align: right; font-variant-numeric: tabular-nums; color: var(--muted-foreground); }
#front .fr-bar { height: 4px; border-radius: 2px; overflow: hidden; background: color-mix(in srgb, var(--foreground) 10%, transparent); }
#front .fr-bar i { display: block; height: 100%; background: var(--fr-acc); }
#front .fr-chapters { display: grid; gap: .35rem 2rem; margin: 2rem 0 .75rem; }
@media (min-width: 40rem) { #front .fr-chapters { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* the pañcāṅga card across the wider column: the five running limbs on one row, and the bird across the foot of the card on a phone */
@media (min-width: 861px) { #front .landing-mh .now { grid-template-columns: minmax(0, 1.2fr) repeat(4, minmax(0, 1fr)); } }
@media (min-width: 381px) and (max-width: 860px) { #front .landing-mh .now > div:nth-child(5) { grid-column: 1 / -1; } }

#front .fr-foot { margin-top: 5rem; padding-top: 1.5rem; }
