/* GitHub-inspired styles for INTERCAL::64 pages */

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", Helvetica, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: #1f2328;
    background: #fff;
}

/* Header bar */
.site-header {
    background: #f6f8fa;
    border-bottom: 1px solid #d1d9e0;
    padding: 16px 0;
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.site-header h1 {
    font-size: 20px;
    font-weight: 600;
}

.site-header h1 a {
    color: #1f2328;
    text-decoration: none;
}

.site-header nav a {
    color: #656d76;
    text-decoration: none;
    margin-left: 24px;
    font-size: 14px;
}

.site-header nav a:hover {
    color: #0969da;
}

.site-header nav a.active {
    color: #1f2328;
    font-weight: 600;
}

/* Container */
.container {
    max-width: 1012px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Hero section (landing page only) */
.hero {
    text-align: center;
    padding: 48px 0 32px;
    border-bottom: 1px solid #d1d9e0;
    margin-bottom: 32px;
}

.hero h2 {
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 8px;
}

.hero .lead {
    font-size: 18px;
    color: #656d76;
    max-width: 680px;
    margin: 0 auto 24px;
    line-height: 1.6;
}

/* Card grid */
.cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 48px;
}

@media (max-width: 768px) {
    .cards { grid-template-columns: 1fr; }
}

.card {
    border: 1px solid #d1d9e0;
    border-radius: 6px;
    padding: 24px;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.15s ease;
}

.card:hover {
    border-color: #0969da;
}

.card h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #0969da;
}

.card h3 i {
    margin-right: 8px;
    color: #656d76;
}

.card p {
    font-size: 14px;
    color: #656d76;
    line-height: 1.5;
}

.card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 12px;
}

a.btn-code {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 600;
    color: #fff !important;
    background: #1a7f37;
    border: 1px solid rgba(27,31,36,0.15);
    border-radius: 6px;
    text-decoration: none !important;
    transition: background 0.15s ease;
    white-space: nowrap;
}

a.btn-code:hover { background: #197f37; color: #fff !important; }

.card .label {
    display: inline-block;
    margin-top: 0;
    padding: 2px 8px;
    font-size: 12px;
    font-weight: 500;
    border-radius: 12px;
    background: #ddf4ff;
    color: #0969da;
}

/* Page content */
.page-content {
    padding: 32px 0 64px;
}

.page-content h2 {
    font-size: 24px;
    font-weight: 600;
    padding-bottom: 8px;
    border-bottom: 1px solid #d1d9e0;
    margin-bottom: 16px;
    margin-top: 32px;
}

.page-content h2:first-child {
    margin-top: 0;
}

.page-content h3 {
    font-size: 18px;
    font-weight: 600;
    margin-top: 24px;
    margin-bottom: 8px;
}

.page-content p {
    margin-bottom: 16px;
    color: #1f2328;
}

.page-content ul, .page-content ol {
    margin-bottom: 16px;
    padding-left: 2em;
}

.page-content li {
    margin-bottom: 4px;
}

/* Code blocks */
pre {
    background: #f6f8fa;
    border: 1px solid #d1d9e0;
    border-radius: 6px;
    padding: 16px;
    overflow-x: auto;
    margin-bottom: 16px;
    font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
    font-size: 13px;
    line-height: 1.45;
}

code {
    font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
    font-size: 85%;
    background: #eff1f3;
    padding: 2px 6px;
    border-radius: 4px;
}

pre code {
    background: none;
    padding: 0;
    font-size: 100%;
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 16px;
}

th, td {
    text-align: left;
    padding: 8px 16px;
    border: 1px solid #d1d9e0;
    font-size: 14px;
}

th {
    background: #f6f8fa;
    font-weight: 600;
}

/* Screenshot placeholder */
.screenshot {
    border: 1px solid #d1d9e0;
    border-radius: 6px;
    background: #f6f8fa;
    padding: 32px;
    text-align: center;
    color: #656d76;
    font-size: 14px;
    margin-bottom: 16px;
}

.screenshot img {
    max-width: 100%;
    border-radius: 4px;
}

/* Footer */
.site-footer {
    border-top: 1px solid #d1d9e0;
    padding: 24px 0;
    text-align: center;
    color: #656d76;
    font-size: 12px;
}

.site-footer a {
    color: #0969da;
    text-decoration: none;
}

/* Highlight box */
.note {
    background: #ddf4ff;
    border: 1px solid #54aeff;
    border-radius: 6px;
    padding: 16px;
    margin-bottom: 16px;
    font-size: 14px;
}

.note strong {
    color: #0550ae;
}
