:root {
  --bg: #fff;
  --text: #222;
  --muted: #6b7280;
  --border: #e5e7eb;
  --link: #175cd3;
  --code-bg: #f5f5f5;
  --max-width: 760px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111;
    --text: #e5e7eb;
    --muted: #9ca3af;
    --border: #2d2d2d;
    --link: #70a5ff;
    --code-bg: #1c1c1c;
  }
}

* {
  box-sizing: border-box;
}

html {
  font-size: 16px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family:
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  line-height: 1.7;
}

.container {
  width: min(calc(100% - 2rem), var(--max-width));
  margin-inline: auto;
}

.site-header {
  border-bottom: 1px solid var(--border);
  margin-bottom: 3rem;
}

.header-inner {
  min-height: 4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.site-title {
  color: var(--text);
  font-weight: 650;
  text-decoration: none;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

nav a {
  color: var(--muted);
  text-decoration: none;
}

nav a:hover,
nav a:focus {
  color: var(--text);
}

.content {
  padding-bottom: 4rem;
}

h1,
h2,
h3,
h4 {
  line-height: 1.25;
  margin-top: 2rem;
}

h1 {
  font-size: 2.2rem;
  margin-top: 0;
}

h2 {
  font-size: 1.55rem;
}

h3 {
  font-size: 1.2rem;
}

a {
  color: var(--link);
}

img {
  max-width: 100%;
  height: auto;
}

pre {
  overflow-x: auto;
  padding: 1rem;
  border-radius: 6px;
  background: var(--code-bg);
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 0.9em;
}

:not(pre) > code {
  padding: 0.15em 0.3em;
  border-radius: 4px;
  background: var(--code-bg);
}

blockquote {
  margin-inline: 0;
  padding-left: 1rem;
  border-left: 3px solid var(--border);
  color: var(--muted);
}

table {
  width: 100%;
  border-collapse: collapse;
}

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

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

@media (max-width: 600px) {
  .header-inner {
    align-items: flex-start;
    flex-direction: column;
    padding-block: 1rem;
  }

  .site-header {
    margin-bottom: 2rem;
  }

  h1 {
    font-size: 1.9rem;
  }
}

.description {
  display: block;
  color: gray;
  margin-bottom: 2rem !important;
}

.chant-container {
  background-color: white;
  width: 100%;
  margin: 2rem 0;
  padding: 1.5rem;
  box-sizing: border-box;
  overflow-x: auto;
  border-radius: 1.5rem;
}

.chant-container-inner {
  width: 100%;
}

.chant-container-inner svg {
  display: block;
  width: 100%;
  height: auto;
}
