/* ==========================================================================
   Jarin Kabir — site styles
   Palette: deep evergreen, warm ivory, soft gold accent.
   ========================================================================== */

:root {
    --ink: #1c2422;
    --ink-soft: #4a5552;
    --muted: #6f7a77;
    --ivory: #faf7f2;
    --paper: #ffffff;
    --tint: #f2ede4;
    --line: #e4ddd1;
    --evergreen: #14302e;
    --evergreen-2: #1f4a46;
    --gold: #b08d57;
    --gold-soft: #d9c3a0;

    --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
    --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

    --radius: 14px;
    --shadow: 0 18px 40px -24px rgba(20, 48, 46, .35);
    --max: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    font-family: var(--sans);
    font-weight: 400;
    font-size: 1.0625rem;
    line-height: 1.7;
    color: var(--ink);
    background: var(--ivory);
    -webkit-font-smoothing: antialiased;
}

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

a { color: var(--evergreen-2); text-decoration-color: var(--gold-soft); text-underline-offset: 3px; }
a:hover { color: var(--gold); }

h1, h2, h3 {
    font-family: var(--serif);
    font-weight: 500;
    line-height: 1.15;
    color: var(--evergreen);
    margin: 0 0 .5em;
    letter-spacing: -.01em;
}
h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); }
h2 { font-size: clamp(2rem, 4vw, 2.75rem); }
h3 { font-size: 1.5rem; }
h1:focus { outline: none; }

p { margin: 0 0 1.1em; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 1.5rem; }
.narrow { max-width: 760px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }

.skip-link {
    position: absolute; left: -999px; top: 0;
    background: var(--evergreen); color: #fff; padding: .5rem 1rem; z-index: 100;
}
.skip-link:focus { left: 1rem; top: 1rem; }

.eyebrow {
    font-family: var(--sans);
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 1rem;
}

/* Header ------------------------------------------------------------------ */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(250, 247, 242, .88);
    backdrop-filter: saturate(140%) blur(10px);
    -webkit-backdrop-filter: saturate(140%) blur(10px);
    border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }

.brand { display: flex; align-items: baseline; gap: .5rem; text-decoration: none; }
.brand-name { font-family: var(--serif); font-size: 1.65rem; font-weight: 600; color: var(--evergreen); }
.brand-cred { font-size: .7rem; letter-spacing: .2em; color: var(--gold); font-weight: 600; }

.site-nav { display: flex; align-items: center; gap: 2rem; }
.site-nav a {
    font-size: .875rem; font-weight: 500; letter-spacing: .04em;
    color: var(--ink-soft); text-decoration: none; position: relative; padding: .25rem 0;
}
.site-nav a::after {
    content: ""; position: absolute; left: 0; right: 100%; bottom: -2px; height: 1px;
    background: var(--gold); transition: right .25s ease;
}
.site-nav a:hover, .site-nav a.active { color: var(--evergreen); }
.site-nav a:hover::after, .site-nav a.active::after { right: 0; }
.site-nav a.nav-cta {
    border: 1px solid var(--evergreen); border-radius: 999px; padding: .45rem 1.1rem; color: var(--evergreen);
}
.site-nav a.nav-cta::after { display: none; }
.site-nav a.nav-cta:hover, .site-nav a.nav-cta.active { background: var(--evergreen); color: var(--ivory); }

.nav-toggle { display: none; }
.nav-toggle-label { display: none; cursor: pointer; padding: .5rem; }
.nav-toggle-label span { display: block; width: 24px; height: 1.5px; background: var(--evergreen); margin: 5px 0; transition: .25s; }

@media (max-width: 760px) {
    .nav-toggle-label { display: block; }
    .site-nav {
        position: absolute; top: 76px; left: 0; right: 0;
        flex-direction: column; align-items: flex-start; gap: 0;
        background: var(--ivory); border-bottom: 1px solid var(--line);
        padding: 0 1.5rem; max-height: 0; overflow: hidden; transition: max-height .3s ease, padding .3s ease;
    }
    .site-nav a { width: 100%; padding: .9rem 0; border-top: 1px solid var(--line); font-size: 1rem; }
    .site-nav a::after { display: none; }
    .site-nav a.nav-cta { border: none; border-top: 1px solid var(--line); border-radius: 0; padding: .9rem 0; }
    .site-nav a.nav-cta:hover, .site-nav a.nav-cta.active { background: none; color: var(--gold); }
    .nav-toggle:checked ~ .site-nav { max-height: 400px; padding-bottom: 1rem; }
    .nav-toggle:checked + .nav-toggle-label span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
    .nav-toggle:checked + .nav-toggle-label span:nth-child(2) { opacity: 0; }
    .nav-toggle:checked + .nav-toggle-label span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
}

