/*
Theme Name: dds_mattycostapaz.com.ar
Author: Martina Villalba
Description: Revista editorial de diseño, arquitectura, hospitalidad y cultura material argentina.
Version: 1.1
Requires at least: 6.0
Requires PHP: 8.0
Text Domain: dds-mattycostapaz-com-ar
*/

:root {
    --ink: #102131;
    --ink-soft: #29485a;
    --paper: #f5f3ed;
    --white: #ffffff;
    --mist: #dfe8ec;
    --line: #bdcbd2;
    --acid: #c7ff42;
    --coral: #ff665a;
    --radius: 10px;
    --shadow: 0 20px 60px rgba(16, 33, 49, 0.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    overflow-x: hidden;
    color: var(--ink);
    background: var(--paper);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 1.65;
}

img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
button, input { font: inherit; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 {
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 500;
    line-height: 1.05;
}
h1 { font-size: clamp(2.8rem, 8vw, 6.8rem); letter-spacing: -0.055em; }
h2 { font-size: clamp(2.1rem, 5vw, 4.25rem); letter-spacing: -0.04em; }
h3 { font-size: 1.45rem; }

.shell { width: min(1180px, calc(100% - 36px)); margin-inline: auto; }
.shell-wide { width: min(1360px, calc(100% - 24px)); margin-inline: auto; }
.site-main { min-height: 58vh; }
.skip-link, .screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
.skip-link:focus {
    z-index: 9999;
    top: 12px;
    left: 12px;
    width: auto;
    height: auto;
    clip: auto;
    padding: 10px 16px;
    color: var(--ink);
    background: var(--acid);
}

.site-header {
    position: relative;
    z-index: 10;
    border-bottom: 1px solid rgba(16, 33, 49, 0.14);
    background: rgba(245, 243, 237, 0.96);
}
.header-inner { min-height: 90px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 13px; text-decoration: none; min-width: 0; }
.brand-mark { width: 48px; height: 48px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 9px; background: var(--ink); }
.brand-mark svg { width: 31px; height: 31px; fill: var(--acid); }
.brand-mark.custom-mark { overflow: hidden; background: transparent; }
.brand-mark.custom-mark img { display: block; width: 48px; height: 48px; object-fit: contain; }
.brand-copy { display: flex; flex-direction: column; min-width: 0; }
.brand-copy strong { font-family: Georgia, "Times New Roman", serif; font-size: 1.1rem; line-height: 1.1; }
.brand-copy small { max-width: 300px; margin-top: 4px; color: #506676; font-size: 0.72rem; line-height: 1.25; }
.header-menu { display: none; position: absolute; top: 90px; right: 18px; left: 18px; margin: 0; padding: 10px; list-style: none; border-radius: var(--radius); background: var(--ink); box-shadow: var(--shadow); }
.header-menu.is-open { display: block; }
.header-menu a { display: block; padding: 12px 14px; color: var(--white); text-decoration: none; border-radius: 6px; }
.header-menu a:hover, .header-menu a:focus { color: var(--ink); background: var(--acid); }
.nav-toggle { display: inline-flex; align-items: center; gap: 10px; border: 0; padding: 10px 14px; color: var(--white); background: var(--ink); border-radius: 999px; cursor: pointer; }
.nav-toggle i, .nav-toggle i::before, .nav-toggle i::after { width: 16px; height: 1px; display: block; background: currentColor; content: ""; }
.nav-toggle i::before { transform: translateY(-5px); }
.nav-toggle i::after { transform: translateY(4px); }

.eyebrow {
    margin-bottom: 16px;
    color: var(--ink-soft);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 12px 22px; border: 1px solid var(--ink); border-radius: 4px; font-weight: 750; text-decoration: none; transition: transform 180ms ease, background 180ms ease; }
.button:hover, .button:focus { transform: translateY(-2px); }
.button-primary { color: var(--ink); background: var(--acid); }
.button-ghost { color: var(--white); border-color: rgba(255,255,255,0.5); }
.button-ghost:hover, .button-ghost:focus { color: var(--ink); background: var(--white); }
.button-light { color: var(--ink); background: var(--white); }
.text-link { font-weight: 800; text-decoration: none; border-bottom: 1px solid currentColor; }
.text-link span { color: var(--coral); }

.hero {
    display: grid;
    min-height: 690px;
    margin-top: 12px;
    color: var(--white);
    background: var(--ink);
    border-radius: var(--radius);
    overflow: hidden;
}
.hero-copy { padding: clamp(42px, 7vw, 100px) clamp(24px, 6vw, 84px); align-self: center; }
.hero .eyebrow { color: var(--acid); }
.hero h1 { max-width: 760px; margin-bottom: 28px; }
.hero-lead { max-width: 620px; color: #c8d7de; font-size: clamp(1.05rem, 2vw, 1.35rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero-art { position: relative; min-height: 390px; background: #0a1723; }
.hero-art img { width: 100%; height: 100%; display: block; object-fit: cover; }
.hero-caption { position: absolute; right: 18px; bottom: 18px; padding: 8px 12px; color: var(--ink); background: var(--acid); font-size: 0.72rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; }

.topic-board, .latest-section { padding-block: clamp(80px, 10vw, 150px); }
.section-heading { max-width: 750px; margin-bottom: 50px; }
.section-heading-row { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.section-heading h2 { margin-bottom: 0; }
.topic-grid { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.topic-grid article { min-height: 270px; padding: 28px; background: var(--paper); transition: background 180ms ease, color 180ms ease; }
.topic-grid article:hover { color: var(--white); background: var(--ink-soft); }
.topic-grid span { display: block; margin-bottom: 55px; color: var(--coral); font-weight: 850; }
.topic-grid h3 { margin-bottom: 14px; font-size: 1.75rem; }
.topic-grid p { margin-bottom: 0; }

.latest-section { padding-top: 0; }
.post-grid, .post-list { display: grid; gap: 28px; }
.post-card { overflow: hidden; background: var(--white); border: 1px solid rgba(16, 33, 49, 0.12); border-radius: var(--radius); box-shadow: 0 8px 28px rgba(16, 33, 49, 0.06); }
.post-card-media { display: block; aspect-ratio: 3 / 2; overflow: hidden; background: var(--mist); }
.post-card-media img { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform 350ms ease; }
.post-card:hover .post-card-media img { transform: scale(1.025); }
.post-card-body { padding: 25px; }
.post-card-meta { display: flex; flex-wrap: wrap; gap: 10px 18px; margin-bottom: 16px; color: #607482; font-size: 0.76rem; font-weight: 750; text-transform: uppercase; letter-spacing: 0.08em; }
.post-card h2 { margin-bottom: 14px; font-size: clamp(1.65rem, 3vw, 2.2rem); }
.post-card h2 a { text-decoration: none; }
.post-card-excerpt { color: #405766; }
.post-card-excerpt p { margin-bottom: 20px; }
.empty-state { padding: 34px; background: var(--mist); border-left: 5px solid var(--coral); }

.editorial-method { display: grid; gap: 42px; padding: clamp(60px, 8vw, 110px) clamp(24px, 7vw, 96px); color: var(--white); background: var(--ink-soft); border-radius: var(--radius); }
.editorial-method .eyebrow { color: var(--acid); }
.method-intro p:last-child { max-width: 520px; color: #c8d8df; font-size: 1.1rem; }
.method-steps { margin: 0; padding: 0; list-style: none; border-top: 1px solid rgba(255,255,255,0.25); }
.method-steps li { display: grid; grid-template-columns: 52px 1fr; gap: 18px; padding: 27px 0; border-bottom: 1px solid rgba(255,255,255,0.25); }
.method-steps li > span { color: var(--acid); font-weight: 850; }
.method-steps h3 { margin-bottom: 7px; }
.method-steps p { margin-bottom: 0; color: #c8d8df; }

.closing-cta { display: grid; gap: 30px; margin-block: clamp(80px, 10vw, 150px); padding: clamp(38px, 7vw, 80px); color: var(--white); background: var(--coral); border-radius: var(--radius); }
.closing-cta .eyebrow { color: var(--ink); }
.closing-cta h2 { max-width: 680px; margin-bottom: 0; }
.closing-cta > p { max-width: 500px; font-size: 1.12rem; }
.closing-cta .button { justify-self: start; }

.page-shell { padding-block: 30px 100px; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 56px; color: #5c7180; font-size: 0.84rem; }
.breadcrumbs a { color: var(--ink); }
.archive-header { max-width: 850px; margin-bottom: 54px; }
.archive-header h1, .article-header h1 { margin-bottom: 0; font-size: clamp(2.8rem, 7vw, 5.9rem); }
.content-layout { max-width: 970px; margin-inline: auto; }
.content-layout.has-sidebar { max-width: none; display: grid; gap: 50px; }
.content-column { min-width: 0; }
.post-list .post-card { display: grid; }
.article-header { margin-bottom: 38px; }
.article-category { display: inline-block; margin-top: 20px; padding: 7px 12px; color: var(--white); background: var(--ink-soft); border-radius: 999px; font-size: 0.8rem; font-weight: 750; }
.article-cover { margin: 0 0 40px; }
.article-cover img { width: 100%; display: block; border-radius: var(--radius); }
.entry-content { font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.05rem, 2vw, 1.22rem); }
.entry-content > * { max-width: 760px; margin-right: auto; margin-left: auto; }
.entry-content > .alignwide { max-width: 980px; }
.entry-content > .alignfull { max-width: none; }
.entry-content h2, .entry-content h3 { margin-top: 2.2em; }
.entry-content a { color: #0b637a; }
.entry-content blockquote { padding: 24px 30px; border-left: 6px solid var(--acid); background: var(--white); }
.entry-content table { width: 100%; border-collapse: collapse; }
.entry-content th, .entry-content td { padding: 10px; border: 1px solid var(--ink-soft); text-align: left; }
.entry-content img { display: block; }
.post-navigation { display: flex; justify-content: space-between; gap: 20px; margin-top: 60px; padding-top: 22px; border-top: 1px solid var(--line); font-weight: 750; }

.sidebar { color: var(--white); }
.sidebar .widget { padding: 26px; background: var(--ink-soft); border-radius: var(--radius); }
.sidebar .widget + .widget { margin-top: 22px; }
.sidebar .widget-title { color: var(--acid); font-family: inherit; font-size: 0.82rem; font-weight: 850; letter-spacing: 0.12em; text-transform: uppercase; }
.sidebar ul { margin: 0; padding: 0; list-style: none; }
.sidebar li { padding: 11px 0; border-top: 1px solid rgba(255,255,255,0.18); }
.sidebar a { color: var(--white); }
.sidebar .post-date { display: block; color: #b9cad2; font-size: 0.76rem; }

.nav-links { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 45px; }
.page-numbers { min-width: 42px; min-height: 42px; display: grid; place-items: center; padding: 6px 11px; color: var(--white); background: var(--ink-soft); border-radius: 4px; text-decoration: none; }
.page-numbers.current, .page-numbers:hover { color: var(--ink); background: var(--acid); }
.comments-area { margin-top: 60px; padding-top: 35px; border-top: 1px solid var(--line); }
.comment-list { padding-left: 24px; }
.comment-list li { margin-bottom: 24px; }
.comment-form input:not([type="submit"]), .comment-form textarea { width: 100%; border: 1px solid var(--line); padding: 12px; background: var(--white); }
.comment-form input[type="submit"] { border: 0; padding: 12px 18px; color: var(--ink); background: var(--acid); font-weight: 800; cursor: pointer; }

.search-form { display: flex; max-width: 620px; }
.search-form label { flex: 1; }
.search-field { width: 100%; min-height: 50px; border: 1px solid var(--line); padding: 10px 14px; background: var(--white); }
.search-form button { min-height: 50px; border: 0; padding: 10px 18px; color: var(--white); background: var(--ink); cursor: pointer; }
.not-found { padding-block: 30px 100px; }
.not-found-panel { position: relative; max-width: 880px; overflow: hidden; padding: clamp(40px, 8vw, 90px); color: var(--white); background: var(--ink); border-radius: var(--radius); }
.not-found-panel > *:not(.error-code) { position: relative; z-index: 1; }
.not-found-panel h1 { max-width: 620px; }
.not-found-panel p:not(.eyebrow) { max-width: 520px; color: #c8d7de; }
.not-found-panel .search-form { margin: 28px 0 20px; }
.error-code { position: absolute; right: -14px; bottom: -84px; color: rgba(199,255,66,0.11); font-family: Georgia, serif; font-size: clamp(10rem, 36vw, 23rem); line-height: 1; }

.site-footer { padding-top: 72px; color: var(--white); background: #091521; }
.footer-grid { display: grid; gap: 40px; }
.footer-column, .footer-column a { color: #d5e1e6; }
.footer-column .widget-title { color: var(--acid); font-family: inherit; font-size: 0.82rem; font-weight: 850; letter-spacing: 0.13em; text-transform: uppercase; }
.footer-column ul { margin: 0; padding: 0; list-style: none; }
.footer-column li { margin-bottom: 8px; }
.footer-base { display: flex; flex-direction: column; gap: 12px; margin-top: 55px; padding-block: 24px; color: #9fb2bd; border-top: 1px solid rgba(255,255,255,0.15); font-size: 0.85rem; }
.footer-base a { color: var(--acid); }

.cookie-banner[hidden] { display: none !important; }
.cookie-banner { position: fixed; z-index: 1000; right: 16px; bottom: 16px; left: 16px; display: flex; align-items: center; justify-content: space-between; gap: 16px; max-width: 560px; margin-left: auto; padding: 15px 18px; color: var(--white); background: var(--ink); border: 1px solid rgba(255,255,255,0.22); border-radius: var(--radius); box-shadow: var(--shadow); }
.cookie-banner p { margin: 0; font-size: 0.88rem; }
.cookie-banner button { border: 0; padding: 9px 15px; color: var(--ink); background: var(--acid); border-radius: 4px; font-weight: 800; cursor: pointer; }

@media (min-width: 600px) {
    .topic-grid { grid-template-columns: repeat(2, 1fr); }
    .post-grid { grid-template-columns: repeat(2, 1fr); }
    .post-grid .post-card:last-child:nth-child(odd) { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; }
    .post-list .post-card { grid-template-columns: minmax(210px, 0.8fr) 1.2fr; }
    .footer-grid { grid-template-columns: 1.1fr 0.8fr 1.1fr; }
    .footer-base { flex-direction: row; justify-content: space-between; }
}

@media (min-width: 960px) {
    .shell { width: min(1180px, calc(100% - 80px)); }
    .shell-wide { width: min(1360px, calc(100% - 48px)); }
    .hero { grid-template-columns: minmax(0, 1.05fr) minmax(420px, 0.95fr); }
    .hero-art { min-height: 690px; }
    .topic-grid { grid-template-columns: repeat(5, 1fr); }
    .post-grid { grid-template-columns: repeat(3, 1fr); }
    .post-grid .post-card:last-child:nth-child(odd) { grid-column: auto; display: block; }
    .editorial-method { grid-template-columns: 0.9fr 1.1fr; }
    .closing-cta { grid-template-columns: 1.2fr 0.8fr auto; align-items: center; }
    .content-layout.has-sidebar { grid-template-columns: minmax(0, 2fr) minmax(260px, 0.8fr); }
    .nav-toggle { display: none; }
    .primary-nav { margin-left: auto; }
    .header-menu { position: static; display: flex; align-items: center; gap: 4px; padding: 0; background: transparent; box-shadow: none; }
    .header-menu a { color: var(--ink); font-size: 0.9rem; font-weight: 720; }
    .header-menu a:hover, .header-menu a:focus { color: var(--ink); background: var(--acid); }
}

@media (max-width: 599px) {
    .brand-copy small { display: none; }
    .section-heading-row { align-items: flex-start; flex-direction: column; }
    .cookie-banner { align-items: flex-start; flex-direction: column; }
}
