@font-face {
    font-family: "DM Sans";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("/fonts/dm-sans-regular.ttf") format("truetype");
}

@font-face {
    font-family: "DM Sans";
    font-style: normal;
    font-weight: 500 600;
    font-display: swap;
    src: url("/fonts/dm-sans-semibold.ttf") format("truetype");
}

@font-face {
    font-family: "DM Sans";
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url("/fonts/dm-sans-bold.ttf") format("truetype");
}

@font-face {
    font-family: "Fraunces";
    font-style: normal;
    font-weight: 600 700;
    font-display: swap;
    src: url("/fonts/fraunces-semibold.ttf") format("truetype");
}

:root {
    --ink: #163b3b;
    --ink-soft: #2d5755;
    --coral: #e96f51;
    --peach: #f4b28c;
    --butter: #f4e5af;
    --cream: #fff8ef;
    --paper: #fffdf9;
    --line: #eadfd4;
    --muted: #6b7772;
    --shadow: 0 20px 50px rgba(39, 55, 47, 0.12);
    --radius: 20px;
    --max: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    min-width: 320px;
    color: var(--ink);
    background: var(--cream);
    font-family: "DM Sans", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
}
a { color: inherit; }
img { display: block; max-width: 100%; }
button, input { font: inherit; }
button { cursor: pointer; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

#container { display: flex; min-height: 100vh; flex-direction: column; }
#main-content { width: min(100% - 48px, var(--max)); flex: 1; margin: 0 auto; }

/* Header */
.site-header { position: relative; z-index: 10; background: var(--cream); }
.header-inner { width: min(100% - 48px, var(--max)); min-height: 92px; display: flex; align-items: center; justify-content: space-between; gap: 32px; margin: 0 auto; }
.logo-link { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.logo-image { width: 48px; height: 48px; border-radius: 14px; }
.logo-text, .footer-logo { color: var(--ink); font-size: 17px; font-weight: 700; letter-spacing: .08em; line-height: 1.1; }
.logo-text i, .footer-logo i { color: var(--coral); font-family: "Fraunces", Georgia, serif; font-style: normal; letter-spacing: .02em; }
.search-form { display: flex; width: min(100%, 290px); border-bottom: 1px solid var(--ink); }
.search-form input { width: 100%; min-width: 0; padding: 10px 4px; border: 0; outline: 0; color: var(--ink); background: transparent; }
.search-form input::placeholder { color: var(--muted); }
.search-form button { padding: 10px 4px; border: 0; color: var(--coral); background: transparent; font-size: 13px; font-weight: 700; }
.navbar-row2 { background: var(--ink); }
.nav-links { display: flex; justify-content: space-between; width: min(100% - 48px, var(--max)); gap: 10px; margin: 0 auto; padding: 0; list-style: none; }
.nav-links li { flex: 1; }
.nav-links a { display: block; padding: 13px 8px 12px; color: var(--cream); font-size: 14px; font-weight: 500; text-align: center; text-decoration: none; transition: color .2s ease, background .2s ease; }
.nav-links a:hover, .nav-links a:focus-visible { color: var(--butter); background: var(--ink-soft); }
.burger-menu { display: none; width: 42px; height: 42px; padding: 8px; border: 0; border-radius: 50%; background: var(--ink); }
.line { display: block; width: 25px; height: 2px; margin: 5px auto; background: var(--cream); }

/* Shared editorial elements */
#breadcrumb { display: flex; align-items: center; gap: 10px; margin: 28px 0 0; color: var(--muted); font-size: 13px; }
#breadcrumb a { color: var(--coral); text-decoration: none; }
.eyebrow { margin: 0 0 10px; color: var(--coral); font-size: 11px; font-weight: 700; letter-spacing: .14em; line-height: 1.3; text-transform: uppercase; }
.eyebrow span { color: var(--muted); }
.text-link, .arrow-link { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-size: 14px; font-weight: 700; text-decoration: none; }
.text-link { padding-bottom: 5px; border-bottom: 1px solid var(--coral); }
.text-link span, .arrow-link span { color: var(--coral); font-size: 18px; transition: transform .2s ease; }
.text-link:hover span, .arrow-link:hover span { transform: translate(3px, -3px); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; }
.section-heading h2 { margin: 0; font-family: "Fraunces", Georgia, serif; font-size: clamp(32px, 4vw, 50px); font-weight: 600; letter-spacing: -.03em; line-height: 1; }
.card-category { margin: 0 0 8px; color: var(--coral); font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.page-date { margin: 12px 0 0; color: var(--muted); font-size: 12px; }

/* Home */
.home-intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 360px); align-items: end; gap: 50px; padding: 86px 7% 74px; border-bottom: 1px solid var(--line); }
.home-intro h1 { max-width: 780px; margin: 0; font-family: "Fraunces", Georgia, serif; font-size: clamp(52px, 8vw, 104px); font-weight: 600; letter-spacing: -.06em; line-height: .94; }
.home-intro h1 em { color: var(--coral); font-style: normal; }
.intro-copy { max-width: 340px; margin: 0 0 27px; color: var(--muted); font-size: 15px; line-height: 1.7; }
.hero-story { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(300px, .75fr); min-height: 510px; margin: 55px 0 95px; border-radius: var(--radius); overflow: hidden; background: var(--ink); box-shadow: var(--shadow); }
.hero-story-image { position: relative; min-height: 420px; overflow: hidden; }
.hero-story-image::after { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(22, 59, 59, .35), transparent 45%); content: ""; pointer-events: none; }
.hero-story-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.hero-story-image:hover img { transform: scale(1.03); }
.image-badge { position: absolute; z-index: 1; top: 24px; left: 24px; padding: 7px 12px; border-radius: 20px; color: var(--ink); background: var(--butter); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.hero-story-copy { display: flex; flex-direction: column; justify-content: center; padding: 52px; color: var(--cream); }
.hero-story-copy .eyebrow { color: var(--peach); }
.hero-story-copy h2 { margin: 0 0 22px; font-family: "Fraunces", Georgia, serif; font-size: clamp(34px, 4vw, 58px); font-weight: 600; letter-spacing: -.04em; line-height: 1.05; }
.hero-story-copy h2 a { text-decoration: none; }
.hero-story-copy > p:not(.eyebrow) { margin: 0 0 30px; color: rgba(255, 248, 239, .76); }
.hero-story-copy .arrow-link { color: var(--cream); }
.latest-section { margin-bottom: 100px; }
.swiper-controls { display: flex; gap: 8px; }
.swiper-controls button { position: relative; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 50%; background: transparent; }
.swiper-controls button::after { color: var(--ink); font-size: 14px; font-weight: 700; }
.swiper-container { width: 100%; margin-top: 30px; padding-bottom: 35px; overflow: hidden; }
.swiper-wrapper { align-items: stretch; }
.swiper-slide { height: auto; }
.page-item-home { display: flex; flex-direction: column; height: 100%; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--paper); text-decoration: none; transition: transform .25s ease, box-shadow .25s ease; }
.page-item-home:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.page-image.latest { height: 205px; margin: 0; }
.page-image.latest img { width: 100%; height: 100%; object-fit: cover; }
.page-item-home .page-content { padding: 22px; }
.page-item-home .page-title { min-height: 54px; }
.more-section { padding: 80px 0 100px; border-top: 1px solid var(--line); }
.page-list { display: flex; flex-direction: column; gap: 16px; margin-top: 30px; }
.page-item { display: none; grid-template-columns: 220px minmax(0, 1fr); align-items: stretch; width: 100%; min-height: 190px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; color: inherit; background: var(--paper); text-decoration: none; transition: transform .2s ease, box-shadow .2s ease; }
.page-item:hover { transform: translateX(5px); box-shadow: 0 12px 30px rgba(39, 55, 47, .08); }
.page-image { margin: 0; overflow: hidden; }
.page-image img { width: 100%; height: 100%; min-height: 170px; object-fit: cover; transition: transform .4s ease; }
.page-item:hover .page-image img { transform: scale(1.04); }
.page-content { padding: 25px 30px; }
.page-title { margin: 0; color: var(--ink); font-family: "Fraunces", Georgia, serif; font-size: clamp(22px, 2.5vw, 31px); font-weight: 600; letter-spacing: -.025em; line-height: 1.15; }
.page-description { margin: 10px 0 0; color: var(--muted); font-size: 14px; line-height: 1.55; }
.button-container { display: flex; justify-content: center; margin: 28px 0 0; }
#load-more { display: none; padding: 12px 22px; border: 1px solid var(--ink); border-radius: 30px; color: var(--cream); background: var(--ink); font-size: 13px; font-weight: 700; transition: background .2s ease, color .2s ease; }
#load-more:hover { color: var(--ink); background: transparent; }

