/* ========================================
   THE ORANGE GARDEN — Aditi Sarkar
   "Warm ink on aged paper"
   ======================================== */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400;1,500;1,600&family=Lora:ital,wght@0,400;0,500;0,600;1,400;1,500&family=IBM+Plex+Mono:ital,wght@0,300;0,400;1,300;1,400&display=swap');

:root {
    --bg: #FAF6F0;
    --bg-alt: #F2ECE3;
    --text: #2A2118;
    --text-secondary: #5E554A;
    --text-muted: #9A8F83;
    --accent: #B85C38;
    --accent-light: rgba(184, 92, 56, 0.06);
    --accent-hover: #9A4A2A;
    --border: #E4DCD0;
    --border-light: #EDE7DD;
    --gold: #C4973B;
    --coffee: rgba(139, 90, 43, 0.08);

    --display: 'Cormorant Garamond', Georgia, serif;
    --body: 'Lora', Georgia, serif;
    --mono: 'IBM Plex Mono', monospace;

    --content-w: 660px;
    --wide-w: 960px;
    --nav-h: 52px;
}

/* ─── Reset ───────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 17px; }

body {
    font-family: var(--body);
    font-weight: 400;
    color: var(--text);
    background: var(--bg);
    line-height: 1.78;
    -webkit-font-smoothing: antialiased;
}

/* Subtle paper grain */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.018;
    mix-blend-mode: multiply;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-size: 256px;
}

body { animation: fadeIn 0.8s ease both; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

img { max-width: 100%; height: auto; display: block; }

a { color: var(--accent); text-decoration: none; transition: color 0.25s; }
a:hover { color: var(--accent-hover); }

::selection { background: rgba(184, 92, 56, 0.12); }

/* ─── Typography ──────────────────────── */
h1, h2, h3 {
    font-family: var(--display);
    font-weight: 400;
    color: var(--text);
    line-height: 1.15;
}

p { font-size: 1rem; color: var(--text-secondary); }

.uline {
    background-image: linear-gradient(var(--accent), var(--accent));
    background-size: 0% 1px;
    background-position: left bottom;
    background-repeat: no-repeat;
    transition: background-size 0.35s ease;
    padding-bottom: 1px;
}
.uline:hover { background-size: 100% 1px; }

/* ─── Navigation ──────────────────────── */
.nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    background: rgba(250, 246, 240, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-light);
}

.nav-inner {
    max-width: var(--wide-w);
    margin: 0 auto;
    padding: 0 2.5rem;
    height: var(--nav-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    font-family: var(--display);
    font-style: italic;
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--text);
    letter-spacing: 0;
}
.nav-logo:hover { color: var(--accent); }

.nav-links {
    list-style: none;
    display: flex;
    gap: 1.8rem;
}

.nav-links a {
    font-family: var(--mono);
    font-size: 0.68rem;
    letter-spacing: 0.04em;
    text-transform: lowercase;
    color: var(--text-muted);
    transition: color 0.25s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--text); }

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 24px;
    height: 16px;
    position: relative;
}
.nav-toggle span {
    position: absolute;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--text);
    transition: 0.3s;
}
.nav-toggle span:nth-child(1) { top: 0; }
.nav-toggle span:nth-child(2) { top: 50%; }
.nav-toggle span:nth-child(3) { bottom: 0; }

/* ─── Hero ────────────────────────────── */
.hero {
    max-width: var(--wide-w);
    margin: 0 auto;
    padding: calc(var(--nav-h) + 5rem) 2.5rem 4rem;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
    align-items: center;
}

.hero-text h1 {
    font-style: italic;
    font-weight: 300;
    font-size: clamp(2.6rem, 4.5vw, 3.8rem);
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
}

.hero-bio {
    font-family: var(--body);
    font-style: italic;
    font-size: 1.05rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    line-height: 1.7;
}

.hero-sub {
    font-family: var(--mono);
    font-size: 0.62rem;
    color: var(--text-muted);
    letter-spacing: 0.03em;
    margin-bottom: 2.5rem;
    line-height: 1.8;
}

