/* Self-hosted fonts (Quicksand + Nunito Sans, latin/latin-ext subsets) */
@font-face {
  font-family: 'Nunito Sans';
  font-style: italic;
  font-weight: 400;
  font-stretch: 100%;
  font-display: swap;
  src: url(/fonts/nunitosans-400-italic-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Nunito Sans';
  font-style: italic;
  font-weight: 400;
  font-stretch: 100%;
  font-display: swap;
  src: url(/fonts/nunitosans-400-italic-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Nunito Sans';
  font-style: normal;
  font-weight: 400;
  font-stretch: 100%;
  font-display: swap;
  src: url(/fonts/nunitosans-400-normal-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Nunito Sans';
  font-style: normal;
  font-weight: 400;
  font-stretch: 100%;
  font-display: swap;
  src: url(/fonts/nunitosans-400-normal-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Nunito Sans';
  font-style: normal;
  font-weight: 600;
  font-stretch: 100%;
  font-display: swap;
  src: url(/fonts/nunitosans-600-normal-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Nunito Sans';
  font-style: normal;
  font-weight: 600;
  font-stretch: 100%;
  font-display: swap;
  src: url(/fonts/nunitosans-600-normal-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Nunito Sans';
  font-style: normal;
  font-weight: 700;
  font-stretch: 100%;
  font-display: swap;
  src: url(/fonts/nunitosans-700-normal-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Nunito Sans';
  font-style: normal;
  font-weight: 700;
  font-stretch: 100%;
  font-display: swap;
  src: url(/fonts/nunitosans-700-normal-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Quicksand';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/fonts/quicksand-500-normal-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Quicksand';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/fonts/quicksand-500-normal-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Quicksand';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/fonts/quicksand-600-normal-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Quicksand';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/fonts/quicksand-600-normal-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Quicksand';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/fonts/quicksand-700-normal-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Quicksand';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/fonts/quicksand-700-normal-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* ==========================================================================
   Mom's Journal — design tokens
   ========================================================================== */

:root {
    /* palette */
    --color-primary: #d64265;        /* raspberry */
    --color-primary-soft: #f4737f;   /* coral */
    --color-primary-dark: #b12e4f;
    --color-accent: #f4a261;         /* peach */
    --color-accent-soft: #ffd9a8;
    --color-teal: #2a9d8f;
    --color-teal-soft: #7fc8a9;
    --color-bg: #fff8f3;             /* cream */
    --color-surface: #ffffff;
    --color-surface-tint: #fdeee6;
    --color-text: #3d2c3c;           /* deep plum */
    --color-text-soft: #7a6577;
    --color-line: #f3ddd3;

    /* typography */
    --font-display: "Quicksand", "Avenir Next", "Trebuchet MS", sans-serif;
    --font-body: "Nunito Sans", "Segoe UI", Helvetica, Arial, sans-serif;

    /* shape + depth */
    --radius-sm: 10px;
    --radius: 16px;
    --radius-lg: 24px;
    --radius-full: 999px;
    --shadow-sm: 0 1px 3px rgba(61, 44, 60, 0.08);
    --shadow-md: 0 6px 18px rgba(61, 44, 60, 0.10);
    --shadow-lg: 0 14px 40px rgba(61, 44, 60, 0.14);
}

/* ==========================================================================
   Base
   ========================================================================== */

html, body {
    height: 100%;
    margin: 0;
    font-family: var(--font-body);
    color: var(--color-text);
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    font-size: 17px;
    line-height: 1.65;
    background-color: var(--color-bg);
    background-image:
        radial-gradient(900px 420px at 8% -5%, rgba(244, 115, 127, 0.10), transparent 60%),
        radial-gradient(800px 400px at 96% 0%, rgba(244, 162, 97, 0.12), transparent 60%);
    background-attachment: fixed;
}

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

img {
    max-width: 100%;
}

a {
    color: var(--color-primary);
}

:focus-visible {
    outline: 3px solid var(--color-primary-soft);
    outline-offset: 2px;
    border-radius: 4px;
}

h1, h2, h3, h4 {
    font-family: var(--font-display);
    line-height: 1.25;
}

#container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

#main-content {
    box-sizing: border-box;
    flex: 1;
    max-width: 1240px;
    width: 100%;
    margin: auto;
    padding: 0 40px 40px;
}

/* ==========================================================================
   Navbar
   ========================================================================== */

.navbar {
    width: 100%;
}

.navbar-row1 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 14px 32px;
    background: var(--color-surface);
    color: var(--color-text);
    box-shadow: var(--shadow-sm);
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--color-text);
}

.logo-image {
    height: 54px;
    width: 54px;
}

.logo-text {
    margin-left: 14px;
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 0.3px;
}

/* Search */
.future-content {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0;
}

form {
    display: flex;
    align-items: center;
    border: 2px solid var(--color-line);
    background: var(--color-bg);
    border-radius: var(--radius-full);
    overflow: hidden;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

form:focus-within {
    border-color: var(--color-primary-soft);
    box-shadow: 0 0 0 4px rgba(244, 115, 127, 0.15);
}

input[type="search"] {
    border: none;
    background: transparent;
    padding: 10px 18px;
    font-size: 16px;
    font-family: var(--font-body);
    color: var(--color-text);
    outline: none;
    flex: 1;
    min-width: 210px;
}

input[type="search"]::placeholder {
    color: var(--color-text-soft);
}

button {
    background-color: var(--color-primary);
    color: #fff;
    border: none;
    padding: 10px 22px;
    cursor: pointer;
    font-size: 16px;
    font-family: var(--font-display);
    font-weight: 600;
    border-radius: var(--radius-full);
    transition: background-color 0.25s ease, transform 0.15s ease;
}

button:hover {
    background-color: var(--color-primary-dark);
}

button:active {
    transform: scale(0.97);
}

/* Section nav */
.navbar-row2 {
    background: linear-gradient(100deg, var(--color-primary-soft), var(--color-primary) 55%, var(--color-primary-dark));
    position: sticky;
    top: 0;
    z-index: 50;
    box-shadow: var(--shadow-md);
}

.burger-menu {
    display: none;
    flex-direction: column;
    cursor: pointer;
    margin: 0 10px;
    padding: 12px 8px;
    align-items: flex-end;
}

.line {
    height: 3px;
    width: 28px;
    border-radius: 2px;
    background-color: #fff;
    margin: 3.5px 0;
}

.nav-links {
    list-style: none;
    display: flex;
    justify-content: center;
    margin: auto;
    padding: 0;
    max-width: 1240px;
    min-height: 52px;
}

.nav-links li {
    flex: 1;
    margin: 0;
    font-size: 17px;
    padding: 0;
    text-align: center;
    display: flex;
    align-items: stretch;
    justify-content: center;
}

.nav-links a {
    text-decoration: none;
    color: #fff;
    font-family: var(--font-display);
    font-weight: 600;
    letter-spacing: 0.4px;
    display: flex;
    align-items: center;
    padding: 0 10px;
    width: 100%;
    justify-content: center;
    position: relative;
    transition: background-color 0.2s ease;
}

.nav-links a::after {
    content: "";
    position: absolute;
    left: 22%;
    right: 22%;
    bottom: 8px;
    height: 3px;
    border-radius: 2px;
    background: var(--color-accent-soft);
    transform: scaleX(0);
    transition: transform 0.25s ease;
}

.nav-links li:hover a {
    background-color: rgba(255, 255, 255, 0.10);
}

.nav-links li:hover a::after {
    transform: scaleX(1);
}

/* ==========================================================================
   Breadcrumb
   ========================================================================== */

#breadcrumb {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    flex-wrap: wrap;
    margin: 22px 0 10px;
    font-size: 15.5px;
    color: var(--color-text-soft);
}

#breadcrumb a {
    text-decoration: none;
    color: var(--color-primary);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
}

#breadcrumb img {
    width: 19px;
    height: 19px;
    display: block;
    position: relative;
    top: 2px;
}

#breadcrumb span {
    margin: 0 4px;
}

/* ==========================================================================
   Footer
   ========================================================================== */

footer {
    background: linear-gradient(120deg, #46304a, var(--color-text) 60%);
    color: #f7ebe4;
    padding: 44px 0 20px;
    margin-top: 48px;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 28px;
}

.footer-about {
    flex: 1.4;
    max-width: 360px;
}

.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #fff;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 22px;
}

.footer-brand img {
    width: 44px;
    height: 44px;
}

.footer-about p {
    color: #d9c6ce;
    font-size: 15.5px;
    line-height: 1.6;
}

.footer-links, .footer-social {
    flex: 1;
}

.footer-links h3, .footer-social h3 {
    margin: 0 0 12px;
    font-size: 17px;
    color: var(--color-accent-soft);
    letter-spacing: 0.5px;
}

.footer-authors-heading {
    margin-top: 26px !important;
}

.footer-links ul, .footer-social ul, .footer-meta-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links ul {
    columns: 2;
    column-gap: 28px;
}

.footer-links li, .footer-social li {
    margin: 7px 0;
}

.footer-links a, .footer-social a, .footer-meta-links a {
    color: #f7ebe4;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-links a:hover, .footer-meta-links a:hover {
    color: var(--color-accent-soft);
    text-decoration: none;
}

.footer-social ul {
    display: flex;
    gap: 12px;
}

.footer-social ul.footer-meta-links {
    display: block;
}

.footer-social li a {
    display: inline-flex;
}

.footer-social img {
    width: 40px;
    height: 40px;
    padding: 9px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-full);
    transition: background-color 0.25s ease, transform 0.2s ease;
}

.footer-social a:hover img {
    background: var(--color-primary);
    transform: translateY(-2px);
}

.footer-bottom {
    text-align: center;
    margin-top: 34px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding-top: 14px;
    font-size: 14.5px;
    color: #d9c6ce;
}

/* ==========================================================================
   Hero (home)
   ========================================================================== */

.image-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    margin: 26px auto 0;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.image-container a {
    text-decoration: none;
    display: block;
}

.image-container a::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(43, 24, 40, 0.72) 0%, rgba(43, 24, 40, 0.18) 45%, transparent 70%);
    pointer-events: none;
}

