@font-face {
    font-family: "Roboto";
    src: url("/assets/fonts/roboto-400.ttf") format("truetype");
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: "Roboto";
    src: url("/assets/fonts/roboto-700.ttf") format("truetype");
    font-style: normal;
    font-weight: 700;
    font-display: swap;
}

@font-face {
    font-family: "Roboto";
    src: url("/assets/fonts/roboto-900.ttf") format("truetype");
    font-style: normal;
    font-weight: 900;
    font-display: swap;
}

@font-face {
    font-family: "Zen Antique";
    src: url("/assets/fonts/zen-antique-400.ttf") format("truetype");
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    background: #000;
    color: #fff;
    font-family: Roboto, Arial, Helvetica, sans-serif;
    font-size: 16px;
    line-height: 1.625;
}

a {
    color: #fff;
}

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

.content-wrap {
    width: 1180px;
    max-width: 90%;
    margin: 0 auto;
}


/* Header */

.site-header {
    width: 100%;
}

.site-branding {
    width: 100%;
    margin: 45px 0 50px;
    text-align: center;
}

.site-title {
    display: inline-block;
    color: #fff;
    font-family: "Zen Antique", serif;
    font-size: 48px;
    font-weight: 500;
    line-height: 1.5;
    text-decoration: none;
}

.site-description {
    margin: 15px 0 0;
    color: #fff;
    font-size: 18px;
}


/* Main navigation */

.main-navigation {
    width: 100%;
    border-top: 1px solid #fff;
    border-bottom: 1px solid #fff;
    text-align: center;
}

.primary-menu {
    width: 1180px;
    max-width: 90%;
    margin: 0 auto;
    padding: 0;
    list-style: none;
}

.primary-menu > li {
    position: relative;
    display: inline-block;
}

.primary-menu > li > a {
    display: block;
    padding: 14px 16px;
    color: #fff;
    font-size: 15px;
    font-weight: 400;
    text-decoration: none;
    text-transform: uppercase;
}

.primary-menu > li > a:hover {
    text-decoration: underline;
}


/* Dropdown */

.menu-parent {
    position: relative;
}

.sub-menu {
    display: none;
    position: absolute;
    z-index: 100;
    top: 100%;
    left: 0;

    min-width: 240px;
    margin: 0;
    padding: 0;

    background: #000;
    border: 1px solid #fff;
    list-style: none;
    text-align: left;
}

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

.sub-menu li {
    display: block;
}

.sub-menu a {
    display: block;
    padding: 10px 15px;
    color: #fff;
    text-decoration: none;
}

.sub-menu a:hover {
    text-decoration: underline;
}


/* Mobile menu button */

.mobile-menu-toggle {
    display: none;
}


/* Header image */

.header-image {
    width: 1180px;
    max-width: 90%;
    margin: 45px auto;
    text-align: center;
}

.header-image img {
    display: block;
    max-width: 100%;
    margin: 0 auto;
}


/* Main two-column layout */

.site-layout {
    display: flex;
    align-items: flex-start;
}

.main-content {
    width: 66%;
    margin-right: 4%;
}

.sidebar {
    width: 30%;
}


/* Post cards */

.post-card {
    width: 100%;
    margin: 0 0 40px;
    padding: 20px;

    border: 1px solid #fff;
    border-radius: 3px;
}

.post-card__cover {
    width: 100%;
    margin-bottom: 10px;
    text-align: center;
}

.post-card__cover img {
    display: block;
    width: 100%;
    height: auto;
}

.post-card__title {
    margin: 15px 0;
    color: #fff;
    font-size: 30px;
    font-weight: 700;
    line-height: 1.5;
    text-align: center;
}

.post-card__title a {
    color: #fff;
    text-decoration: none;
}

.post-card__title a:hover {
    text-decoration: underline;
}

.post-card__excerpt {
    color: #fff;
    line-height: 1.5;
}

.post-card__excerpt p {
    margin: 0 0 1.5em;
}

.post-card__more {
    text-align: center;
}

.post-card__more a {
    display: inline-block;

    margin: auto;
    padding: 15px 25px;

    background: #d3a655;
    border-radius: 3px;

    color: #fff;
    font-size: 15px;
    font-weight: 400;
    text-decoration: none;
}


/* Sidebar */

