/* Ted Lango — tedlango.com
   Typography-forward. No frameworks. No tracking. Permanent. */

:root {
    --bg: #0a0a0a;
    --bg-secondary: #111111;
    --text: #e5e5e5;
    --text-muted: #888888;
    --accent: #3b82f6;
    --accent-hover: #60a5fa;
    --border: #222222;
    --success: #22c55e;
}

@media (prefers-color-scheme: light) {
    :root {
        --bg: #fafafa;
        --bg-secondary: #f0f0f0;
        --text: #1a1a1a;
        --text-muted: #666666;
        --accent: #2563eb;
        --accent-hover: #1d4ed8;
        --border: #e0e0e0;
        --success: #16a34a;
    }
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    font-size: 16px;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--accent-hover);
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    z-index: 100;
}

@media (prefers-color-scheme: light) {
    nav {
        background: rgba(250, 250, 250, 0.9);
    }
}

.nav-brand {
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    color: var(--text);
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text);
}

/* Main Content */
main {
    max-width: 800px;
    margin: 0 auto;
    padding: 6rem 2rem 4rem;
}

/* Hero */
.hero {
    text-align: center;
    padding: 4rem 0;
    border-bottom: 1px solid var(--border);
    margin-bottom: 3rem;
}

.hero h1 {
    font-size: 2.5rem;
    font-weight: 300;
    letter-spacing: 0.2em;
    margin-bottom: 0.5rem;
}

.subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}

.tagline {
    font-style: italic;
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.status {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--bg-secondary);
    border-radius: 2rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.status-dot {
    width: 8px;
    height: 8px;
    background: var(--success);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Sections */
.section {
    margin-bottom: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid var(--border);
}

.section:last-child {
    border-bottom: none;
}

.section h2 {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.section p {
    margin-bottom: 1rem;
    color: var(--text);
}

.section p:last-child {
    margin-bottom: 0;
}

.highlight {
    font-size: 1.1rem;
    font-style: italic;
    border-left: 2px solid var(--accent);
    padding-left: 1rem;
    margin: 1.5rem 0;
}

/* Offer Grid */
.offer-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.offer-item h3 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.offer-item p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    text-align: center;
}

.stat {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--accent);
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Book Section */
.book-section {
    background: var(--bg-secondary);
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid var(--border);
}

.book-info h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.book-subtitle {
    font-style: italic;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.book-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.6rem 1.25rem;
    background: var(--accent);
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: background 0.2s;
}

.btn:hover {
    background: var(--accent-hover);
    color: white;
}

.btn-secondary {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text);
}

.btn-secondary:hover {
    background: var(--bg-secondary);
    color: var(--text);
}

/* Connect Grid */
.connect-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.connect-item {
    display: flex;
    flex-direction: column;
    padding: 1rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 6px;
    text-decoration: none;
    transition: border-color 0.2s;
}

.connect-item:hover {
    border-color: var(--accent);
}

.connect-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}

.connect-value {
    font-size: 0.9rem;
    color: var(--text);
}

/* API Section */
.api-section {
    background: var(--bg-secondary);
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid var(--border);
}

.api-status {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.8rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 2rem;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin: 0.5rem 0;
}

.api-endpoint {
    display: block;
    background: var(--bg);
    padding: 0.75rem 1rem;
    border-radius: 4px;
    font-family: 'SF Mono', Monaco, 'Courier New', monospace;
    font-size: 0.85rem;
    color: var(--accent);
    margin: 1rem 0;
    overflow-x: auto;
}

.api-layers {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 1.5rem 0;
}

