/* Shared styles for neuresthetics.github.io. No external fonts, no scripts. */
:root {
  --bg: #0a0a0a;
  --panel: #131313;
  --ink: #e8e8e8;
  --dim: #a3a3a3;
  --line: #262626;
  --accent: #c9a227;
  --accent-soft: #e0c25a;
  --measure: 46rem;
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1.0625rem;
  line-height: 1.7;
}

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

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

/* Header / nav */
.site-header {
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding-top: 0.9rem;
  padding-bottom: 0.9rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--ink);
  letter-spacing: 0.08em;
  font-size: 0.95rem;
}
.brand img { width: 28px; height: 28px; border-radius: 50%; }
.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.95rem;
}
.site-nav li { margin: 0; }
/* .site-header raises these above each skin's general link color, so the
   current page stands out; skins can still set their own hover and current color. */
.site-header .site-nav a { color: var(--dim); }
.site-header .site-nav a:hover,
.site-header .site-nav a[aria-current="page"] { color: var(--accent); }

main { padding: 3rem 0 4rem; }

/* Type */
h1, h2, h3 { font-weight: 400; line-height: 1.3; }
h1 { font-size: 2rem; margin: 0 0 0.4rem; letter-spacing: 0.01em; }
h2 {
  font-size: 1.25rem;
  margin: 2.75rem 0 1rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--line);
}
h3 { font-size: 1.1rem; margin: 0 0 0.4rem; }
p { margin: 0 0 1rem; }
ul, ol { margin: 0 0 1rem; padding-left: 1.25rem; }
li { margin-bottom: 0.45rem; }
strong { font-weight: 700; }

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-soft); text-decoration: underline; }
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.tag {
  color: var(--accent);
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 0 0 1.5rem;
}
.lead { color: var(--dim); font-size: 1.1rem; }
.small { font-size: 0.9rem; color: var(--dim); }

blockquote {
  margin: 1.25rem 0;
  padding: 0.75rem 1rem;
  border-left: 3px solid var(--accent);
  background: var(--panel);
  color: var(--ink);
}
blockquote p:last-child { margin-bottom: 0; }

code {
  font-family: ui-monospace, 'Courier New', monospace;
  font-size: 0.88em;
  background: #1a1a1a;
  padding: 0.1em 0.35em;
  border-radius: 3px;
}

/* Home intro */
.intro {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}
.intro .logo {
  flex: none;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  border: 2px solid var(--accent);
}
.links li { margin: 0; }
.links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  list-style: none;
  padding: 0;
  margin: 1.25rem 0 0;
}

/* Figure */
figure { margin: 1.5rem 0; }
figure img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  border: 1px solid var(--line);
}
figcaption { color: var(--dim); font-size: 0.9rem; margin-top: 0.5rem; }
.split {
  display: grid;
  grid-template-columns: 1fr 15rem;
  gap: 2rem;
  align-items: start;
}
.split figure { margin-top: 0.25rem; }

.note {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1rem 1.25rem;
  color: var(--dim);
}
.note p:last-child { margin-bottom: 0; }

.back { margin-top: 3rem; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  color: var(--dim);
  font-size: 0.9rem;
}
.site-footer .wrap { padding-top: 1.5rem; padding-bottom: 2.5rem; }
.site-footer a { color: var(--dim); }
.site-footer a:hover { color: var(--accent); }
.site-footer .x-note { display: block; font-size: 0.85em; font-style: italic; margin-top: 0.25rem; }

@media (max-width: 640px) {
  body { font-size: 1rem; }
  main { padding: 2rem 0 3rem; }
  h1 { font-size: 1.65rem; }
  .intro { flex-direction: column; gap: 1rem; }
  .intro .logo { width: 72px; height: 72px; }
  .split { grid-template-columns: 1fr; }
  .split figure { max-width: 18rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
.banner { display: block; width: 100%; height: auto; border-radius: 8px; border: 1px solid #2a2a2a; margin: 0 0 1.5rem; }
/* Eight nav items: give the header row more room than the text column so the nav stays on one line on desktop */
.site-header .wrap { max-width: 64rem; }
