/* Deva website — Temple Stone theme (dark) with a Marble light variant. */

@font-face {
  font-family: "Cormorant Garamond";
  src: url("../fonts/CormorantGaramond-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Tiro Devanagari Sanskrit";
  src: url("../fonts/TiroDevanagariSanskrit-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0900-097F, U+1CD0-1CFF, U+A8E0-A8FF;
}

:root {
  --bg: #1A1815;        /* basalt */
  --card: #24211D;      /* stone */
  --line: #3A352E;
  --text: #EDE6D8;      /* ivory */
  --muted: #B9B0A0;
  --accent: #C9A45C;    /* gold */
  --accent-soft: rgba(201, 164, 92, 0.14);
  --glow: rgba(232, 176, 92, 0.30);
  --serif: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --deva: "Tiro Devanagari Sanskrit", "Kohinoor Devanagari", serif;
  --radius: 16px;
  color-scheme: dark;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #F2EDE3;      /* marble */
    --card: #FBF8F2;
    --line: #DDD4C4;
    --text: #2B2622;
    --muted: #5E554B;
    --accent: #8A6420;
    --accent-soft: rgba(138, 100, 32, 0.10);
    --glow: rgba(232, 176, 92, 0.28);
    color-scheme: light;
  }
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  overflow-wrap: break-word;
}

.wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px;
}

a { color: var(--accent); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 8px;
}
.skip:focus {
  left: 16px;
  background: var(--card);
  padding: 8px 12px;
  border-radius: 8px;
  z-index: 10;
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.15;
  color: var(--text);
  letter-spacing: 0.005em;
}
h1 { font-size: clamp(2.5rem, 8vw, 3.5rem); margin: 0 0 0.3em; }
h2 { font-size: clamp(1.75rem, 5vw, 2.1rem); margin: 2.2em 0 0.5em; }
h3 { font-size: 1.45rem; margin: 0 0 0.35em; }

p { margin: 0 0 1em; }

/* Header */
.site-header {
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  flex-wrap: wrap;
  padding-top: 14px;
  padding-bottom: 14px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  text-decoration: none;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.6rem;
  line-height: 1;
}
.brand svg { width: 26px; height: 30px; flex: none; }
.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
}
.site-nav a:hover { color: var(--text); }
.site-nav a[aria-current="page"] { color: var(--accent); }

/* Main */
main { padding: 48px 0 72px; }

.eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 10px;
}
h2.section-label {
  font-family: var(--sans);
  font-size: 0.78rem;
  line-height: 1.4;
  margin: 0 0 16px;
  text-align: center;
}
.lede {
  font-size: 1.2rem;
  color: var(--muted);
}

/* Home hero */
.hero {
  text-align: center;
  padding: 8px 0 12px;
}
.hero .diya {
  display: block;
  width: 132px;
  height: auto;
  margin: 0 auto 4px;
}
.hero .om {
  font-family: var(--deva);
  font-size: 2.4rem;
  line-height: 1;
  color: var(--accent);
  margin: 0 0 12px;
}
.hero h1 { font-size: clamp(3.25rem, 14vw, 4.75rem); margin-bottom: 0.15em; }
.hero .tagline {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.4rem, 4.6vw, 1.75rem);
  line-height: 1.3;
  max-width: 30ch;
  margin: 0 auto 28px;
}
.coming {
  display: inline-block;
  border: 1px solid var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 999px;
  padding: 10px 22px;
  font-weight: 600;
  font-size: 0.98rem;
  margin: 0;
}

/* Cards */
.cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 16px;
}
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}
.card p:last-child,
.card ol:last-child,
.card ul:last-child { margin-bottom: 0; }
.card .muted,
.muted { color: var(--muted); }

.features { margin-top: 56px; }
.feature {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 4px 16px;
  align-items: start;
}
.feature .icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid;
  place-items: center;
  font-family: var(--deva);
  font-size: 1.3rem;
  line-height: 1;
}
.feature .icon svg { width: 22px; height: 22px; }
.feature h3 { margin-top: 4px; }
.feature p { color: var(--muted); }

.links-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 24px;
  margin-top: 48px;
  padding: 0;
  list-style: none;
}

/* Prose pages */
.prose ul,
.prose ol { padding-left: 1.3em; margin: 0 0 1em; }
.prose li { margin-bottom: 0.6em; }
.prose li::marker { color: var(--accent); }
.prose strong { color: var(--text); }

.steps { counter-reset: step; list-style: none; padding: 0 !important; }
.steps li {
  counter-increment: step;
  position: relative;
  padding-left: 32px;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  font-weight: 600;
  color: var(--accent);
}

.faq { margin-top: 16px; }
.faq h3 { font-size: 1.5rem; }
.faq h4 {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 1.4em 0 0.6em;
}
.faq h4:first-of-type { margin-top: 0.8em; }

.callout {
  border-left: 3px solid var(--accent);
  background: var(--accent-soft);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 18px 22px;
}

blockquote.pledge {
  margin: 0;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.45rem, 4.6vw, 1.8rem);
  line-height: 1.3;
  border-left: 3px solid var(--accent);
  padding: 4px 0 4px 22px;
}

.charity .tagline { color: var(--accent); font-weight: 600; margin-bottom: 0.6em; }
.charity dl {
  margin: 0 0 18px;
  display: grid;
  gap: 2px;
}
.charity dt {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 10px;
}
.charity dd { margin: 0; }
.button {
  display: inline-block;
  background: var(--accent);
  color: var(--bg);
  text-decoration: none;
  font-weight: 600;
  border-radius: 999px;
  padding: 10px 22px;
}
.button:hover { filter: brightness(1.08); }

/* Table */
.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}
caption {
  text-align: left;
  padding: 14px 16px 0;
  color: var(--muted);
  font-size: 0.9rem;
}
th, td {
  text-align: left;
  vertical-align: top;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
}
th {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}
tbody tr:last-child td { border-bottom: 0; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
  padding: 24px 0 40px;
}
.site-footer p { margin: 0; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--text); }

@media (max-width: 480px) {
  .wrap { padding: 0 16px; }
  main { padding: 36px 0 56px; }
  .card { padding: 20px; }
  .feature { grid-template-columns: 1fr; }
  .feature .icon { margin-bottom: 6px; }
  th, td { padding: 10px 12px; }
}

@media (prefers-reduced-motion: no-preference) {
  .hero .flame { transform-origin: 70px 98px; animation: breathe 4s ease-in-out infinite; }
}
@keyframes breathe {
  0%, 100% { transform: scaleY(1); }
  50% { transform: scaleY(1.05); }
}

.card > h2:first-child,
.card > h3:first-child { margin-top: 0; }
blockquote.pledge p { margin: 0; }

/* Stack the reports table on narrow screens so every column stays visible. */
@media (max-width: 560px) {
  .table-scroll { overflow-x: visible; }
  table, tbody, tr, td { display: block; width: 100%; }
  thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
  tbody tr { padding: 6px 0; border-bottom: 1px solid var(--line); }
  tbody tr:last-child { border-bottom: 0; }
  td {
    display: grid;
    grid-template-columns: minmax(7.5em, 40%) 1fr;
    gap: 12px;
    border-bottom: 0;
    padding: 8px 16px;
  }
  td::before {
    content: attr(data-label);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
    padding-top: 2px;
  }
}
@media (min-width: 561px) {
  td:first-child { white-space: nowrap; }
}
