:root{
  /* Brand & UI palette */
  --brand-gold:#CDA862;         /* brand link color from logo */
  --brand-black:#0E0E0E;
  --ink:#141414;
  --muted:#8E98A8;
  --bg:#0E0E0E;
  --panel:#111315;
  --card:#15181C;
  --stroke:#22272B;
  --white:#FFFFFF;
  --accent:#CDA862;             /* align accent to brand gold */
  --radius:18px;
  --shadow:0 10px 30px rgba(0,0,0,.25);
}

/* Reset & layout base */
*{box-sizing:border-box}
html,body{height:100%}

body{
  margin:0;
  display:flex;                  /* sticky footer */
  flex-direction:column;
  min-height:100vh;
  font-family:Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial;
  background:
    radial-gradient(1200px 800px at 10% -10%, rgba(200,163,90,.12), transparent 60%),
    var(--bg);
  color:var(--white);
  line-height:1.65;
}

.container{max-width:960px;margin:0 auto;padding:24px}

/* Header */
.site-header{padding-top:28px;padding-bottom:16px}
.brand{display:flex;gap:16px;align-items:center}
.brand__logo{width:58px;height:58px;object-fit:contain;filter:drop-shadow(0 4px 16px rgba(0,0,0,.35))}
.brand__title{
  font-family:"Playfair Display", Georgia, serif;
  font-weight:700;letter-spacing:.3px;margin:0;font-size:30px
}
.brand__subtitle{margin:2px 0 0;color:var(--muted)}

/* Main */
.content{
  flex:1 0 auto;
  display:flex;
  flex-direction:column;
  gap:22px;
  padding-bottom:56px;          /* przestrzeń nad stopką */
}

/* Cards */
.card{
  background:var(--panel);
  border:1px solid var(--stroke);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  padding:18px 18px 8px;
}
.section-heading{
  margin:6px 2px 14px;
  font-size:14px;
  letter-spacing:.12em;
  text-transform:uppercase;
  color:var(--accent);
}

/* List */
.linklist{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:10px}
.linkitem{
  border:1px solid transparent;
  border-radius:14px;
  background:linear-gradient(180deg,rgba(255,255,255,.02),rgba(255,255,255,0));
  transition:.2s border-color ease;
  padding:10px 12px;
}
.linkitem:hover{border-color:#2a2f35}
.linkrow{display:flex;align-items:center;gap:10px;flex-wrap:wrap}

/* ===== BRAND LINKS — hard override with !important ===== */
.link:link,
.link:visited{
  color:var(--brand-gold) !important;  /* force brand color */
  text-decoration:none;
  font-weight:700;
}
.link:hover{
  color:#E5D1A2 !important;
  text-decoration:underline;
}
.link:active{
  color:#F2E3BD !important;
}
.link:focus-visible{
  outline:2px solid var(--brand-gold);
  outline-offset:2px;
  border-radius:6px;
}
.link.active{ text-decoration:underline; }

/* Arrow */
.openhint{color:var(--brand-gold);font-weight:700}

/* Description */
.desc{ margin-top:6px; color:var(--muted); }

/* Footer (stabilny kolor i oddzielenie) */
.site-footer{
  margin-top:auto;
  background:var(--bg);         /* stałe tło — brak "zmiany odcienia" */
  border-top:1px solid var(--stroke);
  position:relative;
  z-index:0;
  padding:28px 0;
  color:var(--muted);
  text-align:center;
}

/* Accessibility */
:focus-visible{outline:2px solid var(--brand-gold);outline-offset:2px}