.api-layer {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.layer-label {
    flex-shrink: 0;
    width: 80px;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: var(--accent);
    padding-top: 0.3rem;
}

.api-methods {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.method {
    padding: 0.25rem 0.75rem;
    background: var(--bg);
    border-radius: 4px;
    font-family: 'SF Mono', Monaco, 'Courier New', monospace;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.method-mcp {
    background: var(--accent);
    color: white;
}

.api-examples {
    margin: 1.5rem 0;
    padding: 1rem;
    background: var(--bg);
    border-radius: 6px;
    border: 1px solid var(--border);
}

.api-examples-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.api-code {
    display: block;
    font-family: 'SF Mono', Monaco, 'Courier New', monospace;
    font-size: 0.75rem;
    color: var(--accent);
    background: transparent;
    padding: 0.5rem 0;
    margin: 0;
    border-bottom: 1px solid var(--border);
    white-space: pre-wrap;
    word-break: break-all;
}

.api-code:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.api-code.api-mcp {
    color: var(--text-muted);
}

/* Pipeline Grid */
.pipeline-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin: 2rem 0;
}

.pipeline-tier {
    padding: 1.5rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 8px;
}

.tier-label {
    display: block;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: var(--accent);
    margin-bottom: 0.25rem;
}

.tier-examples {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.pipeline-tier p {
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

.pipeline-conclusion {
    font-style: italic;
    text-align: center;
    color: var(--text-muted);
}

/* Framework Section */
.framework-section {
    background: var(--bg-secondary);
    padding: 2.5rem;
    border-radius: 8px;
    border: 1px solid var(--border);
}

.framework-intro {
    font-style: italic;
    color: var(--text-muted);
    margin-bottom: 2rem;
    text-align: center;
}

.framework-tier {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border);
}

.framework-tier:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.framework-tier h3 {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 1rem;
}

.framework-items {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.framework-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.item-marker {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-muted);
}

.item-content strong {
    display: block;
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
}

.item-content p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0;
}

.mission-statement {
    font-size: 1.05rem;
    line-height: 1.7;
    border-left: 2px solid var(--accent);
    padding-left: 1rem;
    margin: 0;
}

.framework-items.horizontal {
    flex-direction: row;
    flex-wrap: wrap;
}

.goal-item {
    flex: 1;
    min-width: 200px;
    padding: 1rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 6px;
}

.goal-icon {
    display: block;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.goal-item strong {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.goal-item p {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin: 0;
}

.models-intro {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.models-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.model-card {
    padding: 1rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 6px;
}

.model-card h4 {
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.model-card p {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.5;
}

.metrics-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.metric {
    padding: 0.4rem 0.8rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 4px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Recent Writing (Home Page) */
.recent-item {
    display: flex;
    gap: 1.5rem;
    align-items: baseline;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
}

.recent-item:last-child {
    border-bottom: none;
}

.recent-item time {
    flex-shrink: 0;
    font-size: 0.8rem;
    color: var(--text-muted);
    font-family: 'SF Mono', Monaco, 'Courier New', monospace;
}

.recent-item a {
    font-size: 1rem;
    font-weight: 500;
}

.recent-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0;
}

/* Article (Single Page) */
.article-header {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border);
}

.article-header h1 {
    font-size: 2rem;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 0.75rem;
}

.article-desc {
    font-size: 1.1rem;
    color: var(--text-muted);
    font-style: italic;
    margin-bottom: 1rem;
}

.article-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.article-series {
    color: var(--accent);
    font-weight: 500;
}

.reading-time {
    color: var(--text-muted);
}

.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.tag {
    padding: 0.2rem 0.6rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 3px;
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: lowercase;
}

/* Article Content */
.article-content {
    font-size: 1.05rem;
    line-height: 1.8;
}

.article-content h2 {
    font-size: 1.4rem;
    font-weight: 600;
    margin: 2.5rem 0 1rem;
    color: var(--text);
}

.article-content h3 {
    font-size: 1.15rem;
    font-weight: 600;
    margin: 2rem 0 0.75rem;
    color: var(--text);
}

.article-content p {
    margin-bottom: 1.25rem;
}

.article-content blockquote {
    border-left: 3px solid var(--accent);
    padding-left: 1.25rem;
    margin: 1.5rem 0;
    color: var(--text-muted);
    font-style: italic;
}

.article-content ul,
.article-content ol {
    margin: 1rem 0 1.25rem 1.5rem;
}

.article-content li {
    margin-bottom: 0.5rem;
}

.article-content code {
    font-family: 'SF Mono', Monaco, 'Courier New', monospace;
    font-size: 0.9em;
    background: var(--bg-secondary);
    padding: 0.15rem 0.4rem;
    border-radius: 3px;
}

.article-content pre {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 1.25rem;
    overflow-x: auto;
    margin: 1.5rem 0;
}

.article-content pre code {
    background: none;
    padding: 0;
    font-size: 0.85rem;
    line-height: 1.5;
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    margin: 1.5rem 0;
}

.article-content hr {
    border: none;
    border-top: 1px solid var(--border);
    margin: 2rem 0;
}

/* Article Footer Navigation */
.article-footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.article-nav {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.article-nav:hover {
    color: var(--accent);
}

/* List Pages */
.list-header {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border);
}

.list-header h1 {
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.list-intro {
    color: var(--text);
}

.list-item {
    display: flex;
    gap: 1.5rem;
    align-items: baseline;
    padding: 1.25rem 0;
    border-bottom: 1px solid var(--border);
}

.list-item:last-child {
    border-bottom: none;
}

.list-item time {
    flex-shrink: 0;
    font-size: 0.8rem;
    color: var(--text-muted);
    font-family: 'SF Mono', Monaco, 'Courier New', monospace;
}

.list-item-content h2 {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.list-item-content h2 a {
    color: var(--text);
}

.list-item-content h2 a:hover {
    color: var(--accent);
}

.list-item-content p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0;
}

.list-item-tags {
    display: flex;
    gap: 0.4rem;
    margin-top: 0.5rem;
}

.empty-state {
    color: var(--text-muted);
    font-style: italic;
    padding: 2rem 0;
}

/* Photography Category Cards */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.category-card {
    display: block;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border);
    text-decoration: none;
    transition: border-color 0.2s, transform 0.2s;
}

.category-card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
}

.category-cover {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    display: block;
}

.category-info {
    padding: 1.25rem;
}

.category-info h2 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--text);
}

.category-info p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0 0 0.5rem;
}

.photo-count {
    font-size: 0.75rem;
    color: var(--accent);
}

/* Gallery Page */
.gallery-page .gallery-header {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
}

.gallery-page .gallery-header h1 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.gallery-desc {
    color: var(--text-muted);
    font-style: italic;
    margin-bottom: 0.5rem;
}

.gallery-count {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.gallery-intro {
    margin-bottom: 2rem;
    line-height: 1.7;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.gallery-item {
    cursor: pointer;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid var(--border);
    transition: border-color 0.2s, transform 0.2s;
}

.gallery-item:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
}

.gallery-item img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    display: block;
}

.gallery-item figcaption {
    padding: 0.75rem 1rem;
    background: var(--bg-secondary);
}

.gallery-item figcaption strong {
    display: block;
    font-size: 0.85rem;
    margin-bottom: 0.25rem;
    color: var(--text);
}

.gallery-item figcaption p {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.gallery-link {
    display: inline-block;
    font-size: 0.7rem;
    margin-top: 0.4rem;
    color: var(--accent);
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 1000;
    padding: 2rem;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.lightbox.active {
    display: flex;
}

.lightbox-close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 2rem;
    color: white;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.lightbox-img {
    max-width: 90vw;
    max-height: 70vh;
    object-fit: contain;
    border-radius: 4px;
}

.lightbox-caption {
    margin-top: 1rem;
    text-align: center;
    color: #ccc;
    max-width: 600px;
}

.lightbox-caption strong {
    display: block;
    color: white;
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.lightbox-caption p {
    font-size: 0.85rem;
    line-height: 1.5;
}

.lightbox-caption .gallery-link {
    color: var(--accent);
    font-size: 0.8rem;
}

/* Reference Navigation */
.reference-nav {
    display: flex;
    gap: 0.75rem;
    margin: 1.5rem 0;
}

.reference-nav a {
    padding: 0.4rem 1rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 4px;
    font-size: 0.8rem;
    color: var(--text-muted);
    text-decoration: none;
    transition: border-color 0.2s, color 0.2s;
}

.reference-nav a:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* Telescope Cards */
.telescope-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1rem;
    margin: 1.25rem 0 2.5rem;
}

.telescope-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 6px;
    position: relative;
    overflow: hidden;
}

.telescope-id {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    font-family: 'SF Mono', Monaco, 'Courier New', monospace;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--accent);
    background: var(--bg);
    padding: 0.15rem 0.5rem;
    border-radius: 3px;
    border: 1px solid var(--border);
}

.telescope-card h4 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.15rem;
    padding-right: 3rem;
    color: var(--text);
}

