/* =========================================================================
   Sadayappan Welfare Trust
   Concept: the doorstep kolam. Neelam (indigo) ink, manjal (turmeric) dots,
   white paper. One drawn moment on the home page; everything else is quiet.
   ========================================================================= */

/* Self-hosted Noto fonts (SIL Open Font License). Latin + Tamil are designed to match. */
@font-face {
  font-family: "Noto Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/noto-sans-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Noto Sans Tamil";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/noto-sans-tamil.woff2") format("woff2");
  unicode-range: U+0964-0965, U+0B82-0BFA, U+200C-200D, U+20B9, U+25CC;
}

@font-face {
  font-family: "Noto Serif";
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url("../fonts/noto-serif-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Noto Serif Tamil";
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url("../fonts/noto-serif-tamil.woff2") format("woff2");
  unicode-range: U+0964-0965, U+0B82-0BFA, U+200C-200D, U+20B9, U+25CC;
}

/* ---------- Tokens ---------- */
:root {
  --neelam: #1c2452;
  --neelam-deep: #10163a;
  --neelam-soft: #4a5078;
  --paper: #ffffff;
  --mist: #eef0f7;
  --line: #d5d9e8;
  --manjal: #f2b705;
  --manjal-soft: #fff4cc;
  --kaavi: #a8381c;
  --on-dark: #ffffff;
  --on-dark-soft: #c9cde4;

  --font-sans: "Noto Sans", "Noto Sans Tamil", system-ui, -apple-system, "Segoe UI", Roboto, "Nirmala UI", "Tamil Sangam MN", sans-serif;
  --font-serif: "Noto Serif", "Noto Serif Tamil", Georgia, "Times New Roman", "Tamil Sangam MN", serif;

  --step-0: 1.0625rem;   /* 17px body */
  --step-1: 1.25rem;     /* lead */
  --step-2: 1.4rem;      /* h3 */
  --step-3: clamp(1.8rem, 1.3rem + 1.6vw, 2.5rem);   /* h2 */
  --step-4: clamp(2.3rem, 1.5rem + 3vw, 3.9rem);     /* h1 */

  --measure: 66ch;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --wrap: 1180px;
  --radius: 6px;
  --space-section: clamp(3.5rem, 7vw, 6.5rem);
}

/* ---------- Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--neelam);
  font-family: var(--font-sans);
  font-size: var(--step-0);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  text-decoration-color: var(--manjal);
  text-decoration-thickness: 2px;
}

:focus-visible {
  outline: 3px solid var(--manjal);
  outline-offset: 3px;
  border-radius: 2px;
}

::selection {
  background: var(--manjal-soft);
  color: var(--neelam);
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

h1 {
  font-size: var(--step-4);
  line-height: 1.08;
}

h2 {
  font-size: var(--step-3);
}

h3 {
  font-size: var(--step-2);
  line-height: 1.25;
}

p {
  margin: 0;
}

ul {
  margin: 0;
  padding: 0;
}

body[data-lang="en"] .lang-ta,
body[data-lang="ta"] .lang-en {
  display: none !important;
}

.lang-ta {
  letter-spacing: 0;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: 0.6rem 1rem;
  background: var(--manjal);
  color: var(--neelam);
  font-weight: 700;
  border-radius: var(--radius);
}

.skip-link:focus {
  top: 1rem;
}

.container,
.container-wide {
  width: min(var(--wrap), 100% - 2 * var(--gutter));
  margin-inline: auto;
}

.eyebrow {
  margin: 0 0 0.75rem;
  color: var(--kaavi);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.4;
}

.lead {
  font-size: var(--step-1);
  line-height: 1.6;
  max-width: 58ch;
}

/* The page no longer animates each section in; only the kolam draws. */
.reveal {
  opacity: 1;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.site-header.is-scrolled {
  box-shadow: 0 1px 0 var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  min-height: 4.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  margin-right: auto;
}

.brand-mark {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
}

.brand-copy {
  display: grid;
  line-height: 1.2;
}

.brand-copy strong {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
}

.brand-copy span {
  color: var(--neelam-soft);
  font-size: 0.85rem;
}

.site-nav {
  display: flex;
  gap: 0.25rem;
}

.site-nav a {
  padding: 0.5rem 0.75rem;
  border-bottom: 3px solid transparent;
  font-weight: 500;
  text-decoration: none;
}

.site-nav a:hover {
  border-bottom-color: var(--line);
}

.site-nav a[aria-current="page"] {
  border-bottom-color: var(--manjal);
  font-weight: 700;
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.lang-switcher {
  display: inline-flex;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.lang-button {
  padding: 0.35rem 0.8rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--neelam);
  font: inherit;
  font-size: 0.9rem;
  cursor: pointer;
}

.lang-button[aria-pressed="true"] {
  background: var(--neelam);
  color: var(--paper);
  font-weight: 600;
}

.nav-toggle {
  display: none;
  padding: 0.5rem 0.9rem;
  border: 1px solid var(--neelam);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--neelam);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

/* ---------- Buttons ---------- */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.7rem 1.4rem;
  border: 2px solid transparent;
  border-radius: var(--radius);
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.button-primary {
  background: var(--manjal);
  color: var(--neelam);
}

.button-primary:hover {
  background: #ffc82e;
}

.button-secondary {
  background: var(--neelam);
  color: var(--paper);
}

.button-secondary:hover {
  background: var(--neelam-deep);
}

.button-ghost,
.hero .button-secondary,
.page-hero .button-secondary,
.section-contrast .button-secondary {
  border-color: currentColor;
  background: transparent;
  color: var(--on-dark);
}

.button-ghost:hover,
.hero .button-secondary:hover,
.page-hero .button-secondary:hover,
.section-contrast .button-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
}

.button:disabled {
  opacity: 0.6;
  cursor: progress;
}

.hero-actions,
.cta-band__actions,
.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

/* ---------- Home hero ---------- */
.hero {
  background: var(--neelam);
  color: var(--on-dark);
}

.hero-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  width: min(var(--wrap), 100% - 2 * var(--gutter));
  margin-inline: auto;
  padding-block: clamp(3rem, 7vw, 6rem);
}

.hero .eyebrow,
.page-hero .eyebrow,
.section-contrast .eyebrow {
  color: var(--manjal);
}

.hero-copy h1 {
  max-width: 17ch;
  margin-bottom: 1.5rem;
}

.hero-copy .lead {
  color: var(--on-dark-soft);
  margin-bottom: 2rem;
}

.hero-ribbon {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.hero-ribbon strong {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--manjal);
  font-size: 1rem;
}

.hero-ribbon p {
  color: var(--on-dark-soft);
  font-size: 0.95rem;
  line-height: 1.55;
}

.hero-panel {
  display: grid;
  gap: 2rem;
  justify-items: center;
}

/* Portrait inside the kolam ring */
.hero-art {
  position: relative;
  width: min(100%, 26rem);
  aspect-ratio: 1;
}

.hero-portrait {
  position: absolute;
  inset: 17%;
  width: 66%;
  height: 66%;
  object-fit: cover;
  object-position: center 20%;
  border-radius: 50%;
  border: 4px solid var(--paper);
}

.kolam {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.kolam-line {
  fill: none;
  stroke: var(--paper);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.kolam-dots circle {
  fill: var(--manjal);
}

.kolam-dots--outer circle {
  fill: var(--on-dark-soft);
}

/* The one orchestrated moment: the kolam is drawn on the home page. */
.page-home .kolam-line {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: kolam-draw 2.6s cubic-bezier(0.65, 0, 0.35, 1) 0.3s forwards;
}

.page-home .kolam-line--b {
  animation-delay: 0.9s;
}

.page-home .kolam-dots {
  opacity: 0;
  animation: kolam-dots 0.8s ease 0.1s forwards;
}

@keyframes kolam-draw {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes kolam-dots {
  to {
    opacity: 1;
  }
}

.hero-stat {
  width: min(100%, 24rem);
}

.hero-stat strong {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--manjal);
}

.hero-list {
  list-style: none;
  display: grid;
  gap: 0.4rem;
}

.hero-list li {
  position: relative;
  padding-left: 1.25rem;
}

.hero-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--manjal);
}

.hero .hero-list li {
  color: var(--on-dark-soft);
}

/* ---------- Inner page hero ---------- */
.page-hero {
  background: var(--neelam);
  color: var(--on-dark);
}

.page-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: end;
  padding-block: clamp(2.75rem, 6vw, 5rem);
}

