/* Shared layout for the informational pages under /about/, /contact/,
   /privacy/ and /terms/. Palette and borders follow /3d/index.html. */

:root {
  --bg-outer: #dfe8cc;
  --bg-cream: #fbf4e2;
  --bg-card: #fffaf0;
  --ink: #3a2e24;
  --highlight: #f3d77a;
  --highlight-hover: #f7e08e;
  --secondary-bg: #fffaf0;
  --secondary-hover: #f3e8cc;
  --topbar-grad: linear-gradient(#a6cc7a, #8cbc63);
}

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

html,
body {
  margin: 0;
  padding: 0;
  background-color: var(--bg-outer);
  color: var(--ink);
  font-family: "PingFang SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  padding: 24px 16px 48px;
}

.site-shell {
  max-width: 900px;
  margin: 0 auto;
  background-color: var(--bg-cream);
  border: 2px solid var(--ink);
  border-radius: 16px;
  box-shadow: 0 6px 0 var(--ink);
  overflow: hidden;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
  flex-wrap: wrap;
  padding: 14px 22px;
  background: var(--topbar-grad);
  border-bottom: 2px solid var(--ink);
  font-weight: 700;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  text-decoration: none;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.brand:hover {
  text-decoration: underline;
}

.site-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin-right: auto;
  font-size: 14px;
  font-weight: 800;
}

.site-nav a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  padding: 2px 0;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  border-bottom-color: var(--ink);
}

.btn-topbar {
  appearance: none;
  -webkit-appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 36px;
  padding: 7px 12px;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.2;
  color: var(--ink);
  background-color: var(--bg-cream);
  border: 2px solid var(--ink);
  border-radius: 12px;
  box-shadow: 0 3px 0 var(--ink);
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  user-select: none;
  -webkit-user-select: none;
}

.btn-topbar:hover {
  background-color: var(--highlight);
}

.btn-topbar:active {
  transform: translateY(3px);
  box-shadow: 0 0 0 var(--ink);
}

.page-main {
  padding: 28px 36px 40px;
}

.page-main h1 {
  margin: 0 0 10px;
  font-size: 32px;
  line-height: 1.25;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.eyebrow {
  margin: 0 0 4px;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.65;
}

.lead {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.75;
}

.updated {
  margin: 0 0 22px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 12px;
  background-color: var(--bg-card);
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 700;
  opacity: 0.9;
}

.prose {
  font-size: 15.5px;
  line-height: 1.8;
}

.prose h2 {
  margin: 34px 0 10px;
  padding-bottom: 6px;
  border-bottom: 2px solid rgba(58, 46, 36, 0.18);
  font-size: 21px;
  line-height: 1.35;
  font-weight: 800;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose p {
  margin: 0 0 14px;
}

.prose ul,
.prose ol {
  margin: 0 0 16px;
  padding-left: 1.45em;
}

.prose li {
  margin: 0 0 8px;
}

.prose a {
  color: var(--ink);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.prose a:hover {
  background-color: var(--highlight);
}

.prose code {
  padding: 1px 5px;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, Courier, monospace;
  font-size: 0.92em;
  background-color: var(--bg-card);
  border: 1px solid rgba(58, 46, 36, 0.35);
  border-radius: 5px;
}

.card {
  margin: 0 0 18px;
  padding: 16px 18px;
  background-color: var(--bg-card);
  border: 2px solid var(--ink);
  border-radius: 14px;
  box-shadow: 0 3px 0 rgba(58, 46, 36, 0.15);
}

.card p:last-child {
  margin-bottom: 0;
}

.card h2 {
  margin-top: 0;
  border-bottom: 0;
  padding-bottom: 0;
  font-size: 19px;
}

@media (max-width: 720px) {
  body {
    padding: 12px 10px 28px;
  }

  .topbar {
    padding: 12px 14px;
  }

  .brand {
    font-size: 18px;
  }

  .site-nav {
    order: 3;
    flex-basis: 100%;
    margin-right: 0;
    gap: 4px 14px;
    font-size: 13.5px;
  }

  .page-main {
    padding: 20px 16px 28px;
  }

  .page-main h1 {
    font-size: 26px;
  }

  .prose {
    font-size: 15px;
  }

  .prose h2 {
    font-size: 19px;
    margin-top: 28px;
  }
}
