/* Unavum Udalum — "Heritage" theme for the public website.
   A Tamil morning: a pulli kolam drawn in rice-flour white on a red-oxide floor, banana-leaf green,
   turmeric and the gold zari of a Kanchipuram border. The one moving thing is the kolam drawing
   itself as the page opens; everything else stays still and quiet. */

@font-face { font-family: "Noto Serif Tamil"; font-weight: 600; font-display: swap; src: url("../fonts/noto-serif-tamil-tamil-600-normal.woff2") format("woff2"); unicode-range: U+0B80-0BFF, U+200C-200D, U+25CC; }
@font-face { font-family: "Noto Serif Tamil"; font-weight: 700; font-display: swap; src: url("../fonts/noto-serif-tamil-tamil-700-normal.woff2") format("woff2"); unicode-range: U+0B80-0BFF, U+200C-200D, U+25CC; }

.theme-heritage {
  --oxide: #7E3222;       /* red-oxide floor */
  --oxide-deep: #5C2217;
  --leaf: #1E5A3A;        /* banana leaf */
  --leaf-deep: #143F28;
  --manjal: #D9A32E;      /* turmeric / zari gold */
  --manjal-soft: #F2D58C;
  --maroon: #7A1730;      /* Kanchi silk */
  --rice: #FBFAF4;        /* rice-flour white */
  --chalk: #FFFCF2;
  --hink: #17301F;        /* ink */
  --serif-ta: "Fraunces", "Noto Serif Tamil", Georgia, serif;
  --ink: var(--hink);
  --paper: #FFFFFF;
  background: var(--rice);
  color: var(--hink);
  overflow-x: clip;
}
.theme-heritage :focus-visible { outline: 3px solid var(--manjal); outline-offset: 2px; }
.theme-heritage a { color: var(--leaf); }
.theme-heritage h1, .theme-heritage h2, .theme-heritage h3 { font-family: var(--serif-ta); color: var(--leaf-deep); letter-spacing: -.005em; }
.theme-heritage :lang(ta) h1, .theme-heritage :lang(ta) h2, .theme-heritage h1:lang(ta), .theme-heritage h2:lang(ta) { letter-spacing: 0; line-height: 1.35; }

