/* Shared styles for the Sharanam site. Saffron and deep indigo, as in the app. */

:root {
  --saffron: #e07a1f;
  --indigo: #14112b;
  --ink: #221f33;
  --muted: #5d5a6e;
  --paper: #fffaf3;
  --line: #eadfce;
  --max: 46rem;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Noto Sans Devanagari", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
}

a {
  color: #a8520c;
}

a:focus-visible {
  outline: 2px solid var(--saffron);
  outline-offset: 2px;
}

.site-header {
  background: var(--indigo);
  color: #fff;
}

.site-header .inner,
main,
.site-footer .inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.site-header .inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.25rem;
  padding-top: 0.9rem;
  padding-bottom: 0.9rem;
}

.brand {
  color: #fff;
  font-weight: 700;
  font-size: 1.25rem;
  text-decoration: none;
}

.brand span {
  color: var(--saffron);
}

.site-header nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
  font-size: 0.95rem;
}

.site-header nav a {
  color: #f4e9dc;
  text-decoration: none;
}

.site-header nav a:hover,
.site-header nav a[aria-current="page"] {
  color: #fff;
  text-decoration: underline;
}

main {
  padding-top: 1.5rem;
  padding-bottom: 2.5rem;
}

h1 {
  font-size: 1.75rem;
  line-height: 1.25;
  margin: 0.5rem 0 0.25rem;
}

h2 {
  font-size: 1.25rem;
  margin: 2rem 0 0.5rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--line);
}

h3 {
  font-size: 1.05rem;
  margin: 1.25rem 0 0.25rem;
}

.meta {
  color: var(--muted);
  font-size: 0.95rem;
  margin-top: 0;
}

ul,
ol {
  padding-left: 1.25rem;
}

li + li {
  margin-top: 0.3rem;
}

.box {
  background: #fff;
  border: 1px solid var(--line);
  border-left: 4px solid var(--saffron);
  border-radius: 6px;
  padding: 0.75rem 1rem;
  margin: 1rem 0;
}

.hero {
  background: var(--indigo);
  color: #fff;
  border-radius: 10px;
  padding: 1.75rem 1.25rem;
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-size: 2rem;
  margin-top: 0;
}

.hero p {
  color: #f4e9dc;
  margin-bottom: 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  font-size: 0.95rem;
}

th,
td {
  text-align: left;
  vertical-align: top;
  padding: 0.5rem;
  border-bottom: 1px solid var(--line);
}

.site-footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer .inner {
  padding-top: 1rem;
  padding-bottom: 1.5rem;
}

.site-footer a {
  color: var(--muted);
  margin-right: 1rem;
}

@media (max-width: 30rem) {
  body {
    font-size: 1rem;
  }

  h1,
  .hero h1 {
    font-size: 1.5rem;
  }

  th,
  td {
    padding: 0.4rem 0.25rem;
  }
}
