/* Warnercasino — responsive editorial theme */
:root {
    --bg: #ffffff;
    --surface: #ffffff;
    --surface-soft: #f7f7f5;
    --text: #202124;
    --heading: #111318;
    --muted: #74777d;
    --line: #e8e8e4;
    --accent: #b58a2a;
    --accent-dark: #8b681d;
    --nav: #25272c;
    --shadow: 0 18px 45px rgba(22, 25, 31, 0.06);
    --radius: 2px;
    --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.75;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid rgba(181, 138, 42, .32); outline-offset: 3px; }
.sr-only { 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; left: 18px; top: -100px; z-index: 9999; padding: 10px 16px; background: var(--heading); color: #fff; transition: top .2s ease; }
.skip-link:focus { top: 18px; }

.site-header {
    position: relative;
    z-index: 50;
    background: rgba(255, 255, 255, .98);
    border-bottom: 1px solid var(--line);
}
.header-inner {
    width: min(calc(100% - 48px), var(--container));
    min-height: 104px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 48px;
}
.site-logo { display: inline-flex; flex: 0 0 auto; align-items: center; }
.site-logo img { display: block; width: 270px; height: 64px; object-fit: contain; }
.primary-nav { margin-left: 12px; }
.primary-nav ul { display: flex; align-items: center; flex-wrap: wrap; gap: 30px; margin: 0; padding: 0; list-style: none; }
.primary-nav a {
    position: relative;
    display: block;
    padding: 40px 0 38px;
    color: var(--nav);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: .01em;
    white-space: nowrap;
    transition: color .2s ease;
}
.primary-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 100%;
    bottom: 27px;
    height: 2px;
    background: var(--accent);
    transition: right .2s ease;
}
.primary-nav a:hover, .primary-nav a.active { color: var(--accent-dark); }
.primary-nav a:hover::after, .primary-nav a.active::after { right: 0; }
.menu-toggle { display: none; }

.site-main { padding: 70px 0 94px; }
.content-grid {
    width: min(calc(100% - 48px), var(--container));
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 74px;
    align-items: start;
}
.content-column { min-width: 0; }

.post-card {
    position: relative;
    padding: 0 0 52px;
    margin: 0 0 48px;
    border-bottom: 1px solid var(--line);
}
.post-card:last-of-type { margin-bottom: 0; }
.post-category {
    display: inline-block;
    margin-bottom: 11px;
    color: var(--accent-dark);
    font-size: 12px;
    line-height: 1.3;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}
