/* Startup Saturday v2: soft editorial magazine */
:root {
    --bg: #fffcf8;
    --surface: #ffffff;
    --tint: #fff3ec;
    --tint-2: #f7f1ea;
    --ink: #1b1a1f;
    --text: #3a3840;
    --muted: #7a7680;
    --rule: #eee7e0;
    --a1: #e4572e;
    --a2: #f3a712;
    --grad: linear-gradient(100deg, var(--a1), var(--a2));
    --chip: #ffffff;
    --chip-ink: #1b1a1f;
    --radius: 22px;
    --radius-sm: 14px;
    --serif: "EB Garamond", serif;
    --sans: "Manrope", "Segoe UI", system-ui, -apple-system, sans-serif;
    color-scheme: light;
}
:root[data-theme="dark"] {
    --bg: #141317;
    --surface: #1d1c21;
    --tint: #221d1c;
    --tint-2: #1a191e;
    --ink: #f5f1ec;
    --text: #d6d1cb;
    --muted: #9a949e;
    --rule: #2e2b32;
    --chip: #26242b;
    --chip-ink: #f5f1ec;
    color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --bg: #141317;
        --surface: #1d1c21;
        --tint: #221d1c;
        --tint-2: #1a191e;
        --ink: #f5f1ec;
        --text: #d6d1cb;
        --muted: #9a949e;
        --rule: #2e2b32;
        --chip: #26242b;
        --chip-ink: #f5f1ec;
        color-scheme: dark;
    }
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--sans);
    font-size: 1rem;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
img {
    display: block;
    max-width: 100%;
    height: auto;
}
a {
    color: inherit;
    text-decoration: none;
}
a:hover {
    color: var(--a1);
}
:focus-visible {
    outline: 2px solid var(--a1);
    outline-offset: 3px;
    border-radius: 6px;
}
h1,
h2,
h3,
h4,
h5 {
    font-family: var(--serif);
    color: var(--ink);
    font-weight: 500;
    letter-spacing: -0.01em;
    line-height: 1.18;
}
.skip {
    position: absolute;
    left: -999px;
    top: 0.5rem;
    background: var(--ink);
    color: var(--bg);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    z-index: 3000;
}
.skip:focus {
    left: 0.5rem;
}
.text-muted-2 {
    color: var(--muted) !important;
}

/* Header */
.site-header {
    background: var(--bg);
    border-bottom: 1px solid var(--rule);
    position: sticky;
    top: 0;
    z-index: 1030;
}
.brand {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 0.15rem;
    padding-top: 1.4rem;
}
.brand-name {
    font-family: var(--serif);
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    line-height: 1;
}
.brand-tag {
    font-size: 0.8rem;
    color: var(--muted);
}
.header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.9rem 0;
}
.socials {
    display: flex;
    gap: 0.45rem;
}
.socials a {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border-radius: 9px;
    background: var(--tint-2);
    color: var(--ink);
    font-size: 0.78rem;
    font-weight: 700;
}
.socials a:hover {
    background: var(--grad);
    color: #fff;
}
.main-nav {
    display: flex;
    gap: 0.2rem;
    flex-wrap: wrap;
    justify-content: center;
}
.main-nav a {
    padding: 0.45rem 0.85rem;
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--ink);
    border-radius: 999px;
}
.main-nav a:hover {
    background: var(--tint);
}
.main-nav a.active {
    background: var(--tint);
    color: var(--a1);
}
.main-nav .new {
    font-size: 0.62rem;
    font-weight: 700;
    color: #fff;
    background: var(--grad);
    padding: 0.08rem 0.4rem;
    border-radius: 999px;
    vertical-align: top;
    margin-left: 0.2rem;
}
.tools {
    display: flex;
    gap: 0.3rem;
}
.icon-btn {
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--ink);
    display: grid;
    place-items: center;
}
.icon-btn:hover {
    background: var(--tint);
}
.icon-btn svg {
    width: 19px;
    height: 19px;
}
.mobile-toggle {
    display: none;
}
@media (max-width: 991px) {
    .socials {
        display: none;
    }
    .mobile-toggle {
        display: grid;
    }
    .main-nav {
        display: none;
        position: absolute;
        left: 0;
        right: 0;
        top: 100%;
        background: var(--bg);
        flex-direction: column;
        align-items: stretch;
        padding: 1rem;
        border-bottom: 1px solid var(--rule);
    }
    .main-nav.open {
        display: flex;
    }
    .main-nav a {
        padding: 0.75rem 1rem;
    }
}
.search-panel {
    display: none;
    padding: 0 0 1rem;
}
.search-panel.open {
    display: block;
}
.search-panel input {
    width: 100%;
    border: 1px solid var(--rule);
    background: var(--surface);
    color: var(--ink);
    border-radius: 999px;
    padding: 0.75rem 1.2rem;
}

