:root {
  color-scheme: light;
  --paper: #f7f8f6;
  --ink: #202926;
  --muted: #4e5d56;
  --accent: #225246;
  --line: #d4ddd7;
  font-family: system-ui, "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.65;
}

* { box-sizing: border-box; }

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
  background: var(--paper);
  color: var(--ink);
}

.frame {
  width: min(100% - 48px, 880px);
  margin-inline: auto;
}

a {
  color: var(--accent);
  text-underline-offset: .24em;
}

:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }

.site-header { border-bottom: 1px solid var(--line); background: #fff; }
.header-inner, .footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 24px;
  padding-block: 14px;
}

.brand, nav { display: flex; align-items: center; gap: 12px; }
.brand { min-height: 44px; color: var(--ink); font-weight: 650; text-decoration: none; }
.brand img { flex: none; }
nav a { display: inline-flex; align-items: center; min-height: 44px; padding-inline: 4px; }

main { flex: 1; }
.intro { padding-block: 48px 36px; border-bottom: 2px solid var(--accent); }
.domain { color: var(--accent); font: 600 .82rem ui-monospace, monospace; }
h1, h2, p, dl, dd { margin: 0; }
h1 { margin-top: 8px; font-size: 2.25rem; line-height: 1.35; }
h2 { font-size: 1.18rem; }
.intro p, .about p { margin-top: 12px; color: var(--muted); }
.portal-section { padding-block: 26px 32px; }
.about { border-bottom: 1px solid var(--line); }
.services {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 32px;
  margin-top: 8px;
}
.services div { padding-block: 14px; border-bottom: 1px solid var(--line); }
.services dt { color: var(--accent); font-weight: 650; }
.services dd { margin-top: 4px; color: var(--muted); }
.site-footer { background: #fff; border-top: 1px solid var(--line); color: var(--muted); font-size: .875rem; }
.footer-inner { min-height: 64px; }

@media (max-width: 480px) {
  .frame { width: calc(100% - 32px); }
  .header-inner { padding-block: 8px; }
  .intro { padding-block: 30px; }
  h1 { font-size: 1.9rem; }
  .services { grid-template-columns: minmax(0, 1fr); }
}
