/* miris.studio - Apothecary Catalog */

:root {
    --parchment: #f4ede4;
    --umber: #3d2b1f;
    --warm-gray: #8b7355;
    --copper: #a67c52;
    --lavender: #9b8eb7;
    --sage: #7a8b6f;
    --amber: #c4953a;
    --rose-wash: #e8d5d0;
}

/* === Reset & Base === */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--parchment);
    color: var(--umber);
    font-family: 'Lora', Georgia, serif;
    font-weight: 400;
    font-size: 17px;
    line-height: 2.0;
    overflow-x: hidden;
}

.svg-defs {
    position: absolute;
    width: 0;
    height: 0;
}

.paper-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 100;
    opacity: 0.03;
    background: repeating-conic-gradient(rgba(0,0,0,0.08) 0% 25%, transparent 0% 50%);
    background-size: 2px 2px;
}

/* === Navigation Dot === */
.nav-dot {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 50;
}

.dot-trigger {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--copper);
    cursor: pointer;
}

.nav-menu {
    display: none;
    flex-direction: column;
    gap: 8px;
    margin-top: 12px;
    background: rgba(244, 237, 228, 0.95);
    backdrop-filter: blur(8px);
    padding: 16px;
    border-radius: 4px;
    border: 1px solid rgba(166, 124, 82, 0.2);
}

.nav-dot:hover .nav-menu {
    display: flex;
}

.nav-link {
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 300;
    font-size: 11px;
    font-variant: small-caps;
    letter-spacing: 0.2em;
    color: var(--warm-gray);
    text-decoration: none;
    transition: color 0.2s ease;
}

.nav-link:hover {
    color: var(--umber);
}