.post-category:hover { color: var(--heading); }
.post-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; color: var(--muted); font-size: 13px; line-height: 1.5; }
.post-meta a:hover { color: var(--accent-dark); }
.post-title {
    margin: 13px 0 16px;
    color: var(--heading);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(27px, 2.4vw, 36px);
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: -.018em;
}
.post-title a { transition: color .2s ease; }
.post-title a:hover { color: var(--accent-dark); }
.post-excerpt { max-width: 760px; margin: 0 0 21px; color: #555960; font-size: 16px; line-height: 1.8; }
.read-more { display: inline-flex; align-items: center; gap: 10px; color: var(--heading); font-size: 13px; font-weight: 700; letter-spacing: .04em; }
.read-more span { color: var(--accent); transition: transform .2s ease; }
.read-more:hover { color: var(--accent-dark); }
.read-more:hover span { transform: translateX(4px); }

.sidebar { min-width: 0; }
.widget { margin: 0 0 42px; }
.widget-title {
    position: relative;
    margin: 0 0 21px;
    padding: 0 0 13px;
    color: var(--heading);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 21px;
    line-height: 1.3;
    font-weight: 700;
}
.widget-title::after { content: ""; position: absolute; left: 0; bottom: 0; width: 38px; height: 2px; background: var(--accent); }
.search-form { display: flex; width: 100%; }
.search-form input {
    min-width: 0;
    width: 100%;
    height: 46px;
    padding: 0 14px;
    border: 1px solid #dfe0dc;
    border-right: 0;
    border-radius: var(--radius) 0 0 var(--radius);
    background: #fff;
    color: var(--text);
    font: inherit;
    font-size: 14px;
}
.search-form input::placeholder { color: #9a9da2; }
.search-form button {
    flex: 0 0 auto;
    height: 46px;
    padding: 0 18px;
    border: 1px solid var(--accent-dark);
    border-radius: 0 var(--radius) var(--radius) 0;
    background: var(--accent-dark);
    color: #fff;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: background .2s ease, border-color .2s ease;
}
.search-form button:hover { background: var(--heading); border-color: var(--heading); }
.widget-banner { margin: 4px 0 46px; }
.sidebar-banner-link { display: inline-flex; max-width: 100%; text-decoration: none; }
.sidebar-banner-frame {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 288px;
    max-width: 100%;
    overflow: hidden;
    border: 1px solid #d8cba0;
    border-radius: 4px;
    background: #f8f0cf;
    box-shadow: 0 8px 18px rgba(14, 19, 29, .08);
    transition: transform .2s ease, box-shadow .2s ease;
}
.sidebar-banner {
    display: block;
    width: 288px;
    max-width: 100%;
    height: auto;
    object-fit: contain;
}
.sidebar-banner-label {
    display: none;
}
.sidebar-banner-link:hover .sidebar-banner-frame { transform: translateY(-2px); box-shadow: 0 12px 24px rgba(14, 19, 29, .12); }
.widget-list { margin: 0; padding: 0; list-style: none; }
.widget-list li { padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 14px; line-height: 1.55; }
.widget-list li:first-child { padding-top: 0; }
.widget-list a { color: #4b4f55; transition: color .2s ease; }
.widget-list a:hover { color: var(--accent-dark); }
.category-list a { display: flex; align-items: center; justify-content: space-between; }
.muted { margin: 0; color: var(--muted); font-size: 14px; }
.tag-cloud { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 11px; }
.tag-cloud a { color: #666a70; line-height: 1.4; transition: color .2s ease; }
.tag-cloud a:hover { color: var(--accent-dark); }
.tag-size-1 { font-size: 12px; }
.tag-size-2 { font-size: 13px; }
.tag-size-3 { font-size: 15px; }
.tag-size-4 { font-size: 17px; }

.single-entry .entry-header { margin-bottom: 31px; }
.single-entry h1, .archive-header h1 {
    margin: 0;
    color: var(--heading);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(36px, 4.4vw, 54px);
    line-height: 1.13;
    font-weight: 700;
    letter-spacing: -.025em;
}
.post-entry .entry-header .post-category { margin-bottom: 15px; }
.post-entry .entry-header .post-meta { margin-top: 18px; }
.entry-content { color: #43474d; font-size: 17px; line-height: 1.9; }
.entry-content .entry-lead { margin-top: 0; color: #555a61; font-size: 19px; line-height: 1.8; }
.entry-content p { margin: 0 0 22px; }
.entry-content h2 {
    margin: 44px 0 17px;
    color: var(--heading);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(26px, 3vw, 34px);
    line-height: 1.26;
    letter-spacing: -.015em;
}
.entry-content ul, .entry-content ol { margin: 0 0 26px; padding-left: 24px; }
.entry-content li { margin-bottom: 10px; padding-left: 5px; }
.entry-content li::marker { color: var(--accent); }
.entry-footer { margin-top: 48px; padding-top: 25px; border-top: 1px solid var(--line); }
.entry-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.entry-tags a { padding: 5px 9px; background: var(--surface-soft); color: #63666c; font-size: 12px; line-height: 1.5; transition: color .2s ease, background .2s ease; }
.entry-tags a:hover { background: #eee9dc; color: var(--accent-dark); }
.page-entry .entry-header { margin-bottom: 30px; }
.page-entry .entry-content > p:first-child { font-size: 18px; }
.archive-header { margin-bottom: 42px; padding-bottom: 26px; border-bottom: 1px solid var(--line); }
.archive-header p { margin: 0 0 7px; color: var(--accent-dark); font-size: 12px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.archive-header h1 { font-size: clamp(34px, 4vw, 48px); }

.pagination { display: flex; justify-content: space-between; gap: 20px; padding-top: 35px; font-weight: 600; font-size: 14px; }
.pagination a { color: var(--heading); }
.pagination a:hover { color: var(--accent-dark); }
.empty-state, .not-found { padding: 42px; background: var(--surface-soft); border: 1px solid var(--line); }
.empty-state h2 { margin-top: 0; font-family: Georgia, "Times New Roman", serif; }
.not-found .error-code { margin: 0; color: var(--accent); font-size: 72px; line-height: 1; font-weight: 800; }
.not-found h1 { margin-top: 16px; font-size: clamp(32px, 4vw, 48px); }
.not-found > p:not(.error-code) { max-width: 620px; color: var(--muted); }
.button-link { display: inline-flex; margin-top: 10px; padding: 12px 20px; background: var(--heading); color: #fff; font-size: 14px; font-weight: 700; }
.button-link:hover { background: var(--accent-dark); }

.site-footer { border-top: 1px solid var(--line); background: #fafaf8; }
.footer-inner {
    width: min(calc(100% - 48px), var(--container));
    min-height: 126px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}
.footer-brand { color: var(--heading); font-family: Georgia, "Times New Roman", serif; font-size: 22px; font-weight: 700; }
.footer-inner p { margin: 0; color: var(--muted); font-size: 13px; }

@media (max-width: 1100px) {
    .header-inner { gap: 22px; }
    .site-logo img { width: 236px; height: 56px; }
    .primary-nav ul { gap: 20px; }
    .primary-nav a { font-size: 13px; }
    .content-grid { grid-template-columns: minmax(0, 1fr) 295px; gap: 50px; }
}

@media (max-width: 900px) {
    .header-inner { min-height: 86px; }
    .site-logo img { width: 228px; height: 54px; }
    .menu-toggle {
        display: inline-flex;
        align-items: center;
        gap: 10px;
        padding: 10px 0 10px 12px;
        border: 0;
        background: transparent;
        color: var(--heading);
        font: inherit;
        font-size: 13px;
        font-weight: 700;
        cursor: pointer;
    }
    .menu-icon { width: 23px; display: grid; gap: 4px; }
    .menu-icon i { display: block; width: 100%; height: 2px; background: currentColor; transition: transform .2s ease, opacity .2s ease; }
    .menu-toggle[aria-expanded="true"] .menu-icon i:nth-child(1) { transform: translateY(6px) rotate(45deg); }
    .menu-toggle[aria-expanded="true"] .menu-icon i:nth-child(2) { opacity: 0; }
    .menu-toggle[aria-expanded="true"] .menu-icon i:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
    .primary-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        max-height: 0;
        overflow: hidden;
        background: #fff;
        border-bottom: 1px solid var(--line);
        box-shadow: var(--shadow);
        transition: max-height .3s ease;
    }
    .primary-nav.open { max-height: 430px; }
    .primary-nav ul { width: min(calc(100% - 48px), var(--container)); margin: 0 auto; padding: 10px 0 20px; display: block; }
    .primary-nav li { border-bottom: 1px solid var(--line); }
    .primary-nav li:last-child { border-bottom: 0; }
    .primary-nav a { padding: 13px 0; font-size: 14px; white-space: normal; }
    .primary-nav a::after { display: none; }
    .content-grid { grid-template-columns: minmax(0, 1fr); gap: 70px; }
    .sidebar { padding-top: 10px; border-top: 1px solid var(--line); }
    .sidebar { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 40px; }
    .widget { margin-bottom: 28px; }
    .widget-search, .widget:last-child { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
    .header-inner, .content-grid, .footer-inner, .primary-nav ul { width: min(calc(100% - 34px), var(--container)); }
    .header-inner { min-height: 76px; }
    .site-logo img { width: 188px; height: 44px; }
    .menu-toggle-label { display: none; }
    .site-main { padding: 45px 0 65px; }
    .post-card { margin-bottom: 37px; padding-bottom: 39px; }
    .post-title { font-size: 29px; }
    .post-excerpt { font-size: 15px; }
    .single-entry h1, .archive-header h1 { font-size: 37px; }
    .entry-content { font-size: 16px; line-height: 1.82; }
    .entry-content .entry-lead { font-size: 17px; }
    .entry-content h2 { margin-top: 35px; font-size: 27px; }
    .sidebar { display: block; }
    .widget { margin-bottom: 38px; }
    .footer-inner { min-height: 140px; padding: 30px 0; flex-direction: column; align-items: flex-start; justify-content: center; gap: 7px; }
    .empty-state, .not-found { padding: 28px 23px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .001ms !important; animation-duration: .001ms !important; animation-iteration-count: 1 !important; }
}