body.roman {
  margin: 0;
  background: #000 !important;
  color: #fff8ef;
  font-family: "Gideon Roman", "Times New Roman", serif;
  font-synthesis: none;
}
/* Orange frame owns the outer viewport; only the inner .content stays black */
html body.roman.paper-frame {
  background: #ff6550 !important;
  background-image: none !important;
}
body.roman .blob-container,
body.roman #neural-canvas,
body.roman .mouse-glow { display: none !important; }
body.roman .content { position: relative; z-index: 1; background: #000; }

body.roman .nav,
body.roman header.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 88px;
  padding: 0 72px;
  background: #000;
  border-bottom: 1px solid oklch(26.9% 0 0);
  box-shadow: none;
}
body.roman .brand {
  display: flex;
  align-items: center;
  gap: 14px;
  color: #f2eee5;
  text-decoration: none;
  font-size: 24px;
  line-height: 30px;
}
body.roman .brand img { width: 38px; height: 38px; object-fit: contain; }
body.roman nav.nav-links {
  position: static;
  inset: auto;
  width: auto;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  display: flex;
  gap: 38px;
  align-items: center;
}
body.roman .nav-links a {
  color: oklch(87% 0 0);
  text-decoration: none;
  text-transform: none;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 12px;
  font-weight: 400;
  line-height: 18px;
}
body.roman .nav-links a[aria-current="page"] { color: #ff6550; }
body.roman .nav-links .btn,
body.roman .nav-links .btn:hover,
body.roman .nav-links .btn:focus,
body.roman .nav-links .btn:focus-visible,
body.roman a.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 42px;
  padding: 0 18px;
  background: #ff6550;
  color: #000 !important;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 18px;
  border-radius: 0;
  transition: background-color 150ms ease-out;
}
body.roman .nav-links .btn:hover,
body.roman .nav-links .btn:focus-visible,
body.roman a.btn:hover,
body.roman a.btn:focus-visible {
  background-color: #ff7a68;
}
body.roman .menu-btn { display: none; }

