/*
Theme Name: The Unmasked Palette
Theme URI: https://theunmaskedpalette.com/
Author: The Unmasked Palette
Author URI: https://theunmaskedpalette.com/
Description: An editorial, sunset-toned dark theme for The Unmasked Palette — unveiling the raw, unmasked colors of artistic expression. Features glowing ambient orbs, an interactive watercolor canvas background, gradient serif headings, and glassmorphism cards.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: unmasked-palette
Tags: dark, one-column, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, blog, portfolio
*/

/* --- Global CSS Variables & Theme --- */
:root {
    --bg-color: #0b0e17;
    --card-bg: rgba(20, 25, 40, 0.4);
    --card-bg-solid: #141928;
    --card-border: rgba(255, 255, 255, 0.05);
    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-muted: #64748b;

    /* Sunset Color Palette */
    --sunset-blue: #4ea5cd;
    --sunset-pink: #ffb2a7;
    --sunset-orange: #ffa75b;
    --sunset-yellow: #ffca28;

    /* Glow shadows */
    --glow-blue: 0 0 15px rgba(78, 165, 205, 0.3), 0 0 30px rgba(78, 165, 205, 0.1);
    --glow-orange: 0 0 15px rgba(255, 167, 91, 0.3), 0 0 30px rgba(255, 167, 91, 0.1);
    --glow-yellow: 0 0 10px rgba(255, 202, 40, 0.4);

    /* Fonts */
    --font-heading: 'Cormorant Garamond', Georgia, serif;
    --font-mono: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', -apple-system, sans-serif;

    --gradient-sunset: linear-gradient(to right, var(--sunset-blue) 10%, var(--sunset-pink) 50%, var(--sunset-orange) 90%);
    --gradient-accent: linear-gradient(135deg, var(--sunset-blue), var(--sunset-orange));

    --transition-smooth: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- Reset & Base Styles --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    background-color: var(--bg-color);
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: var(--font-body);
    font-weight: 300;
    color: var(--text-secondary);
    background-color: var(--bg-color);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    line-height: 1.75;
}

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

a {
    color: var(--sunset-blue);
    text-decoration: none;
    transition: var(--transition-smooth);
}

a:hover {
    color: var(--sunset-orange);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.15;
    letter-spacing: -0.5px;
}

::selection {
    background: rgba(255, 167, 91, 0.3);
    color: var(--text-primary);
}

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

.screen-reader-text:focus {
    clip-path: none;
    display: block;
    height: auto;
    left: 5px;
    top: 5px;
    width: auto;
    z-index: 100000;
    background: var(--card-bg-solid);
    color: var(--sunset-orange);
    padding: 1rem 1.5rem;
    border-radius: 8px;
}

/* --- Interactive Canvas Background --- */
#watercolor-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* --- Glowing Ambient Orbs (Sunset Glows) --- */
.glow-orb {
    position: fixed;
    width: 60vw;
    height: 60vw;
    border-radius: 50%;
    filter: blur(140px);
    z-index: 0;
    opacity: 0.12;
    pointer-events: none;
}

.glow-orb-1 {
    top: -15vw;
    right: -10vw;
    background: radial-gradient(circle, var(--sunset-blue) 0%, transparent 70%);
    animation: orb-float-1 25s infinite alternate ease-in-out;
}

.glow-orb-2 {
    bottom: -20vw;
    left: -10vw;
    background: radial-gradient(circle, var(--sunset-orange) 0%, transparent 70%);
    animation: orb-float-2 30s infinite alternate ease-in-out;
}

@keyframes orb-float-1 {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(-5vw, 5vw) scale(1.1); }
}

@keyframes orb-float-2 {
    0% { transform: translate(0, 0) scale(1.1); }
    100% { transform: translate(5vw, -5vw) scale(0.9); }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* --- Page Layout --- */
.page-container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 2.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    flex-grow: 1;
}

.site-main {
    flex-grow: 1;
    padding: 2rem 0;
}

/* --- Header & Logo --- */
.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

a.logo-container:hover {
    color: inherit;
}

