/* NexoPlay — mobile-first, dependency-free stylesheet. */
:root {
  color-scheme: light;
  --accent: #ff6a00;
  --accent-bright: #ff7b1a;
  --accent-soft: #fff0e6;
  --ink: #141414;
  --ink-2: #222;
  --paper: #f7f6f3;
  --surface: #fff;
  --muted: #74716e;
  --line: #e9e6e1;
  --radius: 16px;
  --content: 1180px;
  --shadow: 0 14px 38px rgba(20, 20, 20, .08);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-text-size-adjust: 100%;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 1rem; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img, video, iframe { max-width: 100%; }
img { display: block; height: auto; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
button, input, textarea { font: inherit; }
button { color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
::selection { background: var(--accent); color: #fff; }
.site-shell { min-height: 100vh; display: flex; flex-direction: column; }
.site-main { flex: 1; }
.content-wrap { width: min(calc(100% - 32px), var(--content)); margin-inline: auto; padding-block: 38px 60px; }
.narrow-wrap { max-width: 820px; }
.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 { position: fixed; z-index: 1000; top: 8px; left: 8px; padding: 10px 14px; background: var(--accent); color: #fff; border-radius: 8px; transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); color: #fff; }

/* Header */
.site-header { background: var(--ink); color: #fff; position: relative; z-index: 20; }
.header-inner { width: min(calc(100% - 32px), var(--content)); min-height: 74px; margin-inline: auto; display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; padding-block: 12px; }
.brand-wrap { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; }
.site-brand { display: inline-flex; align-items: center; gap: 9px; color: #fff; font-size: 1.3rem; font-weight: 900; letter-spacing: -.06em; line-height: 1.05; }
.site-brand:hover { color: #fff; }
.brand-mark { display: inline-grid; width: 34px; height: 34px; flex: 0 0 34px; place-items: center; background: var(--accent); color: #111; border-radius: 10px 10px 10px 3px; font-size: 1.12rem; font-weight: 1000; letter-spacing: -.08em; }
.brand-wordmark { overflow-wrap: anywhere; }
.brand-dot { color: var(--accent); }
.site-tagline { margin: 4px 0 0 43px; color: #aaa; font-size: .67rem; line-height: 1.25; }
.custom-brand .custom-logo-link, .custom-brand img { display: block; max-width: 190px; max-height: 52px; width: auto; }
.menu-toggle { display: none; width: 42px; height: 42px; padding: 0; place-items: center; background: #252525; color: #fff; border: 1px solid #3b3b3b; border-radius: 10px; cursor: pointer; }
.menu-toggle-lines { width: 18px; display: grid; gap: 5px; }
.menu-toggle-lines span { display: block; height: 2px; background: #fff; border-radius: 2px; transition: transform .18s ease; }
.menu-toggle[aria-expanded="true"] .menu-toggle-lines span:first-child { transform: translateY(3.5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle-lines span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
.site-navigation { flex: 1; }
.primary-menu, .primary-menu ul { list-style: none; padding: 0; margin: 0; }
.primary-menu { display: flex; align-items: center; justify-content: center; gap: 4px; }
.primary-menu li { position: relative; }
.primary-menu a { display: block; padding: 10px 11px; color: #e1e1e1; font-size: .87rem; font-weight: 700; border-radius: 8px; transition: color .15s ease, background .15s ease; }
.primary-menu a:hover, .primary-menu .current-menu-item > a, .primary-menu .current_page_item > a { background: #252525; color: #ff8a38; }
.primary-menu .sub-menu { display: none; position: absolute; top: 100%; left: 0; z-index: 25; min-width: 190px; padding: 8px; background: #1d1d1d; border: 1px solid #373737; border-radius: 12px; box-shadow: var(--shadow); }
.primary-menu li:hover > .sub-menu, .primary-menu li:focus-within > .sub-menu { display: block; }
.primary-menu .sub-menu a { white-space: nowrap; }
.header-search { width: 190px; }
.search-form { display: flex; align-items: center; gap: 5px; }
.search-form label { display: block; flex: 1; min-width: 0; }
.search-field { width: 100%; min-width: 0; height: 40px; padding: 0 12px; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 9px; outline-offset: 2px; font-size: .88rem; }
.search-field::placeholder { color: #85817c; }
.search-submit { min-height: 40px; padding: 0 13px; border: 0; border-radius: 9px; background: var(--accent); color: #141414; font-size: .82rem; font-weight: 800; cursor: pointer; }
.search-submit:hover { background: var(--accent-bright); }

/* Page headings and hero */
.home-wrap { padding-top: 37px; }
.section-heading { margin-bottom: 24px; }
.home-heading { display: flex; flex-direction: column; align-items: flex-start; gap: 5px; }
.eyebrow { margin: 0 0 8px; color: #a84300; font-size: .73rem; font-weight: 900; letter-spacing: .13em; line-height: 1.3; text-transform: uppercase; }
h1, h2, h3, p { overflow-wrap: break-word; }
.section-heading h1, .section-heading h2 { margin: 0; font-size: clamp(1.85rem, 7vw, 3.3rem); font-weight: 900; letter-spacing: -.055em; line-height: 1.05; }
.section-description { max-width: 430px; margin: 4px 0 0; color: var(--muted); font-size: .98rem; }
.lead-story { overflow: hidden; display: grid; background: var(--ink); color: #fff; border-radius: var(--radius); box-shadow: var(--shadow); }
.lead-media { display: block; position: relative; overflow: hidden; aspect-ratio: 1.72 / 1; background: radial-gradient(circle at 76% 22%, rgba(255, 106, 0, .6), transparent 33%), linear-gradient(130deg, #252525, #080808 72%); }
.lead-image { width: 100%; height: 100%; object-fit: cover; }
.lead-copy { padding: 23px 21px 25px; }
.category-pill { display: inline-flex; align-items: center; width: fit-content; padding: 5px 9px; background: var(--accent-soft); color: #a84300; border-radius: 5px; font-size: .68rem; font-weight: 900; line-height: 1.2; letter-spacing: .045em; text-transform: uppercase; }
.category-pill:hover { background: var(--accent); color: #171717; }
.lead-title { max-width: 740px; margin: 12px 0 9px; font-size: clamp(1.7rem, 7vw, 3.15rem); font-weight: 900; letter-spacing: -.055em; line-height: 1.06; }
.lead-title a:hover { color: #ff9a55; }
.lead-excerpt { max-width: 650px; margin: 0 0 15px; color: #c8c6c3; font-size: .95rem; }
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; color: var(--muted); font-size: .76rem; }
.lead-copy .post-meta { color: #bdbbb8; }
.post-meta a { color: inherit; font-weight: 700; }
.post-meta a:hover { color: var(--accent); }
.meta-separator { color: var(--accent); font-weight: 900; }
.text-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 19px; color: #ff8a38; font-size: .9rem; font-weight: 900; }
.text-link:hover { color: #ffb37d; }

/* Cards */
.latest-heading { display: flex; align-items: center; gap: 16px; margin: 38px 0 17px; }
.latest-heading h2 { margin: 0; font-size: 1.4rem; font-weight: 900; letter-spacing: -.04em; line-height: 1.2; }
.latest-line { height: 1px; flex: 1; background: var(--line); }
.post-grid { display: grid; grid-template-columns: 1fr; gap: 18px; }
.post-card { min-width: 0; overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: 13px; transition: transform .18s ease, box-shadow .18s ease; }
.post-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card-media { display: block; position: relative; overflow: hidden; aspect-ratio: 1.62 / 1; background: radial-gradient(circle at 75% 22%, rgba(255, 106, 0, .45), transparent 32%), linear-gradient(140deg, #242424, #0d0d0d); }
.card-image { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.post-card:hover .card-image { transform: scale(1.025); }
.art-placeholder { display: grid; width: 100%; height: 100%; min-height: 175px; place-items: center; background: radial-gradient(circle at 72% 24%, rgba(255, 106, 0, .52), transparent 28%), linear-gradient(135deg, #242424 5%, #101010 78%); color: rgba(255,255,255,.92); }
.art-placeholder > span { display: grid; width: 68px; height: 68px; place-items: center; border: 1px solid rgba(255,255,255,.28); border-radius: 20px 20px 20px 5px; font-size: 2.2rem; font-weight: 950; letter-spacing: -.1em; transform: rotate(-5deg); }
.art-placeholder-large > span { width: 92px; height: 92px; font-size: 3rem; }
.card-copy { padding: 16px 16px 17px; }
.card-kicker { min-height: 23px; }
.card-kicker .category-pill { padding: 4px 7px; font-size: .61rem; }
.card-title { margin: 9px 0 7px; font-size: 1.16rem; font-weight: 850; letter-spacing: -.035em; line-height: 1.2; }
.card-title a:hover { color: #bd4d00; }
.card-excerpt { margin: 0 0 13px; color: #6f6b67; font-size: .87rem; line-height: 1.5; }
.card-meta { padding-top: 11px; border-top: 1px solid #f0eeeb; font-size: .7rem; }
.archive-layout { padding-top: 44px; }
.archive-description { max-width: 700px; margin-top: 12px; color: var(--muted); }
.archive-description p { margin: 0; }

/* Topic links */
.topic-band { display: grid; gap: 19px; margin-top: 48px; padding: 23px 20px; background: #171717; color: #fff; border-radius: var(--radius); }
.topic-band .eyebrow { color: #ff9652; }
.topic-band h2 { margin: 0; font-size: 1.55rem; font-weight: 900; letter-spacing: -.045em; }
.topic-links { display: flex; flex-wrap: wrap; gap: 8px; }
.topic-link { display: inline-flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid #414141; border-radius: 8px; color: #f4f4f4; font-size: .84rem; font-weight: 750; }
.topic-link span { color: #ff8a38; }
.topic-link:hover { border-color: var(--accent); background: #232323; color: #ffab71; }

/* Article and editor content */
.article-header { margin: 0 auto 24px; }
.article-header > .category-pill { margin-bottom: 14px; }
.article-title { margin: 0; font-size: clamp(2.1rem, 8vw, 4.4rem); font-weight: 950; letter-spacing: -.065em; line-height: .99; }
.article-deck { max-width: 760px; margin: 17px 0 15px; color: #5e5a56; font-size: clamp(1.08rem, 3vw, 1.32rem); line-height: 1.5; }
.article-meta { margin-top: 16px; }
.article-featured { margin: 25px 0 32px; }
.article-featured img { width: 100%; aspect-ratio: 1.6 / 1; object-fit: cover; border-radius: 14px; }
.article-featured figcaption { margin-top: 8px; color: var(--muted); font-size: .8rem; }
.entry-content { color: #292725; font-size: 1.05rem; line-height: 1.8; }
.entry-content > :first-child { margin-top: 0; }
.entry-content > :last-child { margin-bottom: 0; }
.entry-content h2, .entry-content h3, .entry-content h4 { margin: 1.6em 0 .6em; color: var(--ink); font-weight: 900; letter-spacing: -.04em; line-height: 1.15; }
.entry-content h2 { font-size: clamp(1.55rem, 5vw, 2.25rem); }
.entry-content h3 { font-size: 1.4rem; }
.entry-content p, .entry-content ul, .entry-content ol, .entry-content blockquote { margin-block: 0 1.25em; }
.entry-content a { color: #b84900; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.entry-content a:hover { color: var(--accent); }
.entry-content img { height: auto; border-radius: 10px; }
.entry-content figure { max-width: 100%; }
.entry-content blockquote { margin-inline: 0; padding: 5px 0 5px 19px; border-left: 4px solid var(--accent); color: #57524d; font-size: 1.12em; }
.entry-content blockquote p:last-child { margin-bottom: 0; }
.entry-content pre { overflow: auto; max-width: 100%; padding: 17px; background: #171717; color: #f7f7f7; border-radius: 10px; font-size: .86em; }
.entry-content code { padding: .15em .35em; background: #eeeae5; border-radius: 4px; font-size: .9em; }
.entry-content pre code { padding: 0; background: transparent; }
.entry-content table { display: block; width: 100%; overflow-x: auto; border-collapse: collapse; }
.entry-content th, .entry-content td { padding: 9px 12px; border: 1px solid var(--line); text-align: left; }
.entry-content th { background: #f0eeeb; }
.entry-content .wp-block-button__link { display: inline-block; padding: 10px 17px; background: var(--accent); color: #171717; border-radius: 8px; font-size: .9rem; font-weight: 850; text-decoration: none; }
.entry-content .wp-block-button__link:hover { background: var(--ink); color: #fff; }
.entry-content .alignwide { width: min(100vw - 32px, 1000px); max-width: 1000px; margin-left: 50%; transform: translateX(-50%); }
.entry-content .alignfull { width: 100vw; max-width: 100vw; margin-left: 50%; transform: translateX(-50%); }
.entry-content .wp-block-gallery { margin-block: 1.5em; }
.article-tag-wrap { margin-top: 26px; padding-top: 16px; border-top: 1px solid var(--line); }
.article-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: var(--muted); font-size: .83rem; }
.article-tags a { padding: 5px 9px; background: #ece9e4; border-radius: 6px; color: #35322f; font-weight: 700; }
.article-tags a:hover { background: var(--accent-soft); color: #a84300; }

/* Pagination, empty state, comments */
.navigation.pagination { margin-top: 28px; }
.nav-links { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 7px; }
.page-numbers { display: inline-grid; min-width: 40px; min-height: 40px; place-items: center; padding: 0 10px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink); font-size: .86rem; font-weight: 800; }
.page-numbers.current, .page-numbers:hover { border-color: var(--accent); background: var(--accent); color: #171717; }
.empty-state { padding: 35px 22px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.empty-state h2 { margin: 0 0 8px; font-size: 1.8rem; line-height: 1.1; letter-spacing: -.05em; }
.empty-state > p:not(.eyebrow) { color: var(--muted); }
.empty-state .search-form { max-width: 470px; }
.comments-area { margin-top: 42px; padding-top: 25px; border-top: 1px solid var(--line); }
.comments-title, .comment-reply-title { font-size: 1.5rem; letter-spacing: -.04em; }
.comment-list { padding-left: 20px; }
.comment-list li { margin-block: 14px; }
.comment-body { padding: 15px; background: #fff; border: 1px solid var(--line); border-radius: 10px; }
.comment-author { font-weight: 850; }
.comment-metadata, .comment-awaiting-moderation { color: var(--muted); font-size: .78rem; }
.comment-content { overflow-wrap: anywhere; }
.comment-form p { margin-block: 12px; }
.comment-form label { display: block; margin-bottom: 5px; font-size: .88rem; font-weight: 750; }
.comment-form input:not([type="checkbox"]), .comment-form textarea { width: 100%; padding: 11px 12px; background: #fff; border: 1px solid #d8d4cf; border-radius: 8px; }
.comment-form textarea { min-height: 130px; resize: vertical; }
.comment-form input[type="submit"], .button-link { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 43px; padding: 0 16px; background: var(--accent); color: #161616; border: 0; border-radius: 8px; font-size: .88rem; font-weight: 900; cursor: pointer; }
.comment-form input[type="submit"]:hover, .button-link:hover { background: var(--ink); color: #fff; }
.more-stories { margin-top: 44px; }

/* 404 and footer */
.error-page { padding-block: 54px 76px; }
.error-code { margin: 0; color: var(--accent); font-size: clamp(6rem, 25vw, 12rem); font-weight: 1000; letter-spacing: -.11em; line-height: .85; }
.error-page h1 { max-width: 650px; margin: 0; font-size: clamp(2rem, 8vw, 4rem); font-weight: 950; letter-spacing: -.065em; line-height: 1; }
.error-page > p:not(.eyebrow, .error-code) { max-width: 510px; color: var(--muted); }
.error-page .search-form { max-width: 450px; margin-block: 20px; }
.site-footer { background: #111; color: #eee; }
.footer-inner { display: grid; grid-template-columns: 1fr; gap: 23px; width: min(calc(100% - 32px), var(--content)); margin-inline: auto; padding-block: 34px 19px; }
.site-brand-footer { font-size: 1.2rem; }
.footer-brand p { max-width: 310px; margin: 10px 0 0; color: #aaa; font-size: .86rem; }
.footer-navigation ul { display: flex; flex-wrap: wrap; gap: 7px 15px; padding: 0; margin: 0; list-style: none; }
.footer-navigation a { color: #ccc; font-size: .83rem; }
.footer-navigation a:hover, .back-to-top:hover { color: #ff9852; }
.footer-bottom { display: flex; flex-direction: column; gap: 8px; padding-top: 15px; border-top: 1px solid #353535; color: #999; font-size: .77rem; }
.footer-bottom p { margin: 0; }
.back-to-top { width: fit-content; color: #ccc; font-weight: 750; }

@media (max-width: 760px) {
  .site-navigation { flex: 0 0 100%; order: 3; }
  .primary-menu { align-items: stretch; flex-direction: column; gap: 2px; padding-top: 6px; }
  .js .menu-toggle { display: grid; margin-left: auto; }
  .js .site-navigation { display: none; }
  .js .site-navigation.is-open { display: block; }
  .js .primary-menu { align-items: stretch; flex-direction: column; gap: 2px; padding-top: 6px; }
  .js .primary-menu a { padding: 11px 12px; }
  .js .primary-menu .sub-menu { position: static; display: block; margin-left: 12px; padding: 2px 7px; border: 0; box-shadow: none; }
  .js .primary-menu .sub-menu a { white-space: normal; }
  .header-search { width: 100%; order: 4; }
  .header-inner { gap: 10px 14px; }
}
@media (min-width: 600px) {
  .content-wrap { width: min(calc(100% - 48px), var(--content)); padding-block: 52px 72px; }
  .header-inner, .footer-inner { width: min(calc(100% - 48px), var(--content)); }
  .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
  .card-copy { padding: 18px; }
  .lead-copy { padding: 28px; }
  .topic-band { padding: 28px; }
  .footer-bottom { flex-direction: row; justify-content: space-between; align-items: center; }
}
@media (min-width: 761px) {
  .menu-toggle { display: none !important; }
  .header-inner { flex-wrap: nowrap; gap: 14px; }
  .site-navigation { display: block !important; }
  .header-search { flex: 0 0 175px; }
  .site-tagline { max-width: 250px; }
}
@media (min-width: 900px) {
  .home-wrap { padding-top: 52px; }
  .home-heading { flex-direction: row; justify-content: space-between; align-items: end; margin-bottom: 29px; }
  .section-description { margin: 0 0 3px; text-align: right; }
  .lead-story { grid-template-columns: minmax(0, 1.22fr) minmax(310px, .78fr); min-height: 370px; }
  .lead-media { height: 100%; min-height: 370px; aspect-ratio: auto; }
  .lead-copy { display: flex; flex-direction: column; justify-content: center; padding: 34px clamp(25px, 4vw, 55px); }
  .lead-title { font-size: clamp(2rem, 3.4vw, 3.25rem); }
  .post-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
  .topic-band { grid-template-columns: minmax(210px, .7fr) 1.3fr; align-items: center; padding: 31px 34px; }
  .footer-inner { grid-template-columns: 1.3fr 1fr; align-items: start; }
  .footer-bottom { grid-column: 1 / -1; }
}
@media (min-width: 1100px) {
  .header-search { flex-basis: 205px; }
  .primary-menu { gap: 8px; }
  .primary-menu a { padding-inline: 12px; }
  .lead-story { min-height: 415px; }
  .lead-media { min-height: 415px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
