/* netsurfer.app: one stylesheet for every page. Green-on-black like the
   app icon in dark mode, ink-on-paper in light mode. */

:root {
  --bg: #f7f8f5;
  --surface: #ffffff;
  --text: #16201a;
  --muted: #56645b;
  --line: #dde3dc;
  --accent: #0f7a3a;
  --accent-soft: #e3f3e8;
  --radius: 14px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #040b06;
    --surface: #0b1a10;
    --text: #e4f2e7;
    --muted: #94ab9a;
    --line: #1c3324;
    --accent: #4ade80;
    --accent-soft: #0f2a18;
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
}

a { color: var(--accent); }
a:hover { text-decoration-thickness: 2px; }
/* A clear ring for keyboard users, in the site's green. */
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Top bar */
/* The name on top, the page links centered under it. */
.top {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 7px 0 0;
}
.brand {
  display: flex;
  align-items: center;
  min-height: 44px;
  gap: 10px;
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
}
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.top nav { display: flex; justify-content: center; gap: 12px; font-size: 15px; }
.top nav a { color: var(--muted); text-decoration: none; padding: 11px 6px; }
.top nav a:hover, .top nav a[aria-current] { color: var(--text); }

/* Home page */
.hero { text-align: center; padding: 40px 0 24px; }
.hero .icon {
  width: 132px;
  height: 132px;
  border-radius: 30px;
  box-shadow: 0 10px 40px rgb(0 0 0 / 0.25);
}
.hero h1 { font-size: clamp(2.2rem, 7vw, 3.2rem); line-height: 1.1; margin: 24px 0 8px; }
.hero .tagline { font-size: 1.2rem; color: var(--muted); margin: 0 auto; max-width: 30em; }
.badge {
  display: inline-block;
  margin-top: 24px;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 600;
  font-size: 15px;
}
a.badge { text-decoration: none; }
a.badge:hover { text-decoration: underline; }
.hero .note { color: var(--muted); font-size: 14px; margin: 12px auto 0; max-width: 30em; }

.shots {
  display: flex;
  justify-content: center;
  gap: 20px;
  padding: 24px 0 8px;
}
.shots img {
  width: min(44%, 260px);
  height: auto;
  border-radius: 24px;
  border: 1px solid var(--line);
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px;
  padding: 32px 0;
}
.feature {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
}
.feature h2 { font-size: 1.05rem; margin: 0 0 6px; }
.feature p { margin: 0; color: var(--muted); font-size: 15px; }

/* Text pages (privacy, support) */
.page { padding: 24px 0 40px; }
.page h1 { font-size: 2rem; line-height: 1.2; margin: 8px 0 4px; }
.page .updated { color: var(--muted); margin: 0 0 28px; font-size: 15px; }
.page h2 { font-size: 1.25rem; margin: 36px 0 8px; }
.page h3 { font-size: 1.05rem; margin: 22px 0 4px; }
.page li { margin: 4px 0; }
.summary {
  background: var(--accent-soft);
  border-radius: var(--radius);
  padding: 4px 20px;
}
.page code { font: 0.9em ui-monospace, SFMono-Regular, Menlo, monospace; }
/* Wraps rather than scrolls, so the long User-Agent fits on a phone. */
.page pre {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 18px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.contact {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
}

/* Footer */
footer {
  border-top: 1px solid var(--line);
  margin-top: 24px;
  padding: 20px 0 40px;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}
footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 16px; margin-bottom: 8px; }
footer nav a { padding: 11px 0; }
footer a { color: var(--muted); }