.logo-icon {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    filter: drop-shadow(0 0 6px rgba(78, 165, 205, 0.4));
}

.logo-icon img.custom-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.logo-icon svg {
    width: 100%;
    height: 100%;
    animation: pulse-glow 4s infinite alternate ease-in-out;
}

.palette-glow-path {
    animation: stroke-dash 8s infinite linear;
    stroke-dasharray: 240;
    stroke-dashoffset: 0;
}

@keyframes stroke-dash {
    to { stroke-dashoffset: -480; }
}

@keyframes pulse-glow {
    0% { filter: drop-shadow(0 0 4px rgba(78, 165, 205, 0.4)); }
    100% { filter: drop-shadow(0 0 12px rgba(255, 167, 91, 0.6)); }
}

.logo-text {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.35rem;
    letter-spacing: 3px;
    color: var(--text-primary);
    text-transform: uppercase;
}

.logo-text .highlight {
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
}

/* --- Primary Navigation --- */
.main-navigation ul {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
    list-style: none;
}

.main-navigation a {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--text-secondary);
    position: relative;
    padding-bottom: 4px;
}

.main-navigation a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(to right, var(--sunset-blue), var(--sunset-orange));
    transform: scaleX(0);
    transform-origin: center;
    transition: var(--transition-smooth);
}

.main-navigation a:hover,
.main-navigation .current-menu-item > a,
.main-navigation .current_page_item > a {
    color: var(--text-primary);
    text-shadow: 0 0 10px rgba(255, 167, 91, 0.3);
}

.main-navigation a:hover::after,
.main-navigation .current-menu-item > a::after,
.main-navigation .current_page_item > a::after {
    transform: scaleX(1);
}

/* Sub-menus */
.main-navigation ul ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    flex-direction: column;
    gap: 0;
    background: var(--card-bg-solid);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 0.5rem 0;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
    z-index: 50;
}

.main-navigation ul li {
    position: relative;
}

.main-navigation ul li:hover > ul,
.main-navigation ul li:focus-within > ul {
    display: flex;
}

.main-navigation ul ul a {
    display: block;
    padding: 0.6rem 1.25rem;
    letter-spacing: 1.5px;
}

.main-navigation ul ul a::after {
    display: none;
}

/* Mobile menu toggle */
.menu-toggle {
    display: none;
    background: rgba(255, 167, 91, 0.04);
    border: 1px solid rgba(255, 167, 91, 0.25);
    border-radius: 50px;
    color: var(--sunset-orange);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    padding: 0.45rem 1.25rem;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.menu-toggle:hover,
.menu-toggle[aria-expanded="true"] {
    border-color: rgba(255, 167, 91, 0.55);
    box-shadow: var(--glow-orange);
}

/* --- Badge (Section Label) --- */
.badge {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--sunset-orange);
    border: 1px solid rgba(255, 167, 91, 0.25);
    padding: 0.45rem 1.25rem;
    border-radius: 50px;
    background: rgba(255, 167, 91, 0.04);
    box-shadow: var(--glow-orange);
    display: inline-block;
    margin-bottom: 2.25rem;
    animation: pulse-border 3s infinite alternate ease-in-out;
}

@keyframes pulse-border {
    0% { border-color: rgba(255, 167, 91, 0.25); box-shadow: 0 0 6px rgba(255, 167, 91, 0.08); }
    100% { border-color: rgba(255, 167, 91, 0.55); box-shadow: 0 0 18px rgba(255, 167, 91, 0.3); }
}

/* --- Gradient Headline Treatment --- */
.gradient-text {
    background: var(--gradient-sunset);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% auto;
    animation: shine 6s linear infinite;
}

@keyframes shine {
    to { background-position: 200% center; }
}