/* Buttons ----------------------------------------------------------------- */
.btn {
    display: inline-block; padding: .9rem 1.8rem; border-radius: 999px;
    font-size: .875rem; font-weight: 500; letter-spacing: .06em; text-decoration: none;
    transition: transform .2s ease, background .2s ease, color .2s ease, box-shadow .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--evergreen); color: var(--ivory); box-shadow: var(--shadow); }
.btn-primary:hover { background: var(--evergreen-2); color: #fff; }
.btn-ghost { border: 1px solid var(--evergreen); color: var(--evergreen); }
.btn-ghost:hover { background: var(--evergreen); color: var(--ivory); }

.text-link { font-weight: 500; text-decoration: none; border-bottom: 1px solid var(--gold-soft); padding-bottom: 2px; }

/* Hero -------------------------------------------------------------------- */
.hero {
    position: relative; overflow: hidden;
    padding: clamp(3.5rem, 8vw, 6.5rem) 0 clamp(4rem, 9vw, 7rem);
    background:
        radial-gradient(1200px 500px at 85% -10%, rgba(176, 141, 87, .14), transparent 60%),
        radial-gradient(900px 500px at -10% 110%, rgba(31, 74, 70, .10), transparent 60%),
        var(--ivory);
}
.hero-inner { display: grid; grid-template-columns: 1.15fr .85fr; gap: 4rem; align-items: center; }
.hero-cred { font-size: .45em; letter-spacing: .12em; color: var(--gold); font-family: var(--sans); font-weight: 500; vertical-align: middle; }
.hero-tagline { font-family: var(--serif); font-style: italic; font-size: clamp(1.35rem, 2.5vw, 1.75rem); color: var(--ink-soft); line-height: 1.45; max-width: 32ch; margin-bottom: 2.25rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; }

.portrait-frame {
    position: relative; border-radius: 220px 220px var(--radius) var(--radius);
    overflow: hidden; aspect-ratio: 4 / 5; background: var(--tint);
    box-shadow: var(--shadow);
}
.portrait-frame::after {
    content: ""; position: absolute; inset: 12px; border: 1px solid rgba(255, 255, 255, .55);
    border-radius: 210px 210px 8px 8px; pointer-events: none;
}
.portrait-frame img { width: 100%; height: 100%; object-fit: cover; }
.hero-portrait { margin: 0; position: relative; }
.hero-portrait::before {
    content: ""; position: absolute; inset: 24px -24px -24px 24px;
    border: 1px solid var(--gold-soft); border-radius: 220px 220px var(--radius) var(--radius); z-index: -1;
}
.portrait-frame.small { max-width: 360px; }

@media (max-width: 860px) {
    .hero-inner { grid-template-columns: 1fr; gap: 3rem; }
    .hero-portrait { max-width: 340px; margin: 0 auto; order: -1; }
}

/* Highlights -------------------------------------------------------------- */
.highlights { background: var(--evergreen); color: var(--ivory); }
.highlight-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.highlight { padding: 2rem 1.5rem; text-align: center; }
.highlight + .highlight { border-left: 1px solid rgba(250, 247, 242, .14); }
.highlight-label { font-size: .7rem; letter-spacing: .22em; text-transform: uppercase; color: var(--gold-soft); margin-bottom: .35rem; font-weight: 600; }
.highlight-value { font-family: var(--serif); font-size: 1.6rem; margin: 0; }
@media (max-width: 640px) {
    .highlight-grid { grid-template-columns: 1fr; }
    .highlight + .highlight { border-left: none; border-top: 1px solid rgba(250, 247, 242, .14); }
}

/* Sections ---------------------------------------------------------------- */
.section { padding: clamp(4rem, 8vw, 6rem) 0; }
.section-tint { background: var(--tint); }
.section-heading { margin-bottom: 2.5rem; }
.section-heading.center { text-align: center; }
.section-heading .rule { display: block; width: 56px; height: 1px; background: var(--gold); margin-top: 1rem; }
.section-heading.center .rule { margin-left: auto; margin-right: auto; }

.prose-lg { font-size: 1.2rem; color: var(--ink-soft); line-height: 1.8; }
.prose p { color: var(--ink-soft); }
.prose p:first-child::first-letter {
    font-family: var(--serif); float: left; font-size: 4.2rem; line-height: .85;
    padding: .35rem .6rem 0 0; color: var(--gold);
}

.page-hero {
    padding: clamp(3.5rem, 7vw, 5.5rem) 0 clamp(2.5rem, 5vw, 3.5rem);
    border-bottom: 1px solid var(--line);
    background: radial-gradient(900px 400px at 90% -20%, rgba(176, 141, 87, .12), transparent 60%), var(--ivory);
}
.page-hero .lead { font-family: var(--serif); font-style: italic; font-size: 1.4rem; color: var(--ink-soft); max-width: 40ch; margin: 0; }

.about-grid { display: grid; grid-template-columns: 360px 1fr; gap: 4rem; align-items: start; }
@media (max-width: 860px) {
    .about-grid { grid-template-columns: 1fr; gap: 2.5rem; }
    .about-portrait { max-width: 300px; }
}

/* Cards ------------------------------------------------------------------- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.5rem; }
.card {
    background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 2rem; transition: transform .25s ease, box-shadow .25s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card h3 { position: relative; padding-top: 1.1rem; }
.card h3::before { content: ""; position: absolute; top: 0; left: 0; width: 28px; height: 1px; background: var(--gold); }
.card p { color: var(--ink-soft); margin: 0; font-size: .975rem; }

/* Timeline ---------------------------------------------------------------- */
.timeline { list-style: none; margin: 0; padding: 0 0 0 2rem; border-left: 1px solid var(--gold-soft); }
.timeline-item { position: relative; padding-bottom: 2.5rem; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-dot {
    position: absolute; left: calc(-2rem - 6px); top: .45rem; width: 11px; height: 11px;
    border-radius: 50%; background: var(--ivory); border: 2px solid var(--gold);
}
.section-tint .timeline-dot { background: var(--tint); }
.timeline-period { font-size: .75rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); font-weight: 600; margin-bottom: .35rem; }
.timeline-item h3 { margin-bottom: .2rem; }
.timeline-place { font-weight: 500; color: var(--evergreen-2); margin-bottom: .5rem; }
.timeline-desc { color: var(--ink-soft); margin: 0; }

/* Chips ------------------------------------------------------------------- */
.chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .75rem; }
.chips li {
    background: var(--paper); border: 1px solid var(--line); border-radius: 999px;
    padding: .55rem 1.2rem; font-size: .925rem; color: var(--evergreen);
}

