* {
    box-sizing: border-box;
}

body {
    background: #E7E7E9;
    color: #222;
    font-family: Arial, Helvetica, sans-serif;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
}

.site-header {
    background: #E7E7E9;
    border-bottom: 1px solid rgba(0,0,0,.08);
    position: relative;
    z-index: 10;
}

.header-inner {
    max-width: 1360px;
    margin: 0 auto;
    padding: 18px 42px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.site-branding {
    flex: 0 0 auto;
}

.site-logo,
.custom-logo {
    width: 155px;
    max-height: 105px;
    object-fit: contain;
    display: block;
}

.rotw-menu {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 34px;
    flex-wrap: wrap;
}

.rotw-menu li {
    position: relative;
}

.rotw-menu a {
    display: block;
    padding: 10px 0;
    font-size: 14px;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: .06em;
    font-weight: 700;
}

.rotw-menu a:hover,
.rotw-menu .current-menu-item > a,
.rotw-menu .current_page_item > a {
    border-bottom: 2px solid #222;
}

.rotw-menu .sub-menu {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    z-index: 20;
    min-width: 190px;
    padding: 12px 16px;
    margin: 0;
    list-style: none;
    background: #E7E7E9;
    box-shadow: 0 12px 24px rgba(0,0,0,.12);
}

.rotw-menu li:hover > .sub-menu,
.rotw-menu li:focus-within > .sub-menu {
    display: block;
}

.rotw-menu .sub-menu a {
    white-space: nowrap;
    text-align: left;
}

.hero {
    min-height: 500px;
    display: flex;
    align-items: center;
    background:
        linear-gradient(90deg, rgba(231,231,233,1) 0%, rgba(231,231,233,.96) 42%, rgba(231,231,233,.62) 100%),
        radial-gradient(circle at 78% 56%, rgba(0,0,0,.12), transparent 35%);
}

.hero-content {
    max-width: 1360px;
    width: 100%;
    margin: 0 auto;
    padding: 72px 42px;
}

.hero h1 {
    max-width: 620px;
    margin: 0 0 24px;
    font-size: clamp(44px, 6vw, 78px);
    line-height: .98;
    letter-spacing: -.045em;
}

.hero p {
    max-width: 520px;
    margin: 0 0 32px;
    font-size: 18px;
    line-height: 1.6;
}

.button,
.wp-block-button__link {
    display: inline-block;
    background: #222;
    color: #fff;
    text-decoration: none;
    padding: 15px 28px;
    text-transform: uppercase;
    letter-spacing: .06em;
    font-weight: 700;
    border-radius: 0;
}

.shortcode-section {
    max-width: 1100px;
    margin: 0 auto;
    padding: 56px 24px 78px;
    text-align: center;
}

.shortcode-section h2,
.home-widget-title {
    text-transform: uppercase;
    letter-spacing: .12em;
    font-size: 24px;
    margin: 0 0 14px;
}

.shortcode-section > p {
    margin: 0 0 24px;
}

.shortcode-box,
.home-shortcode-area {
    margin: 0 auto 22px;
    padding: 42px 24px;
    background: rgba(255,255,255,.42);
    border: 1px solid rgba(0,0,0,.05);
}

.shortcode-icon {
    font-size: 32px;
    margin-bottom: 10px;
}

.content-wrap {
    max-width: 1180px;
    margin: 0 auto;
    padding: 58px 24px 78px;
}

.page-header {
    text-align: center;
    margin-bottom: 34px;
}

.page-header h1 {
    margin: 0;
    font-size: clamp(34px, 5vw, 58px);
    text-transform: uppercase;
    letter-spacing: .08em;
}

.page-content,
.single-post,
.posts-list {
    min-width: 0;
}

.entry-content,
.page-content {
    line-height: 1.75;
    font-size: 17px;
}

.entry-content > *:first-child {
    margin-top: 0;
}

.entry-content iframe,
.entry-content embed,
.entry-content object {
    max-width: 100%;
}

.entry-content .alignwide {
    max-width: 1180px;
    margin-left: auto;
    margin-right: auto;
}

.blog-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 48px;
}

