/* YookUp — dark magazine theme. Tokens come from theme.json; this file is the layout layer. */

@font-face { font-family: "FT Cedi"; src: url("../fonts/ft-cedi.woff2") format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+20B5; }

@view-transition { navigation: auto; }

:root {
	--yk-line: var(--wp--preset--color--line, #262626);
	--yk-card: var(--wp--preset--color--card, #1C1C1C);
	--yk-muted: var(--wp--preset--color--muted, #9A9A9A);
	--yk-accent: var(--wp--preset--color--accent, #3CFFD0);
	--yk-purple: var(--wp--preset--color--accent-2, #4C02E8);
	--yk-radius: 10px;
	--yk-ease: var(--wp--custom--ease, cubic-bezier(.2,.7,.2,1));
}

.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); white-space: nowrap; }
.skip-link:focus { clip: auto; width: auto; height: auto; z-index: 1000; padding: .75rem 1rem; background: var(--yk-accent); color: #0d0d0d; top: .5rem; left: .5rem; }
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible { outline: 2px solid var(--yk-accent); outline-offset: 3px; }
img { height: auto; max-width: 100%; }

/* ---------- Header ---------- */
.yk-topbar { border-bottom: 1px solid var(--yk-line); padding-top: .6rem; padding-bottom: .6rem; }
.yk-tagline { margin: 0; color: var(--yk-muted); letter-spacing: .08em; text-transform: uppercase; }
.yk-header { border-bottom: 1px solid var(--yk-line); padding-top: 1rem; padding-bottom: 1rem; }
.yk-logo a { text-decoration: none; }
.yk-nav a { padding: .55rem .85rem; border-radius: 6px; text-decoration: none; transition: background .2s var(--yk-ease), color .2s var(--yk-ease); }
.yk-nav a:hover, .yk-nav .current-menu-item > a { background: #1f1f1f; color: var(--yk-accent); }
.yk-nav .wp-block-navigation__responsive-container.has-modal-open { background: #0d0d0d; }
.yk-nav .wp-block-navigation__responsive-container-open, .yk-nav .wp-block-navigation__responsive-container-close { color: #fff; min-width: 44px; min-height: 44px; }
.yk-header-tools .wp-block-search__input { background: var(--yk-card); border: 1px solid #333; color: #fff; border-radius: 8px; padding: .6rem 1rem; min-height: 44px; }
.yk-header-tools .wp-block-search__input::placeholder { color: var(--yk-muted); }
.yk-header-tools .wp-block-search__button { background: transparent; color: #fff; border: 0; padding: .5rem; min-width: 44px; min-height: 44px; }
.yk-cta .wp-block-button__link { background: var(--yk-accent); color: #0d0d0d; border-radius: 8px; padding: .7rem 1.25rem; font-weight: 600; white-space: nowrap; }
.yk-cta .wp-block-button__link:hover { background: #fff; color: #0d0d0d; }

/* ---------- Generic card ---------- */
.yk-card { display: flex; flex-direction: column; gap: .6rem; }
.yk-card > * { margin: 0 !important; }
.yk-card-img { overflow: hidden; border-radius: var(--yk-radius); background: var(--yk-card); }
.yk-card-img img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .45s var(--yk-ease); }
.yk-card:hover .yk-card-img img { transform: scale(1.04); }
.yk-card-img a { display: block; }
.yk-kicker, .yk-kicker a { color: var(--yk-accent); font-size: .6875rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; text-decoration: none; }
.yk-kicker .wp-block-post-terms__separator { color: var(--yk-muted); }
.yk-card-title { font-family: var(--wp--preset--font-family--display); line-height: 1.15; letter-spacing: .005em; }
.yk-card-title a { text-decoration: none; }
.yk-card-title a:hover { color: var(--yk-accent); }
.yk-meta { color: var(--yk-muted); font-size: .6875rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; }
.yk-meta > *, .yk-meta p { margin: 0; }
.yk-meta a { color: inherit; text-decoration: none; }
.yk-meta .wp-block-post-date + *::before, .yk-meta .wp-block-post-author-name + .wp-block-post-date::before { content: "·"; margin-right: .5rem; color: var(--yk-muted); }
.yk-meta-light { color: #d6d6d6; }
.yk-meta .wp-block-avatar { margin-right: .25rem; }
.wp-block-post-excerpt__more-link { display: none; }
.wp-block-post-excerpt p { margin: 0; }

/* Cards grid: generic column rules so the layout stays exact */
.yk-cards { display: grid; gap: 1.75rem; }
.yk-cards-1 { grid-template-columns: 1fr; }
@media (min-width: 782px) {
	.yk-cards-2.yk-cards-2 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
	.yk-cards-3.yk-cards-3 { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
	.yk-cards-4.yk-cards-4 { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
}
@media (max-width: 781px) {
	.yk-cards-2, .yk-cards-3, .yk-cards-4 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 1.25rem .9rem; }
	.yk-cards-4 .yk-card-title, .yk-cards-3 .yk-card-title { font-size: 1.0625rem !important; }
}
@media (max-width: 480px) { .yk-cards-3, .yk-cards-4 { grid-template-columns: 1fr !important; } }

/* Section headings: title + rule + link */
.yk-section-head { align-items: center; gap: 1rem; margin-bottom: 1.5rem; }
.yk-section-head h1, .yk-section-head h2 { margin: 0; white-space: nowrap; }
.yk-section-head::after { content: ""; flex: 1; height: 1px; background: var(--yk-line); order: 1; }
.yk-section-head .yk-more { order: 2; margin: 0; }
.yk-section-head-sm::after { height: 2px; background: var(--yk-accent); }
.yk-more a { color: var(--yk-accent); font-size: .8125rem; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; text-decoration: none; }
.yk-more a:hover { color: #fff; }
.yk-archive-head { display: block; }
.yk-archive-head::after { display: none; }
.yk-term-desc { color: var(--yk-muted); max-width: 60ch; }

/* ---------- Hero ---------- */
.yk-hero-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.75rem; }
.yk-hero-left, .yk-hero-right { grid-column: span 1; }
.yk-hero-main { grid-column: span 2; }
.yk-hero-left .yk-cards, .yk-hero-right .yk-cards { gap: 1.75rem; }
.yk-hero-right .yk-section-head { margin-bottom: 1.25rem; }
.yk-hero-right .yk-section-head h2 { font-size: 1.375rem; }
@media (max-width: 1024px) {
	.yk-hero-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.yk-hero-main { grid-column: 1 / -1; grid-row: 1; }
}
@media (max-width: 600px) {
	.yk-hero-grid { grid-template-columns: 1fr; }
}

/* Cover features (hero + men's corner) */
.yk-feature { overflow: hidden; }
.yk-feature.wp-block-cover { padding: 2.25rem; }
.yk-feature .wp-block-cover__image-background { transition: transform .6s var(--yk-ease); }
.yk-feature:hover .wp-block-cover__image-background { transform: scale(1.03); }
.yk-feature::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(18,18,18,0) 35%, rgba(18,18,18,.92) 100%); pointer-events: none; }
.yk-feature .wp-block-cover__inner-container { position: relative; z-index: 2; }
.yk-feature-body { display: flex; flex-direction: column; gap: .75rem; max-width: 600px; }
.yk-feature-body > * { margin: 0 !important; }
.yk-feature-title a { text-decoration: none; color: #fff; }
.yk-feature-title a:hover { color: var(--yk-accent); }
.yk-feature-excerpt, .yk-feature-excerpt p { color: #c9c9c9; font-size: .9375rem; }
.yk-badge { align-self: flex-start; }
.yk-badge a { display: inline-block; background: var(--yk-accent); color: #0d0d0d !important; padding: .35rem .6rem; border-radius: 4px; font-size: .6875rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; text-decoration: none; }
.yk-badge .wp-block-post-terms__separator { display: none; }
.yk-badge a + a { margin-left: .35rem; }
.yk-badge-purple a { background: var(--yk-purple); color: #fff !important; }
@media (max-width: 600px) {
	.yk-feature.wp-block-cover { padding: 1.25rem; min-height: 440px !important; }
	.yk-feature-title { font-size: 1.75rem !important; }
}

/* ---------- Category tiles ---------- */
.yk-tiles.yk-tiles { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1rem; }
.yk-tile { position: relative; display: block; aspect-ratio: 1 / 1; border-radius: var(--yk-radius); overflow: hidden; background: var(--yk-card) center / cover no-repeat; text-decoration: none; isolation: isolate; }
.yk-tile::before { content: ""; position: absolute; inset: 0; background: rgba(13,13,13,.45); transition: background .3s var(--yk-ease); }
.yk-tile:hover::before { background: rgba(13,13,13,.25); }
.yk-tile-label { position: absolute; left: 0; right: 0; bottom: .9rem; text-align: center; color: #fff; font-family: var(--wp--preset--font-family--display); font-size: 1.125rem; letter-spacing: .03em; text-shadow: 0 1px 8px rgba(0,0,0,.6); }
@media (max-width: 781px) { .yk-tiles.yk-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; } }

/* ---------- Men's corner ---------- */
.yk-band { border-top: 1px solid var(--yk-line); border-bottom: 1px solid var(--yk-line); }
.yk-mens-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.75rem; }
.yk-rows { gap: 1.125rem; }
.yk-card-row { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 1.125rem; align-items: center; }
.yk-card-row .yk-card-body { display: flex; flex-direction: column; gap: .4rem; }
.yk-card-row .yk-card-body > * { margin: 0 !important; }
@media (max-width: 900px) { .yk-mens-grid { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .yk-card-row { grid-template-columns: 96px minmax(0, 1fr); } .yk-card-row .yk-card-title { font-size: 1rem !important; } }

/* ---------- Most popular ---------- */
.yk-popular-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 1.75rem; align-items: start; }
.yk-ranked { border-left: 1px solid var(--yk-line); padding-left: 1.5rem; }
.yk-ranked-list { counter-reset: yk; display: block; }
.yk-ranked-list > li { list-style: none; }
.yk-ranked-item { counter-increment: yk; display: grid; grid-template-columns: 2.4rem minmax(0, 1fr); gap: .75rem; padding: .8rem 0; border-bottom: 1px solid var(--yk-line); }
.yk-ranked-list > li:last-child .yk-ranked-item { border-bottom: 0; }
.yk-ranked-item::before { content: counter(yk, decimal-leading-zero); grid-row: 1 / span 2; font-family: var(--wp--preset--font-family--display); font-size: 1.875rem; line-height: 1; color: var(--yk-accent); }
.yk-ranked-item > * { margin: 0 !important; }
.yk-ranked-title { font-family: var(--wp--preset--font-family--display); font-size: 1.125rem; line-height: 1.2; }
.yk-ranked-title a { text-decoration: none; }
.yk-ranked-title a:hover { color: var(--yk-accent); }
.yk-ranked-cat, .yk-ranked-cat a { color: var(--yk-muted); font-size: .75rem; letter-spacing: 0; text-transform: none; font-weight: 400; }
@media (max-width: 900px) { .yk-popular-grid { grid-template-columns: 1fr; } .yk-ranked { border-left: 0; padding-left: 0; } }

/* ---------- Newsletter ---------- */
.yk-newsletter-inner > * { flex: 1 1 380px; }
.yk-newsletter-text > * { margin: 0 0 .5rem; }
.yk-newsletter p { color: #e6dcff; }
.yk-newsletter-form { display: flex; flex-wrap: wrap; gap: .6rem; }
.yk-newsletter-form input { flex: 1 1 220px; min-height: 50px; background: #fff; color: #121212; border: 0; border-radius: 8px; padding: .8rem 1.1rem; font: inherit; }
.yk-newsletter-form button { min-height: 50px; background: #121212; color: var(--yk-accent); border: 0; border-radius: 8px; padding: .8rem 1.6rem; font: inherit; font-weight: 600; cursor: pointer; }
.yk-newsletter-form button:hover { background: #000; color: #fff; }

/* ---------- Single post ---------- */
.yk-single-head { display: flex; flex-direction: column; gap: .75rem; margin-bottom: 1.5rem; }
.yk-single-head > * { margin: 0 !important; }
.yk-single-head .yk-meta { text-transform: none; letter-spacing: 0; font-size: .875rem; align-items: center; }
.yk-single-img { overflow: hidden; margin-bottom: 2rem; }
.yk-single .wp-block-post-content { font-size: 1.0625rem; line-height: 1.75; }
.yk-single .wp-block-post-content p { color: #e4e4e4; }
.yk-single .wp-block-post-content h2, .yk-single .wp-block-post-content h3 { margin-top: 2rem; }
.yk-single .wp-block-post-content img, .yk-single .wp-block-post-content figure img { border-radius: var(--yk-radius); }
.yk-single .wp-block-post-content a { color: var(--yk-accent); }
.yk-single .wp-block-post-content a:hover { color: #fff; }
.yk-single-foot { margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid var(--yk-line); align-items: center; }
.yk-tags, .yk-tags a { color: var(--yk-muted); font-size: .8125rem; }
.yk-tags a { background: var(--yk-card); padding: .25rem .6rem; border-radius: 999px; text-decoration: none; color: #ddd; }
.yk-tags .wp-block-post-terms__separator { display: none; }
.yk-tags a + a { margin-left: .35rem; }
.yk-post-nav { margin-top: 1.5rem; padding: 1rem 0; border-top: 1px solid var(--yk-line); border-bottom: 1px solid var(--yk-line); }
.yk-post-nav a { text-decoration: none; font-family: var(--wp--preset--font-family--display); font-size: 1.0625rem; }
.yk-post-nav .post-navigation-link__label { display: block; font-family: var(--wp--preset--font-family--body); font-size: .6875rem; letter-spacing: .08em; text-transform: uppercase; color: var(--yk-muted); }
.yk-related { margin-top: 3rem; }
.yk-comments { margin-top: 3rem; }
.yk-comment { padding: 1rem 0; border-bottom: 1px solid var(--yk-line); gap: 1rem; }
.yk-comment .wp-block-comment-date { color: var(--yk-muted); }
.yk-comments textarea, .yk-comments input:not([type="submit"]):not([type="checkbox"]) { background: var(--yk-card); border: 1px solid #333; color: #fff; border-radius: 8px; padding: .7rem 1rem; width: 100%; box-sizing: border-box; }
.yk-comments .submit { background: var(--yk-accent); color: #0d0d0d; border: 0; border-radius: 8px; padding: .8rem 1.4rem; font-weight: 600; cursor: pointer; }

/* ---------- Archive / pagination ---------- */
.yk-pagination { margin-top: 2.5rem; gap: .5rem; }
.yk-pagination a, .yk-pagination .page-numbers { text-decoration: none; min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; padding: 0 .75rem; border-radius: 8px; background: var(--yk-card); color: #fff; }
.yk-pagination .page-numbers.current { background: var(--yk-accent); color: #0d0d0d; }
.yk-pagination a:hover { background: #2a2a2a; color: var(--yk-accent); }
.wp-block-search__inside-wrapper { background: var(--yk-card); border: 1px solid #333; border-radius: 8px; }
.wp-block-search__inside-wrapper .wp-block-search__input { background: transparent; border: 0; color: #fff; }
.wp-block-search__inside-wrapper .wp-block-search__button { background: transparent; color: #fff; border: 0; }

/* ---------- Footer ---------- */
.yk-footer { border-top: 1px solid var(--yk-line); }
.yk-footer-about { color: #aeaeae; max-width: 420px; }
.yk-footer-heading { margin-bottom: .5rem; }
.yk-footer-list { list-style: none; padding: 0; margin: 0; }
.yk-footer-list li { margin: 0 0 .5rem; }
.yk-footer-list a, .yk-footer-nav a { color: #cfcfcf; text-decoration: none; font-size: .9375rem; }
.yk-footer-list a:hover, .yk-footer-nav a:hover { color: var(--yk-accent); }
.yk-footer-sep { border-color: #1f1f1f !important; opacity: 1; margin: 1.5rem 0 1rem; }
.yk-copy { margin: 0; color: var(--yk-muted); }
@media (max-width: 781px) { .yk-footer-cols { gap: 1.5rem; } }

/* ---------- Motion ---------- */
.reveal { opacity: 1; }
.js .reveal:not(.is-in) { opacity: 0; transform: translateY(20px); }
.js .reveal { transition: opacity .6s var(--yk-ease), transform .6s var(--yk-ease); }

/* ---------- Mobile bottom bar ---------- */
.ft-bottom-nav.ft-bottom-nav { display: none; }
@media (max-width: 781px) {
	.ft-bottom-nav.ft-bottom-nav { display: flex; position: fixed; inset: auto 0 0 0; z-index: 50; background: #0d0d0d; border-top: 1px solid var(--yk-line); padding: .25rem 1rem calc(.25rem + env(safe-area-inset-bottom)); }
	.ft-bottom-nav p { margin: 0; }
	.ft-bottom-nav a { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; font-size: .75rem; font-weight: 500; text-decoration: none; letter-spacing: .04em; }
	body { padding-bottom: 64px; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
	.js .reveal:not(.is-in) { opacity: 1; transform: none; }
	@view-transition { navigation: none; }
}
