/* Wander Diaries — Travel Blog
   Modern minimal: cream paper background, terracotta accent, serif + grotesk pairing.
   Edit colors / spacing here. Tailwind utilities handle layout in HTML. */

:root {
    --paper: #f6f1e7;
    /* warm cream background */
    --paper-2: #ece4d3;
    /* slightly darker cream for chips */
    --ink: #1a1a1a;
    /* near-black text */
    --ink-2: #4a4a4a;
    /* muted text */
    --line: #d9cfb9;
    /* hairline borders on cream */
    --accent: #b4441f;
    /* terracotta */
    --accent-ink: #ffffff;
}

* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html,
body {
    background: var(--paper);
    color: var(--ink);
    font-family: 'Outfit', system-ui, -apple-system, sans-serif;
    font-size: 17px;
    line-height: 1.65;
}

.font-serif {
    font-family: 'Fraunces', Georgia, 'Times New Roman', serif;
}

.font-mono-tag {
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    letter-spacing: 0.04em;
}

a {
    color: inherit;
    text-decoration: none;
}

.text-ink {
    color: var(--ink);
}

.text-ink-2 {
    color: var(--ink-2);
}

.text-accent {
    color: var(--accent);
}

.bg-paper {
    background: var(--paper);
}

.bg-paper-2 {
    background: var(--paper-2);
}

.bg-accent {
    background: var(--accent);
    color: var(--accent-ink);
}

.border-line {
    border-color: var(--line);
}

/* Hairline divider */
.hr-line {
    height: 1px;
    background: var(--line);
    border: 0;
}

/* Selection */
::selection {
    background: var(--accent);
    color: #fff;
}

/* Pill button */
.btn-pill {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    padding: 0.85rem 1.4rem;
    border-radius: 999px;
    border: 1px solid var(--ink);
    background: var(--ink);
    color: #fff;
    font-weight: 500;
    font-size: 0.95rem;
    transition: transform .25s ease, background .25s ease, color .25s ease;
}

.btn-pill:hover {
    transform: translateY(-2px);
    background: var(--accent);
    border-color: var(--accent);
}

.btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    padding: 0.8rem 1.3rem;
    border-radius: 999px;
    border: 1px solid var(--ink);
    background: transparent;
    color: var(--ink);
    font-weight: 500;
    font-size: 0.95rem;
    transition: transform .25s ease, background .25s ease, color .25s ease;
}

.btn-ghost:hover {
    transform: translateY(-2px);
    background: var(--ink);
    color: #fff;
}

/* Chip / tag */
.chip {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: 0.25rem 0.7rem;
    border-radius: 999px;
    background: var(--paper-2);
    color: var(--ink);
    font-size: 0.78rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

/* Number marker for sections */
.num-marker {
    font-family: 'Fraunces', serif;
    font-style: italic;
    font-weight: 300;
    color: var(--accent);
}

/* Card image hover */
.dest-card .dest-img {
    transition: transform .9s cubic-bezier(.2, .7, .2, 1);
}

.dest-card:hover .dest-img {
    transform: scale(1.06);
}

.dest-card .arrow {
    transition: transform .35s ease;
    display: inline-block;
}

.dest-card:hover .arrow {
    transform: translateX(6px);
}

/* Underline link */
.u-link {
    position: relative;
    display: inline-block;
    padding-bottom: 3px;
}

.u-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    height: 1px;
    width: 100%;
    background: currentColor;
    transform-origin: right;
    transform: scaleX(1);
    transition: transform .4s cubic-bezier(.2, .7, .2, 1);
}

.u-link:hover::after {
    transform-origin: left;
    transform: scaleX(0);
}

/* Hero kicker */
.kicker {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 0.78rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--ink-2);
}

.kicker::before {
    content: '';
    width: 28px;
    height: 1px;
    background: var(--ink-2);
    display: inline-block;
}

