:root {
  color-scheme: light dark;
  /* Darker/burnt in light mode for contrast against a light page; the original pale gold in dark mode. */
  --accent: light-dark(#c2660c, #ffe57f);
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  box-sizing: border-box; /* so the border below sits inside the 100dvh, not 6px past it */
  display: grid;
  /* Top-aligned (not centered) so expanding the services list grows downward
     instead of re-centering and shifting the header. */
  place-items: start center;
  border-top: 3px solid var(--accent);
  border-bottom: 3px solid var(--accent);
  font: 16px/1.6 ui-monospace, "Consolas", "Liberation Mono", monospace;
}

main {
  max-width: 46ch;
  padding: 2rem;
  margin-block-start: clamp(2rem, 12vh, 5rem);
}

/* Fluid, wider column on desktop so the tagline and the curl hint stop wrapping. */
@media (min-width: 50rem) {
  main {
    max-width: min(84ch, 100% - 6rem);
  }
}

@media (max-width: 400px) {
  main {
    padding: 1.5rem;
  }
}

h1 {
  margin: 0 0 0.5rem;
  font-size: 1.4rem;
}

.tagline {
  margin: 0 0 1.25rem;
  text-wrap: balance;
}

.links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5em;
  margin: 0 0 1.5rem;
}

.links a {
  color: inherit;
  text-decoration: none;
  padding: 0.3rem 0.85rem;
  border: 1px solid color-mix(in srgb, currentColor 25%, transparent);
  border-radius: 999px;
}

.links a:hover,
.links a:focus-visible {
  border-color: var(--accent);
}

.homelab {
  margin: 0 0 1.5rem;
}

.homelab > summary {
  cursor: pointer;
  opacity: 0.75;
  list-style: none;
}
.homelab > summary::-webkit-details-marker {
  display: none;
}
.homelab > summary::before {
  content: "▸";
  display: inline-block;
  width: 1.2em;
  opacity: 0.7;
}
.homelab[open] > summary::before {
  content: "▾";
}

.homelab a,
.hint a,
.tagline a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, currentColor 35%, transparent);
  text-underline-offset: 0.15em;
}

.homelab a:hover,
.homelab a:focus-visible,
.hint a:hover,
.hint a:focus-visible,
.tagline a:hover,
.tagline a:focus-visible {
  text-decoration-color: currentColor;
}

.svc {
  margin: 0;
}

.svc dt {
  opacity: 0.45;
  font-size: 0.75em;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0.9rem 0 0.15rem;
}

.svc dd {
  margin: 0;
  padding-left: 1rem;
}

.more {
  margin: 0.9rem 0 0;
  padding-left: 1rem;
  opacity: 0.45;
  font-size: 0.9em;
}

@media (prefers-reduced-motion: no-preference) {
  .links a {
    transition: border-color 120ms ease;
  }
  .homelab a,
  .hint a,
  .tagline a {
    transition: text-decoration-color 120ms ease;
  }
}

.hint {
  opacity: 0.6;
}

code {
  background: color-mix(in srgb, currentColor 12%, transparent);
  padding: 0.1em 0.35em;
  border-radius: 0.35em;
}
