/* A 1930s travel-poster look in Farbound's own palette: paper grain,
   heavy geometric caps, ribbon banners and hard-shadow frames. */

@font-face {
  font-family: "Jost";
  src: url("/farbound/fonts/jost-normal.woff2") format("woff2");
  font-weight: 400 900;
  font-display: swap;
}

@font-face {
  font-family: "Lora";
  src: url("/farbound/fonts/lora-normal.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

@font-face {
  font-family: "Lora";
  src: url("/farbound/fonts/lora-italic.woff2") format("woff2");
  font-weight: 400 700;
  font-style: italic;
  font-display: swap;
}

:root {
  --paper: #fbf2dc;
  --paper-deep: #f1e2c0;
  --card: #fffaec;
  --ink: #2b2420;
  --ink-soft: #5e5248;
  --red: #c0492f;
  --red-deep: #96361f;
  --sea: #2e7d7a;
  --gold: #e0a32e;
  --sky: #5b8db8;
  --shadow: 6px 6px 0 var(--ink);
  color-scheme: light;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 18px/1.65 "Lora", Georgia, serif;
  overflow-x: hidden;
}

/* Film grain and a soft vignette over everything. */
body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
}

body::before {
  opacity: 0.22;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.35 0 0 0 0 0.27 0 0 0 0 0.18 0 0 0 0.55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

body::after {
  background: radial-gradient(ellipse at center, transparent 55%, rgba(80, 50, 20, 0.18) 100%);
}

a { color: var(--red); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--red-deep); }

h1, h2, h3, .display {
  font-family: "Jost", "Futura", sans-serif;
  font-weight: 800;
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

h1 { font-size: clamp(2.2rem, 6vw, 3.2rem); margin: 0.3em 0; }
h2 { font-size: clamp(1.6rem, 4.5vw, 2.3rem); margin: 0 0 0.5em; }
h3 { font-size: 1.15rem; margin: 1.6em 0 0.3em; }

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

.narrow { max-width: 720px; }

/* ---------- Header ---------- */

.site-header {
  position: relative;
  z-index: 10;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding-top: 20px;
  padding-bottom: 20px;
}

.brand {
  font-family: "Jost", sans-serif;
  font-weight: 900;
  font-size: 1.05rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  border: 3px solid var(--ink);
  padding: 4px 12px;
  background: var(--card);
  box-shadow: 3px 3px 0 var(--ink);
}

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

.site-header nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
  font-family: "Jost", sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-header nav a { color: var(--ink); text-decoration: none; }
.site-header nav a:hover { color: var(--red); }

/* ---------- Ornaments ---------- */

.rule {
  display: flex;
  align-items: center;
  gap: 14px;
  justify-content: center;
  color: var(--red);
  margin: 0 0 12px;
  font-size: 1.1rem;
}

.rule::before,
.rule::after {
  content: "";
  height: 3px;
  width: 64px;
  background: var(--ink);
  box-shadow: 0 6px 0 var(--ink);
  margin-bottom: 6px;
}

.ribbon {
  position: relative;
  display: inline-block;
  margin: 0 40px;
  padding: 10px 28px;
  background: var(--red);
  color: var(--card);
  font-family: "Jost", sans-serif;
  font-weight: 800;
  font-size: clamp(0.95rem, 2.6vw, 1.3rem);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 3px solid var(--ink);
  box-shadow: 0 5px 0 var(--ink);
}

/* Notched tails tucked behind each end. */
.ribbon::before,
.ribbon::after {
  content: "";
  position: absolute;
  top: 12px;
  width: 44px;
  height: 100%;
  background: var(--red-deep);
  border: 3px solid var(--ink);
  z-index: -1;
}

.ribbon::before { left: -34px; clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 30% 50%); }
.ribbon::after { right: -34px; clip-path: polygon(0 0, 100% 0, 70% 50%, 100% 100%, 0 100%); }

.frame {
  background: var(--card);
  border: 3px solid var(--ink);
  box-shadow: var(--shadow);
  outline: 2px solid var(--ink);
  outline-offset: -11px;
  padding: 28px;
}

/* ---------- Sections ---------- */

section { position: relative; padding: 64px 0; }

.section-head { text-align: center; margin-bottom: 36px; }
.section-head p { max-width: 560px; margin: 0 auto; color: var(--ink-soft); }

.band {
  background: var(--paper-deep);
  border-top: 3px solid var(--ink);
  border-bottom: 3px solid var(--ink);
}

.lead { font-size: 1.2rem; color: var(--ink-soft); }
.muted { color: var(--ink-soft); font-size: 0.95rem; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  text-align: center;
  padding: 40px 0 72px;
  overflow: hidden;
  isolation: isolate;
}

/* Sunburst rays behind the title. */
.hero::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 42%;
  width: 2400px;
  height: 2400px;
  margin: -1200px 0 0 -1200px;
  background: repeating-conic-gradient(from 0deg, var(--paper-deep) 0deg 7.5deg, var(--paper) 7.5deg 15deg);
  -webkit-mask-image: radial-gradient(circle, #000 0, #000 22%, transparent 48%);
  mask-image: radial-gradient(circle, #000 0, #000 22%, transparent 48%);
  animation: spin 160s linear infinite;
  z-index: -1;
}

@keyframes spin { to { transform: rotate(360deg); } }

.hero-icon {
  width: 168px;
  height: 168px;
  border-radius: 22%;
  border: 4px solid var(--ink);
  box-shadow: var(--shadow);
  animation: bob 4s ease-in-out infinite;
}

@keyframes bob {
  50% { transform: translateY(-8px) rotate(-2deg); }
}

.wordmark {
  font-family: "Jost", sans-serif;
  font-weight: 900;
  font-size: clamp(3.4rem, 15vw, 8.5rem);
  line-height: 0.95;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gold);
  -webkit-text-stroke: 3px var(--ink);
  paint-order: stroke fill;
  text-shadow:
    1px 1px 0 var(--ink), 2px 2px 0 var(--ink), 3px 3px 0 var(--ink),
    4px 4px 0 var(--ink), 5px 5px 0 var(--ink), 6px 6px 0 var(--ink),
    7px 7px 0 var(--red), 8px 8px 0 var(--red), 9px 9px 0 var(--ink);
  margin: 24px 0 8px;
}

.byline {
  font-style: italic;
  font-size: 1.15rem;
  margin: 0 0 28px;
}

.hero .lead {
  max-width: 600px;
  margin: 28px auto 0;
  color: var(--ink);
}

/* A round rubber stamp. */
.stamp {
  position: absolute;
  right: max(16px, calc(50% - 480px));
  top: 40px;
  width: 132px;
  height: 132px;
  display: grid;
  place-items: center;
  text-align: center;
  border-radius: 50%;
  border: 4px double var(--sea);
  color: var(--sea);
  font-family: "Jost", sans-serif;
  font-weight: 800;
  font-size: 0.85rem;
  line-height: 1.2;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transform: rotate(12deg);
  background: rgba(255, 250, 236, 0.7);
}

.stamp strong { display: block; font-size: 1.25rem; font-weight: 900; }

/* ---------- How it plays ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
}

/* Tickets with punched notches on both sides. */
.ticket {
  position: relative;
  background: var(--card);
  border: 3px solid var(--ink);
  box-shadow: var(--shadow);
  padding: 28px 26px 24px;
  -webkit-mask: radial-gradient(circle 14px at 0 50%, transparent 98%, #000) left / 51% 100% no-repeat,
                radial-gradient(circle 14px at 100% 50%, transparent 98%, #000) right / 51% 100% no-repeat;
  mask: radial-gradient(circle 14px at 0 50%, transparent 98%, #000) left / 51% 100% no-repeat,
        radial-gradient(circle 14px at 100% 50%, transparent 98%, #000) right / 51% 100% no-repeat;
}

.ticket h3 { margin: 12px 0 6px; }
.ticket p { margin: 0; }

.ticket .num {
  display: inline-grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--red);
  color: var(--card);
  border: 3px solid var(--ink);
  font-family: "Jost", sans-serif;
  font-weight: 900;
  font-size: 1.5rem;
}

.stars-table {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin: 40px 0 0;
  padding: 0;
  list-style: none;
}

.stars-table li {
  background: var(--card);
  border: 3px solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
  padding: 10px 18px;
  font-family: "Jost", sans-serif;
  font-weight: 700;
}

.stars-table .stars { color: var(--gold); -webkit-text-stroke: 1px var(--ink); font-size: 1.3rem; margin-right: 6px; }

/* ---------- Question types ---------- */

.tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tags li {
  background: var(--card);
  border: 3px solid var(--ink);
  border-radius: 6px 30px 30px 6px;
  padding: 8px 22px 8px 16px;
  font-family: "Jost", sans-serif;
  font-weight: 700;
  font-size: 1.02rem;
  box-shadow: 3px 3px 0 var(--ink);
}

.tags li:nth-child(odd) { transform: rotate(-1.5deg); }
.tags li:nth-child(even) { transform: rotate(1.5deg); }
.tags li::before { content: "● "; color: var(--red); }

/* ---------- Screens ---------- */

.screens {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 36px 28px;
  margin: 0;
}

.screens figure { margin: 0; text-align: center; }

/* The border sits outside the screenshot (content-box), so the image keeps
   its own proportions and is never cropped. Kept straight: rotating a scaled
   screenshot blurs its text. */
.phone {
  --frame: 4px;
  box-sizing: content-box;
  display: block;
  width: calc(100% - 2 * var(--frame));
  max-width: calc(260px - 2 * var(--frame));
  height: auto;
  margin: 0 auto;
  background: var(--paper-deep);
  border: var(--frame) solid var(--ink);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.screens figcaption {
  margin-top: 18px;
  font-family: "Jost", sans-serif;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.screens figcaption span {
  display: block;
  font-family: "Lora", serif;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

/* The preview video: framed like the screenshots. Never autoplays. */
.film {
  display: block;
  width: 100%;
  max-width: 420px;
  height: auto;
  margin: 0 auto;
  background: var(--paper-deep);
  border: 4px solid var(--ink);
  border-radius: 12px;
  box-shadow: var(--shadow);
}

/* ---------- Modes ---------- */

.modes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
}

.poster {
  border: 3px solid var(--ink);
  box-shadow: var(--shadow);
  background: var(--card);
}

.poster header {
  padding: 18px 22px;
  border-bottom: 3px solid var(--ink);
  color: var(--card);
}

.poster header h3 { margin: 0; font-size: 1.4rem; }
.poster header p { margin: 2px 0 0; font-style: italic; }

.poster .body { padding: 18px 22px 22px; }
.poster .body p { margin: 0; }

.poster.sea header { background: var(--sea); }
.poster.red header { background: var(--red); }
.poster.gold header { background: var(--gold); color: var(--ink); }

/* ---------- Seal ---------- */

.seal-row {
  display: flex;
  align-items: center;
  gap: 40px;
}

.seal {
  flex-shrink: 0;
  width: 190px;
  height: 190px;
  display: grid;
  place-items: center;
  text-align: center;
  background: var(--gold);
  color: var(--ink);
  font-family: "Jost", sans-serif;
  font-weight: 900;
  text-transform: uppercase;
  line-height: 1.1;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  clip-path: polygon(50% 0%, 57% 9%, 68% 4%, 71% 15%, 83% 14%, 82% 25%, 93% 29%, 88% 39%, 98% 46%, 90% 54%, 97% 63%, 87% 68%, 90% 79%, 79% 80%, 77% 92%, 66% 88%, 59% 98%, 50% 91%, 41% 98%, 34% 88%, 23% 92%, 21% 80%, 10% 79%, 13% 68%, 3% 63%, 10% 54%, 2% 46%, 12% 39%, 7% 29%, 18% 25%, 17% 14%, 29% 15%, 32% 4%, 43% 9%);
  animation: spin 40s linear infinite;
}

.seal span { display: block; animation: spin 40s linear infinite reverse; }
.seal strong { display: block; font-size: 1.6rem; }

ul.checks { list-style: none; padding: 0; margin: 12px 0 0; }
ul.checks li { padding-left: 32px; position: relative; margin: 6px 0; }
ul.checks li::before {
  content: "✔";
  position: absolute;
  left: 0;
  color: var(--sea);
  font-weight: 700;
}

/* ---------- Company page card ---------- */

.app-card {
  display: flex;
  gap: 24px;
  align-items: center;
  color: inherit;
  text-decoration: none;
}

.app-card:hover h2 { color: var(--red); }
.app-card h2 { margin: 0 0 6px; }
.app-card p { margin: 0; }

.app-icon {
  width: 112px;
  height: 112px;
  border-radius: 22%;
  border: 3px solid var(--ink);
  flex-shrink: 0;
}

/* ---------- Plain text pages (privacy, support) ---------- */

.doc { padding: 24px 0 40px; }
.doc .frame { padding: 36px 40px; }
.doc h1 { margin-top: 0; }
.doc h2 { font-size: 1.35rem; margin: 1.8em 0 0.4em; }
.doc h3 { text-transform: none; letter-spacing: 0; font-size: 1.15rem; }

/* ---------- Footer ---------- */

.site-footer {
  padding: 32px 20px 48px;
  text-align: center;
  font-family: "Jost", sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-top: 3px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
}

.site-footer a { color: var(--gold); text-decoration: none; }
.site-footer a:hover { color: var(--paper); }

/* ---------- Small screens and reduced motion ---------- */

@media (max-width: 720px) {
  section { padding: 48px 0; }
  .stamp { position: static; margin: 0 auto 8px; width: 112px; height: 112px; }
  .seal-row { flex-direction: column; text-align: center; }
  .seal-row ul.checks { text-align: left; display: inline-block; }
  .app-card { flex-direction: column; align-items: flex-start; }
  .screens { grid-template-columns: 1fr 1fr; gap: 28px 16px; }
  .phone { --frame: 3px; border-radius: 18px; box-shadow: 4px 4px 0 var(--ink); }
  .screens figcaption { font-size: 0.85rem; }
  .screens figcaption span { font-size: 0.85rem; }
  .doc .frame { padding: 28px 22px; }
  .frame { outline-offset: -8px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; }
  html { scroll-behavior: auto; }
}