.sidebar-block {
    width: 100%;
    margin: 0 0 20px;
    padding: 8.8%;

    border: 1px solid #fff;
    border-radius: 3px;
}

.sidebar-search label {
    display: block;
    margin-bottom: 5px;
}

.sidebar-search input {
    width: 100%;
    height: 46px;
    padding: 0 16px;

    background: transparent;
    border: 1px solid #fff;
    border-radius: 3px;

    color: #fff;
    font: inherit;
}

.sidebar-search input::placeholder {
    color: #aaa;
}

.sidebar-links ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.sidebar-links li {
    width: 100%;
}

.sidebar-links a {
    text-decoration: none;
}

.sidebar-links a:hover {
    text-decoration: underline;
}

.sidebar-image img {
    display: block;
    width: 100%;
}

.sidebar-image a {
    display: block;
}


/* Pagination */

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;

    margin: 20px 0 50px;
}

.pagination__button {
    display: inline-block;
    padding: 10px 18px;

    border: 1px solid #fff;
    border-radius: 3px;

    color: #fff;
    text-decoration: none;
}

.pagination__current {
    color: #fff;
}


/* Footer */

.site-footer {
    width: 100%;
    margin-top: 40px;
    background: #000;
    border-top: 1px solid #fff;
}

.site-footer__inner {
    width: 1180px;
    max-width: 90%;
    margin: 0 auto;
    padding: 30px 0;

    color: #fff;
    font-size: 14px;
    text-align: center;
}

.site-footer__inner p {
    margin: 0;
}


/* Accessibility */

.skip-link {
    position: absolute;
    left: -9999px;
}

.skip-link:focus {
    left: 10px;
    top: 10px;
    z-index: 1000;

    padding: 10px;

    background: #fff;
    color: #000;
}


/* Responsive */

@media (max-width: 992px) {
    .site-layout {
        display: block;
    }

    .main-content,
    .sidebar {
        width: 100%;
        margin: 0;
    }
}

@media (max-width: 700px) {
    .site-branding {
        margin-top: 20px;
        margin-bottom: 25px;
    }

    .site-title {
        font-size: 29px;
    }

    .site-description {
        font-size: 14px;
    }

    .header-image {
        margin-top: 30px;
        margin-bottom: 30px;
    }

    .post-card {
        padding: 15px;
    }

    .post-card__title {
        font-size: 20px;
    }

    .post-card__excerpt {
        font-size: 14px;
    }
}

/* Single post */

.single-post {
    width: 100%;
    padding: 20px;
    border: 1px solid #fff;
    border-radius: 3px;
}

.single-post__title {
    margin: 0 0 10px;
    color: #fff;
    font-size: 30px;
    font-weight: 700;
    line-height: 1.5;
    text-align: center;
}

.single-post__meta {
    margin-bottom: 25px;
    color: #fff;
    font-size: 15px;
    text-align: center;
}

.single-post__meta span + span::before {
    content: " · ";
}

.single-post__meta a {
    color: #fff;
}

.single-post__content {
    color: #fff;
    font-size: 16px;
    line-height: 1.5;
}

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

.single-post__content iframe {
    max-width: 100%;
}

.single-post__content blockquote {
    margin: 1.5em 0;
    padding-left: 20px;
    border-left: 3px solid #d3a655;
}

.single-post__tags {
    margin-top: 30px;
}

.single-post__tags a {
    display: inline-block;
    margin: 0 8px 8px 0;
    color: #fff;
    font-size: 13px;
}


/* Category / tag archives */

.archive-header {
    margin: 0 0 30px;
    padding: 15px 20px;
    border: 1px solid #fff;
    border-radius: 3px;
    text-align: center;
}

.archive-header h1 {
    margin: 0;
    color: #fff;
    font-size: 28px;
    font-weight: 700;
}


@media (max-width: 700px) {
    .single-post {
        padding: 15px;
    }

    .single-post__title {
        font-size: 20px;
    }

    .single-post__content {
        font-size: 14px;
    }

    .archive-header h1 {
        font-size: 22px;
    }
}

/* Static pages */

.static-page .single-post__title {
    text-align: left;
}


/* Search */

.search-page,
.error-page {
    width: 100%;
    padding: 20px;

    border: 1px solid #fff;
    border-radius: 3px;
}

.search-page h1,
.error-page h1 {
    margin: 0 0 20px;
    color: #fff;
    font-size: 30px;
    font-weight: 700;
}

