@import url('https://fonts.googleapis.com/css2?family=Sora:wght@500;600;700&family=Source+Sans+3:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap');

/*
  tech01 — Aether
  Soft Swiss-modern tech magazine (ui-ux-pro-max + editorial grid)
*/

:root {
    --nl-bg: #f5f7fa;
    --nl-surface: #ffffff;
    --nl-ink: #0f172a;
    --nl-muted: #64748b;
    --nl-line: #e2e8f0;
    --nl-accent: #2563eb;
    --nl-accent-soft: #eff6ff;
    --nl-deep: #0b1220;
    --nl-radius: 10px;
    --nl-radius-lg: 18px;
    --nl-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
    --nl-shadow-sm: 0 6px 18px rgba(15, 23, 42, 0.06);
    --nl-font: 'Source Sans 3', system-ui, sans-serif;
    --nl-display: 'Sora', system-ui, sans-serif;
    --nl-container: 1180px;
    --nl-header-h: 4.5rem;
    --nl-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

[data-bs-theme="dark"] {
    --nl-bg: #0b1220;
    --nl-surface: #121a2b;
    --nl-ink: #e8eef7;
    --nl-muted: #94a3b8;
    --nl-line: #243247;
    --nl-accent: #60a5fa;
    --nl-accent-soft: #172554;
    --nl-deep: #020617;
    --nl-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
    --nl-shadow-sm: 0 6px 18px rgba(0, 0, 0, 0.25);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

body,
.t1-shell {
    margin: 0;
    font-family: var(--nl-font);
    font-size: 1.05rem;
    line-height: 1.65;
    color: var(--nl-ink);
    background:
        radial-gradient(1200px 480px at 10% -10%, rgba(37, 99, 235, 0.08), transparent 55%),
        radial-gradient(900px 420px at 90% 0%, rgba(14, 165, 233, 0.06), transparent 50%),
        var(--nl-bg);
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s var(--nl-ease);
    cursor: pointer;
}

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

img { max-width: 100%; height: auto; display: block; }

.main-wrapper { min-height: 60vh; }

.container {
    max-width: var(--nl-container);
    margin: 0 auto;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
}

h1, h2, h3, h4, h5, h6,
.section-title,
.post-title,
.t1-feature__title,
.t1-side-story__title {
    font-family: var(--nl-display);
    font-weight: 600;
    line-height: 1.2;
    color: var(--nl-ink);
    letter-spacing: -0.03em;
}

.section-title {
    font-size: clamp(1.45rem, 2.4vw, 1.85rem);
    margin: 0;
    padding: 0;
    border: none;
    display: block;
}

.section-title::after { display: none; }

.section-label,
.t1-kicker {
    font-family: var(--nl-font);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--nl-accent);
    margin: 0 0 0.55rem;
}

.t1-kicker--light { color: #93c5fd; }

.t1-brand {
    font-family: var(--nl-display);
    font-weight: 700;
    font-size: clamp(2rem, 5vw, 3.25rem);
    letter-spacing: -0.04em;
    margin: 0 0 0.5rem;
    color: var(--nl-ink);
}

.t1-tagline {
    margin: 0;
    color: var(--nl-muted);
    font-size: 1.05rem;
    max-width: 40ch;
}

.t1-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.28rem 0.65rem;
    border-radius: 999px;
    background: var(--nl-accent-soft);
    color: var(--nl-accent);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}

.t1-meta {
    font-size: 0.82rem;
    color: var(--nl-muted);
}

.btn-theme {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem 1.4rem;
    background: var(--nl-accent);
    color: #fff !important;
    border: none;
    border-radius: 999px;
    font-family: var(--nl-display);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s var(--nl-ease), background 0.2s var(--nl-ease), box-shadow 0.2s var(--nl-ease);
}

.btn-theme:hover {
    background: #1d4ed8;
    color: #fff !important;
    transform: translateY(-1px);
    box-shadow: var(--nl-shadow-sm);
}

.text-color-50 { color: var(--nl-muted) !important; }
.bg-bg { background: transparent; }
.hr { margin: 2.5rem 0 1.5rem; }

.visually-hidden {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0);
    white-space: nowrap; border: 0;
}

.posts-grid-row { display: grid; gap: 1.25rem; }

.two-columns-grid {
    display: grid;
    gap: 1rem;
}

@media (min-width: 576px) {
    .two-columns-grid { grid-template-columns: repeat(2, 1fr); }
}

.slide-post-columns-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
}

@media (max-width: 575px) {
    .slide-post-columns-grid { grid-template-columns: 1fr; }
}

