/* DESKTOP: full masthead, without cropping */
@media screen and (min-width: 768px) {
    .header-image {
        height: 350px;
        min-height: 0;
        max-height: none;
        aspect-ratio: auto;
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center;
    }
}

/* MOBILE: larger masthead with less space below */
@media screen and (max-width: 767px) {
    .header-image {
        height: 0;
        min-height: 0;
        max-height: none;
        aspect-ratio: auto;
        padding-bottom: 27%;
        background-size: 128% auto;
        background-repeat: no-repeat;
        background-position: center top;
    }
}

/* Follow Along — terracotta social icons */
.widget.jetpack_widget_social_icons a,
.widget.jetpack_widget_social_icons svg,
.widget.jetpack-social-widget a,
.widget.jetpack-social-widget svg,
.jetpack-social-navigation a,
.jetpack-social-navigation svg {
    color: #B9785F !important;
    fill: #B9785F !important;
}

/* Explore menu — terracotta text and arrows */
.widget_nav_menu .menu a,
.widget_nav_menu .menu a::before,
.widget_nav_menu .menu a::after {
    color: #B9785F !important;
}

.widget_nav_menu .menu li::before {
    color: #B9785F !important;
}

/* Main menu — terracotta links */
.main-menu a {
    color: #B9785F !important;
}

/* Keep menu separators light grey */
.main-menu > li::before {
    color: #D8D0CB !important;
}

/* FOOD dropdown arrow */
.main-menu .menu-item-has-children > a::after {
    color: #B9785F !important;
}

/* Slightly darker terracotta on hover */
.main-menu a:hover {
    color: #98583F !important;
}

/* Lovecraft submenu background */
.main-navigation ul ul.sub-menu,
.main-navigation ul ul.sub-menu > li,
.main-navigation ul ul.sub-menu > li > a {
    background-color: #FFFFFF !important;
}

/* Dropdown arrow */
.main-navigation ul > li > ul:before {
    border-bottom-color: #FFFFFF !important;
}

/* Submenu separators */
.main-navigation ul ul.sub-menu > li {
    border-bottom: 1px solid #E8DED8 !important;
}

/* Dropdown links — visible terracotta text */
.main-navigation ul ul.sub-menu > li > a {
    color: #B9785F !important;
}

/* Keep the darker terracotta hover effect */
.main-navigation ul ul.sub-menu > li > a:hover {
    color: #98583F !important;
    background-color: #F8F1ED !important;
}

/* Article titles — clean editorial style */
.entry-title a,
.entry-title a:visited {
    color: #111111 !important;
    text-decoration: none !important;
}

.entry-title a:hover,
.entry-title a:focus {
    color: #B9785F !important;
    text-decoration: none !important;
}

/* Explore menu — black text, terracotta hover, no arrows */
.widget_nav_menu .menu a,
.widget_nav_menu .menu a:visited {
    color: #111111 !important;
    text-decoration: none !important;
}

.widget_nav_menu .menu a:hover,
.widget_nav_menu .menu a:focus {
    color: #B9785F !important;
    text-decoration: none !important;
}

/* Remove decorative arrows */
.widget_nav_menu .menu li::before,
.widget_nav_menu .menu li::after,
.widget_nav_menu .menu a::before,
.widget_nav_menu .menu a::after {
    content: none !important;
    display: none !important;
}

/* Category archive header — warm editorial style */
.archive .page-title,
.archive .archive-title,
.archive .page-header {
    background-color: #FFFFFF !important;
    color: #B9785F !important;
    border-bottom: 1px solid #E8DED8 !important;
}

/* Subscribe invitation */
.sidebar-subscribe::before {
    content: "Never miss a post\A Get travel guides, local discoveries and Spanish recipes in your inbox.";
    display: block;
    white-space: pre-line;
    color: #333333;
    font-family: "Lora", serif;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 12px;
}

/* Slightly emphasise the invitation */
.sidebar-subscribe::first-line {
    color: #B9785F;
    font-size: 16px;
    font-weight: 700;
}

/* Sidebar headings — match About Me */
.widget_nav_menu .widget-title,
.widget.jetpack_widget_social_icons .widget-title,
.widget.jetpack-social-widget .widget-title {
    font-size: 20px !important;
    font-weight: 500 !important;
}

/* Search widget — match the Subscribe form */
.widget_search .search-field {
    border: 1px solid #B9785F !important;
    color: #333333 !important;
    background-color: #FFFFFF !important;
}

.widget_search .search-field::placeholder {
    color: #888888 !important;
    opacity: 1;
}

.widget_search .search-submit,
.widget_search button,
.widget_search input[type="submit"] {
    background-color: #B9785F !important;
    color: #FFFFFF !important;
    border: 1px solid #B9785F !important;
}

.widget_search .search-submit:hover,
.widget_search button:hover,
.widget_search input[type="submit"]:hover {
    background-color: #98583F !important;
    color: #FFFFFF !important;
    border-color: #98583F !important;
}

/* Search bar — smaller, lighter, editorial */
.widget_search .search-field {
    height: 42px !important;
    padding: 8px 12px !important;
    font-size: 13px !important;
    font-weight: 400 !important;
    border: 1px solid #B9785F !important;
    box-shadow: none !important;
}

