/* site chrome shared by every page: top bar, footer line, browser surfaces */

::selection { background: var(--ink); color: var(--paper); }
html { scrollbar-color: rgba(30, 39, 51, 0.4) var(--paper); }

/* ---------------- icons: src/icons.js builds them; static pages inline the same markup */
.i {
  width: 1.15em; height: 1.15em; flex: none; vertical-align: -0.2em;
  fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round;
}
.i .fill { fill: currentColor; stroke: none; }
.i .knock { stroke: var(--paper); stroke-width: 2.6; }

/* ---------------- top bar */
.top {
  max-width: 1360px; margin: 0 auto; padding: 14px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.brand { display: flex; align-items: center; gap: 10px; min-height: 44px; text-decoration: none; border-radius: 6px; }
.brand span { font-family: var(--serif); font-weight: 700; font-size: 20px; letter-spacing: 0.06em; white-space: nowrap; }
.top nav { display: flex; gap: 4px; font-size: 15px; margin-right: -12px; }
.top nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px;
  white-space: nowrap;
  text-decoration: none; color: var(--ink-soft); border-radius: 6px;
}
.top nav a:hover { color: var(--ink); text-decoration: underline; }
.top nav a[aria-current="page"] { color: var(--ink); font-weight: 700; }

/* ---------------- footer line */
.foot {
  max-width: 1360px; margin: 0 auto; padding: 20px 24px 32px;
  display: flex; align-items: center; gap: 10px; color: var(--ink-soft); font-size: 14px;
}
.foot p { margin: 0; }

@media (max-width: 640px) {
  .top { padding: 10px 16px; }
  .top nav { font-size: 14px; margin-right: -8px; }
  .top nav a { padding: 0 8px; }
  .top nav a[href$="#how"] { display: none; } /* 找植物 took its place; the home hero still links 怎么看 */
  .brand span { font-size: 18px; }
  .brand img { width: 34px; height: 34px; }
  .foot { padding-inline: 16px; }
}
@media (max-width: 359px) {
  .top nav { gap: 0; }
  .top nav a { padding: 0 4px; }
}
