/* Thrum's page: the addon's own carved look. Runes cut in cream, dark bark outlines, a wooden
   plaque for the button, the four elements as stones, on the deep forest green of its
   screenshots. Thrum Runes is the addon's own font, SIL Open Font License
   (fonts/thrumrunes-OFL.txt); it has capitals only, so it's used for the title and the button. */
@font-face { font-family: 'Thrum Runes'; src: url(fonts/thrumrunes.ttf); font-display: swap; }

:root { --bark: #231409; --cream: #f3e6c4; --paper: #f1e3c0; --wood: #a87443; --sky: #7fc8ff; --bg: #0f201c; --lift: 7px; }
* { box-sizing: border-box; }
html { background: var(--bg); }
body { margin: 0; min-height: 100vh; overflow-x: hidden; overflow-x: clip; color: var(--cream);
  font: 16px/1.5 system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; -webkit-font-smoothing: antialiased;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.28), transparent 9%, transparent 91%, rgba(0, 0, 0, 0.28)),
    radial-gradient(ellipse at 50% 0%, #2f5a4f, transparent 60%),
    radial-gradient(ellipse at 50% 100%, #12302a, transparent 70%), var(--bg); }
main { max-width: 1180px; margin: 0 auto; padding: 60px 20px 40px; }

/* ---------- the hero: carved title, the four elements, a caption and the plaque ---------- */
.hero { display: flex; flex-direction: column; align-items: center; text-align: center; min-height: calc(100vh - 60px); min-height: calc(100svh - 60px); justify-content: center; padding-bottom: 40px; }
h1 { margin: 0; font: clamp(92px, 16vw, 180px)/0.95 'Thrum Runes', Impact, sans-serif; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--cream); -webkit-text-stroke: 5px var(--bark); paint-order: stroke fill;
  text-shadow: var(--lift) var(--lift) 0 var(--bark), 0 0 60px rgba(127, 200, 255, 0.18);
  animation: rise 0.7s cubic-bezier(.2, .8, .2, 1) both; }
.stones { width: min(236px, 60vw); height: auto; margin-top: 30px; overflow: visible;
  filter: drop-shadow(4px 4px 0 var(--bark)); animation: rise 0.7s cubic-bezier(.2, .8, .2, 1) 0.1s both; }
.stones polygon { stroke: var(--bark); stroke-width: 3; stroke-linejoin: round; }
.caption { margin: 52px 0 0; padding: 8px 16px; background: var(--paper); color: var(--bark); border: 3px solid var(--bark);
  font-weight: 700; font-size: clamp(15px, 2.2vw, 19px); transform: rotate(-1.2deg); box-shadow: 5px 5px 0 rgba(0, 0, 0, 0.45); }
.download { display: inline-flex; align-items: baseline; gap: 12px; margin-top: 56px; padding: 12px 30px 10px; text-decoration: none;
  color: var(--cream); border: 3px solid var(--bark); border-radius: 8px 12px 9px 11px;
  background: repeating-linear-gradient(176deg, rgba(0, 0, 0, 0.12) 0 2px, transparent 2px 9px),
    linear-gradient(180deg, #c08a52, var(--wood) 45%, #7d5129);
  box-shadow: inset 0 2px 0 rgba(255, 230, 190, 0.35), inset 0 -3px 0 rgba(0, 0, 0, 0.25), var(--lift) var(--lift) 0 var(--bark);
  transition: transform 0.2s cubic-bezier(.3, 1.6, .5, 1), box-shadow 0.2s; }
.download .label { font: 30px 'Thrum Runes', Impact, sans-serif; letter-spacing: 0.06em; text-transform: uppercase;
  -webkit-text-stroke: 1.5px var(--bark); paint-order: stroke fill; text-shadow: 3px 3px 0 var(--bark); }
.download .ver { font-size: 15px; font-weight: 700; color: #ffe9bf; text-shadow: 1px 1px 0 var(--bark); }
.download:hover { transform: translate(-3px, -3px); box-shadow: inset 0 2px 0 rgba(255, 230, 190, 0.35), inset 0 -3px 0 rgba(0, 0, 0, 0.25),
  calc(var(--lift) + 3px) calc(var(--lift) + 3px) 0 var(--bark), 0 0 30px rgba(127, 200, 255, 0.25); }
.download:active { transform: translate(4px, 4px); box-shadow: inset 0 2px 0 rgba(255, 230, 190, 0.35), 2px 2px 0 var(--bark); transition-duration: 0.05s; }
.download:focus-visible { outline: 3px solid var(--sky); outline-offset: 5px; }
.install { margin: 30px 0 0; font-size: 14px; color: rgba(243, 230, 196, 0.75); }
code { font: 0.92em ui-monospace, 'SF Mono', Menlo, Consolas, monospace; padding: 0.1em 0.4em; border-radius: 3px;
  background: rgba(243, 230, 196, 0.08); border: 1px solid rgba(243, 230, 196, 0.14); overflow-wrap: anywhere; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } }

/* ---------- the showcase: one picture of what the addon draws (made by addons-site/tools/hero.py) ---------- */
.showcase { margin: 120px auto 0; max-width: 1100px; border: 3px solid var(--bark); border-radius: 6px; overflow: hidden;
  background: var(--bark); box-shadow: var(--lift) var(--lift) 0 rgba(0, 0, 0, 0.4); }
.showcase img { display: block; width: 100%; height: auto; }

footer { margin-top: 120px; padding-bottom: 20px; text-align: center; }
footer a { color: var(--sky); font: 22px 'Thrum Runes', Impact, sans-serif; letter-spacing: 0.08em; text-transform: uppercase; text-decoration: none; }
footer a:hover { color: #fff; }

@media (max-width: 560px) {
  :root { --lift: 5px; }
  main { padding-top: 40px; }
  h1 { -webkit-text-stroke-width: 4px; }
  .download .label { font-size: 26px; }
  .showcase { margin-top: 90px; }
  footer { margin-top: 90px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