.post-card {
    background: rgba(255,255,255,.38);
    border: 1px solid rgba(0,0,0,.06);
    margin-bottom: 30px;
}

.post-card-content {
    padding: 26px;
}

.post-card h2 {
    margin: 0 0 10px;
    font-size: 30px;
}

.post-card h2 a,
.read-more {
    text-decoration: none;
}

.read-more {
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    font-size: 13px;
}

.post-meta {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: .08em;
    opacity: .65;
    margin-bottom: 14px;
}

.post-thumb img,
.single-featured img {
    display: block;
    width: 100%;
}

.single-featured {
    margin-bottom: 30px;
}

.sidebar .widget {
    margin-bottom: 28px;
    padding: 22px;
    background: rgba(255,255,255,.34);
    border: 1px solid rgba(0,0,0,.06);
}

.widget-title {
    margin-top: 0;
    text-transform: uppercase;
    letter-spacing: .08em;
    font-size: 16px;
}

.search-form {
    display: flex;
    gap: 8px;
}

.search-field {
    width: 100%;
    padding: 11px;
    border: 1px solid #aaa;
    background: #fff;
}

.search-submit {
    padding: 11px 15px;
    background: #222;
    color: #fff;
    border: 0;
    cursor: pointer;
}

.site-footer {
    background: #222;
    color: #fff;
}

.footer-inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 46px 24px;
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 60px;
    align-items: start;
}

.footer-brand img {
    width: 180px;
    max-height: 135px;
    object-fit: contain;
    display: block;
}

.footer-brand p {
    font-size: 13px;
    opacity: .8;
    margin-top: 22px;
}

.footer-widgets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 32px;
}

.footer-widget-title,
.footer-widget h3 {
    margin-top: 0;
    text-transform: uppercase;
    letter-spacing: .08em;
    font-size: 14px;
}

.footer-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-menu a {
    color: #fff;
    text-decoration: none;
}

.screen-reader-text {
    border: 0;
    clip: rect(1px,1px,1px,1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}

@media (max-width: 900px) {
    .header-inner {
        padding: 18px 22px;
        align-items: flex-start;
        flex-direction: column;
        gap: 18px;
    }

    .site-logo,
    .custom-logo {
        width: 135px;
        max-height: 95px;
    }

    .rotw-menu {
        justify-content: flex-start;
        gap: 18px;
    }

    .rotw-menu .sub-menu {
        position: static;
        display: block;
        box-shadow: none;
        padding: 0 0 0 14px;
        background: transparent;
    }

    .blog-layout,
    .footer-inner {
        grid-template-columns: 1fr;
    }

    .hero-content {
        padding: 54px 24px;
    }

    .footer-brand img {
        width: 155px;
    }
}


/* Admin bar / viewport fit fixes */
html,
body {
    max-width: 100%;
    overflow-x: hidden;
}

body.admin-bar {
    min-height: calc(100vh - 32px);
}

.header-inner {
    padding-top: 12px;
    padding-bottom: 12px;
}

.site-logo,
.custom-logo {
    width: 120px;
    max-height: 82px;
}

.hero {
    min-height: clamp(340px, calc(100vh - 185px), 500px);
}

body.admin-bar .hero {
    min-height: clamp(320px, calc(100vh - 217px), 470px);
}

.hero-content {
    padding-top: clamp(38px, 7vh, 64px);
    padding-bottom: clamp(38px, 7vh, 64px);
}

.hero h1 {
    font-size: clamp(38px, 5vw, 68px);
}

.content-wrap {
    padding-top: 44px;
}

@media screen and (max-width: 782px) {
    body.admin-bar {
        min-height: calc(100vh - 46px);
    }

    body.admin-bar .hero {
        min-height: clamp(300px, calc(100vh - 245px), 440px);
    }

    .header-inner {
        padding: 12px 18px;
    }

    .site-logo,
    .custom-logo {
        width: 110px;
        max-height: 78px;
    }
}

@media (max-width: 900px) {
    .site-logo,
    .custom-logo {
        width: 110px;
        max-height: 78px;
    }

    .hero {
        min-height: auto;
    }
}
