/* Dazdranagon theme (silver and platinum), 2026-11-04. Old gold file: docs/previous-theme-2026-11-04/site.css */
:root {
  --ink: #0e1218;
  --ink-2: #171c24;
  --line: #2b3441;
  --gold: #c9d1de; /* name kept from the Gorynych palette; now platinum */
  --gold-hi: #e3e9f2;
  --cream: #eef1f6;
  --muted: #9aa5b6;
  --seal-red: #c3271e;
  --serif: Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background-color: var(--ink);
  background-image: radial-gradient(ellipse at 50% -10%, #1d2530 0%, transparent 60%), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='36' height='26'%3E%3Cg fill='none' stroke='%23808c9f' stroke-opacity='.16' stroke-width='1'%3E%3Cpath d='M0 13a18 13 0 0 0 36 0M-18 0a18 13 0 0 0 36 0M18 0a18 13 0 0 0 36 0'/%3E%3C/g%3E%3C/svg%3E");
  background-attachment: fixed;
  color: var(--cream);
  font: 17px/1.6 var(--sans);
}
a { color: var(--gold-hi); }
a:hover { color: var(--cream); }

.top {
  position: sticky; top: 0; z-index: 5;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 10px clamp(16px, 4vw, 48px);
  background: rgba(14, 18, 24, .92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--cream); }
.brand img { height: 34px; width: 34px; }
.brand span { font: 700 18px/1 var(--serif); letter-spacing: .03em; }
.top nav { display: flex; flex-wrap: wrap; gap: 4px 20px; font-size: 15px; }
.top nav a { color: var(--muted); text-decoration: none; }
.top nav a:hover { color: var(--cream); }
.top nav a.home, .foot a.home { color: var(--gold); }
.top nav a.home::before, .foot a.home::before { content: "\1F512\FE0E\00a0"; font-size: .85em; }
/* the home panel: who is signed in (dom/who.js) and the Authelia logout */
.top nav .who { color: var(--cream); }
.top nav .who::before { content: "\1F464\FE0E\00a0"; font-size: .85em; }

main { max-width: 1120px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 48px); }

