/* Vimarsh Apps site. Palette and fonts match the Akshar Van app (lib/main.dart). */

@font-face {
  font-family: "Nunito";
  src: url("fonts/Nunito.ttf") format("truetype");
  font-weight: 200 1000;
  font-display: swap;
}

@font-face {
  font-family: "Noto Sans Devanagari";
  src: url("fonts/Hindi.ttf") format("truetype");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0900-097F, U+1CD0-1CFF, U+A8E0-A8FF, U+200C-200D, U+25CC;
}

:root {
  --cream: #F8F4E9;
  --paper: rgba(255, 253, 248, 0.8);
  --ink: #294E48;
  --ink-soft: #52706A;
  --line: rgba(41, 78, 72, 0.12);
  --sage: #DFE7D5;
  --clay: #AF6046;
  --gold: #E8BC68;
  --apricot: #F0DCD0;
  --wash: var(--sage);
  --radius: 28px;
  --sans: "Nunito", "Noto Sans Devanagari", ui-rounded, "Segoe UI", system-ui,
    -apple-system, "Nirmala UI", sans-serif;
  color-scheme: light;
}

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

html {
  background: var(--cream);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  padding-inline: clamp(16px, 5vw, 48px);
  color: var(--ink);
  font: 400 1.0625rem/1.7 var(--sans);
  background-color: var(--cream);
  background-image:
    radial-gradient(70% 420px at 90% -60px, var(--wash), transparent 75%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .42 0 0 0 0 .3 0 0 0 0 .2 0 0 0 .1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
  background-repeat: no-repeat, repeat;
}

body.wash-apricot {
  --wash: var(--apricot);
}

.wrap {
  max-width: 46rem;
  margin-inline: auto;
  padding-block: 28px 56px;
}

a {
  color: var(--clay);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  text-decoration-thickness: 2px;
}

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

h1,
h2 {
  margin: 0;
  color: var(--ink);
  line-height: 1.15;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.25rem, 7vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.015em;
}

h2 {
  font-size: 1.375rem;
  font-weight: 800;
}

p {
  margin: 0 0 1em;
}

.hindi {
  line-height: 1.8;
}

/* Header and footer */

.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
}

.brand-mark {
  width: 14px;
  height: 14px;
  border-radius: 70% 0 70% 0;
  background: var(--clay);
}

.site-nav {
  display: flex;
  gap: 22px;
}

.site-nav a {
  color: var(--ink-soft);
  font-weight: 700;
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--clay);
}

main {
  padding-block: clamp(48px, 10vw, 104px) 0;
}

.site-footer {
  margin-top: 72px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.9375rem;
}

.site-footer p {
  margin: 0;
}

/* Shared pieces */

.card {
  padding: clamp(22px, 5vw, 36px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 0 24px 48px -32px rgba(41, 78, 72, 0.3);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--clay);
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow .hindi {
  font-size: 1rem;
  letter-spacing: 0;
}

.meta {
  margin-top: 14px;
  color: var(--ink-soft);
}

/* Home */

.hero {
  margin-bottom: clamp(40px, 8vw, 72px);
}

.lede {
  max-width: 20ch;
  font-size: clamp(2rem, 6.2vw, 3.25rem);
}

.hero p {
  max-width: 34rem;
  margin-top: 18px;
  color: var(--ink-soft);
  font-size: 1.1875rem;
}

.app-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(20px, 4vw, 32px);
  align-items: start;
}

.app-icon {
  display: block;
  width: 112px;
  height: 112px;
  border-radius: 26px;
  box-shadow: 0 14px 30px -18px rgba(41, 78, 72, 0.5);
}

.app-name {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0 14px;
  margin-bottom: 10px;
}

.app-name .hindi {
  font-size: clamp(1.9rem, 5vw, 2.4rem);
  font-weight: 700;
  line-height: 1.35;
}

.app-name .latin {
  color: var(--ink-soft);
  font-size: 1.0625rem;
  font-weight: 700;
}

.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 22px;
  padding: 0;
  list-style: none;
}

.pills li {
  padding: 4px 14px;
  border-radius: 999px;
  background: var(--sage);
  font-size: 0.9375rem;
  font-weight: 700;
}

.app-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 22px;
  margin: 0;
}

.soon {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
}

.soon::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
}

/* Privacy policy */

.doc > section {
  margin-top: clamp(40px, 7vw, 56px);
}

.doc h2 {
  margin-bottom: 12px;
}

.doc .summary {
  margin-top: 36px;
}

.summary h2 {
  margin-bottom: 10px;
  color: var(--clay);
  font-size: 0.8125rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.summary .hindi {
  margin: 0;
  padding-top: 16px;
  border-top: 1px dashed var(--line);
  color: var(--ink-soft);
}

.stored {
  display: grid;
  gap: 10px;
  margin: 20px 0;
}

.stored div {
  display: grid;
  grid-template-columns: 11rem 1fr;
  gap: 2px 20px;
  padding: 14px 18px;
  border-radius: 18px;
  background: rgba(223, 231, 213, 0.6);
}

.stored dt {
  font-weight: 800;
}

.stored dd {
  margin: 0;
}

.list {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.list li {
  position: relative;
  margin-bottom: 10px;
  padding-left: 26px;
}

.list li::before {
  content: "";
  position: absolute;
  top: 0.6em;
  left: 3px;
  width: 10px;
  height: 10px;
  border-radius: 70% 0 70% 0;
  background: var(--clay);
  opacity: 0.7;
}

@media (max-width: 34rem) {
  .app-card,
  .stored div {
    grid-template-columns: 1fr;
  }

  .app-icon {
    width: 96px;
    height: 96px;
    border-radius: 22px;
  }
}
