/* ---- Primrose & Puddle: sunny spring village ------------------------------ */
@font-face { font-family: "Fraunces"; src: url("../fonts/fraunces-normal.woff2") format("woff2"); font-weight: 300 900; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("../fonts/fraunces-italic.woff2") format("woff2"); font-style: italic; font-weight: 300 900; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url("../fonts/dmsans-normal.woff2") format("woff2"); font-weight: 300 800; font-display: swap; }

:root {
  --sky: #e3f3fc;
  --sky2: #c9e8f7;
  --meadow: #cde7b0;
  --grass: #9fcf78;
  --leaf: #4f7f32;
  --leaf-dark: #3b6324;
  --primrose: #f7e27a;
  --primrose-deep: #eec643;
  --blossom: #f6c9d4;
  --blossom-deep: #e58fa6;
  --puddle: #8ec5e6;
  --puddle-deep: #3f88b8;
  --ink: #3b3a2e;
  --soft: #6d6b58;
  --paper: #fffdf4;
  --line: #e6dfc2;
  --radius: 22px;
  --pine: #2f5426;
  --pine-2: #3d6b31;
  --night: #1f3a1b;
  --cream: #f8f2e2;
  --head: "Fraunces", Georgia, serif;
  --body: "DM Sans", "Trebuchet MS", system-ui, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--body); color: var(--ink); font-size: 17px; line-height: 1.55;
  background: var(--cream) radial-gradient(rgba(79, 127, 50, .10) 1px, transparent 1px) 0 0 / 22px 22px;
  min-height: 100vh; overflow-x: hidden;
}
h1, h2, h3 { font-family: var(--head); color: var(--leaf-dark); line-height: 1.15; margin: 0.2em 0 0.4em; }
h1 { font-size: clamp(1.9rem, 6vw, 3rem); }
h2 { font-size: clamp(1.4rem, 4.5vw, 2rem); }
a { color: var(--puddle-deep); }
img, svg { max-width: 100%; }
button { font: inherit; }

/* header + menu (laid out like Ember & Twinkle's) */
.top { position: sticky; top: 0; z-index: 20; background: var(--pine); color: var(--cream); }
.top-in { max-width: 1240px; margin: 0 auto; padding: 8px 16px; min-height: 64px; display: flex; align-items: center; gap: 14px; position: relative; }
.brand { color: var(--cream); text-decoration: none; display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.brand svg { width: 30px; height: 38px; flex-shrink: 0; }
.brand .wm { display: flex; flex-direction: column; line-height: 1.1; }
.brand b { font-family: var(--head); font-weight: 600; font-size: 22px; }
.brand b em { font-style: italic; font-weight: 500; color: var(--primrose); }
.brand small { font-family: var(--head); font-style: italic; font-weight: 500; font-size: 13px; color: var(--primrose); margin-top: 1px; }
.menu { display: flex; gap: 4px; margin-left: auto; flex-wrap: wrap; }
.menu a { white-space: nowrap; color: var(--cream); text-decoration: none; font-size: 14px; font-weight: 600; padding: 8px 12px; border-radius: 999px; opacity: .9; }
.menu a:hover { background: rgba(255, 255, 255, .1); opacity: 1; }
.menu a.here { background: rgba(247, 226, 122, .18); color: var(--primrose); opacity: 1; }
.menu-btn { display: none; align-items: center; gap: 8px; border: 1px solid rgba(248, 242, 226, .4); background: transparent; color: var(--cream); border-radius: 999px; padding: 8px 14px; font-size: 14px; font-weight: 600; cursor: pointer; }
.menu-btn .bars { display: grid; gap: 3px; width: 16px; } .menu-btn .bars i { display: block; height: 2px; background: currentColor; border-radius: 2px; transition: .2s; }
.top.open .menu-btn .bars i:nth-child(1) { transform: translateY(5px) rotate(45deg); } .top.open .menu-btn .bars i:nth-child(2) { opacity: 0; } .top.open .menu-btn .bars i:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }
.basket { display: inline-flex; align-items: center; gap: 5px; font-weight: 600; color: var(--primrose); text-decoration: none; border: 1px solid rgba(247, 226, 122, .5); border-radius: 999px; padding: 6px 12px; font-size: 13px; flex-shrink: 0; }
.basket:hover { background: rgba(247, 226, 122, .12); }
.basket svg { width: 18px; height: 18px; flex-shrink: 0; }
@media (max-width: 1100px) {
  .top-in { flex-wrap: wrap; gap: 10px; }
  .basket { margin-left: auto; }
  .menu-btn { display: inline-flex; }
  .menu { display: none; order: 3; width: 100%; flex-direction: column; gap: 2px; margin: 4px 0 6px; padding-top: 8px; border-top: 1px solid rgba(248, 242, 226, .15); }
  .top.open .menu { display: flex; }
  .menu a { font-size: 17px; padding: 12px 14px; border-radius: 12px; }
}
@media (max-width: 440px) { .mlab { display: none; } .menu-btn { padding: 10px 12px; } .top-in { gap: 8px; } }
@media (max-width: 380px) { .brand b { font-size: 19px; } .brand small { font-size: 12px; } .brand svg { display: none; } }
.back-village { background: var(--pine-2); border-top: 1px solid rgba(248, 242, 226, .1); }
.back-village .in { max-width: 1240px; margin: 0 auto; padding: 0 16px; height: 40px; display: flex; align-items: center; }
.back-village a { display: inline-flex; align-items: center; gap: 7px; min-height: 32px; padding: 0 12px 0 8px; margin-left: -8px; border-radius: 999px; color: var(--primrose); font-weight: 600; font-size: 15px; text-decoration: none; white-space: nowrap; }
.back-village a:hover { background: rgba(247, 226, 122, .14); color: var(--cream); }