#search-form {
    margin-bottom: 30px;
}

#search-input {
    width: 100%;
    height: 46px;
    padding: 0 16px;

    background: transparent;
    border: 1px solid #fff;
    border-radius: 3px;

    color: #fff;
    font: inherit;
}

#search-input::placeholder {
    color: #aaa;
}

.search__loop article {
    margin-bottom: 25px;
}

.search__loop a {
    color: #fff;
}

.more {
    margin-top: 25px;
    text-align: center;
}

.more__button {
    display: inline-block;
    padding: 12px 20px;

    background: #d3a655;
    border-radius: 3px;

    color: #fff;
    text-decoration: none;
}

.hide {
    display: none;
}


@media (max-width: 700px) {
    .search-page,
    .error-page {
        padding: 15px;
    }

    .search-page h1,
    .error-page h1 {
        font-size: 22px;
    }
}


/* dead.pw production typography */

@font-face {
    font-family: "Cinzel Decorative";
    src: url("/assets/fonts/cinzel-decorative-400.ttf") format("truetype");
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: "Cinzel";
    src: url("/assets/fonts/cinzel-400.ttf") format("truetype");
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: "Lora";
    src: url("/assets/fonts/lora-400.ttf") format("truetype");
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}


/* Header — match current dead.pw */

.site-title {
    font-family: "Cinzel Decorative", serif;
    font-size: 48px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #fff;
    text-shadow: 0 0 5px #333;
}

.site-description {
    font-family: "Lora", serif;
    color: #ccc;
    font-style: italic;
    font-size: 15px;
}


/* Navigation */

.main-navigation {
    width: 1180px;
    max-width: 90%;
    margin: 0 auto;
}

.main-navigation a {
    font-family: "Cinzel", serif;
    color: #fff;
    transition: 0.3s ease;
}

.main-navigation a:hover {
    color: #88aaff;
    text-shadow: 0 0 8px #445;
}


/* Post card action */

