/* ==========================================================================
   THE SHERIFF — COMING SOON
   Standalone page. No build step, no dependencies. The tokens, textures and
   motion below are lifted from the site's design system (src/index.css) so
   this page reads as the same world: pitch dark, cream ink, faded rust,
   tactical olive.
   ========================================================================== */

:root {
  color-scheme: dark;
  accent-color: var(--rust);

  /* --- Surfaces: pitch black through gun-metal ------------------------- */
  --ink: #0a0908;
  --coal: #121010;
  --ash: #1c1917;
  --iron: #2a2622;
  --grave: #3a342d;

  /* --- Ink: bone / cream / muted smoke --------------------------------- */
  --bone: #e9dcc3;
  --cream: #f5eddd;
  --smoke: #9a8f7e;

  /* --- Faded vintage red ------------------------------------------------ */
  --blood: #6e241c;
  --rust: #a63a2e;
  --ember: #d25b44;

  /* --- Tactical olive --------------------------------------------------- */
  --olive: #5a5f3e;
  --moss: #868b5e;

  /* --- Type ------------------------------------------------------------- */
  --font-display: 'Alfa Slab One', 'Rockwell', Georgia, serif;
  --font-western: 'Rye', 'Alfa Slab One', Georgia, serif;
  --font-stencil: 'Oswald', 'Barlow Condensed', system-ui, sans-serif;
  --font-type: 'Special Elite', 'Courier New', monospace;
  --font-body: 'Barlow', system-ui, -apple-system, sans-serif;

  /* --- Motion ----------------------------------------------------------- */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-stamp: cubic-bezier(0.19, 1, 0.22, 1);
}

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

html {
  -webkit-tap-highlight-color: transparent;
}

body {
  margin: 0;
  min-height: 100vh; /* fallback for browsers without svh */
  min-height: 100svh;
  -webkit-text-size-adjust: 100%;
  background-color: var(--ink);
  color: var(--bone);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  overflow-x: hidden;
  /* A dry, dusty light leak — never a flat void. */
  background-image:
    radial-gradient(90rem 50rem at 50% -20rem, rgba(166, 58, 46, 0.11), transparent 65%),
    radial-gradient(60rem 40rem at 100% 100%, rgba(90, 95, 62, 0.09), transparent 60%);
}

::selection {
  background-color: var(--rust);
  color: var(--cream);
}

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

img {
  max-width: 100%;
  display: block;
}

/* ==========================================================================
   TEXTURE — grain, scanlines, vignette.
   ========================================================================== */

/* Fine film grain fixed to the viewport, so the page feels shot, not drawn. */
.grain::after {
  content: '';
  position: fixed;
  inset: -50%;
  z-index: 70;
  pointer-events: none;
  opacity: 0.16;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
  animation: grain-drift 7s steps(6) infinite;
}

@keyframes grain-drift {
  0%, 100% { transform: translate(0, 0); }
  17% { transform: translate(-2%, 1%); }
  34% { transform: translate(1%, -2%); }
  51% { transform: translate(-1%, 2%); }
  68% { transform: translate(2%, 1%); }
  84% { transform: translate(1%, -1%); }
}

/* CRT / night-vision scanlines. */
.scanlines::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  background-image: repeating-linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.42) 0px,
    rgba(0, 0, 0, 0.42) 1px,
    transparent 1px,
    transparent 4px
  );
  opacity: 0.5;
}

/* Heavy corner vignette for photographic panels. */
.vignette::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
    ellipse 78% 68% at 50% 42%,
    transparent 30%,
    rgba(10, 9, 8, 0.55) 78%,
    rgba(10, 9, 8, 0.94) 100%
  );
}

/* The display type sits IN the surface. */
.letterpress {
  text-shadow:
    0 1px 0 rgba(10, 9, 8, 0.9),
    0 2px 1px rgba(10, 9, 8, 0.7),
    0 -1px 0 rgba(233, 220, 195, 0.06);
}

/* Screen-print misregistration — a hair of rust offset behind cream. */
.misprint {
  text-shadow:
    0.045em 0.03em 0 rgba(166, 58, 46, 0.85),
    -0.02em -0.015em 0 rgba(90, 95, 62, 0.5);
}

/* ==========================================================================
   FIELD — the logo thrown far out of focus behind everything.
   ========================================================================== */

.field {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}

.field img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.3);
  filter: blur(38px) brightness(0.5) saturate(0.6);
}

.field .wash {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    var(--ink) 4%,
    rgba(10, 9, 8, 0.86) 42%,
    rgba(10, 9, 8, 0.66) 72%,
    rgba(10, 9, 8, 0.84) 100%
  );
}

.field .leak {
  position: absolute;
  inset: 0;
  mix-blend-mode: color;
  background: radial-gradient(
    60rem 40rem at 18% 60%,
    rgba(110, 36, 28, 0.45),
    transparent 70%
  );
}

/* ==========================================================================
   LAYOUT
   ========================================================================== */

.page {
  position: relative;
  display: flex;
  min-height: 100vh;
  min-height: 100svh;
  flex-direction: column;
}

