/* RFC-style document formatting */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Courier New", Courier, monospace;
    font-size: 13px;
    line-height: 1.6;
    color: #1a1a1a;
    background: #ffffff;
    max-width: 72ch;
    margin: 0 auto;
    padding: 2em 1em;
}

/* RFC Header Block */
.rfc-header {
    white-space: pre-line;
    margin-bottom: 2em;
    border-bottom: 1px solid #ccc;
    padding-bottom: 1em;
}

.rfc-header .left {
    float: left;
}

.rfc-header .right {
    float: right;
    text-align: right;
}

.rfc-header::after {
    content: "";
    display: table;
    clear: both;
}

.rfc-title {
    text-align: center;
    font-weight: bold;
    font-size: 15px;
    margin: 2em 0 1em 0;
    text-transform: none;
}

.rfc-subtitle {
    text-align: center;
    margin-bottom: 2em;
    font-size: 13px;
}

/* Status line */
.rfc-status {
    text-align: center;
    margin-bottom: 2em;
    font-size: 12px;
    color: #555;
}

/* Headings - RFC style: numbered sections */
h1, h2, h3, h4 {
    font-family: "Courier New", Courier, monospace;
    font-weight: bold;
    margin-top: 2em;
    margin-bottom: 0.5em;
}

h1 {
    font-size: 14px;
    text-transform: none;
}

h2 {
    font-size: 13px;
    text-transform: none;
}

h3 {
    font-size: 13px;
    font-weight: bold;
}

h4 {
    font-size: 13px;
    font-weight: normal;
    font-style: italic;
}

/* Paragraphs */
p {
    margin-bottom: 1em;
    text-indent: 3ch;
}

p.no-indent {
    text-indent: 0;
}

/* Preformatted / code blocks */
pre {
    margin: 1em 0;
    padding: 0.5em 3ch;
    overflow-x: auto;
    font-size: 12px;
    line-height: 1.4;
    background: #f8f8f8;
    border-left: 2px solid #ccc;
}

code {
    font-family: "Courier New", Courier, monospace;
    font-size: 12px;
}

/* Inline code */
p code, li code, td code {
    background: #f0f0f0;
    padding: 0 0.3em;
}

/* Lists */
ul, ol {
    margin: 0.5em 0 1em 6ch;
}

li {
    margin-bottom: 0.3em;
}

/* Definition-style lists */
dl {
    margin: 0.5em 0 1em 3ch;
}

dt {
    font-weight: bold;
    margin-top: 0.5em;
}

dd {
    margin-left: 3ch;
    margin-bottom: 0.5em;
}

/* Tables - RFC style */
table {
    border-collapse: collapse;
    margin: 1em 0 1em 3ch;
    font-size: 12px;
}

th, td {
    text-align: left;
    padding: 0.2em 2ch;
    border-bottom: 1px solid #ddd;
}

th {
    border-bottom: 2px solid #999;
    font-weight: bold;
}

/* Horizontal rules */
hr {
    border: none;
    border-top: 1px solid #ccc;
    margin: 2em 0;
}

/* Navigation */
nav {
    margin-bottom: 2em;
    padding: 1em 0;
    border-bottom: 1px solid #ccc;
}

nav a {
    color: #1a1a1a;
    text-decoration: none;
    margin-right: 2ch;
}

nav a:hover {
    text-decoration: underline;
}

nav a.active {
    font-weight: bold;
    text-decoration: underline;
}

/* Links */
a {
    color: #1a1a1a;
    text-decoration: underline;
}

a:hover {
    color: #555;
}

/* Table of Contents */
.toc {
    margin: 1em 0 2em 3ch;
}

.toc a {
    text-decoration: none;
}

.toc a:hover {
    text-decoration: underline;
}

.toc ul {
    list-style: none;
    margin-left: 0;
}

.toc li {
    margin-bottom: 0.2em;
}

.toc li ul {
    margin-left: 3ch;
}

/* ASCII art / diagrams */
.diagram {
    margin: 1em 0;
    padding: 0.5em 3ch;
    font-size: 12px;
    line-height: 1.2;
    white-space: pre;
}

/* Footer */
footer {
    margin-top: 3em;
    padding-top: 1em;
    border-top: 1px solid #ccc;
    text-align: center;
    font-size: 12px;
    color: #555;
}

/* Page break marker (RFC style) */
.page-break {
    text-align: center;
    margin: 2em 0;
    color: #999;
    font-size: 11px;
}

/* Section numbering helper */
.section-number {
    font-weight: bold;
}

/* Author info block */
.author-info {
    margin: 1em 0 2em 3ch;
    white-space: pre-line;
}

/* Warning/Note boxes */
.note {
    margin: 1em 0 1em 3ch;
    padding: 0.5em 2ch;
    border-left: 3px solid #999;
}

.note::before {
    content: "NOTE: ";
    font-weight: bold;
}

.warning {
    margin: 1em 0 1em 3ch;
    padding: 0.5em 2ch;
    border-left: 3px solid #cc0000;
}

.warning::before {
    content: "WARNING: ";
    font-weight: bold;
    color: #cc0000;
}

/* Feature grid for landing page */
.feature-list {
    margin: 1em 0 1em 3ch;
}

.feature-list dt {
    margin-top: 1em;
}

.feature-list dt::before {
    content: "o  ";
}

/* Video embed */
.video-embed {
    margin: 2em 0;
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
}

.video-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 1px solid #ccc;
}

/* Waitlist form */
.waitlist {
    margin: 2em 0;
    padding: 1em 3ch;
    border: 1px solid #ccc;
    background: #f8f8f8;
}

.waitlist p {
    text-indent: 0;
    margin-bottom: 0.5em;
}

.waitlist .form-row {
    display: flex;
    gap: 1ch;
}

.waitlist input[type="email"] {
    font-family: "Courier New", Courier, monospace;
    font-size: 13px;
    padding: 0.4em 1ch;
    border: 1px solid #999;
    background: #ffffff;
    color: #1a1a1a;
    flex: 1;
}

.waitlist input[type="email"]:focus {
    outline: 1px solid #1a1a1a;
}

.waitlist button {
    font-family: "Courier New", Courier, monospace;
    font-size: 13px;
    padding: 0.4em 2ch;
    border: 1px solid #999;
    background: #1a1a1a;
    color: #ffffff;
    cursor: pointer;
}

.waitlist button:hover {
    background: #555;
}