/* 4Don Software. One stylesheet for every page: no fonts, scripts or images from other hosts. */

:root {
  --bg: #fafaf9;
  --surface: #ffffff;
  --text: #1c1c1e;
  --muted: #5b5b66;
  --line: #e4e4e7;
  --link: #1d5fd1;
  --accent: #1c1c1e;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0c0c0e;
    --surface: #151518;
    --text: #f4f4f6;
    --muted: #a6a6b3;
    --line: #2a2a31;
    --link: #7fb2ff;
    --accent: #f4f4f6;
  }
}

/* Each app's pages set their own accent on <body>, from the app's own colors. */
.app-disciplinator { --accent: #c99700; }
.app-karmaleon { --accent: #2f714b; }
.app-dreamsieve { --accent: #6750b7; }
@media (prefers-color-scheme: dark) {
  .app-disciplinator { --accent: #ffd21f; }
  .app-karmaleon { --accent: #90c49c; }
  .app-dreamsieve { --accent: #b7a5ff; }
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

:focus-visible { outline: 3px solid var(--link); outline-offset: 2px; }

.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus { left: 16px; top: 8px; background: var(--surface); padding: 8px 12px; }

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

/* Header and footer */

.site-header {
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  padding-top: 16px;
  padding-bottom: 16px;
}
.brand {
  color: var(--text);
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;
}
.site-header nav { display: flex; gap: 20px; }
.site-header nav a { color: var(--muted); text-decoration: none; }
.site-header nav a:hover, .site-header nav a[aria-current="page"] { color: var(--text); }

main { padding: 40px 0 64px; }

.site-footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}
.site-footer .wrap { padding-top: 20px; padding-bottom: 32px; }
.site-footer p { margin: 0 0 4px; }
.site-footer a { color: var(--muted); }

/* Text */

h1 { font-size: 2rem; line-height: 1.2; letter-spacing: -0.02em; margin: 0 0 8px; }
h2 { font-size: 1.25rem; line-height: 1.3; margin: 40px 0 8px; }
h3 { font-size: 1.05rem; margin: 24px 0 4px; }
p, ul, ol, table { margin: 0 0 16px; }
ul, ol { padding-left: 1.25rem; }
li { margin-bottom: 6px; }

.lead { font-size: 1.15rem; color: var(--muted); margin-bottom: 32px; }
.meta { color: var(--muted); font-size: 15px; }

table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { text-align: left; vertical-align: top; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); }
th { font-weight: 600; }

address { font-style: normal; }

/* App list on the home page */

.apps { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.app-card {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 4px 20px;
  align-items: start;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px;
  margin: 0;
}
.app-card img { grid-row: span 3; }
.app-card h2 { margin: 0; font-size: 1.2rem; }
.app-card h2 a { color: var(--text); text-decoration: none; }
.app-card h2 a:hover { text-decoration: underline; }
.app-card p { margin: 0; color: var(--muted); }
.app-card .links { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 15px; margin-top: 6px; }

.icon { width: 72px; height: 72px; border-radius: 22.37%; display: block; }
.icon-large { width: 112px; height: 112px; margin-bottom: 20px; }

/* An app's own page */

.app-hero { border-left: 4px solid var(--accent); padding-left: 20px; margin-bottom: 32px; }
.app-hero h1 { margin-bottom: 4px; }
.app-hero p { margin: 0; color: var(--muted); }

.app-links { list-style: none; padding: 0; display: grid; gap: 12px; }
.app-links a {
  display: block;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px 18px;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
}
.app-links a:hover { border-color: var(--accent); }
.app-links span { display: block; font-weight: 400; color: var(--muted); font-size: 15px; }

.crumb { font-size: 15px; margin-bottom: 8px; }
.crumb a { color: var(--muted); }

@media (max-width: 480px) {
  body { font-size: 16px; }
  h1 { font-size: 1.7rem; }
  main { padding-top: 28px; }
  .app-card { grid-template-columns: 56px 1fr; padding: 16px; gap: 4px 14px; }
  .app-card .icon { width: 56px; height: 56px; }
}
