/* The public pages only (/privacy, /terms, /tiktok-callback, /instagram-callback,
   /threads-callback, written by
   scripts/lib/static-pages.ts): pages of their own, without the bundle, in the
   app's look (design/poker-daily.css: --bg, --surface-2, --border-2, --text,
   --text-2, --text-3, --signal, --leather; the logotype of .pd-logo; the sheet
   labels of .pd-sheet__label). No inline style: the CSP allows style-src
   'self' only. */
@font-face { font-family: 'Barlow Condensed'; font-style: normal; font-weight: 600; font-display: swap; src: url('/fonts/barlow-condensed-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Barlow Condensed'; font-style: normal; font-weight: 800; font-display: swap; src: url('/fonts/barlow-condensed-latin-800-normal.woff2') format('woff2'); }
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 500; font-display: swap; src: url('/fonts/barlow-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 700; font-display: swap; src: url('/fonts/barlow-latin-700-normal.woff2') format('woff2'); }

html {
  background: #0a0c0e;
  color: #f2f4f5;
  font-family: 'Barlow', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-weight: 500;
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  padding: 16px 16px 48px;
}
.page-header,
main {
  max-width: 40rem;
  margin: 0 auto;
}
.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid #2a3035;
}
.page-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.page-brand img {
  display: block;
  width: 44px;
  height: 44px;
}
.page-logo {
  font-family: 'Barlow Condensed', system-ui, sans-serif;
  font-weight: 800;
  font-size: 27px;
  line-height: 1;
  white-space: nowrap;
}
.page-logo__fish { color: #ffd23f; }
.page-logo__to { color: #b06a2c; }
.page-logo__shark { color: #f2f4f5; }
.page-langs {
  display: flex;
  gap: 4px;
}
.page-langs a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 10px;
  font-family: 'Barlow Condensed', system-ui, sans-serif;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #c5ccd2;
  text-decoration: none;
}
.page-langs a[aria-current='true'] {
  color: #f2f4f5;
  box-shadow: inset 0 -3px 0 #ffd23f;
}
/* Without JavaScript both languages show: the switch is then two anchors. */
article + article {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid #2a3035;
}
.js article + article {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}
h1 {
  font-family: 'Barlow Condensed', system-ui, sans-serif;
  font-weight: 800;
  font-size: 32px;
  line-height: 1.1;
  margin: 24px 0 8px;
}
h2 {
  margin: 24px 0 4px;
  font-family: 'Barlow Condensed', system-ui, sans-serif;
  font-weight: 600;
  font-size: 14px;
  line-height: 1.2;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #9aa3ab;
}
p {
  margin: 0 0 12px;
  font-size: 16px;
  color: #c5ccd2;
  overflow-wrap: anywhere;
}
a {
  color: #f2f4f5;
  text-underline-offset: 0.2em;
}
a:focus-visible,
button:focus-visible {
  outline: 2px solid #f2f4f5;
  outline-offset: 2px;
}
.page-foot {
  margin-top: 24px;
  color: #9aa3ab;
}
.page-home {
  margin-top: 32px;
  font-weight: 700;
}
[hidden] {
  display: none !important;
}

/* /tiktok-callback, /instagram-callback and /threads-callback */
dl {
  margin: 16px 0;
}
.callback-field {
  margin-bottom: 16px;
}
dt {
  font-family: 'Barlow Condensed', system-ui, sans-serif;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #9aa3ab;
  margin-bottom: 4px;
}
dd {
  margin: 0;
}
output {
  display: block;
  padding: 12px;
  background: #15191c;
  border: 1px solid #2a3035;
  border-radius: 6px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 14px;
  color: #f2f4f5;
  overflow-wrap: anywhere;
  user-select: all;
}
.callback-error output {
  border-color: #b06a2c;
}
dd button {
  margin-top: 8px;
  min-height: 44px;
  padding: 0 20px;
  border: 0;
  border-radius: 6px;
  background: #f2f4f5;
  color: #0a0c0e;
  font-family: 'Barlow Condensed', system-ui, sans-serif;
  font-weight: 800;
  font-size: 16px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}
.callback-status {
  margin-left: 12px;
  color: #c5ccd2;
}

/* As in the app's header (.pd-header__mark): under 360 px the head goes, the
   logotype and the language switch stay side by side. */
@media (max-width: 359px) {
  .page-brand img {
    display: none;
  }
  .page-langs a {
    padding: 0 8px;
  }
}
