:root {
  --blue: #1f5fbf;
  --ink: #1b1f24;
  --muted: #5a6270;
  --line: #d9dee6;
  --bg-soft: #f4f6f9;
  --amber-bg: #fff6e5;
  --amber-ink: #5c3d00;
}
* { box-sizing: border-box; }
html { font-size: 18px; }
body { margin: 0; font-family: system-ui, -apple-system, "Segoe UI", sans-serif; color: var(--ink); line-height: 1.55; background: #fff; }
a { color: var(--blue); }
.wrap { max-width: 860px; margin: 0 auto; padding: 0 1.2rem; }
.banner { background: var(--amber-bg); color: var(--amber-ink); font-size: .9rem; padding: .5rem 0; border-bottom: 1px solid #f0d9a8; }
header.site { border-bottom: 1px solid var(--line); }
header.site .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-top: .8rem; padding-bottom: .8rem; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: .5rem; font-weight: 700; font-size: 1.2rem; color: var(--ink); text-decoration: none; }
nav a { margin-left: 1rem; text-decoration: none; font-weight: 500; }
nav a[aria-current="page"] { text-decoration: underline; }
main { padding: 1.5rem 0 3rem; }
h1 { font-size: 2rem; line-height: 1.2; margin: 1rem 0 .6rem; }
h2 { font-size: 1.35rem; margin: 2rem 0 .5rem; }
h3 { font-size: 1.1rem; margin: 1.4rem 0 .3rem; }
.lead { font-size: 1.15rem; color: #333a44; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; margin: 1rem 0; }
.card { border: 1px solid var(--line); border-radius: 12px; padding: 1rem 1.1rem; background: #fff; }
.card h3 { margin-top: 0; }
.note { background: var(--bg-soft); border-radius: 10px; padding: .8rem 1rem; }
.warn { background: var(--amber-bg); color: var(--amber-ink); border-radius: 10px; padding: .8rem 1rem; }
.button { display: inline-block; background: var(--blue); color: #fff; padding: .6rem 1.1rem; border-radius: 8px; text-decoration: none; font-weight: 600; }
table { border-collapse: collapse; width: 100%; margin: .8rem 0; font-size: .95rem; }
th, td { border-bottom: 1px solid var(--line); padding: .5rem .4rem; text-align: left; vertical-align: top; }
code, .mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .85em; word-break: break-all; }
footer { border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem; padding: 1.2rem 0 2rem; }
form.inline { display: inline; }
input[type=text], input[type=password], input[type=search] { font: inherit; padding: .5rem .6rem; border: 1px solid #b9c1cc; border-radius: 8px; min-width: 16rem; }
button { font: inherit; padding: .5rem 1rem; border-radius: 8px; border: 1px solid var(--line); background: #fff; cursor: pointer; }
button.primary { background: var(--blue); color: #fff; border-color: var(--blue); }
button.danger { background: #b3261e; color: #fff; border-color: #b3261e; }
.stats { display: flex; gap: 1rem; flex-wrap: wrap; margin: 1rem 0; }
.stat { border: 1px solid var(--line); border-radius: 10px; padding: .6rem .9rem; min-width: 9rem; }
.stat b { display: block; font-size: 1.4rem; }
.error { color: #7a1a14; background: #fdf0ef; border-radius: 8px; padding: .6rem .8rem; }
.success { color: #14532d; background: #ecfdf3; border-radius: 8px; padding: .6rem .8rem; }

/* Demo websites (*.demo.ourlogins.com) */
.theme-library { --blue: #8a4b1c; }
.theme-clinic { --blue: #0f766e; }
.theme-garden { --blue: #3f6212; }
.theme-recipes { --blue: #b42318; }
.theme-photos { --blue: #4338ca; }
.demo header.site { background: var(--blue); border-bottom: 0; }
.demo .brand, .demo .tagline { color: #fff; }
.demo .tagline { opacity: .9; }
.wrap.narrow { max-width: 30rem; }
form.signin { display: flex; flex-direction: column; gap: .4rem; margin: 1rem 0; }
form.signin label { font-weight: 600; margin-top: .4rem; }
form.signin input { min-width: 0; width: 100%; }
form.signin button { margin-top: .8rem; align-self: flex-start; }
input[type=email] { font: inherit; padding: .5rem .6rem; border: 1px solid #b9c1cc; border-radius: 8px; min-width: 16rem; }
