/* xLights Hub — self-contained. Relative paths only, so the folder can be
   served from any domain root without edits.

   Identity is deliberately warmer than the xLights Around The World site
   (teal/violet) so the two are not mistaken for each other: amber and a deep
   slate, closer to a workbench than a night sky. */

:root {
  --bg:        #0d0f14;
  --bg-alt:    #12151c;
  --card:      rgba(255,255,255,.04);
  --card-hi:   rgba(255,255,255,.07);
  --line:      rgba(255,255,255,.09);
  --txt:       #e9ecf2;
  --txt-soft:  #a4adbe;
  --txt-mute:  #6c7689;
  --amber:     #ffb547;
  --amber-hi:  #ffd08a;
  --lime:      #9ae66e;
  --max:       1160px;
  --pad:       clamp(3rem, 6vw, 5rem);
  --radius:    14px;
  --display:   'Outfit', system-ui, sans-serif;
  --body:      'Lato', -apple-system, BlinkMacSystemFont, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--txt);
       font: 17px/1.7 var(--body); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--amber); }

.container { max-width: var(--max); margin: 0 auto; padding: 0 clamp(1.1rem, 4vw, 2rem); }
section { padding: var(--pad) 0; }
section.alt { background: var(--bg-alt); }

/* ---- nav ---- */
.nav { position: sticky; top: 0; z-index: 40; background: rgba(13,15,20,.86);
       backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.nav-in { display: flex; align-items: center; gap: 1.5rem; height: 64px; }
.brand { display: flex; align-items: baseline; gap: .45rem; text-decoration: none; }
.brand b { font-family: var(--display); font-weight: 700; font-size: 1.15rem;
           letter-spacing: -.02em; color: #fff; }
.brand i { font-style: normal; color: var(--amber); font-weight: 700;
           font-family: var(--display); font-size: 1.15rem; }
.nav ul { display: flex; gap: 1.4rem; list-style: none; margin: 0 0 0 auto; padding: 0; }
.nav ul a { font-family: var(--display); font-weight: 500; font-size: .88rem;
            color: var(--txt-soft); text-decoration: none; }
.nav ul a:hover { color: #fff; }
@media (max-width: 820px) { .nav ul { display: none; } }

/* ---- hero ---- */
.hero { padding: clamp(3.5rem, 8vw, 6rem) 0 clamp(2rem, 4vw, 3rem);
  background: radial-gradient(ellipse 70% 60% at 15% 0%, rgba(255,181,71,.13), transparent 60%),
              radial-gradient(ellipse 60% 50% at 90% 10%, rgba(154,230,110,.08), transparent 60%),
              var(--bg); }
h1 { font-family: var(--display); font-weight: 700; letter-spacing: -.03em;
     font-size: clamp(2.2rem, 6vw, 4rem); line-height: 1.03; margin: 0 0 1rem; }
h1 em { font-style: normal; color: var(--amber); }
.lead { font-size: clamp(1.05rem, 1.7vw, 1.3rem); color: var(--txt-soft); max-width: 660px; margin: 0; }
.eyebrow { font-family: var(--display); font-weight: 600; font-size: .78rem;
           letter-spacing: .18em; text-transform: uppercase; color: var(--amber); margin: 0 0 .9rem; }

h2 { font-family: var(--display); font-weight: 600; letter-spacing: -.02em;
     font-size: clamp(1.6rem, 3.4vw, 2.3rem); margin: 0 0 .6rem; color: #fff; }
.sec-head { margin-bottom: 2rem; max-width: 760px; }
.sec-head p { color: var(--txt-soft); margin: 0; }

/* ---- category nav chips ---- */
.chips { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 2rem; }
.chip { font-family: var(--display); font-weight: 500; font-size: .88rem;
        text-decoration: none; color: var(--txt); padding: .5rem 1rem;
        border: 1px solid var(--line); border-radius: 100px; background: var(--card); }
.chip:hover { border-color: var(--amber); color: #fff; }
.chip span { color: var(--txt-mute); margin-left: .35rem; font-size: .8rem; }

/* ---- link cards ---- */
.links { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.link {
  display: block; text-decoration: none; color: inherit; position: relative;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--card); padding: 1.35rem 1.4rem; transition: border-color .18s, background .18s;
}
.link:hover { border-color: var(--amber); background: var(--card-hi); }
.link h3 { font-family: var(--display); font-weight: 600; font-size: 1.12rem;
           margin: 0 0 .3rem; color: #fff; }
.link .host { font-family: var(--display); font-size: .78rem; color: var(--amber);
              letter-spacing: .02em; margin: 0 0 .6rem; word-break: break-all; }
.link p { margin: 0; color: var(--txt-soft); font-size: .96rem; line-height: 1.6; }
.link::after { content: '↗'; position: absolute; top: 1.2rem; right: 1.2rem;
               color: var(--txt-mute); font-size: .9rem; }
.link:hover::after { color: var(--amber); }

/* ---- footer ---- */
.foot { border-top: 1px solid var(--line); background: var(--bg-alt);
        padding: 2.5rem 0 3rem; }
.foot .container { display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: baseline; }
.foot p { margin: 0; color: var(--txt-mute); font-size: .9rem; }
.foot ul { display: flex; flex-wrap: wrap; gap: 1.1rem; list-style: none; margin: 0 0 0 auto; padding: 0; }
.foot ul a { font-family: var(--display); font-size: .88rem; color: var(--txt-soft); text-decoration: none; }
.foot ul a:hover { color: #fff; }

.note { border: 1px dashed var(--line); border-radius: 10px; padding: 1.1rem 1.3rem;
        color: var(--txt-mute); font-size: .93rem; }

/* ---- submission form ---- */
.form { display: flex; flex-direction: column; gap: 1.15rem; }
.form .row { display: grid; gap: 1.15rem; grid-template-columns: 1fr; }
@media (min-width: 620px) { .form .row { grid-template-columns: 1fr 1fr; } }
.form label { display: flex; flex-direction: column; gap: .4rem;
  font-family: var(--display); font-weight: 500; font-size: .95rem; color: var(--txt); }
.form .opt { color: var(--txt-mute); font-weight: 400; font-size: .85rem; }
.form input, .form select, .form textarea {
  font: 16px/1.5 var(--body); color: var(--txt);
  background: rgba(255,255,255,.04); border: 1px solid var(--line);
  border-radius: 10px; padding: .8rem .9rem; width: 100%;
}
.form input:focus, .form select:focus, .form textarea:focus {
  outline: none; border-color: var(--amber); background: rgba(255,255,255,.06);
}
.form textarea { resize: vertical; min-height: 140px; }
.form .hint { font-family: var(--body); font-weight: 400; font-size: .85rem; color: var(--txt-mute); }
/* Off-screen rather than display:none -- some bots skip hidden fields. */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.submit { align-self: flex-start; font-family: var(--display); font-weight: 600;
  font-size: .95rem; letter-spacing: .02em; cursor: pointer;
  background: var(--amber); color: #1a1206; border: 0; border-radius: 100px;
  padding: .85rem 1.9rem; }
.submit:hover { background: var(--amber-hi); }
.submit:disabled { opacity: .55; cursor: default; }
.msg { margin: 0; font-size: .95rem; min-height: 1.4em; }
.msg.ok  { color: var(--lime); }
.msg.bad { color: #ff8a80; }

/* ---- filter ---- */
.filter { display: flex; align-items: center; gap: .9rem; margin-top: 1.5rem; max-width: 520px; }
.filter input {
  flex: 1; font: 16px/1.5 var(--body); color: var(--txt);
  background: rgba(255,255,255,.05); border: 1px solid var(--line);
  border-radius: 100px; padding: .7rem 1.1rem;
}
.filter input:focus { outline: none; border-color: var(--amber); background: rgba(255,255,255,.07); }
.filter input::-webkit-search-cancel-button { filter: invert(.6); cursor: pointer; }
.qcount { font-family: var(--display); font-size: .85rem; color: var(--txt-mute); white-space: nowrap; }