.hero-nav {
    display: flex;
    gap: 1.25rem;
    flex-wrap: wrap;
    align-items: center;
}

.hero-nav a {
    font-family: var(--mono);
    font-size: 0.7rem;
    letter-spacing: 0.04em;
    text-transform: lowercase;
    color: var(--text-muted);
    padding-bottom: 2px;
    border-bottom: 1px solid var(--border);
    transition: all 0.25s;
}
.hero-nav a:hover {
    color: var(--accent);
    border-color: var(--accent);
}

.hero-nav .dot {
    color: var(--border);
    font-size: 0.35rem;
    user-select: none;
}

/* Hero photo */
.hero-photo {
    position: relative;
}

.hero-photo img {
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
    filter: saturate(0.92) sepia(0.03);
}

/* Offset frame behind photo */
.hero-photo::before {
    content: '';
    position: absolute;
    top: 12px;
    left: -12px;
    right: 12px;
    bottom: -12px;
    border: 1px solid var(--border);
    pointer-events: none;
}

/* ─── Dividers ────────────────────────── */
.divider-cat {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: 2rem 0;
    max-width: var(--content-w);
    margin: 0 auto;
}

.divider-cat .line {
    flex: 1;
    height: 1px;
    background: var(--border);
}

.divider-cat .cat-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    margin: 0 12px;
    color: var(--border);
    transition: color 0.5s;
}

.divider-cat:hover .cat-icon {
    color: var(--accent);
}

.divider-simple {
    text-align: center;
    padding: 1.5rem 0;
    max-width: var(--content-w);
    margin: 0 auto;
    color: var(--border);
    font-size: 0.7rem;
    letter-spacing: 0.8em;
    user-select: none;
}

/* ─── Sections ────────────────────────── */
.section {
    max-width: var(--content-w);
    margin: 0 auto;
    padding: 3rem 2rem;
}

.section-label {
    font-family: var(--mono);
    font-size: 0.65rem;
    letter-spacing: 0.1em;
    text-transform: lowercase;
    color: var(--accent);
    margin-bottom: 0.5rem;
    display: block;
}

.section-title {
    font-style: italic;
    font-weight: 300;
    font-size: 1.6rem;
    margin-bottom: 0.3rem;
}