.widget_search .search-field::placeholder {
    color: #888888 !important;
    font-weight: 400 !important;
    opacity: 1;
}

.widget_search .search-submit,
.widget_search button,
.widget_search input[type="submit"] {
    height: 42px !important;
    min-height: 42px !important;
    padding: 8px 14px !important;
    font-weight: 400 !important;
    border: 1px solid #B9785F !important;
    box-shadow: none !important;
}

/* Main navigation — match sidebar heading size */
.main-navigation #primary-menu > li > a {
    font-size: 20px !important;
}

/* Preserve darker terracotta hover effect */
.main-navigation #primary-menu > li > a:hover,
.main-navigation #primary-menu > li > a:focus {
    color: #98583F !important;
}
/* Explore the Archives */
.twmg-archives {
    clear: both;
    width: 100%;
    margin: 32px 0;
}

.twmg-archives h2 {
    margin: 0 0 18px;
    font-size: 24px;
    text-align: left;
}

.twmg-archives-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
}

.twmg-archive-card {
    display: block;
    min-width: 0;
    color: inherit;
    text-decoration: none;
}

.twmg-archive-card img {
    display: block;
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
}

/* Archive category titles */
.twmg-archive-card span {
    display: block;
    margin-top: 9px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 14px;
    line-height: 1.35;
    font-weight: 400;
    text-align: center;
    color: #5c5048;
    transition: color 0.2s ease;
}

.twmg-archive-card:hover span {
    color: #b97860;
    text-decoration: none;
}

@media (max-width: 700px) {
    .twmg-archives-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.twmg-archive-card {
    text-align: center;
}

/* Featured article section */
.twmg-featured {
    clear: both;
    margin: 28px 0 32px;
    padding: 0;
    border: none;
    border-radius: 0;
    background: transparent;
}

.twmg-featured h2 {
    margin: 0 0 14px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 24px;
    font-weight: 400;
    line-height: 1.3;
}

.twmg-featured-link {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 16px;
    color: inherit;
    text-decoration: none;
}

.twmg-featured img.twmg-featured-image {
    display: block;
    width: 40%;
    max-width: 40%;
    height: auto;
    flex: 0 0 40%;
    margin: 0;
}

.twmg-featured-content {
    flex: 1;
    min-width: 0;
}

.twmg-featured-content h3 {
    margin: 0 0 8px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 24px;
    font-weight: 400;
    line-height: 1.3;
}

.twmg-featured-content p {
    margin: 0 0 10px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 14px;
    line-height: 1.5;
}

.twmg-featured-content span {
    color: #b97860;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 14px;
    font-weight: 700;
}

.twmg-featured-link:hover span {
    text-decoration: underline;
}

/* Mobile layout */
@media (max-width: 700px) {
    .twmg-featured {
        padding: 0;
    }

    .twmg-featured-link {
        flex-direction: column;
        gap: 14px;
    }

    .twmg-featured img.twmg-featured-image {
        width: 100%;
        max-width: 100%;
        flex-basis: auto;
    }

    .twmg-featured-content h3 {
        font-size: 22px;
    }
}

/* Featured Article — match the theme's heading font */

.twmg-featured h2 {
    font-family: "Cinzel", serif !important;
    font-size: 20px !important;
    font-weight: 500 !important;
    font-variant: normal !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    line-height: 1.3 !important;
    margin: 0 0 14px !important;
}

/* Match Explore the Archives to the other headings */
.twmg-archives h2 {
    font-family: "Cinzel", serif !important;
    font-size: 20px !important;
    font-weight: 500 !important;
    font-variant: normal !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    line-height: 1.3 !important;
    margin: 0 0 18px !important;
}

.twmg-latest-posts h2 {
    font-family: "Cinzel", serif !important;
    font-size: 20px !important;
    font-weight: 500 !important;
    font-variant: normal !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    line-height: 1.3 !important;
    margin: 0 0 18px !important;
}

/* Terracotta underlines for homepage section headings */
.twmg-archives h2,
.twmg-featured h2,
.twmg-latest-posts h2 {
    display: table;
    width: auto;
    padding-bottom: 8px;
    border-bottom: 2px solid #b97860;
}


/* Featured article: softer text with terracotta hover */
.twmg-featured-link h3,
.twmg-featured-link p,
.twmg-featured-link span {
    color: #5c5048;
    transition: color 0.2s ease;
}

.twmg-featured-link:hover h3,
.twmg-featured-link:hover p,
.twmg-featured-link:hover span {
    color: #b97860;
}

/* Smaller archive pictures on mobile */
@media screen and (max-width: 767px) {
    .twmg-archives-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
        max-width: 90%;
        margin: 0 auto;
    }

    .twmg-archive-card img {
        aspect-ratio: 3 / 4;
    }
}

/* Smaller featured article image on mobile */
@media screen and (max-width: 767px) {
    .twmg-featured img.twmg-featured-image {
        width: 90%;
        max-width: 90%;
        flex-basis: auto;
        margin: 0 auto;
    }
}

/* Keep Gaudí text right-aligned and push it down */
.twmg-featured-gaudi .twmg-featured-content {
    text-align: right;
    align-self: flex-end;
	    }
}