.breadcrumb {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  color: var(--on-dark-soft);
  font-size: 0.9rem;
}

.page-hero__content h1 {
  max-width: 20ch;
  margin-bottom: 1.25rem;
}

.page-hero__content .lead {
  color: var(--on-dark-soft);
}

.page-hero__content .hero-actions {
  margin-top: 2rem;
}

/* The aside on inner pages is an information panel, not a repeat of the portrait. */
.page-hero__aside {
  padding: 1.5rem;
  border-radius: var(--radius);
  background: var(--neelam-deep);
  color: var(--on-dark);
  justify-items: stretch;
  gap: 0;
}

.page-hero__aside .hero-art--page {
  display: none;
}

.page-hero__aside .hero-stat--page {
  width: auto;
}

.page-hero__aside .hero-stat--page p {
  margin-bottom: 1rem;
  color: var(--on-dark-soft);
}

.page-hero__aside .hero-list li,
.panel-list li {
  color: var(--on-dark-soft);
}

.panel-list {
  list-style: none;
  display: grid;
  gap: 0.6rem;
}

.panel-list a {
  color: var(--on-dark);
}

/* About keeps the portrait, framed by a still kolam. */
.page-about .page-hero__grid {
  align-items: center;
}

.page-about .page-hero__aside {
  background: transparent;
  padding: 0;
  display: grid;
  gap: 1.5rem;
  justify-items: center;
}

