/* pawrpg.com shared styles. The palette is the app's own (src/theme/tokens.ts). */

@font-face {
  font-family: 'Pixelify Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(/fonts/pixelify-sans-latin.woff2?v=0f2216c1b7) format('woff2');
}

/* Body text: Avenir Next where the device has it (every iPhone, iPad and Mac), Nunito Sans everywhere else.
   Avenir can't be served from a website (its license); Nunito Sans is the closest open one, and a browser only
   downloads it when Avenir is missing. */
@font-face {
  font-family: 'Nunito Sans';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(/fonts/nunito-sans-latin.woff2?v=ba40dacf91) format('woff2');
}

:root {
  --leather: #16110b;
  --bark: #241e16;
  --seam: #3a2f22;
  --parchment: #f0dcb0;
  --faded: #b8a684;
  --faint: #8c7c60;
  --gold: #e8b04a;
  --moss: #94b87a;
  --sky: #7fa1c0;
  --ember: #e89066;
  --pixel: 'Pixelify Sans', ui-rounded, system-ui, sans-serif;
  --body: 'Avenir Next', Avenir, 'Nunito Sans', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --notch: polygon(0 10px, 10px 10px, 10px 0, calc(100% - 10px) 0, calc(100% - 10px) 10px, 100% 10px,
    100% calc(100% - 10px), calc(100% - 10px) calc(100% - 10px), calc(100% - 10px) 100%, 10px 100%,
    10px calc(100% - 10px), 0 calc(100% - 10px));
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--leather);
  color: var(--parchment);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  /* Pixelify Sans draws the fi ligature like an A ("Quick Axes"); keep letters separate everywhere. */
  font-variant-ligatures: none;
  font-feature-settings: 'liga' 0, 'clig' 0;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2 { font-family: var(--pixel); font-weight: 700; letter-spacing: 0; color: var(--parchment); }
h3 { line-height: 1.3; }
p { margin: 0 0 1em; }

a { color: var(--gold); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--parchment); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

/* Header */
header.site { border-bottom: 2px solid var(--seam); background: var(--leather); position: sticky; top: 0; z-index: 10; }
header.site .bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--pixel); font-weight: 700; font-size: 24px; color: var(--parchment); text-decoration: none; padding: 6px 0; }
.brand img { width: 36px; height: 36px; border-radius: 8px; }
.brand:hover { color: var(--gold); }
header.site nav { display: flex; gap: 4px; }
header.site nav a { color: var(--faded); text-decoration: none; font-weight: 600; font-size: 15px; padding: 12px 10px; }
header.site nav a:hover { color: var(--parchment); }
@media (max-width: 720px) { header.site nav a.opt { display: none; } }

/* Shared bits */
.store { display: inline-block; line-height: 0; border-radius: 10px; }
.store img { height: 54px; width: auto; }
.badges { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }

/* Discord badge, sized and set like Apple's: the mark, a small line, then the name. Discord blurple, white mark. */
.discord {
  display: inline-flex; align-items: center; gap: 10px; height: 54px; padding: 0 18px 0 14px;
  background: #5865F2; color: #fff; border-radius: 10px; text-decoration: none; line-height: 1;
  border: 1px solid rgba(255, 255, 255, 0.18);
}
.discord img { width: 30px; height: 30px; }
.discord span { display: flex; flex-direction: column; gap: 3px; }
.discord small { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif; font-size: 11px; font-weight: 500; letter-spacing: 0.01em; }
.discord strong { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif; font-size: 22px; font-weight: 600; letter-spacing: -0.01em; }
.discord:hover { background: #4752C4; color: #fff; }
a.discord strong, a.discord small { color: #fff; }
.discord:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* Footer */
footer.site { border-top: 2px solid var(--seam); margin-top: 96px; padding: 22px 0 40px; color: var(--faint); font-size: 14px; }
footer.site .bar { display: flex; justify-content: space-between; align-items: center; gap: 12px 24px; flex-wrap: wrap; }
footer.site p { margin: 0; }
footer.site nav { display: flex; flex-wrap: wrap; gap: 0 4px; margin: 0 -8px; }
footer.site nav a { color: var(--faded); text-decoration: none; padding: 12px 8px; display: inline-block; }
footer.site nav a:hover { color: var(--parchment); }

/* Reading pages: privacy, terms, support, account deletion */
.doc { max-width: 720px; margin: 0 auto; padding: 0 20px; }
.doc > header { padding: 52px 0 22px; border-bottom: 2px solid var(--seam); margin-bottom: 28px; }
.doc > header h1 { font-size: clamp(34px, 6vw, 48px); line-height: 1.05; margin: 0 0 10px; }
.doc > header p { margin: 0; color: var(--faded); }
.doc h2 { font-size: 26px; line-height: 1.15; margin: 44px 0 12px; }
.doc h3 { font-size: 17px; margin: 26px 0 8px; color: var(--parchment); }
.doc p, .doc li { color: #dccaa2; }
.doc li { margin: 6px 0; }
.doc ul, .doc ol { padding-left: 22px; }
.doc strong { color: var(--parchment); }
.doc table { width: 100%; border-collapse: collapse; margin: 12px 0 18px; font-size: 15px; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--seam); }
.doc th { color: var(--faint); font-weight: 700; }
.doc .note { background: var(--bark); border-left: 4px solid var(--gold); padding: 16px 18px; margin: 18px 0; }
.doc .note p:last-child { margin-bottom: 0; }
.doc .note.warn { border-left-color: var(--ember); }
.doc .contact { background: var(--bark); padding: 18px 20px; margin: 16px 0; line-height: 1.8; }
@media (max-width: 560px) {
  .doc table, .doc thead, .doc tbody, .doc tr, .doc th, .doc td { display: block; }
  .doc tr:first-child { display: none; }
  .doc td { border: 0; padding: 2px 0; }
  .doc td:first-child { font-weight: 700; color: var(--parchment); padding-top: 12px; }
  .doc tr { border-bottom: 1px solid var(--seam); padding-bottom: 10px; }
}

/* Forms (support, account deletion) */
.form { background: var(--bark); padding: 22px 20px; margin: 18px 0 8px; clip-path: var(--notch); }
.form .row { margin-bottom: 16px; }
.form label { display: block; font-weight: 700; font-size: 15px; margin-bottom: 6px; color: var(--parchment); }
.form input[type=email], .form input[type=text], .form select, .form textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--parchment); background: var(--leather);
  border: 2px solid var(--seam); border-radius: 0; padding: 12px 12px; min-height: 48px;
}
.form textarea { min-height: 130px; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--gold); outline: none; }
.form .check { display: grid; grid-template-columns: 24px 1fr; gap: 12px; align-items: start; margin: 4px 0 18px; }
.form .check input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--gold); }
.form .check label { font-weight: 500; font-size: 15px; color: var(--faded); margin: 0; cursor: pointer; }
.button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 22px;
  font-family: var(--pixel); font-size: 19px; font-weight: 600; color: var(--leather); background: var(--gold);
  border: 0; cursor: pointer; clip-path: var(--notch);
}
.button:hover { background: var(--parchment); }
.button:focus-visible { outline: none; background: var(--parchment); box-shadow: inset 0 0 0 3px var(--leather); }
.form .sent { margin: 16px 0 0; padding: 12px 14px; background: rgba(148, 184, 122, 0.12); border-left: 4px solid var(--moss); color: var(--parchment); }
.form .sent[hidden] { display: none; }