body.roman article { max-width: 1440px; margin: 0 auto; padding: 0; }
body.roman .mast {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 28px 72px 24px;
}
body.roman .back {
  color: oklch(87% 0 0);
  font-family: Barlow, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 22px;
  text-decoration: none;
  width: fit-content;
}
body.roman .mast h1 {
  margin: 0;
  max-width: 1180px;
  color: #fff8ef;
  font-size: 62px;
  font-weight: 400;
  line-height: 68px;
  background: none;
  -webkit-text-fill-color: #fff8ef;
}
body.roman .mast h1 span {
  background: none;
  -webkit-text-fill-color: #fff8ef;
  color: #fff8ef;
}
body.roman .mast .lead,
body.roman .mast > p {
  margin: 0;
  max-width: 1050px;
  color: oklch(87% 0 0);
  font-family: Barlow, "Segoe UI", sans-serif;
  font-size: 21px;
  line-height: 30px;
}
body.roman .byline,
body.roman .mast .byline {
  margin: 2px 0 0;
  color: oklch(87% 0 0);
  font-family: Barlow, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 23px;
}
body.roman .byline a { color: inherit; }
body.roman .article-banner {
  height: 258px;
  background: #000 -13px -543px / 1456px 3641px no-repeat;
}
body.roman .article-banner.is-bg-loaded {
  background-image: url("assets/article-banner.png");
}
body.roman .reading {
  display: flex;
  gap: 72px;
  padding: 40px 72px 64px;
  border-top: 1px solid oklch(26.9% 0 0);
}
body.roman .toc {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 24px;
  width: 280px;
  flex: none;
  padding: 0 32px 0 0;
  border: 0;
  border-right: 1px solid oklch(26.9% 0 0);
  border-bottom: 0;
  background: transparent;
  box-shadow: none;
  position: sticky;
  top: 24px;
  left: auto;
  right: auto;
  z-index: auto;
  align-self: flex-start;
}
body.roman .toc > p {
  margin: 0;
  color: oklch(87% 0 0);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 12px;
  line-height: 18px;
}
body.roman .toc ol {
  list-style: none;
  margin: 0;
  padding: 0 0 0 20px;
  border-left: 1px solid oklch(37.1% 0 0);
  display: flex;
  flex-direction: column;
  gap: 20px;
}
body.roman .toc a {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: oklch(87% 0 0);
  text-decoration: none;
  font-family: Barlow, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 22px;
}
body.roman .toc .toc-n {
  width: 24px;
  flex: none;
  color: oklch(70.8% 0 0);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 12px;
  line-height: 20px;
  transition: color 200ms ease-out;
}
body.roman .toc a.is-active .toc-n { color: #ff6550; }
body.roman .toc .toc-t {
  min-width: 0;
  flex: 1 1 auto;
}
@media (prefers-reduced-motion: reduce) {
  body.roman .toc .toc-n,
  body.roman .nav-links .btn,
  body.roman a.btn {
    transition: none;
  }
}
body.roman .article-body { width: min(944px, 100%); display: flex; flex-direction: column; gap: 28px; }
body.roman .article-body h2 {
  margin: 20px 0 4px;
  color: #fff8ef;
  font-size: 34px;
  font-weight: 400;
  line-height: 42px;
}
body.roman .article-body p,
body.roman .article-body li {
  color: oklch(87% 0 0);
  font-family: Barlow, "Segoe UI", sans-serif;
  font-size: 18px;
  line-height: 28px;
}
body.roman .article-body .lead { display: none; }
body.roman .dialog-block,
body.roman .cue-list {
  background: #050505;
  border: 1px solid oklch(26.9% 0 0);
  border-radius: 4px;
  padding: 20px 24px;
}
body.roman .dialog-label,
body.roman .cue-tag,
body.roman .num,
body.roman .speaker {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 12px;
  letter-spacing: 0;
  text-transform: uppercase;
  color: oklch(87% 0 0);
}
body.roman .flavor-grid,
body.roman .frame-grid,
body.roman .related-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
body.roman .flavor-card,
body.roman .frame-card,
body.roman .related-card,
body.roman .faq-item,
body.roman .cue {
  background: transparent;
  border: 0;
  border-top: 1px solid oklch(26.9% 0 0);
  border-radius: 0;
  padding: 20px 0;
  box-shadow: none;
}
body.roman .flavor-card h3,
body.roman .frame-card h3,
body.roman .faq-item h3 {
  color: #fff8ef;
  font-family: Barlow, "Segoe UI", sans-serif;
  font-size: 22px;
  font-weight: 500;
  line-height: 30px;
}
body.roman .reframe { color: #fff8ef; font-family: Barlow, "Segoe UI", sans-serif; }
body.roman .related-card { text-decoration: none; color: #fff8ef; }
body.roman ul { margin: 0; padding-left: 1.2em; }

body.roman .cta-section {
  background: #ff6550;
  padding: 54px 72px;
  margin: 0;
}
body.roman .cta-box {
  max-width: 1296px;
  margin: 0 auto;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas: "title button" "copy button";
  column-gap: 40px;
  row-gap: 10px;
  align-items: center;
  text-align: left;
}
body.roman .cta-box h2 { grid-area: title; }
body.roman .cta-box p { grid-area: copy; }
body.roman .cta-box a { grid-area: button; }
body.roman .cta-box h2 {
  margin: 0 0 10px;
  color: #000;
  font-size: 48px;
  font-weight: 400;
  line-height: 58px;
}
body.roman .cta-box p {
  margin: 0;
  color: #000;
  font-family: Barlow, "Segoe UI", sans-serif;
  font-size: 21px;
  line-height: 30px;
}
body.roman .cta-box .btn-primary,
body.roman .cta-box a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 176px;
  height: 56px;
  flex: none;
  background: #000;
  color: #fff8ef !important;
  border-radius: 0;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 13px;
  font-weight: 400;
  text-decoration: none;
  text-transform: uppercase;
}

body.roman footer {
  max-width: 1440px;
  margin: 0 auto;
  min-height: 250px;
  padding: 30px 72px 28px;
  background: #000;
  border-top: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
body.roman .footer-content { display: contents; }
body.roman footer .logo,
body.roman footer .logo-icon,
body.roman footer .logo-text { display: none; }
body.roman footer::before {
  content: "BRUTUS";
  display: block;
  text-align: center;
  color: #f2eee5;
  font-size: 120px;
  line-height: 126px;
}
body.roman .footer-links { display: flex; gap: 18px; flex-wrap: wrap; }
body.roman .footer-links a,
body.roman .footer-copyright {
  color: #aaa39a;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 9px;
  letter-spacing: 1.1px;
  text-decoration: none;
  text-transform: uppercase;
}
body.roman .mid-cta { display: none !important; }

@media (max-width: 900px) {
  body.roman .nav, body.roman header.nav,
  body.roman .mast, body.roman .reading,
  body.roman .cta-section, body.roman footer { padding-left: 20px; padding-right: 20px; }
  body.roman .reading, body.roman .cta-box, body.roman .flavor-grid,
  body.roman .frame-grid, body.roman .related-grid { display: block; }
  body.roman .toc { width: auto; border-right: 0; position: static; margin-bottom: 28px; }
  body.roman .mast h1 { font-size: 36px; line-height: 42px; }
  body.roman .cta-box a { margin-top: 20px; }
  body.roman footer::before { font-size: 64px; line-height: 72px; }
  body.roman .menu-btn { display: inline-flex; }
  body.roman nav.nav-links { display: none; }
  body.roman nav.nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 88px;
    left: 0;
    right: 0;
    background: #000;
    padding: 8px 20px 16px;
    z-index: 20;
  }
}

@media (max-width: 760px) {
  body.roman .menu-btn { display: none; }
  body.roman .nav,
  body.roman header.nav {
    height: 72px;
    padding: 0 14px;
    gap: 8px;
  }
  body.roman .brand {
    min-width: 0;
    gap: 8px;
    font-size: 15px;
    white-space: nowrap;
  }
  body.roman .brand img { width: 32px; height: 32px; flex: none; }
  body.roman nav.nav-links,
  body.roman nav.nav-links.open {
    display: flex;
    flex-direction: row;
    align-items: center;
    position: static;
    gap: 8px;
    width: auto;
    margin-left: auto;
    padding: 0;
    background: transparent;
    border: 0;
    z-index: auto;
  }
  body.roman .nav-links a:not(.btn) {
    display: inline-flex;
    align-items: center;
    min-height: 48px;
    padding: 0 2px;
    font-size: 12px;
    line-height: 16px;
    border: 0;
    white-space: nowrap;
  }
  body.roman .nav-links .btn,
  body.roman nav.nav-links.open .btn {
    display: inline-flex;
    width: auto;
    height: 48px;
    margin: 0;
    padding: 0 12px;
    text-align: center;
    white-space: nowrap;
  }
  body.roman .nav-links a[href="#features"],
  body.roman .nav-links a[href="/#features"],
  body.roman .nav-links a[href="#pricing"],
  body.roman .nav-links a[href="/#pricing"] {
    display: none;
  }

  body.roman .mast,
  body.roman .reading,
  body.roman .cta-section,
  body.roman footer {
    padding-left: 16px;
    padding-right: 16px;
  }
  body.roman .mast h1 {
    font-size: clamp(28px, 8.2vw, 36px);
    line-height: 1.15;
    overflow-wrap: break-word;
  }
  body.roman .mast .lead,
  body.roman .mast > p,
  body.roman .article-body p,
  body.roman .article-body li {
    font-size: 17px;
    line-height: 1.55;
    overflow-wrap: break-word;
  }
  body.roman .back {
    display: inline-flex;
    align-items: center;
    min-height: 48px;
  }
  body.roman .article-banner {
    width: 100%;
    max-width: 100%;
    height: 200px;
  }
  body.roman .article-body h2 { font-size: 28px; line-height: 1.2; }
  body.roman .toc { margin-bottom: 20px; }
  body.roman .toc a { min-height: 44px; padding: 8px 0; }
  body.roman .cta-box h2 { font-size: 32px; line-height: 1.15; }
  body.roman .cta-box p { font-size: 17px; line-height: 1.45; }
  body.roman .cta-box a,
  body.roman .cta-box .btn-primary {
    width: 100%;
    max-width: none;
    height: 52px;
    margin-top: 16px;
  }
  body.roman footer::before {
    font-size: min(64px, 18vw);
    line-height: 1.05;
  }
  body.roman .footer-links a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 8px 0;
    font-size: 12px;
  }
}

@media (max-width: 340px) {
  body.roman .brand { font-size: 0; gap: 0; }
}