/* --- Hero (Front Page) --- */
.hero-section {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 5rem 0 6rem;
    animation: fade-in-up 1.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-title {
    font-size: 5.2rem;
    line-height: 1.1;
    letter-spacing: -1.5px;
    margin-bottom: 1.75rem;
    max-width: 850px;
}

.hero-tagline {
    font-family: var(--font-heading);
    font-style: italic;
    font-size: 1.5rem;
    color: var(--text-secondary);
    max-width: 620px;
    line-height: 1.5;
}

/* --- Section Headings --- */
.section-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.section-title {
    font-size: 2.8rem;
    margin-bottom: 0.5rem;
}

.page-header {
    text-align: center;
    padding: 2.5rem 0 3.5rem;
    animation: fade-in-up 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.page-header .page-title {
    font-size: 3.4rem;
    letter-spacing: -1px;
}

.page-header .archive-description {
    margin-top: 1rem;
    color: var(--text-muted);
    max-width: 620px;
    margin-left: auto;
    margin-right: auto;
}

/* --- Post Card Grid --- */
.post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.75rem;
}

.post-card {
    display: flex;
    flex-direction: column;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 18px;
    overflow: hidden;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: var(--transition-smooth);
}

.post-card:hover {
    transform: translateY(-6px);
    border-color: rgba(78, 165, 205, 0.3);
    box-shadow: var(--glow-blue);
}

.post-card-thumb {
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(78, 165, 205, 0.12), rgba(255, 167, 91, 0.12));
}

.post-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.post-card:hover .post-card-thumb img {
    transform: scale(1.05);
}

.post-card-body {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    padding: 1.75rem;
}

.post-card-meta,
.entry-meta {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--sunset-blue);
    margin-bottom: 0.85rem;
}

.entry-meta a {
    color: var(--sunset-blue);
}

.entry-meta a:hover {
    color: var(--sunset-orange);
}

.post-card-title {
    font-size: 1.65rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.post-card-title a {
    color: var(--text-primary);
}

.post-card-title a:hover {
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.post-card-excerpt {
    font-size: 0.9rem;
    color: var(--text-muted);
    flex-grow: 1;
}

.read-more {
    display: inline-block;
    margin-top: 1.25rem;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--sunset-orange);
}

.read-more:hover {
    text-shadow: 0 0 10px rgba(255, 167, 91, 0.4);
}

/* --- Single Post / Page --- */
.entry-article {
    max-width: 760px;
    margin: 0 auto;
    animation: fade-in-up 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.entry-header {
    text-align: center;
    margin-bottom: 3rem;
}

.entry-title {
    font-size: 3.6rem;
    letter-spacing: -1px;
    margin-bottom: 1.25rem;
}

.entry-thumbnail {
    margin: 0 0 3rem;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid var(--card-border);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4);
}

.entry-thumbnail img {
    display: block;
    width: 100%;
}

.entry-content {
    font-size: 1.05rem;
    color: var(--text-secondary);
}

.entry-content > * + * {
    margin-top: 1.5em;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
    margin-top: 2.25em;
}

.entry-content h2 { font-size: 2.2rem; }
.entry-content h3 { font-size: 1.75rem; }
.entry-content h4 { font-size: 1.4rem; }

.entry-content ul,
.entry-content ol {
    padding-left: 1.5rem;
}

.entry-content li + li {
    margin-top: 0.5em;
}

.entry-content blockquote {
    font-family: var(--font-heading);
    font-style: italic;
    font-size: 1.45rem;
    line-height: 1.5;
    color: var(--text-primary);
    border-left: 2px solid transparent;
    border-image: linear-gradient(to bottom, var(--sunset-blue), var(--sunset-orange)) 1;
    padding: 0.5rem 0 0.5rem 1.75rem;
    margin-left: 0;
}

.entry-content blockquote cite {
    display: block;
    margin-top: 0.75rem;
    font-family: var(--font-mono);
    font-style: normal;
    font-size: 0.75rem;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--sunset-blue);
}

.entry-content code {
    font-family: var(--font-mono);
    font-size: 0.9em;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 6px;
    padding: 0.15em 0.45em;
    color: var(--sunset-pink);
}

.entry-content pre {
    background: var(--card-bg-solid);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 1.5rem;
    overflow-x: auto;
}