/* Buttons + chips */
.btn-grad {
    background: var(--grad);
    color: #fff;
    border: 0;
    border-radius: 999px;
    font-weight: 700;
    padding: 0.75rem 1.5rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}
.btn-grad:hover {
    color: #fff;
    filter: brightness(1.05);
    box-shadow: 0 10px 24px -12px var(--a1);
}
.btn-grad.sm {
    padding: 0.5rem 1.05rem;
    font-size: 0.88rem;
}
.btn-soft {
    background: var(--tint-2);
    color: var(--ink);
    border: 0;
    border-radius: 999px;
    font-weight: 600;
    padding: 0.7rem 1.3rem;
}
.btn-soft:hover {
    background: var(--tint);
}
.chip {
    display: inline-block;
    font-size: 0.76rem;
    font-weight: 700;
    padding: 0.3rem 0.75rem;
    border-radius: 999px;
    background: var(--chip);
    color: var(--chip-ink);
    box-shadow: 0 2px 8px -4px rgba(0, 0, 0, 0.25);
}
.chip.grad {
    background: var(--grad);
    color: #fff;
    box-shadow: none;
}
.meta {
    font-size: 0.8rem;
    color: var(--muted);
}
.meta .sep {
    margin: 0 0.4rem;
}

/* Hero */
.hero {
    padding: 2rem 0 0;
}
.hero-card {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    height: 100%;
    min-height: 520px;
    display: block;
}
.hero-card > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}
.hero-card:hover > img {
    transform: scale(1.03);
}
.hero-panel {
    position: absolute;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    background: color-mix(in srgb, var(--surface) 92%, transparent);
    backdrop-filter: blur(8px);
    border-radius: var(--radius-sm);
    padding: 1.3rem 1.4rem;
}
.hero-card.wide .hero-panel {
    right: auto;
    max-width: 560px;
}
.hero-panel h2 {
    font-size: clamp(1.35rem, 2.4vw, 2rem);
    margin: 0.6rem 0 0.5rem;
}
.hero-panel p {
    margin: 0;
    font-size: 0.95rem;
}
.hero-card:hover h2 {
    color: var(--a1);
}

/* Trending strip */
.trending {
    background: var(--tint);
    margin-top: 1.5rem;
    padding: 0.7rem 0;
    font-size: 0.88rem;
}
.trending .inner {
    display: flex;
    gap: 1.2rem;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
}
.trending strong {
    font-family: var(--serif);
    color: var(--ink);
    font-size: 0.95rem;
}
.trending a:hover {
    color: var(--a1);
}

/* Category tiles */
.cat-tiles {
    padding: 2.2rem 0 0;
}
.cat-tile {
    position: relative;
    display: block;
    border-radius: var(--radius-sm);
    overflow: hidden;
    aspect-ratio: 1/1;
}
.cat-tile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s;
}
.cat-tile:hover img {
    transform: scale(1.06);
}
.cat-tile span {
    position: absolute;
    left: 50%;
    bottom: 0.7rem;
    transform: translateX(-50%);
    white-space: nowrap;
    background: var(--chip);
    color: var(--chip-ink);
    font-family: var(--serif);
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.25rem 0.7rem;
    border-radius: 8px;
}

