@font-face {
    font-family: "iA Writer Quattro";
    src: url("assets/iAWriterQuattroV.ttf") format("truetype");
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

body {
    font-family: "iA Writer Quattro", sans-serif;
    margin: 0;
    line-height: 1.6;
    color: #222;
}

.container {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 20px;
}

h1 {
    font-weight: bold;
    text-align: center;
}

.home-sections {
    display: grid;
    max-width: 1000px;
    margin-top: 60px;
    grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
    gap: 40px 32px;
}

.tagline {
    font-family: "iA Writer Quattro", sans-serif;
    max-width: 650px;
    margin: 40px auto;
    padding: 0 20px;
    line-height: 1.6;
    color: #666;
    text-align: center;
}

.button-accent {
    font-family: "iA Writer Quattro", sans-serif;
    display: block;
    padding: 10px 20px;
    font-size: 1rem;
    background-color: #000;
    color: #fff;
    border: none;
    border-radius: 0px;
    cursor: pointer;
    text-decoration: none;
    transition:
        color 0.2s ease,
        background-color 0.2s ease;
}

.button-accent:hover {
    color: #eee;
    background-color: #444;
}

.button-border {
    font-family: "iA Writer Quattro", sans-serif;
    display: block;
    padding: 10px 20px;
    font-size: 1rem;
    background-color: #fff;
    color: #000;
    border: 1px solid #000;
    border-radius: 0px;
    cursor: pointer;
    text-decoration: none;
    transition:
        color 0.2s ease,
        background-color 0.3s ease;
}

.button-border:hover {
    color: #fff;
    background-color: #000;
}

.button-container {
    display: flex;
    justify-content: center;
    gap: 10px !important;
}

.hero {
    background: #fafafa;
    padding-bottom: 1px;
}

.logo {
    display: block;
    margin: 0 auto;
    padding-top: 80px;
    width: 128px;
    height: 128px;
}

.navbar {
    background: #fafafa;
    border-bottom: 1px solid #ddd;
    transition: box-shadow 0.3s ease;
}

.navbar-fixed {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom-color: rgba(0, 0, 0, 0.1);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 720px;
    margin: 0 auto;
    padding: 14px 20px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #222;
    font-weight: bold;
    font-size: 1.05rem;
}

.nav-logo {
    width: 28px;
    height: 28px;
}

.nav-links {
    display: flex;
    gap: 20px;
}

.nav-link {
    text-decoration: none;
    color: #666;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.nav-link:hover {
    color: #222;
}

.nav-link.active {
    color: #000;
}

.version {
    text-align: center;
}

.stats {
    display: flex;
    justify-content: center;
    background: #f0f0f0;
    padding-top: 1rem;
    font-size: 2rem;
}

.stat {
    flex: 1;
    text-align: center;
    padding: 0 1.75rem;
    position: relative;
}

.stat:not(:last-child)::after {
    content: "";
    position: absolute;
    right: 0;
    top: 0;
    bottom: 1rem;
    width: 1px;
    background: #ddd;
}

.stat-desc {
    padding-bottom: 1rem;
    margin-top: 0px;
    font-size: 1rem;
}

/* Releases page */
.releases-hero {
    background: #fafafa;
    padding: 40px 0;
    text-align: center;
}

.releases-hero .tagline a {
    color: #222;
}

.jump-to-wrapper {
    margin-top: 30px;
}

.jump-to {
    font-family: "iA Writer Quattro", sans-serif;
    padding: 8px 16px;
    font-size: 0.95rem;
    border: 1px solid #000;
    background: #fff;
    color: #000;
    cursor: pointer;
    border-radius: 0;
}

#releases-list {
    max-width: 960px;
    padding-top: 40px;
}

.release {
    padding: 40px 0;
    border-bottom: 1px solid #ddd;
}

.release:last-of-type {
    border-bottom: none;
}

/* Two-column layout with sticky sidebar */
.release-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 60px;
}

@media (min-width: 768px) {
    .release-grid {
        grid-template-columns: 260px 1fr;
    }
}

.release-sidebar {
    position: sticky;
    top: 80px;
    align-self: start;
}

.release-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.release-badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 2px 8px;
    background: #000;
    color: #fff;
    width: fit-content;
}

.release-name {
    margin: 0;
    font-size: 1.5rem;
}

.release-name a {
    color: inherit;
    text-decoration: none;
}

.release-name a:hover::after {
    content: " #";
    opacity: 0.33;
    font-weight: 400;
}

.release-name a:hover {
    opacity: 0.75;
}

.release-date {
    font-size: 0.9rem;
    color: #666;
}

/* Download group with asset selector */
.download-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 220px;
}

.download-group .button-accent {
    padding: 6px 20px;
    text-align: center;
}

.asset-select {
    font-family: "iA Writer Quattro", sans-serif;
    padding: 5px 8px;
    font-size: 0.85rem;
    border: 1px solid #000;
    background: #fff;
    color: #000;
    border-radius: 0;
    cursor: pointer;
}

.release-body {
    line-height: 1.7;
    color: #444;
}

.release-body img {
    max-width: 100%;
}

.release-body pre {
    background: #f5f5f5;
    padding: 16px;
    overflow-x: auto;
    border: 1px solid #eee;
}

.release-body code {
    font-size: 0.9em;
    background: #f5f5f5;
    padding: 2px 6px;
}

.release-body pre code {
    background: none;
    padding: 0;
}

.release-body a {
    color: #222;
}

.release-body h1,
.release-body h2,
.release-body h3,
.release-body h4 {
    color: #222;
    margin-top: 1.5em;
    margin-bottom: 0.5em;
}

.release-body ul,
.release-body ol {
    padding-left: 20px;
}

.release-body blockquote {
    border-left: 3px solid #ddd;
    margin-left: 0;
    padding-left: 16px;
    color: #666;
}

.release-body table {
    border-collapse: collapse;
    width: 100%;
}

.release-body th,
.release-body td {
    border: 1px solid #ddd;
    padding: 8px 12px;
    text-align: left;
}

.release-body th {
    background: #f5f5f5;
}

/* Markdown alerts (NOTE, WARNING, TIP, etc.) */
.markdown-alert {
    border-left: 4px solid #ddd;
    padding: 12px 16px;
    margin: 16px 0;
    background: #fafafa;
}

.markdown-alert-title {
    font-weight: bold;
    margin: 0 0 4px 0;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.markdown-alert :first-child {
    margin-top: 0;
}

.markdown-alert :last-child {
    margin-bottom: 0;
}

.markdown-alert-note {
    border-left-color: #0969da;
}

.markdown-alert-note .markdown-alert-title {
    color: #0969da;
}

.markdown-alert-tip {
    border-left-color: #1a7f37;
}

.markdown-alert-tip .markdown-alert-title {
    color: #1a7f37;
}

.markdown-alert-important {
    border-left-color: #8250df;
}

.markdown-alert-important .markdown-alert-title {
    color: #8250df;
}

.markdown-alert-warning {
    border-left-color: #bf8700;
}

.markdown-alert-warning .markdown-alert-title {
    color: #bf8700;
}

.markdown-alert-caution {
    border-left-color: #cf222e;
}

.markdown-alert-caution .markdown-alert-title {
    color: #cf222e;
}

.loading-text {
    text-align: center;
    color: #666;
    padding: 40px 0;
}
