/* InkCore site. One small stylesheet. System fonts only, no external requests.
   Light and dark follow the visitor's system setting (prefers-color-scheme). */

:root {
  color-scheme: light dark;
  --bg: #fbfaf7;
  --text: #1d1b19;
  --muted: #55504a;
  --link: #1a4d8f;
  --card: #f0ece4;
  --rule: #cfc8bb;
  --accent: #8a3b1f;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #151413;
    --text: #ece8e1;
    --muted: #b3ada3;
    --link: #9cc0f5;
    --card: #201e1c;
    --rule: #3c3935;
    --accent: #e0a07f;
  }
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
}

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

a {
  color: var(--link);
  text-underline-offset: 0.15em;
}

a:hover {
  text-decoration-thickness: 2px;
}

a:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  padding: 0.5rem 0.75rem;
  background: var(--text);
  color: var(--bg);
}

.skip:focus {
  left: 0.5rem;
  top: 0.5rem;
  z-index: 10;
}

header.site {
  border-bottom: 1px solid var(--rule);
  padding: 1rem 0;
}

header.site .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
}

.brand {
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.01em;
  color: var(--text);
  text-decoration: none;
}

nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

nav a[aria-current="page"] {
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
}

main {
  padding: 2rem 0 3rem;
}

h1 {
  font-size: 2rem;
  line-height: 1.2;
  margin: 0 0 0.5rem;
}

h2 {
  font-size: 1.35rem;
  line-height: 1.3;
  margin: 2.25rem 0 0.5rem;
  padding-top: 0.25rem;
}

h3 {
  font-size: 1.1rem;
  margin: 1.5rem 0 0.25rem;
}

p,
ul,
ol {
  margin: 0 0 1rem;
}

li {
  margin-bottom: 0.35rem;
}

.tagline {
  font-size: 1.35rem;
  color: var(--accent);
  margin: 0 0 1.5rem;
}

.lede {
  font-size: 1.15rem;
}

.meta {
  color: var(--muted);
  font-size: 0.95rem;
}

.card {
  background: var(--card);
  border: 1px solid var(--rule);
  border-left: 4px solid var(--accent);
  border-radius: 6px;
  padding: 0.9rem 1.1rem;
  margin: 1.5rem 0;
}

.card p:last-child,
.card ul:last-child {
  margin-bottom: 0;
}

.links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  list-style: none;
  padding: 0;
}

/* Image slots (see README.md). Images scale down on narrow screens. */
img {
  max-width: 100%;
  height: auto;
}

.hero-image {
  display: block;
  margin: 1.5rem 0;
  border-radius: 6px;
}

.app-icon {
  float: right;
  margin: 0 0 1rem 1rem;
  border-radius: 22%;
}

dt {
  font-weight: 700;
  margin-top: 1rem;
}

dd {
  margin: 0.15rem 0 0;
}

table {
  border-collapse: collapse;
  width: 100%;
  margin: 0 0 1rem;
  font-size: 0.98rem;
}

th,
td {
  text-align: left;
  vertical-align: top;
  padding: 0.5rem 0.6rem;
  border-bottom: 1px solid var(--rule);
}

.table-scroll {
  overflow-x: auto;
}

footer.site {
  border-top: 1px solid var(--rule);
  padding: 1.25rem 0 2rem;
  color: var(--muted);
  font-size: 0.95rem;
}

footer.site ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

@media (max-width: 30rem) {
  h1 {
    font-size: 1.65rem;
  }
  .app-icon {
    float: none;
    display: block;
    margin: 0 0 1rem;
  }
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}