/* Section and article pages */
.section-page-header { max-width: 760px; padding: 90px 0 45px; }
.section-page-header h1 { margin: 0 0 15px; font-family: "Fraunces", Georgia, serif; font-size: clamp(50px, 8vw, 90px); font-weight: 600; letter-spacing: -.06em; line-height: .95; }
.section-page-header > p:not(.eyebrow) { max-width: 610px; margin: 0; color: var(--muted); font-size: 18px; }
.section-list { margin-bottom: 90px; }
.post { max-width: 890px; margin: 0 auto; padding: 75px 0 110px; }
.post-header { max-width: 800px; }
.post-header .eyebrow a { text-decoration: none; }
.post-title { margin: 0; font-family: "Fraunces", Georgia, serif; font-size: clamp(44px, 7vw, 82px); font-weight: 600; letter-spacing: -.055em; line-height: .98; }
.post-header .post-description { max-width: 700px; margin: 26px 0 0; color: var(--muted); font-size: 19px; line-height: 1.55; }
.post-author { display: inline-flex; align-items: center; gap: 10px; margin: 28px 0 40px; color: var(--ink); font-size: 14px; font-weight: 700; text-decoration: none; }
.author-icon { width: 42px; height: 42px; border-radius: 50%; }
.post-image { margin: 0 0 45px; }
.post-image img { width: 100%; max-height: 600px; border-radius: var(--radius); object-fit: cover; }
.image-alt { margin: 10px 0 0; color: var(--muted); font-size: 12px; }
.post-content { max-width: 680px; margin: 0 auto; color: #294646; font-family: Georgia, serif; font-size: 19px; line-height: 1.85; }
.post-content h2 { margin: 42px 0 8px; color: var(--ink); font-family: "Fraunces", Georgia, serif; font-size: 31px; line-height: 1.1; }
.post-content p { margin: 0 0 22px; }
.single-author-profile { padding: 75px 0 110px; }
.single-author-box { display: grid; grid-template-columns: 230px minmax(0, 600px); align-items: center; gap: 45px; padding-bottom: 75px; border-bottom: 1px solid var(--line); }
.single-author-icon img { width: 220px; height: 220px; border-radius: 50%; }
.single-author-details h1 { margin: 0 0 20px; font-family: "Fraunces", Georgia, serif; font-size: clamp(44px, 6vw, 72px); letter-spacing: -.05em; line-height: 1; }
.single-author-bio { color: var(--muted); font-size: 18px; }
.author-posts { margin-top: 70px; }
.author-posts .page-item { display: grid; margin-top: 25px; }

/* Search and 404 */
.search-header { padding-bottom: 15px; }
#search-results { max-width: 900px; margin-bottom: 90px; }
.search-result { display: grid; grid-template-columns: 180px 1fr; margin: 16px 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--paper); text-decoration: none; }
.search-result .page-image { min-height: 155px; }
.search-result .page-content { padding: 22px 25px; }
.search-result mark { padding: 0 2px; color: var(--ink); background: var(--butter); }
.search-results-empty { padding: 35px 0; color: var(--muted); }
.loading-container { min-height: 100px; }
.search-loading { display: none; width: 34px; height: 34px; margin: 15px 0; border: 3px solid var(--line); border-top-color: var(--coral); border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.not-found { max-width: 680px; padding: 130px 0 170px; }
.not-found h1 { margin: 0 0 20px; font-family: "Fraunces", Georgia, serif; font-size: clamp(48px, 7vw, 80px); letter-spacing: -.05em; line-height: 1; }
.not-found p:not(.eyebrow) { margin-bottom: 28px; color: var(--muted); font-size: 18px; }

/* Footer */
.site-footer { padding: 65px 0 25px; color: var(--cream); background: var(--ink); }
.footer-container { display: grid; grid-template-columns: 1.3fr .8fr .8fr 1.2fr; gap: 40px; width: min(100% - 48px, var(--max)); margin: 0 auto; }
.footer-logo { color: var(--cream); }
.footer-brand > p:not(.footer-logo), .footer-social p { max-width: 230px; margin: 18px 0 0; color: rgba(255, 248, 239, .65); font-size: 14px; }
.footer-links h2, .footer-social h2 { margin: 0 0 17px; color: var(--peach); font-size: 12px; letter-spacing: .13em; text-transform: uppercase; }
.footer-links ul { display: flex; flex-direction: column; gap: 6px; margin: 0; padding: 0; list-style: none; }
.footer-links a { color: var(--cream); font-size: 14px; text-decoration: none; }
.footer-links a:hover { color: var(--butter); }
.footer-cta { display: inline-flex; gap: 10px; margin-top: 22px; padding-bottom: 5px; border-bottom: 1px solid var(--peach); color: var(--cream); font-size: 14px; font-weight: 700; text-decoration: none; }
.footer-bottom { display: flex; justify-content: space-between; width: min(100% - 48px, var(--max)); margin: 55px auto 0; padding-top: 18px; border-top: 1px solid rgba(255, 248, 239, .2); color: rgba(255, 248, 239, .55); font-size: 12px; }
.footer-bottom p { margin: 0; }

@media (max-width: 900px) {
    .home-intro { grid-template-columns: 1fr; gap: 24px; padding-right: 0; padding-left: 0; }
    .intro-copy { max-width: 500px; }
    .hero-story { grid-template-columns: 1fr; }
    .hero-story-copy { padding: 36px; }
    .footer-container { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 680px) {
    #main-content, .header-inner, .nav-links, .footer-container, .footer-bottom { width: min(100% - 32px, var(--max)); }
    .header-inner { min-height: 75px; gap: 12px; }
    .logo-image { width: 40px; height: 40px; }
    .logo-text { font-size: 14px; }
    .search-form { width: auto; margin-left: auto; border: 0; }
    .search-form input { display: none; }
    .search-form button { width: 38px; height: 38px; padding: 0; border: 1px solid var(--ink); border-radius: 50%; font-size: 0; }
    .search-form button::after { content: "⌕"; font-size: 21px; }
    .burger-menu { display: block; }
    .navbar-row2 { position: relative; }
    .nav-links { display: none; flex-direction: column; gap: 0; padding: 10px 0 15px; }
    .nav-links.active { display: flex; }
    .nav-links a { padding: 9px; text-align: left; }
    .home-intro { padding: 55px 0 48px; }
    .home-intro h1 { font-size: clamp(48px, 15vw, 75px); }
    .hero-story { margin: 35px 0 65px; }
    .hero-story-image { min-height: 280px; }
    .hero-story-copy { padding: 28px 24px 32px; }
    .hero-story-copy h2 { font-size: 38px; }
    .latest-section { margin-bottom: 65px; }
    .section-heading h2 { font-size: 38px; }
    .swiper-controls { display: none; }
    .page-item { grid-template-columns: 110px minmax(0, 1fr); min-height: 150px; }
    .page-image img { min-height: 150px; }
    .page-content { padding: 16px; }
    .page-title { font-size: 21px; }
    .page-description { display: none; }
    .section-page-header { padding: 60px 0 32px; }
    .section-page-header h1 { font-size: 62px; }
    .post { padding: 55px 0 80px; }
    .post-title { font-size: 48px; }
    .post-header .post-description { font-size: 17px; }
    .post-content { font-size: 17px; line-height: 1.75; }
    .single-author-profile { padding: 55px 0 80px; }
    .single-author-box { grid-template-columns: 1fr; gap: 25px; padding-bottom: 50px; }
    .single-author-icon img { width: 145px; height: 145px; }
    .single-author-details h1 { font-size: 52px; }
    .search-result { grid-template-columns: 100px 1fr; }
    .search-result .page-image { min-height: 130px; }
    .search-result .page-content { padding: 14px; }
    .footer-container { grid-template-columns: 1fr 1fr; gap: 32px 20px; }
    .footer-brand, .footer-social { grid-column: 1 / -1; }
    .footer-bottom { flex-direction: column; gap: 5px; margin-top: 40px; }
}
