/* aes.decrypt.fail — bare-bones personal site */

:root {
  --bg:      #fdfdfc;
  --fg:      #24292f;
  --muted:   #6b7280;
  --rule:    #e2e2df;
  --link:    #1a5fb4;
  --accent:  #2e7d4f;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
          "Liberation Mono", monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
          "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg:     #16181a;
    --fg:     #d6d9dc;
    --muted:  #8b9196;
    --rule:   #2c3033;
    --link:   #7cb0f0;
    --accent: #7ec699;
  }
}

* { box-sizing: border-box; }

body {
  max-width: 42rem;
  margin: 0 auto;
  padding: 3rem 1.25rem 4rem;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-text-size-adjust: 100%;
}

/* --- header / whoami logo --- */

.whoami {
  font-family: var(--mono);
  font-size: 1.375rem;
  line-height: 1.45;
  margin: 0 0 1.25rem;
  white-space: pre;
}

.prompt {
  color: var(--accent);
  user-select: none;
}

.me {
  font-weight: 700;
  letter-spacing: 0.01em;
}

.cursor {
  display: inline-block;
  width: 0.6ch;
  height: 1.1em;
  margin-left: 0.15ch;
  vertical-align: text-bottom;
  background: var(--accent);
  animation: blink 1.15s step-end infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .cursor { animation: none; }
}

/* --- nav --- */

nav {
  font-family: var(--mono);
  font-size: 0.9375rem;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid var(--rule);
}

nav .sep {
  color: var(--muted);
  padding: 0 0.15rem;
  user-select: none;
}

/* --- links --- */

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

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

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

/* --- sections --- */

section {
  margin-top: 2.5rem;
}

h2 {
  font-family: var(--mono);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: lowercase;
  color: var(--muted);
  margin: 0 0 1rem;
}

h2::before {
  content: "## ";
  color: var(--accent);
}

h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  margin: 0;
}

p {
  margin: 0 0 1rem;
}

section p:last-child {
  margin-bottom: 0;
}

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

.entries > li + li {
  margin-top: 1.75rem;
}

.meta {
  font-family: var(--mono);
  font-size: 0.875rem;
  color: var(--muted);
  margin: 0.15rem 0 0.5rem;
}

.entries p:not(.meta) {
  margin: 0.25rem 0 0;
}

/* --- footer --- */

footer {
  margin-top: 3.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
  font-family: var(--mono);
  font-size: 0.9375rem;
  color: var(--muted);
}

footer p { margin: 0; }