.post-item.v2 .post-wrapper-row {
    display: grid;
    gap: 0;
    background: var(--nl-surface);
    border: 1px solid var(--nl-line);
    border-radius: var(--nl-radius-lg);
    overflow: hidden;
    box-shadow: var(--nl-shadow-sm);
    transition: transform 0.25s var(--nl-ease), box-shadow 0.25s var(--nl-ease);
}

@media (min-width: 768px) {
    .post-item.v2 .post-wrapper-row {
        grid-template-columns: 280px 1fr;
    }
}

.post-item.v2 .post-wrapper-row:hover {
    transform: translateY(-3px);
    box-shadow: var(--nl-shadow);
}

.post-image-wrapper,
.post-image-wrapper-row,
.postImageWrapper {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background: var(--nl-line);
}

.post-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.35s var(--nl-ease), transform 0.5s var(--nl-ease);
}

.post-image.loaded { opacity: 1; }
.post-wrapper-row:hover .post-image.loaded { transform: scale(1.04); }

.image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.55), transparent 55%);
    opacity: 0;
    display: flex;
    align-items: flex-end;
    padding: 1rem;
    transition: opacity 0.25s var(--nl-ease);
}

.post-image-link:hover .image-overlay { opacity: 1; }

.read-more {
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.post-content { padding: 1.25rem; }

.post-item.v2 .post-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 1.5rem 1.65rem;
}

.post-meta {
    font-size: 0.8rem;
    color: var(--nl-muted);
    margin-bottom: 0.45rem;
}

.post-title {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    margin: 0 0 0.55rem;
}

.post-excerpt {
    font-size: 0.95rem;
    color: var(--nl-muted);
    line-height: 1.6;
}

.post-item .post-wrapper {
    background: var(--nl-surface);
    border: 1px solid var(--nl-line);
    border-radius: var(--nl-radius);
    overflow: hidden;
    height: 100%;
    transition: box-shadow 0.2s var(--nl-ease), transform 0.2s var(--nl-ease);
}

.post-item .post-wrapper:hover {
    box-shadow: var(--nl-shadow-sm);
    transform: translateY(-2px);
}

.post-item .post-image-wrapper { aspect-ratio: 4 / 3; }
.post-item .post-content { padding: 0.9rem; }
.post-item .post-title { font-size: 0.95rem; margin: 0; }

.post-card {
    border: 1px solid var(--nl-line);
    border-radius: var(--nl-radius-lg);
    overflow: hidden;
    background: var(--nl-surface);
    box-shadow: var(--nl-shadow-sm);
    transition: box-shadow 0.2s var(--nl-ease);
}

.post-card:hover { box-shadow: var(--nl-shadow); }
.post-card .card-img-top { aspect-ratio: 16/10; object-fit: cover; }
.post-card .card-body { padding: 1rem; }
.post-card .card-title { font-size: 1rem; margin: 0; }

.home-main { padding: 1rem 0 4rem; }

.home-sidebar {
    position: sticky;
    top: calc(var(--nl-header-h) + 1rem);
}

.sidebar-block + .sidebar-block { margin-top: 2.25rem; }

.t1-block { margin-top: 2.75rem; }

.t1-block__head { margin-bottom: 1.25rem; }

.breadcrumb {
    font-size: 0.85rem;
    background: transparent;
    padding: 0;
    margin: 0;
}

.breadcrumb-item + .breadcrumb-item::before { color: var(--nl-muted); }

.overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.4);
    z-index: 1035;
    backdrop-filter: blur(2px);
}

.overlay.active { display: block; }

.archive-page,
.search-page,
.static-page,
.contact-page {
    padding: 2.25rem 0 4rem;
}

.archive-header {
    margin-bottom: 2rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--nl-line);
}

.archive-header h1 {
    font-size: clamp(2rem, 4.5vw, 3rem);
    margin: 0;
}

.contact-page__lead {
    color: var(--nl-muted);
    max-width: 42ch;
    margin: 0.75rem 0 0;
}

.contact-page__card {
    max-width: 640px;
    background: var(--nl-surface);
    border: 1px solid var(--nl-line);
    border-radius: var(--nl-radius-lg);
    padding: 1.75rem;
    box-shadow: var(--nl-shadow-sm);
}

.static-page__content {
    max-width: 720px;
    background: var(--nl-surface);
    border: 1px solid var(--nl-line);
    border-radius: var(--nl-radius-lg);
    padding: 2rem;
}

@keyframes t1-rise {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: translateY(0); }
}

.t1-hero__intro,
.t1-hero__grid {
    animation: t1-rise 0.65s var(--nl-ease) both;
}

.t1-hero__grid { animation-delay: 0.08s; }
