/* The start page every dryport app begins with (his choice of 2026-10-31, option C "Split hero"):
   the app's name and stack on a hero half, the working half beside it; dryport's Orbit colours,
   dark and light following the system. One file, no web fonts, no inline styles, so the app's
   strict CSP (style-src 'self') holds. Replace it with the app's own design when the app grows. */
:root {
  color-scheme: light dark;
  --bg: #f3f6fb;
  --surface: #ffffff;
  --surface-2: #f6f8fc;
  --ink: #34425c;
  --strong: #142033;
  --muted: #5c6a82;
  --line: rgba(52, 66, 92, 0.14);
  --primary: #067484;
  --on-primary: #ffffff;
  --secondary: #7048e8;
  --info: #2457c5;
  --ok: #0e774d;
  --error: #c22839;
  --hero-from: #e4f4f6;
  --hero-to: #f3f6fb;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #060a13;
    --surface: #0d1524;
    --surface-2: #121c2e;
    --ink: #b4c0d6;
    --strong: #eaf1fb;
    --muted: #8d9ab0;
    --line: rgba(129, 147, 181, 0.22);
    --primary: #36e0ee;
    --on-primary: #03121a;
    --secondary: #a68bfa;
    --info: #6aa7ff;
    --ok: #3ddc97;
    --error: #ff7a85;
    --hero-from: #0b1630;
    --hero-to: #060a13;
  }
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  background: var(--bg);
  color: var(--ink);
  font: 15px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

a {
  color: var(--primary);
}

code,
.dp-mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.92em;
}

.dp-page {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  min-height: 100vh;
}

.dp-page.dp-solo {
  grid-template-columns: minmax(0, 1fr);
}

.dp-hero {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 56px 48px;
  background: linear-gradient(160deg, var(--hero-from) 0%, var(--hero-to) 70%);
}

/* Faint orbit rings in the corner. */
.dp-hero::after {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  right: -190px;
  bottom: -190px;
  border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--primary) 40%, transparent);
  box-shadow:
    0 0 0 48px color-mix(in srgb, var(--secondary) 8%, transparent),
    0 0 0 110px color-mix(in srgb, var(--primary) 5%, transparent);
  pointer-events: none;
}

.dp-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.dp-brand svg {
  width: 20px;
  height: 20px;
  flex: none;
}

.dp-brand path {
  fill: none;
  stroke: var(--primary);
  stroke-width: 1.6;
}

.dp-hero h1 {
  margin: 8px 0 0;
  font-size: clamp(30px, 5vw, 44px);
  line-height: 1.1;
  color: var(--strong);
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
}

.dp-lead {
  margin: 0;
  max-width: 36rem;
  color: var(--muted);
}

.dp-stack {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 6px 0 0;
  padding: 0;
  list-style: none;
  font-size: 14px;
}

.dp-stack li {
  display: flex;
  align-items: center;
  gap: 10px;
}

.dp-stack li::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 2px;
  flex: none;
  background: var(--primary);
}

.dp-stack .dp-back::before {
  background: var(--secondary);
}

.dp-stack .dp-db::before {
  background: var(--info);
}

.dp-up {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 18px;
  font-size: 13px;
  color: var(--ok);
}

.dp-up::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--ok) 18%, transparent);
}

.dp-side {
  padding: 56px 44px;
  background: var(--surface);
  border-left: 1px solid var(--line);
}

.dp-side h2 {
  margin: 0 0 14px;
  font-size: 16px;
  color: var(--strong);
}

.dp-side p {
  margin: 0 0 12px;
}

.dp-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 10px;
}

.dp-form label {
  font-size: 13px;
  color: var(--muted);
}

.dp-form input,
.dp-form textarea {
  font: inherit;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--strong);
}

.dp-button,
.dp-form button {
  align-self: flex-start;
  font: inherit;
  font-weight: 600;
  padding: 8px 18px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  color: var(--on-primary);
  cursor: pointer;
}

.dp-button:disabled,
.dp-form button:disabled {
  opacity: 0.5;
  cursor: default;
}

.dp-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.dp-list li {
  padding: 10px 0;
  border-bottom: 1px dashed var(--line);
  overflow-wrap: anywhere;
}

.dp-muted {
  color: var(--muted);
}

.dp-error {
  color: var(--error);
}

/* The API-only apps' endpoints. */
.dp-endpoints {
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
  max-width: 30rem;
  font-size: 14px;
}

.dp-endpoints li {
  display: flex;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}

.dp-endpoints .dp-method {
  width: 3.2em;
  font-weight: 700;
  color: var(--primary);
}

.dp-foot {
  font-size: 13px;
  color: var(--muted);
}

@media (max-width: 760px) {
  .dp-page {
    grid-template-columns: minmax(0, 1fr);
  }

  .dp-hero,
  .dp-side {
    padding: 36px 22px;
  }

  .dp-side {
    border-left: 0;
    border-top: 1px solid var(--line);
  }
}