/* Sections */
.sec {
    padding: 4.5rem 0;
}
.sec-title {
    font-size: clamp(2.1rem, 4.5vw, 3.4rem);
    text-align: center;
    margin-bottom: 2.5rem;
}
.sec-head {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 1rem;
    border-bottom: 1px solid var(--rule);
    padding-bottom: 1.2rem;
    margin-bottom: 2rem;
}
.sec-head h2 {
    font-size: clamp(1.9rem, 3.4vw, 2.6rem);
    margin: 0;
}
.sec-head p {
    margin: 0.3rem 0 0;
    color: var(--muted);
    font-size: 0.92rem;
}
.bg-tint {
    background: var(--tint);
}

/* Post card */
.post {
    display: flex;
    flex-direction: column;
    height: 100%;
}
.post-media {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 7/6;
    display: block;
}
.post-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s;
}
.post:hover .post-media img {
    transform: scale(1.04);
}
.post-media .chip {
    position: absolute;
    top: 0.8rem;
    right: 0.8rem;
}
.post-media .avatar {
    position: absolute;
    left: 0.8rem;
    bottom: 0.8rem;
}
.post h3 {
    font-size: 1.4rem;
    margin: 1.1rem 0 0.55rem;
}
.post h3 a:hover {
    color: var(--a1);
}
.post p {
    font-size: 0.93rem;
    margin: 0 0 0.8rem;
}

.avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center 12%;
    background: var(--tint-2);
    border: 2px solid var(--surface);
    flex-shrink: 0;
    display: inline-block;
}
.soft-card .avatar {
    width: 64px;
    height: 64px;
}
.av-1 {
    background: linear-gradient(135deg, #e4572e, #f3a712);
}
.av-2 {
    background: linear-gradient(135deg, #335c67, #7aa6a1);
}
.av-3 {
    background: linear-gradient(135deg, #7b5ea7, #d8737f);
}
.av-4 {
    background: linear-gradient(135deg, #5f7f5b, #c9b458);
}
.av-5 {
    background: linear-gradient(135deg, #1f2d3d, #b5543a);
}

/* Compact (editor's picks) */
.mini .post-media {
    aspect-ratio: 10/9;
    border-radius: var(--radius-sm);
}
.mini h3 {
    font-size: 1.05rem;
    margin: 0.9rem 0 0.6rem;
    line-height: 1.3;
}
.author-line {
    display: flex;
    align-items: center;
    gap: 0.55rem;
}
.author-line strong {
    display: block;
    font-size: 0.82rem;
    color: var(--ink);
    line-height: 1.2;
}
.author-line small {
    font-size: 0.74rem;
    color: var(--muted);
}

/* Feature split */
.feature {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 2.5rem;
    align-items: center;
}
.feature .post-media {
    aspect-ratio: auto;
    height: 100%;
    min-height: 360px;
}
.feature h3 {
    font-size: clamp(1.9rem, 3.2vw, 2.6rem);
    margin: 1rem 0 0.9rem;
}
@media (max-width: 767px) {
    .feature {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .feature .post-media {
        min-height: 260px;
    }
}

/* Pagination */
.pager {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-wrap: wrap;
}
.pager a,
.pager span {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--tint-2);
    color: var(--ink);
    font-family: var(--serif);
    font-weight: 600;
}
.pager a:hover {
    background: var(--tint);
    color: var(--a1);
}
.pager .current {
    background: var(--grad);
    color: #fff;
}

/* Authors */
.author-card {
    text-align: center;
    padding: 0 1rem;
}
.author-card .big {
    width: 110px;
    height: 110px;
    margin: 0 auto 1rem;
    border: 0;
    display: block;
}
.author-card h3 {
    font-size: 1.5rem;
    margin: 0;
}
.author-card .role {
    font-size: 0.82rem;
    font-weight: 600;
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
    margin: 0.25rem 0 0.7rem;
}
.author-card p {
    font-size: 0.92rem;
    color: var(--muted);
    max-width: 30ch;
    margin: 0 auto 1rem;
}
.author-card .socials {
    justify-content: center;
    display: flex;
}

/* Newsletter */
.newsletter {
    border-radius: 28px;
    background: url("../img/newsletter-bg.jpg") center/cover;
    padding: clamp(2.5rem, 6vw, 4.5rem) 1.5rem;
    text-align: center;
    color: #3a3840;
}
:root[data-theme="dark"] .newsletter {
    filter: brightness(0.92);
}
.newsletter h2 {
    font-size: clamp(1.7rem, 3vw, 2.4rem);
    max-width: 24ch;
    margin: 0 auto 1.6rem;
    color: #1b1a1f;
}
.nl-form {
    display: flex;
    gap: 0.6rem;
    max-width: 520px;
    margin: 0 auto;
    flex-wrap: wrap;
    justify-content: center;
}
.nl-form input[type="email"] {
    flex: 1 1 260px;
    border: 1px solid #f0b9a6;
    border-radius: 999px;
    padding: 0.85rem 1.3rem;
    background: #fff;
    color: #1b1a1f;
}
.nl-form input[type="email"]:focus {
    outline: none;
    border-color: var(--a1);
    box-shadow: 0 0 0 3px rgba(228, 87, 46, 0.18);
}
.nl-consent {
    font-size: 0.85rem;
    margin-top: 1rem;
    display: flex;
    gap: 0.45rem;
    justify-content: center;
    align-items: center;
}
.nl-consent a {
    color: var(--a1);
}
.form-status {
    display: none;
    margin-top: 1rem;
    font-weight: 600;
    color: #1b1a1f;
}

/* Gallery */
.gallery {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 0.8rem;
}
.gallery a {
    border-radius: var(--radius-sm);
    overflow: hidden;
    aspect-ratio: 1/1;
}
.gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}
.gallery a:hover img {
    transform: scale(1.06);
}
@media (max-width: 767px) {
    .gallery {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Page header */
.page-head {
    padding: 3.5rem 0 2.5rem;
    text-align: center;
}
.page-head h1 {
    font-size: clamp(2.4rem, 5vw, 3.8rem);
    margin: 0.6rem 0 0.8rem;
}
.page-head p {
    color: var(--muted);
    max-width: 52ch;
    margin: 0 auto;
}
.crumbs {
    font-size: 0.85rem;
    color: var(--muted);
}
.crumbs a:hover {
    color: var(--a1);
}

/* Filters */
.filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-bottom: 2.5rem;
}
.filters button {
    border: 1px solid var(--rule);
    background: var(--surface);
    color: var(--ink);
    border-radius: 999px;
    padding: 0.5rem 1.05rem;
    font-weight: 600;
    font-size: 0.88rem;
}
.filters button:hover {
    border-color: var(--a1);
}
.filters button[aria-pressed="true"] {
    background: var(--grad);
    color: #fff;
    border-color: transparent;
}
.empty-note {
    display: none;
    text-align: center;
    color: var(--muted);
}
.is-hidden {
    display: none !important;
}

/* Category page big tiles */
.cat-card {
    display: block;
    background: var(--surface);
    border: 1px solid var(--rule);
    border-radius: var(--radius);
    overflow: hidden;
    height: 100%;
}
.cat-card img {
    aspect-ratio: 4/3;
    width: 100%;
    object-fit: cover;
}
.cat-card .body {
    padding: 1.3rem 1.4rem 1.5rem;
}
.cat-card h3 {
    font-size: 1.45rem;
    margin: 0 0 0.45rem;
}
.cat-card p {
    font-size: 0.92rem;
    color: var(--muted);
    margin: 0 0 0.9rem;
}
.cat-card .count {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--a1);
}
.cat-card:hover h3 {
    color: var(--a1);
}

/* Article */
.article-head {
    max-width: 780px;
    margin: 0 auto;
    text-align: center;
    padding: 3rem 0 2rem;
}
.article-head h1 {
    font-size: clamp(2.3rem, 5vw, 3.7rem);
    margin: 1rem 0;
}
.article-head .lede {
    font-size: 1.15rem;
    color: var(--muted);
}
.article-hero {
    border-radius: 28px;
    overflow: hidden;
}
.article-hero img {
    width: 100%;
    aspect-ratio: 2/1;
    object-fit: cover;
}
.byline {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    margin-top: 1.2rem;
    font-size: 0.9rem;
}
.prose {
    max-width: 700px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.8;
}
.prose p {
    margin-bottom: 1.35em;
}
.prose h2 {
    font-size: 1.9rem;
    margin: 2em 0 0.6em;
}
.prose blockquote {
    margin: 2em 0;
    padding: 1.5rem 1.8rem;
    background: var(--tint);
    border-radius: var(--radius-sm);
    font-family: var(--serif);
    font-size: 1.4rem;
    line-height: 1.45;
    color: var(--ink);
}
.prose ul li {
    margin-bottom: 0.6em;
}
.prose figure {
    margin: 2.2em 0;
}
.prose figure img {
    border-radius: var(--radius);
}
.prose figcaption {
    font-size: 0.85rem;
    color: var(--muted);
    margin-top: 0.6rem;
    text-align: center;
}
.tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}
.tags a {
    background: var(--tint-2);
    border-radius: 999px;
    padding: 0.35rem 0.9rem;
    font-size: 0.85rem;
    font-weight: 600;
}
.reading-bar {
    position: fixed;
    left: 0;
    top: 0;
    height: 3px;
    width: 0;
    background: var(--grad);
    z-index: 2000;
}

/* Forms */
.soft-card {
    background: var(--surface);
    border: 1px solid var(--rule);
    border-radius: var(--radius);
    padding: clamp(1.5rem, 4vw, 2.5rem);
}
.form-label {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--ink);
}
.form-control,
.form-select {
    border-radius: 12px;
    border: 1px solid var(--rule);
    background-color: var(--bg);
    color: var(--ink);
    padding: 0.75rem 1rem;
}
.form-control:focus,
.form-select:focus {
    border-color: var(--a1);
    box-shadow: 0 0 0 3px rgba(228, 87, 46, 0.15);
    background-color: var(--bg);
    color: var(--ink);
}
.form-check-input:checked {
    background-color: var(--a1);
    border-color: var(--a1);
}
.soft-card .form-status {
    color: var(--ink);
    background: var(--tint);
    padding: 0.9rem 1.1rem;
    border-radius: 12px;
}
.rounded-img {
    border-radius: var(--radius);
}

/* Footer */
.site-footer {
    border-top: 1px solid var(--rule);
    padding: 4rem 0 2.5rem;
    text-align: center;
    background: var(--bg);
}
.site-footer p {
    max-width: 42ch;
    margin: 0.9rem auto 1.4rem;
    font-size: 0.92rem;
}
.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 1.4rem;
    justify-content: center;
    margin: 1.6rem 0;
    font-size: 0.9rem;
    font-weight: 600;
}
.site-footer .socials {
    justify-content: center;
    display: flex;
}
.copy {
    font-size: 0.85rem;
    color: var(--muted);
    margin-top: 1.6rem;
}
.to-top {
    position: fixed;
    right: 1.4rem;
    bottom: 1.4rem;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 2px solid var(--a1);
    background: var(--bg);
    color: var(--ink);
    display: grid;
    place-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
    z-index: 1040;
}
.to-top.show {
    opacity: 1;
    pointer-events: auto;
}

@media (prefers-reduced-motion: reduce) {
    * {
        transition: none !important;
        scroll-behavior: auto !important;
    }
}

.avatar-stack .avatar {
    width: 44px;
    height: 44px;
    margin-left: -12px;
}
.avatar-stack .avatar:first-child {
    margin-left: 0;
}
.post-media img.avatar,
.post:hover .post-media img.avatar {
    position: absolute;
    left: 0.8rem;
    bottom: 0.8rem;
    width: 38px;
    height: 38px;
    transform: none;
}
.container.sec .prose{
    max-width: none;
}