@font-face {
  font-family: "Montserrat";
  src: url("/assets/fonts/Montserrat-400.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Montserrat";
  src: url("/assets/fonts/Montserrat-700.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --brand-red: #dd0000;
  --text: #151515;
  --muted: #5d5d5d;
  --bg: #f2f2f2;
  --card: #ffffff;
  --border: #dddddd;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: "Montserrat", Arial, sans-serif;
  color: var(--text);
  line-height: 1.6;
  background:
    radial-gradient(circle at top left, rgba(221, 0, 0, 0.12), transparent 32%),
    var(--bg);
}

main {
  width: min(920px, calc(100% - 32px));
  margin: 24px auto 56px;
  padding: 22px 20px;
  border: 1px solid var(--border);
  background: var(--card);
  border-radius: 14px;
}

h1 {
  margin-top: 0;
  margin-bottom: 8px;
  font-size: clamp(1.6rem, 4.2vw, 2rem);
  line-height: 1.2;
}

h2 {
  margin-top: 26px;
  margin-bottom: 6px;
  font-size: clamp(1.06rem, 2.4vw, 1.2rem);
}

p,
li {
  margin-top: 0;
  margin-bottom: 10px;
}

ul,
ol {
  margin-top: 0;
  margin-bottom: 12px;
  padding-left: 20px;
}

code {
  font-family: Menlo, Monaco, Consolas, "Courier New", monospace;
  background: #f7f7f7;
  border: 1px solid #e1e1e1;
  border-radius: 6px;
  padding: 1px 6px;
  font-size: 0.92em;
}

pre {
  margin: 10px 0 14px;
  padding: 10px 12px;
  border-radius: 8px;
  background: #101010;
  color: #f5f5f5;
  overflow-x: auto;
}

pre code {
  background: transparent;
  border: 0;
  color: inherit;
  padding: 0;
}

a {
  color: var(--brand-red);
}

.back-link {
  display: inline-block;
  margin-bottom: 16px;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
}

.back-link:hover,
.back-link:focus-visible {
  text-decoration: underline;
}

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

.warning {
  margin-top: 14px;
  border-left: 4px solid var(--brand-red);
  background: #fff4f4;
  padding: 10px 12px;
}

@media (max-width: 640px) {
  main {
    width: calc(100% - 16px);
    margin-top: 12px;
    margin-bottom: 24px;
    padding: 16px 14px;
    border-radius: 10px;
  }
}
