/* Shared styles for project landing + privacy pages.
   Theme tokens (--bg-color, --card-bg, …) come from style.css. */

.landing-wrap {
    max-width: 760px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Breadcrumb / back link */
.crumb {
    padding: 28px 0 0;
    font-size: 0.9rem;
}

.crumb a {
    color: var(--muted-color);
    text-decoration: none;
}

.crumb a:hover,
.crumb a:focus-visible {
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* Header */
.landing-header {
    text-align: center;
    padding: 28px 0 8px;
}

.landing-header .logo {
    width: 80px;
    height: 80px;
    border-radius: 18px;
    margin: 0 auto 18px;
    display: block;
}

.landing-header h1 {
    font-size: 2rem;
    margin-bottom: 12px;
}

.landing-header .tagline {
    font-size: 1.1rem;
    color: var(--muted-color);
    max-width: 540px;
    margin: 0 auto 24px;
    line-height: 1.6;
}

.cws-badge {
    display: inline-block;
}

.cws-badge img {
    height: 60px;
    transition: opacity 0.15s ease;
}

.cws-badge:hover img {
    opacity: 0.85;
}

/* Hero preview image */
.hero-shot {
    margin: 36px auto 0;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    line-height: 0;
}

.hero-shot img {
    width: 100%;
    height: auto;
    display: block;
}

/* Feature grid */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
    margin: 48px 0;
}

.feature {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 22px 24px;
    transition: background 0.3s ease, border-color 0.3s ease;
}

.feature-icon {
    font-size: 26px;
    margin-bottom: 12px;
}

.feature h2 {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.feature p {
    font-size: 0.95rem;
    color: var(--muted-color);
    margin: 0;
    line-height: 1.6;
}

.feature kbd {
    font-family: 'SFMono-Regular', Consolas, monospace;
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 1px 6px;
    font-size: 0.85em;
}

/* Links list */
.links {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 56px;
    transition: background 0.3s ease, border-color 0.3s ease;
}

.links a {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 22px;
    color: var(--text-color);
    text-decoration: none;
    border-bottom: 1px solid var(--border-color);
    transition: background 0.12s ease;
}

.links a:last-child {
    border-bottom: none;
}

.links a:hover,
.links a:focus-visible {
    background: var(--bg-color);
}

.link-icon {
    width: 38px;
    height: 38px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 19px;
    flex-shrink: 0;
    background: var(--bg-color);
    border: 1px solid var(--border-color);
}

.link-icon svg {
    fill: var(--text-color);
}

.link-text strong {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
}

.link-text span {
    font-size: 0.82rem;
    color: var(--muted-color);
}

.link-arrow {
    margin-left: auto;
    color: var(--muted-color);
    font-size: 18px;
}

/* "In development" / status badge under a landing title */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--muted-color);
    border: 1px solid var(--border-color);
    border-radius: 999px;
    padding: 5px 14px;
    margin-bottom: 18px;
    background: var(--card-bg);
}

.status-badge .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #e0a106;
    box-shadow: 0 0 0 3px rgba(224, 161, 6, 0.18);
}

/* Plain, borderless "what it is" grid — text only, no tiles, no emoji */
.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 26px 40px;
    margin: 44px 0 52px;
}

.about-item h3 {
    font-size: 1.05rem;
    font-weight: 600;
    margin: 0 0 6px;
}

.about-item p {
    font-size: 0.95rem;
    color: var(--muted-color);
    margin: 0;
    line-height: 1.65;
}

/* Plain text call-to-action link (e.g. "Read the full devlog →") */
.text-cta {
    margin: 8px 0 56px;
    font-size: 1rem;
}

.text-cta a {
    color: var(--text-color);
    text-decoration: none;
    border-bottom: 1px solid var(--muted-color);
    padding-bottom: 1px;
    transition: opacity 0.15s ease;
}

