/* rfc.css — tighter "datatracker RFC" look (fixed margins + smaller type) */

:root{
  /* KEY: column width like an RFC page (~80 chars) */
  --col: 86ch;
}

*{ box-sizing: border-box; }
html, body{ height: 100%; }

body{
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
               "Liberation Mono", "DejaVu Sans Mono", "Courier New", monospace;

  /* Smaller + lighter than before */
  font-size: 16px;
  line-height: 1.55;
  font-weight: 400;

  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a{ color: var(--link); text-decoration: none; }
a:hover{ color: var(--link-hover); text-decoration: underline; text-underline-offset: 3px; }
a:focus-visible{ outline: 2px solid var(--link-hover); outline-offset: 3px; border-radius: 6px; }

/* Center the whole doc in an RFC-ish column */
.rfc{
  max-width: var(--col);
  margin: 0 auto;
  padding: 20px 22px 56px;
}

/* Title like the screenshot: bold but not huge, closer to header */
.rfc-title{
  margin: 22px 0 18px;
  text-align: center;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: .2px;
  color: var(--heading-0);
}

/* Section headers with Modus-style accent colors */
h1{
  margin: 22px 0 14px;
  font-size: 22px;
  font-weight: 700;
  color: var(--heading-0);
}

h2{
  margin: 18px 0 10px;
  font-size: 18px;
  font-weight: 700;
  color: var(--heading-1);
}

h3{
  margin: 16px 0 8px;
  font-size: 16px;
  font-weight: 700;
  color: var(--heading-2);
}

h4{
  margin: 14px 0 6px;
  font-size: 16px;
  font-weight: 700;
  color: var(--heading-3);
}

/* Thin divider line, like datatracker */
hr{
  border: 0;
  height: 1px;
  background: var(--rule);
  margin: 14px 0 14px;
}

/* Paragraph rhythm */
p{
  margin: 0 0 12px;
}

/* Optional pre blocks (if you use them) */
pre{
  margin: 12px 0;
  padding: 12px 14px;
  background: var(--code-bg);
  border: 1px solid var(--code-border);
  border-radius: 10px;
  overflow: auto;
  line-height: 1.45;
}

/* Inline code */
code{
  background: var(--code-bg);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--cyan);
}

pre code{
  background: none;
  padding: 0;
  color: var(--text);
}

/* Highlighted/emphasized text using accent colors */
mark, .highlight{
  background: rgba(254, 196, 63, 0.2);
  color: var(--yellow);
  padding: 1px 4px;
  border-radius: 3px;
}

strong{
  color: var(--fg-alt);
  font-weight: 700;
}

em{
  color: var(--magenta);
  font-style: italic;
}

/* Lists */
ul, ol{
  padding-left: 2ch;
  margin: 0 0 12px;
}

li{
  margin-bottom: 4px;
}

/* Post list styling */
.post-list{
  list-style: none;
  padding: 0;
}

.post-list li{
  margin: 8px 0;
}

.post-list a{
  color: var(--text);
}

.post-list a:hover{
  color: var(--link-hover);
}

/* Metadata styling */
.meta{
  color: var(--muted);
  font-size: 14px;
}

/* Blockquotes */
blockquote{
  background: var(--code-bg);
  border-left: 3px solid var(--cyan);
  padding: 10px 14px;
  border-radius: 6px;
  margin: 12px 0;
}

/* Images */
img{
  max-width: 100%;
  border-radius: 6px;
}

/* Cover images in prose - smaller display */
.prose > p:first-child img,
.prose img[alt="Cover"] {
  display: block;
  max-width: 50%;
  margin: 0 auto 20px;
}

/* Article titles centered */
article > h1 {
  text-align: center;
}

/* Top nav for documents */
.top-nav{
  margin-bottom: 20px;
  font-size: 14px;
}

.top-nav a{
  color: var(--muted);
}

.top-nav a:hover{
  color: var(--link-hover);
}

/* Footer */
.site-footer{
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--rule);
  font-size: 14px;
  color: var(--muted);
  text-align: center;
}

/* Mobile: stack header blocks */
@media (max-width: 760px){
  body{ font-size: 15px; }
  .rfc{ padding: 18px 14px 44px; }
  .rfc-title{ font-size: 22px; }
}
