/* Shadowfall site - the finishing pass (W10, creator 2026-10-12: "încă e brut"). Loaded last, for the medieval and
   stone themes: one book face for reading, readable line lengths, cleaner gold, text pages as parchment sheets, the
   FAQ as one sheet, wax-seal steps, calmer stone behind text, tighter rhythm. */
@font-face { font-family: "EB Garamond"; src: url("../fonts/EBGaramond.woff2") format("woff2"); font-weight: 400 800; font-display: swap; }
@font-face { font-family: "EB Garamond"; font-style: italic; src: url("../fonts/EBGaramond-Italic.woff2") format("woff2"); font-weight: 400 800; font-display: swap; }

/* ---- reading: one book face, lining figures, ~70 characters a line ---- */
.theme-medieval {
  --book: "EB Garamond", "Palatino Linotype", Georgia, serif;
  font: 18px/1.62 var(--book);
  font-variant-numeric: lining-nums;
}
.theme-medieval .lead { font-size: 1.22rem; line-height: 1.6; }
.theme-medieval .prose p, .theme-medieval .prose li, .theme-medieval .section > .lead { max-width: 68ch; }
.theme-medieval .muted { color: #a89c86; }
.theme-medieval .small { font-size: .92rem; }
.theme-medieval .table td, .theme-medieval .table .num, .theme-medieval .kv dd, .theme-medieval .stat b,
.theme-medieval .hero-stats dd, .theme-medieval .package-amount { font-variant-numeric: lining-nums tabular-nums; }
.theme-medieval .table td { font-family: var(--book); font-size: 1.05rem; }
.theme-medieval code { font-size: .82em; }
.theme-medieval .nav a:not(.btn) { font-size: .8rem; }
.theme-medieval .feature p, .theme-medieval .class-card p, .theme-medieval .news-card p { font-size: 1.02rem; line-height: 1.55; }
.theme-medieval .field-msg, .theme-medieval .rules { font-family: var(--book); }

/* ---- rhythm ---- */
.theme-medieval .section { padding: 64px 16px; }
.theme-medieval .hero { min-height: min(86vh, 800px); }
.theme-medieval .page-hero { padding: 96px 0 56px; }
.theme-medieval h2 { margin-bottom: .55em; }
.theme-medieval .kicker { margin-bottom: .8em; }

/* ---- hero: the small text stays readable on any picture ---- */
.theme-medieval .hero-in::before {
  content: ""; position: absolute; left: 50%; top: 50%; width: min(900px, 96vw); height: 70%; transform: translate(-50%, -50%);
  background: radial-gradient(ellipse at center, #0c0b0acc 0%, #0c0b0a66 45%, transparent 72%); z-index: -1; pointer-events: none;
}
.theme-medieval .hero-in { isolation: isolate; }
.theme-medieval .hero-sub { font-size: 1.15rem; color: #e8dcc2; }
.theme-medieval .hero-tag { font-size: clamp(1.2rem, 2.4vw, 1.7rem); }

/* ---- gold: the hammered texture stays, its dark specks no longer sit on the letters ---- */
.theme-piatra .btn-gold::before {
  background: var(--rivet) 14px 50% / 9px 9px no-repeat, var(--rivet) calc(100% - 14px) 50% / 9px 9px no-repeat,
              linear-gradient(180deg, #f7dd98e0 0%, #d9ac58d6 46%, #b9883ad6 54%, #8a5f20e6 100%),
              var(--t-gold) 0 0 / 220px;
}
.theme-piatra .btn-lg.btn-gold::before {
  background: var(--rivet) 18px 50% / 9px 9px no-repeat, var(--rivet) calc(100% - 18px) 50% / 9px 9px no-repeat,
              linear-gradient(90deg, transparent 30px, #5a3a1066 30px 31px, transparent 31px calc(100% - 31px), #5a3a1066 calc(100% - 31px) calc(100% - 30px), transparent calc(100% - 30px)),
              linear-gradient(180deg, #f7dd98e0 0%, #d9ac58d6 46%, #b9883ad6 54%, #8a5f20e6 100%),
              var(--t-gold) 0 0 / 220px;
}
.theme-piatra .nav .btn-gold::before {
  background: linear-gradient(180deg, #f7dd98e6 0%, #d9ac58dd 46%, #b9883add 54%, #8a5f20ee 100%), var(--t-gold) 0 0 / 220px;
}
.theme-medieval .btn-gold { color: #2a1704; text-shadow: 0 1px 0 #ffeab088; }

/* ---- stone behind text: calmer ---- */
.theme-piatra .feature, .theme-piatra .class-card, .theme-piatra .panel, .theme-piatra .dl-card, .theme-piatra .place {
  background: linear-gradient(160deg, #0c0b0aa6, #0c0b0ad9), var(--t-black) 0 0 / 300px; background-clip: padding-box;
}
.theme-medieval .feature h3 { font-size: 1.12rem; margin-top: 4px; }

/* ---- text pages = parchment sheets (rules, terms, privacy, news, FAQ) ---- */
.theme-medieval section.prose.narrow, .theme-medieval .sheet {
  position: relative; margin: 56px auto 72px; padding: 56px clamp(22px, 6vw, 72px) 60px; max-width: 880px; color: #2b1a0c;
  background: radial-gradient(ellipse at 50% 40%, #00000000 55%, #5a3a1438 100%), linear-gradient(180deg, #e9d9b4, #d8c194);
  box-shadow: 0 30px 70px #000d, inset 0 0 60px #6b4a1e66, inset 0 0 0 1px #8a6d3f;
}
.theme-piatra section.prose.narrow, .theme-piatra .sheet {
  background: radial-gradient(ellipse at 50% 40%, #00000000 55%, #5a3a1440 100%), var(--t-parch) 0 0 / 420px;
}
.theme-medieval section.prose.narrow::before, .theme-medieval .sheet::before {  /* the rolled edges of a scroll */
  content: ""; position: absolute; left: -10px; right: -10px; top: -14px; height: 26px; border-radius: 12px;
  background: linear-gradient(180deg, #8f6a35, #5a3d16 55%, #3a260c); box-shadow: 0 6px 12px #000a, inset 0 2px 0 #c9a25e88;
}
.theme-medieval section.prose.narrow::after, .theme-medieval .sheet::after {
  content: ""; position: absolute; left: -10px; right: -10px; bottom: -14px; height: 26px; border-radius: 12px;
  background: linear-gradient(0deg, #8f6a35, #5a3d16 55%, #3a260c); box-shadow: 0 -2px 10px #0008, inset 0 -2px 0 #c9a25e88;
}
.theme-medieval section.prose.narrow h1, .theme-medieval section.prose.narrow h2, .theme-medieval .sheet h1, .theme-medieval .sheet h2 {
  color: #3a1d0a; text-shadow: none;
}
.theme-medieval section.prose.narrow h2, .theme-medieval .sheet h2 { font-size: 1.45rem; padding-bottom: .3em; border-bottom: 1px solid #8a6d3f66; }
.theme-medieval section.prose.narrow p, .theme-medieval section.prose.narrow li, .theme-medieval .sheet p, .theme-medieval .sheet li {
  color: #33200e; max-width: none; font-size: 1.08rem;
}
.theme-medieval section.prose.narrow .muted, .theme-medieval .sheet .muted { color: #6a5236; font-style: italic; }
.theme-medieval section.prose.narrow a, .theme-medieval .sheet a { color: #8f161c; text-decoration: underline; text-decoration-thickness: 1px; }
.theme-medieval section.prose.narrow .kicker, .theme-medieval .sheet .kicker { color: #8f161c; }
.theme-medieval section.prose.narrow ul li::marker, .theme-medieval .sheet ul li::marker { color: #8f161c; content: "✦  "; font-size: .8em; }
.theme-medieval section.prose.narrow > p:first-of-type::first-letter {
  font-size: 3.4em; color: #8f161c; text-shadow: 1px 1px 0 #c9a14a; margin-top: .06em;
}
.theme-medieval .sheet .news-item { border-bottom: 1px solid #8a6d3f55; padding: 26px 0; }
.theme-medieval .sheet .news-item:last-child { border-bottom: 0; }
.theme-medieval .sheet .news-item time { color: #8f161c; font-style: italic; letter-spacing: 0; font-size: 1rem; }
.theme-medieval .sheet .news-item h2 { border: 0; padding: 0; margin: .15em 0 .35em; }
.theme-medieval .sheet .lead-sm { color: #3a2410; font-style: italic; font-size: 1.12rem; }

/* FAQ: one sheet, rows that open */
.theme-medieval .sheet .faq details { border: 0; border-image: none; background: none; padding: 0; margin: 0; border-bottom: 1px solid #8a6d3f55; border-radius: 0; }
.theme-medieval .sheet .faq details:last-child { border-bottom: 0; }
.theme-medieval .sheet .faq summary { padding: 18px 34px 18px 0; color: #3a1d0a; font-size: 1.08rem; position: relative; }
.theme-medieval .sheet .faq summary::after { position: absolute; right: 4px; top: 16px; color: #8f161c; font-size: 1.3rem; }
.theme-medieval .sheet .faq summary:hover { color: #8f161c; }
.theme-medieval .sheet .faq details p { padding: 0 0 18px; color: #33200e; font-size: 1.06rem; }

/* ---- download steps: iron plaques, the number on a wax seal ---- */
.theme-medieval .steps { gap: 20px; }
.theme-medieval .step { padding: 30px 20px 22px; border-top: 0; border-radius: 0; text-align: center; }
.theme-piatra .step {
  background: var(--rivet) 6px 6px / 9px 9px no-repeat, var(--rivet) calc(100% - 6px) 6px / 9px 9px no-repeat,
              var(--rivet) 6px calc(100% - 6px) / 9px 9px no-repeat, var(--rivet) calc(100% - 6px) calc(100% - 6px) / 9px 9px no-repeat,
              linear-gradient(180deg, #ffffff10, #000000a0), var(--t-iron) 0 0 / 256px;
  box-shadow: inset 0 1px 0 #ffffff22, inset 0 -3px 6px #000c, 0 8px 18px #000c;
}
.theme-medieval .step span {
  display: inline-grid; place-items: center; width: 52px; height: 52px; margin: -54px auto 12px; font: 600 1.4rem/1 var(--serif); color: #f3d79a;
  border-radius: 47% 53% 50% 46% / 52% 46% 54% 48%;
  background: radial-gradient(circle at 35% 30%, #d0434a 0 12%, #a3171e 40%, #6e0c11 72%, #4a070a 100%);
  box-shadow: 0 3px 6px #000c, inset 0 -2px 4px #0006, inset 0 2px 3px #ff8a8a55; text-shadow: 0 1px 0 #3a0306;
}
.theme-medieval .step h3 { font-size: 1.02rem; }
.theme-medieval .step p { font-size: 1rem; }

/* ---- class plaques on the home page: an emblem above the name ---- */
.theme-medieval .class-chips li { display: grid; justify-items: center; gap: 8px; padding: 22px 10px 18px; }
.theme-medieval .class-chips svg { width: 34px; height: 34px; fill: none; stroke: var(--gold2); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
  filter: drop-shadow(0 0 6px #c9a14a55); }
.theme-medieval .class-chips a { color: inherit; text-decoration: none; display: contents; }

/* ---- classes page: the emblem large and faint behind each card ---- */
.theme-medieval .class-card { position: relative; overflow: hidden; }
.theme-medieval .class-card .class-ico.ghost { position: absolute; right: -18px; bottom: -22px; width: 180px; height: 180px; opacity: .07; margin: 0; stroke-width: 1.2; filter: none; }

/* ---- small screens ---- */
@media (max-width: 620px) {
  .theme-medieval { font-size: 17px; }
  .theme-medieval section.prose.narrow, .theme-medieval .sheet { margin: 36px 10px 52px; padding: 44px 20px 46px; }
  .theme-medieval .steps { gap: 34px; }
}

/* a drop cap never runs into the next heading; small gold buttons keep their rivets clear of the letters */
.theme-medieval .prose h2, .theme-medieval .sheet h2 { clear: both; }
.theme-medieval section.prose.narrow > p:first-of-type { min-height: 3.2em; }
.theme-medieval .btn-gold:not(.btn-lg):not(.btn-block) { padding: 0 2.3em; }
.theme-medieval .nav .btn-gold { padding: 0 1.4em; }

/* shop cards: the game's frame on black stone, a warm glow on hover; two per row on a phone */
.theme-medieval .shop-card {
  border: 18px solid transparent; border-image: url("../img/ui/panel_plain.png") 40 / 18px; border-radius: 0;
  padding: 10px 6px 8px; background-clip: padding-box; transition: transform .15s, filter .2s;
}
.theme-piatra .shop-card { background: linear-gradient(160deg, #0c0b0aa6, #0c0b0ad9), var(--t-black) 0 0 / 300px; background-clip: padding-box; }
.theme-medieval .shop-card:hover { transform: translateY(-3px); filter: brightness(1.15) drop-shadow(0 0 14px #c9a14a33); }
.theme-medieval .shop-icon { background: radial-gradient(circle, #c9a14a2e, #00000066 70%); border-color: #c9a14a66; box-shadow: inset 0 0 12px #000; }
.theme-medieval .shop-name { font-size: 1rem; }
@media (max-width: 620px) {
  .shop-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .theme-medieval .shop-card { border-width: 14px; border-image-width: 14px; }
  .shop-icon { width: 66px; height: 66px; }
  .shop-icon img { width: 52px; height: 52px; }
  .shop-name { font-size: .9rem !important; }
}
