/*
Theme Name: Diario TI Lean
Theme URI: https://diarioti.com/
Author: Diario TI
Description: Lightweight editorial theme for Diario TI.
Version: 1.0.0
Text Domain: diarioti-lean
*/

:root {
    --dt-ink: #111318;
    --dt-muted: #667085;
    --dt-line: #e3e7ed;
    --dt-soft: #f6f8fb;
    --dt-accent: #0b7189;
    --dt-accent-2: #c4302b;
    --dt-max: 1180px;
}

* {
    box-sizing: border-box;
}

body {
    background: #fff;
    color: var(--dt-ink);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
    line-height: 1.55;
    margin: 0;
    text-rendering: optimizeLegibility;
}

a {
    color: inherit;
    text-decoration: none;
}

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

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

.dt-container {
    margin: 0 auto;
    max-width: var(--dt-max);
    padding: 0 22px;
}

.dt-site-header {
    background: #fff;
    border-bottom: 1px solid var(--dt-line);
    position: sticky;
    top: 0;
    z-index: 20;
}

.dt-masthead {
    align-items: center;
    display: flex;
    gap: 28px;
    justify-content: space-between;
    min-height: 76px;
}

.dt-brand {
    color: var(--dt-ink);
    display: inline-flex;
    flex-direction: column;
    font-size: 34px;
    font-weight: 900;
    letter-spacing: 0;
    line-height: 1;
}

.dt-brand span {
    color: var(--dt-muted);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .12em;
    margin-top: 6px;
    text-transform: uppercase;
}

.dt-nav {
    border-top: 1px solid var(--dt-line);
    overflow-x: auto;
}

.dt-nav ul {
    display: flex;
    gap: 20px;
    list-style: none;
    margin: 0;
    padding: 11px 0;
    white-space: nowrap;
}

.dt-nav a {
    color: #2f3744;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
}

.dt-search {
    min-width: 220px;
}

.dt-search form {
    display: flex;
}

.dt-search input[type="search"] {
    border: 1px solid var(--dt-line);
    border-radius: 0;
    font: inherit;
    min-width: 0;
    padding: 9px 10px;
    width: 100%;
}

.dt-search button {
    background: var(--dt-ink);
    border: 0;
    color: #fff;
    cursor: pointer;
    font-size: 13px;
    font-weight: 800;
    padding: 0 12px;
}

.dt-main {
    padding: 28px 0 56px;
}

.dt-layout {
    align-items: start;
    display: grid;
    gap: 34px;
    grid-template-columns: minmax(0, 1fr) 300px;
}

.dt-section-title {
    border-bottom: 2px solid var(--dt-ink);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: .08em;
    margin: 0 0 18px;
    padding-bottom: 8px;
    text-transform: uppercase;
}

.dt-hero {
    border-bottom: 1px solid var(--dt-line);
    display: grid;
    gap: 24px;
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, .8fr);
    margin-bottom: 28px;
    padding-bottom: 28px;
}

.dt-hero h1 {
    font-size: clamp(34px, 4vw, 58px);
    letter-spacing: 0;
    line-height: .98;
    margin: 0 0 14px;
}

.dt-card h2,
.dt-list-card h2,
.dt-article h1 {
    letter-spacing: 0;
}

.dt-meta,
.dt-kicker {
    color: var(--dt-muted);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.dt-excerpt {
    color: #3b4350;
    margin: 0;
}

.dt-grid {
    display: grid;
    gap: 24px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.dt-card {
    border-bottom: 1px solid var(--dt-line);
    padding-bottom: 22px;
}

.dt-card h2 {
    font-size: 24px;
    line-height: 1.08;
    margin: 10px 0 8px;
}

.dt-card .dt-thumb {
    aspect-ratio: 16 / 9;
    background: var(--dt-soft);
    margin-bottom: 12px;
    overflow: hidden;
}

.dt-card .dt-thumb img,
.dt-hero .dt-thumb img {
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.dt-rail {
    border-left: 1px solid var(--dt-line);
    padding-left: 24px;
}

.dt-rail-section {
    margin-bottom: 28px;
}

.dt-rail ol {
    list-style: none;
    margin: 0;
    padding: 0;
}

.dt-rail li {
    border-top: 1px solid var(--dt-line);
    padding: 13px 0;
}

.dt-rail li:first-child {
    border-top: 0;
    padding-top: 0;
}

.dt-rail a {
    display: block;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.24;
}

.dt-rail time {
    color: var(--dt-muted);
    display: block;
    font-size: 12px;
    margin-top: 6px;
}

.dt-substack iframe {
    max-width: 100%;
}

.dt-list-card {
    border-bottom: 1px solid var(--dt-line);
    display: grid;
    gap: 18px;
    grid-template-columns: 220px minmax(0, 1fr);
    padding: 20px 0;
}

.dt-list-card h2 {
    font-size: 28px;
    line-height: 1.08;
    margin: 5px 0 8px;
}

.dt-article {
    margin: 0 auto;
    max-width: 780px;
}

.dt-article h1 {
    font-size: clamp(36px, 5vw, 62px);
    line-height: .98;
    margin: 8px 0 16px;
}

.dt-article-content {
    font-size: 19px;
    line-height: 1.72;
}

.dt-article-content p,
.dt-article-content ul,
.dt-article-content ol {
    margin-bottom: 1.25em;
}

.dt-article-content a {
    color: var(--dt-accent);
    text-decoration: underline;
}

.dt-article-hero {
    margin: 24px 0;
}

.dt-pagination {
    margin-top: 28px;
}

.dt-pagination .nav-links {
    display: flex;
    gap: 10px;
}

.dt-pagination a,
.dt-pagination span {
    border: 1px solid var(--dt-line);
    padding: 8px 11px;
}

.dt-site-footer {
    background: var(--dt-ink);
    color: #d7dbe2;
    margin-top: 40px;
    padding: 34px 0;
}

.dt-site-footer a {
    color: #fff;
}

@media (max-width: 860px) {
    .dt-masthead {
        align-items: flex-start;
        flex-direction: column;
        gap: 14px;
        padding: 18px 0;
    }

    .dt-search {
        min-width: 0;
        width: 100%;
    }

    .dt-layout,
    .dt-hero,
    .dt-grid,
    .dt-list-card {
        grid-template-columns: 1fr;
    }

    .dt-rail {
        border-left: 0;
        border-top: 2px solid var(--dt-ink);
        padding-left: 0;
        padding-top: 22px;
    }

    .dt-brand {
        font-size: 30px;
    }
}
