:root {
--cream: #f5f2ec;
--orange: #e8721a;
--orange-light: #f59340;
--dark: #1a1a18;
--muted: #8a8780;
--border: #e0dcd4;
--white: #ffffff;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
background: var(--cream);
color: var(--dark);
font-family: 'DM Sans', sans-serif;
font-weight: 300;
line-height: 1.6;
min-height: 100vh;
}

/* NAV */
nav {
position: fixed;
top: 0; left: 0; right: 0;
display: flex;
align-items: center;
justify-content: space-between;
padding: 20px 40px;
z-index: 100;
background: #F5F2EC;
backdrop-filter: blur(12px);
-webkit-backdrop-filter: blur(12px);
}

.nav-left {
display: flex;
align-items: center;
gap: 32px;
}

.logo {
font-family: 'Fraunces', serif;
font-weight: 400;
font-size: 18px;
letter-spacing: -0.3px;
color: var(--dark);
text-decoration: none;
}

.nav-links {
display: flex;
gap: 28px;
list-style: none;
}

.nav-links a {
font-size: 13px;
font-weight: 400;
color: var(--muted);
text-decoration: none;
letter-spacing: 0.2px;
transition: color 0.2s;
}

.nav-links a:hover { color: var(--dark); }

.nav-right {
display: flex;
align-items: center;
gap: 16px;
}

.theme-btn {
background: none;
border: none;
cursor: pointer;
color: var(--muted);
font-size: 16px;
display: flex;
align-items: center;
padding: 6px;
transition: color 0.2s;
}
.theme-btn:hover { color: var(--dark); }

.btn-pill {
background: var(--dark);
color: var(--white);
border: none;
padding: 8px 18px;
border-radius: 100px;
font-family: 'DM Sans', sans-serif;
font-size: 13px;
font-weight: 400;
cursor: pointer;
transition: opacity 0.2s;
}
.btn-pill:hover { opacity: 0.82; }

/* HERO */
.hero {
padding-top: 140px;
padding-bottom: 40px;
display: flex;
flex-direction: column;
align-items: center;
text-align: center;
position: relative;
overflow: hidden;
}

.hero-orb {
width: 96px;
height: 96px;
border-radius: 50%;
background: radial-gradient(circle at 38% 38%, var(--orange-light), var(--orange));
box-shadow: 0 0 60px 20px rgba(232, 114, 26, 0.18), 0 0 120px 40px rgba(232, 114, 26, 0.08);
margin-bottom: 40px;
animation: orb-float 4s ease-in-out infinite;
}

@keyframes orb-float {
0%, 100% { transform: translateY(0); box-shadow: 0 0 60px 20px rgba(232,114,26,0.18), 0 0 120px 40px rgba(232,114,26,0.08); }
50% { transform: translateY(-8px); box-shadow: 0 12px 80px 24px rgba(232,114,26,0.22), 0 0 140px 50px rgba(232,114,26,0.10); }
}

.hero h1 {
font-family: 'Fraunces', serif;
font-weight: 300;
font-size: clamp(42px, 6vw, 72px);
line-height: 1.08;
letter-spacing: -1.5px;
color: var(--dark);
max-width: 680px;
margin-bottom: 16px;
}

.hero h1 em {
font-style: italic;
color: var(--orange);
}

.hero p {
font-size: 15px;
color: var(--muted);
max-width: 440px;
margin-bottom: 36px;
line-height: 1.7;
}

.hero-tags {
display: flex;
gap: 10px;
flex-wrap: wrap;
justify-content: center;
}

.tag-chip {
display: flex;
align-items: center;
gap: 7px;
border: 1px solid var(--border);
background: var(--white);
padding: 8px 16px;
border-radius: 100px;
font-size: 12.5px;
color: var(--dark);
cursor: pointer;
transition: border-color 0.2s, background 0.2s;
text-decoration: none;
}

.tag-chip:hover {
border-color: var(--orange);
background: rgba(232, 114, 26, 0.04);
}

.tag-chip svg { color: var(--muted); }

/* DIVIDER */
.section-divider {
width: 100%;
height: 1px;
background: var(--border);
margin: 0 40px;
width: calc(100% - 80px);
}

/* MAIN CONTENT */
main {
max-width: 1160px;
margin: 0 auto;
padding: 64px 40px 100px;
}

