/* Cây Trong Nhà - Editorial, narrow prose + full-bleed - Distinct */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --bg: #f8faf8;
    --bg-alt: #eef4ee;
    --ink: #1a2f1a;
    --ink-mid: #3d5c3d;
    --ink-soft: #5c7a5c;
    --green: #1b4332;
    --green-hover: #2d6a4f;
    --line: #d4e0d4;
    --white: #fff;
    --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Source Sans 3', system-ui, sans-serif;
    background: var(--bg);
    color: var(--ink);
    line-height: 1.75;
    font-size: 17px;
    overflow-x: hidden;
}

.wrapper { min-height: 100vh; }

h1, h2, h3 { font-family: 'Lora', serif; }

/* Masthead */
.mast {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    background: rgba(248, 250, 248, 0.97);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--line);
}

.mast__in {
    max-width: 1000px;
    margin: 0 auto;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.mast__logo {
    font-family: 'Lora', serif;
    font-weight: 700;
    font-size: 1.35rem;
    color: var(--ink);
    text-decoration: none;
}

.mast__logo:hover { color: var(--green); }

.mast__nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0 1.5rem;
}

.mast__a {
    color: var(--ink-mid);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.5rem 0;
    border-bottom: 2px solid transparent;
    transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.mast__a:hover, .mast__a--on {
    color: var(--green);
    border-bottom-color: var(--green);
}

.mast__btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
}

.mast__btn span {
    width: 22px;
    height: 2px;
    background: var(--ink);
    border-radius: 2px;
}

/* Hero - full width, caption at bottom */
.hero {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: flex-end;
    padding: 5rem 1.5rem 3rem;
}

.hero__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
}

.hero__bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(26,47,26,0.75) 0%, transparent 50%);
}

.hero__cap {
    position: relative;
    z-index: 1;
    max-width: 1000px;
    margin: 0 auto;
    width: 100%;
}

.hero__h1 {
    font-size: clamp(2rem, 4.5vw, 3rem);
    font-weight: 700;
    line-height: 1.2;
    color: var(--white);
    margin-bottom: 0.5rem;
}

.hero__p {
    color: rgba(255,255,255,0.9);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    max-width: 560px;
}

.hero__btns {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.hero__cta {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 6px;
    text-decoration: none;
    transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
    font-family: inherit;
}

.hero__cta--solid {
    background: var(--green);
    color: var(--white);
}

.hero__cta--solid:hover {
    background: var(--green-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(27, 67, 50, 0.3);
}

.hero__cta--outline {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255,255,255,0.8);
}

.hero__cta--outline:hover {
    background: rgba(255,255,255,0.15);
    border-color: var(--white);
}

/* Prose - narrow centered */
.prose {
    padding: 3.5rem 1.5rem;
}

.prose--alt { background: var(--bg-alt); }

.prose__in {
    max-width: 680px;
    margin: 0 auto;
    text-align: center;
}

.prose__title {
    font-size: clamp(1.65rem, 3vw, 2rem);
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 0.75rem;
}

.prose__lead {
    color: var(--ink-mid);
    font-size: 1.05rem;
    line-height: 1.8;
}

/* Full-width image strip */
.fullimg {
    width: 100%;
    max-height: 480px;
    overflow: hidden;
}

.fullimg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Deck - 3 cards */
.deck {
    padding: 3.5rem 1.5rem 4rem;
}

.deck__in { max-width: 1000px; margin: 0 auto; }

.deck__title {
    font-size: clamp(1.65rem, 3vw, 2rem);
    font-weight: 700;
    text-align: center;
    color: var(--ink);
    margin-bottom: 1.5rem;
}

.deck__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.deck__card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--line);
    text-decoration: none;
    color: inherit;
    transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
}

.deck__card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(26, 47, 26, 0.08);
    border-color: var(--green);
}

.deck__img {
    aspect-ratio: 4/3;
    overflow: hidden;
}

.deck__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s var(--ease);
}

.deck__card:hover .deck__img img { transform: scale(1.05); }

.deck__txt { padding: 1.25rem; }

.deck__txt h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
    color: var(--ink);
}

.deck__txt p { color: var(--ink-soft); font-size: 0.9rem; }

/* Footer */
.foot {
    padding: 2.5rem 1.5rem;
    border-top: 1px solid var(--line);
    background: var(--bg-alt);
}

.foot__in { max-width: 1000px; margin: 0 auto; }

.foot__row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.foot__logo {
    font-family: 'Lora', serif;
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--ink);
    text-decoration: none;
}

.foot__nav { display: flex; gap: 1.25rem; }

.foot__nav a {
    color: var(--ink-mid);
    text-decoration: none;
    font-size: 0.9rem;
}

.foot__nav a:hover { color: var(--green); }

.foot__note { color: var(--ink-soft); font-size: 0.85rem; }

/* Inner: cover + sheet */
.cover {
    position: relative;
    padding: 6rem 1.5rem 3rem;
    min-height: 280px;
    display: flex;
    align-items: flex-end;
    background-size: cover;
    background-position: center;
}

.cover::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(26,47,26,0.8) 0%, transparent 60%);
}

.cover .prose__in {
    position: relative;
    z-index: 1;
    width: 100%;
    text-align: left;
}

.cover h1 { color: var(--white); margin-bottom: 0.35rem; }

.cover p { color: rgba(255,255,255,0.9); }

.sheet {
    padding: 2.5rem 1.5rem 4rem;
}

.sheet .prose__in {
    max-width: 680px;
    margin: 0 auto;
    text-align: left;
}

.sheet h2 {
    font-size: 1.45rem;
    margin: 2rem 0 0.6rem;
    color: var(--ink);
}

.sheet h3 {
    font-size: 1.2rem;
    margin: 1.5rem 0 0.5rem;
    color: var(--ink);
}

.sheet p, .sheet ul {
    margin-bottom: 1rem;
    color: var(--ink-mid);
}

.sheet ul { margin-left: 1.5rem; }

.sheet li { margin-bottom: 0.4rem; }

.sheet a {
    color: var(--green);
    text-decoration: none;
    font-weight: 500;
}

.sheet a:hover { text-decoration: underline; }

.sheet .pic {
    width: 100%;
    border-radius: 8px;
    margin: 1.5rem 0;
    border: 1px solid var(--line);
}

.contact-email-addr { color: var(--green); font-weight: 600; }

.contact-box {
    margin: 1.5rem 0;
    padding: 1.25rem;
    background: var(--bg-alt);
    border-radius: 8px;
    border: 1px solid var(--line);
}

/* Animate */
[data-animate] {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}

[data-animate].visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 900px) {
    .mast__nav { display: none; }
    .mast__nav.nav--open {
        display: flex;
        position: absolute;
        top: 100%;
        left: 0; right: 0;
        background: var(--bg);
        flex-direction: column;
        padding: 1rem;
        border-bottom: 1px solid var(--line);
    }
    .mast__btn { display: flex; }
    .deck__grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
    .hero__btns { flex-direction: column; }
    .hero__cta { width: 100%; text-align: center; }
    .foot__row { flex-direction: column; align-items: flex-start; }
}
