/* kkaji.com - Cottagecore Pastoral */
*{margin:0;padding:0;box-sizing:border-box}
html{scroll-behavior:smooth}
body{background:#FBF7F0;color:#5C4A3A;font-family:'Lora',serif;font-size:17px;line-height:1.8;overflow-x:hidden}

/* Linen texture */
.linen-texture{background:#FBF7F0;background-image:repeating-linear-gradient(0deg,transparent,transparent 3px,rgba(90,70,50,0.03) 3px,rgba(90,70,50,0.03) 4px),repeating-linear-gradient(90deg,transparent,transparent 3px,rgba(90,70,50,0.03) 3px,rgba(90,70,50,0.03) 4px)}

/* Paper texture */
.paper-texture{background:#FBF7F0;background-image:radial-gradient(ellipse at 20% 50%,rgba(245,230,200,0.4),transparent 60%),radial-gradient(ellipse at 80% 30%,rgba(240,221,213,0.3),transparent 50%)}

/* Honey texture */
.honey-texture{background:#F5E6C8;background-image:radial-gradient(ellipse at 30% 60%,rgba(251,247,240,0.4),transparent 50%),radial-gradient(ellipse at 70% 40%,rgba(240,221,213,0.3),transparent 40%)}

/* Navigation */
#magpie-nav{position:fixed;top:24px;right:24px;z-index:100}
#magpie-icon{cursor:pointer;position:relative}
.nav-magpie{transition:transform 0.2s ease}
#magpie-icon:hover .nav-magpie{transform:rotate(10deg)}
#nav-dropdown{position:absolute;top:56px;right:0;background:rgba(251,247,240,0.95);backdrop-filter:blur(8px);border:1px solid rgba(139,107,138,0.2);border-radius:8px;padding:16px 24px;display:flex;flex-direction:column;gap:8px;opacity:0;visibility:hidden;transform:translateY(-8px);transition:all 0.3s ease}
#magpie-icon:hover #nav-dropdown{opacity:1;visibility:visible;transform:translateY(0)}
.nav-link{font-family:'Caveat',cursive;font-size:18px;color:#7A6B5A;text-decoration:none;transition:color 0.2s;display:block}
.nav-link:nth-child(odd){transform:rotate(1deg)}
.nav-link:nth-child(even){transform:rotate(-0.5deg)}
.nav-link:hover{color:#8B6B8A}

/* Sections */
.section-wide{width:100%;min-height:60vh;padding:80px 40px;position:relative;overflow:hidden}
.section-narrow{max-width:580px;margin:0 auto;padding:80px 24px;position:relative}

/* Hero */
#hero{min-height:100vh;display:flex;align-items:center;justify-content:center}
.hero-content{text-align:center;position:relative;z-index:1}
#hero-title{font-family:'Playfair Display',serif;font-weight:400;font-style:italic;font-size:52px;color:#4A3728;letter-spacing:0.01em;opacity:0;animation:heroFadeIn 1.5s ease-in-out 0.4s forwards}
#hero-title em{font-style:italic}
#hero-dot-com{font-family:'Caveat',cursive;font-size:20px;color:#7A6B5A;display:block;margin-top:4px;transform:rotate(2deg);opacity:0;animation:heroFadeIn 0.8s ease-in-out 1.4s forwards}
@keyframes heroFadeIn{from{opacity:0}to{opacity:1}}

/* Magpie entrance */
.magpie-entrance{opacity:0;transform:translateX(100px);animation:magpieGlide 0.8s ease-out 0.4s forwards}
@keyframes magpieGlide{to{opacity:1;transform:translateX(0)}}

/* Botanical corners */
.botanical{position:absolute;opacity:0.3;pointer-events:none}
.botanical-tl{top:24px;left:24px}
.botanical-br{bottom:24px;right:24px}
.botanical-letter{display:block;margin:24px auto 0}

/* Pressed flower dividers */
.flower-divider{display:flex;justify-content:center;align-items:center;gap:12px;padding:24px 0}
.flower-divider .flower{opacity:0;transition:opacity 0.4s ease}
.flower-divider .flower.visible{opacity:1}
.flower-divider:hover .flower{opacity:0.5 !important}

/* Section headings */
.section-heading{font-family:'Playfair Display',serif;font-weight:400;font-style:italic;font-size:28px;color:#4A3728;letter-spacing:0.01em;text-align:center;margin-bottom:40px}

/* Collection table */
.collection-table{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:32px;max-width:1100px;margin:0 auto;padding:0 24px}
.collection-item{background:rgba(251,247,240,0.8);border-radius:12px;padding:28px 24px;position:relative;opacity:0;transition:opacity 1s ease-in-out,transform 0.3s ease,box-shadow 0.3s ease;box-shadow:0 2px 12px rgba(74,55,40,0.06)}
.collection-item.visible{opacity:1}
.collection-item:hover{transform:translateY(-2px);box-shadow:0 4px 20px rgba(74,55,40,0.1)}

/* Rotation variants */
.rotate-n3{transform:rotate(-3deg)}.rotate-n3.visible{transform:rotate(-3deg)}
.rotate-n2{transform:rotate(-2deg)}.rotate-n2.visible{transform:rotate(-2deg)}
.rotate-n1{transform:rotate(-1deg)}.rotate-n1.visible{transform:rotate(-1deg)}
.rotate-p1{transform:rotate(1deg)}.rotate-p1.visible{transform:rotate(1deg)}
.rotate-p2{transform:rotate(2deg)}.rotate-p2.visible{transform:rotate(2deg)}
.rotate-p3{transform:rotate(3deg)}.rotate-p3.visible{transform:rotate(3deg)}
.collection-item:hover{transform:translateY(-2px) !important}

/* Wax seal */
.wax-seal{width:20px;height:20px;border-radius:50%;background:#C07050;color:#FBF7F0;font-family:'Playfair Display',serif;font-size:10px;display:flex;align-items:center;justify-content:center;position:absolute;top:16px;right:16px;transition:transform 0.2s}
.wax-seal:hover{transform:perspective(400px) rotateY(8deg)}

/* Item content */
.item-title{font-family:'Playfair Display',serif;font-weight:400;font-style:italic;font-size:20px;color:#4A3728;margin-bottom:8px}
.item-body{font-size:15px;line-height:1.8;color:#5C4A3A;margin-bottom:12px}
.item-caption{font-family:'Caveat',cursive;font-size:16px;color:#7A6B5A;display:block;transform:rotate(1deg)}

/* Notebook */
.notebook-page{background:rgba(251,247,240,0.6);border-radius:12px;padding:40px 32px;opacity:0;transition:opacity 1s ease-in-out}
.notebook-page.visible{opacity:1}
.notebook-entry{margin-bottom:32px;padding-bottom:24px;border-bottom:1px dashed rgba(139,107,138,0.15)}
.notebook-entry:last-child{border-bottom:none;margin-bottom:0;padding-bottom:0}
.notebook-date{font-family:'Caveat',cursive;font-size:18px;color:#8B6B8A;display:block;margin-bottom:8px;transform:rotate(-1deg)}
.notebook-entry p{color:#5C4A3A}

/* Magpie watermark */
.magpie-watermark{position:absolute;bottom:24px;right:-20px;opacity:0.08;pointer-events:none}

/* Letter */
.letter-page{background:rgba(245,230,200,0.4);border-radius:12px;padding:48px 36px;opacity:0;transition:opacity 1s ease-in-out}
.letter-page.visible{opacity:1}
.letter-date{font-family:'Caveat',cursive;font-size:16px;color:#7A6B5A;display:block;margin-bottom:16px;transform:rotate(1deg)}
.letter-heading{font-style:italic}
.letter-body p{margin-bottom:16px;color:#5C4A3A}
.letter-body p:last-child{margin-bottom:0}
.letter-signature{font-family:'Caveat',cursive;font-size:20px;color:#4A3728;margin-top:24px}
.letter-signature em{font-family:'Playfair Display',serif;font-style:italic}

/* Farewell */
.farewell-section{display:flex;align-items:center;justify-content:center;text-align:center;min-height:50vh}
.farewell-content{opacity:0;transition:opacity 1s ease-in-out}
.farewell-content.visible{opacity:1}
.farewell-text{font-family:'Lora',serif;font-size:18px;color:#5C4A3A;margin:16px 0 8px;max-width:480px}
.farewell-sub{font-family:'Caveat',cursive;font-size:20px;color:#8B6B8A;margin-bottom:24px}

/* Section divider flower row */
.section-divider{opacity:0;transition:opacity 1s ease-in-out}
.section-divider.visible{opacity:1}

/* Responsive */
@media(max-width:600px){
#hero-title{font-size:36px}
.section-heading{font-size:22px}
.collection-table{grid-template-columns:1fr}
.section-wide{padding:48px 16px}
.section-narrow{padding:48px 16px}
.notebook-page,.letter-page{padding:28px 20px}
}
