/* notepads.life — the same palette and type as the extension itself, so the
 * site looks like the thing it describes. Light and dark follow the system. */

:root {
  --bg: #ffffff;
  --surface: #f6f7f9;
  --surface-2: #eef0f4;
  --border: #e2e5ea;
  --border-strong: #ccd1d9;
  --text: #15171c;
  --text-muted: #4b5563;
  --text-faint: #5d6673;
  --focus: #1d4ed8;
  --ok: #157438;
  --shadow: 0 6px 24px rgba(15, 20, 30, 0.12);
  --radius: 10px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #16181d;
    --surface: #1d2027;
    --surface-2: #252932;
    --border: #2d323b;
    --border-strong: #3d434e;
    --text: #e9ebef;
    --text-muted: #aab2bf;
    --text-faint: #9ca5b3;
    --focus: #7db3fb;
    --ok: #4ade80;
    --shadow: 0 8px 28px rgba(0, 0, 0, 0.5);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 1.0625rem/1.6 system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

a { color: var(--focus); text-underline-offset: 2px; }
a:focus-visible, .btn:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }

img { max-width: 100%; height: auto; display: block; }

.wrap { max-width: 960px; margin: 0 auto; padding: 0 20px; }

/* Header ------------------------------------------------------------------ */

.site-header {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 0;
}
.brand { display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; font-weight: 700; font-size: 1.125rem; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.site-nav a { color: var(--text-muted); text-decoration: none; margin-left: 20px; font-weight: 500; }
.site-nav a:hover { color: var(--text); text-decoration: underline; }

/* Hero -------------------------------------------------------------------- */

.hero {
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center;
  padding: 40px 0 56px;
}
.hero h1 { font-size: clamp(2rem, 5vw, 3.1rem); line-height: 1.08; letter-spacing: -0.02em; margin: 0 0 18px; font-weight: 800; }
.hero .lede { font-size: 1.25rem; color: var(--text-muted); margin: 0 0 26px; max-width: 34ch; }
.hero .shot { justify-self: center; width: min(100%, 360px); }
.shot img {
  border-radius: 18px; border: 1px solid var(--border); box-shadow: var(--shadow);
  background: var(--surface);
}

.btn {
  display: inline-block; padding: 12px 20px; border-radius: 999px; font-weight: 600;
  text-decoration: none; border: 1px solid var(--border-strong); color: var(--text); background: var(--surface);
}
.btn.primary { background: var(--text); color: var(--bg); border-color: var(--text); }
.btn.primary:hover { opacity: 0.92; }
.btn.soon { cursor: default; color: var(--text-muted); }
.cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 0; }
.cta small { color: var(--text-faint); }

/* Features ---------------------------------------------------------------- */

/* Four cards fit one row at the full width, two by two below it, one column on a phone. */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 18px; padding: 0 0 48px; }
.feature { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 20px 18px; }
.feature h2 { font-size: 1.0625rem; margin: 0 0 6px; }
.feature p { margin: 0; color: var(--text-muted); font-size: 0.97rem; }

/* Private by design ------------------------------------------------------- */

.private { border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; margin: 0 0 56px; background: var(--surface); }
.private h2 { margin: 0 0 12px; font-size: 1.5rem; letter-spacing: -0.01em; }
.private ul { margin: 0 0 18px; padding-left: 1.2em; color: var(--text-muted); }
.private li { margin: 6px 0; }
.private p:last-child { margin: 0; }

.second-shot { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 40px; align-items: center; padding: 0 0 64px; }
.second-shot .shot { justify-self: center; width: min(100%, 360px); }
.second-shot h2 { font-size: 1.75rem; letter-spacing: -0.01em; margin: 0 0 12px; }
.second-shot p { color: var(--text-muted); margin: 0 0 10px; }

/* Footer ------------------------------------------------------------------ */

.site-footer { border-top: 1px solid var(--border); padding: 22px 0 40px; color: var(--text-faint); font-size: 0.93rem; display: flex; flex-wrap: wrap; gap: 8px 22px; }
.site-footer a { color: inherit; }

/* Prose pages (the privacy policy) ---------------------------------------- */

.prose { max-width: 70ch; padding: 24px 0 64px; }
.prose h1 { font-size: clamp(1.9rem, 4vw, 2.5rem); line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 6px; }
.prose .updated { color: var(--text-faint); margin: 0 0 32px; }
.prose h2 { font-size: 1.4rem; margin: 40px 0 10px; letter-spacing: -0.01em; }
.prose p, .prose li { color: var(--text); }
.prose ul { padding-left: 1.25em; }
.prose li { margin: 6px 0; }
.prose code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.9em; background: var(--surface-2); padding: 1px 5px; border-radius: 5px; }
.prose .callout { background: var(--surface); border: 1px solid var(--border); border-left: 4px solid var(--ok); border-radius: var(--radius); padding: 16px 18px; margin: 0 0 8px; }
.prose .callout p { margin: 0; }
.prose .callout p + p { margin-top: 10px; }
.table-wrap { overflow-x: auto; }
.prose table { border-collapse: collapse; width: 100%; font-size: 0.97rem; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 10px 12px; border: 1px solid var(--border); }
.prose th { background: var(--surface); white-space: nowrap; }
.prose td code { white-space: nowrap; }

/* Narrow screens ---------------------------------------------------------- */

@media (max-width: 760px) {
  .hero, .second-shot { grid-template-columns: 1fr; gap: 28px; padding-top: 24px; }
  .hero .shot, .second-shot .shot { width: min(100%, 320px); }
  .second-shot .shot { order: 2; }
  .site-nav a { margin-left: 14px; }
}