.image-container img {
    width: 100%;
    aspect-ratio: 16 / 7;
    object-fit: cover;
    display: block;
    transition: transform 0.7s ease;
}

.image-container:hover img {
    transform: scale(1.035);
    filter: none;
}

.image-title {
    position: absolute;
    bottom: 28px;
    left: 32px;
    top: auto;
    width: min(640px, 82%);
    background: none;
    color: #fff;
    text-shadow: 0 2px 14px rgba(30, 15, 28, 0.55);
    padding: 0;
    border-radius: 0;
    z-index: 2;
}

.image-title::before {
    content: "Featured";
    display: inline-block;
    background: var(--color-accent);
    color: #4a2b12;
    text-shadow: none;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    padding: 5px 14px;
    border-radius: var(--radius-full);
    margin-bottom: 12px;
}

.image-title h2 {
    margin: 0;
    font-size: clamp(24px, 3.4vw, 42px);
    font-weight: 700;
}

.image-container:hover .image-title {
    background: none;
    color: #fff;
}

/* ==========================================================================
   Section headings + dividers
   ========================================================================== */

.page-list {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 34px;
}

.page-list.home {
    margin-top: 8px;
}

.page-list h1 {
    font-size: clamp(28px, 3vw, 38px);
    text-align: center;
    margin: 18px 0 26px;
    position: relative;
}

