/*
  The public website for getslotflip.com. Static pages only: no scripts, no
  sign-in, no money code. Colors and type follow DESIGN.md, the same contract
  the app uses, so the site and the app look like one product.

  Fonts are self-hosted copies of the app's own files (SIL Open Font License),
  so the page needs nothing from another server.
*/

@font-face {
  font-family: "Barlow";
  font-display: swap;
  font-weight: 400;
  src: url("/fonts/barlow-latin-400-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Barlow";
  font-display: swap;
  font-weight: 600;
  src: url("/fonts/barlow-latin-600-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Barlow Condensed";
  font-display: swap;
  font-weight: 600;
  src: url("/fonts/barlow-condensed-latin-600-normal.woff2") format("woff2");
}

@font-face {
  font-family: "JetBrains Mono Variable";
  font-display: swap;
  font-weight: 100 800;
  src: url("/fonts/jetbrains-mono-latin-wght-normal.woff2") format("woff2-variations");
}

/* DESIGN.md tokens, by name. */
:root {
  --background: #09090b;
  --foreground: #fafafa;
  --card: #18181b;
  --primary: #f97316;
  --primary-hover: #fb923c;
  --primary-foreground: #0a0a0a;
  --muted: #27272a;
  --muted-foreground: #a1a1aa;
  --border: #27272a;
  --control-edge: #52525b;
  --warning: #eab308;
  --radius: 0.5rem;

  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: "Barlow", ui-sans-serif, system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
}

a {
  color: var(--primary);
  text-underline-offset: 3px;
}

a:hover {
  color: var(--primary-hover);
}

a:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  padding: 0.75rem 1rem;
  background: var(--primary);
  color: var(--primary-foreground);
  font-weight: 600;
  text-decoration: none;
}

.skip:focus {
  top: 1rem;
}

.wrap {
  width: 100%;
  max-width: 44rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header */

.site-header {
  border-bottom: 1px solid var(--border);
}

.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  color: var(--foreground);
  font-family: "Barlow Condensed", ui-sans-serif, system-ui, sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
  text-decoration: none;
}

.brand:hover {
  color: var(--foreground);
}

.brand-mark {
  display: inline-flex;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0.25rem;
  border: 2px solid var(--primary);
  border-radius: 0.625rem;
  background: var(--foreground);
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  display: inline-block;
  padding: 0.5rem 0;
  color: var(--muted-foreground);
  font-family: "Barlow Condensed", ui-sans-serif, system-ui, sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-decoration: none;
  text-transform: uppercase;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--foreground);
}

.site-nav a[aria-current="page"] {
  box-shadow: inset 0 -2px 0 var(--primary);
}

/* Content */

main {
  padding: 2.5rem 0 3rem;
}

main:focus {
  outline: none;
}

.eyebrow {
  margin: 0 0 0.5rem;
  color: var(--primary);
  font-family: "Barlow Condensed", ui-sans-serif, system-ui, sans-serif;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  font-family: "Barlow Condensed", ui-sans-serif, system-ui, sans-serif;
  font-weight: 600;
  letter-spacing: 0.03em;
  line-height: 1.15;
}

h1 {
  margin: 0 0 1rem;
  font-size: 2.25rem;
}

h2 {
  margin: 2.5rem 0 0.75rem;
  font-size: 1.5rem;
}

h3 {
  margin: 0 0 0.5rem;
  font-size: 1.125rem;
}

p,
ul,
ol {
  margin: 0 0 1rem;
}

li {
  margin-bottom: 0.375rem;
}

.lead {
  color: var(--foreground);
  font-size: 1.25rem;
  line-height: 1.5;
}

.muted {
  color: var(--muted-foreground);
}

.money {
  font-family: "JetBrains Mono Variable", ui-monospace, monospace;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.card {
  margin: 0 0 1rem;
  padding: 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
}

.card > :last-child {
  margin-bottom: 0;
}

.grid {
  display: grid;
  gap: 1rem;
}

.grid .card {
  margin: 0;
}

@media (min-width: 40rem) {
  h1 {
    font-size: 3rem;
  }

  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Home hero */

.hero {
  padding: 1rem 0 0.5rem;
  text-align: center;
}

.hero .brand-mark {
  width: 7rem;
  height: 7rem;
  padding: 0.875rem;
  border-width: 4px;
  border-radius: 1.5rem;
}

.hero h1 {
  margin-top: 1.5rem;
  font-size: 3.5rem;
  letter-spacing: -0.01em;
}

.hero .lead {
  max-width: 30rem;
  margin: 0 auto 1rem;
}

.dollar {
  color: var(--primary);
  font-weight: 600;
}

/* Tables (refund examples) */

.table-scroll {
  margin: 0 0 1rem;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--card);
  font-size: 0.9375rem;
}

th,
td {
  padding: 0.625rem 0.875rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

tr:last-child th,
tr:last-child td {
  border-bottom: 0;
}

thead th {
  color: var(--muted-foreground);
  font-family: "Barlow Condensed", ui-sans-serif, system-ui, sans-serif;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

td.num {
  text-align: right;
}

/* Draft banner on the terms and privacy pages */

.draft {
  margin: 0 0 1.5rem;
  padding: 1rem 1.25rem;
  border: 1px solid var(--warning);
  border-radius: var(--radius);
  background: rgb(234 179 8 / 0.1);
  color: var(--foreground);
}

.draft strong {
  color: var(--warning);
}

.fill {
  padding: 0 0.25rem;
  border-radius: 0.25rem;
  background: rgb(234 179 8 / 0.18);
  color: var(--warning);
}

/* Contact */

.contact-line {
  margin: 0 0 0.25rem;
  font-size: 1.25rem;
  font-weight: 600;
  overflow-wrap: anywhere;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0 calc(2rem + env(safe-area-inset-bottom));
  color: var(--muted-foreground);
  font-size: 0.875rem;
}

.site-footer ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  margin: 0 0 1rem;
  padding: 0;
  list-style: none;
}

.site-footer a {
  color: var(--muted-foreground);
}

.site-footer a:hover {
  color: var(--foreground);
}

.site-footer p {
  margin: 0 0 0.25rem;
}
