/* Nanohop — shared styles */
:root {
  /* Same palette as the app: soft cool mist background, indigo → plum accents */
  --bg: #ecf1f7;
  --surface: #f9fbfd;
  --ink: #211f1c;
  --muted: #6a6e78;
  --line: #dbe2ec;
  --accent: #4054cc;
  --accent-2: #7840a0;
  --radius: 20px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #121115; --surface: #1c1b21; --ink: #ecebef; --muted: #a3a0aa; --line: #2c2b33;
    --accent: #8e9cff; --accent-2: #c08ae6;
  }
}
:root[data-theme="dark"] {
  --bg: #121115; --surface: #1c1b21; --ink: #ecebef; --muted: #a3a0aa; --line: #2c2b33;
  --accent: #8e9cff; --accent-2: #c08ae6;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, sans-serif;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

/* Side margins grow with the window: 16px on a phone, up to 64px on a wide screen. */
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 clamp(16px, 5vw, 64px); }
.narrow { max-width: 720px; }

/* Header & footer */
header.site { padding: 22px 0; }
header.site .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: -0.01em; color: var(--ink); font-size: 19px; }
.brand:hover { text-decoration: none; }
.brand-mark { width: 26px; height: 26px; border-radius: 8px; background: linear-gradient(135deg, var(--accent), var(--accent-2)); position: relative; }
.brand-mark::after { content: ""; position: absolute; left: 7px; top: 7px; width: 12px; height: 12px; border-radius: 50%; background: var(--bg); }
nav.links { display: flex; gap: 20px; font-size: 15px; flex-wrap: wrap; }
nav.links a { color: var(--muted); }
footer.site { border-top: 1px solid var(--line); margin-top: 72px; padding: 28px 0 40px; color: var(--muted); font-size: 14px; }
footer.site .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
footer.site a { color: var(--muted); margin-right: 16px; }

/* Type */
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 12px; }
h1 { font-size: clamp(36px, 6vw, 60px); }
h2 { font-size: clamp(26px, 3.6vw, 36px); }
h3 { font-size: 19px; }
.serif { font-family: "New York", Georgia, "Times New Roman", serif; }
.lede { font-size: clamp(18px, 2.2vw, 21px); color: var(--muted); max-width: 40em; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.14em; font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 10px; }

/* Cards */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px; }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px; border-radius: 14px; font-weight: 600; font-size: 16px; }
.btn:hover { text-decoration: none; }
.btn-dark { background: var(--ink); color: var(--bg); }
.btn-ghost { border: 1px solid var(--line); color: var(--ink); background: var(--surface); }

/* Legal pages */
.legal h1 { font-size: clamp(30px, 5vw, 42px); }
.legal h2 { font-size: 21px; margin-top: 30px; }
.legal .date { color: var(--muted); font-size: 14px; margin-bottom: 20px; }

/* Email obfuscation: hidden decoy text inside addresses (see assets/email.js) */
.hp { display: none; }