.section-desc {
    font-family: var(--body);
    font-style: italic;
    font-size: 0.92rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

/* ─── About Strip (homepage) ─────────── */
.about-strip {
    max-width: var(--content-w);
    margin: 0 auto;
    padding: 0 2rem 2.5rem;
    position: relative;
}


.about-strip p {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.85;
    max-width: 520px;
}

.about-strip .more-link {
    display: inline-block;
    margin-top: 1.25rem;
    font-family: var(--mono);
    font-size: 0.7rem;
    letter-spacing: 0.04em;
    color: var(--accent);
}

/* ─── Garden Preview (homepage) ──────── */
.note-list { margin-top: 1rem; }

.note-item {
    display: block;
    padding: 1.3rem 0;
    border-top: 1px solid var(--border-light);
    color: var(--text);
    transition: padding-left 0.3s ease;
}
.note-item:last-child { border-bottom: 1px solid var(--border-light); }
.note-item:hover { padding-left: 0.5rem; }

.note-stage {
    font-family: var(--mono);
    font-size: 0.62rem;
    letter-spacing: 0.08em;
    text-transform: lowercase;
    color: var(--text-muted);
    margin-bottom: 0.15rem;
}

.note-item h3 {
    font-style: italic;
    font-size: 1.12rem;
    font-weight: 400;
    margin-bottom: 0.1rem;
    transition: color 0.25s;
}
.note-item:hover h3 { color: var(--accent); }

.note-item p {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin: 0;
}

/* ─── Writing CTA ─────────────────────── */
.writing-cta {
    background: var(--bg-alt);
    border: 1px solid var(--border-light);
    padding: 2.5rem;
    text-align: center;
}

.writing-cta p {
    font-family: var(--display);
    font-style: italic;
    font-size: 1.05rem;
    color: var(--text-muted);
    margin-bottom: 1.25rem;
}

.substack-btn {
    display: inline-block;
    padding: 0.55rem 1.6rem;
    font-family: var(--mono);
    font-size: 0.7rem;
    letter-spacing: 0.06em;
    text-transform: lowercase;
    color: var(--accent);
    border: 1px solid var(--accent);
    background: transparent;
    transition: all 0.3s ease;
    cursor: pointer;
}
.substack-btn:hover {
    background: var(--accent);
    color: var(--bg);
}

/* ─── Writing Items ───────────────────── */
.writing-item {
    display: block;
    padding: 1.3rem 0;
    border-top: 1px solid var(--border-light);
    transition: padding-left 0.3s ease;
}
.writing-item:last-child { border-bottom: 1px solid var(--border-light); }
.writing-item:hover { padding-left: 0.5rem; }

.writing-type {
    font-family: var(--mono);
    font-size: 0.62rem;
    letter-spacing: 0.08em;
    text-transform: lowercase;
    color: var(--accent);
    margin-bottom: 0.15rem;
}

.writing-item h3 {
    font-style: italic;
    font-size: 1.08rem;
    font-weight: 400;
    margin-bottom: 0.1rem;
    transition: color 0.25s;
}
.writing-item:hover h3 { color: var(--accent); }

.writing-item p {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin: 0;
}

.forthcoming {
    font-family: var(--mono);
    font-style: normal;
    font-size: 0.58rem;
    letter-spacing: 0.06em;
    text-transform: lowercase;
    color: var(--text-muted);
    margin-left: 0.5rem;
    vertical-align: middle;
}

/* ─── Quote ───────────────────────────── */
.quote-block {
    max-width: var(--content-w);
    margin: 0 auto;
    padding: 3.5rem 2rem;
    text-align: center;
}

.quote-block blockquote p {
    font-family: var(--display);
    font-style: italic;
    font-weight: 300;
    font-size: 1.5rem;
    color: var(--text);
    max-width: 460px;
    margin: 0 auto 0.6rem;
    line-height: 1.45;
}

.quote-block cite {
    font-family: var(--mono);
    font-size: 0.68rem;
    font-style: normal;
    letter-spacing: 0.06em;
    text-transform: lowercase;
    color: var(--text-muted);
}

/* ─── Paw Prints Easter Egg ──────────── */
.paw-trail {
    display: flex;
    justify-content: center;
    gap: 2rem;
    padding: 1.5rem 0;
    opacity: 0.06;
    transition: opacity 0.8s;
}
.paw-trail:hover { opacity: 0.2; }

.paw {
    width: 12px;
    height: 14px;
    position: relative;
    transform: rotate(-20deg);
}
.paw:nth-child(even) { transform: rotate(20deg) translateY(-3px); }

.paw::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 8px;
    height: 6px;
    background: var(--text-muted);
    border-radius: 50%;
}
.paw::after {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 6px;
    background:
        radial-gradient(circle at 15% 50%, var(--text-muted) 2.5px, transparent 2.5px),
        radial-gradient(circle at 50% 20%, var(--text-muted) 2.5px, transparent 2.5px),
        radial-gradient(circle at 85% 50%, var(--text-muted) 2.5px, transparent 2.5px);
}

/* ─── Footer ──────────────────────────── */
.footer {
    border-top: 1px solid var(--border-light);
    padding: 2.5rem 0;
    margin-top: 2rem;
}