/* Contact ----------------------------------------------------------------- */
.contact-card {
    background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
    box-shadow: var(--shadow); padding: 1rem 2.25rem; margin-bottom: 2rem;
}
.contact-row { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.4rem 0; flex-wrap: wrap; }
.contact-row + .contact-row { border-top: 1px solid var(--line); }
.contact-row .highlight-label { color: var(--gold); margin: 0; }
.contact-value { font-family: var(--serif); font-size: 1.4rem; margin: 0; color: var(--evergreen); text-decoration: none; word-break: break-word; }
a.contact-value:hover { color: var(--gold); }

/* CTA --------------------------------------------------------------------- */
.cta { background: var(--evergreen); color: var(--ivory); }
.cta h2 { color: var(--ivory); }
.cta .prose-lg { color: rgba(250, 247, 242, .8); margin-bottom: 2rem; }
.cta .btn-primary { background: var(--gold); color: var(--evergreen); }
.cta .btn-primary:hover { background: var(--gold-soft); }

/* Footer ------------------------------------------------------------------ */
.site-footer { background: #0f2422; color: rgba(250, 247, 242, .75); padding: 3rem 0 1.5rem; font-size: .925rem; }
.footer-inner { display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap; padding-bottom: 2rem; border-bottom: 1px solid rgba(250, 247, 242, .1); }
.footer-name { font-family: var(--serif); font-size: 1.4rem; color: var(--ivory); margin-bottom: .2rem; }
.site-footer .muted { color: rgba(250, 247, 242, .55); margin: 0; }
.footer-links { display: flex; gap: 1.5rem; align-items: center; flex-wrap: wrap; }
.footer-links a { color: var(--gold-soft); text-decoration: none; }
.footer-links a:hover { color: var(--ivory); }
.copyright { font-size: .8rem; color: rgba(250, 247, 242, .4); margin: 1.5rem 0 0; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