.page-about .page-hero__aside .hero-stat--page {
  width: min(100%, 24rem);
}

.page-about .page-hero__aside .hero-art--page {
  display: block;
  width: min(100%, 20rem);
}

.page-about .page-hero__aside > .eyebrow {
  display: none;
}

/* ---------- Sections ---------- */
.section {
  padding-block: var(--space-section);
}

.section-soft {
  background: var(--mist);
}

.section-contrast {
  background: var(--neelam);
  color: var(--on-dark);
}

.section-heading {
  max-width: var(--measure);
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.section-heading h2 + .section-intro,
.section-heading h2 + h2 + .section-intro,
.section-intro {
  margin-top: 1rem;
  color: var(--neelam-soft);
  max-width: 60ch;
}

.section-contrast .section-intro {
  color: var(--on-dark-soft);
}

/* Plain columns: text set on the page, separated by space, not boxed. */
.editorial-list,
.program-columns,
.step-row,
.trust-columns,
.contact-columns,
.office-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.75rem, 4vw, 3rem);
}

.editorial-card,
.program-column,
.step-column,
.trust-column,
.contact-column {
  display: grid;
  align-content: start;
  gap: 0.6rem;
}

.editorial-card > span {
  color: var(--kaavi);
  font-weight: 600;
  font-size: 0.95rem;
}

.editorial-card p,
.program-column p,
.step-column p,
.contact-column p {
  color: var(--neelam-soft);
}

/* Programs are the core offering: each starts with a turmeric bar. */
.program-column {
  padding-top: 1.25rem;
  border-top: 4px solid var(--manjal);
}

