/* ============================================================
   TOKENS
   ============================================================ */
:root {
    --paper:      #fbf3e6;
    --paper-deep: #f2dfc5;
    --ink:        #3d2718;
    --accent:     #a94424;
    --card:       rgba(255, 248, 238, 0.84);
    --line:       rgba(61, 39, 24, 0.12);
    --shadow:     0 30px 80px rgba(73, 39, 16, 0.14);
}

/* ============================================================
   BASE
   ============================================================ */
* { box-sizing: border-box; }

html, body {
    margin: 0;
    min-height: 100%;
}

body {
    font-family: "Trebuchet MS", "Segoe UI", sans-serif;
    color: var(--ink);
    background:
        radial-gradient(circle at top left,    rgba(255,255,255,0.7),    transparent 34%),
        radial-gradient(circle at bottom right, rgba(169,105,69,0.22), transparent 30%),
        linear-gradient(135deg, var(--paper) 0%, var(--paper-deep) 100%);
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(61,39,24,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(61,39,24,0.03) 1px, transparent 1px);
    background-size: 32px 32px;
    pointer-events: none;
}

/* ============================================================
   LAYOUT
   ============================================================ */
.shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
}

.card {
    width: min(800px, 100%);
    padding: clamp(28px, 5vw, 52px);
    border: 1px solid var(--line);
    border-radius: 28px;
    background: var(--card);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);

    display: flex;
    align-items: center;
    gap: clamp(28px, 5vw, 52px);
}

/* ============================================================
   TEXT COLUMN
   ============================================================ */
.card-text {
    flex: 1;
    min-width: 0;
}

.eyebrow {
    margin: 0 0 12px;
    font-size: 0.82rem;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--accent);
}

h1 {
    margin: 0;
    font-size: clamp(2.4rem, 5vw, 4.8rem);
    line-height: 0.95;
}

.lead {
    margin: 20px 0 0;
    font-size: clamp(1rem, 2.2vw, 1.35rem);
    line-height: 1.55;
    transition: opacity 0.35s ease;
}

/* ============================================================
   PORTRAIT COLUMN
   ============================================================ */
.card-portrait {
    flex-shrink: 0;
    position: relative;
    animation: portrait-float 4.5s ease-in-out infinite;
}

.ferret-portrait {
    display: block;
    width: clamp(120px, 14vw, 160px);
    height: clamp(120px, 14vw, 160px);
    border-radius: 50%;
    object-fit: cover;
    object-position: center top;
    border: 3px solid rgba(169, 68, 36, 0.25);
    box-shadow:
        0 0 0 6px rgba(169, 68, 36, 0.07),
        0 12px 40px rgba(169, 68, 36, 0.22),
        0 4px 12px rgba(61, 39, 24, 0.12);
    animation: portrait-float 4.5s ease-in-out infinite;
}

/* Shown only when ferret.png is missing */
.ferret-fallback {
    display: none;
    width: clamp(120px, 14vw, 160px);
    height: clamp(120px, 14vw, 160px);
    border-radius: 50%;
    background: radial-gradient(circle at 40% 35%, #d4733a, #8b2e0a);
    border: 3px solid rgba(169, 68, 36, 0.25);
    box-shadow:
        0 0 0 6px rgba(169, 68, 36, 0.07),
        0 12px 40px rgba(169, 68, 36, 0.22);
    align-items: center;
    justify-content: center;
    font-size: clamp(48px, 7vw, 72px);
    animation: portrait-float 4.5s ease-in-out infinite;
}

@keyframes portrait-float {
    0%, 100% { transform: translateY(0px);  }
    50%       { transform: translateY(-8px); }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 600px) {
    .card {
        flex-direction: column-reverse;
        text-align: center;
        padding: 28px 22px;
        border-radius: 24px;
        gap: 24px;
    }

    .ferret-portrait,
    .ferret-fallback {
        width: 110px;
        height: 110px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .card-portrait,
    .ferret-portrait,
    .ferret-fallback { animation: none; }
    .lead            { transition: none; }
}
