/*
Theme Name: A Todo Color Digital
Description: Portal editorial de farándula, música y espectáculos de República Dominicana.
Version: 1.0.0
Requires at least: 6.2
Requires PHP: 8.1
Text Domain: a-todo-color-digital
*/

:root {
    --ink: #201324;
    --paper: #fcf8f3;
    --purple: #361844;
    --pink: #a62062;
    --bright: #ff7fb1;
    --line: #e1d5df;
    --muted: #6f6070;
    --display: "Archivo Black", "Arial Black", sans-serif;
    --body: "Inter", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; font-family: var(--body); color: var(--ink); background: var(--paper); }
a { color: inherit; text-underline-offset: .22em; }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, textarea:focus-visible {
    outline: 3px solid #a95df0;
    outline-offset: 4px;
}
img { max-width: 100%; height: auto; }
button, input, textarea { font: inherit; }
.wrap { width: min(1180px, 100% - clamp(2rem, 7vw, 6rem)); margin-inline: auto; }
.screen-reader-text, .skip-link:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link:focus { position: fixed; z-index: 100001; inset: .75rem auto auto .75rem; padding: .75rem 1rem; background: white; color: var(--ink); }
.site-header { background: #25122c; color: white; border-top: 5px solid #ff82ae; }
.masthead { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 1.65rem; position: relative; }
.brand { display: inline-flex; align-items: center; gap: .75rem; color: white; text-decoration: none; font-family: var(--display); font-size: clamp(1.08rem, 3vw, 2rem); line-height: 1; letter-spacing: -.08em; }
.brand-digital { margin-left: .3em; color: var(--bright); }
.brand-mark { display: flex; gap: 3px; align-items: end; height: 1.25em; transform: skew(-15deg); }
.brand-mark span { display: block; width: .2em; height: 65%; background: #ffd780; border-radius: 2px; }
.brand-mark span:nth-child(2) { height: 100%; background: #ff82ae; }
.brand-mark span:nth-child(3) { height: 78%; background: #ae83ff; }
.site-search summary { cursor: pointer; font-size: .9rem; font-weight: 700; }
.search-form { position: absolute; z-index: 2; right: 0; top: calc(100% - .45rem); width: min(24rem, 100%); display: flex; gap: .4rem; padding: .7rem; background: white; color: var(--ink); box-shadow: 0 10px 26px #20132438; }
.search-form input { min-width: 0; width: 100%; border: 1px solid var(--line); border-radius: 4px; padding: .6rem; }
.search-form button, .article-comments input[type="submit"] { border: 0; border-radius: 4px; background: var(--purple); color: white; padding: .55rem .85rem; cursor: pointer; }
.section-nav { border-top: 1px solid #ffffff2b; }
.section-links { display: flex; gap: clamp(1rem, 3vw, 2.5rem); overflow-x: auto; }
.section-links a { padding-block: .95rem .75rem; border-bottom: 3px solid transparent; white-space: nowrap; text-decoration: none; font-weight: 700; font-size: .9rem; }
.section-links a:hover, .section-links [aria-current] { border-color: var(--bright); color: var(--bright); }

.main-content { min-height: 60vh; padding-block: clamp(1.5rem, 4vw, 3.5rem) clamp(3rem, 7vw, 5.5rem); }
.intro, .story-lead { position: relative; display: grid; grid-template-columns: 1.06fr 1fr; color: white; background: var(--purple); overflow: hidden; }
.intro-copy { position: relative; z-index: 1; padding: clamp(1.6rem, 5vw, 4.2rem); }
.eyebrow { color: var(--pink); font-size: .73rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; text-decoration: none; }
.intro .eyebrow, .story-lead .eyebrow { color: #ff9fc3; }
.intro h1, .article-header h1 { margin: .65rem 0 1rem; font: clamp(2.05rem, 5vw, 4.65rem)/1.02 var(--display); letter-spacing: -.08em; overflow-wrap: anywhere; }
.intro p { max-width: 33ch; margin: 0; color: #f3dfef; font-size: clamp(.95rem, 1.6vw, 1.15rem); line-height: 1.55; }
.accent { color: var(--bright); }
.intro-art { position: relative; overflow: hidden; min-height: 12rem; background: radial-gradient(ellipse at 70% 15%, #ffc575, transparent 46%), radial-gradient(ellipse at 32% 72%, #8c4bdd, transparent 47%), linear-gradient(130deg, #361844 4%, #962065 49%, #f7779a 90%); }
.intro-art::before, .intro-art::after { content: ""; position: absolute; border: 1px solid #fff4dd88; border-radius: 50%; transform: rotate(-28deg); }
.intro-art::before { width: 104%; height: 45%; left: -4%; top: 29%; box-shadow: 0 12px 0 -1px #ffd0dc65, 0 24px 0 -1px #ffd0dc44, 0 -12px 0 -1px #ffd0dc65; }
.intro-art::after { width: 36%; aspect-ratio: 1; right: 12%; top: 17%; background: #ffdb8f55; box-shadow: 0 0 3rem #ffbd7499; }
.feed { margin-top: clamp(2rem, 5vw, 3.5rem); }
.main-content > .feed:first-child { margin-top: 0; }
.feed-heading { font: clamp(1.4rem, 4vw, 2.35rem)/1.15 var(--display); letter-spacing: -.05em; border-bottom: 2px solid var(--ink); padding-bottom: .75rem; margin: 0 0 1.4rem; }
.empty { color: var(--muted); }
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.4rem; }
.story-card { border: 1px solid var(--line); background: #fffdfb; }
.story-image { display: block; overflow: hidden; aspect-ratio: 16 / 10; background: #efd2e5; }
.story-image img { width: 100%; height: 100%; display: block; object-fit: cover; }
.story-image-placeholder { background: radial-gradient(ellipse at 85% 12%, #ffd58a, transparent 42%), linear-gradient(125deg, #361844 5%, #8b419b 45%, #f477a1); }
.story-copy { padding: 1.2rem; }
.story-lead .story-image { height: 100%; min-height: 17rem; aspect-ratio: auto; }
.story-lead .story-copy { align-self: center; padding: clamp(1.5rem, 4vw, 3.25rem); }
.story-title { font-size: 1.27rem; margin: .5rem 0; line-height: 1.18; letter-spacing: -.035em; overflow-wrap: anywhere; }
.story-lead .story-title { font: clamp(1.75rem, 4vw, 3.4rem)/1.08 var(--display); letter-spacing: -.065em; }
.story-title a { text-decoration: none; }
.story-title a:hover { text-decoration: underline; }
.story-summary { line-height: 1.55; color: var(--muted); font-size: .92rem; }
.story time, .article-meta { color: var(--muted); font-size: .82rem; }
.story-lead .story-summary, .story-lead time { color: #f2dfef; }
.nav-links { display: flex; flex-wrap: wrap; gap: .65rem; margin-top: 2rem; }
.nav-links .page-numbers { padding: .55rem .8rem; border: 1px solid var(--line); }
.nav-links .current { background: var(--purple); color: white; }
.article-header, .article-body, .article-comments { width: min(100%, 740px); margin-inline: auto; }
.article-categories { color: var(--pink); font-weight: 800; }
.article-header h1 { font-size: clamp(2.05rem, 5vw, 4rem); }
.article-cover { width: min(100%, 940px); margin: 1.8rem auto; }
.article-cover img { width: 100%; display: block; }
.article-cover figcaption { color: var(--muted); font-size: .85rem; margin-top: .5rem; }
.article-body { font-size: clamp(1rem, 2vw, 1.15rem); line-height: 1.75; overflow-wrap: anywhere; }
.article-body figure { margin-inline: 0; }
.article-body .aligncenter { margin-inline: auto; }
.article-body blockquote { border-left: 4px solid var(--pink); margin-left: 0; padding-left: 1rem; }
.article-comments { border-top: 1px solid var(--line); margin-top: 3rem; padding-top: 1rem; }
.article-comments textarea, .article-comments input { max-width: 100%; }
.site-footer { background: #25122c; color: #f3dfef; padding-block: 2rem; }
.footer-content { display: flex; justify-content: space-between; gap: .75rem 1.5rem; flex-wrap: wrap; font-size: .88rem; }
.footer-content a { font-weight: 800; text-decoration: none; }

@media (max-width: 820px) {
    .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
    .masthead { padding-block: 1.2rem; }
    .intro, .story-lead, .card-grid { grid-template-columns: 1fr; }
    .intro-art { min-height: 8rem; }
    .story-lead .story-image { min-height: 0; aspect-ratio: 16 / 10; }
}