/* About's story stages are a real progression, so they keep their numbers. */
.step-column > span {
  display: inline-grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: var(--manjal);
  color: var(--neelam);
  font-weight: 700;
  font-size: 0.95rem;
}

.trust-column {
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
}

.trust-column p {
  color: var(--on-dark-soft);
}

/* Story: quotation set large */
.editorial-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  gap: clamp(2rem, 6vw, 5.5rem);
  align-items: start;
}

.story-block {
  position: relative;
}

.quote-mark {
  display: block;
  height: 3.5rem;
  color: var(--manjal);
  font-family: var(--font-serif);
  font-size: 6rem;
  line-height: 1;
}

.story-block h2 {
  margin-bottom: 1.25rem;
  max-width: 24ch;
}

.story-block .lead {
  color: var(--neelam-soft);
}

.section-contrast .story-block .lead {
  color: var(--on-dark-soft);
}

.story-side {
  padding-top: 0.5rem;
}

.support-rail {
  display: grid;
}

.support-rail article {
  display: grid;
  gap: 0.3rem;
  padding-block: 1.1rem;
  border-top: 1px solid var(--line);
}

.support-rail article:last-child {
  border-bottom: 1px solid var(--line);
}

.support-rail p {
  color: var(--neelam-soft);
}

.trust-list {
  list-style: none;
  display: grid;
}

.trust-list li {
  display: grid;
  gap: 0.3rem;
  padding-block: 1.1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
}

.trust-list p {
  color: var(--on-dark-soft);
}

.trust-list a {
  color: var(--manjal);
}

.section-contrast .section-heading h2 {
  max-width: 22ch;
}

.section-contrast .editorial-grid > div > .section-heading {
  margin-bottom: 2rem;
}

.section-contrast .trust-columns {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* ---------- Call to action ---------- */
.cta-band {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  padding: clamp(2rem, 5vw, 3.5rem);
  border-radius: var(--radius);
  background: var(--manjal-soft);
  border-left: 6px solid var(--manjal);
}

.cta-band h2 {
  max-width: 24ch;
}

.section-contrast .cta-band {
  background: var(--neelam-deep);
  border-left-color: var(--manjal);
}

/* ---------- Contact details ---------- */
.office-strip article {
  display: grid;
  gap: 0.35rem;
  padding-top: 1rem;
  border-top: 4px solid var(--neelam);
}

.office-strip strong {
  font-family: var(--font-serif);
  font-size: var(--step-2);
}

.office-strip a {
  font-weight: 600;
  overflow-wrap: anywhere;
}

/* ---------- Forms ---------- */
.form-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}

.form-side h2 {
  margin-bottom: 1rem;
}

.form-side .lead {
  font-size: var(--step-0);
  color: var(--neelam-soft);
  margin-bottom: 1.5rem;
}

.form-shell {
  padding: clamp(1.25rem, 4vw, 2.25rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.field {
  display: grid;
  gap: 0.4rem;
}

.field--full {
  grid-column: 1 / -1;
}

.field label {
  font-weight: 600;
  font-size: 0.95rem;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 3rem;
  padding: 0.65rem 0.8rem;
  border: 1.5px solid #9aa1c0;
  border-radius: 4px;
  background: var(--paper);
  color: var(--neelam);
  font: inherit;
}

.field textarea {
  min-height: 9rem;
  resize: vertical;
}

.field input::placeholder,
.field textarea::placeholder {
  color: #7a80a0;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--neelam);
  box-shadow: 0 0 0 3px var(--manjal);
}

.form-note {
  margin-block: 1.25rem;
  color: var(--neelam-soft);
  font-size: 0.92rem;
}

.status-message {
  font-weight: 600;
}

.status-message[data-state="pending"] {
  color: var(--neelam-soft);
}

.status-message[data-state="success"] {
  color: #1e6b43;
}

.status-message[data-state="error"] {
  color: var(--kaavi);
}

/* Spam honeypot: kept out of view without inline styles (blocked by CSP). */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--neelam-deep);
  color: var(--on-dark-soft);
  padding-block: clamp(3rem, 6vw, 4.5rem) 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr;
  gap: 2.5rem;
}

