/* Shared styling for the public Sound Atlas site.
   Matches the application's cream and brown palette so the consent screen,
   homepage and app read as one product to a reviewer and to a listener. */

:root {
  --page: #fbf3e4;
  --surface: #fffaf0;
  --ink: #2c2419;
  --muted: #6b5d49;
  --accent: #6f5b3e;
  --accent-ink: #fffaf0;
  --rule: #e4d8bf;
  --measure: 42rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --page: #17140f;
    --surface: #1f1b14;
    --ink: #f2e9d8;
    --muted: #b3a68e;
    --accent: #c8a86a;
    --accent-ink: #17140f;
    --rule: #352d21;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0 1.25rem 4rem;
  background: var(--page);
  color: var(--ink);
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
}

header,
main,
footer {
  max-width: var(--measure);
  margin-inline: auto;
}

header {
  padding: 3.5rem 0 1rem;
}

h1,
h2,
h3 {
  font-family: Georgia, "Iowan Old Style", "Times New Roman", serif;
  line-height: 1.25;
  color: var(--ink);
}

h1 {
  font-size: clamp(2.1rem, 6vw, 2.9rem);
  margin: 0 0 0.4rem;
}

h2 {
  font-size: 1.4rem;
  margin: 2.5rem 0 0.6rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--rule);
}

h3 {
  font-size: 1.1rem;
  margin: 1.6rem 0 0.4rem;
}

.tagline {
  font-size: 1.2rem;
  color: var(--muted);
  margin: 0 0 2rem;
}

a {
  color: var(--accent);
  text-underline-offset: 2px;
}

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

ul {
  padding-left: 1.2rem;
}

li {
  margin-bottom: 0.4rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
}

.card h3 {
  margin-top: 0;
}

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

footer {
  margin-top: 3.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 0.95rem;
}

footer a {
  margin-right: 1rem;
}

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

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

th {
  color: var(--muted);
  font-weight: 600;
}

code {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 0.1rem 0.35rem;
  font-size: 0.92em;
}
