/* Deck of Shadows: website styles. Colors come from the game's own art. */
:root {
  --abyss: #07050a;      /* the game's background */
  --crypt: #120d16;      /* raised surfaces */
  --bone: #e9dfc8;       /* text */
  --ash: #8d8597;        /* quiet text */
  --gold: #d6ad5c;       /* actions */
  --gold-hi: #f0d28a;
  --blood: #7d1f1c;      /* errors */
  --violet: #b48cf0;     /* the Shadow Master */
  --line: rgba(214, 173, 92, .26);
  --display: 'Cinzel', 'Trajan Pro', Georgia, serif;
  --text: 'EB Garamond', Garamond, Georgia, serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--abyss); color: var(--bone);
  font: 400 20px/1.62 var(--text); font-kerning: normal; font-variant-ligatures: common-ligatures;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--gold-hi); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: #fff3d6; }
:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.15; margin: 0; color: var(--bone); }
h2 { font-size: 34px; letter-spacing: .01em; }
h3 { font-size: 22px; }
p { margin: 0; }
p + p { margin-top: .8em; }
.wrap { width: min(1080px, 100% - 40px); margin-inline: auto; }

/* ---- buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 52px; padding: 0 28px; border-radius: 10px; border: 1px solid transparent;
  font: 600 17px/1 var(--display); letter-spacing: .06em; text-decoration: none; cursor: pointer;
  transition: filter .15s, background-color .15s, color .15s;
}
.btn.gold {
  color: #1d1306; border-color: #f3dc9c;
  background: linear-gradient(180deg, #f2d690 0%, #d6ad5c 48%, #a8823a 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), 0 6px 22px rgba(214, 173, 92, .18);
}
.btn.gold:hover { filter: brightness(1.08); color: #1d1306; }
.btn.ghost { color: var(--gold-hi); border-color: var(--line); background: rgba(214, 173, 92, .06); }
.btn.ghost:hover { background: rgba(214, 173, 92, .14); color: #fff3d6; }
.btn[disabled] { opacity: .6; cursor: progress; }

/* ---- forms ---- */
.field { display: grid; gap: 6px; margin-top: 18px; }
.field > span, fieldset legend { font: 600 15px/1.2 var(--display); letter-spacing: .03em; color: var(--bone); }
.field small, .opt { font: italic 400 16px/1.3 var(--text); color: var(--ash); letter-spacing: 0; }
input[type=email], input[type=text], textarea, select {
  width: 100%; min-height: 50px; padding: 12px 14px; border-radius: 10px;
  border: 1px solid rgba(233, 223, 200, .18); background: var(--crypt); color: var(--bone);
  font: 400 19px/1.35 var(--text);
}
textarea { min-height: 104px; resize: vertical; }
input:focus, textarea:focus, select:focus { border-color: var(--gold); outline: none; box-shadow: 0 0 0 3px rgba(214, 173, 92, .22); }
fieldset { border: 0; padding: 0; margin: 20px 0 0; }
.choices { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.choice span {
  display: inline-block; padding: 10px 16px; border-radius: 999px; border: 1px solid rgba(233, 223, 200, .18);
  background: var(--crypt); font: 500 17px/1.2 var(--text); color: var(--bone); cursor: pointer;
}
.choice input:checked + span { border-color: var(--gold); background: rgba(214, 173, 92, .16); color: #fff3d6; }
.choice input:focus-visible + span { outline: 2px solid var(--gold-hi); outline-offset: 2px; }
.check { display: flex; gap: 12px; align-items: flex-start; margin-top: 20px; font-size: 18px; line-height: 1.4; cursor: pointer; }
.check input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--gold); flex: none; }
.form-actions { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.fine { font-size: 16px; color: var(--ash); }
.form-error { margin-top: 14px; padding: 10px 14px; border-radius: 8px; background: rgba(125, 31, 28, .35); border: 1px solid rgba(220, 90, 80, .45); color: #ffd9d4; font-size: 17px; }
.hp { position: absolute; left: -9999px; }

/* ---- footer ---- */
.foot { border-top: 1px solid var(--line); margin-top: 96px; padding: 40px 0 56px; color: var(--ash); font-size: 16px; }
.foot .wrap { display: grid; gap: 14px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 26px; }
.foot nav a { color: var(--bone); text-decoration: none; }
.foot nav a:hover { color: var(--gold-hi); text-decoration: underline; }
.foot .mark { width: 180px; opacity: .85; }

/* ---- simple inner pages (privacy, feedback) ---- */
.page { width: min(720px, 100% - 40px); margin: 0 auto; padding-top: 34px; }
.page .home-link { display: inline-block; }
.page .home-link img { width: 220px; }
.page h1 { font-size: 40px; margin-top: 46px; }
.page .lede { margin-top: 14px; color: #d8cdb5; font-size: 21px; }
.page h2 { font-size: 24px; margin-top: 40px; margin-bottom: 10px; }
.page ul { padding-left: 1.1em; margin: .6em 0 0; }
.page li + li { margin-top: .4em; }
.done-panel { margin-top: 36px; padding: 26px; border-radius: 14px; border: 1px solid var(--line); background: var(--crypt); }
.done-panel h2 { margin: 0 0 8px; }

@media (max-width: 640px) {
  body { font-size: 18px; }
  h2 { font-size: 28px; }
  .page h1 { font-size: 32px; }
  .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