.section-label {
font-size: 11px;
font-weight: 500;
letter-spacing: 1.6px;
text-transform: uppercase;
color: var(--muted);
margin-bottom: 32px;
}

/* FEATURED POST */
.featured-post {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 48px;
margin-bottom: 80px;
align-items: center;
}

.featured-image {
aspect-ratio: 4/3;
border-radius: 16px;
overflow: hidden;
position: relative;
background: linear-gradient(135deg, #e8c49a 0%, #d4956a 50%, #c47340 100%);
}

.featured-image-inner {
width: 100%;
height: 100%;
display: flex;
align-items: center;
justify-content: center;
position: relative;
}

.img-placeholder {
width: 100%;
height: 100%;
display: flex;
align-items: flex-end;
padding: 24px;
}

.img-geo {
position: absolute;
width: 100%; height: 100%;
top: 0; left: 0;
overflow: hidden;
border-radius: 16px;
}

.img-geo svg { width: 100%; height: 100%; }

.featured-meta { padding: 8px 0; }

.post-category {
display: inline-block;
font-size: 11px;
font-weight: 500;
letter-spacing: 1.4px;
text-transform: uppercase;
color: var(--orange);
margin-bottom: 14px;
}

.featured-meta h2 {
font-family: 'Fraunces', serif;
font-weight: 400;
font-size: clamp(26px, 3vw, 38px);
line-height: 1.15;
letter-spacing: -0.8px;
margin-bottom: 16px;
color: var(--dark);
}

.featured-meta p {
font-size: 14px;
color: var(--muted);
line-height: 1.75;
margin-bottom: 28px;
max-width: 420px;
}

.post-footer {
display: flex;
align-items: center;
justify-content: space-between;
}

.author-row {
display: flex;
align-items: center;
gap: 10px;
}

.avatar {
width: 32px; height: 32px;
border-radius: 50%;
background: linear-gradient(135deg, var(--orange-light), var(--orange));
display: flex;
align-items: center;
justify-content: center;
font-size: 11px;
font-weight: 500;
color: white;
}

/* .author-info { } */
.author-name { font-size: 12.5px; font-weight: 500; color: var(--dark); }
.post-date { font-size: 11.5px; color: var(--muted); }

.read-btn {
display: flex;
align-items: center;
gap: 8px;
font-size: 13px;
font-weight: 500;
color: var(--dark);
text-decoration: none;
border: 1px solid var(--border);
padding: 9px 18px;
border-radius: 100px;
background: var(--white);
transition: all 0.2s;
cursor: pointer;
}
.read-btn:hover {
background: var(--dark);
color: var(--white);
border-color: var(--dark);
}
.read-btn svg { transition: transform 0.2s; }
.read-btn:hover svg { transform: translateX(3px); }

/* POST GRID */
.posts-grid {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 28px;
margin-bottom: 80px;
}

.post-card {
background: var(--white);
border-radius: 14px;
overflow: hidden;
border: 1px solid var(--border);
transition: transform 0.25s, box-shadow 0.25s;
cursor: pointer;
}

.post-card:hover {
transform: translateY(-4px);
box-shadow: 0 16px 48px rgba(26, 26, 24, 0.09);
}

.card-img {
aspect-ratio: 16/10;
position: relative;
overflow: hidden;
}

.card-img-bg {
width: 100%; height: 100%;
display: flex;
align-items: center;
justify-content: center;
}

.card-body { padding: 22px; }

.card-body .post-category { margin-bottom: 10px; }

.card-body h3 {
font-family: 'Fraunces', serif;
font-weight: 400;
font-size: 18px;
line-height: 1.3;
letter-spacing: -0.3px;
color: var(--dark);
margin-bottom: 10px;
}

.card-body p {
font-size: 13px;
color: var(--muted);
line-height: 1.7;
margin-bottom: 18px;
}

.card-footer {
display: flex;
align-items: center;
justify-content: space-between;
padding-top: 14px;
border-top: 1px solid var(--border);
}

.reading-time {
font-size: 11.5px;
color: var(--muted);
display: flex;
align-items: center;
gap: 5px;
}

/* NEWSLETTER */
.newsletter {
background: var(--dark);
border-radius: 20px;
padding: 56px 64px;
display: flex;
align-items: center;
justify-content: space-between;
gap: 40px;
margin-bottom: 80px;
position: relative;
overflow: hidden;
}

.newsletter::before {
content: '';
position: absolute;
right: -40px; top: -40px;
width: 200px; height: 200px;
border-radius: 50%;
background: radial-gradient(circle, rgba(232,114,26,0.25), transparent 70%);
pointer-events: none;
}

.newsletter-text h3 {
font-family: 'Fraunces', serif;
font-weight: 300;
font-size: 28px;
color: var(--white);
letter-spacing: -0.5px;
margin-bottom: 8px;
}

.newsletter-text h3 em { font-style: italic; color: var(--orange-light); }

.newsletter-text p {
font-size: 13.5px;
color: rgba(255,255,255,0.48);
}

.newsletter-form {
display: flex;
gap: 10px;
flex-shrink: 0;
}

.newsletter-input {
background: rgba(255,255,255,0.08);
border: 1px solid rgba(255,255,255,0.12);
border-radius: 100px;
padding: 11px 20px;
font-family: 'DM Sans', sans-serif;
font-size: 13px;
color: var(--white);
width: 240px;
outline: none;
transition: border-color 0.2s;
}
.newsletter-input::placeholder { color: rgba(255,255,255,0.35); }
.newsletter-input:focus { border-color: rgba(255,255,255,0.3); }

.newsletter-btn {
background: var(--orange);
color: var(--white);
border: none;
padding: 11px 22px;
border-radius: 100px;
font-family: 'DM Sans', sans-serif;
font-size: 13px;
font-weight: 500;
cursor: pointer;
transition: opacity 0.2s;
white-space: nowrap;
}
.newsletter-btn:hover { opacity: 0.88; }

/* MORE POSTS */
.list-posts { display: flex; flex-direction: column; gap: 0; }

.list-post-item {
display: grid;
grid-template-columns: 80px 1fr auto;
gap: 20px;
align-items: center;
padding: 20px 0;
border-bottom: 1px solid var(--border);
cursor: pointer;
transition: opacity 0.2s;
text-decoration: none;
color: inherit;
}

.list-post-item:first-child { border-top: 1px solid var(--border); }
.list-post-item:hover { opacity: 0.7; }

.list-num {
font-family: 'Fraunces', serif;
font-weight: 300;
font-size: 28px;
color: var(--border);
letter-spacing: -1px;
line-height: 1;
}

.list-post-info h4 {
font-family: 'Fraunces', serif;
font-weight: 400;
font-size: 16px;
letter-spacing: -0.2px;
margin-bottom: 4px;
color: var(--dark);
}

.list-post-info span {
font-size: 12px;
color: var(--muted);
}

.list-arrow {
color: var(--muted);
transition: transform 0.2s, color 0.2s;
}

.list-post-item:hover .list-arrow {
transform: translateX(4px);
color: var(--orange);
}

/* FOOTER */
footer {
border-top: 1px solid var(--border);
padding: 32px 40px;
display: flex;
align-items: center;
justify-content: space-between;
}

.footer-logo {
font-family: 'Fraunces', serif;
font-weight: 400;
font-size: 16px;
color: var(--dark);
}

.footer-copy {
font-size: 12px;
color: var(--muted);
}

.footer-links {
display: flex;
gap: 20px;
list-style: none;
}

.footer-links a {
font-size: 12px;
color: var(--muted);
text-decoration: none;
transition: color 0.2s;
}
.footer-links a:hover { color: var(--dark); }

/* PAGE TRANSITIONS */
.page { animation: fade-in 0.4s ease; }
@keyframes fade-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* ARTICLE PAGE REDESIGN */
.progress-container {
    position: fixed;
    top: 70px; /* Just below nav */
    left: 0;
    width: 100%;
    height: 4px;
    background: transparent;
    z-index: 90;
    pointer-events: none;
}
.progress-bar {
    height: 100%;
    background: var(--orange);
    width: 0%;
    transition: width 0.1s ease-out;
    box-shadow: 0 0 10px rgba(232, 114, 26, 0.5);
}

.article-page-inner { 
    max-width: 880px; /* 800px + 80px padding */
    margin: 0 auto; 
    padding: 100px 40px 120px; 
    position: relative;
    animation: fade-up 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--muted);
    text-decoration: none;
    margin-bottom: 40px;
    padding: 8px 16px;
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid var(--border);
    cursor: pointer;
    font-family: 'DM Sans', sans-serif;
    backdrop-filter: blur(8px);
    transition: all 0.3s ease;
}
.back-btn:hover { 
    color: var(--dark); 
    background: var(--white);
    transform: translateX(-4px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.featured-read-btn {
    display: inline-flex;
    flex-direction: row-reverse; /* Put SVG on right */
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 500;
    color: var(--dark);
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid var(--border);
    cursor: pointer;
    font-family: 'DM Sans', sans-serif;
    backdrop-filter: blur(8px);
    transition: all 0.3s ease;
}
.featured-read-btn:hover {
    background: var(--white);
    transform: translateX(4px); /* Moves right because it's a forward action */
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.article-header { margin-bottom: 48px; text-align: center; }
.article-header .post-category { 
    margin-bottom: 20px; 
    display: inline-block;
    padding: 6px 14px;
    background: rgba(232, 114, 26, 0.1);
    border-radius: 100px;
    font-size: 12px;
}
.article-header h1 {
    font-family: 'Fraunces', serif;
    font-weight: 300;
    font-size: clamp(36px, 6vw, 64px);
    letter-spacing: -1.5px;
    line-height: 1.1;
    margin-bottom: 32px;
    color: var(--dark);
}

.article-header .meta-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 20px 0;
    border-top: 1px solid rgba(0,0,0,0.05);
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.article-hero-img {
    aspect-ratio: 21/9;
    border-radius: 20px;
    margin: 0 -40px 56px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

.article-body {
    font-size: 17px;
    line-height: 1.9;
    color: #2e2e2c;
}

.article-body p {
    margin-bottom: 24px;
}

/* Beautiful Drop Cap for first paragraph */
.article-body p:first-of-type::first-letter {
    font-family: 'Fraunces', serif;
    font-size: 80px;
    line-height: 0.8;
    float: left;
    margin-right: 12px;
    margin-top: 4px;
    color: var(--orange);
    font-weight: 400;
}

.article-body h2 {
    font-family: 'Fraunces', serif;
    font-weight: 400;
    font-size: 28px;
    letter-spacing: -0.5px;
    color: var(--dark);
    margin: 48px 0 20px;
}

.article-body blockquote {
    position: relative;
    border-left: none;
    padding: 32px 40px;
    margin: 48px 0;
    font-family: 'Fraunces', serif;
    font-style: italic;
    font-size: 24px;
    color: var(--dark);
    line-height: 1.6;
    background: linear-gradient(135deg, rgba(232, 114, 26, 0.05), transparent);
    border-radius: 16px;
}
.article-body blockquote::before {
    content: '"';
    position: absolute;
    top: -20px;
    left: 20px;
    font-size: 80px;
    color: rgba(232, 114, 26, 0.2);
    font-family: sans-serif;
    line-height: 1;
}

/* Color palettes for cards */
.palette-1 { background: linear-gradient(135deg, #e8c49a, #d4836a); }
.palette-2 { background: linear-gradient(135deg, #9ac4e8, #5a8fbf); }
.palette-3 { background: linear-gradient(135deg, #b8e8a4, #62b87a); }
.palette-4 { background: linear-gradient(135deg, #e8b4d4, #bf6aa0); }
.palette-5 { background: linear-gradient(135deg, #e8e09a, #c8b450); }
.palette-6 { background: linear-gradient(135deg, #c4a8e8, #8a5abf); }

.pattern-overlay {
position: absolute; inset: 0;
opacity: 0.12;
background-image: radial-gradient(circle at 20% 50%, white 1px, transparent 1px),
                    radial-gradient(circle at 80% 20%, white 1px, transparent 1px),
                    radial-gradient(circle at 60% 80%, white 1px, transparent 1px);
background-size: 40px 40px, 60px 60px, 50px 50px;
}

@media (max-width: 768px) {
nav { padding: 16px 20px; }
.nav-links { display: none; }
main { padding: 48px 20px 80px; }
.featured-post { grid-template-columns: 1fr; }
.posts-grid { grid-template-columns: 1fr; }
.newsletter { padding: 36px 28px; flex-direction: column; }
.newsletter-form { flex-direction: column; width: 100%; }
.newsletter-input { width: 100%; }
footer { flex-direction: column; gap: 16px; text-align: center; }
.hero { padding-top: 100px; }
}