@import url("https://fonts.googleapis.com/css2?family=Roboto+Condensed:wght@300;400;700&display=swap");

@font-face {
  font-family: "Uberholme";
  src: url("/static/uberv2.ttf") format("truetype");
  font-display: swap;
}

:root {
  color-scheme: dark;
  --ink: #10100d;
  --olive: #292c24;
  --mold: #64705a;
  --ivory: #d9d2b0;
  --rose: #864952;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--ivory);
  font: 20px/1.5 "Roboto Condensed", sans-serif;
}

a {
  color: inherit;
}

a:hover {
  color: var(--rose);
}

h1,
h2,
h3 {
  font-family: "Uberholme", Georgia, serif;
  font-weight: normal;
}

#wrapper {
  min-height: 100vh;
}

main,
footer {
  width: min(1120px, calc(100% - 48px));
  margin: auto;
}

main > h1 {
  margin: 0;
  padding: 25px 0;
  font-size: 1.75rem;
  letter-spacing: 0.08em;
}

.camo-link {
  text-decoration: none;
}

hr {
  margin: 0;
  border: 0;
  border-top: 1px solid var(--olive);
}

article {
  width: min(67ch, 100%);
  margin: 64px auto;
}

article > h1 {
  margin: 0 0 32px;
  font-size: clamp(3rem, 8vw, 6rem);
  line-height: 0.9;
  letter-spacing: -0.04em;
}

article h2,
article h3 {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.65em 1.25em;
  color: var(--ivory);
  background: var(--olive);
  box-shadow:
    inset 0 0 0 1px var(--rose),
    inset 0 0 0 5px var(--ink),
    inset 0 0 0 6px #5d5646;
  clip-path: polygon(12px 0, calc(100% - 12px) 0, 100% 50%, calc(100% - 12px) 100%, 12px 100%, 0 50%);
  text-align: center;
  text-shadow: 2px 2px 0 var(--ink);
}

article h2::before,
article h2::after,
article h3::before,
article h3::after {
  content: "\271D";
  flex: 1;
  color: var(--rose);
  background: linear-gradient(var(--rose), var(--rose)) center / 100% 3px no-repeat;
  font-family: "Arial Unicode MS", "Segoe UI Symbol", sans-serif;
  font-size: 0.8em;
  line-height: 1;
  text-align: center;
  text-shadow: none;
  transform: rotate(180deg);
}

article h2 {
  margin: 3rem 0 1rem;
  font-size: 1.7rem;
  letter-spacing: 0.04em;
}

article h3 {
  margin: 2rem 0 0.75rem;
  font-size: 1.35rem;
}

article a {
  color: var(--rose);
}

article a:hover {
  color: var(--ivory);
}

article strong {
  color: var(--ivory);
}

p {
  line-height: 1.6;
}

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

li {
  margin-bottom: 0.75rem;
}

pre,
code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

pre {
  overflow-x: auto;
  padding: 16px;
  border: 1px solid #3c4035;
  background: var(--olive);
}

code:not(pre code) {
  padding: 0.1em 0.25em;
  background: var(--olive);
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 0 28px;
  border-top: 1px solid var(--olive);
  color: var(--mold);
  font-size: 0.8rem;
}

.manual-hr,
.scanlines {
  display: none;
}

@media (max-width: 700px) {
  main,
  footer {
    width: min(100% - 32px, 520px);
  }

  article {
    margin: 52px auto;
  }

  footer {
    flex-direction: column;
    gap: 0;
  }
}
