/* dotBlend business site. Business identity: dark teal and slate, neon pastel rainbow logo. */
:root {
  --night: #0a222d;      /* matches the logo's background */
  --teal-dark: #303b3c;
  --slate: #505555;
  --teal: #658e9e;
  --teal-2: #648d9d;
  --accent: #23ca8f;
  --text: #e8f0f1;
  --muted: #a9bec4;
  --card: #1b2c30;
  --line: #2f4449;
  --rainbow: linear-gradient(90deg, #c9b8ff, #a8d8ff, #b8f5c8, #fff3a8, #ffc8b0, #ffb3e6);
}

* { box-sizing: border-box; }

html { background: var(--night); }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, var(--night) 0, var(--teal-dark) 520px, var(--teal-dark) 100%);
  color: var(--text);
  font: 17px/1.6 "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
}

a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: #5fe0b0; }
a:focus-visible, .button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.wrap { width: 100%; max-width: 760px; margin: 0 auto; padding: 0 16px; }

/* header */
.site-head { background: var(--night); border-bottom: 1px solid var(--line); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 10px; padding-bottom: 10px; flex-wrap: wrap; }
.brand img { display: block; height: 56px; width: auto; }
.site-head nav { display: flex; gap: 18px; font-size: 15px; }
.site-head nav a { color: var(--muted); text-decoration: none; }
.site-head nav a:hover, .site-head nav a[aria-current="page"] { color: var(--text); }
.site-head nav a[aria-current="page"] { border-bottom: 2px solid var(--accent); }

/* hero */
.hero { text-align: center; padding: 40px 0 24px; }
.hero > img { width: 100%; max-width: 560px; height: auto; border-radius: 18px; box-shadow: 0 0 40px rgba(101, 142, 158, .18); }
.hero h1 { font-size: clamp(26px, 5vw, 36px); line-height: 1.25; margin: 12px 0 10px; }
.hero p { color: var(--muted); max-width: 560px; margin: 0 auto 26px; }

.button {
  display: inline-block;
  background: var(--accent);
  color: #08241a;
  font-weight: 700;
  padding: 14px 28px;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 0 0 3px rgba(35, 202, 143, .18), 0 6px 24px rgba(35, 202, 143, .25);
}
.button:hover { background: #3ad8a0; color: #08241a; }

/* cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin: 32px 0; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; }
.card h2 { font-size: 18px; margin: 0 0 6px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }

.rainbow-rule { height: 3px; border: 0; background: var(--rainbow); border-radius: 3px; opacity: .8; margin: 8px 0 28px; }

/* long text pages */
main { flex: 1; }
.doc { padding-top: 36px; padding-bottom: 24px; }
.doc h1 { font-size: clamp(26px, 5vw, 34px); line-height: 1.25; margin: 0 0 4px; }
.doc .updated { color: var(--muted); margin: 0 0 8px; font-size: 15px; }
.doc h2 { font-size: 21px; margin: 34px 0 8px; color: #fff; }
.doc h3 { font-size: 17px; margin: 22px 0 6px; color: var(--text); }
.doc p, .doc li { color: #d7e3e6; }
.doc ul { padding-left: 22px; }
.doc li { margin: 4px 0; }
.doc code { background: var(--card); border: 1px solid var(--line); border-radius: 5px; padding: 1px 5px; font-size: 14px; overflow-wrap: anywhere; }
.toc { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px 20px; margin: 20px 0; }
.toc ol { margin: 6px 0 0; padding-left: 22px; }

.table-scroll { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: 15px; margin: 10px 0; }
th, td { text-align: left; vertical-align: top; padding: 8px 10px; border-bottom: 1px solid var(--line); }
th { color: var(--muted); font-weight: 600; }

/* footer */
.site-foot { border-top: 1px solid var(--line); background: var(--night); color: var(--muted); font-size: 14px; margin-top: 40px; }
.site-foot .wrap { padding-top: 18px; padding-bottom: 22px; display: flex; flex-wrap: wrap; gap: 8px 22px; justify-content: space-between; }
.site-foot a { color: var(--muted); }
.site-foot a:hover { color: var(--text); }

/* Biscuit, the mascot: drawn by assets\characters\biscuit\biscuit.py, silent, thinks in cream thought clouds */
@font-face {
  font-family: "Grandstander";
  src: url("fonts/grandstander-semibold.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}
.biscuit { display: flex; align-items: flex-start; justify-content: center; gap: 22px; margin: 28px auto 8px; max-width: 560px; }
.biscuit img { width: 150px; height: auto; flex: none; margin-top: 18px; }
.biscuit .thought {
  margin: 0;
  position: relative;
  background: #fffdf8;
  color: #3e3a36;
  border: 2px solid #3e3a36;
  border-radius: 34px;
  padding: 14px 22px;
  font: 600 17px/1.35 "Grandstander", "Segoe UI", system-ui, sans-serif;
  text-align: center;
  max-width: 300px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, .25);
}
/* the trail of circles from his head to the cloud */
.thought::before, .thought::after {
  content: "";
  position: absolute;
  background: #fffdf8;
  border: 2px solid #3e3a36;
  border-radius: 50%;
}
.thought::before { width: 14px; height: 14px; left: -20px; bottom: 2px; }
.thought::after { width: 8px; height: 8px; left: -32px; bottom: -8px; }
.doc .biscuit { justify-content: flex-start; margin: 8px 0 18px; }
.doc .biscuit img { width: 120px; }
@media (max-width: 480px) {
  .biscuit img { width: 112px; }
  .doc .biscuit img { width: 100px; }
  .biscuit .thought { font-size: 16px; padding: 12px 16px; }
}
