:root {
  --paper: #f7f3e8;
  --paper-strong: #fffdf6;
  --ink: #1f2825;
  --muted: #5f6b65;
  --accent: #0f766e;
  --accent-dark: #0b4f49;
  --line: #d8cdb8;
  --code-bg: #10201d;
  --code-fg: #effaf7;
}

html {
  min-height: 100%;
  background:
    radial-gradient(circle at 12% 10%, rgba(15, 118, 110, 0.16), transparent 28rem),
    radial-gradient(circle at 88% 0%, rgba(202, 138, 4, 0.16), transparent 24rem),
    linear-gradient(135deg, #f7f3e8 0%, #edf5f1 100%);
  background-attachment: fixed;
  color: var(--ink);
}

body {
  max-width: 820px;
  margin: 0 auto;
  padding: clamp(1.25rem, 4vw, 4rem);
  font-family: "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  font-size: 1.08rem;
  line-height: 1.65;
}

body::before {
  display: block;
  width: 4.5rem;
  height: 0.35rem;
  margin-bottom: 2.5rem;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), #ca8a04);
  content: "";
}

h1,
h2,
h3 {
  color: var(--ink);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

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

h2 {
  margin-top: 2.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  font-size: clamp(1.55rem, 4vw, 2.1rem);
}

p {
  color: var(--muted);
}

a {
  color: var(--accent-dark);
  font-weight: 700;
  text-decoration-color: rgba(15, 118, 110, 0.35);
  text-decoration-thickness: 0.09em;
  text-underline-offset: 0.16em;
}

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

ul {
  padding-left: 1.25rem;
}

li {
  margin: 0.4rem 0;
}

pre {
  margin: 1.35rem 0;
  padding: 1rem 1.1rem;
  overflow-x: auto;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  background: var(--code-bg);
  box-shadow: 0 24px 55px rgba(31, 40, 37, 0.16);
  color: var(--code-fg);
}

code {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.92em;
}

:not(pre) > code {
  padding: 0.1rem 0.35rem;
  border-radius: 0.35rem;
  background: rgba(15, 118, 110, 0.11);
  color: var(--accent-dark);
}

#sites + ul,
#apt-repositories + ul {
  display: grid;
  gap: 0.75rem;
  padding: 0;
  list-style: none;
}

#sites + ul li,
#apt-repositories + ul li {
  padding: 1rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 253, 246, 0.78);
  box-shadow: 0 14px 35px rgba(31, 40, 37, 0.08);
}

@media (max-width: 640px) {
  body {
    padding: 1.1rem;
    font-size: 1rem;
  }

  pre {
    margin-right: -0.3rem;
    margin-left: -0.3rem;
    border-radius: 10px;
  }
}

.language-switch {
  display: flex;
  gap: 0.65rem;
  align-items: center;
  justify-content: flex-end;
  margin-bottom: 2rem;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.language-switch a,
.language-switch span {
  padding: 0.35rem 0.55rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 253, 246, 0.7);
}

.language-switch span {
  color: var(--muted);
}