.main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 4.5rem 1.25rem 3.5rem;
}

@media (min-width: 640px) {
  .main { padding: 5rem 2rem 4rem; }
}

.stack {
  width: 100%;
  max-width: 44rem;
  text-align: center;
}

/* --- Stamped rule + Est. line ----------------------------------------- */

.est {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.est .rule {
  height: 1px;
  width: 2.5rem;
  background: var(--rust);
}

@media (min-width: 640px) {
  .est .rule { width: 4rem; }
}

.est span.word {
  font-family: var(--font-western);
  font-size: 13px;
  letter-spacing: 0.14em;
  color: var(--ember);
}

@media (min-width: 640px) {
  .est span.word { font-size: 15px; }
}

/* ==========================================================================
   THE SEAL — the house mark, ringed by a slowly turning dashed orbit.
   ========================================================================== */

.seal {
  position: relative;
  width: 168px;
  height: 168px;
  margin: 0 auto 2.25rem;
}

@media (min-width: 640px) {
  .seal { width: 196px; height: 196px; }
}

.seal .orbit {
  position: absolute;
  inset: 0;
  animation: slow-spin 48s linear infinite;
}

.seal .orbit circle {
  fill: none;
  stroke: var(--grave);
  stroke-width: 1;
  stroke-dasharray: 3 9;
}

.seal .glow {
  position: absolute;
  inset: 12%;
  border-radius: 999px;
  box-shadow: 0 0 70px -10px rgba(166, 58, 46, 0.55);
}

.seal img {
  position: absolute;
  inset: 9%;
  width: 82%;
  height: 82%;
  border-radius: 999px;
  object-fit: cover;
  box-shadow:
    0 30px 60px -28px rgba(0, 0, 0, 1),
    inset 0 0 0 1px rgba(233, 220, 195, 0.15);
  outline: 1px solid rgba(233, 220, 195, 0.15);
  outline-offset: -1px;
}

@keyframes slow-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ==========================================================================
   TYPE
   ========================================================================== */

.wordmark {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 12vw, 5rem);
  line-height: 0.9;
  letter-spacing: -0.02em;
  color: var(--cream);
}

.status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.875rem;
  margin-top: 1.5rem;
}

.status .rule {
  height: 1px;
  flex: 1;
  max-width: 4.5rem;
  background: linear-gradient(to right, transparent, var(--grave));
}

.status .rule:last-child {
  background: linear-gradient(to left, transparent, var(--grave));
}

.status .label {
  font-family: var(--font-stencil);
  font-size: clamp(0.8rem, 3.4vw, 1rem);
  font-weight: 600;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--moss);
  white-space: nowrap;
}

.blurb {
  margin: 1.75rem auto 0;
  max-width: 46ch;
  font-family: var(--font-type);
  font-size: 15px;
  line-height: 1.8;
  color: var(--bone);
  text-wrap: pretty;
}

@media (min-width: 640px) {
  .blurb { font-size: 17px; }
}

/* ==========================================================================
   THE CALL — Instagram.
   ========================================================================== */

.cta {
  margin-top: 2.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  font-family: var(--font-stencil);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 0.35s var(--ease-out-expo),
    background-color 0.3s var(--ease-out-expo),
    color 0.3s var(--ease-out-expo),
    box-shadow 0.35s var(--ease-out-expo),
    border-color 0.3s var(--ease-out-expo);
}

.btn-primary {
  background-color: var(--rust);
  color: var(--cream);
  padding: 1rem 2.25rem;
  font-size: 0.875rem;
  border: 1px solid var(--ember);
  box-shadow:
    0 10px 24px -10px rgba(10, 9, 8, 0.95),
    inset 0 1px 0 rgba(245, 237, 221, 0.18);
}

.btn-primary:hover {
  background-color: var(--ember);
  transform: translateY(-2px);
  box-shadow:
    0 18px 34px -12px rgba(166, 58, 46, 0.55),
    inset 0 1px 0 rgba(245, 237, 221, 0.28);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow:
    0 4px 12px -6px rgba(10, 9, 8, 0.9),
    inset 0 2px 5px rgba(10, 9, 8, 0.45);
}

/* Cut corners: a stamped dog-tag silhouette. */
.clip-tag {
  clip-path: polygon(
    12px 0,
    100% 0,
    100% calc(100% - 12px),
    calc(100% - 12px) 100%,
    0 100%,
    0 12px
  );
}

.btn .arrow {
  transition: transform 0.5s var(--ease-out-expo);
}

.btn:hover .arrow {
  transform: translateX(4px);
}


/* --- Handle, spelled out so it is readable without the button --------- */

.handle {
  /* Padding, not margin — small type still needs a 44px tap target. */
  margin-top: 1.25rem;
  padding: 0.85rem 0.75rem;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-stencil);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--smoke);
  text-decoration: none;
  transition: color 0.3s var(--ease-out-expo);
}

.handle:hover { color: var(--bone); }

.handle .dot {
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: var(--ember);
  box-shadow: 0 0 8px 2px rgba(210, 91, 68, 0.55);
}

/* ==========================================================================
   MARQUEE — the signage ticker at the base.
   ========================================================================== */

