/* Blink — blink.elevatedpicks.com
   Editorial light treatment of the app's own light theme:
   paper, deep navy ink, one amber accent. */

:root {
  --paper: #f6f3ec;
  --paper-2: #fffdf8;
  --ink: #030347;
  --ink-soft: rgba(3, 3, 71, 0.62);
  --ink-faint: rgba(3, 3, 71, 0.14);
  --amber: #ffb000;
  --amber-deep: #b87c00;
  --tile: #ebe6da;
  --tile-lit: #fffdf8;
  --measure: 62ch;
  --shell: 1120px;
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Karla", ui-sans-serif, system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  background-image:
    radial-gradient(1100px 620px at 78% -10%, rgba(255, 176, 0, 0.13), transparent 62%),
    radial-gradient(800px 500px at 4% 8%, rgba(3, 3, 71, 0.05), transparent 60%);
  background-attachment: fixed;
}

.shell {
  width: min(100% - 2.5rem, var(--shell));
  margin-inline: auto;
}

/* ---------------------------------------------------------------- masthead */

.masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.9rem 0 1.2rem;
  flex-wrap: wrap;
}

.mark {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: inherit;
}

.mark svg {
  width: 30px;
  height: 30px;
  display: block;
}

.mark b {
  font-family: "Instrument Serif", ui-serif, Georgia, serif;
  font-size: 1.6rem;
  font-weight: 400;
  letter-spacing: 0.005em;
}

.nav {
  display: flex;
  gap: 1.6rem;
  font-size: 0.94rem;
  letter-spacing: 0.02em;
}

.nav a {
  color: var(--ink-soft);
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
  transition: color 0.25s ease, border-color 0.25s ease;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--ink);
  border-bottom-color: var(--amber);
}

/* ------------------------------------------------------------------- hero */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
  padding: clamp(2.5rem, 7vw, 6rem) 0 clamp(3rem, 8vw, 6.5rem);
}

.eyebrow {
  font-size: 0.76rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--amber-deep);
  margin: 0 0 1.4rem;
  font-weight: 700;
}

h1 {
  font-family: "Instrument Serif", ui-serif, Georgia, serif;
  font-weight: 400;
  font-size: clamp(3rem, 7.2vw, 5.4rem);
  line-height: 0.96;
  letter-spacing: -0.015em;
  margin: 0 0 1.5rem;
}

h1 em {
  font-style: italic;
  color: var(--amber-deep);
}

.lede {
  font-size: clamp(1.06rem, 1.5vw, 1.22rem);
  color: var(--ink-soft);
  max-width: 46ch;
  margin: 0 0 2.2rem;
}

.actions {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background: var(--ink);
  color: var(--paper-2);
  text-decoration: none;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 0 10px 26px -14px rgba(3, 3, 71, 0.7);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 34px -16px rgba(3, 3, 71, 0.7);
}

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink-faint);
  box-shadow: none;
}

.btn--ghost:hover {
  border-color: var(--ink);
  box-shadow: none;
}

/* --------------------------------------------------------- the peek demo */

.demo {
  position: relative;
}

.demo__frame {
  background: var(--paper-2);
  border: 1px solid var(--ink-faint);
  border-radius: 26px;
  padding: 1.6rem 1.6rem 1.3rem;
  box-shadow: 0 40px 80px -50px rgba(3, 3, 71, 0.55);
}

.demo__hud {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 1.1rem;
}

.demo__hud b {
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}

.board {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.7rem;
}

.board .tile {
  aspect-ratio: 1;
  border-radius: 14px;
  background: var(--tile);
  border: 1px solid transparent;
  display: grid;
  place-items: center;
  font-size: clamp(1.3rem, 3.4vw, 1.9rem);
  color: transparent;
  transition: color 0.18s ease, background 0.18s ease, border-color 0.18s ease;
  user-select: none;
}

.board[data-peeking="true"] .tile {
  color: var(--amber-deep);
  background: var(--tile-lit);
  border-color: rgba(255, 176, 0, 0.55);
}

