/* nudge.build — one stylesheet, no build step, no external fonts, no trackers.
   Colours come from the app: accent sRGB 1.000 0.420 0.240 (#ff6b3d) and the
   icon's deep warm ink sRGB 0.090 0.094 0.110 (#17181c). */

:root {
  color-scheme: light dark;

  --ink: #17181c;
  --bg: #fbfaf8;
  --panel: #ffffff;
  --text: #1c1d22;
  --muted: #5c5e66;
  --rule: #e6e2dc;

  --accent: #ff6b3d;        /* decoration only — too light for text on white */
  --link: #c2451b;          /* the same orange, darkened until it reads on paper */
  --link-hover: #93330f;

  --measure: 42rem;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
          Arial, "Noto Sans", sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
          "Liberation Mono", monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #17181c;
    --panel: #1f2127;
    --text: #f2f0ee;
    --muted: #a0a2ab;
    --rule: #30323a;
    --accent: #ff855c;
    --link: #ff855c;
    --link-hover: #ffa383;
  }
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}

/* ---------------------------------------------------------------- layout */

.wrap {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 0 20px;
}

main { padding-bottom: 4rem; }

/* ---------------------------------------------------------------- header */

.site-header {
  border-bottom: 1px solid var(--rule);
  padding: 18px 0;
  margin-bottom: 2.5rem;
}

.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.01em;
  margin-right: auto;
}

.brand:hover { color: var(--text); }

.brand svg { display: block; border-radius: 9px; }

.site-header nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 0.95rem;
}

.site-header nav a { color: var(--muted); text-decoration: none; }
.site-header nav a:hover,
.site-header nav a[aria-current="page"] { color: var(--link); }

/* ---------------------------------------------------------------- text */

h1, h2, h3 {
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin: 2.4rem 0 0.7rem;
  text-wrap: balance;
}

h1 { font-size: 2.05rem; margin-top: 0; }
h2 { font-size: 1.32rem; margin-top: 2.6rem; }
h3 { font-size: 1.06rem; margin-top: 1.9rem; }

p, ul, ol, table, pre, blockquote { margin: 0 0 1.1rem; }

ul, ol { padding-left: 1.3rem; }
li { margin-bottom: 0.4rem; }

a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--link-hover); }

strong { font-weight: 640; }

.lede {
  font-size: 1.16rem;
  color: var(--muted);
  margin-bottom: 1.8rem;
}

.updated {
  font-size: 0.92rem;
  color: var(--muted);
  margin: -0.3rem 0 2rem;
}

.note {
  border-left: 3px solid var(--accent);
  padding: 0.1rem 0 0.1rem 1rem;
  margin: 1.6rem 0;
  color: var(--muted);
}

hr {
  border: 0;
  border-top: 1px solid var(--rule);
  margin: 3rem 0;
}

/* ---------------------------------------------------------------- bits */

code {
  font-family: var(--mono);
  font-size: 0.9em;
  background: var(--panel);
  border: 1px solid var(--rule);
  border-radius: 5px;
  padding: 0.1em 0.35em;
  overflow-wrap: anywhere;
}

pre {
  background: var(--panel);
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: 0.85rem 1rem;
  overflow-x: auto;
}

pre code { background: none; border: 0; padding: 0; font-size: 0.88rem; }

.table-scroll { overflow-x: auto; margin: 0 0 1.4rem; }

table { border-collapse: collapse; width: 100%; font-size: 0.95rem; }

th, td {
  text-align: left;
  vertical-align: top;
  padding: 0.55rem 0.9rem 0.55rem 0;
  border-bottom: 1px solid var(--rule);
}

th { font-weight: 640; }

/* ---------------------------------------------------------------- home */

.hero { margin-bottom: 2.2rem; }
.hero h1 { font-size: 2.45rem; }

.answers {
  list-style: none;
  padding: 0;
  margin: 1.6rem 0 2rem;
}

.answers li {
  padding-left: 1.4rem;
  position: relative;
  margin-bottom: 0.65rem;
}

.answers li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.feature { margin: 2.1rem 0; }
.feature h3 { margin-top: 0; }
.feature p { margin-bottom: 0; }

.cta {
  display: inline-block;
  background: var(--accent);
  color: var(--ink);
  font-weight: 620;
  text-decoration: none;
  padding: 0.6rem 1.15rem;
  border-radius: 9px;
}

.cta:hover { color: var(--ink); filter: brightness(1.06); }

/* ---------------------------------------------------------------- footer */

.site-footer {
  border-top: 1px solid var(--rule);
  padding: 1.8rem 0 3rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 0.9rem;
}

.site-footer p { margin-bottom: 0.4rem; }

@media (max-width: 480px) {
  body { font-size: 16.5px; }
  h1 { font-size: 1.8rem; }
  .hero h1 { font-size: 2.05rem; }
}
