/* blockbuddy.app — the app's palette: warm cream by day, deep navy by night. */
:root {
  color-scheme: light dark;
  --bg: #fcf2e0;
  --bg-top: #ffe0a8;
  --bg-bottom: #fae0f5;
  --surface: #fffcf5;
  --text: #1a171a;
  --muted: #574d4a;
  --border: rgba(26, 23, 26, 0.1);
  --accent: #ffa32b;
  --on-accent: #171417;
  /* The accent orange is too light for text on cream; links use a deeper one. */
  --link: #9a4a00;
  --shadow: 0 10px 30px rgba(60, 40, 10, 0.07);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a0a1a;
    --bg-top: #0f0f26;
    --bg-bottom: #120d24;
    --surface: #1a1a2e;
    --text: #f2f2f7;
    --muted: #adadc2;
    --border: rgba(242, 242, 247, 0.12);
    --link: #ffb85c;
    --shadow: none;
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  min-height: 100vh;
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background-color: var(--bg);
  background-image: linear-gradient(180deg, var(--bg-top) 0, var(--bg) 380px, var(--bg) 75%, var(--bg-bottom) 100%);
}

a { color: var(--link); text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

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

header.site {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  padding: 20px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -0.01em;
}
.brand img { width: 36px; height: 36px; border-radius: 9px; }

nav.site { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 15px; font-weight: 600; }
nav.site a { color: var(--muted); text-decoration: none; }
nav.site a:hover, nav.site a[aria-current="page"] { color: var(--text); }

main { padding: 8px 0 40px; }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 30px 30px 18px;
  box-shadow: var(--shadow);
  overflow-wrap: anywhere;
}

article h1 { font-size: 32px; line-height: 1.2; letter-spacing: -0.02em; margin: 0 0 14px; }
article h2 { font-size: 22px; line-height: 1.3; margin: 34px 0 10px; }
article h3 { font-size: 18px; margin: 26px 0 8px; }
article ul, article ol { padding-left: 1.3em; }
article li { margin: 5px 0; }
article strong { font-weight: 700; }
article table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 15px; display: block; overflow-x: auto; }
article th, article td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--border); }
article code { font: 0.9em ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--border); padding: 1px 5px; border-radius: 6px; }
article blockquote { margin: 16px 0; padding: 2px 16px; border-left: 3px solid var(--accent); color: var(--muted); }
article hr { border: 0; border-top: 1px solid var(--border); margin: 28px 0; }

footer.site { padding: 8px 0 40px; color: var(--muted); font-size: 14px; }
footer.site nav { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-bottom: 8px; }
footer.site a { color: var(--muted); }

/* Home */
.hero { text-align: center; padding: 36px 0 6px; }
.hero img { width: 112px; height: 112px; border-radius: 26px; box-shadow: 0 12px 30px rgba(0, 0, 0, 0.14); }
.hero h1 { font-size: 44px; line-height: 1.1; letter-spacing: -0.03em; margin: 20px 0 8px; }
.hero .tagline { font-size: 20px; color: var(--muted); margin: 0 0 24px; }

.button {
  display: inline-block;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 700;
  text-decoration: none;
  padding: 14px 24px;
  border-radius: 14px;
}
.button:hover { filter: brightness(1.05); }

.features {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 36px 0 8px;
  padding: 0;
  list-style: none;
}
.features li { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 16px 18px; box-shadow: var(--shadow); }
.features strong { display: block; margin-bottom: 2px; }
.features span { color: var(--muted); font-size: 15px; }

.note { text-align: center; color: var(--muted); font-size: 15px; margin: 20px 0 0; }

@media (max-width: 560px) {
  .features { grid-template-columns: 1fr; }
  .hero h1 { font-size: 36px; }
  .card { padding: 22px 18px 12px; border-radius: 18px; }
  article h1 { font-size: 27px; }
}
