/* hostatic.ro — one typeface, one size, one accent. */

@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/plex-mono-400.woff2") format("woff2");
}

@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/plex-mono-500.woff2") format("woff2");
}

:root {
  color-scheme: dark;
  --bg: #1a1916;
  --fg: #c8c3b6;
  --dim: #857f72;
  --accent: #f2b134;
  --on-accent: #1a1916;
  --rule: #33302a;
}

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

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

body {
  margin: 0;
  padding: 4.5rem clamp(2rem, 8vw, 6rem) 5rem;
  background: var(--bg);
  color: var(--fg);
  font: 400 16px/1.75 "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

.page {
  max-width: 44rem;
}

h1,
h2,
h3,
p,
ul {
  margin: 0;
  font-size: 1rem;
  font-weight: 400;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover,
a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 0.25em;
}

::selection {
  background: var(--accent);
  color: var(--on-accent);
}

/* Header */

.site-header {
  margin-bottom: 3.5rem;
}

.site-title {
  color: var(--dim);
}

.site-title strong {
  color: var(--fg);
  font-weight: 500;
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0 2ch;
  padding: 0;
  list-style: none;
}

.site-nav a[aria-current="page"] {
  padding: 0.1em 0.8ch;
  border-radius: 3px;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 500;
}

.site-nav a[aria-current="page"]:hover {
  text-decoration: none;
}

/* Shared pieces */

.dim {
  color: var(--dim);
}

.label {
  color: var(--accent);
  font-weight: 500;
}

main > * + * {
  margin-top: 1.75rem;
}

.status {
  color: var(--dim);
}

.status .dot {
  color: var(--accent);
}

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

.list li {
  padding-left: 2ch;
  text-indent: -2ch;
}

.list li::before {
  content: "- ";
  color: var(--dim);
}

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

/* Experience */

.entry + .entry,
.group + .entry,
.entry + .group,
.group + .group {
  margin-top: 2.75rem;
}

.entry h2,
.entry h3 {
  color: var(--dim);
  font-weight: 500;
}

.entry .role {
  color: var(--accent);
}

.entry .org {
  color: var(--fg);
}

.entry p + p,
.entry p + ul,
.entry ul + p {
  margin-top: 0.6rem;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1ch;
  margin-top: 0.8rem;
  padding: 0;
  list-style: none;
  font-size: 0.75rem;
  line-height: 1.5;
}

.tags li {
  padding: 0.05em 0.8ch;
  border: 1px solid var(--rule);
  border-radius: 3px;
  color: var(--dim);
}

.children {
  margin-top: 2.25rem;
  padding-left: 2ch;
  border-left: 1px solid var(--rule);
}

.children > .entry + .entry {
  margin-top: 2.25rem;
}

/* Links */

.links {
  padding: 0;
  list-style: none;
}

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

.links .key {
  display: inline-block;
  min-width: 9ch;
  color: var(--dim);
}

@media (max-width: 30rem) {
  body {
    padding: 2.75rem 1.75rem 4rem;
    font-size: 15px;
  }

  .children {
    padding-left: 1.5ch;
  }
}