/* Marquee */
.marquee {
    overflow: hidden;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.marquee-track {
    display: flex;
    gap: 3rem;
    white-space: nowrap;
    animation: marquee 38s linear infinite;
    padding: 1rem 0;
    font-family: 'Fraunces', serif;
    font-style: italic;
    font-size: 1.4rem;
    color: var(--ink);
}

.marquee-track span::before {
    content: '✺';
    margin-right: 3rem;
    color: var(--accent);
    font-style: normal;
}

@keyframes marquee {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

/* Article prose */
.prose-body p {
    margin-bottom: 1.25rem;
    color: var(--ink);
}

.prose-body h2 {
    font-family: 'Fraunces', serif;
    font-weight: 500;
    font-size: 1.9rem;
    line-height: 1.15;
    margin-top: 2.75rem;
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
}

.prose-body h3 {
    font-family: 'Fraunces', serif;
    font-weight: 500;
    font-size: 1.35rem;
    margin-top: 2rem;
    margin-bottom: 0.65rem;
}

.prose-body blockquote {
    border-left: 2px solid var(--accent);
    padding: 0.25rem 0 0.25rem 1.25rem;
    margin: 1.75rem 0;
    font-family: 'Fraunces', serif;
    font-style: italic;
    font-size: 1.35rem;
    line-height: 1.45;
    color: var(--ink);
}

.prose-body ul {
    list-style: none;
    padding: 0;
    margin: 1rem 0 1.5rem;
}

.prose-body ul li {
    position: relative;
    padding-left: 1.4rem;
    margin-bottom: 0.55rem;
}

.prose-body ul li::before {
    content: '→';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--accent);
}

.prose-body a {
    color: var(--accent);
    border-bottom: 1px solid var(--accent);
}

/* Drop cap */
.dropcap::first-letter {
    font-family: 'Fraunces', serif;
    font-weight: 500;
    float: left;
    font-size: 4.5rem;
    line-height: 0.85;
    padding-top: 0.45rem;
    padding-right: 0.65rem;
    color: var(--accent);
}

/* Fact box */
.factbox {
    background: var(--paper-2);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 1.5rem 1.75rem;
}

.factbox dt {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink-2);
}

.factbox dd {
    font-family: 'Fraunces', serif;
    font-size: 1.15rem;
    margin-top: 0.15rem;
    margin-bottom: 0.9rem;
}

/* Form */
.form-input {
    width: 100%;
    background: transparent;
    border: 0;
    border-bottom: 1px solid var(--line);
    padding: 0.9rem 0.1rem;
    color: var(--ink);
    font-family: inherit;
    font-size: 1rem;
    transition: border-color .3s ease;
}

.form-input:focus {
    outline: none;
    border-bottom-color: var(--accent);
}

.form-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ink-2);
}

/* Reveal on scroll */
.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .8s ease, transform .8s ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Mobile nav - Slide down animation and vertical layout */
@media (max-width: 768px) {
    .nav-links {
        /* Tailwind ki 'hidden' class ko override karne ke liye !important */
        display: flex !important;
        flex-direction: column;
        /* Items ko ek line ki jagah upar-niche (vertical) set karega */
        align-items: flex-start;

        /* Dropdown ki tarah header ke theek niche position karne ke liye */
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--paper);
        z-index: 50;

        /* Slide Animation setup */
        max-height: 0;
        opacity: 0;
        visibility: hidden;
        overflow: hidden;
        padding: 0 1.5rem;
        transition: max-height 0.4s ease, opacity 0.3s ease, padding 0.4s ease, visibility 0.4s;
    }

    /* Jab JS 'open' class add karega */
    .nav-links.open {
        max-height: 400px;
        /* Itni height jisme sabhi links fit aa jayein */
        opacity: 1;
        visibility: visible;
        padding: 1.5rem;
        border-bottom: 1px solid var(--line);
        box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
        /* Halki si shadow depth ke liye */
    }

    /* Mobile pe links ko thoda spacing dene ke liye */
    .nav-links a {
        width: 100%;
        padding: 0.4rem 0;
    }

    /* Button ko mobile view me properly stretch karne ke liye */
    .nav-links .btn-pill {
        justify-content: center;
        margin-top: 0.5rem;
    }
}

/* Subtle grain overlay (optional) */
.grain::after {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.05 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
    opacity: 0.6;
    mix-blend-mode: multiply;
}