.hero { padding: clamp(48px, 9vw, 110px) 0 64px; text-align: center; }
.plate {
  background: radial-gradient(ellipse at 50% 40%, #fcfdfe 0%, var(--cream) 60%, #dce3ee 100%);
  border: 1px solid var(--gold);
  outline: 1px solid var(--gold); outline-offset: 6px;
  border-radius: 6px;
  padding: clamp(22px, 4.5vw, 54px) clamp(18px, 5vw, 64px);
  margin: 0 auto 40px; max-width: 920px;
}
.wordmark { margin: 0; line-height: 0; }
.wordmark img { width: 100%; height: auto; }
.lead { font: 400 clamp(22px, 3vw, 30px)/1.3 var(--serif); color: var(--gold-hi); margin: 0 0 14px; }
.sub { max-width: 640px; margin: 0 auto; color: var(--muted); }
.cta { margin-top: 30px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-block; padding: 11px 22px; border-radius: 999px;
  border: 1px solid var(--gold); color: var(--gold-hi); text-decoration: none; font-weight: 600;
}
.btn.gold { background: linear-gradient(180deg, #eef2f7, #b9c3d1); color: #10151d; border-color: #8b97aa; box-shadow: inset 0 1px 0 rgba(255,255,255,.75); }
.btn.gold:hover { filter: brightness(1.06); color: var(--ink); }

.block { padding: 56px 0; border-top: 1px solid var(--line); }
.head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
h2 { font: 700 clamp(26px, 3.4vw, 34px)/1.2 var(--serif); margin: 0 0 24px; color: var(--cream); }
h2::before { content: ""; display: inline-block; width: 9px; height: 9px; background: var(--seal-red); transform: rotate(45deg) translateY(-5px); margin-right: 14px; }
.more { font-size: 15px; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 18px; }
.card {
  background: var(--ink-2); border: 1px solid var(--line); border-radius: 14px;
  padding: 22px 22px 18px; display: flex; flex-direction: column;
}
.card:hover { border-color: #3c4859; }
.card h3 { font: 700 22px/1.25 var(--serif); margin: 2px 0 8px; color: var(--gold-hi); }
.card p { margin: 0 0 12px; color: var(--muted); font-size: 15.5px; }
.card .kind { font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); margin: 0; }
.card .tag { margin: auto 0 0; font-size: 13px; color: var(--cream); opacity: .7; }

.posts { list-style: none; margin: 0; padding: 0; }
.posts li { display: flex; gap: 20px; padding: 12px 0; border-bottom: 1px dashed var(--line); flex-wrap: wrap; }
.posts time { color: var(--muted); font-variant-numeric: tabular-nums; min-width: 96px; font-size: 15px; }
.posts a { font: 400 19px/1.4 var(--serif); text-decoration: none; color: var(--cream); }
.posts a:hover { color: var(--gold-hi); }

.mark { display: grid; grid-template-columns: minmax(0, 320px) 1fr; gap: clamp(24px, 5vw, 64px); align-items: center; }
.mark img { width: 100%; height: auto; }
.mark p { color: var(--muted); max-width: 560px; }

.contact { text-align: center; }
.contact h2::before { display: none; }
.contact .mail { font: 400 clamp(22px, 3vw, 28px)/1.3 var(--serif); margin: 8px 0 18px; }
.contact .mail a { text-decoration: none; }
.small { font-size: 14px; color: var(--muted); }

.foot {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  max-width: 1120px; margin: 0 auto; padding: 26px clamp(16px, 4vw, 48px) 40px;
  border-top: 1px solid var(--line); color: var(--muted); font-size: 14px;
}
.foot .home { margin-left: auto; text-decoration: none; }

.dom { border-top: 0; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 14px; margin-bottom: 22px; }
.tile {
  display: flex; flex-direction: column; gap: 4px; padding: 20px; border-radius: 14px;
  background: var(--ink-2); border: 1px solid var(--line); text-decoration: none;
}
.tile[hidden] { display: none; }
.tile:hover { border-color: var(--gold); }
.tile b { font: 700 21px/1.25 var(--serif); color: var(--gold-hi); }
.tile span { color: var(--muted); font-size: 15px; }

/* Home panel: the dragon-D holds the key to Klyuchnik in its front paw (the claw on the stem of the D) */
.keeper { display: grid; grid-template-columns: minmax(0, 300px) 1fr; gap: clamp(18px, 4vw, 48px); align-items: center; }
.dragon { position: relative; margin: 0; }
.dragon img { display: block; width: 100%; height: auto; filter: url(#mark-solid); opacity: .55; }
.paw {
  position: absolute; left: 53.5%; top: 54%; transform: translate(-50%, -50%);
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  color: var(--ink); background: radial-gradient(circle at 35% 30%, var(--gold-hi), var(--gold));
  box-shadow: 0 0 0 3px rgba(0,0,0,.35), 0 0 18px var(--gold); text-decoration: none;
  animation: paw-glow 2.8s ease-in-out infinite;
}
.paw:hover, .paw:focus-visible { transform: translate(-50%, -50%) scale(1.12); }
@keyframes paw-glow { 50% { box-shadow: 0 0 0 3px rgba(0,0,0,.35), 0 0 30px var(--gold-hi); } }
@media (prefers-reduced-motion: reduce) { .paw { animation: none; } }
.keys p { margin: 0 0 10px; }
/* the panel has its own dragon now, the fixed watermark would be a second one */
body:has(.keeper)::before { display: none; }

@media (max-width: 720px) {
  .top { flex-direction: column; align-items: flex-start; gap: 6px; }
  .mark { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .mark img { max-width: 240px; }
  .foot .home { margin-left: 0; }
  .keeper { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .dragon { width: min(100%, 280px); }
}

/* Dazdranagon dragon-D watermark: faint, fixed behind the page, never takes clicks */
body::before { content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none;
               background: url(/assets/watermark.webp) center / min(78vmin, 560px) no-repeat; }
main, .top, .foot { position: relative; z-index: 1; }

/* Brand font: the name in the top bar (own capitals, Latin only here) */
@font-face { font-family: "Dazdranagon Display"; src: url(/assets/Dazdranagon-Display.woff2) format("woff2"); font-display: swap; }
.brand span { font: 400 24px/1 "Dazdranagon Display", var(--serif); letter-spacing: .03em; }