.footer-inner {
    max-width: var(--wide-w);
    margin: 0 auto;
    padding: 0 2.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer p,
.footer-secret {
    font-family: var(--mono);
    font-size: 0.65rem;
    color: var(--text-muted);
    margin: 0;
    letter-spacing: 0.02em;
}

.footer-secret {
    font-style: italic;
    transition: color 0.5s;
}
.footer-secret:hover {
    color: var(--accent);
}

.footer-links {
    display: flex;
    gap: 1.25rem;
}

.footer-links a {
    font-family: var(--mono);
    font-size: 0.65rem;
    letter-spacing: 0.04em;
    text-transform: lowercase;
    color: var(--text-muted);
}
.footer-links a:hover { color: var(--accent); }

/* ─── Page Header (inner pages) ──────── */
.page-header {
    max-width: var(--content-w);
    margin: 0 auto;
    padding: calc(var(--nav-h) + 4rem) 2rem 1.5rem;
}

.page-header h1 {
    font-style: italic;
    font-weight: 300;
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    margin-bottom: 0.4rem;
}

.page-header .subtitle {
    font-family: var(--body);
    font-style: italic;
    font-size: 0.95rem;
    color: var(--text-muted);
}

/* ─── About Page ──────────────────────── */
.about-top { padding-bottom: 0; }

.about-top-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 3.5rem;
    align-items: start;
}

.about-photo-wrap {
    position: relative;
}

.about-photo-wrap img {
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
    filter: saturate(0.92) sepia(0.03);
}

.about-lead {
    font-family: var(--display);
    font-style: italic;
    font-weight: 300;
    font-size: 1.25rem;
    line-height: 1.45;
    color: var(--text);
    margin-bottom: 1.75rem;
}

.about-facts {
    border-top: 1px solid var(--border-light);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}

.about-facts > div {
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--border-light);
}

.about-facts > div:nth-child(odd) {
    padding-right: 1rem;
}

.about-facts > div:nth-child(even) {
    padding-left: 1rem;
    border-left: 1px solid var(--border-light);
}

.about-facts dt {
    font-family: var(--mono);
    font-size: 0.55rem;
    letter-spacing: 0.1em;
    text-transform: lowercase;
    color: var(--text-muted);
    margin-bottom: 0.1rem;
}

.about-facts dd {
    font-size: 0.78rem;
    color: var(--text-secondary);
    line-height: 1.45;
}

.about-body-section {
    max-width: var(--content-w);
}

.about-body-section p {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 1.2rem;
    line-height: 1.85;
}

.about-body-section h3 {
    font-style: italic;
    font-size: 1.1rem;
    font-weight: 400;
    margin-top: 2rem;
    margin-bottom: 0.5rem;
}

.interests {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-top: 0.75rem;
}

.interests span {
    font-family: var(--mono);
    font-size: 0.68rem;
    letter-spacing: 0.02em;
    color: var(--text-muted);
    background: var(--bg-alt);
    border: 1px solid var(--border-light);
    padding: 0.2rem 0.55rem;
}

/* ─── Garden Page ─────────────────────── */
.garden-legend {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.75rem;
    flex-wrap: wrap;
}

.garden-legend span {
    font-family: var(--mono);
    font-size: 0.68rem;
    letter-spacing: 0.02em;
    color: var(--text-muted);
}
.garden-legend strong {
    color: var(--text-secondary);
}

.garden-filter {
    display: flex;
    gap: 0.35rem;
    margin-bottom: 1.75rem;
}

.filter-btn {
    padding: 0.25rem 0.75rem;
    font-family: var(--mono);
    font-size: 0.68rem;
    letter-spacing: 0.02em;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.25s;
}
.filter-btn:hover,
.filter-btn.active {
    border-color: var(--accent);
    color: var(--accent);
}

.garden-note {
    padding: 1.5rem 0;
    border-top: 1px solid var(--border-light);
}
.garden-note:last-of-type { border-bottom: 1px solid var(--border-light); }

.garden-note-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 0.3rem;
    gap: 1rem;
}

.garden-stage {
    font-family: var(--mono);
    font-size: 0.6rem;
    letter-spacing: 0.06em;
    text-transform: lowercase;
    color: var(--text-muted);
}

.garden-note-date {
    font-family: var(--mono);
    font-size: 0.62rem;
    font-style: italic;
    color: var(--text-muted);
}