/* === The Label === */
.the-label {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.label-frame {
    position: relative;
    width: 400px;
    max-width: 90vw;
}

.label-border {
    width: 100%;
    height: auto;
}

.label-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.studio-name {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 300;
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    color: var(--umber);
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.studio-tagline {
    font-family: 'Lora', serif;
    font-style: italic;
    font-size: clamp(0.85rem, 1.5vw, 1rem);
    color: var(--warm-gray);
    font-variant: small-caps;
    margin-top: 4px;
}

/* === The Cabinet === */
.the-cabinet {
    padding: 80px 0;
    max-width: 900px;
    margin: 0 auto;
}

.shelf {
    display: flex;
    align-items: center;
    gap: 40px;
    min-height: 30vh;
    padding: 40px 32px;
    border: 1px solid var(--warm-gray);
    margin: 0 24px 40px;
    opacity: 0;
    transition: opacity 0.8s cubic-bezier(0.25, 0.1, 0.25, 1.0), transform 0.8s cubic-bezier(0.25, 0.1, 0.25, 1.0);
}

.shelf-left {
    flex-direction: row;
    transform: translateX(-30px) rotate(2deg);
}

.shelf-right {
    flex-direction: row;
    transform: translateX(30px) rotate(-2deg);
}

.shelf.revealed {
    opacity: 1;
    transform: translateX(0) rotate(0deg);
}

.shelf-illustration {
    flex-shrink: 0;
    width: 120px;
}

.botanical {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 4px 20px rgba(61, 43, 31, 0.08));
}

.shelf-content {
    flex: 1;
    position: relative;
}

.shelf-label {
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 300;
    font-size: 11px;
    font-variant: small-caps;
    letter-spacing: 0.2em;
    color: var(--warm-gray);
    display: block;
    margin-bottom: 8px;
}

.shelf-title {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 300;
    font-size: clamp(1.3rem, 2.5vw, 1.8rem);
    color: var(--umber);
    margin-bottom: 12px;
}

.shelf-text {
    font-family: 'Lora', serif;
    color: var(--umber);
    font-size: 17px;
    line-height: 2.0;
}

.margin-note {
    position: absolute;
    right: -20px;
    bottom: -10px;
    font-family: 'Lora', serif;
    font-style: italic;
    font-size: 13px;
    color: var(--warm-gray);
    opacity: 0.6;
}

/* === Wax Seal Divider === */
.the-cabinet .shelf + .shelf::before {
    content: '';
    display: block;
}

/* === The Formulary === */
.the-formulary {
    padding: 80px 24px;
    max-width: 640px;
    margin: 0 auto;
}

.formulary-heading {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 300;
    font-size: clamp(1.5rem, 3vw, 2rem);
    color: var(--umber);
    text-align: center;
    letter-spacing: 0.1em;
    margin-bottom: 48px;
}

.recipe-card {
    background: var(--parchment);
    padding: 28px 32px;
    margin-bottom: 28px;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(139, 115, 85, 0.1);
    opacity: 0;
    transition: opacity 0.6s cubic-bezier(0.25, 0.1, 0.25, 1.0), transform 0.6s cubic-bezier(0.25, 0.1, 0.25, 1.0);
}

.recipe-card.revealed {
    opacity: 1;
}

.recipe-label {
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 300;
    font-size: 11px;
    font-variant: small-caps;
    letter-spacing: 0.2em;
    color: var(--copper);
    display: block;
    margin-bottom: 6px;
}

.recipe-title {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 400;
    font-size: 1.3rem;
    color: var(--umber);
    margin-bottom: 10px;
}

.recipe-text {
    font-family: 'Lora', serif;
    font-style: italic;
    font-size: 16px;
    color: var(--umber);
    line-height: 2.0;
}

/* === The Pressed Garden === */
.the-garden {
    padding: 80px 24px;
    max-width: 800px;
    margin: 0 auto;
}

.garden-heading {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 300;
    font-size: clamp(1.5rem, 3vw, 2rem);
    color: var(--umber);
    text-align: center;
    letter-spacing: 0.1em;
    margin-bottom: 48px;
}

.garden-masonry {
    columns: 3;
    column-gap: 20px;
}

.specimen-card {
    break-inside: avoid;
    margin-bottom: 20px;
    background: var(--parchment);
    padding: 20px;
    border-radius: 4px;
    box-shadow: 0 4px 20px rgba(61, 43, 31, 0.08);
    text-align: center;
    opacity: 0;
    transition: opacity 0.6s ease;
}

.specimen-card.revealed {
    opacity: 1;
}

.specimen-card.tall {
    padding: 24px 20px;
}

.specimen-svg {
    width: 80px;
    height: auto;
    display: block;
    margin: 0 auto 12px;
}

.specimen-name {
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 300;
    font-size: 13px;
    font-variant: small-caps;
    letter-spacing: 0.2em;
    color: var(--warm-gray);
}

/* === The Seal === */
.the-seal {
    padding: 100px 24px 80px;
    text-align: center;
}

.seal-emblem {
    margin-bottom: 24px;
}

.seal-svg {
    width: 100px;
    height: 100px;
    margin: 0 auto;
    display: block;
}

.seal-circle {
    opacity: 0.5;
    transform: scale(0.8);
    transform-origin: center;
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.seal-svg.active .seal-circle {
    opacity: 1;
    transform: scale(1);
}

.seal-text {
    font-family: 'Lora', serif;
    font-style: italic;
    font-size: 1rem;
    color: var(--warm-gray);
}

/* === SVG Draw Animation === */
.draw-path {
    stroke-dasharray: 500;
    stroke-dashoffset: 500;
    transition: stroke-dashoffset 2.5s ease;
}

.draw-svg.active .draw-path {
    stroke-dashoffset: 0;
}

/* === Responsive === */
@media (max-width: 700px) {
    .shelf {
        flex-direction: column !important;
        gap: 20px;
    }

    .shelf-illustration {
        width: 80px;
    }

    .garden-masonry {
        columns: 1;
    }

    .margin-note {
        position: static;
        display: block;
        margin-top: 8px;
    }
}
