/* art-official.org — plain, technical, boring on purpose. System fonts only, no web-font loading. */

:root {
  --text: #211d15;
  --text-dim: #6b6355;
  --bg: #f2ede1;
  --bg-alt: #eae3d3;
  --line: #d9d0ba;
  --accent: #7a5a34;
  --code-bg: #eae3d3;
  --max: 42rem;
  --serif: Iowan Old Style, Palatino Linotype, Palatino, Georgia, "Noto Serif", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}

/* Palette seeded from the current one-page art-official.org placeholder:
   warm cream background, near-black warm text, muted brown-gray accent,
   thin-line reticle mark (circle + dashed inner ring + center dot + ticks). */

@media (prefers-color-scheme: dark) {
  :root {
    --text: #e9e3d4;
    --text-dim: #a89e88;
    --bg: #17140e;
    --bg-alt: #201c14;
    --line: #3a352a;
    --accent: #c7a06a;
    --code-bg: #201c14;
  }
}

* { box-sizing: border-box; }

html { color-scheme: light dark; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--serif);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
}
.skip-link:focus {
  left: 1rem;
  top: 1rem;
  background: var(--bg);
  padding: 0.5rem 1rem;
  z-index: 10;
}

.site-header {
  border-bottom: 1px solid var(--line);
  padding: 1.1rem 0;
  font-family: var(--sans);
}
.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--mono);
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
}
.wordmark .mark {
  width: 1.15rem;
  height: 1.15rem;
  flex: none;
}
.wordmark .mark circle,
.wordmark .mark line {
  fill: none;
  stroke: var(--text);
  stroke-width: 2.5;
}
.wordmark .mark .dot { fill: var(--text); stroke: none; }
.wordmark .mark .dashed { stroke: var(--text-dim); stroke-width: 1.5; }
.site-header nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem 1.1rem;
  font-size: 0.88rem;
}
.site-header nav a {
  color: var(--text-dim);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 0.1rem;
}
.site-header nav a:hover,
.site-header nav a:focus {
  color: var(--text);
  border-bottom-color: var(--accent);
}
.site-header nav a[aria-current="page"] {
  color: var(--text);
  border-bottom-color: var(--accent);
}

main {
  padding: 2.5rem 1.25rem 4rem;
}

.lede {
  font-family: var(--sans);
  font-size: 1.02rem;
  color: var(--text-dim);
  border-left: 3px solid var(--accent);
  padding-left: 1rem;
  margin: 0 0 2.5rem;
}

h1 {
  font-size: 1.7rem;
  line-height: 1.3;
  margin: 0 0 0.2rem;
}
.subtitle {
  font-family: var(--sans);
  color: var(--text-dim);
  font-size: 1rem;
  margin: 0 0 1rem;
}
.doc-meta {
  font-family: var(--sans);
  color: var(--text-dim);
  font-size: 0.85rem;
  font-style: italic;
  margin: 0 0 2rem;
}

h2 {
  font-size: 1.28rem;
  margin: 2.6rem 0 1rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line);
}
main > h2:first-of-type { border-top: none; padding-top: 0; }

h3 {
  font-size: 1.05rem;
  margin: 1.8rem 0 0.75rem;
  font-family: var(--sans);
  font-weight: 600;
}

p { margin: 0 0 1.1rem; }

strong { font-weight: 600; }

a { color: var(--accent); }
a:hover { text-decoration-thickness: 2px; }

ul, ol {
  margin: 0 0 1.1rem;
  padding-left: 1.4rem;
}
li { margin: 0 0 0.5rem; }
li > ul, li > ol { margin-top: 0.5rem; }

hr {
  border: none;
  border-top: 1px solid var(--line);
  margin: 2.5rem 0;
}

code {
  font-family: var(--mono);
  font-size: 0.88em;
  background: var(--code-bg);
  padding: 0.1em 0.35em;
  border-radius: 3px;
}

pre {
  font-family: var(--mono);
  font-size: 0.85rem;
  background: var(--code-bg);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 1rem;
  overflow-x: auto;
  line-height: 1.5;
}
pre code { background: none; padding: 0; }

blockquote {
  margin: 0 0 1.1rem;
  padding-left: 1rem;
  border-left: 3px solid var(--line);
  color: var(--text-dim);
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 1.5rem;
  font-size: 0.92rem;
}
th, td {
  text-align: left;
  padding: 0.5rem 0.7rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
th { font-family: var(--sans); font-weight: 600; }

.closing-note {
  font-style: italic;
  color: var(--text-dim);
}

.log-entry {
  margin: 0 0 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--line);
}
.log-entry:last-child { border-bottom: none; }
.log-date {
  display: block;
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-bottom: 0.35rem;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
  gap: 1.25rem;
  margin: 0 0 2rem;
  font-family: var(--sans);
}
.stat {
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 0.9rem 1rem;
}
.stat .n {
  display: block;
  font-size: 1.5rem;
  font-weight: 600;
  font-family: var(--serif);
}
.stat .label {
  font-size: 0.8rem;
  color: var(--text-dim);
}

.site-footer {
  border-top: 1px solid var(--line);
  font-family: var(--sans);
  font-size: 0.82rem;
  color: var(--text-dim);
  padding: 1.5rem 0 3rem;
}

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