:root {
  --paper: #fdfdfd;
  --ink: #282728;
  --muted: #737373;
  --accent: #006cac;
  --line: #ece9e9;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  min-height: 100svh;
  margin: 0;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--ink);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
.shell { width: min(calc(100% - 40px), 760px); margin-inline: auto; }

.header {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.logo {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.04em;
}
.logo:hover, .header nav > a:hover, .footer a:hover { color: var(--accent); }
.header nav {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 13px;
}
.status {
  display: flex;
  align-items: center;
  gap: 8px;
}
.status i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4a9a53;
}

main { flex: 1; min-height: 64vh; }

footer { color: var(--ink); }
.footer {
  min-height: 132px;
  padding: 28px 0 26px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-top: 1px solid var(--line);
}
.footer p {
  margin: 0;
  font-family: Georgia, "Songti SC", serif;
  font-size: 16px;
}
.ai-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin: 16px 0 24px;
  font-size: 13px;
}
.ai-links a {
  padding-bottom: 2px;
  border-bottom: 1px dashed var(--line);
}
.footer-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 11px;
}
.footer a { color: var(--ink); transition: color 0.2s ease; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

@media (max-width: 720px) {
  .shell { width: calc(100% - 32px); }
  .header { min-height: 70px; }
  .header nav { gap: 14px; font-size: 11px; }
  main { min-height: 60vh; }
  .footer { min-height: 140px; padding: 24px 0; }
  .footer-meta { align-items: flex-start; flex-direction: column-reverse; gap: 10px; }
}