.garden-note h3 {
    font-style: italic;
    font-size: 1.12rem;
    font-weight: 400;
    margin-bottom: 0.3rem;
}

.garden-note p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    max-width: 560px;
    line-height: 1.75;
}

.garden-meta { margin-top: 0.15rem; }

.tag {
    font-family: var(--mono);
    font-size: 0.6rem;
    letter-spacing: 0.04em;
    text-transform: lowercase;
    color: var(--text-muted);
    margin-right: 0.7rem;
}
.tag::before { content: '#'; opacity: 0.4; margin-right: 1px; }

/* ─── Bookshelf Page ──────────────────── */
.shelf-section { margin-bottom: 2.5rem; }

.shelf-section h3 {
    font-family: var(--display);
    font-style: italic;
    font-size: 1.15rem;
    font-weight: 400;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-light);
    margin-bottom: 0.2rem;
}

.book-entry {
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-light);
}

.book-entry h4 {
    font-family: var(--display);
    font-style: italic;
    font-size: 1.05rem;
    font-weight: 400;
    color: var(--text);
}

.book-entry .author {
    font-family: var(--mono);
    font-size: 0.7rem;
    letter-spacing: 0.04em;
    color: var(--text-muted);
    margin-top: 0.05rem;
}

.book-entry .note {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 0.2rem;
    font-style: italic;
}

.book-progress {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.35rem;
}

.progress-bar {
    flex: 1;
    max-width: 90px;
    height: 2px;
    background: var(--border);
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--accent);
}

.book-progress span {
    font-family: var(--mono);
    font-size: 0.62rem;
    color: var(--text-muted);
}

/* ─── Scroll Reveal ───────────────────── */
.reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.stagger > * {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}
.stagger.visible > *:nth-child(1) { transition-delay: 0.0s; }
.stagger.visible > *:nth-child(2) { transition-delay: 0.08s; }
.stagger.visible > *:nth-child(3) { transition-delay: 0.16s; }
.stagger.visible > *:nth-child(4) { transition-delay: 0.24s; }
.stagger.visible > *:nth-child(5) { transition-delay: 0.32s; }
.stagger.visible > *:nth-child(6) { transition-delay: 0.4s; }
.stagger.visible > * { opacity: 1; transform: translateY(0); }

/* ─── Responsive ──────────────────────── */
@media (max-width: 768px) {
    html { font-size: 16px; }

    .nav-toggle { display: block; }

    .nav-links {
        position: fixed;
        top: var(--nav-h);
        left: 0; right: 0;
        background: var(--bg);
        flex-direction: column;
        padding: 1.5rem 2.5rem 2rem;
        gap: 1rem;
        border-bottom: 1px solid var(--border-light);
        transform: translateY(-120%);
        transition: transform 0.35s ease;
    }
    .nav-links.open { transform: translateY(0); }

    .hero {
        grid-template-columns: 1fr;
        padding: calc(var(--nav-h) + 3rem) 2rem 2.5rem;
        gap: 2.5rem;
    }
    .hero-text { order: 2; }
    .hero-photo { order: 1; max-width: 280px; }
    .hero-text h1 { font-size: 2.6rem; }
    .hero-photo::before { display: none; }

    .about-top-layout { grid-template-columns: 1fr; gap: 2rem; }
    .about-photo-wrap { max-width: 220px; }

    .footer-inner { flex-direction: column; text-align: center; gap: 0.5rem; }
    .about-strip::after { display: none; }
}

@media (max-width: 480px) {
    .hero-text h1 { font-size: 2.2rem; }
    .hero-nav { gap: 0.8rem; }
    .hero-nav .dot { display: none; }
    .about-photo-wrap { grid-template-columns: 1fr; }
    .section, .about-strip, .page-header, .quote-block { padding-left: 1.25rem; padding-right: 1.25rem; }
    .nav-inner { padding: 0 1.25rem; }
    .hero { padding-left: 1.25rem; padding-right: 1.25rem; }
}