/* page layout */
.page { max-width: 1000px; margin: 0 auto; padding: 24px 16px 40px; }
.card { background: var(--paper); border-radius: var(--radius); padding: 22px 20px; box-shadow: 0 5px 0 rgba(79, 127, 50, 0.22); margin-bottom: 22px; }
.center { text-align: center; }
.lead { font-size: 1.15rem; color: var(--soft); max-width: 640px; margin: 0 auto 18px; }
.btn { display: inline-block; background: var(--leaf); color: #fff; border: 0; border-radius: 999px; padding: 12px 22px; font-weight: 700; font-size: 1.05rem; cursor: pointer; text-decoration: none; box-shadow: 0 4px 0 var(--leaf-dark); }
.btn:active { transform: translateY(2px); box-shadow: 0 2px 0 var(--leaf-dark); }
.btn.sun { background: var(--primrose-deep); color: var(--ink); box-shadow: 0 4px 0 #c9a12e; }
.btn.sky { background: var(--puddle-deep); box-shadow: 0 4px 0 #2b6a93; }
.btn.ghost { background: #fff; color: var(--leaf-dark); box-shadow: 0 3px 0 var(--line); border: 2px solid var(--line); }
.row { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; align-items: center; }

/* footer (dark, like Ember & Twinkle's) */
.foot { background: var(--night); color: rgba(248, 242, 226, .82); font-size: 14px; margin-top: 30px; }
.foot-in { max-width: 1120px; margin: 0 auto; padding: 36px 16px 18px; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 28px; }
.foot h2 { font-size: 22px; color: var(--cream); margin: 0 0 8px; }
.foot p { margin: 0 0 8px; max-width: 52ch; }
.foot a { color: var(--primrose); }
.foot .signoff { font-family: var(--head); font-style: italic; color: var(--primrose); font-size: 16px; margin: 10px 0; }
.foot .signoff b { font-weight: 500; }
.foot .small { font-size: 12px; opacity: .75; }
.foot .fhead { font-family: var(--head); font-style: italic; color: var(--cream); font-size: 16px; margin-bottom: 6px; }
.foot .links { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-bottom: 14px; }
.foot .links a { text-decoration: none; font-weight: 600; } .foot .links a:hover { text-decoration: underline; }
.xmas { display: inline-block; background: rgba(255, 255, 255, .06); border: 1px solid rgba(247, 226, 122, .4); border-radius: 14px; padding: 10px 14px; text-decoration: none; color: var(--cream) !important; line-height: 1.4; }
.xmas strong { color: var(--primrose); }
.foot-copy { text-align: center; font-size: 12px; opacity: .6; padding: 10px 16px 26px; }
@media (max-width: 700px) { .foot-in { grid-template-columns: minmax(0, 1fr); } }

/* toast */
.toast { position: fixed; left: 50%; bottom: 22px; transform: translate(-50%, 30px); opacity: 0; background: var(--leaf-dark); color: #fff; padding: 12px 18px; border-radius: 16px; font-weight: 600; z-index: 99; transition: .3s; max-width: calc(100% - 32px); text-align: center; pointer-events: none; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* hidden egg */
.hidden-egg { position: absolute; width: 34px; height: 42px; cursor: pointer; z-index: 15; border: 0; background: none; padding: 0; animation: wobble 3.2s ease-in-out infinite; }
.hidden-egg svg { width: 100%; height: 100%; }
.hidden-egg.found { animation: pop .6s forwards; pointer-events: none; }
@keyframes wobble { 0%, 86%, 100% { transform: rotate(0) } 90% { transform: rotate(-12deg) } 95% { transform: rotate(10deg) } }
@keyframes pop { to { transform: scale(1.8) translateY(-30px); opacity: 0 } }

/* sleeps sign */
.sign { display: inline-block; background: #a8743f; color: #fff8e6; font-family: var(--head); font-weight: 700; padding: 8px 18px; border-radius: 10px; box-shadow: 0 4px 0 #7d5329; font-size: 1.1rem; }

/* step inside? */
/* "Step inside?" card (Lucy 30 Nov: like Ember & Twinkle's, in spring colours) */
.ask { position: fixed; inset: 0; background: rgba(40, 52, 30, .42); display: none; align-items: center; justify-content: center; z-index: 50; padding: 16px; animation: ask-in .25s ease-out; }
.ask.open { display: flex; }
.ask .card { position: relative; width: min(360px, 100%); text-align: center; margin: 0; background: linear-gradient(180deg, #fffdf4, #f6f0dc); border: 2px solid var(--primrose-deep); border-radius: 22px; padding: 18px 20px 20px;
  box-shadow: 0 0 0 5px rgba(255, 253, 244, .4), 0 18px 50px rgba(30, 45, 15, .4); animation: ask-pop .3s cubic-bezier(.3, 1.4, .5, 1); }
.ask .card::before, .ask .card::after { content: "\273F"; position: absolute; top: 10px; color: var(--blossom-deep); font-size: 16px; }
.ask .card::before { left: 14px; } .ask .card::after { right: 14px; }
.ask .pic { display: block; width: auto; max-width: 62%; max-height: 120px; margin: -2px auto 6px; filter: drop-shadow(0 4px 8px rgba(40, 55, 15, .25)); }
.ask h2 { margin: 0; font-size: 1.45rem; line-height: 1.2; color: var(--leaf-dark); }
.ask .sub { margin: 4px 0 0; font-family: var(--head); font-style: italic; color: #8a5a2b; }
.ask .say { margin: 10px auto 0; max-width: 30em; font-size: .95rem; line-height: 1.45; color: var(--ink); }
.ask .go { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 16px; }
.ask .go a, .ask .go button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 20px; border-radius: 999px; font: inherit; font-weight: 700; font-size: 1rem; cursor: pointer; text-decoration: none; }
.ask .enter { border: 0; color: #fff; background: linear-gradient(180deg, #6a9c3e, #3b6324); box-shadow: 0 2px 0 #2a4a18, 0 6px 14px rgba(59, 99, 36, .35); min-width: 120px; }
.ask .enter:hover { background: linear-gradient(180deg, #78ab48, #44702a); }
.ask .stay { border: 2px solid var(--line); color: var(--ink); background: #fffdf4; }
.ask .stay:hover { background: #fff7dc; }
.ask .go a:focus-visible, .ask .go button:focus-visible { outline: 3px solid var(--primrose-deep); outline-offset: 3px; }
@keyframes ask-in { from { opacity: 0 } to { opacity: 1 } }
@keyframes ask-pop { from { opacity: 0; transform: scale(.9) translateY(8px) } to { opacity: 1; transform: none } }
@media (prefers-reduced-motion: reduce) { .ask, .ask .card { animation: none; } }

@media print {
  .top, .foot, .no-print, .hidden-egg, .toast { display: none !important; }
  body { background: #fff; }
  .card { box-shadow: none; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* Christmas-time nudge over the hill (1 Dec to 5 Jan) */
.nudge { background: #2f4a6b; color: #fff; text-align: center; font-size: 15px; padding: 8px 16px; line-height: 1.4; }
.nudge a { color: #ffe9a8; font-weight: 700; }
html, body { overflow-x: clip; }

/* Lucy's felted characters */
img.char { display: block; height: auto; max-width: 100%; margin: 0 auto; }

/* ---- rooms (Lucy 30 Nov): each map building opens a room full of things to do ---- */
.room-hero { display: flex; align-items: flex-end; justify-content: center; gap: 18px; flex-wrap: wrap; max-width: 900px; margin: 0 auto 18px; text-align: left; }
.room-hero .bldpic { width: min(260px, 70vw); height: auto; flex: none; filter: drop-shadow(0 6px 4px rgba(35, 55, 15, .25)); }
.room-hero .who { display: flex; align-items: flex-end; gap: 10px; flex: 1 1 300px; max-width: 520px; }
.room-hero .who img { width: 96px; height: auto; flex: none; margin: 0; }
.room-say { background: #fff; border-radius: 20px; padding: 12px 18px; margin: 0 0 22px; position: relative; box-shadow: 0 3px 0 rgba(79, 127, 50, .15); }
.room-say b { font-family: var(--head); font-style: italic; color: #8a5a2b; }
.room-say::after { content: ""; position: absolute; left: -12px; bottom: 18px; border: 12px solid transparent; border-right-color: #fff; border-left: 0; }
.room-grid { list-style: none; margin: 0 auto 26px; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; max-width: 1000px; }
@media (max-width: 820px) { .room-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 440px) { .room-grid { gap: 10px; } .room-grid h3 { font-size: 17px !important; } .room-grid p { display: none; } }
.room-grid a, .room-grid .soon { display: flex; flex-direction: column; height: 100%; background: var(--paper); border-radius: 18px; padding: 10px 10px 14px; text-decoration: none; color: var(--ink); box-shadow: 0 1px 2px rgba(59, 58, 46, .06), 0 8px 24px rgba(59, 58, 46, .09); transition: transform .2s; position: relative; }
.room-grid a:hover { transform: translateY(-3px); }
.room-grid .pic { display: flex; align-items: center; justify-content: center; height: 120px; border-radius: 14px; background: linear-gradient(180deg, #cfe6f5, #e6f4d8); padding: 10px; margin-bottom: 8px; }
.room-grid .pic img, .room-grid .pic svg { max-height: 100px; width: auto; max-width: 100%; margin: 0; }
.room-grid h3 { font-size: 19px; margin: 0 6px 4px; color: var(--ink); }
.room-grid p { margin: 0 6px; font-size: 15px; color: var(--soft); line-height: 1.45; }
.room-grid .soon { opacity: .75; }
.room-grid .tag { position: absolute; top: 14px; right: 14px; background: var(--primrose); color: var(--ink); font-size: 12px; font-weight: 700; border-radius: 999px; padding: 3px 9px; }
.room-sec { max-width: 860px; margin: 0 auto 22px; }
.room-sec > h2 { text-align: center; }
.makes { display: grid; gap: 16px; }
.make h3 { margin-top: 0; font-size: 1.5rem; }
.make .need { background: #f1f9e8; border-radius: 14px; padding: 10px 16px; margin: 8px 0 12px; }
.make ol { padding-left: 22px; } .make li { margin: 6px 0; }
.make .grown { font-size: .95rem; color: var(--soft); }
.make .grown::before { content: "\2B50  "; }
.picks { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin: 0 0 16px; }
.picks button { border: 3px solid transparent; background: var(--paper); border-radius: 999px; padding: 9px 16px; font-weight: 700; cursor: pointer; box-shadow: 0 3px 0 rgba(79, 127, 50, .2); color: var(--ink); }
.picks button[aria-pressed="true"] { border-color: var(--primrose-deep); background: #fffbe6; }
.make .mtop { display: flex; gap: 16px; align-items: flex-start; }
.make .mtop > img, .make .mtop > svg { width: 110px; height: auto; flex: none; margin: 0; }
@media (max-width: 560px) { .make .mtop { display: block; } .make .mtop > img, .make .mtop > svg { width: 80px; float: right; margin: 0 0 6px 8px; } }
.make-sheet { display: none; }
@media print {
  body[data-print] main > *:not(.make-sheet) { display: none !important; }
  body[data-print] .make-sheet { display: block !important; color: #000; font-size: 13pt; }
  .make-sheet h3 { font-size: 24pt; }
}
