/* marauders — shared parchment & ink theme */
@import url('https://fonts.googleapis.com/css2?family=IM+Fell+English:ital@0;1&family=IM+Fell+English+SC&display=swap');

:root {
  --parchment: #e9dbb6;
  --parchment-dark: #d9c493;
  --parchment-edge: #b3945e;
  --ink: #3b2a17;
  --ink-soft: #5d472b;
  --ink-faint: #8a704a;
  --blood: #6e1f1f;
  color-scheme: light;
}

* { box-sizing: border-box; }

html, body { margin: 0; min-height: 100%; }

body {
  font-family: 'IM Fell English', Georgia, serif;
  color: var(--ink);
  background-color: var(--parchment);
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='400'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.02 0.03' numOctaves='4' seed='7'/%3E%3CfeColorMatrix values='0 0 0 0 0.45 0 0 0 0 0.33 0 0 0 0 0.16 0 0 0 0.35 0'/%3E%3C/filter%3E%3Crect width='400' height='400' filter='url(%23n)' opacity='0.35'/%3E%3C/svg%3E"),
    radial-gradient(ellipse at 20% 15%, rgba(255,248,220,.55), transparent 55%),
    radial-gradient(ellipse at 85% 80%, rgba(120,84,40,.18), transparent 60%),
    radial-gradient(ellipse at 50% 50%, transparent 55%, rgba(110,75,32,.28) 100%);
  background-attachment: fixed;
}

h1, h2, h3, .sc {
  font-family: 'IM Fell English SC', 'IM Fell English', Georgia, serif;
  font-weight: normal;
  letter-spacing: .04em;
}

a { color: var(--blood); }

.ink-rule {
  border: 0; height: 14px; margin: .8rem auto; max-width: 420px;
  background: center / contain no-repeat
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 420 14'%3E%3Cpath d='M6 7 Q 105 1 210 7 T 414 7' fill='none' stroke='%233b2a17' stroke-width='1.4'/%3E%3Cpath d='M195 7 l12 -5 l3 5 l-3 5 z' fill='%233b2a17'/%3E%3Ccircle cx='6' cy='7' r='2' fill='%233b2a17'/%3E%3Ccircle cx='414' cy='7' r='2' fill='%233b2a17'/%3E%3C/svg%3E");
}

.btn {
  display: inline-block; cursor: pointer; text-decoration: none; text-align: center;
  font-family: 'IM Fell English SC', Georgia, serif; font-size: 1.05rem;
  color: var(--ink); background: linear-gradient(180deg, #f2e6c4, #dcc697);
  border: 1.5px solid var(--ink-soft); border-radius: 3px;
  padding: .45rem 1.1rem;
  box-shadow: 1px 2px 0 rgba(59,42,23,.35);
}
.btn:hover { background: linear-gradient(180deg, #f8eecd, #e3cf9f); }
.btn:active { transform: translate(1px, 1px); box-shadow: none; }
.btn.small { font-size: .85rem; padding: .25rem .7rem; }
.btn.danger { color: var(--blood); border-color: var(--blood); }
.btn[disabled] { opacity: .45; cursor: not-allowed; }

input[type=text], input[type=number], select {
  font-family: 'IM Fell English', Georgia, serif; font-size: 1rem; color: var(--ink);
  background: rgba(255,250,230,.6); border: 1px solid var(--ink-faint);
  border-radius: 3px; padding: .4rem .6rem;
}
input:focus, select:focus { outline: 2px solid rgba(110,31,31,.4); }

.panel {
  background: rgba(248,240,214,.82);
  border: 1.5px solid var(--ink-soft); border-radius: 4px;
  box-shadow: 2px 3px 0 rgba(59,42,23,.25), inset 0 0 40px rgba(179,148,94,.25);
  padding: 1rem 1.2rem;
}

.muted { color: var(--ink-faint); }
.center { text-align: center; }