.post-card__more a {
    padding: 10px 20px;

    background: linear-gradient(135deg, #111, #1a1a1a);
    border: 1px solid #88aaff;
    border-radius: 6px;

    color: #88aaff;

    font-family: "Cinzel", serif;
    font-size: 14px;
    letter-spacing: 1px;
    text-transform: uppercase;

    box-shadow: 0 0 10px #88aaff33;
    transition: 0.3s ease;
}

.post-card__more a:hover {
    background: #1a1a1a;
    color: #fff;
    border-color: #88aaff;
    box-shadow: 0 0 20px #88aaffaa, inset 0 0 5px #88aaff55;
}


@media (max-width: 700px) {
    .site-title {
        font-size: 29px;
    }

    .site-description {
        font-size: 14px;
    }
}

/* ===== final link/hover tuning ===== */

/* Site title */
.site-title {
    text-decoration: none;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

.site-title:hover,
.site-title:focus {
    color: #88aaff;
    text-decoration: none;
    text-shadow: 0 0 8px #445;
}

/* Main navigation */
.main-navigation a,
.main-navigation a:visited {
    text-decoration: none;
}

.main-navigation a:hover,
.main-navigation a:focus {
    color: #88aaff;
    text-decoration: none;
    text-shadow: 0 0 8px #445;
}

/* Sidebar category separators */
.sidebar-links li {
    border-bottom: 1px solid #fff;
}

.sidebar-links li:last-child {
    border-bottom: 0;
}

/* Sidebar links */
.sidebar-links a,
.sidebar-links a:visited {
    display: block;
    text-decoration: none;
}

.sidebar-links a:hover,
.sidebar-links a:focus {
    color: #88aaff;
    text-decoration: none;
    text-shadow: 0 0 8px #445;
}

/* Footer links */
.site-footer a,
.site-footer a:visited {
    text-decoration: none;
}

.site-footer a:hover,
.site-footer a:focus {
    color: #88aaff;
    text-decoration: none;
    text-shadow: 0 0 8px #445;
}

/* ===== dead.pw final navigation/sidebar match ===== */

/* Desktop menu: no underline, only blue glow */
.primary-menu > li > a,
.primary-menu > li > a:visited,
.primary-menu > li > a:hover,
.primary-menu > li > a:focus,
.primary-menu .sub-menu a,
.primary-menu .sub-menu a:hover,
.primary-menu .sub-menu a:focus {
    text-decoration: none !important;
}

.primary-menu > li > a:hover,
.primary-menu > li > a:focus,
.primary-menu .sub-menu a:hover,
.primary-menu .sub-menu a:focus {
    color: #88aaff;
    text-shadow: 0 0 8px #445;
}

/* Production sidebar uses fixed 20px padding */
.sidebar-block {
    padding: 20px;
}

/* Category list */
.sidebar-links ul {
    width: 100%;
    margin: 0;
    padding: 0;
}

.sidebar-links li {
    width: 100%;
    margin: 0;
    padding: 0;
    border-bottom: 1px solid #fff;
}

.sidebar-links li:last-child {
    border-bottom: 0;
}

.sidebar-links a,
.sidebar-links a:visited {
    display: block;
    padding: 7px 0;
    color: #fff;
    text-decoration: none !important;
}

.sidebar-links li:first-child a {
    padding-top: 0;
}

.sidebar-links li:last-child a {
    padding-bottom: 0;
}

.sidebar-links a:hover,
.sidebar-links a:focus {
    color: #88aaff;
    text-decoration: none !important;
    text-shadow: 0 0 8px #445;
}

/* ===== B-SIDE dropdown: match old dead.pw ===== */

.primary-menu .sub-menu {
    border: 1px solid #fff;
}

.primary-menu .sub-menu li {
    border-bottom: 1px solid #fff;
}

.primary-menu .sub-menu li:last-child {
    border-bottom: 0;
}

.primary-menu .sub-menu a {
    display: block;
    padding: 15px 16px;
    text-decoration: none !important;
}

.primary-menu .sub-menu a:hover,
.primary-menu .sub-menu a:focus {
    color: #88aaff;
    text-shadow: 0 0 8px #445;
    text-decoration: none !important;
}


/* ===== DEADWAX ===== */

.deadwax-intro {
    padding: 20px;
    text-align: center;
    color: #ccc;
}

.deadwax-intro h1 {
    margin: 0 0 10px;
    font-family: "Cinzel Decorative", serif;
    font-size: 36px;
    font-weight: 400;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.deadwax-intro p {
    margin: 0 0 20px;
    font-family: "Lora", serif;
    font-size: 16px;
    font-style: italic;
    color: #999;
}

.deadwax-intro img {
    max-width: 100%;
    border-radius: 12px;
    box-shadow: 0 0 20px rgba(255,255,255,.1);
}

.deadwax-list {
    margin: 20px 0 0;
    padding: 0;
    list-style: none;
}

.deadwax-list li {
    border-bottom: 1px solid #444;
}

.deadwax-list li:last-child {
    border-bottom: 0;
}

.deadwax-list a {
    display: block;
    padding: 9px 0;
    color: #fff;
    text-decoration: none;
    transition: .3s ease;
}

.deadwax-list a:hover,
.deadwax-list a:focus {
    color: #88aaff;
    text-shadow: 0 0 8px #445;
}

/* ===== Mobile B-SIDE toggle ===== */

@media (max-width: 992px) {
    .menu-parent .sub-menu {
        display: none;
    }

    .menu-parent.submenu-open .sub-menu {
        display: block;
    }
}


/* ===== Mobile dropdown final fix ===== */

@media (max-width: 992px) {
    .menu-parent:hover > .sub-menu,
    .menu-parent:focus-within > .sub-menu,
    .menu-parent .sub-menu {
        display: none !important;
    }

    .menu-parent.submenu-open > .sub-menu {
        display: block !important;
    }
}


/* ===== First visit notice ===== */

#js-notice {
    box-sizing: border-box;
    width: 100%;
    padding: 8px 16px;

    background: #111;
    color: #bbb;

    font-family: Roboto, Arial, Helvetica, sans-serif;
    font-size: 13px;
    line-height: 1.5;
    text-align: center;
}

#js-notice-close {
    margin-left: 12px;
    padding: 4px 8px;

    background: #222;
    border: 1px solid #444;
    border-radius: 3px;

    color: #ccc;
    cursor: pointer;
}

#js-notice-close:hover {
    color: #88aaff;
    border-color: #88aaff;
}

@media (max-width: 700px) {
    #js-notice-close {
        display: block;
        margin: 8px auto 0;
    }
}