.page-list h1::after {
    content: "";
    display: block;
    width: 56px;
    height: 5px;
    border-radius: 3px;
    margin: 12px auto 0;
    background: linear-gradient(90deg, var(--color-primary-soft), var(--color-accent));
}

.styled-hr {
    border: none;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-line) 20%, var(--color-line) 80%, transparent);
    margin: 34px 0 10px;
}

/* ==========================================================================
   Article cards (lists, search results)
   ========================================================================== */

.page-item {
    display: none; /* revealed by load_posts.js with inline display:flex */
    margin-bottom: 22px;
    text-decoration: none;
    color: inherit;
    justify-content: center;
    width: 100%;
    max-width: 900px;
    font-size: 1em;
    border: 1px solid var(--color-line);
    background-color: var(--color-surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    padding: 0;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.page-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.page-authors-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-top: 26px;
}

.page-item-home:hover .page-title,
.page-item:hover .page-title {
    text-decoration: none;
    color: var(--color-primary);
}

.page-image {
    flex: 0 0 240px;
    margin-right: 0;
    align-self: stretch;
    background: var(--color-surface-tint);
}

.page-image img {
    width: 100%;
    height: 100%;
    min-height: 170px;
    max-height: none;
    object-fit: cover;
    display: block;
}

.page-content {
    flex: 1;
    padding: 18px 24px 16px;
}

.page-title {
    font-size: 1.25em;
    margin: 0 0 4px;
    font-family: var(--font-display);
    font-weight: 700;
    transition: color 0.2s ease;
}

.page-description {
    margin: 5px 0;
    color: var(--color-text-soft);
    font-size: 0.97em;
}

.page-date {
    color: var(--color-accent);
    font-weight: 700;
    font-size: 0.85em;
    letter-spacing: 0.4px;
    text-transform: uppercase;
}

/* Authors list cards */
.page-authors-container .page-item {
    align-items: center;
    padding: 20px 26px;
}

.page-authors-container .page-image {
    flex: 0 0 120px;
    background: none;
    align-self: center;
}

.page-authors-container .page-image img {
    width: 116px;
    height: 116px;
    min-height: 0;
    border-radius: var(--radius-full);
    object-fit: cover;
    border: 4px solid var(--color-surface-tint);
}

.page-authors-container .page-content {
    padding: 6px 0 6px 24px;
}

/* Load more */
.button-container {
    display: flex;
    justify-content: center;
    margin: 24px auto 10px;
}

#load-more {
    background-color: var(--color-primary);
    color: white;
    border: none;
    display: none;
    padding: 12px 34px;
    font-size: 16px;
    cursor: pointer;
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-sm);
    transition: background-color 0.25s ease, transform 0.15s ease;
}

