:root {
  --bg: #f6f3ec;
  --ink: #1f1a17;
  --muted: #5e564e;
  --line: #e3dbd0;
  --card: #fffdf8;
  --accent: #1f6f5b;
  --accent-dark: #154e40;
  --header: #241c18;
  --header-ink: #f6f3ec;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: 1.05rem;
  line-height: 1.55;
}
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 1.25rem;
  background: var(--header);
  color: var(--header-ink);
}
.site-header a { color: var(--header-ink); text-decoration: none; }
.site-header .brand { font-weight: 650; letter-spacing: 0.02em; }
.site-header nav { display: flex; gap: 1rem; }
.site-header nav a { border-bottom: 1px solid transparent; }
.site-header nav a:hover { border-bottom-color: #d7c4a3; }
body > center, body > h1, body > h2, body > h3, body > p,
body > ul, body > ol, body > hr, body > div, body > table,
body > h4, body > blockquote, body > pre {
  margin-left: auto;
  margin-right: auto;
}
p, ul, ol, h1, h2, h3, h4, table, blockquote, pre, center {
  max-width: 46rem;
}
body > p, body > ul, body > ol, body > h1, body > h2, body > h3,
body > h4, body > table, body > blockquote, body > pre, body > center,
body > hr {
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}
h1, h2, h3, h4 {
  font-family: Georgia, "Iowan Old Style", "Palatino Linotype", serif;
  font-weight: 650;
  line-height: 1.2;
  color: var(--ink);
}
h1 { font-size: 2rem; margin-top: 1.4rem; }
h2 { font-size: 1.45rem; }
a { color: var(--accent); }
a:hover { color: var(--accent-dark); }
hr { border: 0; border-top: 1px solid var(--line); margin: 1.5rem auto; }
center { display: block; text-align: center; }
img { max-width: 100%; height: auto; }
table { border-collapse: collapse; background: var(--card); }
td, th { padding: 0.35rem 0.5rem; }
.private {
  max-width: 46rem;
  margin: 2rem auto;
  padding: 1.25rem 1.4rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 0.75rem;
}
.rule { color: var(--muted); display: block; font-size: 0.95rem; }
code { font-size: 0.95rem; }
body.gallery a img,
body.gallery img {
  width: 10.5rem;
  height: 10.5rem;
  object-fit: cover;
  border-radius: 0.45rem;
  background: #ece6dc;
  vertical-align: top;
}
body.gallery a {
  display: inline-block;
  margin: 0.35rem;
}
body.gallery .site-header a {
  display: inline;
  margin: 0;
  width: auto;
  height: auto;
}
#wrapper_thumb, #wrapper_large, #stage, #index {
  background: transparent;
  color: var(--ink);
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}
#sitetitle h1, #collectionHeader h1, .textColor { color: var(--ink) !important; }
@media (max-width: 640px) {
  .site-header { align-items: flex-start; flex-direction: column; }
  body.gallery a img, body.gallery img { width: 46vw; height: 46vw; }
}