.footer-block {
  display: grid;
  align-content: start;
  gap: 0.6rem;
}

.footer-block strong {
  color: var(--on-dark);
  font-family: var(--font-serif);
  font-size: 1.1rem;
}

.footer-block p {
  max-width: 40ch;
}

.footer-block a {
  color: var(--on-dark);
  overflow-wrap: anywhere;
}

.footer-links {
  list-style: none;
  display: grid;
  gap: 0.35rem;
}

.footer-copy {
  grid-column: 1 / -1;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.9rem;
}

.footer-copy::before {
  content: "© ";
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-shell,
  .page-hero__grid,
  .editorial-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .hero-art {
    width: min(78%, 20rem);
  }

  .hero .hero-stat {
    display: none;
  }

  .page-about .page-hero__aside .hero-art--page {
    width: min(70%, 16rem);
  }

  .editorial-list,
  .program-columns,
  .step-row,
  .contact-columns,
  .office-strip {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-block:first-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 860px) {
  .header-inner {
    flex-wrap: wrap;
    gap: 0.75rem;
    padding-block: 0.6rem;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    display: none;
    order: 3;
    width: 100%;
    flex-direction: column;
    padding-bottom: 0.5rem;
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 0.75rem 0.25rem;
    border-bottom: 1px solid var(--line);
  }

  .site-nav a[aria-current="page"] {
    border-bottom: 1px solid var(--line);
    box-shadow: inset 4px 0 0 var(--manjal);
    padding-left: 0.9rem;
  }
}

@media (max-width: 640px) {
  .brand-copy span {
    display: none;
  }

  .hero-ribbon,
  .section-contrast .trust-columns,
  .field-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions .button,
  .cta-band__actions .button {
    width: 100%;
  }

  .cta-band {
    border-left-width: 4px;
  }

  .lead {
    font-size: 1.1rem;
  }
}

/* Keep brand, language switch and menu on one row on small phones. */
@media (max-width: 480px) {
  .header-inner {
    gap: 0.5rem;
  }

  .brand {
    gap: 0.4rem;
  }

  .brand-mark {
    width: 2rem;
    height: 2rem;
  }

  .brand-copy strong {
    font-size: 1rem;
  }

  .header-tools {
    gap: 0.4rem;
  }

  .lang-button {
    padding: 0.3rem 0.55rem;
    font-size: 0.82rem;
  }

  .nav-toggle {
    padding: 0.4rem 0.65rem;
    font-size: 0.9rem;
  }
}

@media (max-width: 360px) {
  .brand-copy {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .page-home .kolam-line,
  .page-home .kolam-dots {
    animation: none;
    stroke-dashoffset: 0;
    opacity: 1;
  }
}

/* ---------- Tamil readability ----------
   Tamil words are long and have tall vowel signs above and below the line, so
   headings get more line-height and a smaller scale. */
body[data-lang="ta"] {
  line-height: 1.8;
}

body[data-lang="ta"] * {
  letter-spacing: 0 !important;
}

body :is(h1, h2, h3, h4).lang-ta {
  line-height: 1.4;
  max-width: 24ch;
  overflow-wrap: break-word;
}

body h1.lang-ta {
  font-size: clamp(1.6rem, 3.4vw + 0.6rem, 3.1rem);
}

body h2.lang-ta {
  font-size: clamp(1.4rem, 2.4vw + 0.5rem, 2.3rem);
}

body h3.lang-ta {
  font-size: clamp(1.2rem, 1.4vw + 0.4rem, 1.5rem);
}

body .lead.lang-ta,
body p.lang-ta {
  line-height: 1.85;
}

.footer-logo {
  width: min(100%, 18rem);
  height: auto;
  margin-bottom: 0.5rem;
}
