/* =============================================================================
   Mirise Capital LLC — single page site
   Inspired by the iconic "business card" aesthetic: bone, eggshell, and
   restrained serif typography. Tasteful thickness. Subtle off‑white coloring.
   ========================================================================= */

:root {
    --bone:        #f1ece1;  /* page background — eggshell / bone */
    --card:        #fbf7ec;  /* business card stock */
    --card-edge:   #d9d2bf;  /* card edge / divider tone */
    --ink:         #1a1a1a;  /* near‑black engraved ink */
    --ink-soft:    #4a4845;  /* secondary copy */
    --ink-mute:    #8a877f;  /* tertiary copy / labels */
    --rule:        #cdc6b4;  /* hairline rules */

    --serif: 'Cormorant Garamond', 'Garamond', 'EB Garamond', Georgia, 'Times New Roman', serif;
    --sans:  'Inter', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Helvetica, Arial, sans-serif;

    --gutter: clamp(1.25rem, 4vw, 3rem);
}

/* ----------------------------------------------------------------------------
   Reset / base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: var(--bone);
    color: var(--ink);
    font-family: var(--serif);
    font-size: 18px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;

    /* very subtle paper texture using layered radial gradients */
    background-image:
        radial-gradient(1200px 800px at 10% -10%, rgba(255,255,255,0.4), transparent 60%),
        radial-gradient(1000px 700px at 110% 110%, rgba(0,0,0,0.025), transparent 60%);
}

main { flex: 1; }

a {
    color: var(--ink);
    text-decoration: none;
    transition: color 200ms ease, border-color 200ms ease;
}

p { margin: 0; }

::selection { background: rgba(26, 26, 26, 0.12); color: var(--ink); }

/* ----------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
    padding: clamp(2rem, 5vw, 4rem) var(--gutter) clamp(2.5rem, 6vw, 5rem);
    text-align: center;
}

.hero-inner {
    max-width: 1280px;
    margin: 0 auto;
}

.eyebrow {
    font-family: var(--sans);
    font-size: 0.72rem;
    font-weight: 400;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: var(--ink-mute);
    margin: 0 0 clamp(2.5rem, 5vw, 4rem);
}

/* ----------------------------------------------------------------------------
   The business card
   -------------------------------------------------------------------------- */
.card-wrap {
    perspective: 2200px;
    display: flex;
    justify-content: center;
    margin: 0 auto;
    width: 100%;
    max-width: 1180px;
}

.business-card {
    position: relative;
    width: 100%;
    aspect-ratio: 1.75 / 1;        /* classic US business card ~3.5x2 */
    background: var(--card);
    border: 1px solid var(--card-edge);
    border-radius: 2px;
    padding: clamp(1.75rem, 4vw, 3.75rem) clamp(2rem, 5vw, 4.5rem);
    text-align: left;
    overflow: hidden;
    transform: rotateX(2deg) rotateY(-3deg);
    transition: transform 600ms cubic-bezier(0.2, 0.8, 0.2, 1),
                box-shadow 600ms cubic-bezier(0.2, 0.8, 0.2, 1);

    /* tasteful thickness — layered shadows simulate cardstock depth */
    box-shadow:
        0 1px 0 rgba(255,255,255,0.7) inset,
        0 -1px 0 rgba(0,0,0,0.04) inset,
        0 2px 0 var(--card-edge),
        0 4px 0 #cfc7b1,
        0 16px 30px -10px rgba(60, 50, 30, 0.25),
        0 30px 60px -20px rgba(60, 50, 30, 0.2);

    background-image:
        radial-gradient(circle at 30% 20%, rgba(255,255,255,0.6), transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(0,0,0,0.03), transparent 60%);
}

.business-card:hover {
    transform: rotateX(0deg) rotateY(0deg) translateY(-4px);
    box-shadow:
        0 1px 0 rgba(255,255,255,0.7) inset,
        0 -1px 0 rgba(0,0,0,0.04) inset,
        0 2px 0 var(--card-edge),
        0 4px 0 #cfc7b1,
        0 24px 40px -12px rgba(60, 50, 30, 0.28),
        0 40px 70px -20px rgba(60, 50, 30, 0.22);
}

/* watermark */
.card-watermark {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    font-family: var(--serif);
    font-size: clamp(10rem, 32vw, 30rem);
    font-weight: 600;
    color: rgba(26, 26, 26, 0.04);
    letter-spacing: 0.02em;
    pointer-events: none;
    user-select: none;
    transform: translateY(2%);
}

.card-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    gap: 1rem;
}

/* top-left email */
.card-email {
    font-family: var(--sans);
    font-size: clamp(0.72rem, 1vw, 0.92rem);
    font-weight: 400;
    letter-spacing: 0.08em;
    color: var(--ink-soft);
    text-align: left;
}
.card-email a {
    color: inherit;
    border-bottom: 1px solid transparent;
    padding-bottom: 1px;
}
.card-email a:hover {
    color: var(--ink);
    border-bottom-color: var(--rule);
}

/* centered firm name block */
.card-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: clamp(0.7rem, 1.6vw, 1.1rem);
}

.card-name {
    font-family: var(--serif);
    font-weight: 500;
    font-size: clamp(1.85rem, 6.6vw, 5rem);
    line-height: 1.05;
    margin: 0;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--ink);
    text-shadow:
        0 1px 0 rgba(255,255,255,0.5),
        0 -1px 0 rgba(0,0,0,0.04);
}

/* bottom mandate */
.card-mandate {
    font-family: var(--serif);
    font-weight: 400;
    font-size: clamp(0.85rem, 1.4vw, 1.2rem);
    line-height: 1.55;
    color: var(--ink-soft);
    text-align: center;
    max-width: 64ch;
    margin: 0 auto;
    letter-spacing: 0.005em;
}

/* ----------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
    border-top: 1px solid var(--rule);
    padding: 2rem var(--gutter);
    text-align: center;
}

.footer-disclaimer {
    font-family: var(--sans);
    font-size: 0.72rem;
    color: var(--ink-mute);
    max-width: 720px;
    margin: 0 auto;
    line-height: 1.7;
    letter-spacing: 0.02em;
}

/* ----------------------------------------------------------------------------
   Responsive — at narrow widths the card relaxes its strict aspect ratio
   so the three text blocks have room to breathe.
   -------------------------------------------------------------------------- */
@media (max-width: 720px) {
    .business-card {
        aspect-ratio: auto;
        min-height: 420px;
        transform: none;
    }
    .business-card:hover { transform: translateY(-2px); }
    .card-content { gap: 1.5rem; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation: none !important;
        transition: none !important;
    }
}