.entry-content pre code {
    background: none;
    border: none;
    padding: 0;
}

.entry-content img {
    border-radius: 12px;
}

.entry-content a {
    border-bottom: 1px solid rgba(78, 165, 205, 0.4);
}

.entry-content a:hover {
    border-bottom-color: rgba(255, 167, 91, 0.6);
}

.entry-content hr {
    border: none;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.15), transparent);
    margin: 3rem 0;
}

/* WordPress core alignment classes */
.alignwide { margin-left: -4rem; margin-right: -4rem; max-width: none; }
.alignfull { margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); max-width: 100vw; }
.alignleft { float: left; margin: 0.5rem 1.5rem 1rem 0; }
.alignright { float: right; margin: 0.5rem 0 1rem 1.5rem; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }

.wp-caption { max-width: 100%; }
.wp-caption-text,
.wp-block-image figcaption {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-align: center;
    margin-top: 0.75rem;
}

.sticky .post-card-title::after {
    content: '★';
    color: var(--sunset-yellow);
    margin-left: 0.5rem;
    text-shadow: var(--glow-yellow);
}

/* --- Entry Footer / Tags --- */
.entry-footer {
    margin-top: 3.5rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.tag-pill {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--sunset-blue);
    border: 1px solid rgba(78, 165, 205, 0.25);
    background: rgba(78, 165, 205, 0.05);
    padding: 0.35rem 0.9rem;
    border-radius: 50px;
    transition: var(--transition-smooth);
}

.tag-pill:hover {
    color: var(--sunset-orange);
    border-color: rgba(255, 167, 91, 0.4);
    box-shadow: var(--glow-orange);
}

/* --- Post Navigation & Pagination --- */
.post-navigation,
.pagination-wrap {
    margin: 4rem auto 0;
    max-width: 760px;
}

.post-navigation .nav-links {
    display: flex;
    justify-content: space-between;
    gap: 1.5rem;
}

.post-navigation a {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--text-secondary);
}

.post-navigation a:hover {
    color: var(--sunset-orange);
}

.pagination-wrap {
    text-align: center;
}

.pagination-wrap .page-numbers {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.6rem;
    height: 2.6rem;
    padding: 0 0.75rem;
    margin: 0 0.2rem;
    border-radius: 50px;
    border: 1px solid var(--card-border);
    color: var(--text-secondary);
    background: var(--card-bg);
    transition: var(--transition-smooth);
}

.pagination-wrap .page-numbers.current {
    color: var(--bg-color);
    background: var(--gradient-accent);
    border-color: transparent;
    font-weight: 600;
}

.pagination-wrap a.page-numbers:hover {
    border-color: rgba(255, 167, 91, 0.4);
    color: var(--sunset-orange);
    box-shadow: var(--glow-orange);
}

/* --- Forms (Search, Comments) --- */
input[type="text"],
input[type="email"],
input[type="url"],
input[type="search"],
input[type="password"],
textarea {
    width: 100%;
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--text-primary);
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 0.85rem 1.25rem;
    transition: var(--transition-smooth);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
}

input:focus,
textarea:focus {
    outline: none;
    border-color: rgba(78, 165, 205, 0.5);
    box-shadow: var(--glow-blue);
}

::placeholder {
    color: var(--text-muted);
}

button,
input[type="submit"],
.button {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--text-primary);
    background: transparent;
    border: 1px solid rgba(255, 167, 91, 0.4);
    border-radius: 50px;
    padding: 0.8rem 2.25rem;
    cursor: pointer;
    transition: var(--transition-smooth);
}

button:hover,
input[type="submit"]:hover,
.button:hover {
    color: var(--sunset-orange);
    border-color: rgba(255, 167, 91, 0.7);
    box-shadow: var(--glow-orange);
    text-shadow: 0 0 10px rgba(255, 167, 91, 0.3);
}

.search-form {
    display: flex;
    gap: 0.75rem;
    max-width: 520px;
    margin: 0 auto;
}

.search-form .search-submit {
    flex-shrink: 0;
    padding: 0.8rem 1.5rem;
}