#load-more:hover {
    background-color: var(--color-primary-dark);
}

#load-more:focus {
    outline: none;
}

/* ==========================================================================
   Swiper (Latest articles)
   ========================================================================== */

.page-item-home {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    border: 1px solid var(--color-line);
    padding: 0;
    margin: 6px 0;
    border-radius: var(--radius);
    text-decoration: none;
    color: inherit;
    justify-content: flex-start;
    font-size: 1em;
    background-color: var(--color-surface);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    max-height: 480px;
    min-height: 480px;
    width: 100%;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.page-item-home:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.page-item-home .page-content {
    padding: 16px 22px 18px;
}

.swiper-container {
    width: 100%;
    height: 560px;
    position: relative;
    overflow: hidden;
    padding-bottom: 6px;
}

.swiper-wrapper {
    display: flex;
}

.swiper-slide {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    height: 500px;
}

.page-image.latest {
    margin-right: 0;
    flex: 0 0 auto;
    width: 100%;
}

.page-image.latest img {
    width: 100%;
    height: 230px;
    min-height: 0;
    object-fit: cover;
}

.swiper-pagination-bullet {
    background: var(--color-primary-soft);
    opacity: 0.4;
}

.swiper-pagination-bullet-active {
    background: var(--color-primary);
    opacity: 1;
}

/* ==========================================================================
   Single post
   ========================================================================== */

.post {
    font-size: 1.05em;
    width: min(760px, 100%);
    margin: 10px auto 0;
}

.post-title {
    font-size: clamp(30px, 4vw, 44px);
    margin: 10px 0 18px;
    font-weight: 700;
}

.post-date {
    display: inline-block;
    color: var(--color-text-soft);
    font-size: 0.9em;
    margin-bottom: 0.4em;
    letter-spacing: 0.3px;
}

.post-author {
    display: flex;
    align-items: center;
    color: var(--color-text);
    font-weight: 700;
    font-size: 1em;
    margin-bottom: 1.4em;
    text-decoration: none;
    gap: 10px;
}

.post-author:hover {
    color: var(--color-primary);
}

.author-icon {
    vertical-align: middle;
    margin-right: 0;
    width: 42px;
    height: 42px;
    object-fit: cover;
    border-radius: var(--radius-full);
    border: 3px solid var(--color-surface-tint);
    box-shadow: var(--shadow-sm);
}

.post-image img {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.post-image .image-alt {
    margin-top: 10px;
    color: var(--color-text-soft);
    font-size: 0.85em;
    margin-bottom: 1.6em;
    text-align: center;
    font-style: italic;
}

.post-description {
    font-weight: 700;
    font-size: 1.12em;
    line-height: 1.6;
    margin-bottom: 1.2em;
    padding: 18px 22px;
    background: var(--color-surface-tint);
    border-left: 5px solid var(--color-primary-soft);
    border-radius: 0 var(--radius) var(--radius) 0;
}

.post-content {
    margin-bottom: 4em;
    line-height: 1.8;
}

.post-content h2 {
    margin-top: 1.6em;
    font-size: 1.45em;
}

.post-content h2::after {
    content: "";
    display: block;
    width: 38px;
    height: 4px;
    border-radius: 2px;
    margin-top: 8px;
    background: linear-gradient(90deg, var(--color-primary-soft), var(--color-accent));
}

.post-content a {
    color: var(--color-primary);
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
}

.post-content li {
    margin: 0.4em 0;
}

/* ==========================================================================
   Author profile
   ========================================================================== */

.single-author-profile {
    width: 100%;
    padding: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-sizing: border-box;
    border: 1px solid var(--color-line);
    border-radius: var(--radius-lg);
    margin: 24px 0;
    background-color: var(--color-surface);
    box-shadow: var(--shadow-sm);
}

.author-posts {
    width: 95%;
    padding: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-sizing: border-box;
}

.author-posts h1 {
    font-size: 2em;
    position: relative;
}

.author-posts h1::after {
    content: "";
    display: block;
    width: 46px;
    height: 4px;
    border-radius: 2px;
    margin: 10px auto 0;
    background: linear-gradient(90deg, var(--color-primary-soft), var(--color-accent));
}

.single-author-box {
    display: flex;
    flex-direction: row;
    width: 92%;
    height: auto;
    margin: 0 auto;
    box-sizing: border-box;
    font-size: 1.05em;
    align-items: center;
    gap: 30px;
}

.single-author-icon {
    display: flex;
    width: 26%;
    height: auto;
    margin-right: 0;
    justify-content: center;
    align-items: center;
}

.single-author-icon img {
    border-radius: var(--radius-full);
    width: 100%;
    max-width: 240px;
    aspect-ratio: 1;
    height: auto;
    object-fit: cover;
    border: 6px solid var(--color-surface-tint);
    box-shadow: var(--shadow-md);
}

.single-author-details {
    flex: 1;
}

.single-author-details h1 {
    margin: 0 0 6px;
}

.single-author-bio {
    margin-top: 5px;
    color: var(--color-text-soft);
    line-height: 1.7;
}

@media (max-width: 1500px) {
    .single-author-box {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .single-author-icon {
        margin-right: 0;
        margin-bottom: 15px;
        width: 40%;
    }
}

@media (max-width: 800px) {
    .single-author-profile {
        padding: 30px 16px;
    }
}

/* ==========================================================================
   Search page
   ========================================================================== */

[id^="summary-"] {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 30px 0;
}

.loading-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.search-loading {
    border: 10px solid var(--color-surface-tint);
    border-radius: 50%;
    border-top: 10px solid var(--color-primary);
    width: 80px;
    height: 80px;
    margin: 40px 0;
    -webkit-animation: spin 1.2s linear infinite;
    animation: spin 1.2s linear infinite;
}

@-webkit-keyframes spin {
    0% { -webkit-transform: rotate(0deg); }
    100% { -webkit-transform: rotate(360deg); }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ==========================================================================
   404
   ========================================================================== */

.not-found {
    text-align: center;
    padding: 60px 20px 40px;
}

.not-found-code {
    font-family: var(--font-display);
    font-size: clamp(80px, 14vw, 150px);
    font-weight: 700;
    margin: 0;
    line-height: 1;
    background: linear-gradient(100deg, var(--color-primary-soft), var(--color-primary), var(--color-accent));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.not-found h1 {
    margin: 10px 0 8px;
}

.not-found p {
    color: var(--color-text-soft);
}

.not-found-home {
    display: inline-block;
    margin-top: 14px;
    background: var(--color-primary);
    color: #fff;
    text-decoration: none;
    font-family: var(--font-display);
    font-weight: 600;
    padding: 12px 30px;
    border-radius: var(--radius-full);
    transition: background-color 0.25s ease;
}

.not-found-home:hover {
    background: var(--color-primary-dark);
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1250px) {
    .image-container {
        border-radius: var(--radius);
        width: 100%;
    }

    .image-container img {
        aspect-ratio: 16 / 9;
    }
}

@media screen and (max-width: 1100px) {
    #main-content {
        padding: 0 18px 30px;
    }

    .navbar-row1 {
        flex-direction: column;
        align-items: center;
        gap: 10px;
        padding: 14px 18px;
    }

    .future-content {
        margin-top: 4px;
        width: 100%;
        max-width: 520px;
    }

    .future-content form {
        width: 100%;
    }

    #search-query {
        width: 100%;
        padding: 10px 18px;
        font-size: 16px;
    }

    .nav-links {
        flex-direction: column;
        align-items: stretch;
        display: none;
        width: 100%;
        margin: 0;
        padding-bottom: 8px;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        margin: 0;
        border-bottom: none;
    }

    .nav-links a {
        padding: 13px 10px;
    }

    .nav-links a::after {
        display: none;
    }

    .burger-menu {
        display: flex;
    }

    .footer-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-about {
        max-width: 460px;
    }

    .footer-links, .footer-social {
        margin-bottom: 10px;
        width: 100%;
    }

    .footer-links ul {
        columns: 2;
        max-width: 320px;
        margin: 0 auto;
    }

    .footer-social ul {
        justify-content: center;
    }

    .page-item,
    .page-item-home {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        border: 1px solid var(--color-line);
        padding: 0;
        margin: 10px 0;
        border-radius: var(--radius);
    }

    .page-item {
        display: none;
    }

    .page-image {
        margin-right: 0;
        margin-bottom: 0;
        flex: 0 0 auto;
    }

    .page-image img {
        height: 200px;
        min-height: 0;
    }

    .page-authors-container .page-item {
        align-items: center;
        padding: 20px;
    }

    .page-authors-container .page-content {
        padding: 12px 4px 0;
        text-align: center;
    }

    .post {
        width: 100%;
    }

    #breadcrumb {
        flex-direction: row;
        align-items: center;
        text-align: left;
    }

    #breadcrumb span {
        margin: 2px 4px;
    }

    .image-container {
        width: 100%;
    }

    .image-title {
        position: absolute;
        bottom: 16px;
        left: 16px;
        width: calc(100% - 32px);
        background: none;
    }

    .image-title::before {
        font-size: 11.5px;
        padding: 4px 11px;
    }

    .swiper-container {
        height: 540px;
    }

    .page-item-home {
        min-height: 460px;
        max-height: 460px;
    }

    .swiper-slide {
        height: 480px;
    }
}
