/*
Theme Name: Repentance Cottage
Author: Repentance Cottage
Description: Animated cottage home page and members' Advent village.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: repentance-cottage
*/

* { box-sizing: border-box; }
body { margin: 0; background: #f5f1e6; color: #3e4437; font-family: Georgia, 'Times New Roman', serif; }
a { color: inherit; }
.rc-home-wrap { position: relative; min-height: 100svh; }
.rc-home-wrap .rc-garden { height: calc(100svh - 150px); max-height: none; min-height: 440px; }
.rc-site-actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.rc-home-header { position: relative; z-index: 10; }
.rc-action { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 20px; border: 1px solid currentColor; border-radius: 999px; background: #f8f2dfed; color: #40503c; box-shadow: 0 4px 18px #0002; font: 700 14px Arial, sans-serif; text-decoration: none; }
.rc-action:hover, .rc-action:focus-visible { background: #fff9e8; outline-offset: 3px; }
.rc-action.secondary { background: #284b39e8; color: #fff9e8; }
.rc-member-page { min-height: 100svh; display: grid; place-items: center; padding: 24px; background: radial-gradient(circle at 50% 25%, #e9f0e3, #bdcdb7 70%, #899e86); }
.rc-member-card { width: min(100%, 600px); padding: clamp(26px, 5vw, 48px); border: 1px solid #ddd9c7; border-radius: 18px; background: #fffaf0; box-shadow: 0 18px 45px #243a3024; text-align: center; }
.rc-member-card h1 { margin: 0 0 12px; font-size: clamp(30px, 5vw, 48px); font-weight: 400; }
.rc-member-card p { line-height: 1.6; }
.rc-member-actions { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.rc-play-page { min-height: 100svh; background: #f5f2e9; }
.rc-play-toolbar { display: flex; justify-content: space-between; gap: 15px; align-items: center; padding: 12px clamp(14px, 4vw, 40px); background: #fbfaf6; }
.rc-play-toolbar a { font: 700 13px Arial, sans-serif; text-decoration: none; }
.rc-advent-frame { display: block; width: 100%; min-height: calc(100svh - 68px); border: 0; }
.rc-advent-loading { margin: 0; padding: 12px 20px; background: #fffaf0; color: #425b48; font: 13px Arial, sans-serif; text-align: center; }
.rc-advent-loading[hidden] { display: none; }
.rc-preview-date { display: flex; justify-content: center; align-items: center; gap: 10px; padding: 10px; background: #fffaf0; color: #355340; font: 13px Arial, sans-serif; }
.rc-preview-date input, .rc-preview-date button, .rc-preview-date select { padding: 7px 10px; border: 1px solid #7e977d; border-radius: 7px; background: #fffdf8; color: #355340; }
.rc-preview-date button { cursor: pointer; }
.rc-flower-footer { position: relative; z-index: 2; min-height: 85px; overflow: hidden; background: #edf0df; border-top: 1px solid #d7d8c2; }
.rc-flower-row { display: flex; justify-content: space-around; align-items: end; height: 86px; padding: 4px 12px; }
.rc-flower-row span { position: relative; width: 2px; height: calc(35px + var(--flower-index) * 1px); background: #5f8a57; transform-origin: bottom; animation: rc-flower-grow 1.7s ease-out both; animation-delay: calc(var(--flower-index) * 80ms); }
.rc-flower-row span::before { position: absolute; bottom: 96%; left: -11px; width: 24px; height: 24px; border-radius: 50%; background: radial-gradient(circle, #e9b648 0 22%, #f8f4d9 23% 48%, transparent 50%), conic-gradient(#f7f2df 0 16%, transparent 17% 20%, #f7f2df 21% 36%, transparent 37% 40%, #f7f2df 41% 56%, transparent 57% 60%, #f7f2df 61% 76%, transparent 77% 80%, #f7f2df 81% 96%, transparent 97%); content: ''; }
.rc-flower-row span:nth-child(4n)::before { filter: hue-rotate(95deg); transform: scale(.85); }
.rc-flower-row span:nth-child(5n)::before { filter: hue-rotate(290deg); transform: scale(1.15); }
.rc-flower-row span:nth-child(7n)::before { filter: hue-rotate(35deg); }
.rc-flower-footer[data-season="winter"] .rc-flower-row span::before { filter: none; background: radial-gradient(circle at 50% 20%, #fff 0 38%, #a7c9a6 39% 58%, transparent 60%); }
.rc-flower-footer[data-season="winter"] .rc-flower-row span:nth-child(3n)::before { background: radial-gradient(circle, #e4b73a 0 22%, #f4d75a 25% 52%, transparent 54%); }
@keyframes rc-flower-grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
.rc-garden-map-page { background: #f5f1e6; }
.rc-map-header { display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 18px clamp(18px, 4vw, 60px); border-bottom: 1px solid #d8d5c7; background: #fffcf4; }
.rc-map-brand { color: #355340; font-size: 19px; text-decoration: none; }
.rc-map-header nav { display: flex; flex-wrap: wrap; gap: 18px; }
.rc-map-header nav a { color: #355340; font: 700 13px Arial, sans-serif; text-decoration: none; }
.rc-map-header nav a:hover { text-decoration: underline; }
.rc-map-page-content { max-width: 1500px; margin: auto; padding: clamp(20px, 4vw, 48px); }
.rc-map-intro { max-width: 720px; margin-bottom: 26px; }
.rc-map-eyebrow { margin: 0 0 7px; color: #aa6049; font: 700 11px Arial, sans-serif; letter-spacing: .17em; text-transform: uppercase; }
.rc-map-intro h1 { margin: 0 0 9px; color: #2f493a; font-size: clamp(30px, 4vw, 48px); font-weight: 400; }
.rc-map-intro > p:last-child { margin: 0; color: #667468; line-height: 1.6; }
.rc-map-layout { display: grid; grid-template-columns: minmax(200px, 270px) minmax(0, 1fr); gap: 18px; align-items: stretch; }
.rc-map-index, .rc-map-canvas { min-width: 0; border: 1px solid #dfdacb; border-radius: 14px; background: #fffaf0; box-shadow: 0 8px 28px #27362912; }
.rc-map-index { max-height: min(70vh, 770px); overflow: auto; padding: 18px; font: 13px Arial, sans-serif; }
.rc-map-index > ul { margin: 0 0 16px; padding-left: 0; list-style: none; }
.rc-map-index ul ul { padding-left: 14px; }
.rc-map-index li { margin: 0; }
.rc-map-index li[data-target] { padding: 7px 9px; border-radius: 6px; color: #415b47; cursor: pointer; line-height: 1.3; }
.rc-map-index li[data-target]:hover, .rc-map-index li[data-target].is-selected { background: #e6edda; color: #234d36; }
.rc-map-index li[data-target]:focus-visible { outline: 2px solid #a56a43; outline-offset: 2px; }
.rc-map-index details { margin: 8px 0; border-top: 1px solid #e5e0d2; }
.rc-map-index summary { padding: 12px 4px; color: #7e513d; font-weight: 700; cursor: pointer; }
.rc-map-canvas { display: grid; place-items: center; overflow: auto; padding: 16px; background: radial-gradient(circle at 50% 40%, #f2eddb, #e0e7d4); }
.rc-map-svg { display: block; width: 100%; min-width: 650px; height: auto; max-height: 75vh; }
.rc-map-svg path, .rc-map-svg rect, .rc-map-svg ellipse, .rc-map-svg circle, .rc-map-svg polygon { cursor: pointer; }
.rc-map-svg .is-selected { stroke: #b45537 !important; stroke-width: 2 !important; filter: drop-shadow(0 0 3px #f9e69b); }
.rc-map-selection { margin: 18px 0 0; padding: 15px 19px; border-left: 3px solid #9c7051; border-radius: 6px; background: #fffaf0; color: #405c48; line-height: 1.5; }
@media (max-width: 720px) { .rc-site-actions { justify-content: center; } .rc-home-wrap .rc-garden { min-height: 440px; } .rc-preview-date { flex-wrap: wrap; } }
@media (max-width: 850px) { .rc-map-layout { grid-template-columns: 1fr; } .rc-map-index { max-height: 250px; } .rc-map-canvas { justify-content: start; } }
@media (max-width: 560px) { .rc-map-header { align-items: flex-start; flex-direction: column; } .rc-map-page-content { padding: 18px 13px; } }