.peekbar {
  margin-top: 1.2rem;
  width: 100%;
  border: 0;
  border-radius: 16px;
  background: var(--amber);
  color: #241a00;
  font: inherit;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.82rem;
  padding: 1.05rem 1rem;
  cursor: pointer;
  touch-action: manipulation;
  transition: filter 0.2s ease, transform 0.12s ease;
}

.peekbar:hover {
  filter: brightness(1.04);
}

.peekbar:active,
.peekbar[data-peeking="true"] {
  transform: translateY(1px);
  filter: brightness(0.94);
}

/* ----------------------------------------------------------------- panels */

.rule {
  border: 0;
  border-top: 1px solid var(--ink-faint);
  margin: 0;
}

.strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.6rem, 4vw, 3.2rem);
  padding: clamp(2.6rem, 6vw, 4.4rem) 0;
}

.strip h3 {
  font-family: "Instrument Serif", ui-serif, Georgia, serif;
  font-weight: 400;
  font-size: 1.55rem;
  margin: 0 0 0.5rem;
}

.strip p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.98rem;
}

.strip .num {
  display: block;
  font-size: 0.74rem;
  letter-spacing: 0.22em;
  color: var(--amber-deep);
  font-weight: 700;
  margin-bottom: 0.9rem;
}

/* -------------------------------------------------------------- documents */

.doc {
  padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(3rem, 7vw, 5rem);
  max-width: var(--measure);
}

.doc h1 {
  font-size: clamp(2.4rem, 5.5vw, 3.6rem);
  margin-bottom: 0.6rem;
}

.doc .stamp {
  color: var(--ink-soft);
  font-size: 0.86rem;
  letter-spacing: 0.06em;
  margin: 0 0 2.6rem;
}

.doc h2 {
  font-family: "Instrument Serif", ui-serif, Georgia, serif;
  font-weight: 400;
  font-size: 1.65rem;
  margin: 2.6rem 0 0.7rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--ink-faint);
}

.doc h2:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.doc p,
.doc li {
  color: rgba(3, 3, 71, 0.78);
}

.doc ul {
  padding-left: 1.15rem;
}

.doc li {
  margin-bottom: 0.45rem;
}

.doc a {
  color: var(--ink);
  text-decoration-color: var(--amber);
  text-underline-offset: 3px;
}

.callout {
  background: var(--paper-2);
  border: 1px solid var(--ink-faint);
  border-left: 3px solid var(--amber);
  border-radius: 0 14px 14px 0;
  padding: 1.1rem 1.3rem;
  margin: 1.6rem 0;
}

.callout p {
  margin: 0;
}

/* ------------------------------------------------------------------ footer */

.foot {
  padding: 2.2rem 0 3.4rem;
  display: flex;
  justify-content: space-between;
  gap: 1.2rem;
  flex-wrap: wrap;
  font-size: 0.88rem;
  color: var(--ink-soft);
  border-top: 1px solid var(--ink-faint);
}

.foot a {
  color: var(--ink-soft);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.foot a:hover {
  color: var(--ink);
  border-bottom-color: var(--amber);
}

.foot nav {
  display: flex;
  gap: 1.3rem;
  flex-wrap: wrap;
}

/* ------------------------------------------------------------------ motion */

.rise {
  opacity: 0;
  transform: translateY(14px);
  animation: rise 0.75s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
}

.rise:nth-child(2) { animation-delay: 0.07s; }
.rise:nth-child(3) { animation-delay: 0.14s; }

@keyframes rise {
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  .rise {
    opacity: 1;
    transform: none;
  }
}

/* ---------------------------------------------------------------- responsive */

@media (max-width: 880px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 1.5rem;
  }
  .demo {
    order: -1;
    max-width: 420px;
  }
  .strip {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 520px) {
  .masthead {
    padding-bottom: 0.5rem;
  }
  .nav {
    gap: 1.1rem;
    font-size: 0.88rem;
  }
}