/* buttons: banana-leaf green primary; gold on dark grounds */
.theme-heritage .btn { background: var(--leaf); border-color: var(--leaf); }
.theme-heritage .btn:hover { background: var(--leaf-deep); border-color: var(--leaf-deep); }
.theme-heritage .btn.quiet { background: transparent; color: var(--leaf-deep); border-color: rgba(23, 48, 31, .25); }
.theme-heritage .btn.quiet:hover { background: rgba(30, 90, 58, .07); border-color: var(--leaf); }
.theme-heritage .btn.soft { background: #E6EFE4; border-color: #E6EFE4; color: var(--leaf-deep); }

/* header */
.theme-heritage .pub-top { background: var(--rice); border-bottom: 0; box-shadow: 0 1px 0 rgba(23, 48, 31, .08); }
.theme-heritage .pub-top .co { color: var(--maroon); font-family: var(--serif-ta); }
.theme-heritage .pub-top .co small { color: var(--leaf); font-family: "Noto Serif Tamil", var(--font); font-weight: 600; font-size: .8rem; }
.theme-heritage .pub-top nav .links a { color: var(--hink); }
.theme-heritage .pub-top nav .links a:hover { background: rgba(217, 163, 46, .14); }
.theme-heritage .pub-top nav .links a[aria-current="page"] { color: var(--maroon); box-shadow: inset 0 -2px 0 var(--manjal); }
.theme-heritage .langswitch { border-color: rgba(23, 48, 31, .18); }
.theme-heritage .langswitch button[aria-pressed="true"] { background: var(--leaf); color: var(--chalk); }
.theme-heritage .pubnav-btn { border-color: rgba(23, 48, 31, .2); background: transparent; color: var(--leaf-deep); }

/* ---------------------------------------------------------------- hero */
.hh {
  margin: -1.6rem calc(50% - 50vw) 0;
  color: var(--chalk);
  background:
    radial-gradient(1200px 500px at 80% 40%, rgba(255, 255, 255, .07), transparent 60%),
    radial-gradient(700px 400px at 10% 100%, rgba(0, 0, 0, .18), transparent 70%),
    var(--oxide);
}
.hh-in { max-width: 1180px; margin: 0 auto; padding: clamp(2.2rem, 6vw, 4.5rem) 1.2rem clamp(2.4rem, 6vw, 4rem); display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.hh-motto { font-family: "Noto Serif Tamil", serif; font-weight: 700; font-size: clamp(2.3rem, 5.2vw, 3.9rem); line-height: 1.2; margin: 0 0 .7rem; color: var(--chalk); }
.hh h1 { color: var(--manjal-soft); font-size: clamp(1.45rem, 3vw, 2.15rem); line-height: 1.2; margin: 0 0 .9rem; font-weight: 600; }
.hh-lead { font-size: 1.08rem; line-height: 1.65; max-width: 50ch; color: rgba(255, 252, 242, .86); margin: 0 0 1.6rem; }

/* the four doorway buttons: arched tops like a vaasal */
.doors { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; max-width: 560px; }
.door { display: flex; gap: .8rem; align-items: center; padding: .85rem 1rem .85rem .85rem; border-radius: 26px 26px 10px 10px; border: 1px solid rgba(255, 252, 242, .26); background: rgba(255, 252, 242, .07); color: var(--chalk); text-decoration: none; min-height: 68px; transition: background .18s ease, border-color .18s ease; }
.theme-heritage .door { color: var(--chalk); }
.door:hover { background: rgba(255, 252, 242, .15); border-color: var(--manjal); }
.door b { display: block; font-size: 1rem; }
.door small { display: block; font-size: .82rem; color: rgba(255, 252, 242, .72); line-height: 1.35; margin-top: .1rem; }
.door-ico { flex: none; width: 42px; height: 42px; border-radius: 50%; background: var(--manjal); color: var(--oxide-deep); display: grid; place-items: center; }
.door-ico svg { width: 21px; height: 21px; }

.hh-cta { display: flex; align-items: center; gap: 1.2rem; flex-wrap: wrap; margin-top: 1.4rem; }
.theme-heritage .hh-go { background: var(--manjal); border-color: var(--manjal); color: var(--oxide-deep); font-weight: 700; padding-inline: 1.6rem; }
.theme-heritage .hh-go:hover { background: var(--manjal-soft); border-color: var(--manjal-soft); color: var(--oxide-deep); }
.theme-heritage .hh-signin { color: var(--chalk); font-weight: 600; }
.hh-safe { display: flex; gap: .5rem; align-items: flex-start; margin: 1.3rem 0 0; font-size: .86rem; color: rgba(255, 252, 242, .74); max-width: 56ch; }
.hh-safe svg { flex: none; margin-top: .15rem; color: var(--manjal); }

/* the kolam */
.hh-art { margin: 0; display: grid; justify-items: center; gap: .8rem; }
.kolam { width: min(100%, 470px); height: auto; overflow: visible; }
.kl-dot { fill: var(--chalk); opacity: 0; animation: kl-dot .5s ease forwards; animation-delay: calc(var(--j) * 55ms + 150ms); }
.kl-line { fill: none; stroke: var(--chalk); stroke-width: 3.4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: kl-draw 7s cubic-bezier(.45, .05, .35, 1) .95s forwards; filter: drop-shadow(0 0 .6px rgba(255, 252, 242, .6)); }
@keyframes kl-dot { to { opacity: .95; } }
@keyframes kl-draw { to { stroke-dashoffset: 0; } }
.hh-art figcaption { font-family: "Noto Serif Tamil", serif; font-weight: 600; text-align: center; color: var(--manjal-soft); font-size: 1rem; }
.hh-art figcaption span { display: block; font-family: var(--font); font-weight: 500; font-size: .82rem; color: rgba(255, 252, 242, .66); margin-top: .15rem; }

/* zari border between the hero and the page */
.zari { height: 26px; margin: 0 calc(50% - 50vw) 2.4rem; background: url("../img/zari.svg") repeat-x left center / auto 26px; }

/* ---------------------------------------------------------------- page sections */
.theme-heritage .features { gap: 0 2rem; margin: 0 0 3rem; }
.theme-heritage .feature { background: transparent; border: 0; border-top: 2px dotted rgba(23, 48, 31, .28); border-radius: 0; padding: 1.2rem 0 .8rem; }
.theme-heritage .feature .ico, .theme-heritage .feature.leaf .ico { background: transparent; color: var(--maroon); width: auto; height: auto; justify-content: start; margin-bottom: .45rem; }
.theme-heritage .feature .ico svg { width: 26px; height: 26px; }
.theme-heritage .feature h3 { font-size: 1.15rem; }
.theme-heritage .feature ul { color: #3E5246; }

/* stories on a banana-leaf band */
.theme-heritage .stories { margin: 0 calc(50% - 50vw) 3rem; padding: 3rem calc(50vw - 50%) 2.4rem; background: var(--leaf-deep); color: var(--chalk); position: relative; }
.theme-heritage .stories::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 8px; background: repeating-linear-gradient(90deg, var(--manjal) 0 14px, transparent 14px 22px); opacity: .9; }
.theme-heritage .stories .st-head { max-width: 1180px; margin-inline: auto; }
.theme-heritage .stories h2 { color: var(--chalk); font-size: clamp(1.6rem, 3.4vw, 2.3rem); }
.theme-heritage .stories .st-head p { color: rgba(255, 252, 242, .75); }
.theme-heritage .st-btn { background: transparent; border-color: rgba(255, 252, 242, .35); color: var(--chalk); }
.theme-heritage .st-btn:hover { border-color: var(--manjal); color: var(--manjal-soft); }
.theme-heritage .st-track { max-width: 1180px; margin-inline: auto; }
.theme-heritage .stories .st-note { max-width: 1180px; margin: .4rem auto 0; color: rgba(255, 252, 242, .7); }
.theme-heritage .stories .st-note a { color: var(--manjal-soft); }
.theme-heritage .story { border: 0; border-radius: 4px; box-shadow: 0 0 0 1px rgba(217, 163, 46, .55), 0 0 0 5px var(--leaf-deep), 0 0 0 6px rgba(217, 163, 46, .35); color: var(--hink); }
.theme-heritage .stories .story { margin: 6px; }
.theme-heritage .story-result { color: var(--maroon); font-family: var(--serif-ta); font-size: 1.12rem; }
.theme-heritage .story blockquote { font-family: Georgia, "Noto Serif Tamil", serif; color: #263B2D; }
.theme-heritage .story blockquote::before { content: "“"; font-family: var(--serif-ta); color: var(--manjal); font-size: 2.2rem; line-height: 0; vertical-align: -.75rem; margin-right: .1rem; }
.theme-heritage .ba { background: #EDE7DB; }
.theme-heritage .ba-tag { background: rgba(255, 252, 242, .94); color: var(--leaf-deep); }
.theme-heritage .ba-handle { color: var(--maroon); box-shadow: 0 0 0 3px var(--manjal), 0 4px 14px rgba(0, 0, 0, .25); }

/* other blocks */
.theme-heritage .band { background: #EFF4EC; border: 0; border-radius: 0 0 40px 40px; border-top: 4px solid var(--manjal); }
.theme-heritage .panel.stripe.warn { border-left-color: var(--maroon); background: #FFF9EF; }
.theme-heritage .card { border-radius: 10px; box-shadow: none; border-color: rgba(23, 48, 31, .14); }
.theme-heritage .card:hover { border-color: var(--manjal); }
.theme-heritage .pill.lav { background: #F6E9C9; color: #6B4A0E; }
.theme-heritage .motto { font-family: "Noto Serif Tamil", serif; color: var(--maroon); font-size: 1.15rem; }
.theme-heritage .banner { background: #FFF4DA; border-color: var(--manjal); }

/* stories page */
.theme-heritage .stories-head { border-bottom: 2px dotted rgba(23, 48, 31, .25); padding-bottom: 1rem; margin-bottom: 1.6rem; }
.theme-heritage .story-grid .story { margin: 6px; }

/* footer */
.theme-heritage .pub-foot { background: var(--leaf-deep); color: rgba(255, 252, 242, .8); border-top: 0; position: relative; padding-top: 26px; }
.theme-heritage .pub-foot::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 26px; background: url("../img/zari.svg") repeat-x left center / auto 26px; }
.theme-heritage .pub-foot a { color: var(--manjal-soft); }
.theme-heritage .pub-foot b { color: var(--chalk); font-family: var(--serif-ta); }

@media (max-width: 860px) {
  .hh-in { grid-template-columns: 1fr; }
  .hh-art { order: -1; }
  .kolam { width: min(56vw, 230px); }
  .hh-art figcaption { display: none; }
  .theme-heritage .pub-top nav .links a { border-bottom-color: rgba(23, 48, 31, .1); }
  .theme-heritage .pub-top nav .links a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--manjal); }
}
@media (max-width: 520px) {
  .doors { grid-template-columns: 1fr; }
  .hh-motto { font-size: 2.35rem; }
}
@media (prefers-reduced-motion: reduce) {
  .kl-dot { opacity: .95; animation: none; }
  .kl-line { stroke-dashoffset: 0; animation: none; }
}
.theme-heritage .logo-mark { background-image: url("../img/logo-heritage.svg"); }
html[lang="ta"] .hh h1 { font-size: clamp(1.2rem, 2.3vw, 1.65rem); line-height: 1.45; }
html[lang="ta"] .door b { font-size: .95rem; }
@media (min-width: 861px) { html[lang="ta"] .hh-in { grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); } }
html[lang="ta"] .doors { max-width: none; }
html[lang="ta"] .hh-art figcaption span { display: none; }
