/* RIGOS SITE
   Plain HTML and CSS. No framework. No build step. */

:root {
  --bg: #111214;
  --fg: #eceae0;
  --muted: #aaa89f;
  --link: #77a7ff;
  --rule: #34363a;
  --panel: #17181a;
  --measure: 780px;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  color: var(--fg);
  font-family: Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 16px;
  line-height: 1.58;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
}

::selection {
  background: var(--fg);
  color: var(--bg);
}

a {
  color: var(--link);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover,
a:focus-visible {
  color: var(--fg);
}

a:focus-visible {
  outline: 1px solid var(--fg);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
  z-index: 10;
  padding: 0.4rem 0.65rem;
  background: var(--fg);
  color: var(--bg);
}

.shell {
  width: min(calc(100% - 2rem), var(--measure));
  margin: 0 auto;
}

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

.brand {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.62rem;
  color: var(--fg);
  font-size: 1.55rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.055em;
  text-decoration: none;
}

.brand::before {
  content: "";
  display: block;
  width: 2rem;
  height: 2rem;
  flex: 0 0 2rem;
  background: url("assets/rigos-mark.svg") center / contain no-repeat;
}

.brand::after {
  content: "";
  display: block;
  width: 0.38rem;
  height: 0.38rem;
  margin-left: 0.05rem;
  background: var(--link);
  box-shadow: 0 0 0 1px var(--bg), 0 0 0 2px var(--rule);
}

.brand:hover,
.brand:focus-visible {
  color: var(--fg);
  text-decoration: none;
}

.brand:hover::before,
.brand:focus-visible::before {
  transform: translate(-1px, -1px);
}

.brand:hover::after,
.brand:focus-visible::after {
  background: var(--fg);
  box-shadow: 0 0 0 1px var(--bg), 0 0 0 2px var(--link), 5px 0 0 var(--link);
}

.brand:active::before {
  transform: translate(1px, 1px);
}

.subtitle {
  margin: 0.45rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 1rem;
  margin-top: 1rem;
}

.nav a {
  color: var(--muted);
  font-size: 0.88rem;
  text-decoration: none;
}

.nav a:hover,
.nav a:focus-visible,
.nav a[aria-current="page"] {
  color: var(--fg);
  text-decoration: underline;
}

main {
  padding: 2.2rem 0 4rem;
}

h1,
h2,
h3 {
  font-family: inherit;
  line-height: 1.25;
}

h1 {
  margin: 0 0 1rem;
  font-size: clamp(1.8rem, 5vw, 2.5rem);
  font-weight: 700;
}

h2 {
  margin: 2.8rem 0 1rem;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid var(--rule);
  font-size: 1.25rem;
}

h3 {
  margin: 1.5rem 0 0.4rem;
  font-size: 1rem;
}

p,
li,
dd {
  max-width: 72ch;
}

.lead {
  margin: 0;
  color: var(--fg);
  font-size: 1.04rem;
}

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

.status {
  display: grid;
  grid-template-columns: 11rem 1fr;
  gap: 0;
  margin: 2rem 0 0;
  border-top: 1px solid var(--rule);
}

.status dt,
.status dd {
  margin: 0;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--rule);
}

.status dt {
  color: var(--muted);
}

.status dd {
  overflow-wrap: anywhere;
}

section {
  margin: 0;
}

ul,
ol {
  padding-left: 1.35rem;
}

li + li {
  margin-top: 0.4rem;
}

pre,
.codeblock {
  overflow-x: auto;
  margin: 1rem 0;
  padding: 0.85rem 1rem;
  border-left: 3px solid var(--rule);
  background: var(--panel);
  color: var(--fg);
  font: inherit;
  font-size: 0.88rem;
  line-height: 1.5;
  white-space: pre;
}

code {
  font-family: inherit;
}

.callout {
  margin: 1.2rem 0;
  padding: 0.75rem 1rem;
  border-left: 3px solid var(--fg);
  background: var(--panel);
}

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

.archive-index li {
  max-width: none;
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--rule);
}

.archive-index li:first-child {
  border-top: 1px solid var(--rule);
}

.archive-index p {
  margin: 0.25rem 0 0;
  color: var(--muted);
}

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

.timeline li {
  max-width: none;
  padding: 1rem 0;
  border-bottom: 1px solid var(--rule);
}

.timeline li:first-child {
  border-top: 1px solid var(--rule);
}

.timeline .stamp {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--muted);
  font-size: 0.85rem;
}

.timeline h3,
.timeline p {
  margin-top: 0;
}

.timeline p {
  margin-bottom: 0;
}

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

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

th {
  color: var(--muted);
  font-weight: 400;
}

thead th {
  color: var(--fg);
  font-weight: 700;
}

.truth-yes,
.truth-no {
  color: var(--fg);
  font-weight: 700;
}

.doclinks {
  padding-left: 1.2rem;
}

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

.site-footer p {
  margin: 0.25rem 0;
}

@media (max-width: 560px) {
  .shell {
    width: min(calc(100% - 1rem), var(--measure));
  }

  .brand {
    font-size: 1.4rem;
  }

  .brand::before {
    width: 1.8rem;
    height: 1.8rem;
    flex-basis: 1.8rem;
  }

  .status {
    grid-template-columns: 1fr;
  }

  .status dt {
    padding-bottom: 0;
    border-bottom: 0;
  }

  .status dd {
    padding-top: 0.1rem;
  }

  table {
    display: block;
    overflow-x: auto;
  }
}

@media print {
  :root {
    --bg: #ffffff;
    --fg: #000000;
    --muted: #333333;
    --link: #000000;
    --rule: #777777;
    --panel: #ffffff;
  }

  .nav,
  .skip-link {
    display: none;
  }

  .brand::before {
    filter: invert(1) grayscale(1);
  }

  .brand::after {
    display: none;
  }

  a {
    color: #000000;
    text-decoration: underline;
  }
}
