/* Halloween.my — dark, pumpkin-lit, fast. One stylesheet, no framework. */

:root{
  --ink:#0d0713;            /* near-black purple */
  --ink-2:#170e22;
  --ink-3:#211630;
  --line:#33244a;
  --text:#f3ecff;
  --muted:#a394bd;
  --orange:#ff7a18;
  --orange-2:#ffa14a;
  --lime:#8bd44f;
  --blood:#c1121f;
  --radius:14px;
  --wrap:1140px;
  --font: "Trebuchet MS", "Segoe UI", system-ui, -apple-system, sans-serif;
}

*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{
  margin:0;background:var(--ink);color:var(--text);font-family:var(--font);
  font-size:17px;line-height:1.6;
  background-image:
    radial-gradient(60rem 30rem at 80% -10%, rgba(255,122,24,.16), transparent 60%),
    radial-gradient(50rem 26rem at 5% 5%, rgba(139,68,255,.14), transparent 60%);
  background-attachment:fixed;
}
img{max-width:100%;height:auto;display:block}
a{color:var(--orange-2);text-decoration:none}
a:hover{text-decoration:underline}
h1,h2,h3{line-height:1.15;margin:0 0 .5em;font-weight:800;letter-spacing:-.01em}
h1{font-size:clamp(2rem,5vw,3.1rem)}
h2{font-size:clamp(1.4rem,3vw,2rem)}
h3{font-size:1.12rem}
p{margin:0 0 1em}
.wrap{width:min(var(--wrap),calc(100% - 2.5rem));margin-inline:auto}
.muted{color:var(--muted)}
.small{font-size:.86rem}
.skip{position:absolute;left:-9999px}
.skip:focus{left:1rem;top:1rem;background:var(--orange);color:#1a0d00;padding:.6rem 1rem;border-radius:8px;z-index:99}
:focus-visible{outline:3px solid var(--orange-2);outline-offset:2px;border-radius:4px}

/* --- masthead ------------------------------------------------------------ */
.masthead{position:sticky;top:0;z-index:50;background:rgba(13,7,19,.88);
  backdrop-filter:blur(10px);border-bottom:1px solid var(--line)}
.masthead__inner{display:flex;align-items:center;gap:1rem;min-height:66px}
.logo{display:flex;align-items:center;gap:.5rem;color:var(--text);font-weight:800;font-size:1.28rem}
.logo:hover{text-decoration:none}
.logo__mark{font-size:1.5rem;filter:drop-shadow(0 0 8px rgba(255,122,24,.6))}
.logo__dot{color:var(--orange)}
.nav{margin-left:auto;display:flex;align-items:center;gap:.35rem;flex-wrap:wrap}
.nav a{color:var(--text);padding:.5rem .8rem;border-radius:9px;font-weight:600;font-size:.97rem}
.nav a:hover{background:var(--ink-3);text-decoration:none}
.nav__country{border:1px solid var(--line);color:var(--muted)!important}
.navtoggle,.navtoggle__btn{display:none}

/* --- buttons ------------------------------------------------------------- */
.btn{display:inline-block;padding:.72rem 1.35rem;border-radius:999px;font-weight:700;
  border:1px solid transparent;cursor:pointer;font-size:1rem}
.btn:hover{text-decoration:none;transform:translateY(-1px)}
.btn--primary{background:linear-gradient(180deg,var(--orange-2),var(--orange));color:#25120a;
  box-shadow:0 8px 24px -10px rgba(255,122,24,.9)}
.btn--ghost{border-color:var(--line);color:var(--text);background:var(--ink-2)}
.btn--small{padding:.45rem .95rem;font-size:.9rem;background:var(--ink-3);color:var(--text);border-color:var(--line)}

/* --- hero ---------------------------------------------------------------- */
.hero{padding:clamp(3rem,8vw,6rem) 0 clamp(2rem,5vw,3.5rem);text-align:center}
.hero__eyebrow{text-transform:uppercase;letter-spacing:.22em;font-size:.78rem;color:var(--orange);
  font-weight:700;margin-bottom:.9rem}
.hero__title{margin-bottom:.6rem;text-shadow:0 0 40px rgba(255,122,24,.25)}
.hero__sub{max-width:46ch;margin:0 auto 1.6rem;color:var(--muted);font-size:1.08rem}
.hero__cta{display:flex;gap:.75rem;justify-content:center;flex-wrap:wrap}

/* --- sections ------------------------------------------------------------ */
.section{padding:clamp(1.8rem,4vw,3rem) 0}
.section__head{display:flex;align-items:baseline;gap:1rem;margin-bottom:1.25rem}
.section__head h2{margin:0}
.section__more{margin-left:auto;white-space:nowrap;font-weight:600;font-size:.95rem}
.pagehead{padding:2.5rem 0 .5rem}
.lede{color:var(--muted);font-size:1.1rem;max-width:62ch}
.prose{max-width:70ch}
.prose h2{margin-top:1.8em}
.crumbs{font-size:.85rem;color:var(--muted);margin-bottom:.9rem}
.crumbs a{color:var(--muted)}
.crumbs span{opacity:.5;margin:0 .35rem}
.band{background:var(--ink-2);border:1px solid var(--line);border-radius:var(--radius);
  padding:2rem;text-align:center;margin-bottom:3rem}
.band h2{margin-bottom:.4rem}
.empty{background:var(--ink-2);border:1px dashed var(--line);border-radius:var(--radius);padding:2rem;text-align:center;color:var(--muted)}

/* --- grids --------------------------------------------------------------- */
.grid{display:grid;gap:1.1rem}
.grid--cards{grid-template-columns:repeat(auto-fill,minmax(285px,1fr))}
.grid--areas{grid-template-columns:repeat(auto-fill,minmax(240px,1fr))}
.grid--cats{grid-template-columns:repeat(auto-fill,minmax(165px,1fr))}
.grid--products{grid-template-columns:repeat(auto-fill,minmax(215px,1fr))}

/* --- event cards --------------------------------------------------------- */
.card{position:relative;background:var(--ink-2);border:1px solid var(--line);
  border-radius:var(--radius);padding:1.25rem;display:flex;flex-direction:column;gap:.35rem}
.card:hover{border-color:var(--orange);box-shadow:0 12px 34px -18px rgba(255,122,24,.8)}
.card--featured{border-color:rgba(255,122,24,.5)}
.card__title{margin:0}
.card__title a{color:var(--text)}
.card__title a:hover{color:var(--orange-2);text-decoration:none}
.card__meta{margin:0;color:var(--muted);font-size:.92rem}
.card__dates{margin:.15rem 0 0;color:var(--orange-2);font-weight:700;font-size:.94rem}
.card__summary{margin:.5rem 0 0;font-size:.94rem;color:#d6cbe8}
.card__foot{margin:auto 0 0;padding-top:.85rem;display:flex;align-items:center;gap:.75rem;flex-wrap:wrap}
.price{font-weight:700;color:var(--lime)}
.pill{display:inline-block;font-size:.7rem;text-transform:uppercase;letter-spacing:.1em;
  font-weight:800;padding:.2rem .5rem;border-radius:999px}
.pill--featured{position:absolute;top:-.6rem;right:1rem;background:var(--orange);color:#25120a}
.pill--soon{background:var(--ink-3);color:var(--muted)}
.scare__skull{opacity:.22;font-size:.9rem}
.scare__skull.is-on{opacity:1}

/* --- area lists ---------------------------------------------------------- */
.arealist{list-style:none;margin:0;padding:0;display:grid;gap:.5rem;
  grid-template-columns:repeat(auto-fill,minmax(215px,1fr))}
.arealist a{display:flex;justify-content:space-between;gap:.5rem;padding:.7rem .95rem;
  background:var(--ink-2);border:1px solid var(--line);border-radius:10px;color:var(--text);font-weight:600}
.arealist a:hover{border-color:var(--orange);text-decoration:none}
.arealist__count{color:var(--muted);font-weight:700}
.areacard{display:block;background:var(--ink-2);border:1px solid var(--line);
  border-radius:var(--radius);padding:1.4rem;color:var(--text)}
.areacard:hover{border-color:var(--orange);text-decoration:none}
.areacard h2{font-size:1.25rem;margin-bottom:.2rem}
.areacard__count{margin:0;color:var(--orange-2);font-weight:700;font-size:.92rem}
.areacard__blurb{margin:.6rem 0 0;color:var(--muted);font-size:.92rem}
.areacard--soon{opacity:.62}

/* --- shop ---------------------------------------------------------------- */
.cat{display:flex;flex-direction:column;align-items:center;gap:.4rem;text-align:center;
  padding:1.5rem 1rem;background:var(--ink-2);border:1px solid var(--line);
  border-radius:var(--radius);color:var(--text);font-weight:700}
.cat:hover{border-color:var(--orange);text-decoration:none}
.cat__icon{font-size:2rem}
.cat__count{color:var(--muted);font-weight:600;font-size:.82rem}
.product{background:var(--ink-2);border:1px solid var(--line);border-radius:var(--radius);
  padding:1rem;display:flex;flex-direction:column;gap:.45rem}
.product:hover{border-color:var(--orange)}
.product__link{color:var(--text)}
.product__img{width:100%;aspect-ratio:1;object-fit:cover;border-radius:10px;background:var(--ink-3)}
.product__img--none{display:grid;place-items:center;font-size:2.5rem}
.product__title{margin:.6rem 0 0;font-size:1rem}
.product__desc{margin:0;font-size:.88rem;color:var(--muted)}
.product__foot{margin:auto 0 .4rem;display:flex;justify-content:space-between;align-items:baseline;gap:.5rem}

/* --- event page ---------------------------------------------------------- */
.event{display:grid;gap:2rem;grid-template-columns:minmax(0,1.7fr) minmax(260px,1fr);align-items:start}
.event__facts{background:var(--ink-2);border:1px solid var(--line);border-radius:var(--radius);
  padding:1.4rem;position:sticky;top:86px}
.event__facts dl{margin:0 0 1.2rem;display:grid;grid-template-columns:1fr;gap:.15rem}
.event__facts dt{color:var(--muted);font-size:.8rem;text-transform:uppercase;letter-spacing:.1em;
  font-weight:700;margin-top:.85rem}
.event__facts dt:first-child{margin-top:0}
.event__facts dd{margin:0;font-weight:600}
.event__actions{display:flex;flex-direction:column;gap:.6rem}
.event__actions .btn{text-align:center}

/* --- map ----------------------------------------------------------------- */
.map{height:380px;border-radius:var(--radius);border:1px solid var(--line);overflow:hidden;
  background:var(--ink-2)}
.map--tall{height:min(72vh,660px)}
.map--single{height:300px;margin:1.5rem 0}
.leaflet-popup-content-wrapper{background:var(--ink-2);color:var(--text);border-radius:10px}
.leaflet-popup-tip{background:var(--ink-2)}
.leaflet-popup-content{margin:.8rem 1rem;font-family:var(--font)}
.leaflet-popup-content b{display:block;font-size:1rem;margin-bottom:.15rem}
.leaflet-container a.leaflet-popup-close-button{color:var(--muted)}

/* --- forms --------------------------------------------------------------- */
.form-wrap{max-width:720px}
.field{margin-bottom:1.1rem;display:flex;flex-direction:column;gap:.35rem}
.field-row{display:grid;gap:1.1rem;grid-template-columns:1fr 1fr}
label{font-weight:700;font-size:.92rem}
.req{color:var(--orange)}
input,textarea{font:inherit;font-size:1rem;color:var(--text);background:var(--ink-2);
  border:1px solid var(--line);border-radius:10px;padding:.7rem .85rem;width:100%}
input:focus,textarea:focus{border-color:var(--orange);outline:none}
textarea{resize:vertical}
.err{color:#ff8f8f;font-size:.86rem;margin:0}
.hp{position:absolute;left:-9999px}
.notice{border-radius:var(--radius);padding:1.3rem;margin-bottom:1.5rem;border:1px solid var(--line);background:var(--ink-2)}
.notice--ok{border-color:var(--lime)}
.notice--bad{border-color:var(--blood)}

/* --- footer -------------------------------------------------------------- */
.footer{border-top:1px solid var(--line);background:var(--ink-2);margin-top:3rem;padding:2.5rem 0 1.5rem}
.footer__inner{display:grid;gap:2rem;grid-template-columns:repeat(auto-fit,minmax(210px,1fr))}
.footer__brand{font-weight:800;font-size:1.2rem;margin:0 0 .2rem}
.footer nav{display:flex;flex-direction:column;gap:.4rem}
.footer__label{font-weight:700;font-size:.8rem;text-transform:uppercase;letter-spacing:.1em;
  color:var(--muted);margin:0 0 .5rem}
.footer__country{display:block;color:var(--text);padding:.15rem 0;font-size:.95rem}
.footer__country.is-current{color:var(--orange)}
.footer__legal{margin-top:2rem;padding-top:1.2rem;border-top:1px solid var(--line)}
.footer__legal p{margin:0;max-width:80ch}

/* --- small screens ------------------------------------------------------- */
@media (max-width:820px){
  .event{grid-template-columns:1fr}
  .event__facts{position:static}
  .field-row{grid-template-columns:1fr}
  .navtoggle__btn{display:block;margin-left:auto;width:42px;height:42px;border:1px solid var(--line);
    border-radius:10px;position:relative;cursor:pointer}
  .navtoggle__btn span,.navtoggle__btn::before,.navtoggle__btn::after{content:"";position:absolute;
    left:11px;right:11px;height:2px;background:var(--text);border-radius:2px}
  .navtoggle__btn span{top:20px}
  .navtoggle__btn::before{top:13px}
  .navtoggle__btn::after{top:27px}
  .nav{display:none;order:3;width:100%;flex-direction:column;align-items:stretch;
    margin:0 0 .8rem;gap:0}
  .nav a{padding:.75rem .5rem;border-bottom:1px solid var(--line)}
  .navtoggle:checked ~ .nav{display:flex}
  .masthead__inner{flex-wrap:wrap}
}
@media (prefers-reduced-motion:reduce){
  *{transition:none!important;animation:none!important}
  .btn:hover{transform:none}
}

/* --- blog ---------------------------------------------------------------- */
.grid--posts{grid-template-columns:repeat(auto-fill,minmax(290px,1fr))}
.post-card{background:var(--ink-2);border:1px solid var(--line);border-radius:var(--radius);
  padding:1.4rem;display:flex;flex-direction:column;gap:.5rem}
.post-card:hover{border-color:var(--orange)}
.post-card--lead{grid-column:1/-1;background:
  linear-gradient(135deg,rgba(255,122,24,.09),transparent 60%),var(--ink-2);
  border-color:rgba(255,122,24,.45)}
.post-card--lead .post-card__title{font-size:1.6rem}
.post-card__link{color:var(--text);display:flex;align-items:flex-start;gap:.7rem}
.post-card__link:hover{text-decoration:none;color:var(--orange-2)}
.post-card__emoji{font-size:1.6rem;line-height:1.2}
.post-card__title{margin:0;font-size:1.15rem}
.post-card__excerpt{margin:0;color:var(--muted);font-size:.94rem}
.post-card__meta{margin:auto 0 0;padding-top:.6rem;color:var(--muted);font-size:.84rem}
.pagehead--post{max-width:74ch}
.post__emoji{font-size:2.6rem;margin:0 0 .3rem}
.post__meta{color:var(--muted);font-size:.88rem;display:flex;align-items:center;gap:.5rem;flex-wrap:wrap}
.tag{background:var(--ink-3);border:1px solid var(--line);border-radius:999px;
  padding:.15rem .6rem;font-size:.76rem;color:var(--muted)}
.prose--post{max-width:70ch;font-size:1.06rem}
.prose--post h2{margin-top:2em;font-size:1.45rem}
.prose--post blockquote{margin:1.6em 0;padding:.2rem 0 .2rem 1.2rem;
  border-left:3px solid var(--orange);color:#e2d8f2;font-style:italic}
.prose--post ul{padding-left:1.2rem;color:#ded3ef}
.prose--post li{margin-bottom:.4rem}
