:root {
  color-scheme: dark;

  --page-bg: #000000;
  --content-bg: #151f1d;

  --text: #d9c6b6;
  --muted-text: #9f9186;

  --heading: #d8b866;
  --muted-border: #5f5b48;

  --link: #f1d45a;
  --link-hover: #fff0a0;

  --code-bg: #0b1110;
  --code-border: #3f473f;

  --glow: rgba(216, 184, 102, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--page-bg);
  color: var(--text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

body {
  margin: 0;
  padding: 1.5rem 1rem;
}

.page-card {
  max-width: 850px;
  margin: 0 auto;
  padding: 1.25rem 1.5rem;
  background: var(--content-bg);
  border: 1px solid var(--muted-border);
  border-radius: 10px;
  box-shadow: 0 0 28px var(--glow);
}

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

.site-logo {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
}

section + section {
  margin-top: 1.75rem;
}

h1,
h2 {
  color: var(--heading);
  line-height: 1.2;
}

h1 {
  margin: 0 0 1rem;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
}

h2 {
  margin: 0 0 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--muted-border);
  font-size: 1.35rem;
}

p,
li {
  max-width: 90ch;
}

p {
  margin: 0.75rem 0;
}

ul {
  margin: 0.75rem 0 0;
  padding-left: 1.35rem;
}

li + li {
  margin-top: 0.25rem;
}

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

a:hover,
a:focus {
  color: var(--link-hover);
}

code {
  padding: 0.08rem 0.28rem;
  background: var(--code-bg);
  border: 1px solid var(--code-border);
  border-radius: 4px;
  color: #ead7c6;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 0.95em;
}

.muted {
  color: var(--muted-text);
  font-size: 0.75em;
}

.sample-images {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: flex-start;
  margin-top: 0.75rem;
  padding: 0.75rem;
  border: 1px solid var(--muted-border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.025);
}

.sample-images a {
  display: block;
}

.sample-images img {
  display: block;
  max-width: min(100%, 360px);
  height: auto;
  padding: 0.35rem;
  background: #0b1110;
  border: 1px solid var(--muted-border);
  border-radius: 6px;
}

@media (max-width: 760px) {
  body {
    padding: 0.75rem;
  }

  .page-card {
    padding: 1rem;
  }

  .sample-images {
    justify-content: center;
  }
  
 .site-footer {
    max-width: 850px;
    margin: 1rem auto 0;
    padding: 0 1.5rem;
    font-size: 0.9rem;
    line-height: 1.15;
  }

  .site-footer p {
    margin: 0.35rem 0;
  }

  .site-footer .privacy-note {
    max-width: 75ch;
  }
}