.telescope-type {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-style: italic;
    margin-bottom: 0.75rem;
}

.telescope-specs {
    list-style: none;
    padding: 0;
    margin: 0;
}

.telescope-specs li {
    font-size: 0.8rem;
    color: var(--text-muted);
    padding: 0.2rem 0;
    border-bottom: 1px solid var(--border);
}

.telescope-specs li:last-child {
    border-bottom: none;
}

.telescope-specs strong {
    color: var(--text);
    font-weight: 500;
}

/* Telescope Card Thumbnails */
a.telescope-card {
    display: block;
    text-decoration: none;
    transition: border-color 0.2s, transform 0.2s;
}

a.telescope-card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
}

.telescope-thumb {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    display: block;
    border-bottom: 1px solid var(--border);
}

.telescope-card-info {
    padding: 1.25rem;
    position: relative;
}

.telescope-card-info .telescope-id {
    top: 0.75rem;
    right: 0.75rem;
}

.telescope-card-info h4 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.15rem;
    padding-right: 3rem;
    color: var(--text);
}

/* Telescope Subpage Components */
.telescope-hero {
    margin: 1.5rem 0;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border);
}

.telescope-hero img {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    display: block;
}

.telescope-detail {
    margin: 1.5rem 0;
}

.spec-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 0.5rem;
    margin: 1rem 0 1.5rem;
}

