/* Shared by every page of the site. No scripts, no external requests:
   the font is served from this site (SIL Open Font License, fonts/). */

@font-face {
  font-family: "PT Sans Caption";
  src: url("/fonts/PTSansCaption-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #f6f1e7;
  --surface: #fffdf8;
  --text: #2b2620;
  --muted: #6b6155;
  --accent: #9a4a1c;
  --line: #e2d8c6;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1c1915;
    --surface: #25211c;
    --text: #ece4d6;
    --muted: #b3a795;
    --accent: #e39a62;
    --line: #3b352d;
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "PT Sans Caption", "PT Sans", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.6;
}

.page {
  max-width: 44rem;
  margin: 0 auto;
  padding: 1.5rem 1rem 3rem;
}

header.top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.5rem 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 1.5rem;
}

header.top .brand {
  color: var(--text);
  text-decoration: none;
  letter-spacing: 0.02em;
}

nav.lang a, nav.lang span { margin-left: 0.75rem; }
nav.lang span { color: var(--muted); }

h1 { font-size: 2rem; line-height: 1.2; margin: 0 0 0.5rem; font-weight: 400; }
h2 { font-size: 1.35rem; line-height: 1.3; margin: 2.25rem 0 0.5rem; font-weight: 400; color: var(--accent); }
h3 { font-size: 1.1rem; margin: 1.5rem 0 0.25rem; font-weight: 400; }

p, ul, ol { margin: 0 0 1rem; }
li { margin-bottom: 0.35rem; }

a { color: var(--accent); text-underline-offset: 0.15em; }

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

.box {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1rem 1.25rem;
  margin: 1rem 0 1.5rem;
}
.box > :last-child { margin-bottom: 0; }

.table-wrap { overflow-x: auto; margin: 0 0 1.25rem; }
table { border-collapse: collapse; width: 100%; font-size: 0.95rem; }
th, td { text-align: left; vertical-align: top; padding: 0.5rem 0.6rem; border-bottom: 1px solid var(--line); }
th { font-weight: 400; color: var(--muted); }

.stores { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 1.5rem 0; }
.store {
  display: inline-block;
  padding: 0.7rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
}
.store small { display: block; color: var(--muted); font-size: 0.8rem; }

footer.bottom {
  margin-top: 3rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.95rem;
}
footer.bottom a { margin-right: 1rem; }