.marquee {
  position: relative;
  overflow: hidden;
  background: var(--rust);
  color: var(--cream);
  border-top: 1px solid var(--blood);
  border-bottom: 1px solid var(--blood);
}

.marquee-track {
  display: flex;
  width: max-content;
  padding: 0.75rem 0;
  animation: marquee 38s linear infinite;
}

.marquee-track span {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 1.25rem;
  padding-right: 1.25rem;
  font-family: var(--font-stencil);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

@media (min-width: 640px) {
  .marquee-track span { font-size: 13px; }
}

.marquee-track svg {
  flex-shrink: 0;
  opacity: 0.55;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.footer {
  border-top: 1px solid var(--iron);
  background: var(--coal);
  padding: 1.5rem 1.25rem;
  text-align: center;
}

.footer p {
  margin: 0;
  font-family: var(--font-stencil);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--smoke);
  font-variant-numeric: tabular-nums;
}

/* A sign that never quite settles. */
@keyframes flicker {
  0%, 100% { opacity: 1; }
  41% { opacity: 1; }
  42% { opacity: 0.35; }
  43% { opacity: 1; }
  67% { opacity: 1; }
  68% { opacity: 0.55; }
  69% { opacity: 1; }
}

.flicker { animation: flicker 6.5s infinite steps(1, end); }

/* ==========================================================================
   MOTION — the hero stamp: type presses into the page like a brand into hide.
   ========================================================================== */

@keyframes stamp-in {
  0% {
    opacity: 0;
    transform: scale(1.14) translateY(10px);
    filter: blur(14px);
  }
  60% { opacity: 1; }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
    filter: blur(0);
  }
}

.stamp {
  animation: stamp-in 1.05s var(--ease-stamp) both;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  /* Nothing arrives blurred or mid-stamp when motion is off. */
  .stamp { animation: none; }
  .marquee-track { animation: none; }
}

/* ==========================================================================
   SMALL SCREENS
   The lockup is one screenful on a phone: nothing below the fold, nothing
   clipped, and the button never wraps.
   ========================================================================== */

@media (max-width: 640px) {
  .main {
    padding: 3rem 1.25rem 2.25rem;
  }
  .seal {
    width: 150px;
    height: 150px;
    margin-bottom: 1.75rem;
  }
  .blurb {
    margin-top: 1.5rem;
    max-width: 40ch;
  }
  .cta {
    margin-top: 2rem;
  }
  /* A 38px blur over a full-bleed photo is expensive on phone GPUs. */
  .field img {
    filter: blur(26px) brightness(0.5) saturate(0.6);
  }
}

@media (max-width: 400px) {
  .seal {
    width: 132px;
    height: 132px;
    margin-bottom: 1.5rem;
  }
  .btn-primary {
    padding: 0.95rem 1.15rem;
    font-size: 0.78rem;
    letter-spacing: 0.1em;
    gap: 0.5rem;
  }
  /* The button must never wrap — drop the trailing arrow before it can. */
  .btn .arrow {
    display: none;
  }
  .handle {
    letter-spacing: 0.14em;
    font-size: 10px;
  }
  .status .label {
    letter-spacing: 0.24em;
  }
  .blurb {
    font-size: 14px;
    line-height: 1.75;
  }
  /* Keep the copyright on one line — a wrapped second line costs a whole
     row of height and pushes the page past one screenful. */
  .footer {
    padding: 1.25rem 1rem;
  }
  .footer p {
    font-size: 10px;
    letter-spacing: 0.12em;
  }
}

/* Short viewports of any orientation — small Androids, split screen, a
   half-height desktop window. Pull the vertical rhythm in. */
@media (max-height: 700px) {
  .main {
    padding: 2rem 1.25rem 1.5rem;
  }
  /* The wordmark sizes off width, which goes huge on a short wide screen.
     Cap it against height too. */
  .wordmark {
    font-size: max(1.9rem, min(12vw, 9vh));
  }
  .seal {
    width: 104px;
    height: 104px;
    margin-bottom: 1.1rem;
  }
  .status {
    margin-top: 1.1rem;
  }
  .blurb {
    margin-top: 1.1rem;
    line-height: 1.7;
  }
  .cta {
    margin-top: 1.4rem;
  }
  .handle {
    margin-top: 0.5rem;
    padding: 0.7rem 0.75rem;
  }
}

/* Landscape phones: short AND wide. The blurb can run much wider. */
@media (max-height: 620px) and (orientation: landscape) {
  .main {
    padding: 1.5rem 1.25rem 1.25rem;
  }
  .seal {
    width: 76px;
    height: 76px;
    margin-bottom: 0.75rem;
  }
  .status {
    margin-top: 0.85rem;
  }
  /* Width is the one thing landscape has spare — spend it to buy back a
     line of height. */
  .blurb {
    max-width: 92ch;
    margin-top: 0.85rem;
  }
  .cta {
    margin-top: 1.1rem;
  }
  /* The button already carries the handle — drop the duplicate line rather
     than push the ticker off a 390px-tall screen. */
  .handle {
    display: none;
  }
}