.spec-item {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 0.5rem 0.75rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 4px;
    font-size: 0.8rem;
}

.spec-item strong {
    color: var(--text);
    font-weight: 600;
    margin-right: 0.75rem;
    white-space: nowrap;
}

.spec-item span {
    color: var(--text-muted);
    text-align: right;
}

.telescope-extra-img {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--border);
    margin: 1.5rem 0;
    display: block;
}

/* Messier Catalog Grid */
.messier-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
}

.messier-card {
    display: block;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 6px;
    overflow: hidden;
    text-decoration: none;
    transition: border-color 0.2s, transform 0.2s;
}

.messier-card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
}

.messier-thumb {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    display: block;
}

.messier-card-info {
    padding: 0.75rem;
}

.messier-card-info strong {
    display: block;
    font-size: 0.85rem;
    color: var(--text);
    margin-bottom: 0.15rem;
}

.messier-type {
    display: block;
    font-size: 0.7rem;
    color: var(--text-muted);
    font-style: italic;
    margin-bottom: 0.15rem;
}

.messier-meta {
    display: block;
    font-size: 0.65rem;
    color: var(--text-muted);
}

/* Messier Detail Page */
.messier-hero {
    margin: 1.5rem 0;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border);
    text-align: center;
    background: #000;
}

.messier-hero img {
    max-width: 100%;
    max-height: 600px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

/* Messier Catalog Table */
.catalog-wrapper {
    overflow-x: auto;
    margin: 1.5rem 0;
    border: 1px solid var(--border);
    border-radius: 6px;
}

.catalog-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.8rem;
    white-space: nowrap;
}

.catalog-table thead {
    position: sticky;
    top: 0;
    z-index: 1;
}

.catalog-table th {
    background: var(--bg-secondary);
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.6rem 0.75rem;
    text-align: left;
    border-bottom: 2px solid var(--border);
}

.catalog-table td {
    padding: 0.45rem 0.75rem;
    border-bottom: 1px solid var(--border);
    color: var(--text-muted);
}

.catalog-table td:first-child {
    font-weight: 600;
    color: var(--text);
    font-family: 'SF Mono', Monaco, 'Courier New', monospace;
    font-size: 0.75rem;
}

.catalog-table td:nth-child(3) {
    color: var(--text);
}

.catalog-table tr:last-child td {
    border-bottom: none;
}

.catalog-table tr:hover {
    background: var(--bg-secondary);
}

.catalog-table tr.captured {
    background: rgba(59, 130, 246, 0.06);
}

.catalog-table tr.captured td:first-child {
    color: var(--accent);
}

.catalog-table tr.captured td:nth-child(3) {
    color: var(--accent);
}

/* Footer */
footer {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    text-align: center;
    border-top: 1px solid var(--border);
}

footer p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.footer-note {
    font-size: 0.75rem;
    font-style: italic;
}

/* Mobile */
@media (max-width: 800px) {
    .pipeline-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    nav {
        padding: 1rem;
    }

    .nav-links {
        gap: 1rem;
    }

    .nav-links a {
        font-size: 0.8rem;
    }

    main {
        padding: 5rem 1rem 2rem;
    }

    .hero h1 {
        font-size: 1.75rem;
    }

    .offer-grid,
    .connect-grid,
    .models-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .framework-items.horizontal {
        flex-direction: column;
    }

    .framework-section {
        padding: 1.5rem;
    }

    .api-layer {
        flex-direction: column;
        gap: 0.5rem;
    }

    .article-header h1 {
        font-size: 1.5rem;
    }

    .list-item {
        flex-direction: column;
        gap: 0.25rem;
    }

    .recent-item {
        flex-direction: column;
        gap: 0.25rem;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .category-grid {
        grid-template-columns: 1fr;
    }

    .gallery-page .gallery-header h1 {
        font-size: 1.5rem;
    }

    .lightbox {
        padding: 1rem;
    }

    .lightbox-img {
        max-height: 60vh;
    }

    .telescope-grid {
        grid-template-columns: 1fr;
    }

    .messier-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }

    .spec-grid {
        grid-template-columns: 1fr;
    }

    .telescope-hero img {
        max-height: 300px;
    }

    .catalog-table {
        font-size: 0.7rem;
    }

    .catalog-table th,
    .catalog-table td {
        padding: 0.35rem 0.5rem;
    }

    .reference-nav {
        flex-wrap: wrap;
    }
}