/* --- Comments --- */
.comments-area {
    max-width: 760px;
    margin: 4.5rem auto 0;
    padding-top: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.comments-title,
.comment-reply-title {
    font-size: 1.9rem;
    margin-bottom: 2rem;
}

.comment-list {
    list-style: none;
}

.comment-list .comment-body {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 14px;
    padding: 1.5rem 1.75rem;
    margin-bottom: 1.5rem;
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
}

.comment-list .children {
    list-style: none;
    padding-left: 2.5rem;
}

.comment-author {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-primary);
}

.comment-author .avatar {
    border-radius: 50%;
    border: 1px solid var(--card-border);
}

.comment-metadata {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin: 0.4rem 0 1rem;
}

.comment-metadata a {
    color: var(--text-muted);
}

.comment-content {
    font-size: 0.95rem;
}

.reply {
    margin-top: 1rem;
}

.comment-reply-link {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--sunset-orange);
}

.comment-form p {
    margin-bottom: 1.25rem;
}

.comment-form label {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 0.4rem;
}

/* --- 404 / No Results --- */
.error-404,
.no-results {
    text-align: center;
    padding: 4rem 0;
    animation: fade-in-up 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.error-404 .error-code {
    font-family: var(--font-heading);
    font-size: 8rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 1rem;
}

.error-404 p,
.no-results p {
    color: var(--text-muted);
    max-width: 480px;
    margin: 0 auto 2.5rem;
}

/* --- Widgets / Footer Widgets --- */
.footer-widgets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2.5rem;
    width: 100%;
    padding-bottom: 2.5rem;
}

.widget .widget-title {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--sunset-orange);
    margin-bottom: 1.25rem;
}

.widget ul {
    list-style: none;
}

.widget li + li {
    margin-top: 0.6rem;
}

.widget a {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.widget a:hover {
    color: var(--sunset-orange);
}

/* --- Footer --- */
.main-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    padding: 3rem 0 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.75rem;
    width: 100%;
}

.footer-contact {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.email-link {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--sunset-blue);
    text-decoration: none;
    position: relative;
    padding-bottom: 3px;
    transition: var(--transition-smooth);
}

.email-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(to right, var(--sunset-blue), var(--sunset-orange));
    transform: scaleX(0.7);
    transform-origin: center;
    transition: var(--transition-smooth);
}

.email-link:hover {
    color: var(--sunset-orange);
    text-shadow: 0 0 10px rgba(255, 167, 91, 0.3);
}

.email-link:hover::after {
    transform: scaleX(1);
}

.copyright {
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.7;
}

/* --- Media Queries --- */
@media (max-width: 900px) {
    .alignwide {
        margin-left: 0;
        margin-right: 0;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 3.8rem;
    }

    .entry-title {
        font-size: 2.6rem;
    }

    .page-header .page-title {
        font-size: 2.6rem;
    }

    .hero-tagline {
        font-size: 1.25rem;
    }

    .email-link {
        font-size: 1.3rem;
    }

    .menu-toggle {
        display: inline-block;
    }

    .main-navigation {
        width: 100%;
        order: 3;
    }

    .main-navigation ul {
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background: var(--card-bg);
        border: 1px solid var(--card-border);
        border-radius: 14px;
        padding: 0.75rem 0;
        margin-top: 0.5rem;
        -webkit-backdrop-filter: blur(12px);
        backdrop-filter: blur(12px);
    }

    .main-navigation.toggled ul {
        display: flex;
    }

    .main-navigation a {
        display: block;
        padding: 0.75rem 1.5rem;
    }

    .main-navigation a::after {
        display: none;
    }

    .main-navigation ul ul {
        display: block;
        position: static;
        border: none;
        box-shadow: none;
        background: transparent;
        padding-left: 1.25rem;
    }

    .comment-list .children {
        padding-left: 1rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 3.2rem;
    }

    .badge {
        font-size: 0.75rem;
        padding: 0.4rem 1rem;
    }

    .error-404 .error-code {
        font-size: 6rem;
    }
}
