:root {
  color-scheme: dark;
  --bg: #09090a;
  --panel: #101012;
  --line: #2a2a2e;
  --text: #ece7df;
  --muted: #aaa39a;
  --link: #d2bc84;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.6;
}

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

code {
  color: var(--text);
  background: var(--panel);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.92em;
}

.page-shell {
  width: min(680px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 3rem 0 4rem;
}

.page-shell--entry {
  width: min(680px, calc(100% - 2rem));
}

.site-header,
.entry-shell {
  margin-bottom: 1.5rem;
}

.site-name {
  margin: 0 0 0.5rem;
  color: var(--muted);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.site-link {
  margin: 0 0 0.5rem;
  font-size: 0.95rem;
}

.site-link a {
  color: var(--muted);
  text-decoration: none;
}

.site-link a:hover,
.site-link a:focus-visible {
  text-decoration: underline;
}

h1,
h2 {
  margin: 0 0 1rem;
  font-weight: 700;
  line-height: 1.15;
}

h1 {
  font-size: clamp(2.2rem, 8vw, 3.2rem);
}

.trace-body p,
.trace-list {
  color: var(--muted);
}

.site-description {
  max-width: 36rem;
  margin: -0.25rem 0 0;
  color: var(--muted);
}

.home,
.trace-body {
  display: grid;
  gap: 1rem;
}

.trace-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.trace-item,
.entry-header {
  padding: 1rem 0;
  border-top: 1px solid var(--line);
}

.trace-list li:last-child {
  border-bottom: 1px solid var(--line);
}

.back-link {
  display: inline-block;
  margin-bottom: 1rem;
}

.trace-item a {
  color: var(--text);
  text-decoration: none;
  font-size: 1.2rem;
}

.trace-item a:hover,
.trace-item a:focus-visible {
  text-decoration: underline;
}

.entry-header h1 {
  margin-bottom: 0.75rem;
  font-size: clamp(1.9rem, 7vw, 2.8rem);
}

.trace-date {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.trace-excerpt {
  max-width: 42rem;
  margin: 0.55rem 0 0;
  color: var(--muted);
}

.trace-body h2 {
  margin-top: 1.5rem;
}

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

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.55rem;
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 0.12rem 0.5rem;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.82rem;
}