.text-cta a:hover,
.text-cta a:focus-visible {
    opacity: 0.7;
}

/* Screenshot gallery */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 14px;
    margin: 40px 0 56px;
}

.gallery figure {
    margin: 0;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
    background: var(--card-bg);
}

.gallery img {
    width: 100%;
    height: auto;
    display: block;
    image-rendering: pixelated;
    border-bottom: 1px solid var(--border-color);
}

.gallery figcaption {
    font-size: 0.82rem;
    color: var(--muted-color);
    padding: 9px 14px;
    line-height: 1.5;
}

/* Devlog entry list (used on the hub + the /devlog/ index) */
.devlog-list {
    list-style: none;
    padding: 0;
    margin: 0 0 56px;
}

.devlog-list li {
    border: 1px solid var(--border-color);
    border-radius: 10px;
    margin-bottom: 12px;
    background: var(--card-bg);
    transition: background 0.12s ease, border-color 0.3s ease;
}

.devlog-list a {
    display: block;
    padding: 18px 22px;
    color: var(--text-color);
    text-decoration: none;
}

.devlog-list li:hover,
.devlog-list li:focus-within {
    background: var(--bg-color);
}

.devlog-list .entry-date {
    font-size: 0.78rem;
    color: var(--muted-color);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.devlog-list .entry-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 4px 0 6px;
}

.devlog-list .entry-summary {
    font-size: 0.92rem;
    color: var(--muted-color);
    margin: 0;
    line-height: 1.6;
}

/* Privacy / long-form content */
.prose {
    padding: 8px 0 64px;
}

/* Figures inside long-form devlog articles */
.prose figure {
    margin: 28px 0;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
    background: var(--card-bg);
}

.prose figure img {
    width: 100%;
    height: auto;
    display: block;
    image-rendering: pixelated;
    border-bottom: 1px solid var(--border-color);
}

.prose figcaption {
    font-size: 0.84rem;
    color: var(--muted-color);
    padding: 9px 14px;
    line-height: 1.55;
}

.prose .lead {
    font-size: 1.12rem;
    color: var(--text-color);
    line-height: 1.7;
}

/* Comments (reusable site-wide block; widget injects into #comments) */
#comments {
    margin: 8px 0 56px;
}

.comments-heading {
    font-size: 1.3rem;
    margin-bottom: 14px;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
}

.comments-placeholder {
    color: var(--muted-color);
    font-size: 0.95rem;
    margin: 0;
}

/* The Cusdis comment iframe is sized to its exact content height by comments.js
   (it's a same-origin srcdoc iframe, so we can measure it). Width only here;
   height is set in JS, so there's no inner scrollbar and no extra whitespace. */
#cusdis_thread iframe {
    width: 100%;
}

/* Prev/next navigation between devlog entries */
.entry-nav {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    border-top: 1px solid var(--border-color);
    padding-top: 24px;
    margin-bottom: 64px;
}

.entry-nav a {
    color: var(--muted-color);
    text-decoration: none;
    font-size: 0.9rem;
    max-width: 48%;
}

.entry-nav a:hover {
    text-decoration: underline;
    text-underline-offset: 2px;
}

.entry-nav .next {
    margin-left: auto;
    text-align: right;
}

.prose h1 {
    font-size: 1.9rem;
    margin-bottom: 6px;
}

.prose .meta {
    color: var(--muted-color);
    font-size: 0.9rem;
    margin-bottom: 36px;
}

.prose h2 {
    font-size: 1.15rem;
    margin-top: 34px;
    margin-bottom: 10px;
}

.prose p {
    margin: 0 0 14px;
    line-height: 1.75;
}

.prose ul {
    padding-left: 1.4rem;
    line-height: 1.75;
}

.prose code {
    font-family: 'SFMono-Regular', Consolas, monospace;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 1px 5px;
    font-size: 0.88em;
}

.prose a {
    color: inherit;
    text-underline-offset: 2px;
}
